freeradius3: add modules
[feed/packages.git] / net / freeradius3 / patches / 020-fix-freeradius3-krb5.patch
1 --- a/src/modules/rlm_krb5/configure
2 +++ b/src/modules/rlm_krb5/configure
3 @@ -1,10 +1,11 @@
4 #! /bin/sh
5 # From configure.ac Revision.
6 # Guess values for system-dependent variables and create Makefiles.
7 -# Generated by GNU Autoconf 2.69.
8 +# Generated by GNU Autoconf 2.71.
9 #
10 #
11 -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
13 +# Inc.
14 #
15 #
16 # This configure script is free software; the Free Software Foundation
17 @@ -15,14 +16,16 @@
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 +as_nop=:
23 +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24 +then :
25 emulate sh
26 NULLCMD=:
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
30 setopt NO_GLOB_SUBST
31 -else
32 +else $as_nop
33 case `(set -o) 2>/dev/null` in #(
34 *posix*) :
35 set -o posix ;; #(
36 @@ -32,46 +35,46 @@ esac
37 fi
38
39
40 +
41 +# Reset variables that may have inherited troublesome values from
42 +# the environment.
43 +
44 +# IFS needs to be set, to space, tab, and newline, in precisely that order.
45 +# (If _AS_PATH_WALK were called with IFS unset, it would have the
46 +# side effect of setting IFS to empty, thus disabling word splitting.)
47 +# Quoting is to prevent editors from complaining about space-tab.
48 as_nl='
49 '
50 export as_nl
51 -# Printing a long string crashes Solaris 7 /usr/bin/printf.
52 -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
53 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
54 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
55 -# Prefer a ksh shell builtin over an external printf program on Solaris,
56 -# but without wasting forks for bash or zsh.
57 -if test -z "$BASH_VERSION$ZSH_VERSION" \
58 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
59 - as_echo='print -r --'
60 - as_echo_n='print -rn --'
61 -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
62 - as_echo='printf %s\n'
63 - as_echo_n='printf %s'
64 -else
65 - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
66 - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
67 - as_echo_n='/usr/ucb/echo -n'
68 - else
69 - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
70 - as_echo_n_body='eval
71 - arg=$1;
72 - case $arg in #(
73 - *"$as_nl"*)
74 - expr "X$arg" : "X\\(.*\\)$as_nl";
75 - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
76 - esac;
77 - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
78 - '
79 - export as_echo_n_body
80 - as_echo_n='sh -c $as_echo_n_body as_echo'
81 - fi
82 - export as_echo_body
83 - as_echo='sh -c $as_echo_body as_echo'
84 -fi
85 +IFS=" "" $as_nl"
86 +
87 +PS1='$ '
88 +PS2='> '
89 +PS4='+ '
90 +
91 +# Ensure predictable behavior from utilities with locale-dependent output.
92 +LC_ALL=C
93 +export LC_ALL
94 +LANGUAGE=C
95 +export LANGUAGE
96 +
97 +# We cannot yet rely on "unset" to work, but we need these variables
98 +# to be unset--not just set to an empty or harmless value--now, to
99 +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
100 +# also avoids known problems related to "unset" and subshell syntax
101 +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
102 +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
103 +do eval test \${$as_var+y} \
104 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
105 +done
106 +
107 +# Ensure that fds 0, 1, and 2 are open.
108 +if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
109 +if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
110 +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
111
112 # The user is always right.
113 -if test "${PATH_SEPARATOR+set}" != set; then
114 +if ${PATH_SEPARATOR+false} :; then
115 PATH_SEPARATOR=:
116 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
117 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
118 @@ -80,13 +83,6 @@ if test "${PATH_SEPARATOR+set}" != set;
119 fi
120
121
122 -# IFS
123 -# We need space, tab and new line, in precisely that order. Quoting is
124 -# there to prevent editors from complaining about space-tab.
125 -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
126 -# splitting by setting IFS to empty value.)
127 -IFS=" "" $as_nl"
128 -
129 # Find who we are. Look in the path if we contain no directory separator.
130 as_myself=
131 case $0 in #((
132 @@ -95,8 +91,12 @@ case $0 in #((
133 for as_dir in $PATH
134 do
135 IFS=$as_save_IFS
136 - test -z "$as_dir" && as_dir=.
137 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
138 + case $as_dir in #(((
139 + '') as_dir=./ ;;
140 + */) ;;
141 + *) as_dir=$as_dir/ ;;
142 + esac
143 + test -r "$as_dir$0" && as_myself=$as_dir$0 && break
144 done
145 IFS=$as_save_IFS
146
147 @@ -108,30 +108,10 @@ if test "x$as_myself" = x; then
148 as_myself=$0
149 fi
150 if test ! -f "$as_myself"; then
151 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
152 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
153 exit 1
154 fi
155
156 -# Unset variables that we do not need and which cause bugs (e.g. in
157 -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
158 -# suppresses any "Segmentation fault" message there. '((' could
159 -# trigger a bug in pdksh 5.2.14.
160 -for as_var in BASH_ENV ENV MAIL MAILPATH
161 -do eval test x\${$as_var+set} = xset \
162 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
163 -done
164 -PS1='$ '
165 -PS2='> '
166 -PS4='+ '
167 -
168 -# NLS nuisances.
169 -LC_ALL=C
170 -export LC_ALL
171 -LANGUAGE=C
172 -export LANGUAGE
173 -
174 -# CDPATH.
175 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
176
177 # Use a proper internal environment variable to ensure we don't fall
178 # into an infinite loop, continuously re-executing ourselves.
179 @@ -153,20 +133,22 @@ esac
180 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
181 # Admittedly, this is quite paranoid, since all the known shells bail
182 # out after a failed `exec'.
183 -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
184 -as_fn_exit 255
185 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
186 +exit 255
187 fi
188 # We don't want this to propagate to other subprocesses.
189 { _as_can_reexec=; unset _as_can_reexec;}
190 if test "x$CONFIG_SHELL" = x; then
191 - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
192 + as_bourne_compatible="as_nop=:
193 +if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
194 +then :
195 emulate sh
196 NULLCMD=:
197 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
198 # is contrary to our usage. Disable this feature.
199 alias -g '\${1+\"\$@\"}'='\"\$@\"'
200 setopt NO_GLOB_SUBST
201 -else
202 +else \$as_nop
203 case \`(set -o) 2>/dev/null\` in #(
204 *posix*) :
205 set -o posix ;; #(
206 @@ -186,41 +168,52 @@ as_fn_success || { exitcode=1; echo as_f
207 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
208 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
209 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
210 -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
211 +if ( set x; as_fn_ret_success y && test x = \"\$1\" )
212 +then :
213
214 -else
215 +else \$as_nop
216 exitcode=1; echo positional parameters were not saved.
217 fi
218 test x\$exitcode = x0 || exit 1
219 +blah=\$(echo \$(echo blah))
220 +test x\"\$blah\" = xblah || exit 1
221 test -x / || exit 1"
222 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
223 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
224 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
225 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
226 - if (eval "$as_required") 2>/dev/null; then :
227 + if (eval "$as_required") 2>/dev/null
228 +then :
229 as_have_required=yes
230 -else
231 +else $as_nop
232 as_have_required=no
233 fi
234 - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
235 + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
236 +then :
237
238 -else
239 +else $as_nop
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 as_found=false
242 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 do
244 IFS=$as_save_IFS
245 - test -z "$as_dir" && as_dir=.
246 + case $as_dir in #(((
247 + '') as_dir=./ ;;
248 + */) ;;
249 + *) as_dir=$as_dir/ ;;
250 + esac
251 as_found=:
252 case $as_dir in #(
253 /*)
254 for as_base in sh bash ksh sh5; do
255 # Try only shells that exist, to save several forks.
256 - as_shell=$as_dir/$as_base
257 + as_shell=$as_dir$as_base
258 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
259 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
260 + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
261 +then :
262 CONFIG_SHELL=$as_shell as_have_required=yes
263 - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
264 + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
265 +then :
266 break 2
267 fi
268 fi
269 @@ -228,14 +221,21 @@ fi
270 esac
271 as_found=false
272 done
273 -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
274 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
275 - CONFIG_SHELL=$SHELL as_have_required=yes
276 -fi; }
277 IFS=$as_save_IFS
278 +if $as_found
279 +then :
280 +
281 +else $as_nop
282 + if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
283 + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
284 +then :
285 + CONFIG_SHELL=$SHELL as_have_required=yes
286 +fi
287 +fi
288
289
290 - if test "x$CONFIG_SHELL" != x; then :
291 + if test "x$CONFIG_SHELL" != x
292 +then :
293 export CONFIG_SHELL
294 # We cannot yet assume a decent shell, so we have to provide a
295 # neutralization value for shells without unset; and this also
296 @@ -253,18 +253,19 @@ esac
297 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
298 # Admittedly, this is quite paranoid, since all the known shells bail
299 # out after a failed `exec'.
300 -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
301 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
302 exit 255
303 fi
304
305 - if test x$as_have_required = xno; then :
306 - $as_echo "$0: This script requires a shell more modern than all"
307 - $as_echo "$0: the shells that I found on your system."
308 - if test x${ZSH_VERSION+set} = xset ; then
309 - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
310 - $as_echo "$0: be upgraded to zsh 4.3.4 or later."
311 + if test x$as_have_required = xno
312 +then :
313 + printf "%s\n" "$0: This script requires a shell more modern than all"
314 + printf "%s\n" "$0: the shells that I found on your system."
315 + if test ${ZSH_VERSION+y} ; then
316 + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
317 + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
318 else
319 - $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
320 + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
321 $0: including any error possibly output before this
322 $0: message. Then install a modern shell, or manually run
323 $0: the script under such a shell if you do have one."
324 @@ -291,6 +292,7 @@ as_fn_unset ()
325 }
326 as_unset=as_fn_unset
327
328 +
329 # as_fn_set_status STATUS
330 # -----------------------
331 # Set $? to STATUS, without forking.
332 @@ -308,6 +310,14 @@ as_fn_exit ()
333 as_fn_set_status $1
334 exit $1
335 } # as_fn_exit
336 +# as_fn_nop
337 +# ---------
338 +# Do nothing but, unlike ":", preserve the value of $?.
339 +as_fn_nop ()
340 +{
341 + return $?
342 +}
343 +as_nop=as_fn_nop
344
345 # as_fn_mkdir_p
346 # -------------
347 @@ -322,7 +332,7 @@ as_fn_mkdir_p ()
348 as_dirs=
349 while :; do
350 case $as_dir in #(
351 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
352 + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
353 *) as_qdir=$as_dir;;
354 esac
355 as_dirs="'$as_qdir' $as_dirs"
356 @@ -331,7 +341,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/
357 X"$as_dir" : 'X\(//\)[^/]' \| \
358 X"$as_dir" : 'X\(//\)$' \| \
359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
360 -$as_echo X"$as_dir" |
361 +printf "%s\n" X"$as_dir" |
362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 s//\1/
364 q
365 @@ -370,12 +380,13 @@ as_fn_executable_p ()
366 # advantage of any shell optimizations that allow amortized linear growth over
367 # repeated appends, instead of the typical quadratic growth present in naive
368 # implementations.
369 -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
370 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
371 +then :
372 eval 'as_fn_append ()
373 {
374 eval $1+=\$2
375 }'
376 -else
377 +else $as_nop
378 as_fn_append ()
379 {
380 eval $1=\$$1\$2
381 @@ -387,18 +398,27 @@ fi # as_fn_append
382 # Perform arithmetic evaluation on the ARGs, and store the result in the
383 # global $as_val. Take advantage of shells that can avoid forks. The arguments
384 # must be portable across $(()) and expr.
385 -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
386 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
387 +then :
388 eval 'as_fn_arith ()
389 {
390 as_val=$(( $* ))
391 }'
392 -else
393 +else $as_nop
394 as_fn_arith ()
395 {
396 as_val=`expr "$@" || test $? -eq 1`
397 }
398 fi # as_fn_arith
399
400 +# as_fn_nop
401 +# ---------
402 +# Do nothing but, unlike ":", preserve the value of $?.
403 +as_fn_nop ()
404 +{
405 + return $?
406 +}
407 +as_nop=as_fn_nop
408
409 # as_fn_error STATUS ERROR [LINENO LOG_FD]
410 # ----------------------------------------
411 @@ -410,9 +430,9 @@ as_fn_error ()
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 - $as_echo "$as_me: error: $2" >&2
419 + printf "%s\n" "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 @@ -439,7 +459,7 @@ as_me=`$as_basename -- "$0" ||
424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
425 X"$0" : 'X\(//\)$' \| \
426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
427 -$as_echo X/"$0" |
428 +printf "%s\n" X/"$0" |
429 sed '/^.*\/\([^/][^/]*\)\/*$/{
430 s//\1/
431 q
432 @@ -483,7 +503,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
433 s/-\n.*//
434 ' >$as_me.lineno &&
435 chmod +x "$as_me.lineno" ||
436 - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
437 + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
438
439 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
440 # already done that, so ensure we don't try to do so again and fall
441 @@ -497,6 +517,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
442 exit
443 }
444
445 +
446 +# Determine whether it's possible to make 'echo' print without a newline.
447 +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
448 +# for compatibility with existing Makefiles.
449 ECHO_C= ECHO_N= ECHO_T=
450 case `echo -n x` in #(((((
451 -n*)
452 @@ -510,6 +534,13 @@ case `echo -n x` in #(((((
453 ECHO_N='-n';;
454 esac
455
456 +# For backward compatibility with old third-party macros, we provide
457 +# the shell variables $as_echo and $as_echo_n. New code should use
458 +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
459 +as_echo='printf %s\n'
460 +as_echo_n='printf %s'
461 +
462 +
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 @@ -575,19 +606,19 @@ MFLAGS=
467 MAKEFLAGS=
468
469 # Identity of this package.
470 -PACKAGE_NAME=
471 -PACKAGE_TARNAME=
472 -PACKAGE_VERSION=
473 -PACKAGE_STRING=
474 -PACKAGE_BUGREPORT=
475 -PACKAGE_URL=
476 +PACKAGE_NAME=''
477 +PACKAGE_TARNAME=''
478 +PACKAGE_VERSION=''
479 +PACKAGE_STRING=''
480 +PACKAGE_BUGREPORT=''
481 +PACKAGE_URL=''
482
483 ac_unique_file="rlm_krb5.c"
484 ac_subst_vars='LTLIBOBJS
485 LIBOBJS
486 -targetname
487 mod_cflags
488 mod_ldflags
489 +targetname
490 krb5_config
491 CPP
492 OBJEXT
493 @@ -616,6 +647,7 @@ infodir
494 docdir
495 oldincludedir
496 includedir
497 +runstatedir
498 localstatedir
499 sharedstatedir
500 sysconfdir
501 @@ -688,6 +720,7 @@ datadir='${datarootdir}'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 +runstatedir='${localstatedir}/run'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 docdir='${datarootdir}/doc/${PACKAGE}'
509 @@ -717,8 +750,6 @@ do
510 *) ac_optarg=yes ;;
511 esac
512
513 - # Accept the important Cygnus configure options, so we can diagnose typos.
514 -
515 case $ac_dashdash$ac_option in
516 --)
517 ac_dashdash=yes ;;
518 @@ -759,9 +790,9 @@ do
519 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
520 # Reject names that are not valid shell variable names.
521 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
522 - as_fn_error $? "invalid feature name: $ac_useropt"
523 + as_fn_error $? "invalid feature name: \`$ac_useropt'"
524 ac_useropt_orig=$ac_useropt
525 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
526 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
527 case $ac_user_opts in
528 *"
529 "enable_$ac_useropt"
530 @@ -785,9 +816,9 @@ do
531 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
532 # Reject names that are not valid shell variable names.
533 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
534 - as_fn_error $? "invalid feature name: $ac_useropt"
535 + as_fn_error $? "invalid feature name: \`$ac_useropt'"
536 ac_useropt_orig=$ac_useropt
537 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
538 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
539 case $ac_user_opts in
540 *"
541 "enable_$ac_useropt"
542 @@ -940,6 +971,15 @@ do
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 + -runstatedir | --runstatedir | --runstatedi | --runstated \
547 + | --runstate | --runstat | --runsta | --runst | --runs \
548 + | --run | --ru | --r)
549 + ac_prev=runstatedir ;;
550 + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
551 + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
552 + | --run=* | --ru=* | --r=*)
553 + runstatedir=$ac_optarg ;;
554 +
555 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
556 ac_prev=sbindir ;;
557 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
558 @@ -989,9 +1029,9 @@ do
559 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
562 - as_fn_error $? "invalid package name: $ac_useropt"
563 + as_fn_error $? "invalid package name: \`$ac_useropt'"
564 ac_useropt_orig=$ac_useropt
565 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
566 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
567 case $ac_user_opts in
568 *"
569 "with_$ac_useropt"
570 @@ -1005,9 +1045,9 @@ do
571 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
574 - as_fn_error $? "invalid package name: $ac_useropt"
575 + as_fn_error $? "invalid package name: \`$ac_useropt'"
576 ac_useropt_orig=$ac_useropt
577 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
578 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
579 case $ac_user_opts in
580 *"
581 "with_$ac_useropt"
582 @@ -1051,9 +1091,9 @@ Try \`$0 --help' for more information"
583
584 *)
585 # FIXME: should be removed in autoconf 3.0.
586 - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
587 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
588 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
589 - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
590 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
591 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
592 ;;
593
594 @@ -1069,7 +1109,7 @@ if test -n "$ac_unrecognized_opts"; then
595 case $enable_option_checking in
596 no) ;;
597 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
598 - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
599 + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
600 esac
601 fi
602
603 @@ -1077,7 +1117,7 @@ fi
604 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
605 datadir sysconfdir sharedstatedir localstatedir includedir \
606 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
607 - libdir localedir mandir
608 + libdir localedir mandir runstatedir
609 do
610 eval ac_val=\$$ac_var
611 # Remove trailing slashes.
612 @@ -1133,7 +1173,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*
613 X"$as_myself" : 'X\(//\)[^/]' \| \
614 X"$as_myself" : 'X\(//\)$' \| \
615 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
616 -$as_echo X"$as_myself" |
617 +printf "%s\n" X"$as_myself" |
618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
619 s//\1/
620 q
621 @@ -1230,6 +1270,7 @@ Fine tuning of the installation director
622 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
623 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
624 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
625 + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
626 --libdir=DIR object code libraries [EPREFIX/lib]
627 --includedir=DIR C header files [PREFIX/include]
628 --oldincludedir=DIR C header files for non-gcc [/usr/include]
629 @@ -1256,8 +1297,8 @@ if test -n "$ac_init_help"; then
630 Optional Packages:
631 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
632 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
633 - --with-rlm_krb5 build rlm_krb5. (default=yes)
634 - --with-rlm-krb5-dir=DIR Directory for krb5 files
635 + --without-rlm_krb5 build without Kerberos support
636 + --with-rlm-krb5-dir=DIR directory where krb5 files are installed
637
638 Some influential environment variables:
639 CC C compiler command
640 @@ -1288,9 +1329,9 @@ if test "$ac_init_help" = "recursive"; t
641 case "$ac_dir" in
642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
643 *)
644 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
645 + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
646 # A ".." for each directory in $ac_dir_suffix.
647 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
648 + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
649 case $ac_top_builddir_sub in
650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
652 @@ -1318,7 +1359,8 @@ esac
653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
654
655 cd "$ac_dir" || { ac_status=$?; continue; }
656 - # Check for guested configure.
657 + # Check for configure.gnu first; this name is used for a wrapper for
658 + # Metaconfig's "Configure" on case-insensitive file systems.
659 if test -f "$ac_srcdir/configure.gnu"; then
660 echo &&
661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
662 @@ -1326,7 +1368,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
663 echo &&
664 $SHELL "$ac_srcdir/configure" --help=recursive
665 else
666 - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
667 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
668 fi || ac_status=$?
669 cd "$ac_pwd" || { ac_status=$?; break; }
670 done
671 @@ -1336,9 +1378,9 @@ test -n "$ac_init_help" && exit $ac_stat
672 if $ac_init_version; then
673 cat <<\_ACEOF
674 configure
675 -generated by GNU Autoconf 2.69
676 +generated by GNU Autoconf 2.71
677
678 -Copyright (C) 2012 Free Software Foundation, Inc.
679 +Copyright (C) 2021 Free Software Foundation, Inc.
680 This configure script is free software; the Free Software Foundation
681 gives unlimited permission to copy, distribute and modify it.
682 _ACEOF
683 @@ -1349,20 +1391,25 @@ fi
684 ## Autoconf initialization. ##
685 ## ------------------------ ##
686
687 +echo
688 +echo Running tests for rlm_krb5
689 +echo
690 +
691 +
692 # ac_fn_c_try_compile LINENO
693 # --------------------------
694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
695 ac_fn_c_try_compile ()
696 {
697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
698 - rm -f conftest.$ac_objext
699 + rm -f conftest.$ac_objext conftest.beam
700 if { { ac_try="$ac_compile"
701 case "(($ac_try" in
702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
703 *) ac_try_echo=$ac_try;;
704 esac
705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
706 -$as_echo "$ac_try_echo"; } >&5
707 +printf "%s\n" "$ac_try_echo"; } >&5
708 (eval "$ac_compile") 2>conftest.err
709 ac_status=$?
710 if test -s conftest.err; then
711 @@ -1370,14 +1417,15 @@ $as_echo "$ac_try_echo"; } >&5
712 cat conftest.er1 >&5
713 mv -f conftest.er1 conftest.err
714 fi
715 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
716 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
717 test $ac_status = 0; } && {
718 test -z "$ac_c_werror_flag" ||
719 test ! -s conftest.err
720 - } && test -s conftest.$ac_objext; then :
721 + } && test -s conftest.$ac_objext
722 +then :
723 ac_retval=0
724 -else
725 - $as_echo "$as_me: failed program was:" >&5
726 +else $as_nop
727 + printf "%s\n" "$as_me: failed program was:" >&5
728 sed 's/^/| /' conftest.$ac_ext >&5
729
730 ac_retval=1
731 @@ -1399,7 +1447,7 @@ case "(($ac_try" in
732 *) ac_try_echo=$ac_try;;
733 esac
734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
735 -$as_echo "$ac_try_echo"; } >&5
736 +printf "%s\n" "$ac_try_echo"; } >&5
737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
738 ac_status=$?
739 if test -s conftest.err; then
740 @@ -1407,14 +1455,15 @@ $as_echo "$ac_try_echo"; } >&5
741 cat conftest.er1 >&5
742 mv -f conftest.er1 conftest.err
743 fi
744 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
745 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
746 test $ac_status = 0; } > conftest.i && {
747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
748 test ! -s conftest.err
749 - }; then :
750 + }
751 +then :
752 ac_retval=0
753 -else
754 - $as_echo "$as_me: failed program was:" >&5
755 +else $as_nop
756 + printf "%s\n" "$as_me: failed program was:" >&5
757 sed 's/^/| /' conftest.$ac_ext >&5
758
759 ac_retval=1
760 @@ -1430,14 +1479,14 @@ fi
761 ac_fn_c_try_link ()
762 {
763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
764 - rm -f conftest.$ac_objext conftest$ac_exeext
765 + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
766 if { { ac_try="$ac_link"
767 case "(($ac_try" in
768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
769 *) ac_try_echo=$ac_try;;
770 esac
771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
772 -$as_echo "$ac_try_echo"; } >&5
773 +printf "%s\n" "$ac_try_echo"; } >&5
774 (eval "$ac_link") 2>conftest.err
775 ac_status=$?
776 if test -s conftest.err; then
777 @@ -1445,17 +1494,18 @@ $as_echo "$ac_try_echo"; } >&5
778 cat conftest.er1 >&5
779 mv -f conftest.er1 conftest.err
780 fi
781 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
782 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
783 test $ac_status = 0; } && {
784 test -z "$ac_c_werror_flag" ||
785 test ! -s conftest.err
786 } && test -s conftest$ac_exeext && {
787 test "$cross_compiling" = yes ||
788 test -x conftest$ac_exeext
789 - }; then :
790 + }
791 +then :
792 ac_retval=0
793 -else
794 - $as_echo "$as_me: failed program was:" >&5
795 +else $as_nop
796 + printf "%s\n" "$as_me: failed program was:" >&5
797 sed 's/^/| /' conftest.$ac_ext >&5
798
799 ac_retval=1
800 @@ -1476,11 +1526,12 @@ fi
801 ac_fn_c_check_func ()
802 {
803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
804 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
805 -$as_echo_n "checking for $2... " >&6; }
806 -if eval \${$3+:} false; then :
807 - $as_echo_n "(cached) " >&6
808 -else
809 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
810 +printf %s "checking for $2... " >&6; }
811 +if eval test \${$3+y}
812 +then :
813 + printf %s "(cached) " >&6
814 +else $as_nop
815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
816 /* end confdefs.h. */
817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
818 @@ -1488,16 +1539,9 @@ else
819 #define $2 innocuous_$2
820
821 /* System header to define __stub macros and hopefully few prototypes,
822 - which can conflict with char $2 (); below.
823 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
824 - <limits.h> exists even on freestanding compilers. */
825 -
826 -#ifdef __STDC__
827 -# include <limits.h>
828 -#else
829 -# include <assert.h>
830 -#endif
831 + which can conflict with char $2 (); below. */
832
833 +#include <limits.h>
834 #undef $2
835
836 /* Override any GCC internal prototype to avoid an error.
837 @@ -1515,32 +1559,33 @@ choke me
838 #endif
839
840 int
841 -main ()
842 +main (void)
843 {
844 return $2 ();
845 ;
846 return 0;
847 }
848 _ACEOF
849 -if ac_fn_c_try_link "$LINENO"; then :
850 +if ac_fn_c_try_link "$LINENO"
851 +then :
852 eval "$3=yes"
853 -else
854 +else $as_nop
855 eval "$3=no"
856 fi
857 -rm -f core conftest.err conftest.$ac_objext \
858 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
859 conftest$ac_exeext conftest.$ac_ext
860 fi
861 eval ac_res=\$$3
862 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
863 -$as_echo "$ac_res" >&6; }
864 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
865 +printf "%s\n" "$ac_res" >&6; }
866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
867
868 } # ac_fn_c_check_func
869
870 # ac_fn_c_try_run LINENO
871 # ----------------------
872 -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
873 -# that executables *can* be run.
874 +# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
875 +# executables *can* be run.
876 ac_fn_c_try_run ()
877 {
878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
879 @@ -1550,25 +1595,26 @@ case "(($ac_try" in
880 *) ac_try_echo=$ac_try;;
881 esac
882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
883 -$as_echo "$ac_try_echo"; } >&5
884 +printf "%s\n" "$ac_try_echo"; } >&5
885 (eval "$ac_link") 2>&5
886 ac_status=$?
887 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
888 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
889 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
890 { { case "(($ac_try" in
891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
892 *) ac_try_echo=$ac_try;;
893 esac
894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
895 -$as_echo "$ac_try_echo"; } >&5
896 +printf "%s\n" "$ac_try_echo"; } >&5
897 (eval "$ac_try") 2>&5
898 ac_status=$?
899 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
900 - test $ac_status = 0; }; }; then :
901 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
902 + test $ac_status = 0; }; }
903 +then :
904 ac_retval=0
905 -else
906 - $as_echo "$as_me: program exited with status $ac_status" >&5
907 - $as_echo "$as_me: failed program was:" >&5
908 +else $as_nop
909 + printf "%s\n" "$as_me: program exited with status $ac_status" >&5
910 + printf "%s\n" "$as_me: failed program was:" >&5
911 sed 's/^/| /' conftest.$ac_ext >&5
912
913 ac_retval=$ac_status
914 @@ -1578,14 +1624,34 @@ fi
915 as_fn_set_status $ac_retval
916
917 } # ac_fn_c_try_run
918 +ac_configure_args_raw=
919 +for ac_arg
920 +do
921 + case $ac_arg in
922 + *\'*)
923 + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
924 + esac
925 + as_fn_append ac_configure_args_raw " '$ac_arg'"
926 +done
927 +
928 +case $ac_configure_args_raw in
929 + *$as_nl*)
930 + ac_safe_unquote= ;;
931 + *)
932 + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
933 + ac_unsafe_a="$ac_unsafe_z#~"
934 + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
935 + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
936 +esac
937 +
938 cat >config.log <<_ACEOF
939 This file contains any messages produced by compilers while
940 running configure, to aid debugging if configure makes a mistake.
941
942 It was created by $as_me, which was
943 -generated by GNU Autoconf 2.69. Invocation command line was
944 +generated by GNU Autoconf 2.71. Invocation command line was
945
946 - $ $0 $@
947 + $ $0$ac_configure_args_raw
948
949 _ACEOF
950 exec 5>>config.log
951 @@ -1618,8 +1684,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
952 for as_dir in $PATH
953 do
954 IFS=$as_save_IFS
955 - test -z "$as_dir" && as_dir=.
956 - $as_echo "PATH: $as_dir"
957 + case $as_dir in #(((
958 + '') as_dir=./ ;;
959 + */) ;;
960 + *) as_dir=$as_dir/ ;;
961 + esac
962 + printf "%s\n" "PATH: $as_dir"
963 done
964 IFS=$as_save_IFS
965
966 @@ -1654,7 +1724,7 @@ do
967 | -silent | --silent | --silen | --sile | --sil)
968 continue ;;
969 *\'*)
970 - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
971 + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
972 esac
973 case $ac_pass in
974 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
975 @@ -1689,11 +1759,13 @@ done
976 # WARNING: Use '\'' to represent an apostrophe within the trap.
977 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
978 trap 'exit_status=$?
979 + # Sanitize IFS.
980 + IFS=" "" $as_nl"
981 # Save into config.log some information that might help in debugging.
982 {
983 echo
984
985 - $as_echo "## ---------------- ##
986 + printf "%s\n" "## ---------------- ##
987 ## Cache variables. ##
988 ## ---------------- ##"
989 echo
990 @@ -1704,8 +1776,8 @@ trap 'exit_status=$?
991 case $ac_val in #(
992 *${as_nl}*)
993 case $ac_var in #(
994 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
995 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
996 + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
997 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
998 esac
999 case $ac_var in #(
1000 _ | IFS | as_nl) ;; #(
1001 @@ -1729,7 +1801,7 @@ $as_echo "$as_me: WARNING: cache variabl
1002 )
1003 echo
1004
1005 - $as_echo "## ----------------- ##
1006 + printf "%s\n" "## ----------------- ##
1007 ## Output variables. ##
1008 ## ----------------- ##"
1009 echo
1010 @@ -1737,14 +1809,14 @@ $as_echo "$as_me: WARNING: cache variabl
1011 do
1012 eval ac_val=\$$ac_var
1013 case $ac_val in
1014 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1015 + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1016 esac
1017 - $as_echo "$ac_var='\''$ac_val'\''"
1018 + printf "%s\n" "$ac_var='\''$ac_val'\''"
1019 done | sort
1020 echo
1021
1022 if test -n "$ac_subst_files"; then
1023 - $as_echo "## ------------------- ##
1024 + printf "%s\n" "## ------------------- ##
1025 ## File substitutions. ##
1026 ## ------------------- ##"
1027 echo
1028 @@ -1752,15 +1824,15 @@ $as_echo "$as_me: WARNING: cache variabl
1029 do
1030 eval ac_val=\$$ac_var
1031 case $ac_val in
1032 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1033 + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1034 esac
1035 - $as_echo "$ac_var='\''$ac_val'\''"
1036 + printf "%s\n" "$ac_var='\''$ac_val'\''"
1037 done | sort
1038 echo
1039 fi
1040
1041 if test -s confdefs.h; then
1042 - $as_echo "## ----------- ##
1043 + printf "%s\n" "## ----------- ##
1044 ## confdefs.h. ##
1045 ## ----------- ##"
1046 echo
1047 @@ -1768,8 +1840,8 @@ $as_echo "$as_me: WARNING: cache variabl
1048 echo
1049 fi
1050 test "$ac_signal" != 0 &&
1051 - $as_echo "$as_me: caught signal $ac_signal"
1052 - $as_echo "$as_me: exit $exit_status"
1053 + printf "%s\n" "$as_me: caught signal $ac_signal"
1054 + printf "%s\n" "$as_me: exit $exit_status"
1055 } >&5
1056 rm -f core *.core core.conftest.* &&
1057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1058 @@ -1783,63 +1855,48 @@ ac_signal=0
1059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1060 rm -f -r conftest* confdefs.h
1061
1062 -$as_echo "/* confdefs.h */" > confdefs.h
1063 +printf "%s\n" "/* confdefs.h */" > confdefs.h
1064
1065 # Predefined preprocessor variables.
1066
1067 -cat >>confdefs.h <<_ACEOF
1068 -#define PACKAGE_NAME "$PACKAGE_NAME"
1069 -_ACEOF
1070 +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1071
1072 -cat >>confdefs.h <<_ACEOF
1073 -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1074 -_ACEOF
1075 +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1076
1077 -cat >>confdefs.h <<_ACEOF
1078 -#define PACKAGE_VERSION "$PACKAGE_VERSION"
1079 -_ACEOF
1080 +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1081
1082 -cat >>confdefs.h <<_ACEOF
1083 -#define PACKAGE_STRING "$PACKAGE_STRING"
1084 -_ACEOF
1085 +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1086
1087 -cat >>confdefs.h <<_ACEOF
1088 -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1089 -_ACEOF
1090 +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1091
1092 -cat >>confdefs.h <<_ACEOF
1093 -#define PACKAGE_URL "$PACKAGE_URL"
1094 -_ACEOF
1095 +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1096
1097
1098 # Let the site file select an alternate cache file if it wants to.
1099 # Prefer an explicitly selected file to automatically selected ones.
1100 -ac_site_file1=NONE
1101 -ac_site_file2=NONE
1102 if test -n "$CONFIG_SITE"; then
1103 - # We do not want a PATH search for config.site.
1104 - case $CONFIG_SITE in #((
1105 - -*) ac_site_file1=./$CONFIG_SITE;;
1106 - */*) ac_site_file1=$CONFIG_SITE;;
1107 - *) ac_site_file1=./$CONFIG_SITE;;
1108 - esac
1109 + ac_site_files="$CONFIG_SITE"
1110 elif test "x$prefix" != xNONE; then
1111 - ac_site_file1=$prefix/share/config.site
1112 - ac_site_file2=$prefix/etc/config.site
1113 + ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1114 else
1115 - ac_site_file1=$ac_default_prefix/share/config.site
1116 - ac_site_file2=$ac_default_prefix/etc/config.site
1117 + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1118 fi
1119 -for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1120 +
1121 +for ac_site_file in $ac_site_files
1122 do
1123 - test "x$ac_site_file" = xNONE && continue
1124 - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1125 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1126 -$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1127 + case $ac_site_file in #(
1128 + */*) :
1129 + ;; #(
1130 + *) :
1131 + ac_site_file=./$ac_site_file ;;
1132 +esac
1133 + if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1134 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1135 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1136 sed 's/^/| /' "$ac_site_file" >&5
1137 . "$ac_site_file" \
1138 - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1139 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1140 + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1141 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1142 as_fn_error $? "failed to load site script $ac_site_file
1143 See \`config.log' for more details" "$LINENO" 5; }
1144 fi
1145 @@ -1849,19 +1906,327 @@ if test -r "$cache_file"; then
1146 # Some versions of bash will fail to source /dev/null (special files
1147 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1149 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1150 -$as_echo "$as_me: loading cache $cache_file" >&6;}
1151 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1152 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1153 case $cache_file in
1154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1155 *) . "./$cache_file";;
1156 esac
1157 fi
1158 else
1159 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1160 -$as_echo "$as_me: creating cache $cache_file" >&6;}
1161 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1162 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1163 >$cache_file
1164 fi
1165
1166 +# Test code for whether the C compiler supports C89 (global declarations)
1167 +ac_c_conftest_c89_globals='
1168 +/* Does the compiler advertise C89 conformance?
1169 + Do not test the value of __STDC__, because some compilers set it to 0
1170 + while being otherwise adequately conformant. */
1171 +#if !defined __STDC__
1172 +# error "Compiler does not advertise C89 conformance"
1173 +#endif
1174 +
1175 +#include <stddef.h>
1176 +#include <stdarg.h>
1177 +struct stat;
1178 +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1179 +struct buf { int x; };
1180 +struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1181 +static char *e (p, i)
1182 + char **p;
1183 + int i;
1184 +{
1185 + return p[i];
1186 +}
1187 +static char *f (char * (*g) (char **, int), char **p, ...)
1188 +{
1189 + char *s;
1190 + va_list v;
1191 + va_start (v,p);
1192 + s = g (p, va_arg (v,int));
1193 + va_end (v);
1194 + return s;
1195 +}
1196 +
1197 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1198 + function prototypes and stuff, but not \xHH hex character constants.
1199 + These do not provoke an error unfortunately, instead are silently treated
1200 + as an "x". The following induces an error, until -std is added to get
1201 + proper ANSI mode. Curiously \x00 != x always comes out true, for an
1202 + array size at least. It is necessary to write \x00 == 0 to get something
1203 + that is true only with -std. */
1204 +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1205 +
1206 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1207 + inside strings and character constants. */
1208 +#define FOO(x) '\''x'\''
1209 +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1210 +
1211 +int test (int i, double x);
1212 +struct s1 {int (*f) (int a);};
1213 +struct s2 {int (*f) (double a);};
1214 +int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1215 + int, int);'
1216 +
1217 +# Test code for whether the C compiler supports C89 (body of main).
1218 +ac_c_conftest_c89_main='
1219 +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1220 +'
1221 +
1222 +# Test code for whether the C compiler supports C99 (global declarations)
1223 +ac_c_conftest_c99_globals='
1224 +// Does the compiler advertise C99 conformance?
1225 +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1226 +# error "Compiler does not advertise C99 conformance"
1227 +#endif
1228 +
1229 +#include <stdbool.h>
1230 +extern int puts (const char *);
1231 +extern int printf (const char *, ...);
1232 +extern int dprintf (int, const char *, ...);
1233 +extern void *malloc (size_t);
1234 +
1235 +// Check varargs macros. These examples are taken from C99 6.10.3.5.
1236 +// dprintf is used instead of fprintf to avoid needing to declare
1237 +// FILE and stderr.
1238 +#define debug(...) dprintf (2, __VA_ARGS__)
1239 +#define showlist(...) puts (#__VA_ARGS__)
1240 +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1241 +static void
1242 +test_varargs_macros (void)
1243 +{
1244 + int x = 1234;
1245 + int y = 5678;
1246 + debug ("Flag");
1247 + debug ("X = %d\n", x);
1248 + showlist (The first, second, and third items.);
1249 + report (x>y, "x is %d but y is %d", x, y);
1250 +}
1251 +
1252 +// Check long long types.
1253 +#define BIG64 18446744073709551615ull
1254 +#define BIG32 4294967295ul
1255 +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1256 +#if !BIG_OK
1257 + #error "your preprocessor is broken"
1258 +#endif
1259 +#if BIG_OK
1260 +#else
1261 + #error "your preprocessor is broken"
1262 +#endif
1263 +static long long int bignum = -9223372036854775807LL;
1264 +static unsigned long long int ubignum = BIG64;
1265 +
1266 +struct incomplete_array
1267 +{
1268 + int datasize;
1269 + double data[];
1270 +};
1271 +
1272 +struct named_init {
1273 + int number;
1274 + const wchar_t *name;
1275 + double average;
1276 +};
1277 +
1278 +typedef const char *ccp;
1279 +
1280 +static inline int
1281 +test_restrict (ccp restrict text)
1282 +{
1283 + // See if C++-style comments work.
1284 + // Iterate through items via the restricted pointer.
1285 + // Also check for declarations in for loops.
1286 + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
1287 + continue;
1288 + return 0;
1289 +}
1290 +
1291 +// Check varargs and va_copy.
1292 +static bool
1293 +test_varargs (const char *format, ...)
1294 +{
1295 + va_list args;
1296 + va_start (args, format);
1297 + va_list args_copy;
1298 + va_copy (args_copy, args);
1299 +
1300 + const char *str = "";
1301 + int number = 0;
1302 + float fnumber = 0;
1303 +
1304 + while (*format)
1305 + {
1306 + switch (*format++)
1307 + {
1308 + case '\''s'\'': // string
1309 + str = va_arg (args_copy, const char *);
1310 + break;
1311 + case '\''d'\'': // int
1312 + number = va_arg (args_copy, int);
1313 + break;
1314 + case '\''f'\'': // float
1315 + fnumber = va_arg (args_copy, double);
1316 + break;
1317 + default:
1318 + break;
1319 + }
1320 + }
1321 + va_end (args_copy);
1322 + va_end (args);
1323 +
1324 + return *str && number && fnumber;
1325 +}
1326 +'
1327 +
1328 +# Test code for whether the C compiler supports C99 (body of main).
1329 +ac_c_conftest_c99_main='
1330 + // Check bool.
1331 + _Bool success = false;
1332 + success |= (argc != 0);
1333 +
1334 + // Check restrict.
1335 + if (test_restrict ("String literal") == 0)
1336 + success = true;
1337 + char *restrict newvar = "Another string";
1338 +
1339 + // Check varargs.
1340 + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
1341 + test_varargs_macros ();
1342 +
1343 + // Check flexible array members.
1344 + struct incomplete_array *ia =
1345 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1346 + ia->datasize = 10;
1347 + for (int i = 0; i < ia->datasize; ++i)
1348 + ia->data[i] = i * 1.234;
1349 +
1350 + // Check named initializers.
1351 + struct named_init ni = {
1352 + .number = 34,
1353 + .name = L"Test wide string",
1354 + .average = 543.34343,
1355 + };
1356 +
1357 + ni.number = 58;
1358 +
1359 + int dynamic_array[ni.number];
1360 + dynamic_array[0] = argv[0][0];
1361 + dynamic_array[ni.number - 1] = 543;
1362 +
1363 + // work around unused variable warnings
1364 + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
1365 + || dynamic_array[ni.number - 1] != 543);
1366 +'
1367 +
1368 +# Test code for whether the C compiler supports C11 (global declarations)
1369 +ac_c_conftest_c11_globals='
1370 +// Does the compiler advertise C11 conformance?
1371 +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
1372 +# error "Compiler does not advertise C11 conformance"
1373 +#endif
1374 +
1375 +// Check _Alignas.
1376 +char _Alignas (double) aligned_as_double;
1377 +char _Alignas (0) no_special_alignment;
1378 +extern char aligned_as_int;
1379 +char _Alignas (0) _Alignas (int) aligned_as_int;
1380 +
1381 +// Check _Alignof.
1382 +enum
1383 +{
1384 + int_alignment = _Alignof (int),
1385 + int_array_alignment = _Alignof (int[100]),
1386 + char_alignment = _Alignof (char)
1387 +};
1388 +_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
1389 +
1390 +// Check _Noreturn.
1391 +int _Noreturn does_not_return (void) { for (;;) continue; }
1392 +
1393 +// Check _Static_assert.
1394 +struct test_static_assert
1395 +{
1396 + int x;
1397 + _Static_assert (sizeof (int) <= sizeof (long int),
1398 + "_Static_assert does not work in struct");
1399 + long int y;
1400 +};
1401 +
1402 +// Check UTF-8 literals.
1403 +#define u8 syntax error!
1404 +char const utf8_literal[] = u8"happens to be ASCII" "another string";
1405 +
1406 +// Check duplicate typedefs.
1407 +typedef long *long_ptr;
1408 +typedef long int *long_ptr;
1409 +typedef long_ptr long_ptr;
1410 +
1411 +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
1412 +struct anonymous
1413 +{
1414 + union {
1415 + struct { int i; int j; };
1416 + struct { int k; long int l; } w;
1417 + };
1418 + int m;
1419 +} v1;
1420 +'
1421 +
1422 +# Test code for whether the C compiler supports C11 (body of main).
1423 +ac_c_conftest_c11_main='
1424 + _Static_assert ((offsetof (struct anonymous, i)
1425 + == offsetof (struct anonymous, w.k)),
1426 + "Anonymous union alignment botch");
1427 + v1.i = 2;
1428 + v1.w.k = 5;
1429 + ok |= v1.i != 5;
1430 +'
1431 +
1432 +# Test code for whether the C compiler supports C11 (complete).
1433 +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
1434 +${ac_c_conftest_c99_globals}
1435 +${ac_c_conftest_c11_globals}
1436 +
1437 +int
1438 +main (int argc, char **argv)
1439 +{
1440 + int ok = 0;
1441 + ${ac_c_conftest_c89_main}
1442 + ${ac_c_conftest_c99_main}
1443 + ${ac_c_conftest_c11_main}
1444 + return ok;
1445 +}
1446 +"
1447 +
1448 +# Test code for whether the C compiler supports C99 (complete).
1449 +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
1450 +${ac_c_conftest_c99_globals}
1451 +
1452 +int
1453 +main (int argc, char **argv)
1454 +{
1455 + int ok = 0;
1456 + ${ac_c_conftest_c89_main}
1457 + ${ac_c_conftest_c99_main}
1458 + return ok;
1459 +}
1460 +"
1461 +
1462 +# Test code for whether the C compiler supports C89 (complete).
1463 +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
1464 +
1465 +int
1466 +main (int argc, char **argv)
1467 +{
1468 + int ok = 0;
1469 + ${ac_c_conftest_c89_main}
1470 + return ok;
1471 +}
1472 +"
1473 +
1474 # Check that the precious variables saved in the cache have kept the same
1475 # value.
1476 ac_cache_corrupted=false
1477 @@ -1872,12 +2237,12 @@ for ac_var in $ac_precious_vars; do
1478 eval ac_new_val=\$ac_env_${ac_var}_value
1479 case $ac_old_set,$ac_new_set in
1480 set,)
1481 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1482 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1483 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1484 +printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,set)
1487 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1488 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1489 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1490 +printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1491 ac_cache_corrupted=: ;;
1492 ,);;
1493 *)
1494 @@ -1886,24 +2251,24 @@ $as_echo "$as_me: error: \`$ac_var' was
1495 ac_old_val_w=`echo x $ac_old_val`
1496 ac_new_val_w=`echo x $ac_new_val`
1497 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1498 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1499 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1500 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1501 +printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1502 ac_cache_corrupted=:
1503 else
1504 - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1505 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1506 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1507 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1508 eval $ac_var=\$ac_old_val
1509 fi
1510 - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1511 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1512 - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1513 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1514 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1515 +printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
1516 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1517 +printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
1518 fi;;
1519 esac
1520 # Pass precious variables to config.status.
1521 if test "$ac_new_set" = set; then
1522 case $ac_new_val in
1523 - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1524 + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1525 *) ac_arg=$ac_var=$ac_new_val ;;
1526 esac
1527 case " $ac_configure_args " in
1528 @@ -1913,11 +2278,12 @@ $as_echo "$as_me: current value: \`$ac
1529 fi
1530 done
1531 if $ac_cache_corrupted; then
1532 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1533 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1534 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1535 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1536 - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1537 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1538 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1539 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1540 +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
1541 + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
1542 + and start over" "$LINENO" 5
1543 fi
1544 ## -------------------- ##
1545 ## Main body of script. ##
1546 @@ -1934,15 +2300,39 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1547
1548
1549
1550 +
1551 +
1552 +
1553 # Check whether --with-rlm_krb5 was given.
1554 -if test "${with_rlm_krb5+set}" = set; then :
1555 +if test ${with_rlm_krb5+y}
1556 +then :
1557 withval=$with_rlm_krb5;
1558 fi
1559
1560
1561 -if test x$with_rlm_krb5 != xno; then
1562
1563 - ac_ext=c
1564 +
1565 +fail=
1566 +fr_status=
1567 +fr_features=
1568 +: > "config.report"
1569 +: > "config.report.tmp"
1570 +
1571 +
1572 +
1573 +if test x"$with_rlm_krb5" != xno; then
1574 +
1575 +
1576 +
1577 +
1578 +
1579 +
1580 +
1581 +
1582 +
1583 +
1584 +
1585 +ac_ext=c
1586 ac_cpp='$CPP $CPPFLAGS'
1587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1589 @@ -1950,11 +2340,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1590 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1592 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1593 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1594 -$as_echo_n "checking for $ac_word... " >&6; }
1595 -if ${ac_cv_prog_CC+:} false; then :
1596 - $as_echo_n "(cached) " >&6
1597 -else
1598 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1599 +printf %s "checking for $ac_word... " >&6; }
1600 +if test ${ac_cv_prog_CC+y}
1601 +then :
1602 + printf %s "(cached) " >&6
1603 +else $as_nop
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607 @@ -1962,11 +2353,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610 IFS=$as_save_IFS
1611 - test -z "$as_dir" && as_dir=.
1612 + case $as_dir in #(((
1613 + '') as_dir=./ ;;
1614 + */) ;;
1615 + *) as_dir=$as_dir/ ;;
1616 + esac
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1621 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625 done
1626 @@ -1977,11 +2372,11 @@ fi
1627 fi
1628 CC=$ac_cv_prog_CC
1629 if test -n "$CC"; then
1630 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1631 -$as_echo "$CC" >&6; }
1632 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1633 +printf "%s\n" "$CC" >&6; }
1634 else
1635 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1636 -$as_echo "no" >&6; }
1637 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1638 +printf "%s\n" "no" >&6; }
1639 fi
1640
1641
1642 @@ -1990,11 +2385,12 @@ if test -z "$ac_cv_prog_CC"; then
1643 ac_ct_CC=$CC
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645 set dummy gcc; ac_word=$2
1646 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1647 -$as_echo_n "checking for $ac_word... " >&6; }
1648 -if ${ac_cv_prog_ac_ct_CC+:} false; then :
1649 - $as_echo_n "(cached) " >&6
1650 -else
1651 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1652 +printf %s "checking for $ac_word... " >&6; }
1653 +if test ${ac_cv_prog_ac_ct_CC+y}
1654 +then :
1655 + printf %s "(cached) " >&6
1656 +else $as_nop
1657 if test -n "$ac_ct_CC"; then
1658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659 else
1660 @@ -2002,11 +2398,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1662 do
1663 IFS=$as_save_IFS
1664 - test -z "$as_dir" && as_dir=.
1665 + case $as_dir in #(((
1666 + '') as_dir=./ ;;
1667 + */) ;;
1668 + *) as_dir=$as_dir/ ;;
1669 + esac
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_ac_ct_CC="gcc"
1674 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678 done
1679 @@ -2017,11 +2417,11 @@ fi
1680 fi
1681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1682 if test -n "$ac_ct_CC"; then
1683 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1684 -$as_echo "$ac_ct_CC" >&6; }
1685 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1686 +printf "%s\n" "$ac_ct_CC" >&6; }
1687 else
1688 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1689 -$as_echo "no" >&6; }
1690 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1691 +printf "%s\n" "no" >&6; }
1692 fi
1693
1694 if test "x$ac_ct_CC" = x; then
1695 @@ -2029,8 +2429,8 @@ fi
1696 else
1697 case $cross_compiling:$ac_tool_warned in
1698 yes:)
1699 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1700 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1701 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1702 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1703 ac_tool_warned=yes ;;
1704 esac
1705 CC=$ac_ct_CC
1706 @@ -2043,11 +2443,12 @@ if test -z "$CC"; then
1707 if test -n "$ac_tool_prefix"; then
1708 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}cc; ac_word=$2
1710 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1711 -$as_echo_n "checking for $ac_word... " >&6; }
1712 -if ${ac_cv_prog_CC+:} false; then :
1713 - $as_echo_n "(cached) " >&6
1714 -else
1715 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1716 +printf %s "checking for $ac_word... " >&6; }
1717 +if test ${ac_cv_prog_CC+y}
1718 +then :
1719 + printf %s "(cached) " >&6
1720 +else $as_nop
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1723 else
1724 @@ -2055,11 +2456,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1726 do
1727 IFS=$as_save_IFS
1728 - test -z "$as_dir" && as_dir=.
1729 + case $as_dir in #(((
1730 + '') as_dir=./ ;;
1731 + */) ;;
1732 + *) as_dir=$as_dir/ ;;
1733 + esac
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CC="${ac_tool_prefix}cc"
1738 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742 done
1743 @@ -2070,11 +2475,11 @@ fi
1744 fi
1745 CC=$ac_cv_prog_CC
1746 if test -n "$CC"; then
1747 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1748 -$as_echo "$CC" >&6; }
1749 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1750 +printf "%s\n" "$CC" >&6; }
1751 else
1752 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1753 -$as_echo "no" >&6; }
1754 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1755 +printf "%s\n" "no" >&6; }
1756 fi
1757
1758
1759 @@ -2083,11 +2488,12 @@ fi
1760 if test -z "$CC"; then
1761 # Extract the first word of "cc", so it can be a program name with args.
1762 set dummy cc; ac_word=$2
1763 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1764 -$as_echo_n "checking for $ac_word... " >&6; }
1765 -if ${ac_cv_prog_CC+:} false; then :
1766 - $as_echo_n "(cached) " >&6
1767 -else
1768 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1769 +printf %s "checking for $ac_word... " >&6; }
1770 +if test ${ac_cv_prog_CC+y}
1771 +then :
1772 + printf %s "(cached) " >&6
1773 +else $as_nop
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776 else
1777 @@ -2096,15 +2502,19 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780 IFS=$as_save_IFS
1781 - test -z "$as_dir" && as_dir=.
1782 + case $as_dir in #(((
1783 + '') as_dir=./ ;;
1784 + */) ;;
1785 + *) as_dir=$as_dir/ ;;
1786 + esac
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1790 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1791 + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1792 ac_prog_rejected=yes
1793 continue
1794 fi
1795 ac_cv_prog_CC="cc"
1796 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1798 break 2
1799 fi
1800 done
1801 @@ -2120,18 +2530,18 @@ if test $ac_prog_rejected = yes; then
1802 # However, it has the same basename, so the bogon will be chosen
1803 # first if we set CC to just the basename; use the full file name.
1804 shift
1805 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1806 + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1807 fi
1808 fi
1809 fi
1810 fi
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1814 -$as_echo "$CC" >&6; }
1815 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1816 +printf "%s\n" "$CC" >&6; }
1817 else
1818 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1819 -$as_echo "no" >&6; }
1820 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1821 +printf "%s\n" "no" >&6; }
1822 fi
1823
1824
1825 @@ -2142,11 +2552,12 @@ if test -z "$CC"; then
1826 do
1827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1829 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1830 -$as_echo_n "checking for $ac_word... " >&6; }
1831 -if ${ac_cv_prog_CC+:} false; then :
1832 - $as_echo_n "(cached) " >&6
1833 -else
1834 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1835 +printf %s "checking for $ac_word... " >&6; }
1836 +if test ${ac_cv_prog_CC+y}
1837 +then :
1838 + printf %s "(cached) " >&6
1839 +else $as_nop
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 @@ -2154,11 +2565,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846 IFS=$as_save_IFS
1847 - test -z "$as_dir" && as_dir=.
1848 + case $as_dir in #(((
1849 + '') as_dir=./ ;;
1850 + */) ;;
1851 + *) as_dir=$as_dir/ ;;
1852 + esac
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1857 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1859 break 2
1860 fi
1861 done
1862 @@ -2169,11 +2584,11 @@ fi
1863 fi
1864 CC=$ac_cv_prog_CC
1865 if test -n "$CC"; then
1866 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1867 -$as_echo "$CC" >&6; }
1868 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1869 +printf "%s\n" "$CC" >&6; }
1870 else
1871 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1872 -$as_echo "no" >&6; }
1873 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1874 +printf "%s\n" "no" >&6; }
1875 fi
1876
1877
1878 @@ -2186,11 +2601,12 @@ if test -z "$CC"; then
1879 do
1880 # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy $ac_prog; ac_word=$2
1882 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1883 -$as_echo_n "checking for $ac_word... " >&6; }
1884 -if ${ac_cv_prog_ac_ct_CC+:} false; then :
1885 - $as_echo_n "(cached) " >&6
1886 -else
1887 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1888 +printf %s "checking for $ac_word... " >&6; }
1889 +if test ${ac_cv_prog_ac_ct_CC+y}
1890 +then :
1891 + printf %s "(cached) " >&6
1892 +else $as_nop
1893 if test -n "$ac_ct_CC"; then
1894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1895 else
1896 @@ -2198,11 +2614,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899 IFS=$as_save_IFS
1900 - test -z "$as_dir" && as_dir=.
1901 + case $as_dir in #(((
1902 + '') as_dir=./ ;;
1903 + */) ;;
1904 + *) as_dir=$as_dir/ ;;
1905 + esac
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_CC="$ac_prog"
1910 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1912 break 2
1913 fi
1914 done
1915 @@ -2213,11 +2633,11 @@ fi
1916 fi
1917 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1918 if test -n "$ac_ct_CC"; then
1919 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1920 -$as_echo "$ac_ct_CC" >&6; }
1921 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1922 +printf "%s\n" "$ac_ct_CC" >&6; }
1923 else
1924 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1925 -$as_echo "no" >&6; }
1926 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1927 +printf "%s\n" "no" >&6; }
1928 fi
1929
1930
1931 @@ -2229,34 +2649,138 @@ done
1932 else
1933 case $cross_compiling:$ac_tool_warned in
1934 yes:)
1935 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1936 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1937 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1938 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1939 +ac_tool_warned=yes ;;
1940 +esac
1941 + CC=$ac_ct_CC
1942 + fi
1943 +fi
1944 +
1945 +fi
1946 +if test -z "$CC"; then
1947 + if test -n "$ac_tool_prefix"; then
1948 + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
1949 +set dummy ${ac_tool_prefix}clang; ac_word=$2
1950 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1951 +printf %s "checking for $ac_word... " >&6; }
1952 +if test ${ac_cv_prog_CC+y}
1953 +then :
1954 + printf %s "(cached) " >&6
1955 +else $as_nop
1956 + if test -n "$CC"; then
1957 + ac_cv_prog_CC="$CC" # Let the user override the test.
1958 +else
1959 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 +for as_dir in $PATH
1961 +do
1962 + IFS=$as_save_IFS
1963 + case $as_dir in #(((
1964 + '') as_dir=./ ;;
1965 + */) ;;
1966 + *) as_dir=$as_dir/ ;;
1967 + esac
1968 + for ac_exec_ext in '' $ac_executable_extensions; do
1969 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1970 + ac_cv_prog_CC="${ac_tool_prefix}clang"
1971 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1972 + break 2
1973 + fi
1974 +done
1975 + done
1976 +IFS=$as_save_IFS
1977 +
1978 +fi
1979 +fi
1980 +CC=$ac_cv_prog_CC
1981 +if test -n "$CC"; then
1982 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1983 +printf "%s\n" "$CC" >&6; }
1984 +else
1985 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1986 +printf "%s\n" "no" >&6; }
1987 +fi
1988 +
1989 +
1990 +fi
1991 +if test -z "$ac_cv_prog_CC"; then
1992 + ac_ct_CC=$CC
1993 + # Extract the first word of "clang", so it can be a program name with args.
1994 +set dummy clang; ac_word=$2
1995 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1996 +printf %s "checking for $ac_word... " >&6; }
1997 +if test ${ac_cv_prog_ac_ct_CC+y}
1998 +then :
1999 + printf %s "(cached) " >&6
2000 +else $as_nop
2001 + if test -n "$ac_ct_CC"; then
2002 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 +else
2004 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 +for as_dir in $PATH
2006 +do
2007 + IFS=$as_save_IFS
2008 + case $as_dir in #(((
2009 + '') as_dir=./ ;;
2010 + */) ;;
2011 + *) as_dir=$as_dir/ ;;
2012 + esac
2013 + for ac_exec_ext in '' $ac_executable_extensions; do
2014 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2015 + ac_cv_prog_ac_ct_CC="clang"
2016 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2017 + break 2
2018 + fi
2019 +done
2020 + done
2021 +IFS=$as_save_IFS
2022 +
2023 +fi
2024 +fi
2025 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 +if test -n "$ac_ct_CC"; then
2027 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2028 +printf "%s\n" "$ac_ct_CC" >&6; }
2029 +else
2030 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2031 +printf "%s\n" "no" >&6; }
2032 +fi
2033 +
2034 + if test "x$ac_ct_CC" = x; then
2035 + CC=""
2036 + else
2037 + case $cross_compiling:$ac_tool_warned in
2038 +yes:)
2039 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2040 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2041 ac_tool_warned=yes ;;
2042 esac
2043 CC=$ac_ct_CC
2044 fi
2045 +else
2046 + CC="$ac_cv_prog_CC"
2047 fi
2048
2049 fi
2050
2051
2052 -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2053 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2054 +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2055 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2056 as_fn_error $? "no acceptable C compiler found in \$PATH
2057 See \`config.log' for more details" "$LINENO" 5; }
2058
2059 # Provide some information about the compiler.
2060 -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2061 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2062 set X $ac_compile
2063 ac_compiler=$2
2064 -for ac_option in --version -v -V -qversion; do
2065 +for ac_option in --version -v -V -qversion -version; do
2066 { { ac_try="$ac_compiler $ac_option >&5"
2067 case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 -$as_echo "$ac_try_echo"; } >&5
2073 +printf "%s\n" "$ac_try_echo"; } >&5
2074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2075 ac_status=$?
2076 if test -s conftest.err; then
2077 @@ -2266,7 +2790,7 @@ $as_echo "$ac_try_echo"; } >&5
2078 cat conftest.er1 >&5
2079 fi
2080 rm -f conftest.er1 conftest.err
2081 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; }
2084 done
2085
2086 @@ -2274,7 +2798,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
2087 /* end confdefs.h. */
2088
2089 int
2090 -main ()
2091 +main (void)
2092 {
2093
2094 ;
2095 @@ -2286,9 +2810,9 @@ ac_clean_files="$ac_clean_files a.out a.
2096 # Try to create an executable without -o first, disregard a.out.
2097 # It will help us diagnose broken compilers, and finding out an intuition
2098 # of exeext.
2099 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2100 -$as_echo_n "checking whether the C compiler works... " >&6; }
2101 -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2102 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2103 +printf %s "checking whether the C compiler works... " >&6; }
2104 +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2105
2106 # The possible output files:
2107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2108 @@ -2309,11 +2833,12 @@ case "(($ac_try" in
2109 *) ac_try_echo=$ac_try;;
2110 esac
2111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2112 -$as_echo "$ac_try_echo"; } >&5
2113 +printf "%s\n" "$ac_try_echo"; } >&5
2114 (eval "$ac_link_default") 2>&5
2115 ac_status=$?
2116 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 - test $ac_status = 0; }; then :
2118 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 + test $ac_status = 0; }
2120 +then :
2121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2123 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2124 @@ -2330,7 +2855,7 @@ do
2125 # certainly right.
2126 break;;
2127 *.* )
2128 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2129 + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2130 then :; else
2131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132 fi
2133 @@ -2346,44 +2871,46 @@ do
2134 done
2135 test "$ac_cv_exeext" = no && ac_cv_exeext=
2136
2137 -else
2138 +else $as_nop
2139 ac_file=''
2140 fi
2141 -if test -z "$ac_file"; then :
2142 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2143 -$as_echo "no" >&6; }
2144 -$as_echo "$as_me: failed program was:" >&5
2145 +if test -z "$ac_file"
2146 +then :
2147 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2148 +printf "%s\n" "no" >&6; }
2149 +printf "%s\n" "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2156 as_fn_error 77 "C compiler cannot create executables
2157 See \`config.log' for more details" "$LINENO" 5; }
2158 -else
2159 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2160 -$as_echo "yes" >&6; }
2161 -fi
2162 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2163 -$as_echo_n "checking for C compiler default output file name... " >&6; }
2164 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2165 -$as_echo "$ac_file" >&6; }
2166 +else $as_nop
2167 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2168 +printf "%s\n" "yes" >&6; }
2169 +fi
2170 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2171 +printf %s "checking for C compiler default output file name... " >&6; }
2172 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2173 +printf "%s\n" "$ac_file" >&6; }
2174 ac_exeext=$ac_cv_exeext
2175
2176 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2179 -$as_echo_n "checking for suffix of executables... " >&6; }
2180 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2181 +printf %s "checking for suffix of executables... " >&6; }
2182 if { { ac_try="$ac_link"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 -$as_echo "$ac_try_echo"; } >&5
2189 +printf "%s\n" "$ac_try_echo"; } >&5
2190 (eval "$ac_link") 2>&5
2191 ac_status=$?
2192 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 - test $ac_status = 0; }; then :
2194 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 + test $ac_status = 0; }
2196 +then :
2197 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2198 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2199 # work properly (i.e., refer to `conftest.exe'), while it won't with
2200 @@ -2397,15 +2924,15 @@ for ac_file in conftest.exe conftest con
2201 * ) break;;
2202 esac
2203 done
2204 -else
2205 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 +else $as_nop
2208 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2210 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2211 See \`config.log' for more details" "$LINENO" 5; }
2212 fi
2213 rm -f conftest conftest$ac_cv_exeext
2214 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2215 -$as_echo "$ac_cv_exeext" >&6; }
2216 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2217 +printf "%s\n" "$ac_cv_exeext" >&6; }
2218
2219 rm -f conftest.$ac_ext
2220 EXEEXT=$ac_cv_exeext
2221 @@ -2414,7 +2941,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
2222 /* end confdefs.h. */
2223 #include <stdio.h>
2224 int
2225 -main ()
2226 +main (void)
2227 {
2228 FILE *f = fopen ("conftest.out", "w");
2229 return ferror (f) || fclose (f) != 0;
2230 @@ -2426,8 +2953,8 @@ _ACEOF
2231 ac_clean_files="$ac_clean_files conftest.out"
2232 # Check that the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2235 -$as_echo_n "checking whether we are cross compiling... " >&6; }
2236 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2237 +printf %s "checking whether we are cross compiling... " >&6; }
2238 if test "$cross_compiling" != yes; then
2239 { { ac_try="$ac_link"
2240 case "(($ac_try" in
2241 @@ -2435,10 +2962,10 @@ case "(($ac_try" in
2242 *) ac_try_echo=$ac_try;;
2243 esac
2244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245 -$as_echo "$ac_try_echo"; } >&5
2246 +printf "%s\n" "$ac_try_echo"; } >&5
2247 (eval "$ac_link") 2>&5
2248 ac_status=$?
2249 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251 test $ac_status = 0; }
2252 if { ac_try='./conftest$ac_cv_exeext'
2253 { { case "(($ac_try" in
2254 @@ -2446,39 +2973,40 @@ $as_echo "$ac_try_echo"; } >&5
2255 *) ac_try_echo=$ac_try;;
2256 esac
2257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 -$as_echo "$ac_try_echo"; } >&5
2259 +printf "%s\n" "$ac_try_echo"; } >&5
2260 (eval "$ac_try") 2>&5
2261 ac_status=$?
2262 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2264 test $ac_status = 0; }; }; then
2265 cross_compiling=no
2266 else
2267 if test "$cross_compiling" = maybe; then
2268 cross_compiling=yes
2269 else
2270 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272 -as_fn_error $? "cannot run C compiled programs.
2273 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2275 +as_fn_error 77 "cannot run C compiled programs.
2276 If you meant to cross compile, use \`--host'.
2277 See \`config.log' for more details" "$LINENO" 5; }
2278 fi
2279 fi
2280 fi
2281 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2282 -$as_echo "$cross_compiling" >&6; }
2283 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2284 +printf "%s\n" "$cross_compiling" >&6; }
2285
2286 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2287 ac_clean_files=$ac_clean_files_save
2288 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2289 -$as_echo_n "checking for suffix of object files... " >&6; }
2290 -if ${ac_cv_objext+:} false; then :
2291 - $as_echo_n "(cached) " >&6
2292 -else
2293 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2294 +printf %s "checking for suffix of object files... " >&6; }
2295 +if test ${ac_cv_objext+y}
2296 +then :
2297 + printf %s "(cached) " >&6
2298 +else $as_nop
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2301
2302 int
2303 -main ()
2304 +main (void)
2305 {
2306
2307 ;
2308 @@ -2492,11 +3020,12 @@ case "(($ac_try" in
2309 *) ac_try_echo=$ac_try;;
2310 esac
2311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312 -$as_echo "$ac_try_echo"; } >&5
2313 +printf "%s\n" "$ac_try_echo"; } >&5
2314 (eval "$ac_compile") 2>&5
2315 ac_status=$?
2316 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 - test $ac_status = 0; }; then :
2318 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 + test $ac_status = 0; }
2320 +then :
2321 for ac_file in conftest.o conftest.obj conftest.*; do
2322 test -f "$ac_file" || continue;
2323 case $ac_file in
2324 @@ -2505,31 +3034,32 @@ $as_echo "$ac_try_echo"; } >&5
2325 break;;
2326 esac
2327 done
2328 -else
2329 - $as_echo "$as_me: failed program was:" >&5
2330 +else $as_nop
2331 + printf "%s\n" "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2338 as_fn_error $? "cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details" "$LINENO" 5; }
2340 fi
2341 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342 fi
2343 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2344 -$as_echo "$ac_cv_objext" >&6; }
2345 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2346 +printf "%s\n" "$ac_cv_objext" >&6; }
2347 OBJEXT=$ac_cv_objext
2348 ac_objext=$OBJEXT
2349 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2350 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2351 -if ${ac_cv_c_compiler_gnu+:} false; then :
2352 - $as_echo_n "(cached) " >&6
2353 -else
2354 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
2355 +printf %s "checking whether the compiler supports GNU C... " >&6; }
2356 +if test ${ac_cv_c_compiler_gnu+y}
2357 +then :
2358 + printf %s "(cached) " >&6
2359 +else $as_nop
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2362
2363 int
2364 -main ()
2365 +main (void)
2366 {
2367 #ifndef __GNUC__
2368 choke me
2369 @@ -2539,29 +3069,33 @@ main ()
2370 return 0;
2371 }
2372 _ACEOF
2373 -if ac_fn_c_try_compile "$LINENO"; then :
2374 +if ac_fn_c_try_compile "$LINENO"
2375 +then :
2376 ac_compiler_gnu=yes
2377 -else
2378 +else $as_nop
2379 ac_compiler_gnu=no
2380 fi
2381 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2384
2385 fi
2386 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2387 -$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2388 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2389 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
2390 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 +
2392 if test $ac_compiler_gnu = yes; then
2393 GCC=yes
2394 else
2395 GCC=
2396 fi
2397 -ac_test_CFLAGS=${CFLAGS+set}
2398 +ac_test_CFLAGS=${CFLAGS+y}
2399 ac_save_CFLAGS=$CFLAGS
2400 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2401 -$as_echo_n "checking whether $CC accepts -g... " >&6; }
2402 -if ${ac_cv_prog_cc_g+:} false; then :
2403 - $as_echo_n "(cached) " >&6
2404 -else
2405 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2406 +printf %s "checking whether $CC accepts -g... " >&6; }
2407 +if test ${ac_cv_prog_cc_g+y}
2408 +then :
2409 + printf %s "(cached) " >&6
2410 +else $as_nop
2411 ac_save_c_werror_flag=$ac_c_werror_flag
2412 ac_c_werror_flag=yes
2413 ac_cv_prog_cc_g=no
2414 @@ -2570,57 +3104,60 @@ else
2415 /* end confdefs.h. */
2416
2417 int
2418 -main ()
2419 +main (void)
2420 {
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 -if ac_fn_c_try_compile "$LINENO"; then :
2427 +if ac_fn_c_try_compile "$LINENO"
2428 +then :
2429 ac_cv_prog_cc_g=yes
2430 -else
2431 +else $as_nop
2432 CFLAGS=""
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2435
2436 int
2437 -main ()
2438 +main (void)
2439 {
2440
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 -if ac_fn_c_try_compile "$LINENO"; then :
2446 +if ac_fn_c_try_compile "$LINENO"
2447 +then :
2448
2449 -else
2450 +else $as_nop
2451 ac_c_werror_flag=$ac_save_c_werror_flag
2452 CFLAGS="-g"
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2455
2456 int
2457 -main ()
2458 +main (void)
2459 {
2460
2461 ;
2462 return 0;
2463 }
2464 _ACEOF
2465 -if ac_fn_c_try_compile "$LINENO"; then :
2466 +if ac_fn_c_try_compile "$LINENO"
2467 +then :
2468 ac_cv_prog_cc_g=yes
2469 fi
2470 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2472 fi
2473 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2475 fi
2476 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2478 ac_c_werror_flag=$ac_save_c_werror_flag
2479 fi
2480 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2481 -$as_echo "$ac_cv_prog_cc_g" >&6; }
2482 -if test "$ac_test_CFLAGS" = set; then
2483 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2484 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
2485 +if test $ac_test_CFLAGS; then
2486 CFLAGS=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488 if test "$GCC" = yes; then
2489 @@ -2635,94 +3172,144 @@ else
2490 CFLAGS=
2491 fi
2492 fi
2493 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2494 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2495 -if ${ac_cv_prog_cc_c89+:} false; then :
2496 - $as_echo_n "(cached) " >&6
2497 -else
2498 - ac_cv_prog_cc_c89=no
2499 +ac_prog_cc_stdc=no
2500 +if test x$ac_prog_cc_stdc = xno
2501 +then :
2502 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
2503 +printf %s "checking for $CC option to enable C11 features... " >&6; }
2504 +if test ${ac_cv_prog_cc_c11+y}
2505 +then :
2506 + printf %s "(cached) " >&6
2507 +else $as_nop
2508 + ac_cv_prog_cc_c11=no
2509 ac_save_CC=$CC
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 -#include <stdarg.h>
2513 -#include <stdio.h>
2514 -struct stat;
2515 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2516 -struct buf { int x; };
2517 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
2518 -static char *e (p, i)
2519 - char **p;
2520 - int i;
2521 -{
2522 - return p[i];
2523 -}
2524 -static char *f (char * (*g) (char **, int), char **p, ...)
2525 -{
2526 - char *s;
2527 - va_list v;
2528 - va_start (v,p);
2529 - s = g (p, va_arg (v,int));
2530 - va_end (v);
2531 - return s;
2532 -}
2533 -
2534 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2535 - function prototypes and stuff, but not '\xHH' hex character constants.
2536 - These don't provoke an error unfortunately, instead are silently treated
2537 - as 'x'. The following induces an error, until -std is added to get
2538 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2539 - array size at least. It's necessary to write '\x00'==0 to get something
2540 - that's true only with -std. */
2541 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2542 +$ac_c_conftest_c11_program
2543 +_ACEOF
2544 +for ac_arg in '' -std=gnu11
2545 +do
2546 + CC="$ac_save_CC $ac_arg"
2547 + if ac_fn_c_try_compile "$LINENO"
2548 +then :
2549 + ac_cv_prog_cc_c11=$ac_arg
2550 +fi
2551 +rm -f core conftest.err conftest.$ac_objext conftest.beam
2552 + test "x$ac_cv_prog_cc_c11" != "xno" && break
2553 +done
2554 +rm -f conftest.$ac_ext
2555 +CC=$ac_save_CC
2556 +fi
2557
2558 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2559 - inside strings and character constants. */
2560 -#define FOO(x) 'x'
2561 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2562 +if test "x$ac_cv_prog_cc_c11" = xno
2563 +then :
2564 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2565 +printf "%s\n" "unsupported" >&6; }
2566 +else $as_nop
2567 + if test "x$ac_cv_prog_cc_c11" = x
2568 +then :
2569 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2570 +printf "%s\n" "none needed" >&6; }
2571 +else $as_nop
2572 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
2573 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
2574 + CC="$CC $ac_cv_prog_cc_c11"
2575 +fi
2576 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
2577 + ac_prog_cc_stdc=c11
2578 +fi
2579 +fi
2580 +if test x$ac_prog_cc_stdc = xno
2581 +then :
2582 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
2583 +printf %s "checking for $CC option to enable C99 features... " >&6; }
2584 +if test ${ac_cv_prog_cc_c99+y}
2585 +then :
2586 + printf %s "(cached) " >&6
2587 +else $as_nop
2588 + ac_cv_prog_cc_c99=no
2589 +ac_save_CC=$CC
2590 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 +/* end confdefs.h. */
2592 +$ac_c_conftest_c99_program
2593 +_ACEOF
2594 +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
2595 +do
2596 + CC="$ac_save_CC $ac_arg"
2597 + if ac_fn_c_try_compile "$LINENO"
2598 +then :
2599 + ac_cv_prog_cc_c99=$ac_arg
2600 +fi
2601 +rm -f core conftest.err conftest.$ac_objext conftest.beam
2602 + test "x$ac_cv_prog_cc_c99" != "xno" && break
2603 +done
2604 +rm -f conftest.$ac_ext
2605 +CC=$ac_save_CC
2606 +fi
2607
2608 -int test (int i, double x);
2609 -struct s1 {int (*f) (int a);};
2610 -struct s2 {int (*f) (double a);};
2611 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2612 -int argc;
2613 -char **argv;
2614 -int
2615 -main ()
2616 -{
2617 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2618 - ;
2619 - return 0;
2620 -}
2621 +if test "x$ac_cv_prog_cc_c99" = xno
2622 +then :
2623 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2624 +printf "%s\n" "unsupported" >&6; }
2625 +else $as_nop
2626 + if test "x$ac_cv_prog_cc_c99" = x
2627 +then :
2628 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2629 +printf "%s\n" "none needed" >&6; }
2630 +else $as_nop
2631 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
2632 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
2633 + CC="$CC $ac_cv_prog_cc_c99"
2634 +fi
2635 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
2636 + ac_prog_cc_stdc=c99
2637 +fi
2638 +fi
2639 +if test x$ac_prog_cc_stdc = xno
2640 +then :
2641 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
2642 +printf %s "checking for $CC option to enable C89 features... " >&6; }
2643 +if test ${ac_cv_prog_cc_c89+y}
2644 +then :
2645 + printf %s "(cached) " >&6
2646 +else $as_nop
2647 + ac_cv_prog_cc_c89=no
2648 +ac_save_CC=$CC
2649 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 +/* end confdefs.h. */
2651 +$ac_c_conftest_c89_program
2652 _ACEOF
2653 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2654 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2655 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2656 do
2657 CC="$ac_save_CC $ac_arg"
2658 - if ac_fn_c_try_compile "$LINENO"; then :
2659 + if ac_fn_c_try_compile "$LINENO"
2660 +then :
2661 ac_cv_prog_cc_c89=$ac_arg
2662 fi
2663 -rm -f core conftest.err conftest.$ac_objext
2664 +rm -f core conftest.err conftest.$ac_objext conftest.beam
2665 test "x$ac_cv_prog_cc_c89" != "xno" && break
2666 done
2667 rm -f conftest.$ac_ext
2668 CC=$ac_save_CC
2669 -
2670 fi
2671 -# AC_CACHE_VAL
2672 -case "x$ac_cv_prog_cc_c89" in
2673 - x)
2674 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2675 -$as_echo "none needed" >&6; } ;;
2676 - xno)
2677 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2678 -$as_echo "unsupported" >&6; } ;;
2679 - *)
2680 - CC="$CC $ac_cv_prog_cc_c89"
2681 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2682 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2683 -esac
2684 -if test "x$ac_cv_prog_cc_c89" != xno; then :
2685
2686 +if test "x$ac_cv_prog_cc_c89" = xno
2687 +then :
2688 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2689 +printf "%s\n" "unsupported" >&6; }
2690 +else $as_nop
2691 + if test "x$ac_cv_prog_cc_c89" = x
2692 +then :
2693 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2694 +printf "%s\n" "none needed" >&6; }
2695 +else $as_nop
2696 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2697 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
2698 + CC="$CC $ac_cv_prog_cc_c89"
2699 +fi
2700 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
2701 + ac_prog_cc_stdc=c89
2702 +fi
2703 fi
2704
2705 ac_ext=c
2706 @@ -2731,45 +3318,41 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS con
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710 - ac_ext=c
2711 +ac_ext=c
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2717 -$as_echo_n "checking how to run the C preprocessor... " >&6; }
2718 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2719 +printf %s "checking how to run the C preprocessor... " >&6; }
2720 # On Suns, sometimes $CPP names a directory.
2721 if test -n "$CPP" && test -d "$CPP"; then
2722 CPP=
2723 fi
2724 if test -z "$CPP"; then
2725 - if ${ac_cv_prog_CPP+:} false; then :
2726 - $as_echo_n "(cached) " >&6
2727 -else
2728 - # Double quotes because CPP needs to be expanded
2729 - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2730 + if test ${ac_cv_prog_CPP+y}
2731 +then :
2732 + printf %s "(cached) " >&6
2733 +else $as_nop
2734 + # Double quotes because $CC needs to be expanded
2735 + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
2736 do
2737 ac_preproc_ok=false
2738 for ac_c_preproc_warn_flag in '' yes
2739 do
2740 # Use a header file that comes with gcc, so configuring glibc
2741 # with a fresh cross-compiler works.
2742 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2743 - # <limits.h> exists even on freestanding compilers.
2744 # On the NeXT, cc -E runs the code through the compiler's parser,
2745 # not just through cpp. "Syntax error" is here to catch this case.
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h. */
2748 -#ifdef __STDC__
2749 -# include <limits.h>
2750 -#else
2751 -# include <assert.h>
2752 -#endif
2753 +#include <limits.h>
2754 Syntax error
2755 _ACEOF
2756 -if ac_fn_c_try_cpp "$LINENO"; then :
2757 +if ac_fn_c_try_cpp "$LINENO"
2758 +then :
2759
2760 -else
2761 +else $as_nop
2762 # Broken: fails on valid input.
2763 continue
2764 fi
2765 @@ -2781,10 +3364,11 @@ rm -f conftest.err conftest.i conftest.$
2766 /* end confdefs.h. */
2767 #include <ac_nonexistent.h>
2768 _ACEOF
2769 -if ac_fn_c_try_cpp "$LINENO"; then :
2770 +if ac_fn_c_try_cpp "$LINENO"
2771 +then :
2772 # Broken: success on invalid input.
2773 continue
2774 -else
2775 +else $as_nop
2776 # Passes both tests.
2777 ac_preproc_ok=:
2778 break
2779 @@ -2794,7 +3378,8 @@ rm -f conftest.err conftest.i conftest.$
2780 done
2781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2782 rm -f conftest.i conftest.err conftest.$ac_ext
2783 -if $ac_preproc_ok; then :
2784 +if $ac_preproc_ok
2785 +then :
2786 break
2787 fi
2788
2789 @@ -2806,29 +3391,24 @@ fi
2790 else
2791 ac_cv_prog_CPP=$CPP
2792 fi
2793 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2794 -$as_echo "$CPP" >&6; }
2795 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2796 +printf "%s\n" "$CPP" >&6; }
2797 ac_preproc_ok=false
2798 for ac_c_preproc_warn_flag in '' yes
2799 do
2800 # Use a header file that comes with gcc, so configuring glibc
2801 # with a fresh cross-compiler works.
2802 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2803 - # <limits.h> exists even on freestanding compilers.
2804 # On the NeXT, cc -E runs the code through the compiler's parser,
2805 # not just through cpp. "Syntax error" is here to catch this case.
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2808 -#ifdef __STDC__
2809 -# include <limits.h>
2810 -#else
2811 -# include <assert.h>
2812 -#endif
2813 +#include <limits.h>
2814 Syntax error
2815 _ACEOF
2816 -if ac_fn_c_try_cpp "$LINENO"; then :
2817 +if ac_fn_c_try_cpp "$LINENO"
2818 +then :
2819
2820 -else
2821 +else $as_nop
2822 # Broken: fails on valid input.
2823 continue
2824 fi
2825 @@ -2840,10 +3420,11 @@ rm -f conftest.err conftest.i conftest.$
2826 /* end confdefs.h. */
2827 #include <ac_nonexistent.h>
2828 _ACEOF
2829 -if ac_fn_c_try_cpp "$LINENO"; then :
2830 +if ac_fn_c_try_cpp "$LINENO"
2831 +then :
2832 # Broken: success on invalid input.
2833 continue
2834 -else
2835 +else $as_nop
2836 # Passes both tests.
2837 ac_preproc_ok=:
2838 break
2839 @@ -2853,11 +3434,12 @@ rm -f conftest.err conftest.i conftest.$
2840 done
2841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2842 rm -f conftest.i conftest.err conftest.$ac_ext
2843 -if $ac_preproc_ok; then :
2844 +if $ac_preproc_ok
2845 +then :
2846
2847 -else
2848 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850 +else $as_nop
2851 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2853 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2854 See \`config.log' for more details" "$LINENO" 5; }
2855 fi
2856 @@ -2869,31 +3451,32 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
2857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858
2859
2860 - rlm_krb5_dir=
2861 +rlm_krb5_dir=
2862
2863 # Check whether --with-rlm-krb5-dir was given.
2864 -if test "${with_rlm_krb5_dir+set}" = set; then :
2865 - withval=$with_rlm_krb5_dir; case "$withval" in
2866 - no)
2867 +if test ${with_rlm_krb5_dir+y}
2868 +then :
2869 + withval=$with_rlm_krb5_dir; case "$withval" in
2870 + no)
2871 as_fn_error $? "Need rlm-krb5-dir" "$LINENO" 5
2872 ;;
2873 - yes)
2874 + yes)
2875 ;;
2876 - *)
2877 + *)
2878 rlm_krb5_dir="$withval"
2879 ;;
2880 - esac
2881 -
2882 + esac
2883 fi
2884
2885
2886 - # Extract the first word of "krb5-config", so it can be a program name with args.
2887 +# Extract the first word of "krb5-config", so it can be a program name with args.
2888 set dummy krb5-config; ac_word=$2
2889 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 -$as_echo_n "checking for $ac_word... " >&6; }
2891 -if ${ac_cv_path_krb5_config+:} false; then :
2892 - $as_echo_n "(cached) " >&6
2893 -else
2894 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 +printf %s "checking for $ac_word... " >&6; }
2896 +if test ${ac_cv_path_krb5_config+y}
2897 +then :
2898 + printf %s "(cached) " >&6
2899 +else $as_nop
2900 case $krb5_config in
2901 [\\/]* | ?:[\\/]*)
2902 ac_cv_path_krb5_config="$krb5_config" # Let the user override the test with a path.
2903 @@ -2904,11 +3487,15 @@ as_dummy="${rlm_krb5_dir}/bin:${PATH}:/u
2904 for as_dir in $as_dummy
2905 do
2906 IFS=$as_save_IFS
2907 - test -z "$as_dir" && as_dir=.
2908 + case $as_dir in #(((
2909 + '') as_dir=./ ;;
2910 + */) ;;
2911 + *) as_dir=$as_dir/ ;;
2912 + esac
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 - ac_cv_path_krb5_config="$as_dir/$ac_word$ac_exec_ext"
2916 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2918 + ac_cv_path_krb5_config="$as_dir$ac_word$ac_exec_ext"
2919 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 @@ -2921,1920 +3508,1639 @@ esac
2924 fi
2925 krb5_config=$ac_cv_path_krb5_config
2926 if test -n "$krb5_config"; then
2927 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_config" >&5
2928 -$as_echo "$krb5_config" >&6; }
2929 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_config" >&5
2930 +printf "%s\n" "$krb5_config" >&6; }
2931 else
2932 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 -$as_echo "no" >&6; }
2934 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 +printf "%s\n" "no" >&6; }
2936 fi
2937
2938
2939 - if test "$krb5_config" != 'not-found'; then
2940 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config CFLAGS" >&5
2941 -$as_echo_n "checking krb5-config CFLAGS... " >&6; }
2942 - SMART_CPPFLAGS=$($krb5_config --cflags)
2943 - SMART_CPPFLAGS=$(echo "$SMART_CPPFLAGS" | sed 's/-I[ ]*/-isystem /g')
2944 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$SMART_CPPFLAGS\"" >&5
2945 -$as_echo "\"$SMART_CPPFLAGS\"" >&6; }
2946 -
2947 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config LDFLAGS" >&5
2948 -$as_echo_n "checking krb5-config LDFLAGS... " >&6; }
2949 - SMART_LIBS=$($krb5_config --libs)
2950 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SMART_LIBS}" >&5
2951 -$as_echo "${SMART_LIBS}" >&6; }
2952 -
2953 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config reported version" >&5
2954 -$as_echo_n "checking krb5-config reported version... " >&6; }
2955 - krb5_version_raw=$($krb5_config --version)
2956 -
2957 - krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
2958 - awk '{split($(4),v,"."); if (v["3"] = "") v["3"] = "0"; print v["1"]v["2"]v["3"] }')
2959 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb5_version_raw} ($krb5_version)" >&5
2960 -$as_echo "${krb5_version_raw} ($krb5_version)" >&6; }
2961 -
2962 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config reported vendor" >&5
2963 -$as_echo_n "checking krb5-config reported vendor... " >&6; }
2964 - krb5_vendor=$($krb5_config --vendor)
2965 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb5_vendor}" >&5
2966 -$as_echo "${krb5_vendor}" >&6; }
2967 -
2968 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking canonical API type" >&5
2969 -$as_echo_n "checking canonical API type... " >&6; }
2970 - if test "$krb5_vendor" = "Massachusetts Institute of Technology" || \
2971 - echo "$krb5_vendor" | grep -i 'MIT' > /dev/null 2>&1 || \
2972 - echo "$krb5_version_raw" | grep -i 'MIT' > /dev/null 2>&1 ; then
2973 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: MIT" >&5
2974 -$as_echo "MIT" >&6; }
2975 - krb5_api_type='mit'
2976 - else
2977 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: HEIMDAL" >&5
2978 -$as_echo "HEIMDAL" >&6; }
2979 - krb5_api_type='heimdal'
2980 - fi
2981 +if test "$krb5_config" != 'not-found'; then
2982 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking krb5-config CFLAGS" >&5
2983 +printf %s "checking krb5-config CFLAGS... " >&6; }
2984 + SMART_CPPFLAGS=$($krb5_config --cflags)
2985 + SMART_CPPFLAGS=$(echo "$SMART_CPPFLAGS" | sed 's/-I[ ]*/-isystem /g')
2986 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$SMART_CPPFLAGS\"" >&5
2987 +printf "%s\n" "\"$SMART_CPPFLAGS\"" >&6; }
2988 +
2989 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking krb5-config LDFLAGS" >&5
2990 +printf %s "checking krb5-config LDFLAGS... " >&6; }
2991 + SMART_LIBS=$($krb5_config --libs)
2992 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SMART_LIBS}" >&5
2993 +printf "%s\n" "${SMART_LIBS}" >&6; }
2994 +
2995 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking krb5-config reported version" >&5
2996 +printf %s "checking krb5-config reported version... " >&6; }
2997 + krb5_version_raw=$($krb5_config --version)
2998 +
2999 + krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
3000 + awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }')
3001 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${krb5_version_raw} ($krb5_version)" >&5
3002 +printf "%s\n" "${krb5_version_raw} ($krb5_version)" >&6; }
3003 +
3004 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking krb5-config reported vendor" >&5
3005 +printf %s "checking krb5-config reported vendor... " >&6; }
3006 + krb5_vendor=$($krb5_config --vendor)
3007 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${krb5_vendor}" >&5
3008 +printf "%s\n" "${krb5_vendor}" >&6; }
3009 +
3010 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking canonical API type" >&5
3011 +printf %s "checking canonical API type... " >&6; }
3012 + if test "$krb5_vendor" = "Massachusetts Institute of Technology" || \
3013 + echo "$krb5_vendor" | grep -i 'MIT' > /dev/null 2>&1 || \
3014 + echo "$krb5_version_raw" | grep -i 'MIT' > /dev/null 2>&1 ; then
3015 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: MIT" >&5
3016 +printf "%s\n" "MIT" >&6; }
3017 + krb5_api_type='mit'
3018 else
3019 - smart_try_dir="$rlm_krb5_dir/include"
3020 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: HEIMDAL" >&5
3021 +printf "%s\n" "HEIMDAL" >&6; }
3022 + krb5_api_type='heimdal'
3023 + fi
3024 +else
3025 + smart_try_dir="$rlm_krb5_dir/include"
3026
3027
3028
3029 ac_safe=`echo "krb5.h" | sed 'y%./+-%__pm%'`
3030 +
3031 +if test "x" = "x"; then
3032 + sm_pkg=`echo "${ac_safe}" | sed 's/.h//;s/^lib//'`
3033 +else
3034 + sm_pkg=""
3035 +fi
3036 +
3037 old_CPPFLAGS="$CPPFLAGS"
3038 -smart_include=
3039 -smart_include_dir="/usr/local/include /opt/include"
3040 +smart_include_dir="/usr/local/include /opt/include /usr/local/${sm_pkg}/include /opt/homebrew/include /opt/homebrew/opt/${sm_pkg}/include"
3041
3042 _smart_try_dir=
3043 _smart_include_dir=
3044
3045 for _prefix in $smart_prefix ""; do
3046 - for _dir in $smart_try_dir; do
3047 - _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
3048 - done
3049 +for _dir in $smart_try_dir; do
3050 + _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
3051 +done
3052
3053 - for _dir in $smart_include_dir; do
3054 - _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
3055 - done
3056 +for _dir in $smart_include_dir; do
3057 + _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
3058 +done
3059 done
3060
3061 if test "x$_smart_try_dir" != "x"; then
3062 - for try in $_smart_try_dir; do
3063 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
3064 -$as_echo_n "checking for krb5.h in $try... " >&6; }
3065 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
3066 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 +for try in $_smart_try_dir; do
3068 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
3069 +printf %s "checking for krb5.h in $try... " >&6; }
3070 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
3071 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3073
3074 - #include <krb5.h>
3075 +
3076 + #include <krb5.h>
3077 +
3078 int
3079 -main ()
3080 +main (void)
3081 {
3082 -int a = 1;
3083 +
3084 + int a = 1;
3085 +
3086 +
3087 ;
3088 return 0;
3089 }
3090 +
3091 _ACEOF
3092 -if ac_fn_c_try_compile "$LINENO"; then :
3093 +if ac_fn_c_try_compile "$LINENO"
3094 +then :
3095
3096 - smart_include="-isystem $try"
3097 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 -$as_echo "yes" >&6; }
3099 - break
3100 + smart_include="-isystem $try"
3101 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3102 +printf "%s\n" "yes" >&6; }
3103 + break
3104
3105 -else
3106 +else $as_nop
3107
3108 - smart_include=
3109 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 -$as_echo "no" >&6; }
3111 + smart_include=
3112 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 +printf "%s\n" "no" >&6; }
3114
3115 fi
3116 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 - done
3118 - CPPFLAGS="$old_CPPFLAGS"
3119 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3120 +done
3121 +CPPFLAGS="$old_CPPFLAGS"
3122 fi
3123
3124 if test "x$smart_include" = "x"; then
3125 - for _prefix in $smart_prefix; do
3126 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/krb5.h" >&5
3127 -$as_echo_n "checking for ${_prefix}/krb5.h... " >&6; }
3128 +for _prefix in $smart_prefix; do
3129 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/krb5.h" >&5
3130 +printf %s "checking for ${_prefix}/krb5.h... " >&6; }
3131
3132 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3135
3136 - #include <krb5.h>
3137 +
3138 + #include <krb5.h>
3139 +
3140 int
3141 -main ()
3142 +main (void)
3143 {
3144 -int a = 1;
3145 +
3146 + int a = 1;
3147 +
3148 +
3149 ;
3150 return 0;
3151 }
3152 +
3153 _ACEOF
3154 -if ac_fn_c_try_compile "$LINENO"; then :
3155 +if ac_fn_c_try_compile "$LINENO"
3156 +then :
3157
3158 - smart_include="-isystem ${_prefix}/"
3159 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 -$as_echo "yes" >&6; }
3161 - break
3162 + smart_include="-isystem ${_prefix}/"
3163 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 +printf "%s\n" "yes" >&6; }
3165 + break
3166
3167 -else
3168 +else $as_nop
3169
3170 - smart_include=
3171 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 -$as_echo "no" >&6; }
3173 + smart_include=
3174 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 +printf "%s\n" "no" >&6; }
3176
3177 fi
3178 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 - done
3180 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3181 +done
3182 fi
3183
3184 if test "x$smart_include" = "x"; then
3185 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
3186 -$as_echo_n "checking for krb5.h... " >&6; }
3187 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
3188 +printf %s "checking for krb5.h... " >&6; }
3189
3190 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 - #include <krb5.h>
3195 +
3196 + #include <krb5.h>
3197 +
3198 int
3199 -main ()
3200 +main (void)
3201 {
3202 -int a = 1;
3203 +
3204 + int a = 1;
3205 +
3206 +
3207 ;
3208 return 0;
3209 }
3210 +
3211 _ACEOF
3212 -if ac_fn_c_try_compile "$LINENO"; then :
3213 +if ac_fn_c_try_compile "$LINENO"
3214 +then :
3215
3216 - smart_include=" "
3217 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3218 -$as_echo "yes" >&6; }
3219 - break
3220 + smart_include=" "
3221 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 +printf "%s\n" "yes" >&6; }
3223 + break
3224
3225 -else
3226 +else $as_nop
3227
3228 - smart_include=
3229 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 -$as_echo "no" >&6; }
3231 + smart_include=
3232 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 +printf "%s\n" "no" >&6; }
3234
3235 fi
3236 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3238 fi
3239
3240 if test "x$smart_include" = "x"; then
3241 -
3242 - for prefix in $smart_prefix; do
3243 -
3244 -
3245 -if test "x$LOCATE" != "x"; then
3246 - DIRS=
3247 - file="${_prefix}/${1}"
3248 -
3249 - for x in `${LOCATE} $file 2>/dev/null`; do
3250 - base=`echo $x | sed "s%/${file}%%"`
3251 - if test "x$x" = "x$base"; then
3252 - continue;
3253 - fi
3254 -
3255 - dir=`${DIRNAME} $x 2>/dev/null`
3256 - exclude=`echo ${dir} | ${GREP} /home`
3257 - if test "x$exclude" != "x"; then
3258 - continue
3259 - fi
3260 -
3261 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
3262 - if test "x$already" = "x"; then
3263 - DIRS="$DIRS $dir"
3264 - fi
3265 - done
3266 -fi
3267 -
3268 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
3269 -
3270 - done
3271 +for try in $_smart_include_dir; do
3272 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
3273 +printf %s "checking for krb5.h in $try... " >&6; }
3274 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
3275 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 +/* end confdefs.h. */
3277
3278
3279 -if test "x$LOCATE" != "x"; then
3280 - DIRS=
3281 - file=krb5.h
3282 -
3283 - for x in `${LOCATE} $file 2>/dev/null`; do
3284 - base=`echo $x | sed "s%/${file}%%"`
3285 - if test "x$x" = "x$base"; then
3286 - continue;
3287 - fi
3288 + #include <krb5.h>
3289
3290 - dir=`${DIRNAME} $x 2>/dev/null`
3291 - exclude=`echo ${dir} | ${GREP} /home`
3292 - if test "x$exclude" != "x"; then
3293 - continue
3294 - fi
3295 -
3296 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
3297 - if test "x$already" = "x"; then
3298 - DIRS="$DIRS $dir"
3299 - fi
3300 - done
3301 -fi
3302 -
3303 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
3304 +int
3305 +main (void)
3306 +{
3307
3308 + int a = 1;
3309
3310 - for try in $_smart_include_dir; do
3311 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
3312 -$as_echo_n "checking for krb5.h in $try... " >&6; }
3313 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
3314 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 -/* end confdefs.h. */
3316
3317 - #include <krb5.h>
3318 -int
3319 -main ()
3320 -{
3321 -int a = 1;
3322 ;
3323 return 0;
3324 }
3325 +
3326 _ACEOF
3327 -if ac_fn_c_try_compile "$LINENO"; then :
3328 +if ac_fn_c_try_compile "$LINENO"
3329 +then :
3330
3331 - smart_include="-isystem $try"
3332 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 -$as_echo "yes" >&6; }
3334 - break
3335 + smart_include="-isystem $try"
3336 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 +printf "%s\n" "yes" >&6; }
3338 + break
3339
3340 -else
3341 +else $as_nop
3342
3343 - smart_include=
3344 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 -$as_echo "no" >&6; }
3346 + smart_include=
3347 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 +printf "%s\n" "no" >&6; }
3349
3350 fi
3351 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 - done
3353 - CPPFLAGS="$old_CPPFLAGS"
3354 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3355 +done
3356 +CPPFLAGS="$old_CPPFLAGS"
3357 fi
3358
3359 if test "x$smart_include" != "x"; then
3360 - eval "ac_cv_header_$ac_safe=yes"
3361 - CPPFLAGS="$smart_include $old_CPPFLAGS"
3362 - SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
3363 +eval "ac_cv_header_$ac_safe=yes"
3364 +CPPFLAGS="$smart_include $old_CPPFLAGS"
3365 +SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
3366 fi
3367
3368 smart_prefix=
3369
3370 - if test "$ac_cv_header_krb5_h" != "yes"; then
3371 - fail="$fail krb5.h"
3372 - fi
3373 + if test "$ac_cv_header_krb5_h" != "yes"; then
3374 +
3375 +fail="$fail krb5.h"
3376
3377 - krb5libcrypto=
3378 - smart_try_dir="$rlm_krb5_dir/lib"
3379 + fi
3380 +
3381 + krb5libcrypto=
3382 + smart_try_dir="$rlm_krb5_dir/lib"
3383
3384
3385 sm_lib_safe=`echo "k5crypto" | sed 'y%./+-%__p_%'`
3386 sm_func_safe=`echo "krb5_encrypt_data" | sed 'y%./+-%__p_%'`
3387
3388 +if test "x" = "x"; then
3389 + sm_pkg="${sm_lib_safe}"
3390 +else
3391 + sm_pkg=""
3392 +fi
3393 +
3394 old_LIBS="$LIBS"
3395 old_CPPFLAGS="$CPPFLAGS"
3396 smart_lib=
3397 smart_ldflags=
3398 -smart_lib_dir=
3399 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
3400
3401 if test "x$smart_try_dir" != "x"; then
3402 - for try in $smart_try_dir; do
3403 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3404 -$as_echo_n "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3405 - LIBS="-lk5crypto $old_LIBS"
3406 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3407 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 +for try in $smart_try_dir; do
3409 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3410 +printf %s "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3411 + LIBS="-lk5crypto $old_LIBS"
3412 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3413 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415 extern char krb5_encrypt_data();
3416 int
3417 -main ()
3418 +main (void)
3419 {
3420 krb5_encrypt_data()
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 -if ac_fn_c_try_link "$LINENO"; then :
3426 -
3427 - smart_lib="-lk5crypto"
3428 - smart_ldflags="-L$try -Wl,-rpath,$try"
3429 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 -$as_echo "yes" >&6; }
3431 - break
3432 +if ac_fn_c_try_link "$LINENO"
3433 +then :
3434
3435 -else
3436 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 -$as_echo "no" >&6; }
3438 + smart_lib="-lk5crypto"
3439 + smart_ldflags="-L$try -Wl,-rpath,$try"
3440 + smart_ld_found="$try"
3441 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442 +printf "%s\n" "yes" >&6; }
3443 + break
3444 +
3445 +else $as_nop
3446 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 +printf "%s\n" "no" >&6; }
3448 fi
3449 -rm -f core conftest.err conftest.$ac_objext \
3450 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3451 conftest$ac_exeext conftest.$ac_ext
3452 - done
3453 - LIBS="$old_LIBS"
3454 - CPPFLAGS="$old_CPPFLAGS"
3455 +done
3456 +LIBS="$old_LIBS"
3457 +CPPFLAGS="$old_CPPFLAGS"
3458 fi
3459
3460 if test "x$smart_lib" = "x"; then
3461 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto" >&5
3462 -$as_echo_n "checking for krb5_encrypt_data in -lk5crypto... " >&6; }
3463 - LIBS="-lk5crypto $old_LIBS"
3464 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto" >&5
3465 +printf %s "checking for krb5_encrypt_data in -lk5crypto... " >&6; }
3466 +LIBS="-lk5crypto $old_LIBS"
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469 extern char krb5_encrypt_data();
3470 int
3471 -main ()
3472 +main (void)
3473 {
3474 krb5_encrypt_data()
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 -if ac_fn_c_try_link "$LINENO"; then :
3480 +if ac_fn_c_try_link "$LINENO"
3481 +then :
3482
3483 - smart_lib="-lk5crypto"
3484 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485 -$as_echo "yes" >&6; }
3486 -
3487 -else
3488 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 -$as_echo "no" >&6; }
3490 + smart_lib="-lk5crypto"
3491 + smart_ld_found=""
3492 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493 +printf "%s\n" "yes" >&6; }
3494 +
3495 +else $as_nop
3496 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 +printf "%s\n" "no" >&6; }
3498 fi
3499 -rm -f core conftest.err conftest.$ac_objext \
3500 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3501 conftest$ac_exeext conftest.$ac_ext
3502 - LIBS="$old_LIBS"
3503 +LIBS="$old_LIBS"
3504 fi
3505
3506 if test "x$smart_lib" = "x"; then
3507 -
3508 -
3509 -if test "x$LOCATE" != "x"; then
3510 - DIRS=
3511 - file=libk5crypto${libltdl_cv_shlibext}
3512 -
3513 - for x in `${LOCATE} $file 2>/dev/null`; do
3514 - base=`echo $x | sed "s%/${file}%%"`
3515 - if test "x$x" = "x$base"; then
3516 - continue;
3517 - fi
3518 -
3519 - dir=`${DIRNAME} $x 2>/dev/null`
3520 - exclude=`echo ${dir} | ${GREP} /home`
3521 - if test "x$exclude" != "x"; then
3522 - continue
3523 - fi
3524 -
3525 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3526 - if test "x$already" = "x"; then
3527 - DIRS="$DIRS $dir"
3528 - fi
3529 - done
3530 -fi
3531 -
3532 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3533 -
3534 -
3535 -
3536 -if test "x$LOCATE" != "x"; then
3537 - DIRS=
3538 - file=libk5crypto.a
3539 -
3540 - for x in `${LOCATE} $file 2>/dev/null`; do
3541 - base=`echo $x | sed "s%/${file}%%"`
3542 - if test "x$x" = "x$base"; then
3543 - continue;
3544 - fi
3545 -
3546 - dir=`${DIRNAME} $x 2>/dev/null`
3547 - exclude=`echo ${dir} | ${GREP} /home`
3548 - if test "x$exclude" != "x"; then
3549 - continue
3550 - fi
3551 -
3552 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3553 - if test "x$already" = "x"; then
3554 - DIRS="$DIRS $dir"
3555 - fi
3556 - done
3557 -fi
3558 -
3559 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3560 -
3561 -
3562 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3563 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3564 -$as_echo_n "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3565 - LIBS="-lk5crypto $old_LIBS"
3566 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3567 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 +for try in $smart_lib_dir; do
3569 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3570 +printf %s "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3571 + LIBS="-lk5crypto $old_LIBS"
3572 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3573 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575 extern char krb5_encrypt_data();
3576 int
3577 -main ()
3578 +main (void)
3579 {
3580 krb5_encrypt_data()
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 -if ac_fn_c_try_link "$LINENO"; then :
3586 -
3587 - smart_lib="-lk5crypto"
3588 - smart_ldflags="-L$try -Wl,-rpath,$try"
3589 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3590 -$as_echo "yes" >&6; }
3591 - break
3592 +if ac_fn_c_try_link "$LINENO"
3593 +then :
3594
3595 -else
3596 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 -$as_echo "no" >&6; }
3598 + smart_lib="-lk5crypto"
3599 + smart_ldflags="-L$try -Wl,-rpath,$try"
3600 + smart_ld_found="$try"
3601 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3602 +printf "%s\n" "yes" >&6; }
3603 + break
3604 +
3605 +else $as_nop
3606 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 +printf "%s\n" "no" >&6; }
3608 fi
3609 -rm -f core conftest.err conftest.$ac_objext \
3610 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3611 conftest$ac_exeext conftest.$ac_ext
3612 - done
3613 - LIBS="$old_LIBS"
3614 - CPPFLAGS="$old_CPPFLAGS"
3615 +done
3616 +LIBS="$old_LIBS"
3617 +CPPFLAGS="$old_CPPFLAGS"
3618 fi
3619
3620 if test "x$smart_lib" != "x"; then
3621 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3622 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
3623 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3624 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3625 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
3626 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3627 +SMART_LD_FOUND="$smart_ld_found"
3628 fi
3629
3630 - if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
3631 - krb5libcrypto="-lk5crypto"
3632 - fi
3633 + if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
3634 + krb5libcrypto="-lk5crypto"
3635 + fi
3636
3637 - if test "x$krb5libcrypto" = x; then
3638 + if test "x$krb5libcrypto" = x; then
3639
3640
3641 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
3642 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
3643
3644 +if test "x" = "x"; then
3645 + sm_pkg="${sm_lib_safe}"
3646 +else
3647 + sm_pkg=""
3648 +fi
3649 +
3650 old_LIBS="$LIBS"
3651 old_CPPFLAGS="$CPPFLAGS"
3652 smart_lib=
3653 smart_ldflags=
3654 -smart_lib_dir=
3655 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
3656
3657 if test "x$smart_try_dir" != "x"; then
3658 - for try in $smart_try_dir; do
3659 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3660 -$as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
3661 - LIBS="-lcrypto $old_LIBS"
3662 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3663 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 +for try in $smart_try_dir; do
3665 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3666 +printf %s "checking for DH_new in -lcrypto in $try... " >&6; }
3667 + LIBS="-lcrypto $old_LIBS"
3668 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3669 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3671 extern char DH_new();
3672 int
3673 -main ()
3674 +main (void)
3675 {
3676 DH_new()
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 -if ac_fn_c_try_link "$LINENO"; then :
3682 -
3683 - smart_lib="-lcrypto"
3684 - smart_ldflags="-L$try -Wl,-rpath,$try"
3685 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 -$as_echo "yes" >&6; }
3687 - break
3688 +if ac_fn_c_try_link "$LINENO"
3689 +then :
3690
3691 -else
3692 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 -$as_echo "no" >&6; }
3694 + smart_lib="-lcrypto"
3695 + smart_ldflags="-L$try -Wl,-rpath,$try"
3696 + smart_ld_found="$try"
3697 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698 +printf "%s\n" "yes" >&6; }
3699 + break
3700 +
3701 +else $as_nop
3702 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 +printf "%s\n" "no" >&6; }
3704 fi
3705 -rm -f core conftest.err conftest.$ac_objext \
3706 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3707 conftest$ac_exeext conftest.$ac_ext
3708 - done
3709 - LIBS="$old_LIBS"
3710 - CPPFLAGS="$old_CPPFLAGS"
3711 +done
3712 +LIBS="$old_LIBS"
3713 +CPPFLAGS="$old_CPPFLAGS"
3714 fi
3715
3716 if test "x$smart_lib" = "x"; then
3717 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
3718 -$as_echo_n "checking for DH_new in -lcrypto... " >&6; }
3719 - LIBS="-lcrypto $old_LIBS"
3720 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
3721 +printf %s "checking for DH_new in -lcrypto... " >&6; }
3722 +LIBS="-lcrypto $old_LIBS"
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 extern char DH_new();
3726 int
3727 -main ()
3728 +main (void)
3729 {
3730 DH_new()
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 -if ac_fn_c_try_link "$LINENO"; then :
3736 -
3737 - smart_lib="-lcrypto"
3738 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3739 -$as_echo "yes" >&6; }
3740 +if ac_fn_c_try_link "$LINENO"
3741 +then :
3742
3743 -else
3744 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 -$as_echo "no" >&6; }
3746 + smart_lib="-lcrypto"
3747 + smart_ld_found=""
3748 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749 +printf "%s\n" "yes" >&6; }
3750 +
3751 +else $as_nop
3752 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 +printf "%s\n" "no" >&6; }
3754 fi
3755 -rm -f core conftest.err conftest.$ac_objext \
3756 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3757 conftest$ac_exeext conftest.$ac_ext
3758 - LIBS="$old_LIBS"
3759 +LIBS="$old_LIBS"
3760 fi
3761
3762 if test "x$smart_lib" = "x"; then
3763 -
3764 -
3765 -if test "x$LOCATE" != "x"; then
3766 - DIRS=
3767 - file=libcrypto${libltdl_cv_shlibext}
3768 -
3769 - for x in `${LOCATE} $file 2>/dev/null`; do
3770 - base=`echo $x | sed "s%/${file}%%"`
3771 - if test "x$x" = "x$base"; then
3772 - continue;
3773 - fi
3774 -
3775 - dir=`${DIRNAME} $x 2>/dev/null`
3776 - exclude=`echo ${dir} | ${GREP} /home`
3777 - if test "x$exclude" != "x"; then
3778 - continue
3779 - fi
3780 -
3781 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3782 - if test "x$already" = "x"; then
3783 - DIRS="$DIRS $dir"
3784 - fi
3785 - done
3786 -fi
3787 -
3788 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3789 -
3790 -
3791 -
3792 -if test "x$LOCATE" != "x"; then
3793 - DIRS=
3794 - file=libcrypto.a
3795 -
3796 - for x in `${LOCATE} $file 2>/dev/null`; do
3797 - base=`echo $x | sed "s%/${file}%%"`
3798 - if test "x$x" = "x$base"; then
3799 - continue;
3800 - fi
3801 -
3802 - dir=`${DIRNAME} $x 2>/dev/null`
3803 - exclude=`echo ${dir} | ${GREP} /home`
3804 - if test "x$exclude" != "x"; then
3805 - continue
3806 - fi
3807 -
3808 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3809 - if test "x$already" = "x"; then
3810 - DIRS="$DIRS $dir"
3811 - fi
3812 - done
3813 -fi
3814 -
3815 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3816 -
3817 -
3818 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3819 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3820 -$as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
3821 - LIBS="-lcrypto $old_LIBS"
3822 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3823 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 +for try in $smart_lib_dir; do
3825 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3826 +printf %s "checking for DH_new in -lcrypto in $try... " >&6; }
3827 + LIBS="-lcrypto $old_LIBS"
3828 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3829 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3831 extern char DH_new();
3832 int
3833 -main ()
3834 +main (void)
3835 {
3836 DH_new()
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 -if ac_fn_c_try_link "$LINENO"; then :
3842 -
3843 - smart_lib="-lcrypto"
3844 - smart_ldflags="-L$try -Wl,-rpath,$try"
3845 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3846 -$as_echo "yes" >&6; }
3847 - break
3848 +if ac_fn_c_try_link "$LINENO"
3849 +then :
3850
3851 -else
3852 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 -$as_echo "no" >&6; }
3854 + smart_lib="-lcrypto"
3855 + smart_ldflags="-L$try -Wl,-rpath,$try"
3856 + smart_ld_found="$try"
3857 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3858 +printf "%s\n" "yes" >&6; }
3859 + break
3860 +
3861 +else $as_nop
3862 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 +printf "%s\n" "no" >&6; }
3864 fi
3865 -rm -f core conftest.err conftest.$ac_objext \
3866 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3867 conftest$ac_exeext conftest.$ac_ext
3868 - done
3869 - LIBS="$old_LIBS"
3870 - CPPFLAGS="$old_CPPFLAGS"
3871 +done
3872 +LIBS="$old_LIBS"
3873 +CPPFLAGS="$old_CPPFLAGS"
3874 fi
3875
3876 if test "x$smart_lib" != "x"; then
3877 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3878 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
3879 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3880 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3881 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
3882 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3883 +SMART_LD_FOUND="$smart_ld_found"
3884 fi
3885
3886 - if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
3887 - krb5libcrypto="-lcrypto"
3888 - fi
3889 + if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
3890 + krb5libcrypto="-lcrypto"
3891 fi
3892 + fi
3893
3894 - if test "x$krb5libcrypto" = x; then
3895 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&5
3896 -$as_echo "$as_me: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&2;}
3897 - fi
3898 + if test "x$krb5libcrypto" = x; then
3899 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&5
3900 +printf "%s\n" "$as_me: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&2;}
3901 + fi
3902
3903
3904
3905 sm_lib_safe=`echo "com_err" | sed 'y%./+-%__p_%'`
3906 sm_func_safe=`echo "set_com_err_hook" | sed 'y%./+-%__p_%'`
3907
3908 +if test "x" = "x"; then
3909 + sm_pkg="${sm_lib_safe}"
3910 +else
3911 + sm_pkg=""
3912 +fi
3913 +
3914 old_LIBS="$LIBS"
3915 old_CPPFLAGS="$CPPFLAGS"
3916 smart_lib=
3917 smart_ldflags=
3918 -smart_lib_dir=
3919 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
3920
3921 if test "x$smart_try_dir" != "x"; then
3922 - for try in $smart_try_dir; do
3923 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
3924 -$as_echo_n "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
3925 - LIBS="-lcom_err $old_LIBS"
3926 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3927 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 +for try in $smart_try_dir; do
3929 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
3930 +printf %s "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
3931 + LIBS="-lcom_err $old_LIBS"
3932 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3933 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 extern char set_com_err_hook();
3936 int
3937 -main ()
3938 +main (void)
3939 {
3940 set_com_err_hook()
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 -if ac_fn_c_try_link "$LINENO"; then :
3946 +if ac_fn_c_try_link "$LINENO"
3947 +then :
3948
3949 - smart_lib="-lcom_err"
3950 - smart_ldflags="-L$try -Wl,-rpath,$try"
3951 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 -$as_echo "yes" >&6; }
3953 - break
3954 -
3955 -else
3956 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 -$as_echo "no" >&6; }
3958 + smart_lib="-lcom_err"
3959 + smart_ldflags="-L$try -Wl,-rpath,$try"
3960 + smart_ld_found="$try"
3961 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962 +printf "%s\n" "yes" >&6; }
3963 + break
3964 +
3965 +else $as_nop
3966 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 +printf "%s\n" "no" >&6; }
3968 fi
3969 -rm -f core conftest.err conftest.$ac_objext \
3970 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3971 conftest$ac_exeext conftest.$ac_ext
3972 - done
3973 - LIBS="$old_LIBS"
3974 - CPPFLAGS="$old_CPPFLAGS"
3975 +done
3976 +LIBS="$old_LIBS"
3977 +CPPFLAGS="$old_CPPFLAGS"
3978 fi
3979
3980 if test "x$smart_lib" = "x"; then
3981 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err" >&5
3982 -$as_echo_n "checking for set_com_err_hook in -lcom_err... " >&6; }
3983 - LIBS="-lcom_err $old_LIBS"
3984 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err" >&5
3985 +printf %s "checking for set_com_err_hook in -lcom_err... " >&6; }
3986 +LIBS="-lcom_err $old_LIBS"
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 extern char set_com_err_hook();
3990 int
3991 -main ()
3992 +main (void)
3993 {
3994 set_com_err_hook()
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 -if ac_fn_c_try_link "$LINENO"; then :
4000 +if ac_fn_c_try_link "$LINENO"
4001 +then :
4002
4003 - smart_lib="-lcom_err"
4004 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005 -$as_echo "yes" >&6; }
4006 -
4007 -else
4008 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 -$as_echo "no" >&6; }
4010 + smart_lib="-lcom_err"
4011 + smart_ld_found=""
4012 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013 +printf "%s\n" "yes" >&6; }
4014 +
4015 +else $as_nop
4016 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 +printf "%s\n" "no" >&6; }
4018 fi
4019 -rm -f core conftest.err conftest.$ac_objext \
4020 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4021 conftest$ac_exeext conftest.$ac_ext
4022 - LIBS="$old_LIBS"
4023 +LIBS="$old_LIBS"
4024 fi
4025
4026 if test "x$smart_lib" = "x"; then
4027 -
4028 -
4029 -if test "x$LOCATE" != "x"; then
4030 - DIRS=
4031 - file=libcom_err${libltdl_cv_shlibext}
4032 -
4033 - for x in `${LOCATE} $file 2>/dev/null`; do
4034 - base=`echo $x | sed "s%/${file}%%"`
4035 - if test "x$x" = "x$base"; then
4036 - continue;
4037 - fi
4038 -
4039 - dir=`${DIRNAME} $x 2>/dev/null`
4040 - exclude=`echo ${dir} | ${GREP} /home`
4041 - if test "x$exclude" != "x"; then
4042 - continue
4043 - fi
4044 -
4045 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4046 - if test "x$already" = "x"; then
4047 - DIRS="$DIRS $dir"
4048 - fi
4049 - done
4050 -fi
4051 -
4052 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4053 -
4054 -
4055 -
4056 -if test "x$LOCATE" != "x"; then
4057 - DIRS=
4058 - file=libcom_err.a
4059 -
4060 - for x in `${LOCATE} $file 2>/dev/null`; do
4061 - base=`echo $x | sed "s%/${file}%%"`
4062 - if test "x$x" = "x$base"; then
4063 - continue;
4064 - fi
4065 -
4066 - dir=`${DIRNAME} $x 2>/dev/null`
4067 - exclude=`echo ${dir} | ${GREP} /home`
4068 - if test "x$exclude" != "x"; then
4069 - continue
4070 - fi
4071 -
4072 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4073 - if test "x$already" = "x"; then
4074 - DIRS="$DIRS $dir"
4075 - fi
4076 - done
4077 -fi
4078 -
4079 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4080 -
4081 -
4082 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4083 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
4084 -$as_echo_n "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
4085 - LIBS="-lcom_err $old_LIBS"
4086 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4087 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 +for try in $smart_lib_dir; do
4089 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
4090 +printf %s "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
4091 + LIBS="-lcom_err $old_LIBS"
4092 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4093 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 extern char set_com_err_hook();
4096 int
4097 -main ()
4098 +main (void)
4099 {
4100 set_com_err_hook()
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 -if ac_fn_c_try_link "$LINENO"; then :
4106 -
4107 - smart_lib="-lcom_err"
4108 - smart_ldflags="-L$try -Wl,-rpath,$try"
4109 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110 -$as_echo "yes" >&6; }
4111 - break
4112 +if ac_fn_c_try_link "$LINENO"
4113 +then :
4114
4115 -else
4116 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 -$as_echo "no" >&6; }
4118 + smart_lib="-lcom_err"
4119 + smart_ldflags="-L$try -Wl,-rpath,$try"
4120 + smart_ld_found="$try"
4121 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4122 +printf "%s\n" "yes" >&6; }
4123 + break
4124 +
4125 +else $as_nop
4126 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 +printf "%s\n" "no" >&6; }
4128 fi
4129 -rm -f core conftest.err conftest.$ac_objext \
4130 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4131 conftest$ac_exeext conftest.$ac_ext
4132 - done
4133 - LIBS="$old_LIBS"
4134 - CPPFLAGS="$old_CPPFLAGS"
4135 +done
4136 +LIBS="$old_LIBS"
4137 +CPPFLAGS="$old_CPPFLAGS"
4138 fi
4139
4140 if test "x$smart_lib" != "x"; then
4141 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4142 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
4143 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4144 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4145 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
4146 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4147 +SMART_LD_FOUND="$smart_ld_found"
4148 fi
4149
4150 - if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
4151 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the comm_err library isn't found!" >&5
4152 -$as_echo "$as_me: WARNING: the comm_err library isn't found!" >&2;}
4153 - fi
4154 + if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
4155 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the comm_err library isn't found!" >&5
4156 +printf "%s\n" "$as_me: WARNING: the comm_err library isn't found!" >&2;}
4157 + fi
4158
4159
4160
4161 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
4162 sm_func_safe=`echo "krb5_verify_user_opt" | sed 'y%./+-%__p_%'`
4163
4164 +if test "x" = "x"; then
4165 + sm_pkg="${sm_lib_safe}"
4166 +else
4167 + sm_pkg=""
4168 +fi
4169 +
4170 old_LIBS="$LIBS"
4171 old_CPPFLAGS="$CPPFLAGS"
4172 smart_lib=
4173 smart_ldflags=
4174 -smart_lib_dir=
4175 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
4176
4177 if test "x$smart_try_dir" != "x"; then
4178 - for try in $smart_try_dir; do
4179 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
4180 -$as_echo_n "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
4181 - LIBS="-lkrb5 $old_LIBS"
4182 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4183 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 +for try in $smart_try_dir; do
4185 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
4186 +printf %s "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
4187 + LIBS="-lkrb5 $old_LIBS"
4188 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4189 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 extern char krb5_verify_user_opt();
4192 int
4193 -main ()
4194 +main (void)
4195 {
4196 krb5_verify_user_opt()
4197 ;
4198 return 0;
4199 }
4200 _ACEOF
4201 -if ac_fn_c_try_link "$LINENO"; then :
4202 -
4203 - smart_lib="-lkrb5"
4204 - smart_ldflags="-L$try -Wl,-rpath,$try"
4205 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4206 -$as_echo "yes" >&6; }
4207 - break
4208 +if ac_fn_c_try_link "$LINENO"
4209 +then :
4210
4211 -else
4212 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 -$as_echo "no" >&6; }
4214 + smart_lib="-lkrb5"
4215 + smart_ldflags="-L$try -Wl,-rpath,$try"
4216 + smart_ld_found="$try"
4217 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4218 +printf "%s\n" "yes" >&6; }
4219 + break
4220 +
4221 +else $as_nop
4222 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 +printf "%s\n" "no" >&6; }
4224 fi
4225 -rm -f core conftest.err conftest.$ac_objext \
4226 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4227 conftest$ac_exeext conftest.$ac_ext
4228 - done
4229 - LIBS="$old_LIBS"
4230 - CPPFLAGS="$old_CPPFLAGS"
4231 +done
4232 +LIBS="$old_LIBS"
4233 +CPPFLAGS="$old_CPPFLAGS"
4234 fi
4235
4236 if test "x$smart_lib" = "x"; then
4237 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5" >&5
4238 -$as_echo_n "checking for krb5_verify_user_opt in -lkrb5... " >&6; }
4239 - LIBS="-lkrb5 $old_LIBS"
4240 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5" >&5
4241 +printf %s "checking for krb5_verify_user_opt in -lkrb5... " >&6; }
4242 +LIBS="-lkrb5 $old_LIBS"
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 extern char krb5_verify_user_opt();
4246 int
4247 -main ()
4248 +main (void)
4249 {
4250 krb5_verify_user_opt()
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 -if ac_fn_c_try_link "$LINENO"; then :
4256 +if ac_fn_c_try_link "$LINENO"
4257 +then :
4258
4259 - smart_lib="-lkrb5"
4260 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4261 -$as_echo "yes" >&6; }
4262 -
4263 -else
4264 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 -$as_echo "no" >&6; }
4266 + smart_lib="-lkrb5"
4267 + smart_ld_found=""
4268 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4269 +printf "%s\n" "yes" >&6; }
4270 +
4271 +else $as_nop
4272 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 +printf "%s\n" "no" >&6; }
4274 fi
4275 -rm -f core conftest.err conftest.$ac_objext \
4276 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4277 conftest$ac_exeext conftest.$ac_ext
4278 - LIBS="$old_LIBS"
4279 +LIBS="$old_LIBS"
4280 fi
4281
4282 if test "x$smart_lib" = "x"; then
4283 -
4284 -
4285 -if test "x$LOCATE" != "x"; then
4286 - DIRS=
4287 - file=libkrb5${libltdl_cv_shlibext}
4288 -
4289 - for x in `${LOCATE} $file 2>/dev/null`; do
4290 - base=`echo $x | sed "s%/${file}%%"`
4291 - if test "x$x" = "x$base"; then
4292 - continue;
4293 - fi
4294 -
4295 - dir=`${DIRNAME} $x 2>/dev/null`
4296 - exclude=`echo ${dir} | ${GREP} /home`
4297 - if test "x$exclude" != "x"; then
4298 - continue
4299 - fi
4300 -
4301 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4302 - if test "x$already" = "x"; then
4303 - DIRS="$DIRS $dir"
4304 - fi
4305 - done
4306 -fi
4307 -
4308 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4309 -
4310 -
4311 -
4312 -if test "x$LOCATE" != "x"; then
4313 - DIRS=
4314 - file=libkrb5.a
4315 -
4316 - for x in `${LOCATE} $file 2>/dev/null`; do
4317 - base=`echo $x | sed "s%/${file}%%"`
4318 - if test "x$x" = "x$base"; then
4319 - continue;
4320 - fi
4321 -
4322 - dir=`${DIRNAME} $x 2>/dev/null`
4323 - exclude=`echo ${dir} | ${GREP} /home`
4324 - if test "x$exclude" != "x"; then
4325 - continue
4326 - fi
4327 -
4328 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4329 - if test "x$already" = "x"; then
4330 - DIRS="$DIRS $dir"
4331 - fi
4332 - done
4333 -fi
4334 -
4335 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4336 -
4337 -
4338 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4339 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
4340 -$as_echo_n "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
4341 - LIBS="-lkrb5 $old_LIBS"
4342 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4343 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 +for try in $smart_lib_dir; do
4345 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
4346 +printf %s "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
4347 + LIBS="-lkrb5 $old_LIBS"
4348 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4349 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 extern char krb5_verify_user_opt();
4352 int
4353 -main ()
4354 +main (void)
4355 {
4356 krb5_verify_user_opt()
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 -if ac_fn_c_try_link "$LINENO"; then :
4362 -
4363 - smart_lib="-lkrb5"
4364 - smart_ldflags="-L$try -Wl,-rpath,$try"
4365 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 -$as_echo "yes" >&6; }
4367 - break
4368 +if ac_fn_c_try_link "$LINENO"
4369 +then :
4370
4371 -else
4372 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 -$as_echo "no" >&6; }
4374 + smart_lib="-lkrb5"
4375 + smart_ldflags="-L$try -Wl,-rpath,$try"
4376 + smart_ld_found="$try"
4377 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 +printf "%s\n" "yes" >&6; }
4379 + break
4380 +
4381 +else $as_nop
4382 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 +printf "%s\n" "no" >&6; }
4384 fi
4385 -rm -f core conftest.err conftest.$ac_objext \
4386 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4387 conftest$ac_exeext conftest.$ac_ext
4388 - done
4389 - LIBS="$old_LIBS"
4390 - CPPFLAGS="$old_CPPFLAGS"
4391 +done
4392 +LIBS="$old_LIBS"
4393 +CPPFLAGS="$old_CPPFLAGS"
4394 fi
4395
4396 if test "x$smart_lib" != "x"; then
4397 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4398 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
4399 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4400 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4401 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
4402 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4403 +SMART_LD_FOUND="$smart_ld_found"
4404 fi
4405
4406 - if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
4407 - krb5_api_type='heimdal'
4408 - else
4409 - krb5_api_type='mit'
4410 + if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
4411 + krb5_api_type='heimdal'
4412 + else
4413 + krb5_api_type='mit'
4414
4415
4416
4417 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
4418 sm_func_safe=`echo "krb5_get_init_creds_password" | sed 'y%./+-%__p_%'`
4419
4420 +if test "x" = "x"; then
4421 + sm_pkg="${sm_lib_safe}"
4422 +else
4423 + sm_pkg=""
4424 +fi
4425 +
4426 old_LIBS="$LIBS"
4427 old_CPPFLAGS="$CPPFLAGS"
4428 smart_lib=
4429 smart_ldflags=
4430 -smart_lib_dir=
4431 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
4432
4433 if test "x$smart_try_dir" != "x"; then
4434 - for try in $smart_try_dir; do
4435 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
4436 -$as_echo_n "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
4437 - LIBS="-lkrb5 $old_LIBS"
4438 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4439 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 +for try in $smart_try_dir; do
4441 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
4442 +printf %s "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
4443 + LIBS="-lkrb5 $old_LIBS"
4444 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4445 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 extern char krb5_get_init_creds_password();
4448 int
4449 -main ()
4450 +main (void)
4451 {
4452 krb5_get_init_creds_password()
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 -if ac_fn_c_try_link "$LINENO"; then :
4458 -
4459 - smart_lib="-lkrb5"
4460 - smart_ldflags="-L$try -Wl,-rpath,$try"
4461 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4462 -$as_echo "yes" >&6; }
4463 - break
4464 +if ac_fn_c_try_link "$LINENO"
4465 +then :
4466
4467 -else
4468 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 -$as_echo "no" >&6; }
4470 + smart_lib="-lkrb5"
4471 + smart_ldflags="-L$try -Wl,-rpath,$try"
4472 + smart_ld_found="$try"
4473 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4474 +printf "%s\n" "yes" >&6; }
4475 + break
4476 +
4477 +else $as_nop
4478 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 +printf "%s\n" "no" >&6; }
4480 fi
4481 -rm -f core conftest.err conftest.$ac_objext \
4482 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4483 conftest$ac_exeext conftest.$ac_ext
4484 - done
4485 - LIBS="$old_LIBS"
4486 - CPPFLAGS="$old_CPPFLAGS"
4487 +done
4488 +LIBS="$old_LIBS"
4489 +CPPFLAGS="$old_CPPFLAGS"
4490 fi
4491
4492 if test "x$smart_lib" = "x"; then
4493 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5" >&5
4494 -$as_echo_n "checking for krb5_get_init_creds_password in -lkrb5... " >&6; }
4495 - LIBS="-lkrb5 $old_LIBS"
4496 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5" >&5
4497 +printf %s "checking for krb5_get_init_creds_password in -lkrb5... " >&6; }
4498 +LIBS="-lkrb5 $old_LIBS"
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 extern char krb5_get_init_creds_password();
4502 int
4503 -main ()
4504 +main (void)
4505 {
4506 krb5_get_init_creds_password()
4507 ;
4508 return 0;
4509 }
4510 _ACEOF
4511 -if ac_fn_c_try_link "$LINENO"; then :
4512 +if ac_fn_c_try_link "$LINENO"
4513 +then :
4514
4515 - smart_lib="-lkrb5"
4516 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4517 -$as_echo "yes" >&6; }
4518 -
4519 -else
4520 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 -$as_echo "no" >&6; }
4522 + smart_lib="-lkrb5"
4523 + smart_ld_found=""
4524 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4525 +printf "%s\n" "yes" >&6; }
4526 +
4527 +else $as_nop
4528 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 +printf "%s\n" "no" >&6; }
4530 fi
4531 -rm -f core conftest.err conftest.$ac_objext \
4532 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4533 conftest$ac_exeext conftest.$ac_ext
4534 - LIBS="$old_LIBS"
4535 +LIBS="$old_LIBS"
4536 fi
4537
4538 if test "x$smart_lib" = "x"; then
4539 -
4540 -
4541 -if test "x$LOCATE" != "x"; then
4542 - DIRS=
4543 - file=libkrb5${libltdl_cv_shlibext}
4544 -
4545 - for x in `${LOCATE} $file 2>/dev/null`; do
4546 - base=`echo $x | sed "s%/${file}%%"`
4547 - if test "x$x" = "x$base"; then
4548 - continue;
4549 - fi
4550 -
4551 - dir=`${DIRNAME} $x 2>/dev/null`
4552 - exclude=`echo ${dir} | ${GREP} /home`
4553 - if test "x$exclude" != "x"; then
4554 - continue
4555 - fi
4556 -
4557 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4558 - if test "x$already" = "x"; then
4559 - DIRS="$DIRS $dir"
4560 - fi
4561 - done
4562 -fi
4563 -
4564 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4565 -
4566 -
4567 -
4568 -if test "x$LOCATE" != "x"; then
4569 - DIRS=
4570 - file=libkrb5.a
4571 -
4572 - for x in `${LOCATE} $file 2>/dev/null`; do
4573 - base=`echo $x | sed "s%/${file}%%"`
4574 - if test "x$x" = "x$base"; then
4575 - continue;
4576 - fi
4577 -
4578 - dir=`${DIRNAME} $x 2>/dev/null`
4579 - exclude=`echo ${dir} | ${GREP} /home`
4580 - if test "x$exclude" != "x"; then
4581 - continue
4582 - fi
4583 -
4584 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4585 - if test "x$already" = "x"; then
4586 - DIRS="$DIRS $dir"
4587 - fi
4588 - done
4589 -fi
4590 -
4591 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4592 -
4593 -
4594 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4595 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
4596 -$as_echo_n "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
4597 - LIBS="-lkrb5 $old_LIBS"
4598 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4599 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 +for try in $smart_lib_dir; do
4601 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
4602 +printf %s "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
4603 + LIBS="-lkrb5 $old_LIBS"
4604 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4605 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 extern char krb5_get_init_creds_password();
4608 int
4609 -main ()
4610 +main (void)
4611 {
4612 krb5_get_init_creds_password()
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 -if ac_fn_c_try_link "$LINENO"; then :
4618 -
4619 - smart_lib="-lkrb5"
4620 - smart_ldflags="-L$try -Wl,-rpath,$try"
4621 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4622 -$as_echo "yes" >&6; }
4623 - break
4624 +if ac_fn_c_try_link "$LINENO"
4625 +then :
4626
4627 -else
4628 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 -$as_echo "no" >&6; }
4630 + smart_lib="-lkrb5"
4631 + smart_ldflags="-L$try -Wl,-rpath,$try"
4632 + smart_ld_found="$try"
4633 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4634 +printf "%s\n" "yes" >&6; }
4635 + break
4636 +
4637 +else $as_nop
4638 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 +printf "%s\n" "no" >&6; }
4640 fi
4641 -rm -f core conftest.err conftest.$ac_objext \
4642 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4643 conftest$ac_exeext conftest.$ac_ext
4644 - done
4645 - LIBS="$old_LIBS"
4646 - CPPFLAGS="$old_CPPFLAGS"
4647 +done
4648 +LIBS="$old_LIBS"
4649 +CPPFLAGS="$old_CPPFLAGS"
4650 fi
4651
4652 if test "x$smart_lib" != "x"; then
4653 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4654 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
4655 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4656 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4657 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
4658 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4659 +SMART_LD_FOUND="$smart_ld_found"
4660 fi
4661
4662 - if test "x$ac_cv_lib_krb5_krb5_get_init_creds_password" != xyes; then
4663 - fail="$fail krb5"
4664 - fi
4665 - fi
4666 + if test "x$ac_cv_lib_krb5_krb5_get_init_creds_password" != xyes; then
4667
4668 +fail="$fail krb5"
4669 +
4670 + fi
4671 fi
4672
4673 - LDFLAGS="${LDFLAGS} ${SMART_LIBS}"
4674 - CFLAGS="${CFLAGS} ${SMART_CPPFLAGS}"
4675 +fi
4676
4677 - for ac_func in krb5_get_error_message krb5_free_error_string krb5_free_error_message
4678 -do :
4679 - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4680 -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4681 -if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4682 - cat >>confdefs.h <<_ACEOF
4683 -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4684 -_ACEOF
4685 +LDFLAGS="${LDFLAGS} ${SMART_LIBS}"
4686 +CFLAGS="${CFLAGS} ${SMART_CPPFLAGS}"
4687 +
4688 +ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
4689 +if test "x$ac_cv_func_krb5_get_error_message" = xyes
4690 +then :
4691 + printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
4692
4693 fi
4694 -done
4695 +ac_fn_c_check_func "$LINENO" "krb5_free_error_string" "ac_cv_func_krb5_free_error_string"
4696 +if test "x$ac_cv_func_krb5_free_error_string" = xyes
4697 +then :
4698 + printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_STRING 1" >>confdefs.h
4699
4700 - if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
4701 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
4702 - fi
4703 - if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
4704 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
4705 - fi
4706 - if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
4707 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
4708 - fi
4709 +fi
4710 +ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
4711 +if test "x$ac_cv_func_krb5_free_error_message" = xyes
4712 +then :
4713 + printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
4714
4715 - if test "$krb5threadsafe" != "no"; then
4716 - krb5threadsafe=
4717 +fi
4718 +
4719 +if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
4720 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
4721 +fi
4722 +if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
4723 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
4724 +fi
4725 +if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
4726 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
4727 +fi
4728 +
4729 +if test "$krb5threadsafe" != "no"; then
4730 + krb5threadsafe=
4731
4732
4733
4734 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
4735 sm_func_safe=`echo "krb5_is_thread_safe" | sed 'y%./+-%__p_%'`
4736
4737 +if test "x" = "x"; then
4738 + sm_pkg="${sm_lib_safe}"
4739 +else
4740 + sm_pkg=""
4741 +fi
4742 +
4743 old_LIBS="$LIBS"
4744 old_CPPFLAGS="$CPPFLAGS"
4745 smart_lib=
4746 smart_ldflags=
4747 -smart_lib_dir=
4748 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
4749
4750 if test "x$smart_try_dir" != "x"; then
4751 - for try in $smart_try_dir; do
4752 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4753 -$as_echo_n "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4754 - LIBS="-lkrb5 $old_LIBS"
4755 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4756 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 +for try in $smart_try_dir; do
4758 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4759 +printf %s "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4760 + LIBS="-lkrb5 $old_LIBS"
4761 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4762 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 extern char krb5_is_thread_safe();
4765 int
4766 -main ()
4767 +main (void)
4768 {
4769 krb5_is_thread_safe()
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 -if ac_fn_c_try_link "$LINENO"; then :
4775 +if ac_fn_c_try_link "$LINENO"
4776 +then :
4777
4778 - smart_lib="-lkrb5"
4779 - smart_ldflags="-L$try -Wl,-rpath,$try"
4780 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4781 -$as_echo "yes" >&6; }
4782 - break
4783 -
4784 -else
4785 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 -$as_echo "no" >&6; }
4787 + smart_lib="-lkrb5"
4788 + smart_ldflags="-L$try -Wl,-rpath,$try"
4789 + smart_ld_found="$try"
4790 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4791 +printf "%s\n" "yes" >&6; }
4792 + break
4793 +
4794 +else $as_nop
4795 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 +printf "%s\n" "no" >&6; }
4797 fi
4798 -rm -f core conftest.err conftest.$ac_objext \
4799 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4800 conftest$ac_exeext conftest.$ac_ext
4801 - done
4802 - LIBS="$old_LIBS"
4803 - CPPFLAGS="$old_CPPFLAGS"
4804 +done
4805 +LIBS="$old_LIBS"
4806 +CPPFLAGS="$old_CPPFLAGS"
4807 fi
4808
4809 if test "x$smart_lib" = "x"; then
4810 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5" >&5
4811 -$as_echo_n "checking for krb5_is_thread_safe in -lkrb5... " >&6; }
4812 - LIBS="-lkrb5 $old_LIBS"
4813 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5" >&5
4814 +printf %s "checking for krb5_is_thread_safe in -lkrb5... " >&6; }
4815 +LIBS="-lkrb5 $old_LIBS"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 extern char krb5_is_thread_safe();
4819 int
4820 -main ()
4821 +main (void)
4822 {
4823 krb5_is_thread_safe()
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 -if ac_fn_c_try_link "$LINENO"; then :
4829 -
4830 - smart_lib="-lkrb5"
4831 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4832 -$as_echo "yes" >&6; }
4833 +if ac_fn_c_try_link "$LINENO"
4834 +then :
4835
4836 -else
4837 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 -$as_echo "no" >&6; }
4839 + smart_lib="-lkrb5"
4840 + smart_ld_found=""
4841 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4842 +printf "%s\n" "yes" >&6; }
4843 +
4844 +else $as_nop
4845 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 +printf "%s\n" "no" >&6; }
4847 fi
4848 -rm -f core conftest.err conftest.$ac_objext \
4849 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4850 conftest$ac_exeext conftest.$ac_ext
4851 - LIBS="$old_LIBS"
4852 +LIBS="$old_LIBS"
4853 fi
4854
4855 if test "x$smart_lib" = "x"; then
4856 -
4857 -
4858 -if test "x$LOCATE" != "x"; then
4859 - DIRS=
4860 - file=libkrb5${libltdl_cv_shlibext}
4861 -
4862 - for x in `${LOCATE} $file 2>/dev/null`; do
4863 - base=`echo $x | sed "s%/${file}%%"`
4864 - if test "x$x" = "x$base"; then
4865 - continue;
4866 - fi
4867 -
4868 - dir=`${DIRNAME} $x 2>/dev/null`
4869 - exclude=`echo ${dir} | ${GREP} /home`
4870 - if test "x$exclude" != "x"; then
4871 - continue
4872 - fi
4873 -
4874 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4875 - if test "x$already" = "x"; then
4876 - DIRS="$DIRS $dir"
4877 - fi
4878 - done
4879 -fi
4880 -
4881 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4882 -
4883 -
4884 -
4885 -if test "x$LOCATE" != "x"; then
4886 - DIRS=
4887 - file=libkrb5.a
4888 -
4889 - for x in `${LOCATE} $file 2>/dev/null`; do
4890 - base=`echo $x | sed "s%/${file}%%"`
4891 - if test "x$x" = "x$base"; then
4892 - continue;
4893 - fi
4894 -
4895 - dir=`${DIRNAME} $x 2>/dev/null`
4896 - exclude=`echo ${dir} | ${GREP} /home`
4897 - if test "x$exclude" != "x"; then
4898 - continue
4899 - fi
4900 -
4901 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4902 - if test "x$already" = "x"; then
4903 - DIRS="$DIRS $dir"
4904 - fi
4905 - done
4906 -fi
4907 -
4908 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4909 -
4910 -
4911 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4912 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4913 -$as_echo_n "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4914 - LIBS="-lkrb5 $old_LIBS"
4915 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4916 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 +for try in $smart_lib_dir; do
4918 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4919 +printf %s "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4920 + LIBS="-lkrb5 $old_LIBS"
4921 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4922 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 extern char krb5_is_thread_safe();
4925 int
4926 -main ()
4927 +main (void)
4928 {
4929 krb5_is_thread_safe()
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 -if ac_fn_c_try_link "$LINENO"; then :
4935 +if ac_fn_c_try_link "$LINENO"
4936 +then :
4937
4938 - smart_lib="-lkrb5"
4939 - smart_ldflags="-L$try -Wl,-rpath,$try"
4940 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4941 -$as_echo "yes" >&6; }
4942 - break
4943 -
4944 -else
4945 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 -$as_echo "no" >&6; }
4947 + smart_lib="-lkrb5"
4948 + smart_ldflags="-L$try -Wl,-rpath,$try"
4949 + smart_ld_found="$try"
4950 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4951 +printf "%s\n" "yes" >&6; }
4952 + break
4953 +
4954 +else $as_nop
4955 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 +printf "%s\n" "no" >&6; }
4957 fi
4958 -rm -f core conftest.err conftest.$ac_objext \
4959 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4960 conftest$ac_exeext conftest.$ac_ext
4961 - done
4962 - LIBS="$old_LIBS"
4963 - CPPFLAGS="$old_CPPFLAGS"
4964 +done
4965 +LIBS="$old_LIBS"
4966 +CPPFLAGS="$old_CPPFLAGS"
4967 fi
4968
4969 if test "x$smart_lib" != "x"; then
4970 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4971 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
4972 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4973 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4974 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
4975 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4976 +SMART_LD_FOUND="$smart_ld_found"
4977 fi
4978
4979 - if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
4980 - if test "$cross_compiling" = yes; then :
4981 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4982 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4983 -as_fn_error $? "cannot run test program while cross compiling
4984 -See \`config.log' for more details" "$LINENO" 5; }
4985 -else
4986 + if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
4987 + if test "$cross_compiling" = yes
4988 +then :
4989 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
4990 +printf "%s\n" "$as_me: WARNING: cross compiling: not checking" >&2;}
4991 +else $as_nop
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #include <krb5.h>
4995 int
4996 -main ()
4997 +main (void)
4998 {
4999 return krb5_is_thread_safe() ? 0 : 1
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 -if ac_fn_c_try_run "$LINENO"; then :
5005 +if ac_fn_c_try_run "$LINENO"
5006 +then :
5007 krb5threadsafe="-DKRB5_IS_THREAD_SAFE"
5008 -else
5009 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libkrb5 is not threadsafe" >&5
5010 -$as_echo "$as_me: WARNING: libkrb5 is not threadsafe" >&2;}
5011 +else $as_nop
5012 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libkrb5 is not threadsafe" >&5
5013 +printf "%s\n" "$as_me: WARNING: libkrb5 is not threadsafe" >&2;}
5014 fi
5015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5016 conftest.$ac_objext conftest.beam conftest.$ac_ext
5017 fi
5018
5019 - fi
5020 - else
5021 - krb5threadsafe=""
5022 fi
5023 +else
5024 + krb5threadsafe=""
5025 +fi
5026
5027 - if test "$krb5_api_type" = "mit"; then
5028 +if test "$krb5_api_type" = "mit"; then
5029
5030
5031 ac_safe=`echo "com_err.h" | sed 'y%./+-%__pm%'`
5032 +
5033 +if test "x" = "x"; then
5034 + sm_pkg=`echo "${ac_safe}" | sed 's/.h//;s/^lib//'`
5035 +else
5036 + sm_pkg=""
5037 +fi
5038 +
5039 old_CPPFLAGS="$CPPFLAGS"
5040 -smart_include=
5041 -smart_include_dir="/usr/local/include /opt/include"
5042 +smart_include_dir="/usr/local/include /opt/include /usr/local/${sm_pkg}/include /opt/homebrew/include /opt/homebrew/opt/${sm_pkg}/include"
5043
5044 _smart_try_dir=
5045 _smart_include_dir=
5046
5047 for _prefix in $smart_prefix ""; do
5048 - for _dir in $smart_try_dir; do
5049 - _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
5050 - done
5051 +for _dir in $smart_try_dir; do
5052 + _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
5053 +done
5054
5055 - for _dir in $smart_include_dir; do
5056 - _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
5057 - done
5058 +for _dir in $smart_include_dir; do
5059 + _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
5060 +done
5061 done
5062
5063 if test "x$_smart_try_dir" != "x"; then
5064 - for try in $_smart_try_dir; do
5065 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
5066 -$as_echo_n "checking for com_err.h in $try... " >&6; }
5067 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
5068 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 +for try in $_smart_try_dir; do
5070 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
5071 +printf %s "checking for com_err.h in $try... " >&6; }
5072 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
5073 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075
5076 - #include <com_err.h>
5077 +
5078 + #include <com_err.h>
5079 +
5080 int
5081 -main ()
5082 +main (void)
5083 {
5084 -int a = 1;
5085 +
5086 + int a = 1;
5087 +
5088 +
5089 ;
5090 return 0;
5091 }
5092 +
5093 _ACEOF
5094 -if ac_fn_c_try_compile "$LINENO"; then :
5095 +if ac_fn_c_try_compile "$LINENO"
5096 +then :
5097
5098 - smart_include="-isystem $try"
5099 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5100 -$as_echo "yes" >&6; }
5101 - break
5102 + smart_include="-isystem $try"
5103 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 +printf "%s\n" "yes" >&6; }
5105 + break
5106
5107 -else
5108 +else $as_nop
5109
5110 - smart_include=
5111 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 -$as_echo "no" >&6; }
5113 + smart_include=
5114 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 +printf "%s\n" "no" >&6; }
5116
5117 fi
5118 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 - done
5120 - CPPFLAGS="$old_CPPFLAGS"
5121 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5122 +done
5123 +CPPFLAGS="$old_CPPFLAGS"
5124 fi
5125
5126 if test "x$smart_include" = "x"; then
5127 - for _prefix in $smart_prefix; do
5128 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/com_err.h" >&5
5129 -$as_echo_n "checking for ${_prefix}/com_err.h... " >&6; }
5130 +for _prefix in $smart_prefix; do
5131 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/com_err.h" >&5
5132 +printf %s "checking for ${_prefix}/com_err.h... " >&6; }
5133
5134 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137
5138 - #include <com_err.h>
5139 +
5140 + #include <com_err.h>
5141 +
5142 int
5143 -main ()
5144 +main (void)
5145 {
5146 -int a = 1;
5147 +
5148 + int a = 1;
5149 +
5150 +
5151 ;
5152 return 0;
5153 }
5154 +
5155 _ACEOF
5156 -if ac_fn_c_try_compile "$LINENO"; then :
5157 +if ac_fn_c_try_compile "$LINENO"
5158 +then :
5159
5160 - smart_include="-isystem ${_prefix}/"
5161 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162 -$as_echo "yes" >&6; }
5163 - break
5164 + smart_include="-isystem ${_prefix}/"
5165 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5166 +printf "%s\n" "yes" >&6; }
5167 + break
5168
5169 -else
5170 +else $as_nop
5171
5172 - smart_include=
5173 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 -$as_echo "no" >&6; }
5175 + smart_include=
5176 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 +printf "%s\n" "no" >&6; }
5178
5179 fi
5180 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 - done
5182 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5183 +done
5184 fi
5185
5186 if test "x$smart_include" = "x"; then
5187 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err.h" >&5
5188 -$as_echo_n "checking for com_err.h... " >&6; }
5189 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err.h" >&5
5190 +printf %s "checking for com_err.h... " >&6; }
5191
5192 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195
5196 - #include <com_err.h>
5197 +
5198 + #include <com_err.h>
5199 +
5200 int
5201 -main ()
5202 +main (void)
5203 {
5204 -int a = 1;
5205 +
5206 + int a = 1;
5207 +
5208 +
5209 ;
5210 return 0;
5211 }
5212 +
5213 _ACEOF
5214 -if ac_fn_c_try_compile "$LINENO"; then :
5215 +if ac_fn_c_try_compile "$LINENO"
5216 +then :
5217
5218 - smart_include=" "
5219 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220 -$as_echo "yes" >&6; }
5221 - break
5222 + smart_include=" "
5223 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5224 +printf "%s\n" "yes" >&6; }
5225 + break
5226
5227 -else
5228 +else $as_nop
5229
5230 - smart_include=
5231 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 -$as_echo "no" >&6; }
5233 + smart_include=
5234 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 +printf "%s\n" "no" >&6; }
5236
5237 fi
5238 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5240 fi
5241
5242 if test "x$smart_include" = "x"; then
5243 +for try in $_smart_include_dir; do
5244 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
5245 +printf %s "checking for com_err.h in $try... " >&6; }
5246 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
5247 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 +/* end confdefs.h. */
5249
5250 - for prefix in $smart_prefix; do
5251 -
5252 -
5253 -if test "x$LOCATE" != "x"; then
5254 - DIRS=
5255 - file="${_prefix}/${1}"
5256 -
5257 - for x in `${LOCATE} $file 2>/dev/null`; do
5258 - base=`echo $x | sed "s%/${file}%%"`
5259 - if test "x$x" = "x$base"; then
5260 - continue;
5261 - fi
5262 -
5263 - dir=`${DIRNAME} $x 2>/dev/null`
5264 - exclude=`echo ${dir} | ${GREP} /home`
5265 - if test "x$exclude" != "x"; then
5266 - continue
5267 - fi
5268 -
5269 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
5270 - if test "x$already" = "x"; then
5271 - DIRS="$DIRS $dir"
5272 - fi
5273 - done
5274 -fi
5275 -
5276 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
5277 -
5278 - done
5279 -
5280 -
5281 -if test "x$LOCATE" != "x"; then
5282 - DIRS=
5283 - file=com_err.h
5284 -
5285 - for x in `${LOCATE} $file 2>/dev/null`; do
5286 - base=`echo $x | sed "s%/${file}%%"`
5287 - if test "x$x" = "x$base"; then
5288 - continue;
5289 - fi
5290 -
5291 - dir=`${DIRNAME} $x 2>/dev/null`
5292 - exclude=`echo ${dir} | ${GREP} /home`
5293 - if test "x$exclude" != "x"; then
5294 - continue
5295 - fi
5296
5297 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
5298 - if test "x$already" = "x"; then
5299 - DIRS="$DIRS $dir"
5300 - fi
5301 - done
5302 -fi
5303 + #include <com_err.h>
5304
5305 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
5306 +int
5307 +main (void)
5308 +{
5309
5310 + int a = 1;
5311
5312 - for try in $_smart_include_dir; do
5313 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
5314 -$as_echo_n "checking for com_err.h in $try... " >&6; }
5315 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
5316 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 -/* end confdefs.h. */
5318
5319 - #include <com_err.h>
5320 -int
5321 -main ()
5322 -{
5323 -int a = 1;
5324 ;
5325 return 0;
5326 }
5327 +
5328 _ACEOF
5329 -if ac_fn_c_try_compile "$LINENO"; then :
5330 +if ac_fn_c_try_compile "$LINENO"
5331 +then :
5332
5333 - smart_include="-isystem $try"
5334 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 -$as_echo "yes" >&6; }
5336 - break
5337 + smart_include="-isystem $try"
5338 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5339 +printf "%s\n" "yes" >&6; }
5340 + break
5341
5342 -else
5343 +else $as_nop
5344
5345 - smart_include=
5346 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 -$as_echo "no" >&6; }
5348 + smart_include=
5349 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 +printf "%s\n" "no" >&6; }
5351
5352 fi
5353 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 - done
5355 - CPPFLAGS="$old_CPPFLAGS"
5356 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5357 +done
5358 +CPPFLAGS="$old_CPPFLAGS"
5359 fi
5360
5361 if test "x$smart_include" != "x"; then
5362 - eval "ac_cv_header_$ac_safe=yes"
5363 - CPPFLAGS="$smart_include $old_CPPFLAGS"
5364 - SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
5365 +eval "ac_cv_header_$ac_safe=yes"
5366 +CPPFLAGS="$smart_include $old_CPPFLAGS"
5367 +SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
5368 fi
5369
5370 smart_prefix=
5371
5372 - if test "$ac_cv_header_com_err_h" != "yes"; then
5373 + if test "$ac_cv_header_com_err_h" != "yes"; then
5374
5375
5376 ac_safe=`echo "et/com_err.h" | sed 'y%./+-%__pm%'`
5377 +
5378 +if test "x" = "x"; then
5379 + sm_pkg=`echo "${ac_safe}" | sed 's/.h//;s/^lib//'`
5380 +else
5381 + sm_pkg=""
5382 +fi
5383 +
5384 old_CPPFLAGS="$CPPFLAGS"
5385 -smart_include=
5386 -smart_include_dir="/usr/local/include /opt/include"
5387 +smart_include_dir="/usr/local/include /opt/include /usr/local/${sm_pkg}/include /opt/homebrew/include /opt/homebrew/opt/${sm_pkg}/include"
5388
5389 _smart_try_dir=
5390 _smart_include_dir=
5391
5392 for _prefix in $smart_prefix ""; do
5393 - for _dir in $smart_try_dir; do
5394 - _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
5395 - done
5396 +for _dir in $smart_try_dir; do
5397 + _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
5398 +done
5399
5400 - for _dir in $smart_include_dir; do
5401 - _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
5402 - done
5403 +for _dir in $smart_include_dir; do
5404 + _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
5405 +done
5406 done
5407
5408 if test "x$_smart_try_dir" != "x"; then
5409 - for try in $_smart_try_dir; do
5410 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
5411 -$as_echo_n "checking for et/com_err.h in $try... " >&6; }
5412 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
5413 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 +for try in $_smart_try_dir; do
5415 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
5416 +printf %s "checking for et/com_err.h in $try... " >&6; }
5417 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
5418 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420
5421 - #include <et/com_err.h>
5422 +
5423 + #include <et/com_err.h>
5424 +
5425 int
5426 -main ()
5427 +main (void)
5428 {
5429 -int a = 1;
5430 +
5431 + int a = 1;
5432 +
5433 +
5434 ;
5435 return 0;
5436 }
5437 +
5438 _ACEOF
5439 -if ac_fn_c_try_compile "$LINENO"; then :
5440 +if ac_fn_c_try_compile "$LINENO"
5441 +then :
5442
5443 - smart_include="-isystem $try"
5444 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5445 -$as_echo "yes" >&6; }
5446 - break
5447 + smart_include="-isystem $try"
5448 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5449 +printf "%s\n" "yes" >&6; }
5450 + break
5451
5452 -else
5453 +else $as_nop
5454
5455 - smart_include=
5456 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 -$as_echo "no" >&6; }
5458 + smart_include=
5459 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 +printf "%s\n" "no" >&6; }
5461
5462 fi
5463 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 - done
5465 - CPPFLAGS="$old_CPPFLAGS"
5466 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5467 +done
5468 +CPPFLAGS="$old_CPPFLAGS"
5469 fi
5470
5471 if test "x$smart_include" = "x"; then
5472 - for _prefix in $smart_prefix; do
5473 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/et/com_err.h" >&5
5474 -$as_echo_n "checking for ${_prefix}/et/com_err.h... " >&6; }
5475 +for _prefix in $smart_prefix; do
5476 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/et/com_err.h" >&5
5477 +printf %s "checking for ${_prefix}/et/com_err.h... " >&6; }
5478
5479 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482
5483 - #include <et/com_err.h>
5484 +
5485 + #include <et/com_err.h>
5486 +
5487 int
5488 -main ()
5489 +main (void)
5490 {
5491 -int a = 1;
5492 +
5493 + int a = 1;
5494 +
5495 +
5496 ;
5497 return 0;
5498 }
5499 +
5500 _ACEOF
5501 -if ac_fn_c_try_compile "$LINENO"; then :
5502 +if ac_fn_c_try_compile "$LINENO"
5503 +then :
5504
5505 - smart_include="-isystem ${_prefix}/"
5506 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507 -$as_echo "yes" >&6; }
5508 - break
5509 + smart_include="-isystem ${_prefix}/"
5510 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 +printf "%s\n" "yes" >&6; }
5512 + break
5513
5514 -else
5515 +else $as_nop
5516
5517 - smart_include=
5518 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 -$as_echo "no" >&6; }
5520 + smart_include=
5521 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 +printf "%s\n" "no" >&6; }
5523
5524 fi
5525 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 - done
5527 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5528 +done
5529 fi
5530
5531 if test "x$smart_include" = "x"; then
5532 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
5533 -$as_echo_n "checking for et/com_err.h... " >&6; }
5534 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
5535 +printf %s "checking for et/com_err.h... " >&6; }
5536
5537 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540
5541 - #include <et/com_err.h>
5542 +
5543 + #include <et/com_err.h>
5544 +
5545 int
5546 -main ()
5547 +main (void)
5548 {
5549 -int a = 1;
5550 +
5551 + int a = 1;
5552 +
5553 +
5554 ;
5555 return 0;
5556 }
5557 +
5558 _ACEOF
5559 -if ac_fn_c_try_compile "$LINENO"; then :
5560 +if ac_fn_c_try_compile "$LINENO"
5561 +then :
5562
5563 - smart_include=" "
5564 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5565 -$as_echo "yes" >&6; }
5566 - break
5567 + smart_include=" "
5568 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569 +printf "%s\n" "yes" >&6; }
5570 + break
5571
5572 -else
5573 +else $as_nop
5574
5575 - smart_include=
5576 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 -$as_echo "no" >&6; }
5578 + smart_include=
5579 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 +printf "%s\n" "no" >&6; }
5581
5582 fi
5583 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5585 fi
5586
5587 if test "x$smart_include" = "x"; then
5588 +for try in $_smart_include_dir; do
5589 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
5590 +printf %s "checking for et/com_err.h in $try... " >&6; }
5591 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
5592 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 +/* end confdefs.h. */
5594
5595 - for prefix in $smart_prefix; do
5596 -
5597 -
5598 -if test "x$LOCATE" != "x"; then
5599 - DIRS=
5600 - file="${_prefix}/${1}"
5601 -
5602 - for x in `${LOCATE} $file 2>/dev/null`; do
5603 - base=`echo $x | sed "s%/${file}%%"`
5604 - if test "x$x" = "x$base"; then
5605 - continue;
5606 - fi
5607 -
5608 - dir=`${DIRNAME} $x 2>/dev/null`
5609 - exclude=`echo ${dir} | ${GREP} /home`
5610 - if test "x$exclude" != "x"; then
5611 - continue
5612 - fi
5613 -
5614 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
5615 - if test "x$already" = "x"; then
5616 - DIRS="$DIRS $dir"
5617 - fi
5618 - done
5619 -fi
5620 -
5621 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
5622 -
5623 - done
5624 -
5625 -
5626 -if test "x$LOCATE" != "x"; then
5627 - DIRS=
5628 - file=et/com_err.h
5629 -
5630 - for x in `${LOCATE} $file 2>/dev/null`; do
5631 - base=`echo $x | sed "s%/${file}%%"`
5632 - if test "x$x" = "x$base"; then
5633 - continue;
5634 - fi
5635 -
5636 - dir=`${DIRNAME} $x 2>/dev/null`
5637 - exclude=`echo ${dir} | ${GREP} /home`
5638 - if test "x$exclude" != "x"; then
5639 - continue
5640 - fi
5641
5642 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
5643 - if test "x$already" = "x"; then
5644 - DIRS="$DIRS $dir"
5645 - fi
5646 - done
5647 -fi
5648 + #include <et/com_err.h>
5649
5650 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
5651 +int
5652 +main (void)
5653 +{
5654
5655 + int a = 1;
5656
5657 - for try in $_smart_include_dir; do
5658 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
5659 -$as_echo_n "checking for et/com_err.h in $try... " >&6; }
5660 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
5661 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 -/* end confdefs.h. */
5663
5664 - #include <et/com_err.h>
5665 -int
5666 -main ()
5667 -{
5668 -int a = 1;
5669 ;
5670 return 0;
5671 }
5672 +
5673 _ACEOF
5674 -if ac_fn_c_try_compile "$LINENO"; then :
5675 +if ac_fn_c_try_compile "$LINENO"
5676 +then :
5677
5678 - smart_include="-isystem $try"
5679 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5680 -$as_echo "yes" >&6; }
5681 - break
5682 + smart_include="-isystem $try"
5683 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684 +printf "%s\n" "yes" >&6; }
5685 + break
5686
5687 -else
5688 +else $as_nop
5689
5690 - smart_include=
5691 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 -$as_echo "no" >&6; }
5693 + smart_include=
5694 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 +printf "%s\n" "no" >&6; }
5696
5697 fi
5698 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 - done
5700 - CPPFLAGS="$old_CPPFLAGS"
5701 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5702 +done
5703 +CPPFLAGS="$old_CPPFLAGS"
5704 fi
5705
5706 if test "x$smart_include" != "x"; then
5707 - eval "ac_cv_header_$ac_safe=yes"
5708 - CPPFLAGS="$smart_include $old_CPPFLAGS"
5709 - SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
5710 +eval "ac_cv_header_$ac_safe=yes"
5711 +CPPFLAGS="$smart_include $old_CPPFLAGS"
5712 +SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
5713 fi
5714
5715 smart_prefix=
5716
5717 - if test "$ac_cv_header_et_com_err_h" != "yes"; then
5718 - fail="$fail com_err.h"
5719 - else
5720 - krb5mod_cflags="$krb5mod_cflags -DET_COMM_ERR "
5721 - fi
5722 + if test "$ac_cv_header_et_com_err_h" != "yes"; then
5723 +
5724 +fail="$fail com_err.h"
5725 +
5726 + else
5727 + krb5mod_cflags="$krb5mod_cflags -DET_COMM_ERR "
5728 fi
5729 - else
5730 - krb5mod_cflags="$krb5mod_cflags -DHEIMDAL_KRB5"
5731 fi
5732 +else
5733 + krb5mod_cflags="$krb5mod_cflags -DHEIMDAL_KRB5"
5734 +fi
5735 +
5736 +
5737 targetname=rlm_krb5
5738 else
5739 targetname=
5740 echo \*\*\* module rlm_krb5 is disabled.
5741 +
5742 +
5743 +fr_status="disabled"
5744 +
5745 fi
5746
5747 if test x"$fail" != x""; then
5748 + targetname=""
5749 +
5750 +
5751 if test x"${enable_strict_dependencies}" = x"yes"; then
5752 as_fn_error $? "set --without-rlm_krb5 to disable it explicitly." "$LINENO" 5
5753 else
5754 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building rlm_krb5." >&5
5755 -$as_echo "$as_me: WARNING: silently not building rlm_krb5." >&2;}
5756 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: rlm_krb5 requires: $fail." >&5
5757 -$as_echo "$as_me: WARNING: FAILURE: rlm_krb5 requires: $fail." >&2;};
5758 - targetname=""
5759 +
5760 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: silently not building rlm_krb5." >&5
5761 +printf "%s\n" "$as_me: WARNING: silently not building rlm_krb5." >&2;}
5762 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: rlm_krb5 requires: $fail." >&5
5763 +printf "%s\n" "$as_me: WARNING: FAILURE: rlm_krb5 requires: $fail." >&2;};
5764 + fail="$(echo $fail)"
5765 +
5766 +
5767 +fr_status="skipping (requires $fail)"
5768 +
5769 + fr_features=
5770 +
5771 fi
5772 +
5773 +else
5774 +
5775 +
5776 +fr_status="OK"
5777 +
5778 fi
5779
5780 -mod_ldflags="$krb5mod_ldflags $krb5libcrypto $SMART_LIBS"
5781 -mod_cflags="$krb5mod_cflags $krb5threadsafe $SMART_CPPFLAGS"
5782 +if test x"$fr_features" = x""; then
5783 + $as_echo "$fr_status" > "config.report"
5784 +else
5785 + $as_echo_n "$fr_status ... " > "config.report"
5786 + cat "config.report.tmp" >> "config.report"
5787 +fi
5788
5789 +rm "config.report.tmp"
5790
5791
5792
5793
5794 - unset ac_cv_env_LIBS_set
5795 - unset ac_cv_env_LIBS_value
5796 +mod_ldflags="$krb5mod_ldflags $krb5libcrypto $SMART_LIBS"
5797 +mod_cflags="$krb5mod_cflags $krb5threadsafe $SMART_CPPFLAGS"
5798
5799 - ac_config_files="$ac_config_files all.mk"
5800 +
5801 +
5802 +
5803 +ac_config_files="$ac_config_files all.mk"
5804
5805 cat >confcache <<\_ACEOF
5806 # This file is a shell script that caches the results of configure
5807 @@ -4863,8 +5169,8 @@ _ACEOF
5808 case $ac_val in #(
5809 *${as_nl}*)
5810 case $ac_var in #(
5811 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5812 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5813 + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5814 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5815 esac
5816 case $ac_var in #(
5817 _ | IFS | as_nl) ;; #(
5818 @@ -4894,15 +5200,15 @@ $as_echo "$as_me: WARNING: cache variabl
5819 /^ac_cv_env_/b end
5820 t clear
5821 :clear
5822 - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5823 + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5824 t end
5825 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5826 :end' >>confcache
5827 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5828 if test -w "$cache_file"; then
5829 if test "x$cache_file" != "x/dev/null"; then
5830 - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5831 -$as_echo "$as_me: updating cache $cache_file" >&6;}
5832 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5833 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5834 if test ! -f "$cache_file" || test -h "$cache_file"; then
5835 cat confcache >"$cache_file"
5836 else
5837 @@ -4916,8 +5222,8 @@ $as_echo "$as_me: updating cache $cache_
5838 fi
5839 fi
5840 else
5841 - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5842 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5843 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5844 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5845 fi
5846 fi
5847 rm -f confcache
5848 @@ -4970,7 +5276,7 @@ U=
5849 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5850 # 1. Remove the extension, and $U if already installed.
5851 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5852 - ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5853 + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5854 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5855 # will be set to the directory where LIBOBJS objects are built.
5856 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5857 @@ -4986,8 +5292,8 @@ LTLIBOBJS=$ac_ltlibobjs
5858 ac_write_fail=0
5859 ac_clean_files_save=$ac_clean_files
5860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5861 -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5862 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5863 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5864 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5865 as_write_fail=0
5866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5867 #! $SHELL
5868 @@ -5010,14 +5316,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_wri
5869
5870 # Be more Bourne compatible
5871 DUALCASE=1; export DUALCASE # for MKS sh
5872 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5873 +as_nop=:
5874 +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5875 +then :
5876 emulate sh
5877 NULLCMD=:
5878 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5879 # is contrary to our usage. Disable this feature.
5880 alias -g '${1+"$@"}'='"$@"'
5881 setopt NO_GLOB_SUBST
5882 -else
5883 +else $as_nop
5884 case `(set -o) 2>/dev/null` in #(
5885 *posix*) :
5886 set -o posix ;; #(
5887 @@ -5027,46 +5335,46 @@ esac
5888 fi
5889
5890
5891 +
5892 +# Reset variables that may have inherited troublesome values from
5893 +# the environment.
5894 +
5895 +# IFS needs to be set, to space, tab, and newline, in precisely that order.
5896 +# (If _AS_PATH_WALK were called with IFS unset, it would have the
5897 +# side effect of setting IFS to empty, thus disabling word splitting.)
5898 +# Quoting is to prevent editors from complaining about space-tab.
5899 as_nl='
5900 '
5901 export as_nl
5902 -# Printing a long string crashes Solaris 7 /usr/bin/printf.
5903 -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5904 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5905 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5906 -# Prefer a ksh shell builtin over an external printf program on Solaris,
5907 -# but without wasting forks for bash or zsh.
5908 -if test -z "$BASH_VERSION$ZSH_VERSION" \
5909 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5910 - as_echo='print -r --'
5911 - as_echo_n='print -rn --'
5912 -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5913 - as_echo='printf %s\n'
5914 - as_echo_n='printf %s'
5915 -else
5916 - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5917 - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5918 - as_echo_n='/usr/ucb/echo -n'
5919 - else
5920 - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5921 - as_echo_n_body='eval
5922 - arg=$1;
5923 - case $arg in #(
5924 - *"$as_nl"*)
5925 - expr "X$arg" : "X\\(.*\\)$as_nl";
5926 - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5927 - esac;
5928 - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5929 - '
5930 - export as_echo_n_body
5931 - as_echo_n='sh -c $as_echo_n_body as_echo'
5932 - fi
5933 - export as_echo_body
5934 - as_echo='sh -c $as_echo_body as_echo'
5935 -fi
5936 +IFS=" "" $as_nl"
5937 +
5938 +PS1='$ '
5939 +PS2='> '
5940 +PS4='+ '
5941 +
5942 +# Ensure predictable behavior from utilities with locale-dependent output.
5943 +LC_ALL=C
5944 +export LC_ALL
5945 +LANGUAGE=C
5946 +export LANGUAGE
5947 +
5948 +# We cannot yet rely on "unset" to work, but we need these variables
5949 +# to be unset--not just set to an empty or harmless value--now, to
5950 +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5951 +# also avoids known problems related to "unset" and subshell syntax
5952 +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5953 +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5954 +do eval test \${$as_var+y} \
5955 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5956 +done
5957 +
5958 +# Ensure that fds 0, 1, and 2 are open.
5959 +if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5960 +if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5961 +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5962
5963 # The user is always right.
5964 -if test "${PATH_SEPARATOR+set}" != set; then
5965 +if ${PATH_SEPARATOR+false} :; then
5966 PATH_SEPARATOR=:
5967 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5968 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5969 @@ -5075,13 +5383,6 @@ if test "${PATH_SEPARATOR+set}" != set;
5970 fi
5971
5972
5973 -# IFS
5974 -# We need space, tab and new line, in precisely that order. Quoting is
5975 -# there to prevent editors from complaining about space-tab.
5976 -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5977 -# splitting by setting IFS to empty value.)
5978 -IFS=" "" $as_nl"
5979 -
5980 # Find who we are. Look in the path if we contain no directory separator.
5981 as_myself=
5982 case $0 in #((
5983 @@ -5090,8 +5391,12 @@ case $0 in #((
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 - test -z "$as_dir" && as_dir=.
5988 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5989 + case $as_dir in #(((
5990 + '') as_dir=./ ;;
5991 + */) ;;
5992 + *) as_dir=$as_dir/ ;;
5993 + esac
5994 + test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5995 done
5996 IFS=$as_save_IFS
5997
5998 @@ -5103,30 +5408,10 @@ if test "x$as_myself" = x; then
5999 as_myself=$0
6000 fi
6001 if test ! -f "$as_myself"; then
6002 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6003 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6004 exit 1
6005 fi
6006
6007 -# Unset variables that we do not need and which cause bugs (e.g. in
6008 -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6009 -# suppresses any "Segmentation fault" message there. '((' could
6010 -# trigger a bug in pdksh 5.2.14.
6011 -for as_var in BASH_ENV ENV MAIL MAILPATH
6012 -do eval test x\${$as_var+set} = xset \
6013 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6014 -done
6015 -PS1='$ '
6016 -PS2='> '
6017 -PS4='+ '
6018 -
6019 -# NLS nuisances.
6020 -LC_ALL=C
6021 -export LC_ALL
6022 -LANGUAGE=C
6023 -export LANGUAGE
6024 -
6025 -# CDPATH.
6026 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6027
6028
6029 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6030 @@ -5139,13 +5424,14 @@ as_fn_error ()
6031 as_status=$1; test $as_status -eq 0 && as_status=1
6032 if test "$4"; then
6033 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6034 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6035 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6036 fi
6037 - $as_echo "$as_me: error: $2" >&2
6038 + printf "%s\n" "$as_me: error: $2" >&2
6039 as_fn_exit $as_status
6040 } # as_fn_error
6041
6042
6043 +
6044 # as_fn_set_status STATUS
6045 # -----------------------
6046 # Set $? to STATUS, without forking.
6047 @@ -5172,18 +5458,20 @@ as_fn_unset ()
6048 { eval $1=; unset $1;}
6049 }
6050 as_unset=as_fn_unset
6051 +
6052 # as_fn_append VAR VALUE
6053 # ----------------------
6054 # Append the text in VALUE to the end of the definition contained in VAR. Take
6055 # advantage of any shell optimizations that allow amortized linear growth over
6056 # repeated appends, instead of the typical quadratic growth present in naive
6057 # implementations.
6058 -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6059 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6060 +then :
6061 eval 'as_fn_append ()
6062 {
6063 eval $1+=\$2
6064 }'
6065 -else
6066 +else $as_nop
6067 as_fn_append ()
6068 {
6069 eval $1=\$$1\$2
6070 @@ -5195,12 +5483,13 @@ fi # as_fn_append
6071 # Perform arithmetic evaluation on the ARGs, and store the result in the
6072 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6073 # must be portable across $(()) and expr.
6074 -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6075 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6076 +then :
6077 eval 'as_fn_arith ()
6078 {
6079 as_val=$(( $* ))
6080 }'
6081 -else
6082 +else $as_nop
6083 as_fn_arith ()
6084 {
6085 as_val=`expr "$@" || test $? -eq 1`
6086 @@ -5231,7 +5520,7 @@ as_me=`$as_basename -- "$0" ||
6087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6088 X"$0" : 'X\(//\)$' \| \
6089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6090 -$as_echo X/"$0" |
6091 +printf "%s\n" X/"$0" |
6092 sed '/^.*\/\([^/][^/]*\)\/*$/{
6093 s//\1/
6094 q
6095 @@ -5253,6 +5542,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTE
6096 as_cr_digits='0123456789'
6097 as_cr_alnum=$as_cr_Letters$as_cr_digits
6098
6099 +
6100 +# Determine whether it's possible to make 'echo' print without a newline.
6101 +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6102 +# for compatibility with existing Makefiles.
6103 ECHO_C= ECHO_N= ECHO_T=
6104 case `echo -n x` in #(((((
6105 -n*)
6106 @@ -5266,6 +5559,12 @@ case `echo -n x` in #(((((
6107 ECHO_N='-n';;
6108 esac
6109
6110 +# For backward compatibility with old third-party macros, we provide
6111 +# the shell variables $as_echo and $as_echo_n. New code should use
6112 +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6113 +as_echo='printf %s\n'
6114 +as_echo_n='printf %s'
6115 +
6116 rm -f conf$$ conf$$.exe conf$$.file
6117 if test -d conf$$.dir; then
6118 rm -f conf$$.dir/conf$$.file
6119 @@ -5307,7 +5606,7 @@ as_fn_mkdir_p ()
6120 as_dirs=
6121 while :; do
6122 case $as_dir in #(
6123 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6124 + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6125 *) as_qdir=$as_dir;;
6126 esac
6127 as_dirs="'$as_qdir' $as_dirs"
6128 @@ -5316,7 +5615,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/
6129 X"$as_dir" : 'X\(//\)[^/]' \| \
6130 X"$as_dir" : 'X\(//\)$' \| \
6131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6132 -$as_echo X"$as_dir" |
6133 +printf "%s\n" X"$as_dir" |
6134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6135 s//\1/
6136 q
6137 @@ -5379,7 +5678,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
6138 # values after options handling.
6139 ac_log="
6140 This file was extended by $as_me, which was
6141 -generated by GNU Autoconf 2.69. Invocation command line was
6142 +generated by GNU Autoconf 2.71. Invocation command line was
6143
6144 CONFIG_FILES = $CONFIG_FILES
6145 CONFIG_HEADERS = $CONFIG_HEADERS
6146 @@ -5428,14 +5727,16 @@ $config_files
6147 Report bugs to the package provider."
6148
6149 _ACEOF
6150 +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6151 +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6153 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6154 +ac_cs_config='$ac_cs_config_escaped'
6155 ac_cs_version="\\
6156 config.status
6157 -configured by $0, generated by GNU Autoconf 2.69,
6158 +configured by $0, generated by GNU Autoconf 2.71,
6159 with options \\"\$ac_cs_config\\"
6160
6161 -Copyright (C) 2012 Free Software Foundation, Inc.
6162 +Copyright (C) 2021 Free Software Foundation, Inc.
6163 This config.status script is free software; the Free Software Foundation
6164 gives unlimited permission to copy, distribute and modify it."
6165
6166 @@ -5472,21 +5773,21 @@ do
6167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6168 ac_cs_recheck=: ;;
6169 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6170 - $as_echo "$ac_cs_version"; exit ;;
6171 + printf "%s\n" "$ac_cs_version"; exit ;;
6172 --config | --confi | --conf | --con | --co | --c )
6173 - $as_echo "$ac_cs_config"; exit ;;
6174 + printf "%s\n" "$ac_cs_config"; exit ;;
6175 --debug | --debu | --deb | --de | --d | -d )
6176 debug=: ;;
6177 --file | --fil | --fi | --f )
6178 $ac_shift
6179 case $ac_optarg in
6180 - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6181 + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6182 '') as_fn_error $? "missing file argument" ;;
6183 esac
6184 as_fn_append CONFIG_FILES " '$ac_optarg'"
6185 ac_need_defaults=false;;
6186 --he | --h | --help | --hel | -h )
6187 - $as_echo "$ac_cs_usage"; exit ;;
6188 + printf "%s\n" "$ac_cs_usage"; exit ;;
6189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6190 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6191 ac_cs_silent=: ;;
6192 @@ -5514,7 +5815,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
6193 if \$ac_cs_recheck; then
6194 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6195 shift
6196 - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6197 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6198 CONFIG_SHELL='$SHELL'
6199 export CONFIG_SHELL
6200 exec "\$@"
6201 @@ -5528,7 +5829,7 @@ exec 5>>config.log
6202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6203 ## Running $as_me. ##
6204 _ASBOX
6205 - $as_echo "$ac_log"
6206 + printf "%s\n" "$ac_log"
6207 } >&5
6208
6209 _ACEOF
6210 @@ -5553,7 +5854,7 @@ done
6211 # We use the long form for the default assignment because of an extremely
6212 # bizarre bug on SunOS 4.1.3.
6213 if $ac_need_defaults; then
6214 - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6215 + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6216 fi
6217
6218 # Have a temporary directory for convenience. Make it in the build tree
6219 @@ -5781,7 +6082,7 @@ do
6220 esac ||
6221 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6222 esac
6223 - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6224 + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6225 as_fn_append ac_file_inputs " '$ac_f'"
6226 done
6227
6228 @@ -5789,17 +6090,17 @@ do
6229 # use $as_me), people would be surprised to read:
6230 # /* config.h. Generated by config.status. */
6231 configure_input='Generated from '`
6232 - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6233 + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6234 `' by configure.'
6235 if test x"$ac_file" != x-; then
6236 configure_input="$ac_file. $configure_input"
6237 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6238 -$as_echo "$as_me: creating $ac_file" >&6;}
6239 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6240 +printf "%s\n" "$as_me: creating $ac_file" >&6;}
6241 fi
6242 # Neutralize special characters interpreted by sed in replacement strings.
6243 case $configure_input in #(
6244 *\&* | *\|* | *\\* )
6245 - ac_sed_conf_input=`$as_echo "$configure_input" |
6246 + ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6247 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6248 *) ac_sed_conf_input=$configure_input;;
6249 esac
6250 @@ -5816,7 +6117,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^
6251 X"$ac_file" : 'X\(//\)[^/]' \| \
6252 X"$ac_file" : 'X\(//\)$' \| \
6253 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6254 -$as_echo X"$ac_file" |
6255 +printf "%s\n" X"$ac_file" |
6256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6257 s//\1/
6258 q
6259 @@ -5840,9 +6141,9 @@ $as_echo X"$ac_file" |
6260 case "$ac_dir" in
6261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6262 *)
6263 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6264 + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6265 # A ".." for each directory in $ac_dir_suffix.
6266 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6267 + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6268 case $ac_top_builddir_sub in
6269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6271 @@ -5895,8 +6196,8 @@ ac_sed_dataroot='
6272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6273 *datarootdir*) ac_datarootdir_seen=yes;;
6274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6275 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6276 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6277 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6278 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6279 _ACEOF
6280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6281 ac_datarootdir_hack='
6282 @@ -5938,9 +6239,9 @@ test -z "$ac_datarootdir_hack$ac_dataroo
6283 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6285 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6286 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6287 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6288 which seems to be undefined. Please make sure it is defined" >&5
6289 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6290 +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6291 which seems to be undefined. Please make sure it is defined" >&2;}
6292
6293 rm -f "$ac_tmp/stdin"
6294 @@ -5987,8 +6288,8 @@ if test "$no_create" != yes; then
6295 $ac_cs_success || as_fn_exit 1
6296 fi
6297 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6298 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6299 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6300 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6301 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6302 fi
6303
6304
6305 --- a/src/modules/rlm_krb5/configure.ac
6306 +++ b/src/modules/rlm_krb5/configure.ac
6307 @@ -1,187 +1,178 @@
6308 -AC_PREREQ([2.53])
6309 -AC_INIT(rlm_krb5.c)
6310 +AC_PREREQ([2.71])
6311 +AC_INIT
6312 +AC_CONFIG_SRCDIR([rlm_krb5.c])
6313 AC_REVISION($Revision$)
6314 -AC_DEFUN(modname,[rlm_krb5])
6315 +FR_INIT_MODULE([rlm_krb5], [Kerberos support])
6316
6317 -AC_ARG_WITH([]modname,
6318 -[ --with-[]modname build []modname. (default=yes)])
6319 +FR_MODULE_START_TESTS
6320
6321 -if test x$with_[]modname != xno; then
6322 +AC_PROG_CC
6323 +AC_PROG_CPP
6324
6325 - AC_PROG_CC
6326 - AC_PROG_CPP
6327 -
6328 - dnl extra argument: --with-rlm-krb5-dir
6329 - rlm_krb5_dir=
6330 - AC_ARG_WITH(rlm-krb5-dir,
6331 - [ --with-rlm-krb5-dir=DIR Directory for krb5 files []],
6332 - [ case "$withval" in
6333 - no)
6334 +dnl extra argument: --with-rlm-krb5-dir
6335 +rlm_krb5_dir=
6336 +AC_ARG_WITH(rlm-krb5-dir,
6337 + [AS_HELP_STRING([--with-rlm-krb5-dir=DIR],
6338 + [directory where krb5 files are installed])],
6339 + [case "$withval" in
6340 + no)
6341 AC_MSG_ERROR(Need rlm-krb5-dir)
6342 ;;
6343 - yes)
6344 + yes)
6345 ;;
6346 - *)
6347 + *)
6348 rlm_krb5_dir="$withval"
6349 ;;
6350 - esac ]
6351 - )
6352 + esac])
6353
6354 - AC_PATH_PROG(krb5_config, krb5-config, not-found, [${rlm_krb5_dir}/bin:${PATH}:/usr/bin:/usr/local/bin])
6355 - dnl #
6356 - dnl # If we can find krb5-config we can get the version of the library and determine
6357 - dnl # whether it's safe to enable threading.
6358 - dnl #
6359 - if test "$krb5_config" != 'not-found'; then
6360 - AC_MSG_CHECKING([krb5-config CFLAGS])
6361 - SMART_CPPFLAGS=$($krb5_config --cflags)
6362 - SMART_CPPFLAGS=[$(echo "$SMART_CPPFLAGS" | sed 's/-I[ ]*/-isystem /g')]
6363 - AC_MSG_RESULT("$SMART_CPPFLAGS")
6364 -
6365 - AC_MSG_CHECKING([krb5-config LDFLAGS])
6366 - SMART_LIBS=$($krb5_config --libs)
6367 - AC_MSG_RESULT(${SMART_LIBS})
6368 -
6369 - AC_MSG_CHECKING([krb5-config reported version])
6370 - krb5_version_raw=$($krb5_config --version)
6371 -
6372 - dnl # AWK originally from from https://github.com/hpc/lustre
6373 - krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
6374 - awk '{split($(4),v,"."); if (v@<:@"3"@:>@ = "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }')
6375 - AC_MSG_RESULT([${krb5_version_raw} ($krb5_version)])
6376 -
6377 - AC_MSG_CHECKING([krb5-config reported vendor])
6378 - krb5_vendor=$($krb5_config --vendor)
6379 - AC_MSG_RESULT([${krb5_vendor}])
6380 -
6381 - AC_MSG_CHECKING([canonical API type])
6382 - if test "$krb5_vendor" = "Massachusetts Institute of Technology" || \
6383 - echo "$krb5_vendor" | grep -i 'MIT' > /dev/null 2>&1 || \
6384 - echo "$krb5_version_raw" | grep -i 'MIT' > /dev/null 2>&1 ; then
6385 - AC_MSG_RESULT([MIT])
6386 - krb5_api_type='mit'
6387 - else
6388 - AC_MSG_RESULT([HEIMDAL])
6389 - krb5_api_type='heimdal'
6390 - fi
6391 +AC_PATH_PROG(krb5_config, krb5-config, not-found, [${rlm_krb5_dir}/bin:${PATH}:/usr/bin:/usr/local/bin])
6392 +dnl #
6393 +dnl # If we can find krb5-config we can get the version of the library and determine
6394 +dnl # whether it's safe to enable threading.
6395 +dnl #
6396 +if test "$krb5_config" != 'not-found'; then
6397 + AC_MSG_CHECKING([krb5-config CFLAGS])
6398 + SMART_CPPFLAGS=$($krb5_config --cflags)
6399 + SMART_CPPFLAGS=[$(echo "$SMART_CPPFLAGS" | sed 's/-I[ ]*/-isystem /g')]
6400 + AC_MSG_RESULT("$SMART_CPPFLAGS")
6401 +
6402 + AC_MSG_CHECKING([krb5-config LDFLAGS])
6403 + SMART_LIBS=$($krb5_config --libs)
6404 + AC_MSG_RESULT(${SMART_LIBS})
6405 +
6406 + AC_MSG_CHECKING([krb5-config reported version])
6407 + krb5_version_raw=$($krb5_config --version)
6408 +
6409 + dnl # AWK originally from from https://github.com/hpc/lustre
6410 + krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
6411 + awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }')
6412 + AC_MSG_RESULT([${krb5_version_raw} ($krb5_version)])
6413 +
6414 + AC_MSG_CHECKING([krb5-config reported vendor])
6415 + krb5_vendor=$($krb5_config --vendor)
6416 + AC_MSG_RESULT([${krb5_vendor}])
6417 +
6418 + AC_MSG_CHECKING([canonical API type])
6419 + if test "$krb5_vendor" = "Massachusetts Institute of Technology" || \
6420 + echo "$krb5_vendor" | grep -i 'MIT' > /dev/null 2>&1 || \
6421 + echo "$krb5_version_raw" | grep -i 'MIT' > /dev/null 2>&1 ; then
6422 + AC_MSG_RESULT([MIT])
6423 + krb5_api_type='mit'
6424 else
6425 - smart_try_dir="$rlm_krb5_dir/include"
6426 - FR_SMART_CHECK_INCLUDE(krb5.h)
6427 - if test "$ac_cv_header_krb5_h" != "yes"; then
6428 - fail="$fail krb5.h"
6429 - fi
6430 -
6431 - krb5libcrypto=
6432 - smart_try_dir="$rlm_krb5_dir/lib"
6433 - FR_SMART_CHECK_LIB(k5crypto, krb5_encrypt_data)
6434 - if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
6435 - krb5libcrypto="-lk5crypto"
6436 - fi
6437 -
6438 - if test "x$krb5libcrypto" = x; then
6439 - FR_SMART_CHECK_LIB(crypto, DH_new)
6440 - if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
6441 - krb5libcrypto="-lcrypto"
6442 - fi
6443 - fi
6444 -
6445 - if test "x$krb5libcrypto" = x; then
6446 - AC_MSG_WARN([neither krb5 'k5crypto' nor 'crypto' libraries are found!])
6447 - fi
6448 -
6449 - FR_SMART_CHECK_LIB(com_err, set_com_err_hook)
6450 - if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
6451 - AC_MSG_WARN([the comm_err library isn't found!])
6452 - fi
6453 + AC_MSG_RESULT([HEIMDAL])
6454 + krb5_api_type='heimdal'
6455 + fi
6456 +else
6457 + smart_try_dir="$rlm_krb5_dir/include"
6458 + FR_SMART_CHECK_INCLUDE(krb5.h)
6459 + if test "$ac_cv_header_krb5_h" != "yes"; then
6460 + FR_MODULE_FAIL([krb5.h])
6461 + fi
6462
6463 - dnl #
6464 - dnl # Only the heimdal version of the library has this function
6465 - dnl #
6466 - FR_SMART_CHECK_LIB(krb5, krb5_verify_user_opt)
6467 - if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
6468 - krb5_api_type='heimdal'
6469 - else
6470 - krb5_api_type='mit'
6471 + krb5libcrypto=
6472 + smart_try_dir="$rlm_krb5_dir/lib"
6473 + FR_SMART_CHECK_LIB(k5crypto, krb5_encrypt_data)
6474 + if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
6475 + krb5libcrypto="-lk5crypto"
6476 + fi
6477
6478 - FR_SMART_CHECK_LIB(krb5, krb5_get_init_creds_password)
6479 - if test "x$ac_cv_lib_krb5_krb5_get_init_creds_password" != xyes; then
6480 - fail="$fail krb5"
6481 - fi
6482 + if test "x$krb5libcrypto" = x; then
6483 + FR_SMART_CHECK_LIB(crypto, DH_new)
6484 + if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
6485 + krb5libcrypto="-lcrypto"
6486 fi
6487 -
6488 fi
6489
6490 - dnl #
6491 - dnl # Need to ensure the test program(s) link against the right library
6492 - dnl #
6493 - LDFLAGS="${LDFLAGS} ${SMART_LIBS}"
6494 - CFLAGS="${CFLAGS} ${SMART_CPPFLAGS}"
6495 -
6496 - dnl #
6497 - dnl # Check how to free things returned by krb5_get_error_message
6498 - dnl #
6499 - AC_CHECK_FUNCS([krb5_get_error_message krb5_free_error_string krb5_free_error_message])
6500 - if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
6501 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
6502 - fi
6503 - if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
6504 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
6505 + if test "x$krb5libcrypto" = x; then
6506 + AC_MSG_WARN([neither krb5 'k5crypto' nor 'crypto' libraries are found!])
6507 fi
6508 - if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
6509 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
6510 +
6511 + FR_SMART_CHECK_LIB(com_err, set_com_err_hook)
6512 + if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
6513 + AC_MSG_WARN([the comm_err library isn't found!])
6514 fi
6515
6516 dnl #
6517 - dnl # Only check if version checks have not found kerberos to be thread unsafe
6518 + dnl # Only the heimdal version of the library has this function
6519 dnl #
6520 - if test "$krb5threadsafe" != "no"; then
6521 - krb5threadsafe=
6522 + FR_SMART_CHECK_LIB(krb5, krb5_verify_user_opt)
6523 + if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
6524 + krb5_api_type='heimdal'
6525 + else
6526 + krb5_api_type='mit'
6527
6528 - FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe)
6529 - if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
6530 - AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])],
6531 - [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])])
6532 + FR_SMART_CHECK_LIB(krb5, krb5_get_init_creds_password)
6533 + if test "x$ac_cv_lib_krb5_krb5_get_init_creds_password" != xyes; then
6534 + FR_MODULE_FAIL([krb5])
6535 fi
6536 - else
6537 - krb5threadsafe=""
6538 fi
6539
6540 - if test "$krb5_api_type" = "mit"; then
6541 - dnl #
6542 - dnl # This lives in different places depending on the distro
6543 - dnl #
6544 - FR_SMART_CHECK_INCLUDE([com_err.h])
6545 - if test "$ac_cv_header_com_err_h" != "yes"; then
6546 - FR_SMART_CHECK_INCLUDE([et/com_err.h])
6547 - if test "$ac_cv_header_et_com_err_h" != "yes"; then
6548 - fail="$fail com_err.h"
6549 - else
6550 - krb5mod_cflags="$krb5mod_cflags -DET_COMM_ERR "
6551 - fi
6552 - fi
6553 - else
6554 - krb5mod_cflags="$krb5mod_cflags -DHEIMDAL_KRB5"
6555 +fi
6556 +
6557 +dnl #
6558 +dnl # Need to ensure the test program(s) link against the right library
6559 +dnl #
6560 +LDFLAGS="${LDFLAGS} ${SMART_LIBS}"
6561 +CFLAGS="${CFLAGS} ${SMART_CPPFLAGS}"
6562 +
6563 +dnl #
6564 +dnl # Check how to free things returned by krb5_get_error_message
6565 +dnl #
6566 +AC_CHECK_FUNCS(\
6567 + krb5_get_error_message \
6568 + krb5_free_error_string \
6569 + krb5_free_error_message \
6570 +)
6571 +if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
6572 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
6573 +fi
6574 +if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
6575 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
6576 +fi
6577 +if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
6578 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
6579 +fi
6580 +
6581 +dnl #
6582 +dnl # Only check if version checks have not found kerberos to be thread unsafe
6583 +dnl #
6584 +if test "$krb5threadsafe" != "no"; then
6585 + krb5threadsafe=
6586 +
6587 + FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe)
6588 + if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
6589 + AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])],
6590 + [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])],
6591 + [AC_MSG_WARN(cross compiling: not checking)])
6592 fi
6593 - targetname=modname
6594 else
6595 - targetname=
6596 - echo \*\*\* module modname is disabled.
6597 + krb5threadsafe=""
6598 fi
6599
6600 -if test x"$fail" != x""; then
6601 - if test x"${enable_strict_dependencies}" = x"yes"; then
6602 - AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
6603 - else
6604 - AC_MSG_WARN([silently not building ]modname[.])
6605 - AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
6606 - targetname=""
6607 +if test "$krb5_api_type" = "mit"; then
6608 + dnl #
6609 + dnl # This lives in different places depending on the distro
6610 + dnl #
6611 + FR_SMART_CHECK_INCLUDE([com_err.h])
6612 + if test "$ac_cv_header_com_err_h" != "yes"; then
6613 + FR_SMART_CHECK_INCLUDE([et/com_err.h])
6614 + if test "$ac_cv_header_et_com_err_h" != "yes"; then
6615 + FR_MODULE_FAIL([com_err.h])
6616 + else
6617 + krb5mod_cflags="$krb5mod_cflags -DET_COMM_ERR "
6618 + fi
6619 fi
6620 +else
6621 + krb5mod_cflags="$krb5mod_cflags -DHEIMDAL_KRB5"
6622 fi
6623
6624 +FR_MODULE_END_TESTS(strict)
6625 +
6626 mod_ldflags="$krb5mod_ldflags $krb5libcrypto $SMART_LIBS"
6627 mod_cflags="$krb5mod_cflags $krb5threadsafe $SMART_CPPFLAGS"
6628
6629 AC_SUBST(mod_ldflags)
6630 AC_SUBST(mod_cflags)
6631 -AC_SUBST(targetname)
6632 -AC_OUTPUT(all.mk)
6633 +
6634 +AC_CONFIG_FILES([all.mk])
6635 +AC_OUTPUT