1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for Kerberos 5 1.19.2. 4# 5# Report bugs to <krb5-bugs@mit.edu>. 6# 7# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 8# Massachusetts Institute of Technology. 9# 10# 11# 12# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 13# 14# 15# This configure script is free software; the Free Software Foundation 16# gives unlimited permission to copy, distribute and modify it. 17## -------------------- ## 18## M4sh Initialization. ## 19## -------------------- ## 20 21# Be more Bourne compatible 22DUALCASE=1; export DUALCASE # for MKS sh 23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24 emulate sh 25 NULLCMD=: 26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27 # is contrary to our usage. Disable this feature. 28 alias -g '${1+"$@"}'='"$@"' 29 setopt NO_GLOB_SUBST 30else 31 case `(set -o) 2>/dev/null` in #( 32 *posix*) : 33 set -o posix ;; #( 34 *) : 35 ;; 36esac 37fi 38 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47# Prefer a ksh shell builtin over an external printf program on Solaris, 48# but without wasting forks for bash or zsh. 49if test -z "$BASH_VERSION$ZSH_VERSION" \ 50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='print -r --' 52 as_echo_n='print -rn --' 53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 54 as_echo='printf %s\n' 55 as_echo_n='printf %s' 56else 57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 59 as_echo_n='/usr/ucb/echo -n' 60 else 61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 62 as_echo_n_body='eval 63 arg=$1; 64 case $arg in #( 65 *"$as_nl"*) 66 expr "X$arg" : "X\\(.*\\)$as_nl"; 67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 68 esac; 69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 70 ' 71 export as_echo_n_body 72 as_echo_n='sh -c $as_echo_n_body as_echo' 73 fi 74 export as_echo_body 75 as_echo='sh -c $as_echo_body as_echo' 76fi 77 78# The user is always right. 79if test "${PATH_SEPARATOR+set}" != set; then 80 PATH_SEPARATOR=: 81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 83 PATH_SEPARATOR=';' 84 } 85fi 86 87 88# IFS 89# We need space, tab and new line, in precisely that order. Quoting is 90# there to prevent editors from complaining about space-tab. 91# (If _AS_PATH_WALK were called with IFS unset, it would disable word 92# splitting by setting IFS to empty value.) 93IFS=" "" $as_nl" 94 95# Find who we are. Look in the path if we contain no directory separator. 96as_myself= 97case $0 in #(( 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105 done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 exit 1 118fi 119 120# Unset variables that we do not need and which cause bugs (e.g. in 121# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 122# suppresses any "Segmentation fault" message there. '((' could 123# trigger a bug in pdksh 5.2.14. 124for as_var in BASH_ENV ENV MAIL MAILPATH 125do eval test x\${$as_var+set} = xset \ 126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 127done 128PS1='$ ' 129PS2='> ' 130PS4='+ ' 131 132# NLS nuisances. 133LC_ALL=C 134export LC_ALL 135LANGUAGE=C 136export LANGUAGE 137 138# CDPATH. 139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 140 141# Use a proper internal environment variable to ensure we don't fall 142 # into an infinite loop, continuously re-executing ourselves. 143 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 144 _as_can_reexec=no; export _as_can_reexec; 145 # We cannot yet assume a decent shell, so we have to provide a 146# neutralization value for shells without unset; and this also 147# works around shells that cannot unset nonexistent variables. 148# Preserve -v and -x to the replacement shell. 149BASH_ENV=/dev/null 150ENV=/dev/null 151(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 152case $- in # (((( 153 *v*x* | *x*v* ) as_opts=-vx ;; 154 *v* ) as_opts=-v ;; 155 *x* ) as_opts=-x ;; 156 * ) as_opts= ;; 157esac 158exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 159# Admittedly, this is quite paranoid, since all the known shells bail 160# out after a failed `exec'. 161$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 162as_fn_exit 255 163 fi 164 # We don't want this to propagate to other subprocesses. 165 { _as_can_reexec=; unset _as_can_reexec;} 166if test "x$CONFIG_SHELL" = x; then 167 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 168 emulate sh 169 NULLCMD=: 170 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 171 # is contrary to our usage. Disable this feature. 172 alias -g '\${1+\"\$@\"}'='\"\$@\"' 173 setopt NO_GLOB_SUBST 174else 175 case \`(set -o) 2>/dev/null\` in #( 176 *posix*) : 177 set -o posix ;; #( 178 *) : 179 ;; 180esac 181fi 182" 183 as_required="as_fn_return () { (exit \$1); } 184as_fn_success () { as_fn_return 0; } 185as_fn_failure () { as_fn_return 1; } 186as_fn_ret_success () { return 0; } 187as_fn_ret_failure () { return 1; } 188 189exitcode=0 190as_fn_success || { exitcode=1; echo as_fn_success failed.; } 191as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 192as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 193as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 194if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 195 196else 197 exitcode=1; echo positional parameters were not saved. 198fi 199test x\$exitcode = x0 || exit 1 200test -x / || exit 1" 201 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 202 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 203 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 204 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 205test \$(( 1 + 1 )) = 2 || exit 1" 206 if (eval "$as_required") 2>/dev/null; then : 207 as_have_required=yes 208else 209 as_have_required=no 210fi 211 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 212 213else 214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 215as_found=false 216for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 217do 218 IFS=$as_save_IFS 219 test -z "$as_dir" && as_dir=. 220 as_found=: 221 case $as_dir in #( 222 /*) 223 for as_base in sh bash ksh sh5; do 224 # Try only shells that exist, to save several forks. 225 as_shell=$as_dir/$as_base 226 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 227 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 228 CONFIG_SHELL=$as_shell as_have_required=yes 229 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 break 2 231fi 232fi 233 done;; 234 esac 235 as_found=false 236done 237$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 238 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 239 CONFIG_SHELL=$SHELL as_have_required=yes 240fi; } 241IFS=$as_save_IFS 242 243 244 if test "x$CONFIG_SHELL" != x; then : 245 export CONFIG_SHELL 246 # We cannot yet assume a decent shell, so we have to provide a 247# neutralization value for shells without unset; and this also 248# works around shells that cannot unset nonexistent variables. 249# Preserve -v and -x to the replacement shell. 250BASH_ENV=/dev/null 251ENV=/dev/null 252(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 253case $- in # (((( 254 *v*x* | *x*v* ) as_opts=-vx ;; 255 *v* ) as_opts=-v ;; 256 *x* ) as_opts=-x ;; 257 * ) as_opts= ;; 258esac 259exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 260# Admittedly, this is quite paranoid, since all the known shells bail 261# out after a failed `exec'. 262$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 263exit 255 264fi 265 266 if test x$as_have_required = xno; then : 267 $as_echo "$0: This script requires a shell more modern than all" 268 $as_echo "$0: the shells that I found on your system." 269 if test x${ZSH_VERSION+set} = xset ; then 270 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 $as_echo "$0: Please tell bug-autoconf@gnu.org and krb5-bugs@mit.edu 274$0: about your system, including any error possibly output 275$0: before this message. Then install a modern shell, or 276$0: manually run the script under such a shell if you do 277$0: have one." 278 fi 279 exit 1 280fi 281fi 282fi 283SHELL=${CONFIG_SHELL-/bin/sh} 284export SHELL 285# Unset more variables known to interfere with behavior of common tools. 286CLICOLOR_FORCE= GREP_OPTIONS= 287unset CLICOLOR_FORCE GREP_OPTIONS 288 289## --------------------- ## 290## M4sh Shell Functions. ## 291## --------------------- ## 292# as_fn_unset VAR 293# --------------- 294# Portably unset VAR. 295as_fn_unset () 296{ 297 { eval $1=; unset $1;} 298} 299as_unset=as_fn_unset 300 301# as_fn_set_status STATUS 302# ----------------------- 303# Set $? to STATUS, without forking. 304as_fn_set_status () 305{ 306 return $1 307} # as_fn_set_status 308 309# as_fn_exit STATUS 310# ----------------- 311# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 312as_fn_exit () 313{ 314 set +e 315 as_fn_set_status $1 316 exit $1 317} # as_fn_exit 318 319# as_fn_mkdir_p 320# ------------- 321# Create "$as_dir" as a directory, including parents if necessary. 322as_fn_mkdir_p () 323{ 324 325 case $as_dir in #( 326 -*) as_dir=./$as_dir;; 327 esac 328 test -d "$as_dir" || eval $as_mkdir_p || { 329 as_dirs= 330 while :; do 331 case $as_dir in #( 332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 333 *) as_qdir=$as_dir;; 334 esac 335 as_dirs="'$as_qdir' $as_dirs" 336 as_dir=`$as_dirname -- "$as_dir" || 337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 338 X"$as_dir" : 'X\(//\)[^/]' \| \ 339 X"$as_dir" : 'X\(//\)$' \| \ 340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 341$as_echo X"$as_dir" | 342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)[^/].*/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)$/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\).*/{ 355 s//\1/ 356 q 357 } 358 s/.*/./; q'` 359 test -d "$as_dir" && break 360 done 361 test -z "$as_dirs" || eval "mkdir $as_dirs" 362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 363 364 365} # as_fn_mkdir_p 366 367# as_fn_executable_p FILE 368# ----------------------- 369# Test if FILE is an executable regular file. 370as_fn_executable_p () 371{ 372 test -f "$1" && test -x "$1" 373} # as_fn_executable_p 374# as_fn_append VAR VALUE 375# ---------------------- 376# Append the text in VALUE to the end of the definition contained in VAR. Take 377# advantage of any shell optimizations that allow amortized linear growth over 378# repeated appends, instead of the typical quadratic growth present in naive 379# implementations. 380if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 381 eval 'as_fn_append () 382 { 383 eval $1+=\$2 384 }' 385else 386 as_fn_append () 387 { 388 eval $1=\$$1\$2 389 } 390fi # as_fn_append 391 392# as_fn_arith ARG... 393# ------------------ 394# Perform arithmetic evaluation on the ARGs, and store the result in the 395# global $as_val. Take advantage of shells that can avoid forks. The arguments 396# must be portable across $(()) and expr. 397if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 398 eval 'as_fn_arith () 399 { 400 as_val=$(( $* )) 401 }' 402else 403 as_fn_arith () 404 { 405 as_val=`expr "$@" || test $? -eq 1` 406 } 407fi # as_fn_arith 408 409 410# as_fn_error STATUS ERROR [LINENO LOG_FD] 411# ---------------------------------------- 412# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 413# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 414# script with STATUS, using 1 if that was 0. 415as_fn_error () 416{ 417 as_status=$1; test $as_status -eq 0 && as_status=1 418 if test "$4"; then 419 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 421 fi 422 $as_echo "$as_me: error: $2" >&2 423 as_fn_exit $as_status 424} # as_fn_error 425 426if expr a : '\(a\)' >/dev/null 2>&1 && 427 test "X`expr 00001 : '.*\(...\)'`" = X001; then 428 as_expr=expr 429else 430 as_expr=false 431fi 432 433if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 434 as_basename=basename 435else 436 as_basename=false 437fi 438 439if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 440 as_dirname=dirname 441else 442 as_dirname=false 443fi 444 445as_me=`$as_basename -- "$0" || 446$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 447 X"$0" : 'X\(//\)$' \| \ 448 X"$0" : 'X\(/\)' \| . 2>/dev/null || 449$as_echo X/"$0" | 450 sed '/^.*\/\([^/][^/]*\)\/*$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\/\)$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\).*/{ 459 s//\1/ 460 q 461 } 462 s/.*/./; q'` 463 464# Avoid depending upon Character Ranges. 465as_cr_letters='abcdefghijklmnopqrstuvwxyz' 466as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 467as_cr_Letters=$as_cr_letters$as_cr_LETTERS 468as_cr_digits='0123456789' 469as_cr_alnum=$as_cr_Letters$as_cr_digits 470 471 472 as_lineno_1=$LINENO as_lineno_1a=$LINENO 473 as_lineno_2=$LINENO as_lineno_2a=$LINENO 474 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 475 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 476 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 477 sed -n ' 478 p 479 /[$]LINENO/= 480 ' <$as_myself | 481 sed ' 482 s/[$]LINENO.*/&-/ 483 t lineno 484 b 485 :lineno 486 N 487 :loop 488 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 489 t loop 490 s/-\n.*// 491 ' >$as_me.lineno && 492 chmod +x "$as_me.lineno" || 493 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 494 495 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 496 # already done that, so ensure we don't try to do so again and fall 497 # in an infinite loop. This has already happened in practice. 498 _as_can_reexec=no; export _as_can_reexec 499 # Don't try to exec as it changes $[0], causing all sort of problems 500 # (the dirname of $[0] is not the place where we might find the 501 # original and so on. Autoconf is especially sensitive to this). 502 . "./$as_me.lineno" 503 # Exit status is that of the last command. 504 exit 505} 506 507ECHO_C= ECHO_N= ECHO_T= 508case `echo -n x` in #((((( 509-n*) 510 case `echo 'xy\c'` in 511 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 512 xy) ECHO_C='\c';; 513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 514 ECHO_T=' ';; 515 esac;; 516*) 517 ECHO_N='-n';; 518esac 519 520rm -f conf$$ conf$$.exe conf$$.file 521if test -d conf$$.dir; then 522 rm -f conf$$.dir/conf$$.file 523else 524 rm -f conf$$.dir 525 mkdir conf$$.dir 2>/dev/null 526fi 527if (echo >conf$$.file) 2>/dev/null; then 528 if ln -s conf$$.file conf$$ 2>/dev/null; then 529 as_ln_s='ln -s' 530 # ... but there are two gotchas: 531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 533 # In both cases, we have to default to `cp -pR'. 534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 535 as_ln_s='cp -pR' 536 elif ln conf$$.file conf$$ 2>/dev/null; then 537 as_ln_s=ln 538 else 539 as_ln_s='cp -pR' 540 fi 541else 542 as_ln_s='cp -pR' 543fi 544rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 545rmdir conf$$.dir 2>/dev/null 546 547if mkdir -p . 2>/dev/null; then 548 as_mkdir_p='mkdir -p "$as_dir"' 549else 550 test -d ./-p && rmdir ./-p 551 as_mkdir_p=false 552fi 553 554as_test_x='test -x' 555as_executable_p=as_fn_executable_p 556 557# Sed expression to map a string onto a valid CPP name. 558as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 559 560# Sed expression to map a string onto a valid variable name. 561as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 562 563 564test -n "$DJDIR" || exec 7<&0 </dev/null 565exec 6>&1 566 567# Name of the host. 568# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 569# so uname gets run too. 570ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 571 572# 573# Initializations. 574# 575ac_default_prefix=/usr/local 576ac_clean_files= 577ac_config_libobj_dir=. 578LIBOBJS= 579cross_compiling=no 580subdirs= 581MFLAGS= 582MAKEFLAGS= 583 584# Identity of this package. 585PACKAGE_NAME='Kerberos 5' 586PACKAGE_TARNAME='krb5' 587PACKAGE_VERSION='1.19.2' 588PACKAGE_STRING='Kerberos 5 1.19.2' 589PACKAGE_BUGREPORT='krb5-bugs@mit.edu' 590PACKAGE_URL='' 591 592ac_unique_file="aclocal.m4" 593# Factoring default headers for most tests. 594ac_includes_default="\ 595#include <stdio.h> 596#ifdef HAVE_SYS_TYPES_H 597# include <sys/types.h> 598#endif 599#ifdef HAVE_SYS_STAT_H 600# include <sys/stat.h> 601#endif 602#ifdef STDC_HEADERS 603# include <stdlib.h> 604# include <stddef.h> 605#else 606# ifdef HAVE_STDLIB_H 607# include <stdlib.h> 608# endif 609#endif 610#ifdef HAVE_STRING_H 611# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 612# include <memory.h> 613# endif 614# include <string.h> 615#endif 616#ifdef HAVE_STRINGS_H 617# include <strings.h> 618#endif 619#ifdef HAVE_INTTYPES_H 620# include <inttypes.h> 621#endif 622#ifdef HAVE_STDINT_H 623# include <stdint.h> 624#endif 625#ifdef HAVE_UNISTD_H 626# include <unistd.h> 627#endif" 628 629ac_subst_vars='LTLIBOBJS 630DEFCKTNAME 631DEFKTNAME 632DEFCCNAME 633OSX 634GROFF 635VERTO_VERSION 636VERTO_LIBS 637VERTO_CFLAGS 638RL_LIBS 639RL_CFLAGS 640LIBEDIT_LIBS 641LIBEDIT_CFLAGS 642lmdb_plugin_dir 643LMDB_LIBS 644HAVE_LMDB 645sam2_plugin 646LDAP 647ldap_plugin_dir 648HAVE_SASL 649LDAP_LIBS 650SUPPORTLIB_MAJOR 651DB_EXTRA_LIBS 652HAVE_RESOLV_WRAPPER 653CMOCKA_LIBS 654HAVE_CMOCKA 655HAVE_PYTHON 656PYTHON 657PYTHON_MINVERSION 658HAVE_RUNTEST 659LIBOBJS 660PKINIT 661GSSRPC__BSD_TYPEALIASES 662GSSRPC__NETDB_H 663GSSRPC__SYS_PARAM_H 664GSSRPC__UNISTD_H 665GSSRPC__SYS_TIME_H 666GSSRPC__SYS_SELECT_H 667rpcent_define 668include_xom 669RUNTEST 670PRIOCNTL_HACK 671DO_ALL 672EXPECT 673S_TOP 674RBUILD 675DO_TEST 676have_PERL 677have_RUNTEST 678YFLAGS 679YACC 680NSLOOKUP 681DIG 682FCTSH 683BASH 684SH5 685SH 686DO_TCL 687KRB5_RCTMPDIR 688SIZEOF_TIME_T 689SETENVOBJ 690KSU_LIBS 691EXTRA_SUPPORT_SYMS 692GETTIMEOFDAY_ST_OBJ 693GETTIMEOFDAY_OBJ 694MKSTEMP_ST_OBJ 695MKSTEMP_OBJ 696LEXLIB 697LEX_OUTPUT_ROOT 698LEX 699ASAN 700ASAN_FLAGS 701KRB5_RUN_VARS 702KRB5_RUN_ENV 703AESNI_FLAGS 704AESNI_OBJ 705YASM 706SPAKE_OPENSSL_LIBS 707HAVE_SPAKE_OPENSSL 708TLS_IMPL_LIBS 709TLS_IMPL_CFLAGS 710TLS_IMPL 711PRNG_ALG 712CRYPTO_IMPL_LIBS 713CRYPTO_IMPL_CFLAGS 714CRYPTO_IMPL 715audit_plugin 716AUDIT_IMPL_LIBS 717AWK 718SECURE_GETENV_INIT 719SECURE_GETENV_ST_OBJ 720SECURE_GETENV_OBJ 721PRINTF_ST_OBJ 722PRINTF_OBJ 723FNMATCH_ST_OBJ 724FNMATCH_OBJ 725GETOPT_LONG_ST_OBJ 726GETOPT_LONG_OBJ 727GETOPT_ST_OBJ 728GETOPT_OBJ 729STRLCPY_ST_OBJ 730STRLCPY_OBJ 731po 732MSGFMT 733LIBUTIL 734PROG_RPATH_FLAGS 735RPATH_FLAG 736CXX_LINK 737CC_LINK 738GEN_LIB 739UNDEF_CHECK 740MAKE_DYNOBJ_COMMAND 741DYNOBJEXT 742LIBINSTLIST 743PFLIBEXT 744DEPLIBEXT 745SHLIBSEXT 746SHLIBVEXT 747SHLIBEXT 748STLIBEXT 749INSTALL_SHLIB 750DYNOBJ_EXPFLAGS 751DYNOBJ_EXPDEPS 752SHLIB_EXPORT_FILE_DEP 753SHLIB_EXPFLAGS 754SHLIB_RPATH_FLAGS 755MAKE_SHLIB_COMMAND 756KDB5_PLUGIN_LIBS 757KDB5_PLUGIN_DEPLIBS 758PLUGININST 759PLUGINLINK 760PLUGIN 761LIBLINKS 762LIBLIST 763PERL 764AR 765INSTALL_DATA 766INSTALL_SCRIPT 767INSTALL_PROGRAM 768RANLIB 769LN_S 770PROFFLAGS 771PICFLAGS 772PFOBJEXT 773SHOBJEXT 774STOBJEXT 775OBJLISTS 776TCL_MAYBE_RPATH 777TCL_RPATH 778TCL_LIBPATH 779TCL_LIBS 780TCL_INCLUDES 781KRB5_VERSION 782DL_LIB 783THREAD_SUPPORT 784PTHREAD_CFLAGS 785PTHREAD_LIBS 786PTHREAD_CC 787ax_pthread_config 788EGREP 789GREP 790SED 791krb5_cv_host 792host_os 793host_vendor 794host_cpu 795host 796build_os 797build_vendor 798build_cpu 799build 800CONFIG_RELTOPDIR 801MAINT 802MAINTAINER_MODE_FALSE 803MAINTAINER_MODE_TRUE 804HESIOD_LIBS 805HESIOD_DEFS 806KDB5_DB_LIB 807DB_HEADER_VERSION 808DB_VERSION 809DB_LIB 810DB_HEADER 811SS_VERSION 812SS_LIB 813COM_ERR_LIB 814COM_ERR_VERSION 815compile_et 816COM_ERR_LIBS 817COM_ERR_CFLAGS 818PKG_CONFIG_LIBDIR 819PKG_CONFIG_PATH 820PKG_CONFIG 821LD 822CPP 823WARN_CXXFLAGS 824WARN_CFLAGS 825HAVE_GCC 826ac_ct_CXX 827CXXFLAGS 828CXX 829OBJEXT 830EXEEXT 831ac_ct_CC 832CPPFLAGS 833LDFLAGS 834CFLAGS 835CC 836EXTRA_FILES 837SYSCONFCONF 838target_alias 839host_alias 840build_alias 841LIBS 842ECHO_T 843ECHO_N 844ECHO_C 845DEFS 846mandir 847localedir 848libdir 849psdir 850pdfdir 851dvidir 852htmldir 853infodir 854docdir 855oldincludedir 856includedir 857runstatedir 858localstatedir 859sharedstatedir 860sysconfdir 861datadir 862datarootdir 863libexecdir 864sbindir 865bindir 866program_transform_name 867prefix 868exec_prefix 869PACKAGE_URL 870PACKAGE_BUGREPORT 871PACKAGE_STRING 872PACKAGE_VERSION 873PACKAGE_TARNAME 874PACKAGE_NAME 875PATH_SEPARATOR 876SHELL' 877ac_subst_files='lib_frag 878libobj_frag 879libnover_frag 880libpriv_frag 881libnodeps_frag' 882ac_user_opts=' 883enable_option_checking 884with_size_optimizations 885with_system_et 886with_system_ss 887with_system_db 888with_netlib 889enable_dns_for_realm 890with_hesiod 891enable_maintainer_mode 892with_ldap 893enable_delayed_initialization 894enable_thread_support 895enable_static 896enable_shared 897enable_rpath 898enable_profiled 899with_tcl 900enable_athena 901enable_nls 902with_vague_errors 903enable_audit_plugin 904with_crypto_impl 905with_prng_alg 906with_tls_impl 907with_keyutils 908with_spake_openssl 909enable_aesni 910enable_kdc_lookaside_cache 911enable_asan 912enable_pkinit 913with_lmdb 914with_libedit 915with_readline 916with_system_verto 917with_krb5_config 918' 919 ac_precious_vars='build_alias 920host_alias 921target_alias 922CC 923CFLAGS 924LDFLAGS 925LIBS 926CPPFLAGS 927CXX 928CXXFLAGS 929CCC 930CPP 931LD 932PKG_CONFIG 933PKG_CONFIG_PATH 934PKG_CONFIG_LIBDIR 935COM_ERR_CFLAGS 936COM_ERR_LIBS 937SS_LIB 938DB_HEADER 939DB_LIB 940YACC 941YFLAGS 942LIBEDIT_CFLAGS 943LIBEDIT_LIBS 944VERTO_CFLAGS 945VERTO_LIBS 946DEFCCNAME 947DEFKTNAME 948DEFCKTNAME' 949 950 951# Initialize some variables set by options. 952ac_init_help= 953ac_init_version=false 954ac_unrecognized_opts= 955ac_unrecognized_sep= 956# The variables have the same names as the options, with 957# dashes changed to underlines. 958cache_file=/dev/null 959exec_prefix=NONE 960no_create= 961no_recursion= 962prefix=NONE 963program_prefix=NONE 964program_suffix=NONE 965program_transform_name=s,x,x, 966silent= 967site= 968srcdir= 969verbose= 970x_includes=NONE 971x_libraries=NONE 972 973# Installation directory options. 974# These are left unexpanded so users can "make install exec_prefix=/foo" 975# and all the variables that are supposed to be based on exec_prefix 976# by default will actually change. 977# Use braces instead of parens because sh, perl, etc. also accept them. 978# (The list follows the same order as the GNU Coding Standards.) 979bindir='${exec_prefix}/bin' 980sbindir='${exec_prefix}/sbin' 981libexecdir='${exec_prefix}/libexec' 982datarootdir='${prefix}/share' 983datadir='${datarootdir}' 984sysconfdir='${prefix}/etc' 985sharedstatedir='${prefix}/com' 986localstatedir='${prefix}/var' 987runstatedir='${localstatedir}/run' 988includedir='${prefix}/include' 989oldincludedir='/usr/include' 990docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 991infodir='${datarootdir}/info' 992htmldir='${docdir}' 993dvidir='${docdir}' 994pdfdir='${docdir}' 995psdir='${docdir}' 996libdir='${exec_prefix}/lib' 997localedir='${datarootdir}/locale' 998mandir='${datarootdir}/man' 999 1000ac_prev= 1001ac_dashdash= 1002for ac_option 1003do 1004 # If the previous option needs an argument, assign it. 1005 if test -n "$ac_prev"; then 1006 eval $ac_prev=\$ac_option 1007 ac_prev= 1008 continue 1009 fi 1010 1011 case $ac_option in 1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1013 *=) ac_optarg= ;; 1014 *) ac_optarg=yes ;; 1015 esac 1016 1017 # Accept the important Cygnus configure options, so we can diagnose typos. 1018 1019 case $ac_dashdash$ac_option in 1020 --) 1021 ac_dashdash=yes ;; 1022 1023 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1024 ac_prev=bindir ;; 1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1026 bindir=$ac_optarg ;; 1027 1028 -build | --build | --buil | --bui | --bu) 1029 ac_prev=build_alias ;; 1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1031 build_alias=$ac_optarg ;; 1032 1033 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1035 ac_prev=cache_file ;; 1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1038 cache_file=$ac_optarg ;; 1039 1040 --config-cache | -C) 1041 cache_file=config.cache ;; 1042 1043 -datadir | --datadir | --datadi | --datad) 1044 ac_prev=datadir ;; 1045 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1046 datadir=$ac_optarg ;; 1047 1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1049 | --dataroo | --dataro | --datar) 1050 ac_prev=datarootdir ;; 1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1053 datarootdir=$ac_optarg ;; 1054 1055 -disable-* | --disable-*) 1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1057 # Reject names that are not valid shell variable names. 1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1059 as_fn_error $? "invalid feature name: $ac_useropt" 1060 ac_useropt_orig=$ac_useropt 1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1062 case $ac_user_opts in 1063 *" 1064"enable_$ac_useropt" 1065"*) ;; 1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1067 ac_unrecognized_sep=', ';; 1068 esac 1069 eval enable_$ac_useropt=no ;; 1070 1071 -docdir | --docdir | --docdi | --doc | --do) 1072 ac_prev=docdir ;; 1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1074 docdir=$ac_optarg ;; 1075 1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1077 ac_prev=dvidir ;; 1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1079 dvidir=$ac_optarg ;; 1080 1081 -enable-* | --enable-*) 1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1083 # Reject names that are not valid shell variable names. 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1085 as_fn_error $? "invalid feature name: $ac_useropt" 1086 ac_useropt_orig=$ac_useropt 1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1088 case $ac_user_opts in 1089 *" 1090"enable_$ac_useropt" 1091"*) ;; 1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1093 ac_unrecognized_sep=', ';; 1094 esac 1095 eval enable_$ac_useropt=\$ac_optarg ;; 1096 1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1099 | --exec | --exe | --ex) 1100 ac_prev=exec_prefix ;; 1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1103 | --exec=* | --exe=* | --ex=*) 1104 exec_prefix=$ac_optarg ;; 1105 1106 -gas | --gas | --ga | --g) 1107 # Obsolete; use --with-gas. 1108 with_gas=yes ;; 1109 1110 -help | --help | --hel | --he | -h) 1111 ac_init_help=long ;; 1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1113 ac_init_help=recursive ;; 1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1115 ac_init_help=short ;; 1116 1117 -host | --host | --hos | --ho) 1118 ac_prev=host_alias ;; 1119 -host=* | --host=* | --hos=* | --ho=*) 1120 host_alias=$ac_optarg ;; 1121 1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1123 ac_prev=htmldir ;; 1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1125 | --ht=*) 1126 htmldir=$ac_optarg ;; 1127 1128 -includedir | --includedir | --includedi | --included | --include \ 1129 | --includ | --inclu | --incl | --inc) 1130 ac_prev=includedir ;; 1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1132 | --includ=* | --inclu=* | --incl=* | --inc=*) 1133 includedir=$ac_optarg ;; 1134 1135 -infodir | --infodir | --infodi | --infod | --info | --inf) 1136 ac_prev=infodir ;; 1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1138 infodir=$ac_optarg ;; 1139 1140 -libdir | --libdir | --libdi | --libd) 1141 ac_prev=libdir ;; 1142 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1143 libdir=$ac_optarg ;; 1144 1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1146 | --libexe | --libex | --libe) 1147 ac_prev=libexecdir ;; 1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1149 | --libexe=* | --libex=* | --libe=*) 1150 libexecdir=$ac_optarg ;; 1151 1152 -localedir | --localedir | --localedi | --localed | --locale) 1153 ac_prev=localedir ;; 1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1155 localedir=$ac_optarg ;; 1156 1157 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1158 | --localstate | --localstat | --localsta | --localst | --locals) 1159 ac_prev=localstatedir ;; 1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1162 localstatedir=$ac_optarg ;; 1163 1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1165 ac_prev=mandir ;; 1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1167 mandir=$ac_optarg ;; 1168 1169 -nfp | --nfp | --nf) 1170 # Obsolete; use --without-fp. 1171 with_fp=no ;; 1172 1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1174 | --no-cr | --no-c | -n) 1175 no_create=yes ;; 1176 1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1179 no_recursion=yes ;; 1180 1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1183 | --oldin | --oldi | --old | --ol | --o) 1184 ac_prev=oldincludedir ;; 1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1188 oldincludedir=$ac_optarg ;; 1189 1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1191 ac_prev=prefix ;; 1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1193 prefix=$ac_optarg ;; 1194 1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1196 | --program-pre | --program-pr | --program-p) 1197 ac_prev=program_prefix ;; 1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1200 program_prefix=$ac_optarg ;; 1201 1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1203 | --program-suf | --program-su | --program-s) 1204 ac_prev=program_suffix ;; 1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1207 program_suffix=$ac_optarg ;; 1208 1209 -program-transform-name | --program-transform-name \ 1210 | --program-transform-nam | --program-transform-na \ 1211 | --program-transform-n | --program-transform- \ 1212 | --program-transform | --program-transfor \ 1213 | --program-transfo | --program-transf \ 1214 | --program-trans | --program-tran \ 1215 | --progr-tra | --program-tr | --program-t) 1216 ac_prev=program_transform_name ;; 1217 -program-transform-name=* | --program-transform-name=* \ 1218 | --program-transform-nam=* | --program-transform-na=* \ 1219 | --program-transform-n=* | --program-transform-=* \ 1220 | --program-transform=* | --program-transfor=* \ 1221 | --program-transfo=* | --program-transf=* \ 1222 | --program-trans=* | --program-tran=* \ 1223 | --progr-tra=* | --program-tr=* | --program-t=*) 1224 program_transform_name=$ac_optarg ;; 1225 1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1227 ac_prev=pdfdir ;; 1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1229 pdfdir=$ac_optarg ;; 1230 1231 -psdir | --psdir | --psdi | --psd | --ps) 1232 ac_prev=psdir ;; 1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1234 psdir=$ac_optarg ;; 1235 1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1237 | -silent | --silent | --silen | --sile | --sil) 1238 silent=yes ;; 1239 1240 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1241 | --runstate | --runstat | --runsta | --runst | --runs \ 1242 | --run | --ru | --r) 1243 ac_prev=runstatedir ;; 1244 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1245 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1246 | --run=* | --ru=* | --r=*) 1247 runstatedir=$ac_optarg ;; 1248 1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1250 ac_prev=sbindir ;; 1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1252 | --sbi=* | --sb=*) 1253 sbindir=$ac_optarg ;; 1254 1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1257 | --sharedst | --shareds | --shared | --share | --shar \ 1258 | --sha | --sh) 1259 ac_prev=sharedstatedir ;; 1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1263 | --sha=* | --sh=*) 1264 sharedstatedir=$ac_optarg ;; 1265 1266 -site | --site | --sit) 1267 ac_prev=site ;; 1268 -site=* | --site=* | --sit=*) 1269 site=$ac_optarg ;; 1270 1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1272 ac_prev=srcdir ;; 1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1274 srcdir=$ac_optarg ;; 1275 1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1277 | --syscon | --sysco | --sysc | --sys | --sy) 1278 ac_prev=sysconfdir ;; 1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1281 sysconfdir=$ac_optarg ;; 1282 1283 -target | --target | --targe | --targ | --tar | --ta | --t) 1284 ac_prev=target_alias ;; 1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1286 target_alias=$ac_optarg ;; 1287 1288 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1289 verbose=yes ;; 1290 1291 -version | --version | --versio | --versi | --vers | -V) 1292 ac_init_version=: ;; 1293 1294 -with-* | --with-*) 1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1296 # Reject names that are not valid shell variable names. 1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1298 as_fn_error $? "invalid package name: $ac_useropt" 1299 ac_useropt_orig=$ac_useropt 1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1301 case $ac_user_opts in 1302 *" 1303"with_$ac_useropt" 1304"*) ;; 1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1306 ac_unrecognized_sep=', ';; 1307 esac 1308 eval with_$ac_useropt=\$ac_optarg ;; 1309 1310 -without-* | --without-*) 1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1312 # Reject names that are not valid shell variable names. 1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1314 as_fn_error $? "invalid package name: $ac_useropt" 1315 ac_useropt_orig=$ac_useropt 1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1317 case $ac_user_opts in 1318 *" 1319"with_$ac_useropt" 1320"*) ;; 1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1322 ac_unrecognized_sep=', ';; 1323 esac 1324 eval with_$ac_useropt=no ;; 1325 1326 --x) 1327 # Obsolete; use --with-x. 1328 with_x=yes ;; 1329 1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1331 | --x-incl | --x-inc | --x-in | --x-i) 1332 ac_prev=x_includes ;; 1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1335 x_includes=$ac_optarg ;; 1336 1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1339 ac_prev=x_libraries ;; 1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1342 x_libraries=$ac_optarg ;; 1343 1344 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1345Try \`$0 --help' for more information" 1346 ;; 1347 1348 *=*) 1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1350 # Reject names that are not valid shell variable names. 1351 case $ac_envvar in #( 1352 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1353 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1354 esac 1355 eval $ac_envvar=\$ac_optarg 1356 export $ac_envvar ;; 1357 1358 *) 1359 # FIXME: should be removed in autoconf 3.0. 1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1363 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1364 ;; 1365 1366 esac 1367done 1368 1369if test -n "$ac_prev"; then 1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1371 as_fn_error $? "missing argument to $ac_option" 1372fi 1373 1374if test -n "$ac_unrecognized_opts"; then 1375 case $enable_option_checking in 1376 no) ;; 1377 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1379 esac 1380fi 1381 1382# Check all directory arguments for consistency. 1383for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1384 datadir sysconfdir sharedstatedir localstatedir includedir \ 1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1386 libdir localedir mandir runstatedir 1387do 1388 eval ac_val=\$$ac_var 1389 # Remove trailing slashes. 1390 case $ac_val in 1391 */ ) 1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1393 eval $ac_var=\$ac_val;; 1394 esac 1395 # Be sure to have absolute directory names. 1396 case $ac_val in 1397 [\\/$]* | ?:[\\/]* ) continue;; 1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1399 esac 1400 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1401done 1402 1403# There might be people who depend on the old broken behavior: `$host' 1404# used to hold the argument of --host etc. 1405# FIXME: To remove some day. 1406build=$build_alias 1407host=$host_alias 1408target=$target_alias 1409 1410# FIXME: To remove some day. 1411if test "x$host_alias" != x; then 1412 if test "x$build_alias" = x; then 1413 cross_compiling=maybe 1414 elif test "x$build_alias" != "x$host_alias"; then 1415 cross_compiling=yes 1416 fi 1417fi 1418 1419ac_tool_prefix= 1420test -n "$host_alias" && ac_tool_prefix=$host_alias- 1421 1422test "$silent" = yes && exec 6>/dev/null 1423 1424 1425ac_pwd=`pwd` && test -n "$ac_pwd" && 1426ac_ls_di=`ls -di .` && 1427ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1428 as_fn_error $? "working directory cannot be determined" 1429test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1430 as_fn_error $? "pwd does not report name of working directory" 1431 1432 1433# Find the source files, if location was not specified. 1434if test -z "$srcdir"; then 1435 ac_srcdir_defaulted=yes 1436 # Try the directory containing this script, then the parent directory. 1437 ac_confdir=`$as_dirname -- "$as_myself" || 1438$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1439 X"$as_myself" : 'X\(//\)[^/]' \| \ 1440 X"$as_myself" : 'X\(//\)$' \| \ 1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1442$as_echo X"$as_myself" | 1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1444 s//\1/ 1445 q 1446 } 1447 /^X\(\/\/\)[^/].*/{ 1448 s//\1/ 1449 q 1450 } 1451 /^X\(\/\/\)$/{ 1452 s//\1/ 1453 q 1454 } 1455 /^X\(\/\).*/{ 1456 s//\1/ 1457 q 1458 } 1459 s/.*/./; q'` 1460 srcdir=$ac_confdir 1461 if test ! -r "$srcdir/$ac_unique_file"; then 1462 srcdir=.. 1463 fi 1464else 1465 ac_srcdir_defaulted=no 1466fi 1467if test ! -r "$srcdir/$ac_unique_file"; then 1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1469 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1470fi 1471ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1472ac_abs_confdir=`( 1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1474 pwd)` 1475# When building in place, set srcdir=. 1476if test "$ac_abs_confdir" = "$ac_pwd"; then 1477 srcdir=. 1478fi 1479# Remove unnecessary trailing slashes from srcdir. 1480# Double slashes in file names in object file debugging info 1481# mess up M-x gdb in Emacs. 1482case $srcdir in 1483*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1484esac 1485for ac_var in $ac_precious_vars; do 1486 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1487 eval ac_env_${ac_var}_value=\$${ac_var} 1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1489 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1490done 1491 1492# 1493# Report the --help message. 1494# 1495if test "$ac_init_help" = "long"; then 1496 # Omit some internal or obsolete options to make the list less imposing. 1497 # This message is too long to be a string in the A/UX 3.1 sh. 1498 cat <<_ACEOF 1499\`configure' configures Kerberos 5 1.19.2 to adapt to many kinds of systems. 1500 1501Usage: $0 [OPTION]... [VAR=VALUE]... 1502 1503To assign environment variables (e.g., CC, CFLAGS...), specify them as 1504VAR=VALUE. See below for descriptions of some of the useful variables. 1505 1506Defaults for the options are specified in brackets. 1507 1508Configuration: 1509 -h, --help display this help and exit 1510 --help=short display options specific to this package 1511 --help=recursive display the short help of all the included packages 1512 -V, --version display version information and exit 1513 -q, --quiet, --silent do not print \`checking ...' messages 1514 --cache-file=FILE cache test results in FILE [disabled] 1515 -C, --config-cache alias for \`--cache-file=config.cache' 1516 -n, --no-create do not create output files 1517 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1518 1519Installation directories: 1520 --prefix=PREFIX install architecture-independent files in PREFIX 1521 [$ac_default_prefix] 1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1523 [PREFIX] 1524 1525By default, \`make install' will install all the files in 1526\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1527an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1528for instance \`--prefix=\$HOME'. 1529 1530For better control, use the options below. 1531 1532Fine tuning of the installation directories: 1533 --bindir=DIR user executables [EPREFIX/bin] 1534 --sbindir=DIR system admin executables [EPREFIX/sbin] 1535 --libexecdir=DIR program executables [EPREFIX/libexec] 1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1539 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1540 --libdir=DIR object code libraries [EPREFIX/lib] 1541 --includedir=DIR C header files [PREFIX/include] 1542 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1545 --infodir=DIR info documentation [DATAROOTDIR/info] 1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1547 --mandir=DIR man documentation [DATAROOTDIR/man] 1548 --docdir=DIR documentation root [DATAROOTDIR/doc/krb5] 1549 --htmldir=DIR html documentation [DOCDIR] 1550 --dvidir=DIR dvi documentation [DOCDIR] 1551 --pdfdir=DIR pdf documentation [DOCDIR] 1552 --psdir=DIR ps documentation [DOCDIR] 1553_ACEOF 1554 1555 cat <<\_ACEOF 1556 1557Program names: 1558 --program-prefix=PREFIX prepend PREFIX to installed program names 1559 --program-suffix=SUFFIX append SUFFIX to installed program names 1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1561 1562System types: 1563 --build=BUILD configure for building on BUILD [guessed] 1564 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1565_ACEOF 1566fi 1567 1568if test -n "$ac_init_help"; then 1569 case $ac_init_help in 1570 short | recursive ) echo "Configuration of Kerberos 5 1.19.2:";; 1571 esac 1572 cat <<\_ACEOF 1573 1574Optional Features: 1575 --disable-option-checking ignore unrecognized --enable/--with options 1576 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1577 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1578 --enable-dns-for-realm enable DNS lookups of Kerberos realm names 1579 --enable-maintainer-mode 1580 enable rebuilding of source files, Makefiles, etc 1581 --disable-delayed-initialization 1582 initialize library code when loaded [delay until 1583 first use] 1584 --disable-thread-support 1585 don't enable thread support [enabled] 1586 1587 --disable-rpath suppress run path flags in link lines 1588 --enable-athena build with MIT Project Athena configuration 1589 --disable-nls disable native language support 1590 --enable-audit-plugin=IMPL 1591 use audit plugin [ do not use audit ] 1592 --disable-aesni Do not build with AES-NI support 1593 --disable-kdc-lookaside-cache 1594 Disable the cache which detects client retransmits 1595 --enable-asan Build with asan memory checking 1596 --disable-pkinit disable PKINIT plugin support 1597 1598Optional Packages: 1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1601 --with-size-optimizations enable a few optimizations to reduce code size 1602 possibly at some run-time cost 1603 --with-system-et use system compile_et and -lcom_err [default: build 1604 and install a local version] 1605 --with-system-ss use system -lss and mk_cmds [private version] 1606 --with-system-db use system Berkeley db [private version] 1607 --with-netlib=LIBS use user defined resolver library 1608 --with-hesiod=path compile with hesiod support [omitted] 1609 --with-ldap compile OpenLDAP database backend module 1610 --with-tcl=path where Tcl resides 1611 --with-vague-errors Do not [do] send helpful errors to client 1612 --with-crypto-impl=IMPL use specified crypto implementation [builtin] 1613 --with-prng-alg=ALG use specified PRNG algorithm. [fortuna] 1614 --with-tls-impl=IMPL use specified TLS implementation [auto] 1615 --without-keyutils do not link with libkeyutils 1616 --with-spake-openssl use OpenSSL for SPAKE preauth [auto] 1617 --with-lmdb compile LMDB database backend module [auto] 1618 --without-libedit do not compile with libedit 1619 --with-readline compile with GNU Readline 1620 --with-system-verto always use system verto library 1621 --with-krb5-config=PATH path to existing krb5-config program for defaults 1622 1623Some influential environment variables: 1624 CC C compiler command 1625 CFLAGS C compiler flags 1626 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1627 nonstandard directory <lib dir> 1628 LIBS libraries to pass to the linker, e.g. -l<library> 1629 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1630 you have headers in a nonstandard directory <include dir> 1631 CXX C++ compiler command 1632 CXXFLAGS C++ compiler flags 1633 CPP C preprocessor 1634 LD linker command [CC] 1635 PKG_CONFIG path to pkg-config utility 1636 PKG_CONFIG_PATH 1637 directories to add to pkg-config's search path 1638 PKG_CONFIG_LIBDIR 1639 path overriding pkg-config's built-in search path 1640 COM_ERR_CFLAGS 1641 C compiler flags for COM_ERR, overriding pkg-config 1642 COM_ERR_LIBS 1643 linker flags for COM_ERR, overriding pkg-config 1644 SS_LIB system libraries for 'ss' package [-lss] 1645 DB_HEADER header file for system Berkeley db package [db.h] 1646 DB_LIB library for system Berkeley db package [-ldb] 1647 YACC The `Yet Another Compiler Compiler' implementation to use. 1648 Defaults to the first program found out of: `bison -y', `byacc', 1649 `yacc'. 1650 YFLAGS The list of arguments that will be passed by default to $YACC. 1651 This script will default YFLAGS to the empty string to avoid a 1652 default value of `-d' given by some make applications. 1653 LIBEDIT_CFLAGS 1654 C compiler flags for LIBEDIT, overriding pkg-config 1655 LIBEDIT_LIBS 1656 linker flags for LIBEDIT, overriding pkg-config 1657 VERTO_CFLAGS 1658 C compiler flags for VERTO, overriding pkg-config 1659 VERTO_LIBS linker flags for VERTO, overriding pkg-config 1660 DEFCCNAME Default ccache name 1661 DEFKTNAME Default keytab name 1662 DEFCKTNAME Default client keytab name 1663 1664Use these variables to override the choices made by `configure' or to help 1665it to find libraries and programs with nonstandard names/locations. 1666 1667Report bugs to <krb5-bugs@mit.edu>. 1668_ACEOF 1669ac_status=$? 1670fi 1671 1672if test "$ac_init_help" = "recursive"; then 1673 # If there are subdirs, report their specific --help. 1674 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1675 test -d "$ac_dir" || 1676 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1677 continue 1678 ac_builddir=. 1679 1680case "$ac_dir" in 1681.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1682*) 1683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1684 # A ".." for each directory in $ac_dir_suffix. 1685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1686 case $ac_top_builddir_sub in 1687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1689 esac ;; 1690esac 1691ac_abs_top_builddir=$ac_pwd 1692ac_abs_builddir=$ac_pwd$ac_dir_suffix 1693# for backward compatibility: 1694ac_top_builddir=$ac_top_build_prefix 1695 1696case $srcdir in 1697 .) # We are building in place. 1698 ac_srcdir=. 1699 ac_top_srcdir=$ac_top_builddir_sub 1700 ac_abs_top_srcdir=$ac_pwd ;; 1701 [\\/]* | ?:[\\/]* ) # Absolute name. 1702 ac_srcdir=$srcdir$ac_dir_suffix; 1703 ac_top_srcdir=$srcdir 1704 ac_abs_top_srcdir=$srcdir ;; 1705 *) # Relative name. 1706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1707 ac_top_srcdir=$ac_top_build_prefix$srcdir 1708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1709esac 1710ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1711 1712 cd "$ac_dir" || { ac_status=$?; continue; } 1713 # Check for guested configure. 1714 if test -f "$ac_srcdir/configure.gnu"; then 1715 echo && 1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1717 elif test -f "$ac_srcdir/configure"; then 1718 echo && 1719 $SHELL "$ac_srcdir/configure" --help=recursive 1720 else 1721 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1722 fi || ac_status=$? 1723 cd "$ac_pwd" || { ac_status=$?; break; } 1724 done 1725fi 1726 1727test -n "$ac_init_help" && exit $ac_status 1728if $ac_init_version; then 1729 cat <<\_ACEOF 1730Kerberos 5 configure 1.19.2 1731generated by GNU Autoconf 2.69 1732 1733Copyright (C) 2012 Free Software Foundation, Inc. 1734This configure script is free software; the Free Software Foundation 1735gives unlimited permission to copy, distribute and modify it. 1736 1737Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 1738Massachusetts Institute of Technology. 1739 1740_ACEOF 1741 exit 1742fi 1743 1744## ------------------------ ## 1745## Autoconf initialization. ## 1746## ------------------------ ## 1747 1748# ac_fn_c_try_compile LINENO 1749# -------------------------- 1750# Try to compile conftest.$ac_ext, and return whether this succeeded. 1751ac_fn_c_try_compile () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 rm -f conftest.$ac_objext 1755 if { { ac_try="$ac_compile" 1756case "(($ac_try" in 1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1758 *) ac_try_echo=$ac_try;; 1759esac 1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1761$as_echo "$ac_try_echo"; } >&5 1762 (eval "$ac_compile") 2>conftest.err 1763 ac_status=$? 1764 if test -s conftest.err; then 1765 grep -v '^ *+' conftest.err >conftest.er1 1766 cat conftest.er1 >&5 1767 mv -f conftest.er1 conftest.err 1768 fi 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; } && { 1771 test -z "$ac_c_werror_flag" || 1772 test ! -s conftest.err 1773 } && test -s conftest.$ac_objext; then : 1774 ac_retval=0 1775else 1776 $as_echo "$as_me: failed program was:" >&5 1777sed 's/^/| /' conftest.$ac_ext >&5 1778 1779 ac_retval=1 1780fi 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 as_fn_set_status $ac_retval 1783 1784} # ac_fn_c_try_compile 1785 1786# ac_fn_cxx_try_compile LINENO 1787# ---------------------------- 1788# Try to compile conftest.$ac_ext, and return whether this succeeded. 1789ac_fn_cxx_try_compile () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 rm -f conftest.$ac_objext 1793 if { { ac_try="$ac_compile" 1794case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799$as_echo "$ac_try_echo"; } >&5 1800 (eval "$ac_compile") 2>conftest.err 1801 ac_status=$? 1802 if test -s conftest.err; then 1803 grep -v '^ *+' conftest.err >conftest.er1 1804 cat conftest.er1 >&5 1805 mv -f conftest.er1 conftest.err 1806 fi 1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1808 test $ac_status = 0; } && { 1809 test -z "$ac_cxx_werror_flag" || 1810 test ! -s conftest.err 1811 } && test -s conftest.$ac_objext; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=1 1818fi 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 as_fn_set_status $ac_retval 1821 1822} # ac_fn_cxx_try_compile 1823 1824# ac_fn_c_try_cpp LINENO 1825# ---------------------- 1826# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1827ac_fn_c_try_cpp () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 if { { ac_try="$ac_cpp conftest.$ac_ext" 1831case "(($ac_try" in 1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1833 *) ac_try_echo=$ac_try;; 1834esac 1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1836$as_echo "$ac_try_echo"; } >&5 1837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1838 ac_status=$? 1839 if test -s conftest.err; then 1840 grep -v '^ *+' conftest.err >conftest.er1 1841 cat conftest.er1 >&5 1842 mv -f conftest.er1 conftest.err 1843 fi 1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1845 test $ac_status = 0; } > conftest.i && { 1846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1847 test ! -s conftest.err 1848 }; then : 1849 ac_retval=0 1850else 1851 $as_echo "$as_me: failed program was:" >&5 1852sed 's/^/| /' conftest.$ac_ext >&5 1853 1854 ac_retval=1 1855fi 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859} # ac_fn_c_try_cpp 1860 1861# ac_fn_c_try_link LINENO 1862# ----------------------- 1863# Try to link conftest.$ac_ext, and return whether this succeeded. 1864ac_fn_c_try_link () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 rm -f conftest.$ac_objext conftest$ac_exeext 1868 if { { ac_try="$ac_link" 1869case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872esac 1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874$as_echo "$ac_try_echo"; } >&5 1875 (eval "$ac_link") 2>conftest.err 1876 ac_status=$? 1877 if test -s conftest.err; then 1878 grep -v '^ *+' conftest.err >conftest.er1 1879 cat conftest.er1 >&5 1880 mv -f conftest.er1 conftest.err 1881 fi 1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1883 test $ac_status = 0; } && { 1884 test -z "$ac_c_werror_flag" || 1885 test ! -s conftest.err 1886 } && test -s conftest$ac_exeext && { 1887 test "$cross_compiling" = yes || 1888 test -x conftest$ac_exeext 1889 }; then : 1890 ac_retval=0 1891else 1892 $as_echo "$as_me: failed program was:" >&5 1893sed 's/^/| /' conftest.$ac_ext >&5 1894 1895 ac_retval=1 1896fi 1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1899 # interfere with the next link command; also delete a directory that is 1900 # left behind by Apple's compiler. We do this before executing the actions. 1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905} # ac_fn_c_try_link 1906 1907# ac_fn_c_try_run LINENO 1908# ---------------------- 1909# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1910# that executables *can* be run. 1911ac_fn_c_try_run () 1912{ 1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1914 if { { ac_try="$ac_link" 1915case "(($ac_try" in 1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1917 *) ac_try_echo=$ac_try;; 1918esac 1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1920$as_echo "$ac_try_echo"; } >&5 1921 (eval "$ac_link") 2>&5 1922 ac_status=$? 1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1924 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1925 { { case "(($ac_try" in 1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1927 *) ac_try_echo=$ac_try;; 1928esac 1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1930$as_echo "$ac_try_echo"; } >&5 1931 (eval "$ac_try") 2>&5 1932 ac_status=$? 1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1934 test $ac_status = 0; }; }; then : 1935 ac_retval=0 1936else 1937 $as_echo "$as_me: program exited with status $ac_status" >&5 1938 $as_echo "$as_me: failed program was:" >&5 1939sed 's/^/| /' conftest.$ac_ext >&5 1940 1941 ac_retval=$ac_status 1942fi 1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1945 as_fn_set_status $ac_retval 1946 1947} # ac_fn_c_try_run 1948 1949# ac_fn_c_check_func LINENO FUNC VAR 1950# ---------------------------------- 1951# Tests whether FUNC exists, setting the cache variable VAR accordingly 1952ac_fn_c_check_func () 1953{ 1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1956$as_echo_n "checking for $2... " >&6; } 1957if eval \${$3+:} false; then : 1958 $as_echo_n "(cached) " >&6 1959else 1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1961/* end confdefs.h. */ 1962/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1963 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1964#define $2 innocuous_$2 1965 1966/* System header to define __stub macros and hopefully few prototypes, 1967 which can conflict with char $2 (); below. 1968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1969 <limits.h> exists even on freestanding compilers. */ 1970 1971#ifdef __STDC__ 1972# include <limits.h> 1973#else 1974# include <assert.h> 1975#endif 1976 1977#undef $2 1978 1979/* Override any GCC internal prototype to avoid an error. 1980 Use char because int might match the return type of a GCC 1981 builtin and then its argument prototype would still apply. */ 1982#ifdef __cplusplus 1983extern "C" 1984#endif 1985char $2 (); 1986/* The GNU C library defines this for functions which it implements 1987 to always fail with ENOSYS. Some functions are actually named 1988 something starting with __ and the normal name is an alias. */ 1989#if defined __stub_$2 || defined __stub___$2 1990choke me 1991#endif 1992 1993int 1994main () 1995{ 1996return $2 (); 1997 ; 1998 return 0; 1999} 2000_ACEOF 2001if ac_fn_c_try_link "$LINENO"; then : 2002 eval "$3=yes" 2003else 2004 eval "$3=no" 2005fi 2006rm -f core conftest.err conftest.$ac_objext \ 2007 conftest$ac_exeext conftest.$ac_ext 2008fi 2009eval ac_res=\$$3 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011$as_echo "$ac_res" >&6; } 2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2013 2014} # ac_fn_c_check_func 2015 2016# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2017# ------------------------------------------------------- 2018# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2019# the include files in INCLUDES and setting the cache variable VAR 2020# accordingly. 2021ac_fn_c_check_header_mongrel () 2022{ 2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2024 if eval \${$3+:} false; then : 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2026$as_echo_n "checking for $2... " >&6; } 2027if eval \${$3+:} false; then : 2028 $as_echo_n "(cached) " >&6 2029fi 2030eval ac_res=\$$3 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2032$as_echo "$ac_res" >&6; } 2033else 2034 # Is the header compilable? 2035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2036$as_echo_n "checking $2 usability... " >&6; } 2037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038/* end confdefs.h. */ 2039$4 2040#include <$2> 2041_ACEOF 2042if ac_fn_c_try_compile "$LINENO"; then : 2043 ac_header_compiler=yes 2044else 2045 ac_header_compiler=no 2046fi 2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2049$as_echo "$ac_header_compiler" >&6; } 2050 2051# Is the header present? 2052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2053$as_echo_n "checking $2 presence... " >&6; } 2054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056#include <$2> 2057_ACEOF 2058if ac_fn_c_try_cpp "$LINENO"; then : 2059 ac_header_preproc=yes 2060else 2061 ac_header_preproc=no 2062fi 2063rm -f conftest.err conftest.i conftest.$ac_ext 2064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2065$as_echo "$ac_header_preproc" >&6; } 2066 2067# So? What about this header? 2068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2069 yes:no: ) 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2071$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2073$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2074 ;; 2075 no:yes:* ) 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2077$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2079$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2081$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2083$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2085$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2086( $as_echo "## -------------------------------- ## 2087## Report this to krb5-bugs@mit.edu ## 2088## -------------------------------- ##" 2089 ) | sed "s/^/$as_me: WARNING: /" >&2 2090 ;; 2091esac 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2093$as_echo_n "checking for $2... " >&6; } 2094if eval \${$3+:} false; then : 2095 $as_echo_n "(cached) " >&6 2096else 2097 eval "$3=\$ac_header_compiler" 2098fi 2099eval ac_res=\$$3 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2101$as_echo "$ac_res" >&6; } 2102fi 2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2104 2105} # ac_fn_c_check_header_mongrel 2106 2107# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2108# ------------------------------------------------------- 2109# Tests whether HEADER exists and can be compiled using the include files in 2110# INCLUDES, setting the cache variable VAR accordingly. 2111ac_fn_c_check_header_compile () 2112{ 2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2115$as_echo_n "checking for $2... " >&6; } 2116if eval \${$3+:} false; then : 2117 $as_echo_n "(cached) " >&6 2118else 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120/* end confdefs.h. */ 2121$4 2122#include <$2> 2123_ACEOF 2124if ac_fn_c_try_compile "$LINENO"; then : 2125 eval "$3=yes" 2126else 2127 eval "$3=no" 2128fi 2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2130fi 2131eval ac_res=\$$3 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2133$as_echo "$ac_res" >&6; } 2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2135 2136} # ac_fn_c_check_header_compile 2137 2138# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2139# ------------------------------------------- 2140# Tests whether TYPE exists after having included INCLUDES, setting cache 2141# variable VAR accordingly. 2142ac_fn_c_check_type () 2143{ 2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2146$as_echo_n "checking for $2... " >&6; } 2147if eval \${$3+:} false; then : 2148 $as_echo_n "(cached) " >&6 2149else 2150 eval "$3=no" 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153$4 2154int 2155main () 2156{ 2157if (sizeof ($2)) 2158 return 0; 2159 ; 2160 return 0; 2161} 2162_ACEOF 2163if ac_fn_c_try_compile "$LINENO"; then : 2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2165/* end confdefs.h. */ 2166$4 2167int 2168main () 2169{ 2170if (sizeof (($2))) 2171 return 0; 2172 ; 2173 return 0; 2174} 2175_ACEOF 2176if ac_fn_c_try_compile "$LINENO"; then : 2177 2178else 2179 eval "$3=yes" 2180fi 2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184fi 2185eval ac_res=\$$3 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2187$as_echo "$ac_res" >&6; } 2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2189 2190} # ac_fn_c_check_type 2191 2192# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2193# ---------------------------------------------------- 2194# Tries to find if the field MEMBER exists in type AGGR, after including 2195# INCLUDES, setting cache variable VAR accordingly. 2196ac_fn_c_check_member () 2197{ 2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2200$as_echo_n "checking for $2.$3... " >&6; } 2201if eval \${$4+:} false; then : 2202 $as_echo_n "(cached) " >&6 2203else 2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205/* end confdefs.h. */ 2206$5 2207int 2208main () 2209{ 2210static $2 ac_aggr; 2211if (ac_aggr.$3) 2212return 0; 2213 ; 2214 return 0; 2215} 2216_ACEOF 2217if ac_fn_c_try_compile "$LINENO"; then : 2218 eval "$4=yes" 2219else 2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2221/* end confdefs.h. */ 2222$5 2223int 2224main () 2225{ 2226static $2 ac_aggr; 2227if (sizeof ac_aggr.$3) 2228return 0; 2229 ; 2230 return 0; 2231} 2232_ACEOF 2233if ac_fn_c_try_compile "$LINENO"; then : 2234 eval "$4=yes" 2235else 2236 eval "$4=no" 2237fi 2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2239fi 2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2241fi 2242eval ac_res=\$$4 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2244$as_echo "$ac_res" >&6; } 2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2246 2247} # ac_fn_c_check_member 2248 2249# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2250# --------------------------------------------- 2251# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2252# accordingly. 2253ac_fn_c_check_decl () 2254{ 2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2256 as_decl_name=`echo $2|sed 's/ *(.*//'` 2257 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2259$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2260if eval \${$3+:} false; then : 2261 $as_echo_n "(cached) " >&6 2262else 2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2264/* end confdefs.h. */ 2265$4 2266int 2267main () 2268{ 2269#ifndef $as_decl_name 2270#ifdef __cplusplus 2271 (void) $as_decl_use; 2272#else 2273 (void) $as_decl_name; 2274#endif 2275#endif 2276 2277 ; 2278 return 0; 2279} 2280_ACEOF 2281if ac_fn_c_try_compile "$LINENO"; then : 2282 eval "$3=yes" 2283else 2284 eval "$3=no" 2285fi 2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2287fi 2288eval ac_res=\$$3 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2290$as_echo "$ac_res" >&6; } 2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2292 2293} # ac_fn_c_check_decl 2294 2295# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2296# -------------------------------------------- 2297# Tries to find the compile-time value of EXPR in a program that includes 2298# INCLUDES, setting VAR accordingly. Returns whether the value could be 2299# computed 2300ac_fn_c_compute_int () 2301{ 2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2303 if test "$cross_compiling" = yes; then 2304 # Depending upon the size, compute the lo and hi bounds. 2305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2306/* end confdefs.h. */ 2307$4 2308int 2309main () 2310{ 2311static int test_array [1 - 2 * !(($2) >= 0)]; 2312test_array [0] = 0; 2313return test_array [0]; 2314 2315 ; 2316 return 0; 2317} 2318_ACEOF 2319if ac_fn_c_try_compile "$LINENO"; then : 2320 ac_lo=0 ac_mid=0 2321 while :; do 2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2323/* end confdefs.h. */ 2324$4 2325int 2326main () 2327{ 2328static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2329test_array [0] = 0; 2330return test_array [0]; 2331 2332 ; 2333 return 0; 2334} 2335_ACEOF 2336if ac_fn_c_try_compile "$LINENO"; then : 2337 ac_hi=$ac_mid; break 2338else 2339 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2340 if test $ac_lo -le $ac_mid; then 2341 ac_lo= ac_hi= 2342 break 2343 fi 2344 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2345fi 2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2347 done 2348else 2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2350/* end confdefs.h. */ 2351$4 2352int 2353main () 2354{ 2355static int test_array [1 - 2 * !(($2) < 0)]; 2356test_array [0] = 0; 2357return test_array [0]; 2358 2359 ; 2360 return 0; 2361} 2362_ACEOF 2363if ac_fn_c_try_compile "$LINENO"; then : 2364 ac_hi=-1 ac_mid=-1 2365 while :; do 2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2367/* end confdefs.h. */ 2368$4 2369int 2370main () 2371{ 2372static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2373test_array [0] = 0; 2374return test_array [0]; 2375 2376 ; 2377 return 0; 2378} 2379_ACEOF 2380if ac_fn_c_try_compile "$LINENO"; then : 2381 ac_lo=$ac_mid; break 2382else 2383 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2384 if test $ac_mid -le $ac_hi; then 2385 ac_lo= ac_hi= 2386 break 2387 fi 2388 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2389fi 2390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2391 done 2392else 2393 ac_lo= ac_hi= 2394fi 2395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2396fi 2397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2398# Binary search between lo and hi bounds. 2399while test "x$ac_lo" != "x$ac_hi"; do 2400 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2402/* end confdefs.h. */ 2403$4 2404int 2405main () 2406{ 2407static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2408test_array [0] = 0; 2409return test_array [0]; 2410 2411 ; 2412 return 0; 2413} 2414_ACEOF 2415if ac_fn_c_try_compile "$LINENO"; then : 2416 ac_hi=$ac_mid 2417else 2418 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2419fi 2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2421done 2422case $ac_lo in #(( 2423?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2424'') ac_retval=1 ;; 2425esac 2426 else 2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2428/* end confdefs.h. */ 2429$4 2430static long int longval () { return $2; } 2431static unsigned long int ulongval () { return $2; } 2432#include <stdio.h> 2433#include <stdlib.h> 2434int 2435main () 2436{ 2437 2438 FILE *f = fopen ("conftest.val", "w"); 2439 if (! f) 2440 return 1; 2441 if (($2) < 0) 2442 { 2443 long int i = longval (); 2444 if (i != ($2)) 2445 return 1; 2446 fprintf (f, "%ld", i); 2447 } 2448 else 2449 { 2450 unsigned long int i = ulongval (); 2451 if (i != ($2)) 2452 return 1; 2453 fprintf (f, "%lu", i); 2454 } 2455 /* Do not output a trailing newline, as this causes \r\n confusion 2456 on some platforms. */ 2457 return ferror (f) || fclose (f) != 0; 2458 2459 ; 2460 return 0; 2461} 2462_ACEOF 2463if ac_fn_c_try_run "$LINENO"; then : 2464 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2465else 2466 ac_retval=1 2467fi 2468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2469 conftest.$ac_objext conftest.beam conftest.$ac_ext 2470rm -f conftest.val 2471 2472 fi 2473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2474 as_fn_set_status $ac_retval 2475 2476} # ac_fn_c_compute_int 2477cat >config.log <<_ACEOF 2478This file contains any messages produced by compilers while 2479running configure, to aid debugging if configure makes a mistake. 2480 2481It was created by Kerberos 5 $as_me 1.19.2, which was 2482generated by GNU Autoconf 2.69. Invocation command line was 2483 2484 $ $0 $@ 2485 2486_ACEOF 2487exec 5>>config.log 2488{ 2489cat <<_ASUNAME 2490## --------- ## 2491## Platform. ## 2492## --------- ## 2493 2494hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2495uname -m = `(uname -m) 2>/dev/null || echo unknown` 2496uname -r = `(uname -r) 2>/dev/null || echo unknown` 2497uname -s = `(uname -s) 2>/dev/null || echo unknown` 2498uname -v = `(uname -v) 2>/dev/null || echo unknown` 2499 2500/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2501/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2502 2503/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2504/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2505/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2506/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2507/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2508/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2509/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2510 2511_ASUNAME 2512 2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2514for as_dir in $PATH 2515do 2516 IFS=$as_save_IFS 2517 test -z "$as_dir" && as_dir=. 2518 $as_echo "PATH: $as_dir" 2519 done 2520IFS=$as_save_IFS 2521 2522} >&5 2523 2524cat >&5 <<_ACEOF 2525 2526 2527## ----------- ## 2528## Core tests. ## 2529## ----------- ## 2530 2531_ACEOF 2532 2533 2534# Keep a trace of the command line. 2535# Strip out --no-create and --no-recursion so they do not pile up. 2536# Strip out --silent because we don't want to record it for future runs. 2537# Also quote any args containing shell meta-characters. 2538# Make two passes to allow for proper duplicate-argument suppression. 2539ac_configure_args= 2540ac_configure_args0= 2541ac_configure_args1= 2542ac_must_keep_next=false 2543for ac_pass in 1 2 2544do 2545 for ac_arg 2546 do 2547 case $ac_arg in 2548 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2550 | -silent | --silent | --silen | --sile | --sil) 2551 continue ;; 2552 *\'*) 2553 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2554 esac 2555 case $ac_pass in 2556 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2557 2) 2558 as_fn_append ac_configure_args1 " '$ac_arg'" 2559 if test $ac_must_keep_next = true; then 2560 ac_must_keep_next=false # Got value, back to normal. 2561 else 2562 case $ac_arg in 2563 *=* | --config-cache | -C | -disable-* | --disable-* \ 2564 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2565 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2566 | -with-* | --with-* | -without-* | --without-* | --x) 2567 case "$ac_configure_args0 " in 2568 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2569 esac 2570 ;; 2571 -* ) ac_must_keep_next=true ;; 2572 esac 2573 fi 2574 as_fn_append ac_configure_args " '$ac_arg'" 2575 ;; 2576 esac 2577 done 2578done 2579{ ac_configure_args0=; unset ac_configure_args0;} 2580{ ac_configure_args1=; unset ac_configure_args1;} 2581 2582# When interrupted or exit'd, cleanup temporary files, and complete 2583# config.log. We remove comments because anyway the quotes in there 2584# would cause problems or look ugly. 2585# WARNING: Use '\'' to represent an apostrophe within the trap. 2586# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2587trap 'exit_status=$? 2588 # Save into config.log some information that might help in debugging. 2589 { 2590 echo 2591 2592 $as_echo "## ---------------- ## 2593## Cache variables. ## 2594## ---------------- ##" 2595 echo 2596 # The following way of writing the cache mishandles newlines in values, 2597( 2598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2599 eval ac_val=\$$ac_var 2600 case $ac_val in #( 2601 *${as_nl}*) 2602 case $ac_var in #( 2603 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2604$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2605 esac 2606 case $ac_var in #( 2607 _ | IFS | as_nl) ;; #( 2608 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2609 *) { eval $ac_var=; unset $ac_var;} ;; 2610 esac ;; 2611 esac 2612 done 2613 (set) 2>&1 | 2614 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2615 *${as_nl}ac_space=\ *) 2616 sed -n \ 2617 "s/'\''/'\''\\\\'\'''\''/g; 2618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2619 ;; #( 2620 *) 2621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2622 ;; 2623 esac | 2624 sort 2625) 2626 echo 2627 2628 $as_echo "## ----------------- ## 2629## Output variables. ## 2630## ----------------- ##" 2631 echo 2632 for ac_var in $ac_subst_vars 2633 do 2634 eval ac_val=\$$ac_var 2635 case $ac_val in 2636 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2637 esac 2638 $as_echo "$ac_var='\''$ac_val'\''" 2639 done | sort 2640 echo 2641 2642 if test -n "$ac_subst_files"; then 2643 $as_echo "## ------------------- ## 2644## File substitutions. ## 2645## ------------------- ##" 2646 echo 2647 for ac_var in $ac_subst_files 2648 do 2649 eval ac_val=\$$ac_var 2650 case $ac_val in 2651 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2652 esac 2653 $as_echo "$ac_var='\''$ac_val'\''" 2654 done | sort 2655 echo 2656 fi 2657 2658 if test -s confdefs.h; then 2659 $as_echo "## ----------- ## 2660## confdefs.h. ## 2661## ----------- ##" 2662 echo 2663 cat confdefs.h 2664 echo 2665 fi 2666 test "$ac_signal" != 0 && 2667 $as_echo "$as_me: caught signal $ac_signal" 2668 $as_echo "$as_me: exit $exit_status" 2669 } >&5 2670 rm -f core *.core core.conftest.* && 2671 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2672 exit $exit_status 2673' 0 2674for ac_signal in 1 2 13 15; do 2675 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2676done 2677ac_signal=0 2678 2679# confdefs.h avoids OS command line length limits that DEFS can exceed. 2680rm -f -r conftest* confdefs.h 2681 2682$as_echo "/* confdefs.h */" > confdefs.h 2683 2684# Predefined preprocessor variables. 2685 2686cat >>confdefs.h <<_ACEOF 2687#define PACKAGE_NAME "$PACKAGE_NAME" 2688_ACEOF 2689 2690cat >>confdefs.h <<_ACEOF 2691#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2692_ACEOF 2693 2694cat >>confdefs.h <<_ACEOF 2695#define PACKAGE_VERSION "$PACKAGE_VERSION" 2696_ACEOF 2697 2698cat >>confdefs.h <<_ACEOF 2699#define PACKAGE_STRING "$PACKAGE_STRING" 2700_ACEOF 2701 2702cat >>confdefs.h <<_ACEOF 2703#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2704_ACEOF 2705 2706cat >>confdefs.h <<_ACEOF 2707#define PACKAGE_URL "$PACKAGE_URL" 2708_ACEOF 2709 2710 2711# Let the site file select an alternate cache file if it wants to. 2712# Prefer an explicitly selected file to automatically selected ones. 2713ac_site_file1=NONE 2714ac_site_file2=NONE 2715if test -n "$CONFIG_SITE"; then 2716 # We do not want a PATH search for config.site. 2717 case $CONFIG_SITE in #(( 2718 -*) ac_site_file1=./$CONFIG_SITE;; 2719 */*) ac_site_file1=$CONFIG_SITE;; 2720 *) ac_site_file1=./$CONFIG_SITE;; 2721 esac 2722elif test "x$prefix" != xNONE; then 2723 ac_site_file1=$prefix/share/config.site 2724 ac_site_file2=$prefix/etc/config.site 2725else 2726 ac_site_file1=$ac_default_prefix/share/config.site 2727 ac_site_file2=$ac_default_prefix/etc/config.site 2728fi 2729for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2730do 2731 test "x$ac_site_file" = xNONE && continue 2732 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2734$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2735 sed 's/^/| /' "$ac_site_file" >&5 2736 . "$ac_site_file" \ 2737 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2739as_fn_error $? "failed to load site script $ac_site_file 2740See \`config.log' for more details" "$LINENO" 5; } 2741 fi 2742done 2743 2744if test -r "$cache_file"; then 2745 # Some versions of bash will fail to source /dev/null (special files 2746 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2747 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2749$as_echo "$as_me: loading cache $cache_file" >&6;} 2750 case $cache_file in 2751 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2752 *) . "./$cache_file";; 2753 esac 2754 fi 2755else 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2757$as_echo "$as_me: creating cache $cache_file" >&6;} 2758 >$cache_file 2759fi 2760 2761# Check that the precious variables saved in the cache have kept the same 2762# value. 2763ac_cache_corrupted=false 2764for ac_var in $ac_precious_vars; do 2765 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2766 eval ac_new_set=\$ac_env_${ac_var}_set 2767 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2768 eval ac_new_val=\$ac_env_${ac_var}_value 2769 case $ac_old_set,$ac_new_set in 2770 set,) 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2772$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2773 ac_cache_corrupted=: ;; 2774 ,set) 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2776$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2777 ac_cache_corrupted=: ;; 2778 ,);; 2779 *) 2780 if test "x$ac_old_val" != "x$ac_new_val"; then 2781 # differences in whitespace do not lead to failure. 2782 ac_old_val_w=`echo x $ac_old_val` 2783 ac_new_val_w=`echo x $ac_new_val` 2784 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2786$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2787 ac_cache_corrupted=: 2788 else 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2790$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2791 eval $ac_var=\$ac_old_val 2792 fi 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2794$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2796$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2797 fi;; 2798 esac 2799 # Pass precious variables to config.status. 2800 if test "$ac_new_set" = set; then 2801 case $ac_new_val in 2802 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2803 *) ac_arg=$ac_var=$ac_new_val ;; 2804 esac 2805 case " $ac_configure_args " in 2806 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2807 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2808 esac 2809 fi 2810done 2811if $ac_cache_corrupted; then 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2815$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2816 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2817fi 2818## -------------------- ## 2819## Main body of script. ## 2820## -------------------- ## 2821 2822ac_ext=c 2823ac_cpp='$CPP $CPPFLAGS' 2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2826ac_compiler_gnu=$ac_cv_c_compiler_gnu 2827 2828 2829 2830build_dynobj=no 2831 2832# If $runstatedir isn't set by autoconf (<2.70), set it manually. 2833if test x"$runstatedir" = x; then 2834 runstatedir='${localstatedir}/run' 2835fi 2836 2837 2838# Don't make duplicate profile path entries for /etc/krb5.conf if 2839# $sysconfdir is /etc 2840if test "$sysconfdir" = /etc; then 2841 SYSCONFCONF="" 2842else 2843 SYSCONFCONF=":${sysconfdir}/krb5.conf" 2844fi 2845 2846 2847ac_reltopdir="." 2848if test ! -r "$srcdir/./aclocal.m4"; then 2849 as_fn_error $? "Configure could not determine the relative topdir" "$LINENO" 5 2850fi 2851ac_topdir=$srcdir/$ac_reltopdir 2852ac_config_fragdir=$ac_reltopdir/config 2853# echo "Looking for $srcdir/$ac_config_fragdir" 2854ac_aux_dir= 2855for ac_dir in ./config "$srcdir"/./config; do 2856 if test -f "$ac_dir/install-sh"; then 2857 ac_aux_dir=$ac_dir 2858 ac_install_sh="$ac_aux_dir/install-sh -c" 2859 break 2860 elif test -f "$ac_dir/install.sh"; then 2861 ac_aux_dir=$ac_dir 2862 ac_install_sh="$ac_aux_dir/install.sh -c" 2863 break 2864 elif test -f "$ac_dir/shtool"; then 2865 ac_aux_dir=$ac_dir 2866 ac_install_sh="$ac_aux_dir/shtool install -c" 2867 break 2868 fi 2869done 2870if test -z "$ac_aux_dir"; then 2871 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./config \"$srcdir\"/./config" "$LINENO" 5 2872fi 2873 2874# These three variables are undocumented and unsupported, 2875# and are intended to be withdrawn in a future Autoconf release. 2876# They can cause serious problems if a builder's source tree is in a directory 2877# whose full name contains unusual characters. 2878ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2879ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2880ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2881 2882 2883 2884 2885 2886 2887krb5_ac_cflags_set=${CFLAGS+set} 2888krb5_ac_cxxflags_set=${CXXFLAGS+set} 2889krb5_ac_warn_cflags_set=${WARN_CFLAGS+set} 2890krb5_ac_warn_cxxflags_set=${WARN_CXXFLAGS+set} 2891 2892ac_ext=c 2893ac_cpp='$CPP $CPPFLAGS' 2894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2896ac_compiler_gnu=$ac_cv_c_compiler_gnu 2897if test -n "$ac_tool_prefix"; then 2898 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2899set dummy ${ac_tool_prefix}gcc; ac_word=$2 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901$as_echo_n "checking for $ac_word... " >&6; } 2902if ${ac_cv_prog_CC+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 if test -n "$CC"; then 2906 ac_cv_prog_CC="$CC" # Let the user override the test. 2907else 2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 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_prog_CC="${ac_tool_prefix}gcc" 2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2917 break 2 2918 fi 2919done 2920 done 2921IFS=$as_save_IFS 2922 2923fi 2924fi 2925CC=$ac_cv_prog_CC 2926if test -n "$CC"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2928$as_echo "$CC" >&6; } 2929else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931$as_echo "no" >&6; } 2932fi 2933 2934 2935fi 2936if test -z "$ac_cv_prog_CC"; then 2937 ac_ct_CC=$CC 2938 # Extract the first word of "gcc", so it can be a program name with args. 2939set dummy gcc; ac_word=$2 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2941$as_echo_n "checking for $ac_word... " >&6; } 2942if ${ac_cv_prog_ac_ct_CC+:} false; then : 2943 $as_echo_n "(cached) " >&6 2944else 2945 if test -n "$ac_ct_CC"; then 2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2947else 2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949for as_dir in $PATH 2950do 2951 IFS=$as_save_IFS 2952 test -z "$as_dir" && as_dir=. 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2955 ac_cv_prog_ac_ct_CC="gcc" 2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2957 break 2 2958 fi 2959done 2960 done 2961IFS=$as_save_IFS 2962 2963fi 2964fi 2965ac_ct_CC=$ac_cv_prog_ac_ct_CC 2966if test -n "$ac_ct_CC"; then 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2968$as_echo "$ac_ct_CC" >&6; } 2969else 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971$as_echo "no" >&6; } 2972fi 2973 2974 if test "x$ac_ct_CC" = x; then 2975 CC="" 2976 else 2977 case $cross_compiling:$ac_tool_warned in 2978yes:) 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2981ac_tool_warned=yes ;; 2982esac 2983 CC=$ac_ct_CC 2984 fi 2985else 2986 CC="$ac_cv_prog_CC" 2987fi 2988 2989if test -z "$CC"; then 2990 if test -n "$ac_tool_prefix"; then 2991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2992set dummy ${ac_tool_prefix}cc; ac_word=$2 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2994$as_echo_n "checking for $ac_word... " >&6; } 2995if ${ac_cv_prog_CC+:} false; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 if test -n "$CC"; then 2999 ac_cv_prog_CC="$CC" # Let the user override the test. 3000else 3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3002for as_dir in $PATH 3003do 3004 IFS=$as_save_IFS 3005 test -z "$as_dir" && as_dir=. 3006 for ac_exec_ext in '' $ac_executable_extensions; do 3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3008 ac_cv_prog_CC="${ac_tool_prefix}cc" 3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3010 break 2 3011 fi 3012done 3013 done 3014IFS=$as_save_IFS 3015 3016fi 3017fi 3018CC=$ac_cv_prog_CC 3019if test -n "$CC"; then 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3021$as_echo "$CC" >&6; } 3022else 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3024$as_echo "no" >&6; } 3025fi 3026 3027 3028 fi 3029fi 3030if test -z "$CC"; then 3031 # Extract the first word of "cc", so it can be a program name with args. 3032set dummy cc; ac_word=$2 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3034$as_echo_n "checking for $ac_word... " >&6; } 3035if ${ac_cv_prog_CC+:} false; then : 3036 $as_echo_n "(cached) " >&6 3037else 3038 if test -n "$CC"; then 3039 ac_cv_prog_CC="$CC" # Let the user override the test. 3040else 3041 ac_prog_rejected=no 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3050 ac_prog_rejected=yes 3051 continue 3052 fi 3053 ac_cv_prog_CC="cc" 3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3055 break 2 3056 fi 3057done 3058 done 3059IFS=$as_save_IFS 3060 3061if test $ac_prog_rejected = yes; then 3062 # We found a bogon in the path, so make sure we never use it. 3063 set dummy $ac_cv_prog_CC 3064 shift 3065 if test $# != 0; then 3066 # We chose a different compiler from the bogus one. 3067 # However, it has the same basename, so the bogon will be chosen 3068 # first if we set CC to just the basename; use the full file name. 3069 shift 3070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3071 fi 3072fi 3073fi 3074fi 3075CC=$ac_cv_prog_CC 3076if test -n "$CC"; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3078$as_echo "$CC" >&6; } 3079else 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081$as_echo "no" >&6; } 3082fi 3083 3084 3085fi 3086if test -z "$CC"; then 3087 if test -n "$ac_tool_prefix"; then 3088 for ac_prog in cl.exe 3089 do 3090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3091set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3093$as_echo_n "checking for $ac_word... " >&6; } 3094if ${ac_cv_prog_CC+:} false; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 if test -n "$CC"; then 3098 ac_cv_prog_CC="$CC" # Let the user override the test. 3099else 3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101for as_dir in $PATH 3102do 3103 IFS=$as_save_IFS 3104 test -z "$as_dir" && as_dir=. 3105 for ac_exec_ext in '' $ac_executable_extensions; do 3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3107 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3109 break 2 3110 fi 3111done 3112 done 3113IFS=$as_save_IFS 3114 3115fi 3116fi 3117CC=$ac_cv_prog_CC 3118if test -n "$CC"; then 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3120$as_echo "$CC" >&6; } 3121else 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3123$as_echo "no" >&6; } 3124fi 3125 3126 3127 test -n "$CC" && break 3128 done 3129fi 3130if test -z "$CC"; then 3131 ac_ct_CC=$CC 3132 for ac_prog in cl.exe 3133do 3134 # Extract the first word of "$ac_prog", so it can be a program name with args. 3135set dummy $ac_prog; ac_word=$2 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137$as_echo_n "checking for $ac_word... " >&6; } 3138if ${ac_cv_prog_ac_ct_CC+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 if test -n "$ac_ct_CC"; then 3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3143else 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3151 ac_cv_prog_ac_ct_CC="$ac_prog" 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3153 break 2 3154 fi 3155done 3156 done 3157IFS=$as_save_IFS 3158 3159fi 3160fi 3161ac_ct_CC=$ac_cv_prog_ac_ct_CC 3162if test -n "$ac_ct_CC"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3164$as_echo "$ac_ct_CC" >&6; } 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168fi 3169 3170 3171 test -n "$ac_ct_CC" && break 3172done 3173 3174 if test "x$ac_ct_CC" = x; then 3175 CC="" 3176 else 3177 case $cross_compiling:$ac_tool_warned in 3178yes:) 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3181ac_tool_warned=yes ;; 3182esac 3183 CC=$ac_ct_CC 3184 fi 3185fi 3186 3187fi 3188 3189 3190test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3192as_fn_error $? "no acceptable C compiler found in \$PATH 3193See \`config.log' for more details" "$LINENO" 5; } 3194 3195# Provide some information about the compiler. 3196$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3197set X $ac_compile 3198ac_compiler=$2 3199for ac_option in --version -v -V -qversion; do 3200 { { ac_try="$ac_compiler $ac_option >&5" 3201case "(($ac_try" in 3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3203 *) ac_try_echo=$ac_try;; 3204esac 3205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3206$as_echo "$ac_try_echo"; } >&5 3207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3208 ac_status=$? 3209 if test -s conftest.err; then 3210 sed '10a\ 3211... rest of stderr output deleted ... 3212 10q' conftest.err >conftest.er1 3213 cat conftest.er1 >&5 3214 fi 3215 rm -f conftest.er1 conftest.err 3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3217 test $ac_status = 0; } 3218done 3219 3220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3221/* end confdefs.h. */ 3222 3223int 3224main () 3225{ 3226 3227 ; 3228 return 0; 3229} 3230_ACEOF 3231ac_clean_files_save=$ac_clean_files 3232ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3233# Try to create an executable without -o first, disregard a.out. 3234# It will help us diagnose broken compilers, and finding out an intuition 3235# of exeext. 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3237$as_echo_n "checking whether the C compiler works... " >&6; } 3238ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3239 3240# The possible output files: 3241ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3242 3243ac_rmfiles= 3244for ac_file in $ac_files 3245do 3246 case $ac_file in 3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3248 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3249 esac 3250done 3251rm -f $ac_rmfiles 3252 3253if { { ac_try="$ac_link_default" 3254case "(($ac_try" in 3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3256 *) ac_try_echo=$ac_try;; 3257esac 3258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3259$as_echo "$ac_try_echo"; } >&5 3260 (eval "$ac_link_default") 2>&5 3261 ac_status=$? 3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3263 test $ac_status = 0; }; then : 3264 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3265# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3266# in a Makefile. We should not override ac_cv_exeext if it was cached, 3267# so that the user can short-circuit this test for compilers unknown to 3268# Autoconf. 3269for ac_file in $ac_files '' 3270do 3271 test -f "$ac_file" || continue 3272 case $ac_file in 3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3274 ;; 3275 [ab].out ) 3276 # We found the default executable, but exeext='' is most 3277 # certainly right. 3278 break;; 3279 *.* ) 3280 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3281 then :; else 3282 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3283 fi 3284 # We set ac_cv_exeext here because the later test for it is not 3285 # safe: cross compilers may not add the suffix if given an `-o' 3286 # argument, so we may need to know it at that point already. 3287 # Even if this section looks crufty: it has the advantage of 3288 # actually working. 3289 break;; 3290 * ) 3291 break;; 3292 esac 3293done 3294test "$ac_cv_exeext" = no && ac_cv_exeext= 3295 3296else 3297 ac_file='' 3298fi 3299if test -z "$ac_file"; then : 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3301$as_echo "no" >&6; } 3302$as_echo "$as_me: failed program was:" >&5 3303sed 's/^/| /' conftest.$ac_ext >&5 3304 3305{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3307as_fn_error 77 "C compiler cannot create executables 3308See \`config.log' for more details" "$LINENO" 5; } 3309else 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3311$as_echo "yes" >&6; } 3312fi 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3314$as_echo_n "checking for C compiler default output file name... " >&6; } 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3316$as_echo "$ac_file" >&6; } 3317ac_exeext=$ac_cv_exeext 3318 3319rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3320ac_clean_files=$ac_clean_files_save 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3322$as_echo_n "checking for suffix of executables... " >&6; } 3323if { { ac_try="$ac_link" 3324case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3329$as_echo "$ac_try_echo"; } >&5 3330 (eval "$ac_link") 2>&5 3331 ac_status=$? 3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3333 test $ac_status = 0; }; then : 3334 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3335# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3336# work properly (i.e., refer to `conftest.exe'), while it won't with 3337# `rm'. 3338for ac_file in conftest.exe conftest conftest.*; do 3339 test -f "$ac_file" || continue 3340 case $ac_file in 3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3343 break;; 3344 * ) break;; 3345 esac 3346done 3347else 3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3350as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3351See \`config.log' for more details" "$LINENO" 5; } 3352fi 3353rm -f conftest conftest$ac_cv_exeext 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3355$as_echo "$ac_cv_exeext" >&6; } 3356 3357rm -f conftest.$ac_ext 3358EXEEXT=$ac_cv_exeext 3359ac_exeext=$EXEEXT 3360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3361/* end confdefs.h. */ 3362#include <stdio.h> 3363int 3364main () 3365{ 3366FILE *f = fopen ("conftest.out", "w"); 3367 return ferror (f) || fclose (f) != 0; 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373ac_clean_files="$ac_clean_files conftest.out" 3374# Check that the compiler produces executables we can run. If not, either 3375# the compiler is broken, or we cross compile. 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3377$as_echo_n "checking whether we are cross compiling... " >&6; } 3378if test "$cross_compiling" != yes; then 3379 { { ac_try="$ac_link" 3380case "(($ac_try" in 3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3382 *) ac_try_echo=$ac_try;; 3383esac 3384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3385$as_echo "$ac_try_echo"; } >&5 3386 (eval "$ac_link") 2>&5 3387 ac_status=$? 3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3389 test $ac_status = 0; } 3390 if { ac_try='./conftest$ac_cv_exeext' 3391 { { case "(($ac_try" in 3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3393 *) ac_try_echo=$ac_try;; 3394esac 3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3396$as_echo "$ac_try_echo"; } >&5 3397 (eval "$ac_try") 2>&5 3398 ac_status=$? 3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3400 test $ac_status = 0; }; }; then 3401 cross_compiling=no 3402 else 3403 if test "$cross_compiling" = maybe; then 3404 cross_compiling=yes 3405 else 3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3408as_fn_error $? "cannot run C compiled programs. 3409If you meant to cross compile, use \`--host'. 3410See \`config.log' for more details" "$LINENO" 5; } 3411 fi 3412 fi 3413fi 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3415$as_echo "$cross_compiling" >&6; } 3416 3417rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3418ac_clean_files=$ac_clean_files_save 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3420$as_echo_n "checking for suffix of object files... " >&6; } 3421if ${ac_cv_objext+:} false; then : 3422 $as_echo_n "(cached) " >&6 3423else 3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3425/* end confdefs.h. */ 3426 3427int 3428main () 3429{ 3430 3431 ; 3432 return 0; 3433} 3434_ACEOF 3435rm -f conftest.o conftest.obj 3436if { { ac_try="$ac_compile" 3437case "(($ac_try" in 3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3439 *) ac_try_echo=$ac_try;; 3440esac 3441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3442$as_echo "$ac_try_echo"; } >&5 3443 (eval "$ac_compile") 2>&5 3444 ac_status=$? 3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3446 test $ac_status = 0; }; then : 3447 for ac_file in conftest.o conftest.obj conftest.*; do 3448 test -f "$ac_file" || continue; 3449 case $ac_file in 3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3451 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3452 break;; 3453 esac 3454done 3455else 3456 $as_echo "$as_me: failed program was:" >&5 3457sed 's/^/| /' conftest.$ac_ext >&5 3458 3459{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3461as_fn_error $? "cannot compute suffix of object files: cannot compile 3462See \`config.log' for more details" "$LINENO" 5; } 3463fi 3464rm -f conftest.$ac_cv_objext conftest.$ac_ext 3465fi 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3467$as_echo "$ac_cv_objext" >&6; } 3468OBJEXT=$ac_cv_objext 3469ac_objext=$OBJEXT 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3471$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3472if ${ac_cv_c_compiler_gnu+:} false; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3476/* end confdefs.h. */ 3477 3478int 3479main () 3480{ 3481#ifndef __GNUC__ 3482 choke me 3483#endif 3484 3485 ; 3486 return 0; 3487} 3488_ACEOF 3489if ac_fn_c_try_compile "$LINENO"; then : 3490 ac_compiler_gnu=yes 3491else 3492 ac_compiler_gnu=no 3493fi 3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3495ac_cv_c_compiler_gnu=$ac_compiler_gnu 3496 3497fi 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3499$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3500if test $ac_compiler_gnu = yes; then 3501 GCC=yes 3502else 3503 GCC= 3504fi 3505ac_test_CFLAGS=${CFLAGS+set} 3506ac_save_CFLAGS=$CFLAGS 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3508$as_echo_n "checking whether $CC accepts -g... " >&6; } 3509if ${ac_cv_prog_cc_g+:} false; then : 3510 $as_echo_n "(cached) " >&6 3511else 3512 ac_save_c_werror_flag=$ac_c_werror_flag 3513 ac_c_werror_flag=yes 3514 ac_cv_prog_cc_g=no 3515 CFLAGS="-g" 3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518 3519int 3520main () 3521{ 3522 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527if ac_fn_c_try_compile "$LINENO"; then : 3528 ac_cv_prog_cc_g=yes 3529else 3530 CFLAGS="" 3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3532/* end confdefs.h. */ 3533 3534int 3535main () 3536{ 3537 3538 ; 3539 return 0; 3540} 3541_ACEOF 3542if ac_fn_c_try_compile "$LINENO"; then : 3543 3544else 3545 ac_c_werror_flag=$ac_save_c_werror_flag 3546 CFLAGS="-g" 3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549 3550int 3551main () 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558if ac_fn_c_try_compile "$LINENO"; then : 3559 ac_cv_prog_cc_g=yes 3560fi 3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3562fi 3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3564fi 3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3566 ac_c_werror_flag=$ac_save_c_werror_flag 3567fi 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3569$as_echo "$ac_cv_prog_cc_g" >&6; } 3570if test "$ac_test_CFLAGS" = set; then 3571 CFLAGS=$ac_save_CFLAGS 3572elif test $ac_cv_prog_cc_g = yes; then 3573 if test "$GCC" = yes; then 3574 CFLAGS="-g -O2" 3575 else 3576 CFLAGS="-g" 3577 fi 3578else 3579 if test "$GCC" = yes; then 3580 CFLAGS="-O2" 3581 else 3582 CFLAGS= 3583 fi 3584fi 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3586$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3587if ${ac_cv_prog_cc_c89+:} false; then : 3588 $as_echo_n "(cached) " >&6 3589else 3590 ac_cv_prog_cc_c89=no 3591ac_save_CC=$CC 3592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3593/* end confdefs.h. */ 3594#include <stdarg.h> 3595#include <stdio.h> 3596struct stat; 3597/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3598struct buf { int x; }; 3599FILE * (*rcsopen) (struct buf *, struct stat *, int); 3600static char *e (p, i) 3601 char **p; 3602 int i; 3603{ 3604 return p[i]; 3605} 3606static char *f (char * (*g) (char **, int), char **p, ...) 3607{ 3608 char *s; 3609 va_list v; 3610 va_start (v,p); 3611 s = g (p, va_arg (v,int)); 3612 va_end (v); 3613 return s; 3614} 3615 3616/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3617 function prototypes and stuff, but not '\xHH' hex character constants. 3618 These don't provoke an error unfortunately, instead are silently treated 3619 as 'x'. The following induces an error, until -std is added to get 3620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3621 array size at least. It's necessary to write '\x00'==0 to get something 3622 that's true only with -std. */ 3623int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3624 3625/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3626 inside strings and character constants. */ 3627#define FOO(x) 'x' 3628int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3629 3630int test (int i, double x); 3631struct s1 {int (*f) (int a);}; 3632struct s2 {int (*f) (double a);}; 3633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3634int argc; 3635char **argv; 3636int 3637main () 3638{ 3639return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3640 ; 3641 return 0; 3642} 3643_ACEOF 3644for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3646do 3647 CC="$ac_save_CC $ac_arg" 3648 if ac_fn_c_try_compile "$LINENO"; then : 3649 ac_cv_prog_cc_c89=$ac_arg 3650fi 3651rm -f core conftest.err conftest.$ac_objext 3652 test "x$ac_cv_prog_cc_c89" != "xno" && break 3653done 3654rm -f conftest.$ac_ext 3655CC=$ac_save_CC 3656 3657fi 3658# AC_CACHE_VAL 3659case "x$ac_cv_prog_cc_c89" in 3660 x) 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3662$as_echo "none needed" >&6; } ;; 3663 xno) 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3665$as_echo "unsupported" >&6; } ;; 3666 *) 3667 CC="$CC $ac_cv_prog_cc_c89" 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3669$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3670esac 3671if test "x$ac_cv_prog_cc_c89" != xno; then : 3672 3673fi 3674 3675ac_ext=c 3676ac_cpp='$CPP $CPPFLAGS' 3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3679ac_compiler_gnu=$ac_cv_c_compiler_gnu 3680 3681ac_ext=cpp 3682ac_cpp='$CXXCPP $CPPFLAGS' 3683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3686if test -z "$CXX"; then 3687 if test -n "$CCC"; then 3688 CXX=$CCC 3689 else 3690 if test -n "$ac_tool_prefix"; then 3691 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3692 do 3693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3694set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3696$as_echo_n "checking for $ac_word... " >&6; } 3697if ${ac_cv_prog_CXX+:} false; then : 3698 $as_echo_n "(cached) " >&6 3699else 3700 if test -n "$CXX"; then 3701 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3702else 3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3704for as_dir in $PATH 3705do 3706 IFS=$as_save_IFS 3707 test -z "$as_dir" && as_dir=. 3708 for ac_exec_ext in '' $ac_executable_extensions; do 3709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3710 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3712 break 2 3713 fi 3714done 3715 done 3716IFS=$as_save_IFS 3717 3718fi 3719fi 3720CXX=$ac_cv_prog_CXX 3721if test -n "$CXX"; then 3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3723$as_echo "$CXX" >&6; } 3724else 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3726$as_echo "no" >&6; } 3727fi 3728 3729 3730 test -n "$CXX" && break 3731 done 3732fi 3733if test -z "$CXX"; then 3734 ac_ct_CXX=$CXX 3735 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3736do 3737 # Extract the first word of "$ac_prog", so it can be a program name with args. 3738set dummy $ac_prog; ac_word=$2 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3740$as_echo_n "checking for $ac_word... " >&6; } 3741if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 if test -n "$ac_ct_CXX"; then 3745 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3746else 3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748for as_dir in $PATH 3749do 3750 IFS=$as_save_IFS 3751 test -z "$as_dir" && as_dir=. 3752 for ac_exec_ext in '' $ac_executable_extensions; do 3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3754 ac_cv_prog_ac_ct_CXX="$ac_prog" 3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3756 break 2 3757 fi 3758done 3759 done 3760IFS=$as_save_IFS 3761 3762fi 3763fi 3764ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3765if test -n "$ac_ct_CXX"; then 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3767$as_echo "$ac_ct_CXX" >&6; } 3768else 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3770$as_echo "no" >&6; } 3771fi 3772 3773 3774 test -n "$ac_ct_CXX" && break 3775done 3776 3777 if test "x$ac_ct_CXX" = x; then 3778 CXX="g++" 3779 else 3780 case $cross_compiling:$ac_tool_warned in 3781yes:) 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3784ac_tool_warned=yes ;; 3785esac 3786 CXX=$ac_ct_CXX 3787 fi 3788fi 3789 3790 fi 3791fi 3792# Provide some information about the compiler. 3793$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3794set X $ac_compile 3795ac_compiler=$2 3796for ac_option in --version -v -V -qversion; do 3797 { { ac_try="$ac_compiler $ac_option >&5" 3798case "(($ac_try" in 3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3800 *) ac_try_echo=$ac_try;; 3801esac 3802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3803$as_echo "$ac_try_echo"; } >&5 3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3805 ac_status=$? 3806 if test -s conftest.err; then 3807 sed '10a\ 3808... rest of stderr output deleted ... 3809 10q' conftest.err >conftest.er1 3810 cat conftest.er1 >&5 3811 fi 3812 rm -f conftest.er1 conftest.err 3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3814 test $ac_status = 0; } 3815done 3816 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3818$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3819if ${ac_cv_cxx_compiler_gnu+:} false; then : 3820 $as_echo_n "(cached) " >&6 3821else 3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823/* end confdefs.h. */ 3824 3825int 3826main () 3827{ 3828#ifndef __GNUC__ 3829 choke me 3830#endif 3831 3832 ; 3833 return 0; 3834} 3835_ACEOF 3836if ac_fn_cxx_try_compile "$LINENO"; then : 3837 ac_compiler_gnu=yes 3838else 3839 ac_compiler_gnu=no 3840fi 3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3842ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3843 3844fi 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3846$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3847if test $ac_compiler_gnu = yes; then 3848 GXX=yes 3849else 3850 GXX= 3851fi 3852ac_test_CXXFLAGS=${CXXFLAGS+set} 3853ac_save_CXXFLAGS=$CXXFLAGS 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3855$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3856if ${ac_cv_prog_cxx_g+:} false; then : 3857 $as_echo_n "(cached) " >&6 3858else 3859 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3860 ac_cxx_werror_flag=yes 3861 ac_cv_prog_cxx_g=no 3862 CXXFLAGS="-g" 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865 3866int 3867main () 3868{ 3869 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874if ac_fn_cxx_try_compile "$LINENO"; then : 3875 ac_cv_prog_cxx_g=yes 3876else 3877 CXXFLAGS="" 3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3879/* end confdefs.h. */ 3880 3881int 3882main () 3883{ 3884 3885 ; 3886 return 0; 3887} 3888_ACEOF 3889if ac_fn_cxx_try_compile "$LINENO"; then : 3890 3891else 3892 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3893 CXXFLAGS="-g" 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895/* end confdefs.h. */ 3896 3897int 3898main () 3899{ 3900 3901 ; 3902 return 0; 3903} 3904_ACEOF 3905if ac_fn_cxx_try_compile "$LINENO"; then : 3906 ac_cv_prog_cxx_g=yes 3907fi 3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3909fi 3910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3911fi 3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3913 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3914fi 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3916$as_echo "$ac_cv_prog_cxx_g" >&6; } 3917if test "$ac_test_CXXFLAGS" = set; then 3918 CXXFLAGS=$ac_save_CXXFLAGS 3919elif test $ac_cv_prog_cxx_g = yes; then 3920 if test "$GXX" = yes; then 3921 CXXFLAGS="-g -O2" 3922 else 3923 CXXFLAGS="-g" 3924 fi 3925else 3926 if test "$GXX" = yes; then 3927 CXXFLAGS="-O2" 3928 else 3929 CXXFLAGS= 3930 fi 3931fi 3932ac_ext=c 3933ac_cpp='$CPP $CPPFLAGS' 3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3936ac_compiler_gnu=$ac_cv_c_compiler_gnu 3937 3938 3939 cflags_warning_test_flags= 3940 cachevar=`echo "krb5_cv_cc_flag_-Werror=unknown-warning-option" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g` 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=unknown-warning-option" >&5 3942$as_echo_n "checking if C compiler supports -Werror=unknown-warning-option... " >&6; } 3943if eval \${$cachevar+:} false; then : 3944 $as_echo_n "(cached) " >&6 3945else 3946 # first try without, then with 3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3948/* end confdefs.h. */ 3949 3950int 3951main () 3952{ 39531; 3954 ; 3955 return 0; 3956} 3957_ACEOF 3958if ac_fn_c_try_compile "$LINENO"; then : 3959 old_cflags="$CFLAGS" 3960 CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=unknown-warning-option" 3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3962/* end confdefs.h. */ 3963 3964int 3965main () 3966{ 39671; 3968 ; 3969 return 0; 3970} 3971_ACEOF 3972if ac_fn_c_try_compile "$LINENO"; then : 3973 eval $cachevar=yes 3974else 3975 eval $cachevar=no 3976fi 3977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3978 CFLAGS="$old_cflags" 3979else 3980 as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5 3981fi 3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3983fi 3984eval ac_res=\$$cachevar 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3986$as_echo "$ac_res" >&6; } 3987 if eval test '"${'$cachevar'}"' = yes; then 3988 WARN_CFLAGS="$WARN_CFLAGS -Werror=unknown-warning-option" 3989 fi 3990 eval flag_supported='${'$cachevar'}' 3991 3992 if test $flag_supported = yes; then 3993 cflags_warning_test_flags=-Werror=unknown-warning-option 3994 fi 3995 3996ac_ext=c 3997ac_cpp='$CPP $CPPFLAGS' 3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4000ac_compiler_gnu=$ac_cv_c_compiler_gnu 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4002$as_echo_n "checking how to run the C preprocessor... " >&6; } 4003# On Suns, sometimes $CPP names a directory. 4004if test -n "$CPP" && test -d "$CPP"; then 4005 CPP= 4006fi 4007if test -z "$CPP"; then 4008 if ${ac_cv_prog_CPP+:} false; then : 4009 $as_echo_n "(cached) " >&6 4010else 4011 # Double quotes because CPP needs to be expanded 4012 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4013 do 4014 ac_preproc_ok=false 4015for ac_c_preproc_warn_flag in '' yes 4016do 4017 # Use a header file that comes with gcc, so configuring glibc 4018 # with a fresh cross-compiler works. 4019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4020 # <limits.h> exists even on freestanding compilers. 4021 # On the NeXT, cc -E runs the code through the compiler's parser, 4022 # not just through cpp. "Syntax error" is here to catch this case. 4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4024/* end confdefs.h. */ 4025#ifdef __STDC__ 4026# include <limits.h> 4027#else 4028# include <assert.h> 4029#endif 4030 Syntax error 4031_ACEOF 4032if ac_fn_c_try_cpp "$LINENO"; then : 4033 4034else 4035 # Broken: fails on valid input. 4036continue 4037fi 4038rm -f conftest.err conftest.i conftest.$ac_ext 4039 4040 # OK, works on sane cases. Now check whether nonexistent headers 4041 # can be detected and how. 4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4043/* end confdefs.h. */ 4044#include <ac_nonexistent.h> 4045_ACEOF 4046if ac_fn_c_try_cpp "$LINENO"; then : 4047 # Broken: success on invalid input. 4048continue 4049else 4050 # Passes both tests. 4051ac_preproc_ok=: 4052break 4053fi 4054rm -f conftest.err conftest.i conftest.$ac_ext 4055 4056done 4057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4058rm -f conftest.i conftest.err conftest.$ac_ext 4059if $ac_preproc_ok; then : 4060 break 4061fi 4062 4063 done 4064 ac_cv_prog_CPP=$CPP 4065 4066fi 4067 CPP=$ac_cv_prog_CPP 4068else 4069 ac_cv_prog_CPP=$CPP 4070fi 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4072$as_echo "$CPP" >&6; } 4073ac_preproc_ok=false 4074for ac_c_preproc_warn_flag in '' yes 4075do 4076 # Use a header file that comes with gcc, so configuring glibc 4077 # with a fresh cross-compiler works. 4078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4079 # <limits.h> exists even on freestanding compilers. 4080 # On the NeXT, cc -E runs the code through the compiler's parser, 4081 # not just through cpp. "Syntax error" is here to catch this case. 4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4083/* end confdefs.h. */ 4084#ifdef __STDC__ 4085# include <limits.h> 4086#else 4087# include <assert.h> 4088#endif 4089 Syntax error 4090_ACEOF 4091if ac_fn_c_try_cpp "$LINENO"; then : 4092 4093else 4094 # Broken: fails on valid input. 4095continue 4096fi 4097rm -f conftest.err conftest.i conftest.$ac_ext 4098 4099 # OK, works on sane cases. Now check whether nonexistent headers 4100 # can be detected and how. 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103#include <ac_nonexistent.h> 4104_ACEOF 4105if ac_fn_c_try_cpp "$LINENO"; then : 4106 # Broken: success on invalid input. 4107continue 4108else 4109 # Passes both tests. 4110ac_preproc_ok=: 4111break 4112fi 4113rm -f conftest.err conftest.i conftest.$ac_ext 4114 4115done 4116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4117rm -f conftest.i conftest.err conftest.$ac_ext 4118if $ac_preproc_ok; then : 4119 4120else 4121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4123as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4124See \`config.log' for more details" "$LINENO" 5; } 4125fi 4126 4127ac_ext=c 4128ac_cpp='$CPP $CPPFLAGS' 4129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4131ac_compiler_gnu=$ac_cv_c_compiler_gnu 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4142 if test -n "$ac_tool_prefix"; then 4143 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4144set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4146$as_echo_n "checking for $ac_word... " >&6; } 4147if ${ac_cv_path_PKG_CONFIG+:} false; then : 4148 $as_echo_n "(cached) " >&6 4149else 4150 case $PKG_CONFIG in 4151 [\\/]* | ?:[\\/]*) 4152 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4153 ;; 4154 *) 4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4156for as_dir in $PATH 4157do 4158 IFS=$as_save_IFS 4159 test -z "$as_dir" && as_dir=. 4160 for ac_exec_ext in '' $ac_executable_extensions; do 4161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4162 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4164 break 2 4165 fi 4166done 4167 done 4168IFS=$as_save_IFS 4169 4170 ;; 4171esac 4172fi 4173PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4174if test -n "$PKG_CONFIG"; then 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4176$as_echo "$PKG_CONFIG" >&6; } 4177else 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4179$as_echo "no" >&6; } 4180fi 4181 4182 4183fi 4184if test -z "$ac_cv_path_PKG_CONFIG"; then 4185 ac_pt_PKG_CONFIG=$PKG_CONFIG 4186 # Extract the first word of "pkg-config", so it can be a program name with args. 4187set dummy pkg-config; ac_word=$2 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4189$as_echo_n "checking for $ac_word... " >&6; } 4190if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4191 $as_echo_n "(cached) " >&6 4192else 4193 case $ac_pt_PKG_CONFIG in 4194 [\\/]* | ?:[\\/]*) 4195 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4196 ;; 4197 *) 4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4199for as_dir in $PATH 4200do 4201 IFS=$as_save_IFS 4202 test -z "$as_dir" && as_dir=. 4203 for ac_exec_ext in '' $ac_executable_extensions; do 4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4205 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4207 break 2 4208 fi 4209done 4210 done 4211IFS=$as_save_IFS 4212 4213 ;; 4214esac 4215fi 4216ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4217if test -n "$ac_pt_PKG_CONFIG"; then 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4219$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4220else 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4222$as_echo "no" >&6; } 4223fi 4224 4225 if test "x$ac_pt_PKG_CONFIG" = x; then 4226 PKG_CONFIG="" 4227 else 4228 case $cross_compiling:$ac_tool_warned in 4229yes:) 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4232ac_tool_warned=yes ;; 4233esac 4234 PKG_CONFIG=$ac_pt_PKG_CONFIG 4235 fi 4236else 4237 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4238fi 4239 4240fi 4241if test -n "$PKG_CONFIG"; then 4242 _pkg_min_version=0.9.0 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4244$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4245 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4247$as_echo "yes" >&6; } 4248 else 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4250$as_echo "no" >&6; } 4251 PKG_CONFIG="" 4252 fi 4253fi 4254test "$program_prefix" != NONE && 4255 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4256# Use a double $ so make ignores it. 4257test "$program_suffix" != NONE && 4258 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4259# Double any \ or $. 4260# By default was `s,x,x', remove it if useless. 4261ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4262program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4263 4264# Make sure we can run config.sub. 4265$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4266 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4267 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4269$as_echo_n "checking build system type... " >&6; } 4270if ${ac_cv_build+:} false; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 ac_build_alias=$build_alias 4274test "x$ac_build_alias" = x && 4275 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4276test "x$ac_build_alias" = x && 4277 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4278ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4279 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4280 4281fi 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4283$as_echo "$ac_cv_build" >&6; } 4284case $ac_cv_build in 4285*-*-*) ;; 4286*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4287esac 4288build=$ac_cv_build 4289ac_save_IFS=$IFS; IFS='-' 4290set x $ac_cv_build 4291shift 4292build_cpu=$1 4293build_vendor=$2 4294shift; shift 4295# Remember, the first character of IFS is used to create $*, 4296# except with old shells: 4297build_os=$* 4298IFS=$ac_save_IFS 4299case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4300 4301 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4303$as_echo_n "checking host system type... " >&6; } 4304if ${ac_cv_host+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 if test "x$host_alias" = x; then 4308 ac_cv_host=$ac_cv_build 4309else 4310 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4311 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4312fi 4313 4314fi 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4316$as_echo "$ac_cv_host" >&6; } 4317case $ac_cv_host in 4318*-*-*) ;; 4319*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4320esac 4321host=$ac_cv_host 4322ac_save_IFS=$IFS; IFS='-' 4323set x $ac_cv_host 4324shift 4325host_cpu=$1 4326host_vendor=$2 4327shift; shift 4328# Remember, the first character of IFS is used to create $*, 4329# except with old shells: 4330host_os=$* 4331IFS=$ac_save_IFS 4332case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4333 4334 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4336$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4337if ${ac_cv_path_SED+:} false; then : 4338 $as_echo_n "(cached) " >&6 4339else 4340 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4341 for ac_i in 1 2 3 4 5 6 7; do 4342 ac_script="$ac_script$as_nl$ac_script" 4343 done 4344 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4345 { ac_script=; unset ac_script;} 4346 if test -z "$SED"; then 4347 ac_path_SED_found=false 4348 # Loop through the user's path and test for each of PROGNAME-LIST 4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4350for as_dir in $PATH 4351do 4352 IFS=$as_save_IFS 4353 test -z "$as_dir" && as_dir=. 4354 for ac_prog in sed gsed; do 4355 for ac_exec_ext in '' $ac_executable_extensions; do 4356 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4357 as_fn_executable_p "$ac_path_SED" || continue 4358# Check for GNU ac_path_SED and select it if it is found. 4359 # Check for GNU $ac_path_SED 4360case `"$ac_path_SED" --version 2>&1` in 4361*GNU*) 4362 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4363*) 4364 ac_count=0 4365 $as_echo_n 0123456789 >"conftest.in" 4366 while : 4367 do 4368 cat "conftest.in" "conftest.in" >"conftest.tmp" 4369 mv "conftest.tmp" "conftest.in" 4370 cp "conftest.in" "conftest.nl" 4371 $as_echo '' >> "conftest.nl" 4372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4374 as_fn_arith $ac_count + 1 && ac_count=$as_val 4375 if test $ac_count -gt ${ac_path_SED_max-0}; then 4376 # Best one so far, save it but keep looking for a better one 4377 ac_cv_path_SED="$ac_path_SED" 4378 ac_path_SED_max=$ac_count 4379 fi 4380 # 10*(2^10) chars as input seems more than enough 4381 test $ac_count -gt 10 && break 4382 done 4383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4384esac 4385 4386 $ac_path_SED_found && break 3 4387 done 4388 done 4389 done 4390IFS=$as_save_IFS 4391 if test -z "$ac_cv_path_SED"; then 4392 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4393 fi 4394else 4395 ac_cv_path_SED=$SED 4396fi 4397 4398fi 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4400$as_echo "$ac_cv_path_SED" >&6; } 4401 SED="$ac_cv_path_SED" 4402 rm -f conftest.sed 4403 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4405$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4406if ${ac_cv_path_GREP+:} false; then : 4407 $as_echo_n "(cached) " >&6 4408else 4409 if test -z "$GREP"; then 4410 ac_path_GREP_found=false 4411 # Loop through the user's path and test for each of PROGNAME-LIST 4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4413for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4414do 4415 IFS=$as_save_IFS 4416 test -z "$as_dir" && as_dir=. 4417 for ac_prog in grep ggrep; do 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4420 as_fn_executable_p "$ac_path_GREP" || continue 4421# Check for GNU ac_path_GREP and select it if it is found. 4422 # Check for GNU $ac_path_GREP 4423case `"$ac_path_GREP" --version 2>&1` in 4424*GNU*) 4425 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4426*) 4427 ac_count=0 4428 $as_echo_n 0123456789 >"conftest.in" 4429 while : 4430 do 4431 cat "conftest.in" "conftest.in" >"conftest.tmp" 4432 mv "conftest.tmp" "conftest.in" 4433 cp "conftest.in" "conftest.nl" 4434 $as_echo 'GREP' >> "conftest.nl" 4435 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4437 as_fn_arith $ac_count + 1 && ac_count=$as_val 4438 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4439 # Best one so far, save it but keep looking for a better one 4440 ac_cv_path_GREP="$ac_path_GREP" 4441 ac_path_GREP_max=$ac_count 4442 fi 4443 # 10*(2^10) chars as input seems more than enough 4444 test $ac_count -gt 10 && break 4445 done 4446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4447esac 4448 4449 $ac_path_GREP_found && break 3 4450 done 4451 done 4452 done 4453IFS=$as_save_IFS 4454 if test -z "$ac_cv_path_GREP"; then 4455 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4456 fi 4457else 4458 ac_cv_path_GREP=$GREP 4459fi 4460 4461fi 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4463$as_echo "$ac_cv_path_GREP" >&6; } 4464 GREP="$ac_cv_path_GREP" 4465 4466 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4468$as_echo_n "checking for egrep... " >&6; } 4469if ${ac_cv_path_EGREP+:} false; then : 4470 $as_echo_n "(cached) " >&6 4471else 4472 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4473 then ac_cv_path_EGREP="$GREP -E" 4474 else 4475 if test -z "$EGREP"; then 4476 ac_path_EGREP_found=false 4477 # Loop through the user's path and test for each of PROGNAME-LIST 4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4480do 4481 IFS=$as_save_IFS 4482 test -z "$as_dir" && as_dir=. 4483 for ac_prog in egrep; do 4484 for ac_exec_ext in '' $ac_executable_extensions; do 4485 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4486 as_fn_executable_p "$ac_path_EGREP" || continue 4487# Check for GNU ac_path_EGREP and select it if it is found. 4488 # Check for GNU $ac_path_EGREP 4489case `"$ac_path_EGREP" --version 2>&1` in 4490*GNU*) 4491 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4492*) 4493 ac_count=0 4494 $as_echo_n 0123456789 >"conftest.in" 4495 while : 4496 do 4497 cat "conftest.in" "conftest.in" >"conftest.tmp" 4498 mv "conftest.tmp" "conftest.in" 4499 cp "conftest.in" "conftest.nl" 4500 $as_echo 'EGREP' >> "conftest.nl" 4501 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4503 as_fn_arith $ac_count + 1 && ac_count=$as_val 4504 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4505 # Best one so far, save it but keep looking for a better one 4506 ac_cv_path_EGREP="$ac_path_EGREP" 4507 ac_path_EGREP_max=$ac_count 4508 fi 4509 # 10*(2^10) chars as input seems more than enough 4510 test $ac_count -gt 10 && break 4511 done 4512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4513esac 4514 4515 $ac_path_EGREP_found && break 3 4516 done 4517 done 4518 done 4519IFS=$as_save_IFS 4520 if test -z "$ac_cv_path_EGREP"; then 4521 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4522 fi 4523else 4524 ac_cv_path_EGREP=$EGREP 4525fi 4526 4527 fi 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4530$as_echo "$ac_cv_path_EGREP" >&6; } 4531 EGREP="$ac_cv_path_EGREP" 4532 4533 4534 EXTRA_FILES="" 4535 4536 4537$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4538 4539 4540$as_echo "#define __STDC_WANT_LIB_EXT1__ 1" >>confdefs.h 4541 4542 4543if test $ac_cv_c_compiler_gnu = yes ; then 4544 HAVE_GCC=yes 4545 else HAVE_GCC= 4546fi 4547 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU linker" >&5 4549$as_echo_n "checking for GNU linker... " >&6; } 4550if ${krb5_cv_prog_gnu_ld+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 krb5_cv_prog_gnu_ld=no 4554if test "$GCC" = yes; then 4555 if { ac_try='$CC -Wl,-v 2>&1 | grep "GNU ld" > /dev/null' 4556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 4557 (eval $ac_try) 2>&5 4558 ac_status=$? 4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4560 test $ac_status = 0; }; }; then 4561 krb5_cv_prog_gnu_ld=yes 4562 fi 4563fi 4564fi 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_prog_gnu_ld" >&5 4566$as_echo "$krb5_cv_prog_gnu_ld" >&6; } 4567 4568# Check whether --with-size-optimizations was given. 4569if test "${with_size_optimizations+set}" = set; then : 4570 withval=$with_size_optimizations; 4571else 4572 withval=no 4573fi 4574 4575if test "$withval" = yes; then 4576 4577$as_echo "#define CONFIG_SMALL 1" >>confdefs.h 4578 4579fi 4580# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc. 4581extra_gcc_warn_opts="-Wall -Wcast-align -Wshadow" 4582# -Wmissing-prototypes 4583if test "$GCC" = yes ; then 4584 # Putting this here means we get -Os after -O2, which works. 4585 if test "$with_size_optimizations" = yes && test "x$krb5_ac_cflags_set" != xset; then 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: adding -Os optimization option" >&5 4587$as_echo "$as_me: adding -Os optimization option" >&6;} 4588 case "$CFLAGS" in 4589 "-g -O2") CFLAGS="-g -Os" ;; 4590 "-O2") CFLAGS="-Os" ;; 4591 *) CFLAGS="$CFLAGS -Os" ;; 4592 esac 4593 fi 4594 if test "x$krb5_ac_warn_cflags_set" = xset ; then 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: not adding extra gcc warning flags because WARN_CFLAGS was set" >&5 4596$as_echo "$as_me: not adding extra gcc warning flags because WARN_CFLAGS was set" >&6;} 4597 else 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: adding extra warning flags for gcc" >&5 4599$as_echo "$as_me: adding extra warning flags for gcc" >&6;} 4600 WARN_CFLAGS="$WARN_CFLAGS $extra_gcc_warn_opts -Wmissing-prototypes" 4601 if test "`uname -s`" = Darwin ; then 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Darwin" >&5 4603$as_echo "$as_me: skipping pedantic warnings on Darwin" >&6;} 4604 elif test "`uname -s`" = Linux ; then 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Linux" >&5 4606$as_echo "$as_me: skipping pedantic warnings on Linux" >&6;} 4607 else 4608 WARN_CFLAGS="$WARN_CFLAGS -pedantic" 4609 fi 4610 if test "$ac_cv_cxx_compiler_gnu" = yes; then 4611 if test "x$krb5_ac_warn_cxxflags_set" = xset ; then 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&5 4613$as_echo "$as_me: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&6;} 4614 else 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: adding extra warning flags for g++" >&5 4616$as_echo "$as_me: adding extra warning flags for g++" >&6;} 4617 WARN_CXXFLAGS="$WARN_CXXFLAGS $extra_gcc_warn_opts" 4618 fi 4619 fi 4620 # Currently, G++ does not support -Wno-format-zero-length. 4621 cachevar=`echo "krb5_cv_cc_flag_-Wno-format-zero-length" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g` 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Wno-format-zero-length" >&5 4623$as_echo_n "checking if C compiler supports -Wno-format-zero-length... " >&6; } 4624if eval \${$cachevar+:} false; then : 4625 $as_echo_n "(cached) " >&6 4626else 4627 # first try without, then with 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4629/* end confdefs.h. */ 4630 4631int 4632main () 4633{ 46341; 4635 ; 4636 return 0; 4637} 4638_ACEOF 4639if ac_fn_c_try_compile "$LINENO"; then : 4640 old_cflags="$CFLAGS" 4641 CFLAGS="$CFLAGS $cflags_warning_test_flags -Wno-format-zero-length" 4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4643/* end confdefs.h. */ 4644 4645int 4646main () 4647{ 46481; 4649 ; 4650 return 0; 4651} 4652_ACEOF 4653if ac_fn_c_try_compile "$LINENO"; then : 4654 eval $cachevar=yes 4655else 4656 eval $cachevar=no 4657fi 4658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4659 CFLAGS="$old_cflags" 4660else 4661 as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5 4662fi 4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4664fi 4665eval ac_res=\$$cachevar 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4667$as_echo "$ac_res" >&6; } 4668 if eval test '"${'$cachevar'}"' = yes; then 4669 WARN_CFLAGS="$WARN_CFLAGS -Wno-format-zero-length" 4670 fi 4671 eval flag_supported='${'$cachevar'}' 4672 4673 # Other flags here may not be supported on some versions of 4674 # gcc that people want to use. 4675 for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof error=uninitialized no-maybe-uninitialized error=pointer-arith error=int-conversion error=incompatible-pointer-types error=discarded-qualifiers error=implicit-int ; do 4676 cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g` 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5 4678$as_echo_n "checking if C compiler supports -W$flag... " >&6; } 4679if eval \${$cachevar+:} false; then : 4680 $as_echo_n "(cached) " >&6 4681else 4682 # first try without, then with 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684/* end confdefs.h. */ 4685 4686int 4687main () 4688{ 46891; 4690 ; 4691 return 0; 4692} 4693_ACEOF 4694if ac_fn_c_try_compile "$LINENO"; then : 4695 old_cflags="$CFLAGS" 4696 CFLAGS="$CFLAGS $cflags_warning_test_flags -W$flag" 4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4698/* end confdefs.h. */ 4699 4700int 4701main () 4702{ 47031; 4704 ; 4705 return 0; 4706} 4707_ACEOF 4708if ac_fn_c_try_compile "$LINENO"; then : 4709 eval $cachevar=yes 4710else 4711 eval $cachevar=no 4712fi 4713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4714 CFLAGS="$old_cflags" 4715else 4716 as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5 4717fi 4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4719fi 4720eval ac_res=\$$cachevar 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4722$as_echo "$ac_res" >&6; } 4723 if eval test '"${'$cachevar'}"' = yes; then 4724 WARN_CFLAGS="$WARN_CFLAGS -W$flag" 4725 fi 4726 eval flag_supported='${'$cachevar'}' 4727 4728 done 4729 # old-style-definition? generates many, many warnings 4730 # 4731 # Warnings that we'd like to turn into errors on versions of gcc 4732 # that support promoting only specific warnings to errors, but 4733 # we'll take as warnings on older compilers. (If such a warning 4734 # is added after the -Werror=foo feature, you can just put 4735 # error=foo in the above list, and skip the test for the 4736 # warning-only form.) At least in some versions, -Werror= doesn't 4737 # seem to make the conditions actual errors, but still issues 4738 # warnings; I guess we'll take what we can get. 4739 # 4740 # We're currently targeting C89+, not C99, so disallow some 4741 # constructs. 4742 for flag in declaration-after-statement ; do 4743 cachevar=`echo "krb5_cv_cc_flag_-Werror=$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g` 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=$flag" >&5 4745$as_echo_n "checking if C compiler supports -Werror=$flag... " >&6; } 4746if eval \${$cachevar+:} false; then : 4747 $as_echo_n "(cached) " >&6 4748else 4749 # first try without, then with 4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4751/* end confdefs.h. */ 4752 4753int 4754main () 4755{ 47561; 4757 ; 4758 return 0; 4759} 4760_ACEOF 4761if ac_fn_c_try_compile "$LINENO"; then : 4762 old_cflags="$CFLAGS" 4763 CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=$flag" 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4765/* end confdefs.h. */ 4766 4767int 4768main () 4769{ 47701; 4771 ; 4772 return 0; 4773} 4774_ACEOF 4775if ac_fn_c_try_compile "$LINENO"; then : 4776 eval $cachevar=yes 4777else 4778 eval $cachevar=no 4779fi 4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4781 CFLAGS="$old_cflags" 4782else 4783 as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5 4784fi 4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4786fi 4787eval ac_res=\$$cachevar 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4789$as_echo "$ac_res" >&6; } 4790 if eval test '"${'$cachevar'}"' = yes; then 4791 WARN_CFLAGS="$WARN_CFLAGS -Werror=$flag" 4792 fi 4793 eval flag_supported='${'$cachevar'}' 4794 4795 if test "$flag_supported" = no; then 4796 cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g` 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5 4798$as_echo_n "checking if C compiler supports -W$flag... " >&6; } 4799if eval \${$cachevar+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 # first try without, then with 4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805 4806int 4807main () 4808{ 48091; 4810 ; 4811 return 0; 4812} 4813_ACEOF 4814if ac_fn_c_try_compile "$LINENO"; then : 4815 old_cflags="$CFLAGS" 4816 CFLAGS="$CFLAGS $cflags_warning_test_flags -W$flag" 4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4818/* end confdefs.h. */ 4819 4820int 4821main () 4822{ 48231; 4824 ; 4825 return 0; 4826} 4827_ACEOF 4828if ac_fn_c_try_compile "$LINENO"; then : 4829 eval $cachevar=yes 4830else 4831 eval $cachevar=no 4832fi 4833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4834 CFLAGS="$old_cflags" 4835else 4836 as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5 4837fi 4838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4839fi 4840eval ac_res=\$$cachevar 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4842$as_echo "$ac_res" >&6; } 4843 if eval test '"${'$cachevar'}"' = yes; then 4844 WARN_CFLAGS="$WARN_CFLAGS -W$flag" 4845 fi 4846 eval flag_supported='${'$cachevar'}' 4847 4848 fi 4849 done 4850 # We require function declarations now. 4851 # 4852 # In some compiler versions -- e.g., "gcc version 4.2.1 (Apple 4853 # Inc. build 5664)" -- the -Werror- option works, but the -Werror= 4854 # version doesn't cause implicitly declared functions to be 4855 # flagged as errors. If neither works, -Wall implies 4856 # -Wimplicit-function-declaration so don't bother. 4857 cachevar=`echo "krb5_cv_cc_flag_-Werror-implicit-function-declaration" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g` 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror-implicit-function-declaration" >&5 4859$as_echo_n "checking if C compiler supports -Werror-implicit-function-declaration... " >&6; } 4860if eval \${$cachevar+:} false; then : 4861 $as_echo_n "(cached) " >&6 4862else 4863 # first try without, then with 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4865/* end confdefs.h. */ 4866 4867int 4868main () 4869{ 48701; 4871 ; 4872 return 0; 4873} 4874_ACEOF 4875if ac_fn_c_try_compile "$LINENO"; then : 4876 old_cflags="$CFLAGS" 4877 CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror-implicit-function-declaration" 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4879/* end confdefs.h. */ 4880 4881int 4882main () 4883{ 48841; 4885 ; 4886 return 0; 4887} 4888_ACEOF 4889if ac_fn_c_try_compile "$LINENO"; then : 4890 eval $cachevar=yes 4891else 4892 eval $cachevar=no 4893fi 4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4895 CFLAGS="$old_cflags" 4896else 4897 as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5 4898fi 4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4900fi 4901eval ac_res=\$$cachevar 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4903$as_echo "$ac_res" >&6; } 4904 if eval test '"${'$cachevar'}"' = yes; then 4905 WARN_CFLAGS="$WARN_CFLAGS -Werror-implicit-function-declaration" 4906 fi 4907 eval flag_supported='${'$cachevar'}' 4908 4909 if test "implicit-function-declaration_supported" = no; then 4910 cachevar=`echo "krb5_cv_cc_flag_-Werror=implicit-function-declaration" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g` 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=implicit-function-declaration" >&5 4912$as_echo_n "checking if C compiler supports -Werror=implicit-function-declaration... " >&6; } 4913if eval \${$cachevar+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 # first try without, then with 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4918/* end confdefs.h. */ 4919 4920int 4921main () 4922{ 49231; 4924 ; 4925 return 0; 4926} 4927_ACEOF 4928if ac_fn_c_try_compile "$LINENO"; then : 4929 old_cflags="$CFLAGS" 4930 CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=implicit-function-declaration" 4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4932/* end confdefs.h. */ 4933 4934int 4935main () 4936{ 49371; 4938 ; 4939 return 0; 4940} 4941_ACEOF 4942if ac_fn_c_try_compile "$LINENO"; then : 4943 eval $cachevar=yes 4944else 4945 eval $cachevar=no 4946fi 4947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4948 CFLAGS="$old_cflags" 4949else 4950 as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5 4951fi 4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4953fi 4954eval ac_res=\$$cachevar 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4956$as_echo "$ac_res" >&6; } 4957 if eval test '"${'$cachevar'}"' = yes; then 4958 WARN_CFLAGS="$WARN_CFLAGS -Werror=implicit-function-declaration" 4959 fi 4960 eval flag_supported='${'$cachevar'}' 4961 4962 fi 4963 # 4964 fi 4965 if test "`uname -s`" = Darwin ; then 4966 # Someday this should be a feature test. 4967 # One current (Jaguar = OS 10.2) problem: 4968 # Archive library with foo.o undef sym X and bar.o common sym X, 4969 # if foo.o is pulled in at link time, bar.o may not be, causing 4970 # the linker to complain. 4971 # Dynamic library problems too? 4972 case "$CC $CFLAGS" in 4973 *-fcommon*) ;; # why someone would do this, I don't know 4974 *-fno-common*) ;; # okay, they're already doing the right thing 4975 *) 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: disabling the use of common storage on Darwin" >&5 4977$as_echo "$as_me: disabling the use of common storage on Darwin" >&6;} 4978 CFLAGS="$CFLAGS -fno-common" 4979 ;; 4980 esac 4981 case "$LD $LDFLAGS" in 4982 *-Wl,-search_paths_first*) ;; 4983 *) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;; 4984 esac 4985 fi 4986else 4987 if test "`uname -s`" = AIX ; then 4988 # Using AIX but not GCC, assume native compiler. 4989 # The native compiler appears not to give a nonzero exit 4990 # status for certain classes of errors, like missing arguments 4991 # in function calls. Let's try to fix that with -qhalt=e. 4992 case "$CC $CFLAGS" in 4993 *-qhalt=*) ;; 4994 *) 4995 CFLAGS="$CFLAGS -qhalt=e" 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: adding -qhalt=e for better error reporting" >&5 4997$as_echo "$as_me: adding -qhalt=e for better error reporting" >&6;} 4998 ;; 4999 esac 5000 # Also, the optimizer isn't turned on by default, which means 5001 # the static inline functions get left in random object files, 5002 # leading to references to pthread_mutex_lock from anything that 5003 # includes k5-int.h whether it uses threads or not. 5004 case "$CC $CFLAGS" in 5005 *-O*) ;; 5006 *) 5007 CFLAGS="$CFLAGS -O" 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: adding -O for inline thread-support function elimination" >&5 5009$as_echo "$as_me: adding -O for inline thread-support function elimination" >&6;} 5010 ;; 5011 esac 5012 fi 5013 if test "`uname -s`" = SunOS ; then 5014 # Using Solaris but not GCC, assume Sunsoft compiler. 5015 # We have some error-out-on-warning options available. 5016 # Sunsoft 12 compiler defaults to -xc99=all, it appears, so "inline" 5017 # works, but it also means that declaration-in-code warnings won't 5018 # be issued. 5019 # -v -fd -errwarn=E_DECLARATION_IN_CODE ... 5020 if test "x$krb5_ac_warn_cflags_set" = xset ; then 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: not adding extra warning flags because WARN_CFLAGS was set" >&5 5022$as_echo "$as_me: not adding extra warning flags because WARN_CFLAGS was set" >&6;} 5023 else 5024 WARN_CFLAGS="-errtags=yes -errwarn=E_BAD_PTR_INT_COMBINATION,E_BAD_PTR_INT_COMB_ARG,E_PTR_TO_VOID_IN_ARITHMETIC,E_NO_IMPLICIT_DECL_ALLOWED,E_ATTRIBUTE_PARAM_UNDEFINED" 5025 fi 5026 if test "x$krb5_ac_warn_cxxflags_set" = xset ; then 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: not adding extra warning flags because WARN_CXXFLAGS was set" >&5 5028$as_echo "$as_me: not adding extra warning flags because WARN_CXXFLAGS was set" >&6;} 5029 else 5030 WARN_CXXFLAGS="-errtags=yes +w +w2 -xport64" 5031 fi 5032 fi 5033fi 5034 5035 5036 5037if test -z "$LD" ; then LD=$CC; fi 5038 5039 5040 5041# Check whether --with-system-et was given. 5042if test "${with_system_et+set}" = set; then : 5043 withval=$with_system_et; 5044fi 5045 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which version of com_err to use" >&5 5047$as_echo_n "checking which version of com_err to use... " >&6; } 5048if test "x$with_system_et" = xyes ; then 5049 # This will be changed to "intlsys" if textdomain support is present. 5050 COM_ERR_VERSION=sys 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 5052$as_echo "system" >&6; } 5053else 5054 COM_ERR_VERSION=k5 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5" >&5 5056$as_echo "krb5" >&6; } 5057fi 5058OLDLIBS="$LIBS" 5059COM_ERR_LIB=-lcom_err 5060if test $COM_ERR_VERSION = sys; then 5061 5062pkg_failed=no 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5 5064$as_echo_n "checking for com_err... " >&6; } 5065 5066if test -n "$COM_ERR_CFLAGS"; then 5067 pkg_cv_COM_ERR_CFLAGS="$COM_ERR_CFLAGS" 5068 elif test -n "$PKG_CONFIG"; then 5069 if test -n "$PKG_CONFIG" && \ 5070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5 5071 ($PKG_CONFIG --exists --print-errors "com_err") 2>&5 5072 ac_status=$? 5073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5074 test $ac_status = 0; }; then 5075 pkg_cv_COM_ERR_CFLAGS=`$PKG_CONFIG --cflags "com_err" 2>/dev/null` 5076 test "x$?" != "x0" && pkg_failed=yes 5077else 5078 pkg_failed=yes 5079fi 5080 else 5081 pkg_failed=untried 5082fi 5083if test -n "$COM_ERR_LIBS"; then 5084 pkg_cv_COM_ERR_LIBS="$COM_ERR_LIBS" 5085 elif test -n "$PKG_CONFIG"; then 5086 if test -n "$PKG_CONFIG" && \ 5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5 5088 ($PKG_CONFIG --exists --print-errors "com_err") 2>&5 5089 ac_status=$? 5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5091 test $ac_status = 0; }; then 5092 pkg_cv_COM_ERR_LIBS=`$PKG_CONFIG --libs "com_err" 2>/dev/null` 5093 test "x$?" != "x0" && pkg_failed=yes 5094else 5095 pkg_failed=yes 5096fi 5097 else 5098 pkg_failed=untried 5099fi 5100 5101 5102 5103if test $pkg_failed = yes; then 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5105$as_echo "no" >&6; } 5106 5107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5108 _pkg_short_errors_supported=yes 5109else 5110 _pkg_short_errors_supported=no 5111fi 5112 if test $_pkg_short_errors_supported = yes; then 5113 COM_ERR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "com_err" 2>&1` 5114 else 5115 COM_ERR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "com_err" 2>&1` 5116 fi 5117 # Put the nasty error message in config.log where it belongs 5118 echo "$COM_ERR_PKG_ERRORS" >&5 5119 5120 have_com_err=no 5121elif test $pkg_failed = untried; then 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5123$as_echo "no" >&6; } 5124 have_com_err=no 5125else 5126 COM_ERR_CFLAGS=$pkg_cv_COM_ERR_CFLAGS 5127 COM_ERR_LIBS=$pkg_cv_COM_ERR_LIBS 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5129$as_echo "yes" >&6; } 5130 have_com_err=yes 5131fi 5132 if test "x$have_com_err = xyes"; then 5133 COM_ERR_LIB="$COM_ERR_LIBS" 5134 fi 5135 LIBS="$LIBS $COM_ERR_LIB" 5136 # check for various functions we need 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_error_table in -lcom_err" >&5 5138$as_echo_n "checking for add_error_table in -lcom_err... " >&6; } 5139if ${ac_cv_lib_com_err_add_error_table+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 ac_check_lib_save_LIBS=$LIBS 5143LIBS="-lcom_err $LIBS" 5144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5145/* end confdefs.h. */ 5146 5147/* Override any GCC internal prototype to avoid an error. 5148 Use char because int might match the return type of a GCC 5149 builtin and then its argument prototype would still apply. */ 5150#ifdef __cplusplus 5151extern "C" 5152#endif 5153char add_error_table (); 5154int 5155main () 5156{ 5157return add_error_table (); 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162if ac_fn_c_try_link "$LINENO"; then : 5163 ac_cv_lib_com_err_add_error_table=yes 5164else 5165 ac_cv_lib_com_err_add_error_table=no 5166fi 5167rm -f core conftest.err conftest.$ac_objext \ 5168 conftest$ac_exeext conftest.$ac_ext 5169LIBS=$ac_check_lib_save_LIBS 5170fi 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_add_error_table" >&5 5172$as_echo "$ac_cv_lib_com_err_add_error_table" >&6; } 5173if test "x$ac_cv_lib_com_err_add_error_table" = xyes; then : 5174 : 5175else 5176 as_fn_error $? "cannot find add_error_table in com_err library" "$LINENO" 5 5177fi 5178 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove_error_table in -lcom_err" >&5 5180$as_echo_n "checking for remove_error_table in -lcom_err... " >&6; } 5181if ${ac_cv_lib_com_err_remove_error_table+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 ac_check_lib_save_LIBS=$LIBS 5185LIBS="-lcom_err $LIBS" 5186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5187/* end confdefs.h. */ 5188 5189/* Override any GCC internal prototype to avoid an error. 5190 Use char because int might match the return type of a GCC 5191 builtin and then its argument prototype would still apply. */ 5192#ifdef __cplusplus 5193extern "C" 5194#endif 5195char remove_error_table (); 5196int 5197main () 5198{ 5199return remove_error_table (); 5200 ; 5201 return 0; 5202} 5203_ACEOF 5204if ac_fn_c_try_link "$LINENO"; then : 5205 ac_cv_lib_com_err_remove_error_table=yes 5206else 5207 ac_cv_lib_com_err_remove_error_table=no 5208fi 5209rm -f core conftest.err conftest.$ac_objext \ 5210 conftest$ac_exeext conftest.$ac_ext 5211LIBS=$ac_check_lib_save_LIBS 5212fi 5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_remove_error_table" >&5 5214$as_echo "$ac_cv_lib_com_err_remove_error_table" >&6; } 5215if test "x$ac_cv_lib_com_err_remove_error_table" = xyes; then : 5216 : 5217else 5218 as_fn_error $? "cannot find remove_error_table in com_err library" "$LINENO" 5 5219fi 5220 5221 # make sure compile_et provides "et_foo" name 5222 cat >> conf$$e.et <<EOF 5223error_table foo 5224error_code ERR_FOO, "foo" 5225end 5226EOF 5227 for ac_prog in compile_et 5228do 5229 # Extract the first word of "$ac_prog", so it can be a program name with args. 5230set dummy $ac_prog; ac_word=$2 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5232$as_echo_n "checking for $ac_word... " >&6; } 5233if ${ac_cv_prog_compile_et+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235else 5236 if test -n "$compile_et"; then 5237 ac_cv_prog_compile_et="$compile_et" # Let the user override the test. 5238else 5239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5240for as_dir in $PATH 5241do 5242 IFS=$as_save_IFS 5243 test -z "$as_dir" && as_dir=. 5244 for ac_exec_ext in '' $ac_executable_extensions; do 5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5246 ac_cv_prog_compile_et="$ac_prog" 5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5248 break 2 5249 fi 5250done 5251 done 5252IFS=$as_save_IFS 5253 5254fi 5255fi 5256compile_et=$ac_cv_prog_compile_et 5257if test -n "$compile_et"; then 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_et" >&5 5259$as_echo "$compile_et" >&6; } 5260else 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5262$as_echo "no" >&6; } 5263fi 5264 5265 5266 test -n "$compile_et" && break 5267done 5268test -n "$compile_et" || compile_et="false" 5269 5270 if test "$compile_et" = false; then 5271 as_fn_error $? "cannot find compile_et" "$LINENO" 5 5272 fi 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et is useful" >&5 5274$as_echo_n "checking whether compile_et is useful... " >&6; } 5275if ${krb5_cv_compile_et_useful+:} false; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 5279 if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else 5280 as_fn_error $? "execution failed" "$LINENO" 5 5281 fi 5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5283/* end confdefs.h. */ 5284#include "conf$$e.h" 5285 5286int 5287main () 5288{ 5289 &et_foo_error_table; 5290 ; 5291 return 0; 5292} 5293_ACEOF 5294if ac_fn_c_try_compile "$LINENO"; then : 5295 : 5296else 5297 as_fn_error $? "cannot use et_foo_error_table" "$LINENO" 5 5298fi 5299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5300 # Anything else we need to test for? 5301 rm -f conf$$e.c conf$$e.h 5302 krb5_cv_compile_et_useful=yes 5303 5304fi 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_compile_et_useful" >&5 5306$as_echo "$krb5_cv_compile_et_useful" >&6; } 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et supports --textdomain" >&5 5308$as_echo_n "checking whether compile_et supports --textdomain... " >&6; } 5309if ${krb5_cv_compile_et_textdomain+:} false; then : 5310 $as_echo_n "(cached) " >&6 5311else 5312 5313 krb5_cv_compile_et_textdomain=no 5314 if compile_et --textdomain=xyzw conf$$e.et >/dev/null 2>&1 ; then 5315 if grep -q xyzw conf$$e.c; then 5316 krb5_cv_compile_et_textdomain=yes 5317 fi 5318 fi 5319 rm -f conf$$e.c conf$$e.h 5320 5321fi 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_compile_et_textdomain" >&5 5323$as_echo "$krb5_cv_compile_et_textdomain" >&6; } 5324 if test "$krb5_cv_compile_et_textdomain" = yes; then 5325 COM_ERR_VERSION=intlsys 5326 fi 5327 rm -f conf$$e.et 5328fi 5329 5330 5331LIBS="$OLDLIBS" 5332if test "$COM_ERR_VERSION" = k5 -o "$COM_ERR_VERSION" = intlsys; then 5333 5334$as_echo "#define HAVE_COM_ERR_INTL 1" >>confdefs.h 5335 5336fi 5337 5338 5339# Check whether --with-system-ss was given. 5340if test "${with_system_ss+set}" = set; then : 5341 withval=$with_system_ss; 5342fi 5343 5344 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which version of subsystem package to use" >&5 5346$as_echo_n "checking which version of subsystem package to use... " >&6; } 5347if test "x$with_system_ss" = xyes ; then 5348 SS_VERSION=sys 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 5350$as_echo "system" >&6; } 5351 # todo: check for various libraries we might need 5352 # in the meantime... 5353 test "x${SS_LIB+set}" = xset || SS_LIB=-lss 5354 old_LIBS="$LIBS" 5355 LIBS="$LIBS $SS_LIB" 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system ss package works" >&5 5357$as_echo_n "checking whether system ss package works... " >&6; } 5358if ${krb5_cv_system_ss_okay+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 5362 if test "$cross_compiling" = yes; then : 5363 krb5_cv_system_ss_okay="assumed" 5364else 5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5366/* end confdefs.h. */ 5367 5368#include <ss/ss.h> 5369int main(int argc, char *argv[]) { 5370 if (argc == 42) { 5371 int i, err; 5372 i = ss_create_invocation("foo","foo","",0,&err); 5373 ss_listen(i); 5374 } 5375 return 0; 5376} 5377_ACEOF 5378if ac_fn_c_try_run "$LINENO"; then : 5379 krb5_cv_system_ss_okay=yes 5380else 5381 as_fn_error $? "cannot run test program" "$LINENO" 5 5382fi 5383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5384 conftest.$ac_objext conftest.beam conftest.$ac_ext 5385fi 5386 5387fi 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_system_ss_okay" >&5 5389$as_echo "$krb5_cv_system_ss_okay" >&6; } 5390 LIBS="$old_LIBS" 5391 5392 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ss_execute_command needs a prototype provided" >&5 5394$as_echo_n "checking if ss_execute_command needs a prototype provided... " >&6; } 5395if ${krb5_cv_func_ss_execute_command_noproto+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399/* end confdefs.h. */ 5400#include <ss/ss.h> 5401int 5402main () 5403{ 5404#undef ss_execute_command 5405struct k5foo {int foo; } xx; 5406extern int ss_execute_command (struct k5foo*); 5407ss_execute_command(&xx); 5408 5409 ; 5410 return 0; 5411} 5412_ACEOF 5413if ac_fn_c_try_compile "$LINENO"; then : 5414 krb5_cv_func_ss_execute_command_noproto=yes 5415else 5416 krb5_cv_func_ss_execute_command_noproto=no 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5419fi 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_ss_execute_command_noproto" >&5 5421$as_echo "$krb5_cv_func_ss_execute_command_noproto" >&6; } 5422if test $krb5_cv_func_ss_execute_command_noproto = yes; then 5423 5424$as_echo "#define NEED_SS_EXECUTE_COMMAND_PROTO 1" >>confdefs.h 5425 5426fi 5427 5428 5429else 5430 SS_VERSION=k5 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5" >&5 5432$as_echo "krb5" >&6; } 5433fi 5434 5435 5436 5437 5438# Check whether --with-system-db was given. 5439if test "${with_system_db+set}" = set; then : 5440 withval=$with_system_db; 5441fi 5442 5443 5444 5445if test "x$with_system_db" = xyes ; then 5446 DB_VERSION=sys 5447 # TODO: Do we have specific routines we should check for? 5448 # How about known, easily recognizable bugs? 5449 # We want to use bt_rseq in some cases, but no other version but 5450 # ours has it right now. 5451 # 5452 # Okay, check the variables. 5453 test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h 5454 test "x${DB_LIB+set}" = xset || DB_LIB=-ldb 5455 # 5456 if test "x${DB_HEADER}" = xdb.h ; then 5457 DB_HEADER_VERSION=sys 5458 else 5459 DB_HEADER_VERSION=redirect 5460 fi 5461 KDB5_DB_LIB="$DB_LIB" 5462else 5463 DB_VERSION=k5 5464 5465$as_echo "#define HAVE_BT_RSEQ 1" >>confdefs.h 5466 5467 DB_HEADER=db.h 5468 DB_HEADER_VERSION=k5 5469 # libdb gets sucked into libkdb 5470 KDB5_DB_LIB= 5471 # needed for a couple of things that need libdb for its own sake 5472 DB_LIB=-ldb 5473fi 5474 5475 5476 5477 5478 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5480$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5481if ${ac_cv_c_const+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486 5487int 5488main () 5489{ 5490 5491#ifndef __cplusplus 5492 /* Ultrix mips cc rejects this sort of thing. */ 5493 typedef int charset[2]; 5494 const charset cs = { 0, 0 }; 5495 /* SunOS 4.1.1 cc rejects this. */ 5496 char const *const *pcpcc; 5497 char **ppc; 5498 /* NEC SVR4.0.2 mips cc rejects this. */ 5499 struct point {int x, y;}; 5500 static struct point const zero = {0,0}; 5501 /* AIX XL C 1.02.0.0 rejects this. 5502 It does not let you subtract one const X* pointer from another in 5503 an arm of an if-expression whose if-part is not a constant 5504 expression */ 5505 const char *g = "string"; 5506 pcpcc = &g + (g ? g-g : 0); 5507 /* HPUX 7.0 cc rejects these. */ 5508 ++pcpcc; 5509 ppc = (char**) pcpcc; 5510 pcpcc = (char const *const *) ppc; 5511 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5512 char tx; 5513 char *t = &tx; 5514 char const *s = 0 ? (char *) 0 : (char const *) 0; 5515 5516 *t++ = 0; 5517 if (s) return 0; 5518 } 5519 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5520 int x[] = {25, 17}; 5521 const int *foo = &x[0]; 5522 ++foo; 5523 } 5524 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5525 typedef const int *iptr; 5526 iptr p = 0; 5527 ++p; 5528 } 5529 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5530 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5531 struct s { int j; const int *ap[3]; } bx; 5532 struct s *b = &bx; b->j = 5; 5533 } 5534 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5535 const int foo = 10; 5536 if (!foo) return 0; 5537 } 5538 return !cs[0] && !zero.x; 5539#endif 5540 5541 ; 5542 return 0; 5543} 5544_ACEOF 5545if ac_fn_c_try_compile "$LINENO"; then : 5546 ac_cv_c_const=yes 5547else 5548 ac_cv_c_const=no 5549fi 5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5551fi 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5553$as_echo "$ac_cv_c_const" >&6; } 5554if test $ac_cv_c_const = no; then 5555 5556$as_echo "#define const /**/" >>confdefs.h 5557 5558fi 5559 5560 5561# Check whether --with-netlib was given. 5562if test "${with_netlib+set}" = set; then : 5563 withval=$with_netlib; if test "$withval" = yes -o "$withval" = no ; then 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"netlib will link with C library resolver only\"" >&5 5565$as_echo "\"netlib will link with C library resolver only\"" >&6; } 5566 else 5567 LIBS="$LIBS $withval" 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"netlib will use \'$withval\'\"" >&5 5569$as_echo "\"netlib will use \'$withval\'\"" >&6; } 5570 fi 5571 5572else 5573 5574 # Most operating systems have gethostbyname() in the default searched 5575 # libraries (i.e. libc): 5576 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 5577if test "x$ac_cv_func_gethostbyname" = xyes; then : 5578 5579else 5580 5581 # Some OSes (eg. Solaris) place it in libnsl: 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 5583$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5584if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 ac_check_lib_save_LIBS=$LIBS 5588LIBS="-lnsl $LIBS" 5589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5590/* end confdefs.h. */ 5591 5592/* Override any GCC internal prototype to avoid an error. 5593 Use char because int might match the return type of a GCC 5594 builtin and then its argument prototype would still apply. */ 5595#ifdef __cplusplus 5596extern "C" 5597#endif 5598char gethostbyname (); 5599int 5600main () 5601{ 5602return gethostbyname (); 5603 ; 5604 return 0; 5605} 5606_ACEOF 5607if ac_fn_c_try_link "$LINENO"; then : 5608 ac_cv_lib_nsl_gethostbyname=yes 5609else 5610 ac_cv_lib_nsl_gethostbyname=no 5611fi 5612rm -f core conftest.err conftest.$ac_objext \ 5613 conftest$ac_exeext conftest.$ac_ext 5614LIBS=$ac_check_lib_save_LIBS 5615fi 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 5617$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 5618if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 5619 cat >>confdefs.h <<_ACEOF 5620#define HAVE_LIBNSL 1 5621_ACEOF 5622 5623 LIBS="-lnsl $LIBS" 5624 5625else 5626 5627 # Some strange OSes (SINIX) have it in libsocket: 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 5629$as_echo_n "checking for gethostbyname in -lsocket... " >&6; } 5630if ${ac_cv_lib_socket_gethostbyname+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 ac_check_lib_save_LIBS=$LIBS 5634LIBS="-lsocket $LIBS" 5635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637 5638/* Override any GCC internal prototype to avoid an error. 5639 Use char because int might match the return type of a GCC 5640 builtin and then its argument prototype would still apply. */ 5641#ifdef __cplusplus 5642extern "C" 5643#endif 5644char gethostbyname (); 5645int 5646main () 5647{ 5648return gethostbyname (); 5649 ; 5650 return 0; 5651} 5652_ACEOF 5653if ac_fn_c_try_link "$LINENO"; then : 5654 ac_cv_lib_socket_gethostbyname=yes 5655else 5656 ac_cv_lib_socket_gethostbyname=no 5657fi 5658rm -f core conftest.err conftest.$ac_objext \ 5659 conftest$ac_exeext conftest.$ac_ext 5660LIBS=$ac_check_lib_save_LIBS 5661fi 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 5663$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } 5664if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then : 5665 cat >>confdefs.h <<_ACEOF 5666#define HAVE_LIBSOCKET 1 5667_ACEOF 5668 5669 LIBS="-lsocket $LIBS" 5670 5671else 5672 5673 # Unfortunately libsocket sometimes depends on libnsl. 5674 # AC_CHECK_LIB's API is essentially broken so the following 5675 # ugliness is necessary: 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 5677$as_echo_n "checking for gethostbyname in -lsocket... " >&6; } 5678if ${ac_cv_lib_socket_gethostbyname+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 ac_check_lib_save_LIBS=$LIBS 5682LIBS="-lsocket -lnsl $LIBS" 5683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5684/* end confdefs.h. */ 5685 5686/* Override any GCC internal prototype to avoid an error. 5687 Use char because int might match the return type of a GCC 5688 builtin and then its argument prototype would still apply. */ 5689#ifdef __cplusplus 5690extern "C" 5691#endif 5692char gethostbyname (); 5693int 5694main () 5695{ 5696return gethostbyname (); 5697 ; 5698 return 0; 5699} 5700_ACEOF 5701if ac_fn_c_try_link "$LINENO"; then : 5702 ac_cv_lib_socket_gethostbyname=yes 5703else 5704 ac_cv_lib_socket_gethostbyname=no 5705fi 5706rm -f core conftest.err conftest.$ac_objext \ 5707 conftest$ac_exeext conftest.$ac_ext 5708LIBS=$ac_check_lib_save_LIBS 5709fi 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 5711$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } 5712if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then : 5713 LIBS="-lsocket -lnsl $LIBS" 5714else 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5 5716$as_echo_n "checking for gethostbyname in -lresolv... " >&6; } 5717if ${ac_cv_lib_resolv_gethostbyname+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 ac_check_lib_save_LIBS=$LIBS 5721LIBS="-lresolv $LIBS" 5722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5723/* end confdefs.h. */ 5724 5725/* Override any GCC internal prototype to avoid an error. 5726 Use char because int might match the return type of a GCC 5727 builtin and then its argument prototype would still apply. */ 5728#ifdef __cplusplus 5729extern "C" 5730#endif 5731char gethostbyname (); 5732int 5733main () 5734{ 5735return gethostbyname (); 5736 ; 5737 return 0; 5738} 5739_ACEOF 5740if ac_fn_c_try_link "$LINENO"; then : 5741 ac_cv_lib_resolv_gethostbyname=yes 5742else 5743 ac_cv_lib_resolv_gethostbyname=no 5744fi 5745rm -f core conftest.err conftest.$ac_objext \ 5746 conftest$ac_exeext conftest.$ac_ext 5747LIBS=$ac_check_lib_save_LIBS 5748fi 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5 5750$as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; } 5751if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then : 5752 LIBS="-lresolv $LIBS" 5753fi 5754 5755fi 5756 5757 5758fi 5759 5760 5761fi 5762 5763 5764fi 5765 5766 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 5767if test "x$ac_cv_func_socket" = xyes; then : 5768 5769else 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 5771$as_echo_n "checking for socket in -lsocket... " >&6; } 5772if ${ac_cv_lib_socket_socket+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 ac_check_lib_save_LIBS=$LIBS 5776LIBS="-lsocket $LIBS" 5777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779 5780/* Override any GCC internal prototype to avoid an error. 5781 Use char because int might match the return type of a GCC 5782 builtin and then its argument prototype would still apply. */ 5783#ifdef __cplusplus 5784extern "C" 5785#endif 5786char socket (); 5787int 5788main () 5789{ 5790return socket (); 5791 ; 5792 return 0; 5793} 5794_ACEOF 5795if ac_fn_c_try_link "$LINENO"; then : 5796 ac_cv_lib_socket_socket=yes 5797else 5798 ac_cv_lib_socket_socket=no 5799fi 5800rm -f core conftest.err conftest.$ac_objext \ 5801 conftest$ac_exeext conftest.$ac_ext 5802LIBS=$ac_check_lib_save_LIBS 5803fi 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 5805$as_echo "$ac_cv_lib_socket_socket" >&6; } 5806if test "x$ac_cv_lib_socket_socket" = xyes; then : 5807 cat >>confdefs.h <<_ACEOF 5808#define HAVE_LIBSOCKET 1 5809_ACEOF 5810 5811 LIBS="-lsocket $LIBS" 5812 5813else 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 5815$as_echo_n "checking for socket in -lsocket... " >&6; } 5816if ${ac_cv_lib_socket_socket+:} false; then : 5817 $as_echo_n "(cached) " >&6 5818else 5819 ac_check_lib_save_LIBS=$LIBS 5820LIBS="-lsocket -lnsl $LIBS" 5821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5822/* end confdefs.h. */ 5823 5824/* Override any GCC internal prototype to avoid an error. 5825 Use char because int might match the return type of a GCC 5826 builtin and then its argument prototype would still apply. */ 5827#ifdef __cplusplus 5828extern "C" 5829#endif 5830char socket (); 5831int 5832main () 5833{ 5834return socket (); 5835 ; 5836 return 0; 5837} 5838_ACEOF 5839if ac_fn_c_try_link "$LINENO"; then : 5840 ac_cv_lib_socket_socket=yes 5841else 5842 ac_cv_lib_socket_socket=no 5843fi 5844rm -f core conftest.err conftest.$ac_objext \ 5845 conftest$ac_exeext conftest.$ac_ext 5846LIBS=$ac_check_lib_save_LIBS 5847fi 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 5849$as_echo "$ac_cv_lib_socket_socket" >&6; } 5850if test "x$ac_cv_lib_socket_socket" = xyes; then : 5851 LIBS="-lsocket -lnsl $LIBS" 5852fi 5853 5854fi 5855 5856fi 5857 5858 5859enable_dns=yes 5860 # Check whether --enable-dns-for-realm was given. 5861if test "${enable_dns_for_realm+set}" = set; then : 5862 enableval=$enable_dns_for_realm; 5863else 5864 enable_dns_for_realm=no 5865fi 5866 5867 if test "$enable_dns_for_realm" = yes; then 5868 5869$as_echo "#define KRB5_DNS_LOOKUP_REALM 1" >>confdefs.h 5870 5871 fi 5872 5873 5874$as_echo "#define KRB5_DNS_LOOKUP 1" >>confdefs.h 5875 5876 5877 5878 if test "$enable_dns" = yes ; then 5879 # We assume that if libresolv exists we can link against it. 5880 # This may get us a gethostby* that doesn't respect nsswitch. 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5 5882$as_echo_n "checking for main in -lresolv... " >&6; } 5883if ${ac_cv_lib_resolv_main+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 ac_check_lib_save_LIBS=$LIBS 5887LIBS="-lresolv $LIBS" 5888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5889/* end confdefs.h. */ 5890 5891 5892int 5893main () 5894{ 5895return main (); 5896 ; 5897 return 0; 5898} 5899_ACEOF 5900if ac_fn_c_try_link "$LINENO"; then : 5901 ac_cv_lib_resolv_main=yes 5902else 5903 ac_cv_lib_resolv_main=no 5904fi 5905rm -f core conftest.err conftest.$ac_objext \ 5906 conftest$ac_exeext conftest.$ac_ext 5907LIBS=$ac_check_lib_save_LIBS 5908fi 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5 5910$as_echo "$ac_cv_lib_resolv_main" >&6; } 5911if test "x$ac_cv_lib_resolv_main" = xyes; then : 5912 cat >>confdefs.h <<_ACEOF 5913#define HAVE_LIBRESOLV 1 5914_ACEOF 5915 5916 LIBS="-lresolv $LIBS" 5917 5918fi 5919 5920 5921for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do 5922 5923# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but 5924# doesn't export it from libresolv.so, so we use extreme paranoia here 5925# and check both for the declaration and that we can link against the 5926# function. 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $krb5_func" >&5 5928$as_echo_n "checking for $krb5_func... " >&6; } 5929if eval \${krb5_cv_func_$krb5_func+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934#include <sys/types.h> 5935#include <netinet/in.h> 5936#include <arpa/nameser.h> 5937#include <resolv.h> 5938int 5939main () 5940{ 5941/* 5942 * Use volatile, or else optimization can cause false positives. 5943 */ 5944void (* volatile p)() = (void (*)())$krb5_func; 5945 ; 5946 return 0; 5947} 5948_ACEOF 5949if ac_fn_c_try_link "$LINENO"; then : 5950 eval "krb5_cv_func_$krb5_func=yes" 5951else 5952 eval "krb5_cv_func_$krb5_func=no" 5953fi 5954rm -f core conftest.err conftest.$ac_objext \ 5955 conftest$ac_exeext conftest.$ac_ext 5956fi 5957eval ac_res=\$krb5_cv_func_$krb5_func 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5959$as_echo "$ac_res" >&6; } 5960if test `eval 'as_val=${'krb5_cv_func_$krb5_func'};$as_echo "$as_val"'` = yes; then : 5961 5962cat >>confdefs.h <<_ACEOF 5963#define `$as_echo "HAVE_$krb5_func" | $as_tr_cpp` 1 5964_ACEOF 5965 5966fi 5967done 5968 5969 if test $krb5_cv_func_res_nsearch = no \ 5970 && test $krb5_cv_func_res_search = no; then 5971 # Attempt to link with res_search(), in case it's not prototyped. 5972 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" 5973if test "x$ac_cv_func_res_search" = xyes; then : 5974 5975$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h 5976 5977else 5978 as_fn_error $? "cannot find res_nsearch or res_search" "$LINENO" 5 5979fi 5980 5981 fi 5982 fi 5983 5984 5985fi 5986 5987# Check whether --with-hesiod was given. 5988if test "${with_hesiod+set}" = set; then : 5989 withval=$with_hesiod; hesiod=$with_hesiod 5990else 5991 with_hesiod=no 5992fi 5993 5994if test "$with_hesiod" != "no"; then 5995 HESIOD_DEFS=-DHESIOD 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 5997$as_echo_n "checking for res_send in -lresolv... " >&6; } 5998if ${ac_cv_lib_resolv_res_send+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 ac_check_lib_save_LIBS=$LIBS 6002LIBS="-lresolv $LIBS" 6003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6004/* end confdefs.h. */ 6005 6006/* Override any GCC internal prototype to avoid an error. 6007 Use char because int might match the return type of a GCC 6008 builtin and then its argument prototype would still apply. */ 6009#ifdef __cplusplus 6010extern "C" 6011#endif 6012char res_send (); 6013int 6014main () 6015{ 6016return res_send (); 6017 ; 6018 return 0; 6019} 6020_ACEOF 6021if ac_fn_c_try_link "$LINENO"; then : 6022 ac_cv_lib_resolv_res_send=yes 6023else 6024 ac_cv_lib_resolv_res_send=no 6025fi 6026rm -f core conftest.err conftest.$ac_objext \ 6027 conftest$ac_exeext conftest.$ac_ext 6028LIBS=$ac_check_lib_save_LIBS 6029fi 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 6031$as_echo "$ac_cv_lib_resolv_res_send" >&6; } 6032if test "x$ac_cv_lib_resolv_res_send" = xyes; then : 6033 res_lib=-lresolv 6034fi 6035 6036 if test "$hesiod" != "yes"; then 6037 HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib" 6038 else 6039 HESIOD_LIBS="-lhesiod $res_lib" 6040 fi 6041else 6042 HESIOD_DEFS= 6043 HESIOD_LIBS= 6044fi 6045 6046 # Check whether --enable-maintainer-mode was given. 6047if test "${enable_maintainer_mode+set}" = set; then : 6048 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 6049else 6050 USE_MAINTAINER_MODE=no 6051fi 6052 6053if test "$USE_MAINTAINER_MODE" = yes; then 6054 MAINTAINER_MODE_TRUE= 6055 MAINTAINER_MODE_FALSE='#' 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: enabling maintainer mode" >&5 6057$as_echo "$as_me: enabling maintainer mode" >&6;} 6058else 6059 MAINTAINER_MODE_TRUE='#' 6060 MAINTAINER_MODE_FALSE= 6061fi 6062MAINT=$MAINTAINER_MODE_TRUE 6063 6064 6065 6066 CONFIG_RELTOPDIR=$ac_reltopdir 6067 6068lib_frag=$srcdir/$ac_config_fragdir/lib.in 6069 6070libobj_frag=$srcdir/$ac_config_fragdir/libobj.in 6071 6072libnover_frag=$srcdir/$ac_config_fragdir/libnover.in 6073 6074libpriv_frag=$srcdir/$ac_config_fragdir/libpriv.in 6075 6076libnodeps_frag=$srcdir/$ac_config_fragdir/libnodeps.in 6077 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak references are supported" >&5 6079$as_echo_n "checking whether pragma weak references are supported... " >&6; } 6080if ${krb5_cv_pragma_weak_ref+:} false; then : 6081 $as_echo_n "(cached) " >&6 6082else 6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6084/* end confdefs.h. */ 6085#pragma weak flurbl 6086extern int flurbl(void); 6087int 6088main () 6089{ 6090if (&flurbl != 0) return flurbl(); 6091 ; 6092 return 0; 6093} 6094_ACEOF 6095if ac_fn_c_try_link "$LINENO"; then : 6096 krb5_cv_pragma_weak_ref=yes 6097else 6098 krb5_cv_pragma_weak_ref=no 6099fi 6100rm -f core conftest.err conftest.$ac_objext \ 6101 conftest$ac_exeext conftest.$ac_ext 6102fi 6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_pragma_weak_ref" >&5 6104$as_echo "$krb5_cv_pragma_weak_ref" >&6; } 6105if test $krb5_cv_pragma_weak_ref = yes ; then 6106 6107$as_echo "#define HAVE_PRAGMA_WEAK_REF 1" >>confdefs.h 6108 6109fi 6110 6111 6112# Check whether --with-ldap was given. 6113if test "${with_ldap+set}" = set; then : 6114 withval=$with_ldap; case "$withval" in 6115 OPENLDAP) with_ldap=yes ;; 6116 yes | no) ;; 6117 *) as_fn_error $? "Invalid option value --with-ldap=\"$withval\"" "$LINENO" 5 ;; 6118esac 6119else 6120 with_ldap=no 6121fi 6122 6123if test "$with_ldap" = yes; then 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: enabling OpenLDAP database backend module support" >&5 6125$as_echo "$as_me: enabling OpenLDAP database backend module support" >&6;} 6126 OPENLDAP_PLUGIN=yes 6127fi 6128 6129krb5_cv_host=$host 6130 6131. $ac_topdir/config/shlib.conf 6132 6133# Check whether --enable-delayed-initialization was given. 6134if test "${enable_delayed_initialization+set}" = set; then : 6135 enableval=$enable_delayed_initialization; 6136else 6137 enable_delayed_initialization=yes 6138fi 6139 6140case "$enable_delayed_initialization" in 6141 yes) 6142 6143$as_echo "#define DELAY_INITIALIZER 1" >>confdefs.h 6144 ;; 6145 no) ;; 6146 *) as_fn_error $? "invalid option $enable_delayed_initialization for delayed-initialization" "$LINENO" 5 ;; 6147esac 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for constructor/destructor attribute support" >&5 6149$as_echo_n "checking for constructor/destructor attribute support... " >&6; } 6150if ${krb5_cv_attr_constructor_destructor+:} false; then : 6151 $as_echo_n "(cached) " >&6 6152else 6153 rm -f conftest.1 conftest.2 6154if test -r conftest.1 || test -r conftest.2 ; then 6155 as_fn_error $? "write error in local file system?" "$LINENO" 5 6156fi 6157true > conftest.1 6158true > conftest.2 6159if test -r conftest.1 && test -r conftest.2 ; then true ; else 6160 as_fn_error $? "write error in local file system?" "$LINENO" 5 6161fi 6162a=no 6163b=no 6164# blindly assume we have 'unlink' and unistd.h. 6165if test "$cross_compiling" = yes; then : 6166 as_fn_error $? "Cannot test for constructor/destructor support when cross compiling" "$LINENO" 5 6167else 6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6169/* end confdefs.h. */ 6170#include <unistd.h> 6171void foo1() __attribute__((constructor)); 6172void foo1() { unlink("conftest.1"); } 6173void foo2() __attribute__((destructor)); 6174void foo2() { unlink("conftest.2"); } 6175int main () { return 0; } 6176_ACEOF 6177if ac_fn_c_try_run "$LINENO"; then : 6178 test -r conftest.1 || a=yes 6179test -r conftest.2 || b=yes 6180fi 6181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6182 conftest.$ac_objext conftest.beam conftest.$ac_ext 6183fi 6184 6185case $krb5_cv_host in 6186*-*-aix4.*) 6187 # Under AIX 4.3.3, at least, shared library destructor functions 6188 # appear to get executed in reverse link order (right to left), 6189 # so that a library's destructor function may run after that of 6190 # libraries it depends on, and may still have to access in the 6191 # destructor. 6192 # 6193 # That counts as "not working", for me, but it's a much more 6194 # complicated test case to set up. 6195 b=no 6196 ;; 6197esac 6198krb5_cv_attr_constructor_destructor="$a,$b" 6199 6200fi 6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_attr_constructor_destructor" >&5 6202$as_echo "$krb5_cv_attr_constructor_destructor" >&6; } 6203# Okay, krb5_cv_... should be set now. 6204case $krb5_cv_attr_constructor_destructor in 6205 yes,*) 6206 6207$as_echo "#define CONSTRUCTOR_ATTR_WORKS 1" >>confdefs.h 6208 ;; 6209esac 6210case $krb5_cv_attr_constructor_destructor in 6211 *,yes) 6212 6213$as_echo "#define DESTRUCTOR_ATTR_WORKS 1" >>confdefs.h 6214 ;; 6215esac 6216 6217if test -z "$use_linker_init_option" ; then 6218 as_fn_error $? "ran INITFINI before checking shlib.conf?" "$LINENO" 5 6219fi 6220if test "$use_linker_init_option" = yes; then 6221 6222$as_echo "#define USE_LINKER_INIT_OPTION 1" >>confdefs.h 6223 6224fi 6225if test "$use_linker_fini_option" = yes; then 6226 6227$as_echo "#define USE_LINKER_FINI_OPTION 1" >>confdefs.h 6228 6229fi 6230 6231 6232# Check whether --enable-thread-support was given. 6233if test "${enable_thread_support+set}" = set; then : 6234 enableval=$enable_thread_support; 6235else 6236 enable_thread_support=yes 6237fi 6238 6239if test "$enable_thread_support" = yes ; then 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: enabling thread support" >&5 6241$as_echo "$as_me: enabling thread support" >&6;} 6242 6243$as_echo "#define ENABLE_THREADS 1" >>confdefs.h 6244 6245fi 6246if test "$enable_thread_support" = yes; then 6247 6248 6249 6250 6251ac_ext=c 6252ac_cpp='$CPP $CPPFLAGS' 6253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6255ac_compiler_gnu=$ac_cv_c_compiler_gnu 6256 6257ax_pthread_ok=no 6258 6259# We used to check for pthread.h first, but this fails if pthread.h 6260# requires special compiler flags (e.g. on Tru64 or Sequent). 6261# It gets checked for in the link test anyway. 6262 6263# First of all, check if the user has set any of the PTHREAD_LIBS, 6264# etcetera environment variables, and if threads linking works using 6265# them: 6266if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 6267 ax_pthread_save_CC="$CC" 6268 ax_pthread_save_CFLAGS="$CFLAGS" 6269 ax_pthread_save_LIBS="$LIBS" 6270 if test "x$PTHREAD_CC" != "x"; then : 6271 CC="$PTHREAD_CC" 6272fi 6273 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6274 LIBS="$PTHREAD_LIBS $LIBS" 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 6276$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6278/* end confdefs.h. */ 6279 6280/* Override any GCC internal prototype to avoid an error. 6281 Use char because int might match the return type of a GCC 6282 builtin and then its argument prototype would still apply. */ 6283#ifdef __cplusplus 6284extern "C" 6285#endif 6286char pthread_join (); 6287int 6288main () 6289{ 6290return pthread_join (); 6291 ; 6292 return 0; 6293} 6294_ACEOF 6295if ac_fn_c_try_link "$LINENO"; then : 6296 ax_pthread_ok=yes 6297fi 6298rm -f core conftest.err conftest.$ac_objext \ 6299 conftest$ac_exeext conftest.$ac_ext 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 6301$as_echo "$ax_pthread_ok" >&6; } 6302 if test "x$ax_pthread_ok" = "xno"; then 6303 PTHREAD_LIBS="" 6304 PTHREAD_CFLAGS="" 6305 fi 6306 CC="$ax_pthread_save_CC" 6307 CFLAGS="$ax_pthread_save_CFLAGS" 6308 LIBS="$ax_pthread_save_LIBS" 6309fi 6310 6311# We must check for the threads library under a number of different 6312# names; the ordering is very important because some systems 6313# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 6314# libraries is broken (non-POSIX). 6315 6316# Create a list of thread flags to try. Items starting with a "-" are 6317# C compiler flags, and other items are library names, except for "none" 6318# which indicates that we try without any flags at all, and "pthread-config" 6319# which is a program returning the flags for the Pth emulation library. 6320 6321ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 6322 6323# The ordering *is* (sometimes) important. Some notes on the 6324# individual items follow: 6325 6326# pthreads: AIX (must check this before -lpthread) 6327# none: in case threads are in libc; should be tried before -Kthread and 6328# other compiler flags to prevent continual compiler warnings 6329# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 6330# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 6331# (Note: HP C rejects this with "bad form for `-t' option") 6332# -pthreads: Solaris/gcc (Note: HP C also rejects) 6333# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 6334# doesn't hurt to check since this sometimes defines pthreads and 6335# -D_REENTRANT too), HP C (must be checked before -lpthread, which 6336# is present but should not be used directly; and before -mthreads, 6337# because the compiler interprets this as "-mt" + "-hreads") 6338# -mthreads: Mingw32/gcc, Lynx/gcc 6339# pthread: Linux, etcetera 6340# --thread-safe: KAI C++ 6341# pthread-config: use pthread-config program (for GNU Pth library) 6342 6343case $host_os in 6344 6345 freebsd*) 6346 6347 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 6348 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 6349 6350 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 6351 ;; 6352 6353 hpux*) 6354 6355 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 6356 # multi-threading and also sets -lpthread." 6357 6358 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 6359 ;; 6360 6361 openedition*) 6362 6363 # IBM z/OS requires a feature-test macro to be defined in order to 6364 # enable POSIX threads at all, so give the user a hint if this is 6365 # not set. (We don't define these ourselves, as they can affect 6366 # other portions of the system API in unpredictable ways.) 6367 6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6369/* end confdefs.h. */ 6370 6371# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 6372 AX_PTHREAD_ZOS_MISSING 6373# endif 6374 6375_ACEOF 6376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6377 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 6379$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 6380fi 6381rm -f conftest* 6382 6383 ;; 6384 6385 solaris*) 6386 6387 # On Solaris (at least, for some versions), libc contains stubbed 6388 # (non-functional) versions of the pthreads routines, so link-based 6389 # tests will erroneously succeed. (N.B.: The stubs are missing 6390 # pthread_cleanup_push, or rather a function called by this macro, 6391 # so we could check for that, but who knows whether they'll stub 6392 # that too in a future libc.) So we'll check first for the 6393 # standard Solaris way of linking pthreads (-mt -lpthread). 6394 6395 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 6396 ;; 6397esac 6398 6399# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 6400 6401if test "x$GCC" = "xyes"; then : 6402 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 6403fi 6404 6405# The presence of a feature test macro requesting re-entrant function 6406# definitions is, on some systems, a strong hint that pthreads support is 6407# correctly enabled 6408 6409case $host_os in 6410 darwin* | hpux* | linux* | osf* | solaris*) 6411 ax_pthread_check_macro="_REENTRANT" 6412 ;; 6413 6414 aix*) 6415 ax_pthread_check_macro="_THREAD_SAFE" 6416 ;; 6417 6418 *) 6419 ax_pthread_check_macro="--" 6420 ;; 6421esac 6422if test "x$ax_pthread_check_macro" = "x--"; then : 6423 ax_pthread_check_cond=0 6424else 6425 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 6426fi 6427 6428# Are we compiling with Clang? 6429 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 6431$as_echo_n "checking whether $CC is Clang... " >&6; } 6432if ${ax_cv_PTHREAD_CLANG+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 ax_cv_PTHREAD_CLANG=no 6436 # Note that Autoconf sets GCC=yes for Clang as well as GCC 6437 if test "x$GCC" = "xyes"; then 6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6439/* end confdefs.h. */ 6440/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 6441# if defined(__clang__) && defined(__llvm__) 6442 AX_PTHREAD_CC_IS_CLANG 6443# endif 6444 6445_ACEOF 6446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6447 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 6448 ax_cv_PTHREAD_CLANG=yes 6449fi 6450rm -f conftest* 6451 6452 fi 6453 6454fi 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 6456$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 6457ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 6458 6459ax_pthread_clang_warning=no 6460 6461# Clang needs special handling, because older versions handle the -pthread 6462# option in a rather... idiosyncratic way 6463 6464if test "x$ax_pthread_clang" = "xyes"; then 6465 6466 # Clang takes -pthread; it has never supported any other flag 6467 6468 # (Note 1: This will need to be revisited if a system that Clang 6469 # supports has POSIX threads in a separate library. This tends not 6470 # to be the way of modern systems, but it's conceivable.) 6471 6472 # (Note 2: On some systems, notably Darwin, -pthread is not needed 6473 # to get POSIX threads support; the API is always present and 6474 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 6475 # -pthread does define _REENTRANT, and while the Darwin headers 6476 # ignore this macro, third-party headers might not.) 6477 6478 PTHREAD_CFLAGS="-pthread" 6479 PTHREAD_LIBS= 6480 6481 ax_pthread_ok=yes 6482 6483 # However, older versions of Clang make a point of warning the user 6484 # that, in an invocation where only linking and no compilation is 6485 # taking place, the -pthread option has no effect ("argument unused 6486 # during compilation"). They expect -pthread to be passed in only 6487 # when source code is being compiled. 6488 # 6489 # Problem is, this is at odds with the way Automake and most other 6490 # C build frameworks function, which is that the same flags used in 6491 # compilation (CFLAGS) are also used in linking. Many systems 6492 # supported by AX_PTHREAD require exactly this for POSIX threads 6493 # support, and in fact it is often not straightforward to specify a 6494 # flag that is used only in the compilation phase and not in 6495 # linking. Such a scenario is extremely rare in practice. 6496 # 6497 # Even though use of the -pthread flag in linking would only print 6498 # a warning, this can be a nuisance for well-run software projects 6499 # that build with -Werror. So if the active version of Clang has 6500 # this misfeature, we search for an option to squash it. 6501 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 6503$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 6504if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 6505 $as_echo_n "(cached) " >&6 6506else 6507 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 6508 # Create an alternate version of $ac_link that compiles and 6509 # links in two steps (.c -> .o, .o -> exe) instead of one 6510 # (.c -> exe), because the warning occurs only in the second 6511 # step 6512 ax_pthread_save_ac_link="$ac_link" 6513 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 6514 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 6515 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 6516 ax_pthread_save_CFLAGS="$CFLAGS" 6517 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 6518 if test "x$ax_pthread_try" = "xunknown"; then : 6519 break 6520fi 6521 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 6522 ac_link="$ax_pthread_save_ac_link" 6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524/* end confdefs.h. */ 6525int main(void){return 0;} 6526_ACEOF 6527if ac_fn_c_try_link "$LINENO"; then : 6528 ac_link="$ax_pthread_2step_ac_link" 6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6530/* end confdefs.h. */ 6531int main(void){return 0;} 6532_ACEOF 6533if ac_fn_c_try_link "$LINENO"; then : 6534 break 6535fi 6536rm -f core conftest.err conftest.$ac_objext \ 6537 conftest$ac_exeext conftest.$ac_ext 6538 6539fi 6540rm -f core conftest.err conftest.$ac_objext \ 6541 conftest$ac_exeext conftest.$ac_ext 6542 done 6543 ac_link="$ax_pthread_save_ac_link" 6544 CFLAGS="$ax_pthread_save_CFLAGS" 6545 if test "x$ax_pthread_try" = "x"; then : 6546 ax_pthread_try=no 6547fi 6548 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 6549 6550fi 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 6552$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 6553 6554 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 6555 no | unknown) ;; 6556 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 6557 esac 6558 6559fi # $ax_pthread_clang = yes 6560 6561if test "x$ax_pthread_ok" = "xno"; then 6562for ax_pthread_try_flag in $ax_pthread_flags; do 6563 6564 case $ax_pthread_try_flag in 6565 none) 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 6567$as_echo_n "checking whether pthreads work without any flags... " >&6; } 6568 ;; 6569 6570 -mt,pthread) 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 6572$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 6573 PTHREAD_CFLAGS="-mt" 6574 PTHREAD_LIBS="-lpthread" 6575 ;; 6576 6577 -*) 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 6579$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 6580 PTHREAD_CFLAGS="$ax_pthread_try_flag" 6581 ;; 6582 6583 pthread-config) 6584 # Extract the first word of "pthread-config", so it can be a program name with args. 6585set dummy pthread-config; ac_word=$2 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6587$as_echo_n "checking for $ac_word... " >&6; } 6588if ${ac_cv_prog_ax_pthread_config+:} false; then : 6589 $as_echo_n "(cached) " >&6 6590else 6591 if test -n "$ax_pthread_config"; then 6592 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 6593else 6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6595for as_dir in $PATH 6596do 6597 IFS=$as_save_IFS 6598 test -z "$as_dir" && as_dir=. 6599 for ac_exec_ext in '' $ac_executable_extensions; do 6600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6601 ac_cv_prog_ax_pthread_config="yes" 6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6603 break 2 6604 fi 6605done 6606 done 6607IFS=$as_save_IFS 6608 6609 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 6610fi 6611fi 6612ax_pthread_config=$ac_cv_prog_ax_pthread_config 6613if test -n "$ax_pthread_config"; then 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 6615$as_echo "$ax_pthread_config" >&6; } 6616else 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6618$as_echo "no" >&6; } 6619fi 6620 6621 6622 if test "x$ax_pthread_config" = "xno"; then : 6623 continue 6624fi 6625 PTHREAD_CFLAGS="`pthread-config --cflags`" 6626 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 6627 ;; 6628 6629 *) 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 6631$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 6632 PTHREAD_LIBS="-l$ax_pthread_try_flag" 6633 ;; 6634 esac 6635 6636 ax_pthread_save_CFLAGS="$CFLAGS" 6637 ax_pthread_save_LIBS="$LIBS" 6638 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6639 LIBS="$PTHREAD_LIBS $LIBS" 6640 6641 # Check for various functions. We must include pthread.h, 6642 # since some functions may be macros. (On the Sequent, we 6643 # need a special flag -Kthread to make this header compile.) 6644 # We check for pthread_join because it is in -lpthread on IRIX 6645 # while pthread_create is in libc. We check for pthread_attr_init 6646 # due to DEC craziness with -lpthreads. We check for 6647 # pthread_cleanup_push because it is one of the few pthread 6648 # functions on Solaris that doesn't have a non-functional libc stub. 6649 # We try pthread_create on general principles. 6650 6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6652/* end confdefs.h. */ 6653#include <pthread.h> 6654# if $ax_pthread_check_cond 6655# error "$ax_pthread_check_macro must be defined" 6656# endif 6657 static void routine(void *a) { a = 0; } 6658 static void *start_routine(void *a) { return a; } 6659int 6660main () 6661{ 6662pthread_t th; pthread_attr_t attr; 6663 pthread_create(&th, 0, start_routine, 0); 6664 pthread_join(th, 0); 6665 pthread_attr_init(&attr); 6666 pthread_cleanup_push(routine, 0); 6667 pthread_cleanup_pop(0) /* ; */ 6668 ; 6669 return 0; 6670} 6671_ACEOF 6672if ac_fn_c_try_link "$LINENO"; then : 6673 ax_pthread_ok=yes 6674fi 6675rm -f core conftest.err conftest.$ac_objext \ 6676 conftest$ac_exeext conftest.$ac_ext 6677 6678 CFLAGS="$ax_pthread_save_CFLAGS" 6679 LIBS="$ax_pthread_save_LIBS" 6680 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 6682$as_echo "$ax_pthread_ok" >&6; } 6683 if test "x$ax_pthread_ok" = "xyes"; then : 6684 break 6685fi 6686 6687 PTHREAD_LIBS="" 6688 PTHREAD_CFLAGS="" 6689done 6690fi 6691 6692# Various other checks: 6693if test "x$ax_pthread_ok" = "xyes"; then 6694 ax_pthread_save_CFLAGS="$CFLAGS" 6695 ax_pthread_save_LIBS="$LIBS" 6696 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6697 LIBS="$PTHREAD_LIBS $LIBS" 6698 6699 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 6701$as_echo_n "checking for joinable pthread attribute... " >&6; } 6702if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 6706 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708/* end confdefs.h. */ 6709#include <pthread.h> 6710int 6711main () 6712{ 6713int attr = $ax_pthread_attr; return attr /* ; */ 6714 ; 6715 return 0; 6716} 6717_ACEOF 6718if ac_fn_c_try_link "$LINENO"; then : 6719 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 6720fi 6721rm -f core conftest.err conftest.$ac_objext \ 6722 conftest$ac_exeext conftest.$ac_ext 6723 done 6724 6725fi 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 6727$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 6728 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 6729 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 6730 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 6731 6732cat >>confdefs.h <<_ACEOF 6733#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 6734_ACEOF 6735 6736 ax_pthread_joinable_attr_defined=yes 6737 6738fi 6739 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 6741$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 6742if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 6743 $as_echo_n "(cached) " >&6 6744else 6745 ax_cv_PTHREAD_SPECIAL_FLAGS=no 6746 case $host_os in 6747 solaris*) 6748 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 6749 ;; 6750 esac 6751 6752fi 6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 6754$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 6755 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 6756 test "x$ax_pthread_special_flags_added" != "xyes"; then : 6757 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 6758 ax_pthread_special_flags_added=yes 6759fi 6760 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 6762$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 6763if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767/* end confdefs.h. */ 6768#include <pthread.h> 6769int 6770main () 6771{ 6772int i = PTHREAD_PRIO_INHERIT; 6773 ; 6774 return 0; 6775} 6776_ACEOF 6777if ac_fn_c_try_link "$LINENO"; then : 6778 ax_cv_PTHREAD_PRIO_INHERIT=yes 6779else 6780 ax_cv_PTHREAD_PRIO_INHERIT=no 6781fi 6782rm -f core conftest.err conftest.$ac_objext \ 6783 conftest$ac_exeext conftest.$ac_ext 6784 6785fi 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 6787$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 6788 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 6789 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 6790 6791$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 6792 6793 ax_pthread_prio_inherit_defined=yes 6794 6795fi 6796 6797 CFLAGS="$ax_pthread_save_CFLAGS" 6798 LIBS="$ax_pthread_save_LIBS" 6799 6800 # More AIX lossage: compile with *_r variant 6801 if test "x$GCC" != "xyes"; then 6802 case $host_os in 6803 aix*) 6804 case "x/$CC" in #( 6805 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 6806 #handle absolute path differently from PATH based program lookup 6807 case "x$CC" in #( 6808 x/*) : 6809 if as_fn_executable_p ${CC}_r; then : 6810 PTHREAD_CC="${CC}_r" 6811fi ;; #( 6812 *) : 6813 for ac_prog in ${CC}_r 6814do 6815 # Extract the first word of "$ac_prog", so it can be a program name with args. 6816set dummy $ac_prog; ac_word=$2 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818$as_echo_n "checking for $ac_word... " >&6; } 6819if ${ac_cv_prog_PTHREAD_CC+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 if test -n "$PTHREAD_CC"; then 6823 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 6824else 6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6832 ac_cv_prog_PTHREAD_CC="$ac_prog" 6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836done 6837 done 6838IFS=$as_save_IFS 6839 6840fi 6841fi 6842PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 6843if test -n "$PTHREAD_CC"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 6845$as_echo "$PTHREAD_CC" >&6; } 6846else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848$as_echo "no" >&6; } 6849fi 6850 6851 6852 test -n "$PTHREAD_CC" && break 6853done 6854test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 6855 ;; 6856esac ;; #( 6857 *) : 6858 ;; 6859esac 6860 ;; 6861 esac 6862 fi 6863fi 6864 6865test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 6866 6867 6868 6869 6870 6871# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 6872if test "x$ax_pthread_ok" = "xyes"; then 6873 6874$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 6875 6876 : 6877else 6878 ax_pthread_ok=no 6879 as_fn_error $? "cannot determine options for enabling thread support; try --disable-thread-support" "$LINENO" 5 6880fi 6881ac_ext=c 6882ac_cpp='$CPP $CPPFLAGS' 6883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6885ac_compiler_gnu=$ac_cv_c_compiler_gnu 6886 6887 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD_CC = $PTHREAD_CC" >&5 6889$as_echo "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;} 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5 6891$as_echo "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;} 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD_LIBS = $PTHREAD_LIBS" >&5 6893$as_echo "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;} 6894 # AIX and Tru64 don't support weak references, and don't have 6895 # stub versions of the pthread code in libc. 6896 case "${host_os}" in 6897 aix* | osf*) 6898 # On these platforms, we'll always pull in the thread support. 6899 LIBS="$LIBS $PTHREAD_LIBS" 6900 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6901 # We don't need to sometimes add the flags we've just folded in... 6902 PTHREAD_LIBS= 6903 PTHREAD_CFLAGS= 6904 ;; 6905 hpux*) 6906 # These are the flags that "gcc -pthread" adds. But we don't 6907 # want "-pthread" because that has link-time effects, and we 6908 # don't exclude CFLAGS when linking. *sigh* 6909 PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L" 6910 ;; 6911 solaris2.[1-9]) 6912 # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't 6913 # get the right result. XXX What about Solaris 9 and earlier? 6914 if test "$GCC" = yes ; then 6915 PTHREAD_CFLAGS="-D_REENTRANT -pthreads" 6916 fi 6917 ;; 6918 solaris*) 6919 # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't 6920 # get the right result. 6921 if test "$GCC" = yes ; then 6922 PTHREAD_CFLAGS="-D_REENTRANT -pthreads" 6923 fi 6924 # On Solaris 10, the thread support is always available in libc. 6925 6926$as_echo "#define NO_WEAK_PTHREADS 1" >>confdefs.h 6927 6928 ;; 6929 esac 6930 THREAD_SUPPORT=1 6931else 6932 PTHREAD_CC="$CC" 6933 PTHREAD_CFLAGS="" 6934 PTHREAD_LIBS="" 6935 THREAD_SUPPORT=0 6936fi 6937 6938for ac_func in pthread_once pthread_rwlock_init 6939do : 6940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6941ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6942if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6943 cat >>confdefs.h <<_ACEOF 6944#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6945_ACEOF 6946 6947fi 6948done 6949 6950old_CC="$CC" 6951test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC 6952old_CFLAGS="$CFLAGS" 6953# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries. 6954CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6955 6956old_LIBS="$LIBS" 6957LIBS="$PTHREAD_LIBS $LIBS" 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: rechecking with PTHREAD_... options" >&5 6959$as_echo "$as_me: rechecking with PTHREAD_... options" >&6;} 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lc" >&5 6961$as_echo_n "checking for pthread_rwlock_init in -lc... " >&6; } 6962if ${ac_cv_lib_c_pthread_rwlock_init+:} false; then : 6963 $as_echo_n "(cached) " >&6 6964else 6965 ac_check_lib_save_LIBS=$LIBS 6966LIBS="-lc $LIBS" 6967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6968/* end confdefs.h. */ 6969 6970/* Override any GCC internal prototype to avoid an error. 6971 Use char because int might match the return type of a GCC 6972 builtin and then its argument prototype would still apply. */ 6973#ifdef __cplusplus 6974extern "C" 6975#endif 6976char pthread_rwlock_init (); 6977int 6978main () 6979{ 6980return pthread_rwlock_init (); 6981 ; 6982 return 0; 6983} 6984_ACEOF 6985if ac_fn_c_try_link "$LINENO"; then : 6986 ac_cv_lib_c_pthread_rwlock_init=yes 6987else 6988 ac_cv_lib_c_pthread_rwlock_init=no 6989fi 6990rm -f core conftest.err conftest.$ac_objext \ 6991 conftest$ac_exeext conftest.$ac_ext 6992LIBS=$ac_check_lib_save_LIBS 6993fi 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_rwlock_init" >&5 6995$as_echo "$ac_cv_lib_c_pthread_rwlock_init" >&6; } 6996if test "x$ac_cv_lib_c_pthread_rwlock_init" = xyes; then : 6997 6998$as_echo "#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1" >>confdefs.h 6999 7000fi 7001 7002LIBS="$old_LIBS" 7003CC="$old_CC" 7004CFLAGS="$old_CFLAGS" 7005 7006 7007old_LIBS="$LIBS" 7008DL_LIB= 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 7010$as_echo_n "checking for library containing dlopen... " >&6; } 7011if ${ac_cv_search_dlopen+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 ac_func_search_save_LIBS=$LIBS 7015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7016/* end confdefs.h. */ 7017 7018/* Override any GCC internal prototype to avoid an error. 7019 Use char because int might match the return type of a GCC 7020 builtin and then its argument prototype would still apply. */ 7021#ifdef __cplusplus 7022extern "C" 7023#endif 7024char dlopen (); 7025int 7026main () 7027{ 7028return dlopen (); 7029 ; 7030 return 0; 7031} 7032_ACEOF 7033for ac_lib in '' dl; do 7034 if test -z "$ac_lib"; then 7035 ac_res="none required" 7036 else 7037 ac_res=-l$ac_lib 7038 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7039 fi 7040 if ac_fn_c_try_link "$LINENO"; then : 7041 ac_cv_search_dlopen=$ac_res 7042fi 7043rm -f core conftest.err conftest.$ac_objext \ 7044 conftest$ac_exeext 7045 if ${ac_cv_search_dlopen+:} false; then : 7046 break 7047fi 7048done 7049if ${ac_cv_search_dlopen+:} false; then : 7050 7051else 7052 ac_cv_search_dlopen=no 7053fi 7054rm conftest.$ac_ext 7055LIBS=$ac_func_search_save_LIBS 7056fi 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 7058$as_echo "$ac_cv_search_dlopen" >&6; } 7059ac_res=$ac_cv_search_dlopen 7060if test "$ac_res" != no; then : 7061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7062 7063if test "$ac_cv_search_dlopen" != "none required"; then 7064 DL_LIB=$ac_cv_search_dlopen 7065fi 7066LIBS="$old_LIBS" 7067 7068$as_echo "#define USE_DLOPEN 1" >>confdefs.h 7069 7070fi 7071 7072 7073 7074 7075KRB5_VERSION=1.19.2 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7089 if test -n "$ac_tool_prefix"; then 7090 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7091set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7093$as_echo_n "checking for $ac_word... " >&6; } 7094if ${ac_cv_path_PKG_CONFIG+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 case $PKG_CONFIG in 7098 [\\/]* | ?:[\\/]*) 7099 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7100 ;; 7101 *) 7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7103for as_dir in $PATH 7104do 7105 IFS=$as_save_IFS 7106 test -z "$as_dir" && as_dir=. 7107 for ac_exec_ext in '' $ac_executable_extensions; do 7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7109 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7111 break 2 7112 fi 7113done 7114 done 7115IFS=$as_save_IFS 7116 7117 ;; 7118esac 7119fi 7120PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7121if test -n "$PKG_CONFIG"; then 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7123$as_echo "$PKG_CONFIG" >&6; } 7124else 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7126$as_echo "no" >&6; } 7127fi 7128 7129 7130fi 7131if test -z "$ac_cv_path_PKG_CONFIG"; then 7132 ac_pt_PKG_CONFIG=$PKG_CONFIG 7133 # Extract the first word of "pkg-config", so it can be a program name with args. 7134set dummy pkg-config; ac_word=$2 7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7136$as_echo_n "checking for $ac_word... " >&6; } 7137if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 7138 $as_echo_n "(cached) " >&6 7139else 7140 case $ac_pt_PKG_CONFIG in 7141 [\\/]* | ?:[\\/]*) 7142 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 7143 ;; 7144 *) 7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7146for as_dir in $PATH 7147do 7148 IFS=$as_save_IFS 7149 test -z "$as_dir" && as_dir=. 7150 for ac_exec_ext in '' $ac_executable_extensions; do 7151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7152 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7154 break 2 7155 fi 7156done 7157 done 7158IFS=$as_save_IFS 7159 7160 ;; 7161esac 7162fi 7163ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 7164if test -n "$ac_pt_PKG_CONFIG"; then 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 7166$as_echo "$ac_pt_PKG_CONFIG" >&6; } 7167else 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7169$as_echo "no" >&6; } 7170fi 7171 7172 if test "x$ac_pt_PKG_CONFIG" = x; then 7173 PKG_CONFIG="" 7174 else 7175 case $cross_compiling:$ac_tool_warned in 7176yes:) 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7179ac_tool_warned=yes ;; 7180esac 7181 PKG_CONFIG=$ac_pt_PKG_CONFIG 7182 fi 7183else 7184 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7185fi 7186 7187fi 7188if test -n "$PKG_CONFIG"; then 7189 _pkg_min_version=0.9.0 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 7191$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7192 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7194$as_echo "yes" >&6; } 7195 else 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7197$as_echo "no" >&6; } 7198 PKG_CONFIG="" 7199 fi 7200fi 7201 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7203$as_echo_n "checking for ANSI C header files... " >&6; } 7204if ${ac_cv_header_stdc+:} false; then : 7205 $as_echo_n "(cached) " >&6 7206else 7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7208/* end confdefs.h. */ 7209#include <stdlib.h> 7210#include <stdarg.h> 7211#include <string.h> 7212#include <float.h> 7213 7214int 7215main () 7216{ 7217 7218 ; 7219 return 0; 7220} 7221_ACEOF 7222if ac_fn_c_try_compile "$LINENO"; then : 7223 ac_cv_header_stdc=yes 7224else 7225 ac_cv_header_stdc=no 7226fi 7227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7228 7229if test $ac_cv_header_stdc = yes; then 7230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7232/* end confdefs.h. */ 7233#include <string.h> 7234 7235_ACEOF 7236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7237 $EGREP "memchr" >/dev/null 2>&1; then : 7238 7239else 7240 ac_cv_header_stdc=no 7241fi 7242rm -f conftest* 7243 7244fi 7245 7246if test $ac_cv_header_stdc = yes; then 7247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250#include <stdlib.h> 7251 7252_ACEOF 7253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7254 $EGREP "free" >/dev/null 2>&1; then : 7255 7256else 7257 ac_cv_header_stdc=no 7258fi 7259rm -f conftest* 7260 7261fi 7262 7263if test $ac_cv_header_stdc = yes; then 7264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7265 if test "$cross_compiling" = yes; then : 7266 : 7267else 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269/* end confdefs.h. */ 7270#include <ctype.h> 7271#include <stdlib.h> 7272#if ((' ' & 0x0FF) == 0x020) 7273# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7274# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7275#else 7276# define ISLOWER(c) \ 7277 (('a' <= (c) && (c) <= 'i') \ 7278 || ('j' <= (c) && (c) <= 'r') \ 7279 || ('s' <= (c) && (c) <= 'z')) 7280# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7281#endif 7282 7283#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7284int 7285main () 7286{ 7287 int i; 7288 for (i = 0; i < 256; i++) 7289 if (XOR (islower (i), ISLOWER (i)) 7290 || toupper (i) != TOUPPER (i)) 7291 return 2; 7292 return 0; 7293} 7294_ACEOF 7295if ac_fn_c_try_run "$LINENO"; then : 7296 7297else 7298 ac_cv_header_stdc=no 7299fi 7300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7301 conftest.$ac_objext conftest.beam conftest.$ac_ext 7302fi 7303 7304fi 7305fi 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7307$as_echo "$ac_cv_header_stdc" >&6; } 7308if test $ac_cv_header_stdc = yes; then 7309 7310$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7311 7312fi 7313 7314# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7315for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7316 inttypes.h stdint.h unistd.h 7317do : 7318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7319ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7320" 7321if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7322 cat >>confdefs.h <<_ACEOF 7323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7324_ACEOF 7325 7326fi 7327 7328done 7329 7330 7331ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 7332if test "x$ac_cv_header_stdint_h" = xyes; then : 7333 7334else 7335 as_fn_error $? "stdint.h is required" "$LINENO" 5 7336fi 7337 7338 7339 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integers are two's complement" >&5 7341$as_echo_n "checking whether integers are two's complement... " >&6; } 7342if ${krb5_cv_ints_twos_compl+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347#include <limits.h> 7348 7349int 7350main () 7351{ 7352static int test_array [1 - 2 * !(/* Basic two's complement check */ 7353 ~(-1) == 0 && ~(-1L) == 0L && 7354 /* Check that values with sign bit 1 and value bits 0 are valid */ 7355 -(INT_MIN + 1) == INT_MAX && -(LONG_MIN + 1) == LONG_MAX && 7356 /* Check that unsigned-to-signed conversions preserve bit patterns */ 7357 (int)((unsigned int)INT_MAX + 1) == INT_MIN && 7358 (long)((unsigned long)LONG_MAX + 1) == LONG_MIN)]; 7359test_array [0] = 0; 7360return test_array [0]; 7361 7362 ; 7363 return 0; 7364} 7365_ACEOF 7366if ac_fn_c_try_compile "$LINENO"; then : 7367 krb5_cv_ints_twos_compl=yes 7368else 7369 krb5_cv_ints_twos_compl=no 7370fi 7371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7372fi 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_ints_twos_compl" >&5 7374$as_echo "$krb5_cv_ints_twos_compl" >&6; } 7375 7376if test "$krb5_cv_ints_twos_compl" = "no"; then 7377 as_fn_error $? "integers are not two's complement" "$LINENO" 5 7378fi 7379 7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CHAR_BIT is 8" >&5 7381$as_echo_n "checking whether CHAR_BIT is 8... " >&6; } 7382if ${krb5_cv_char_bit_8+:} false; then : 7383 $as_echo_n "(cached) " >&6 7384else 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387#include <limits.h> 7388#if CHAR_BIT != 8 7389 #error CHAR_BIT != 8 7390#endif 7391 7392_ACEOF 7393if ac_fn_c_try_cpp "$LINENO"; then : 7394 krb5_cv_char_bit_8=yes 7395else 7396 krb5_cv_char_bit_8=no 7397fi 7398rm -f conftest.err conftest.i conftest.$ac_ext 7399fi 7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_char_bit_8" >&5 7401$as_echo "$krb5_cv_char_bit_8" >&6; } 7402 7403if test "$krb5_cv_char_bit_8" = "no"; then 7404 as_fn_error $? "CHAR_BIT is not 8" "$LINENO" 5 7405fi 7406 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if va_copy is available" >&5 7408$as_echo_n "checking if va_copy is available... " >&6; } 7409if ${krb5_cv_va_copy+:} false; then : 7410 $as_echo_n "(cached) " >&6 7411else 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7413/* end confdefs.h. */ 7414 7415#include <stdarg.h> 7416void f(va_list ap) { 7417 va_list ap2; 7418 va_copy(ap2, ap); 7419 va_end(ap2); 7420} 7421va_list x; 7422int main() 7423{ 7424 f(x); 7425 return 0; 7426} 7427_ACEOF 7428if ac_fn_c_try_link "$LINENO"; then : 7429 krb5_cv_va_copy=yes 7430else 7431 krb5_cv_va_copy=no 7432fi 7433rm -f core conftest.err conftest.$ac_objext \ 7434 conftest$ac_exeext conftest.$ac_ext 7435fi 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_va_copy" >&5 7437$as_echo "$krb5_cv_va_copy" >&6; } 7438if test "$krb5_cv_va_copy" = yes; then 7439 7440$as_echo "#define HAS_VA_COPY 1" >>confdefs.h 7441 7442fi 7443 7444# Note that this isn't checking if the copied value *works*, just 7445# whether the C language constraints permit the copying. If 7446# va_list is defined as an array type, it can't be assigned. 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if va_list objects can be copied by assignment" >&5 7448$as_echo_n "checking if va_list objects can be copied by assignment... " >&6; } 7449if ${krb5_cv_va_simple_copy+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451else 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454 7455#include <stdarg.h> 7456void f(va_list va2) { 7457 va_list va1; 7458 va1 = va2; 7459} 7460_ACEOF 7461if ac_fn_c_try_compile "$LINENO"; then : 7462 krb5_cv_va_simple_copy=yes 7463else 7464 krb5_cv_va_simple_copy=no 7465fi 7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7467fi 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_va_simple_copy" >&5 7469$as_echo "$krb5_cv_va_simple_copy" >&6; } 7470if test "$krb5_cv_va_simple_copy" = yes; then 7471 7472$as_echo "#define CAN_COPY_VA_LIST 1" >>confdefs.h 7473 7474fi 7475 7476# The following lines are so that configure --help gives some global 7477# configuration options. 7478 7479 7480# Check whether --enable-static was given. 7481if test "${enable_static+set}" = set; then : 7482 enableval=$enable_static; 7483else 7484 enable_static=no 7485fi 7486 7487# Check whether --enable-shared was given. 7488if test "${enable_shared+set}" = set; then : 7489 enableval=$enable_shared; 7490else 7491 enable_shared=yes 7492fi 7493 7494 7495if test "x$enable_static" = "x$enable_shared"; then 7496 as_fn_error $? "--enable-static must be specified with --disable-shared" "$LINENO" 5 7497fi 7498 7499# Check whether --enable-rpath was given. 7500if test "${enable_rpath+set}" = set; then : 7501 enableval=$enable_rpath; 7502else 7503 enable_rpath=yes 7504fi 7505 7506 7507if test "x$enable_rpath" != xyes ; then 7508 # Unset the rpath flag values set by shlib.conf 7509 SHLIB_RPATH_FLAGS= 7510 RPATH_FLAG= 7511 PROG_RPATH_FLAGS= 7512fi 7513 7514if test "$SHLIBEXT" = ".so-nobuild"; then 7515 as_fn_error $? "Shared libraries are not yet supported on this platform." "$LINENO" 5 7516fi 7517 7518DEPLIBEXT=$SHLIBEXT 7519 7520if test "x$enable_static" = xyes; then 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: using static libraries" >&5 7522$as_echo "$as_me: using static libraries" >&6;} 7523 LIBLIST='lib$(LIBBASE)$(STLIBEXT)' 7524 LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)' 7525 PLUGIN='libkrb5_$(LIBBASE)$(STLIBEXT)' 7526 PLUGINLINK='$(TOPLIBD)/libkrb5_$(LIBBASE)$(STLIBEXT)' 7527 PLUGININST=install-static 7528 OBJLISTS=OBJS.ST 7529 LIBINSTLIST=install-static 7530 DEPLIBEXT=$STLIBEXT 7531 7532$as_echo "#define STATIC_PLUGINS 1" >>confdefs.h 7533 7534 7535 KDB5_PLUGIN_DEPLIBS='$(TOPLIBD)/libkrb5_db2$(DEPLIBEXT)' 7536 KDB5_PLUGIN_LIBS='-lkrb5_db2' 7537 if test "x$OPENLDAP_PLUGIN" = xyes; then 7538 KDB5_PLUGIN_DEBLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkrb5_ldap$(DEPLIBEXT) $(TOPLIBD)/libkdb_ldap$(DEPLIBEXT)' 7539 KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkrb5_kldap -lkdb_ldap $(LDAP_LIBS)' 7540 fi 7541 # kadm5srv_mit normally comes before kdb on the link line. Add it 7542 # again after the KDB plugins, since they depend on it for XDR stuff. 7543 KDB5_PLUGIN_DEPLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkadm5srv_mit$(DEPLIBEXT)' 7544 KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkadm5srv_mit' 7545 7546 # avoid duplicate rules generation for AIX and such 7547 SHLIBEXT=.so-nobuild 7548 SHLIBVEXT=.so.v-nobuild 7549 SHLIBSEXT=.so.s-nobuild 7550else 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: using shared libraries" >&5 7552$as_echo "$as_me: using shared libraries" >&6;} 7553 7554 # Clear some stuff in case of AIX, etc. 7555 if test "$STLIBEXT" = "$SHLIBEXT" ; then 7556 STLIBEXT=.a-nobuild 7557 fi 7558 case "$SHLIBSEXT" in 7559 .so.s-nobuild) 7560 LIBLIST='lib$(LIBBASE)$(SHLIBEXT)' 7561 LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)' 7562 LIBINSTLIST="install-shared" 7563 ;; 7564 *) 7565 LIBLIST='lib$(LIBBASE)$(SHLIBEXT) lib$(LIBBASE)$(SHLIBSEXT)' 7566 LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)' 7567 LIBINSTLIST="install-shlib-soname" 7568 ;; 7569 esac 7570 OBJLISTS="OBJS.SH" 7571 PLUGIN='$(LIBBASE)$(DYNOBJEXT)' 7572 PLUGINLINK='../$(PLUGIN)' 7573 PLUGININST=install-plugin 7574 KDB5_PLUGIN_DEPLIBS= 7575 KDB5_PLUGIN_LIBS= 7576fi 7577CC_LINK="$CC_LINK_SHARED" 7578CXX_LINK="$CXX_LINK_SHARED" 7579 7580if test -z "$LIBLIST"; then 7581 as_fn_error $? "must enable one of shared or static libraries" "$LINENO" 5 7582fi 7583 7584# Check whether to build profiled libraries. 7585# Check whether --enable-profiled was given. 7586if test "${enable_profiled+set}" = set; then : 7587 enableval=$enable_profiled; if test "$enableval" = yes; then 7588 as_fn_error $? "Sorry, profiled libraries do not work in this release." "$LINENO" 5 7589fi 7590fi 7591 7592 7593TCL_INCLUDES= 7594TCL_LIBPATH= 7595TCL_RPATH= 7596TCL_LIBS= 7597TCL_WITH= 7598tcl_dir= 7599 7600# Check whether --with-tcl was given. 7601if test "${with_tcl+set}" = set; then : 7602 withval=$with_tcl; 7603else 7604 with_tcl=try 7605fi 7606 7607if test "$with_tcl" = no ; then 7608 true 7609elif test "$with_tcl" = yes -o "$with_tcl" = try ; then 7610 tcl_dir=/usr 7611 if test ! -r /usr/lib/tclConfig.sh; then 7612 cat >> conftest <<\EOF 7613puts "tcl_dir=$tcl_library" 7614EOF 7615 if tclsh conftest >conftest.out 2>/dev/null; then 7616 if grep tcl_dir= conftest.out >/dev/null 2>&1; then 7617 t=`sed s/tcl_dir=// conftest.out` 7618 tcl_dir=$t 7619 fi 7620 fi # tclsh ran script okay 7621 rm -f conftest conftest.out 7622 fi # no /usr/lib/tclConfig.sh 7623else 7624 tcl_dir=$with_tcl 7625fi 7626if test "$with_tcl" != no ; then 7627 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5 7629$as_echo_n "checking for tclConfig.sh... " >&6; } 7630if test -r "$tcl_dir/lib/tclConfig.sh" ; then 7631 tcl_conf="$tcl_dir/lib/tclConfig.sh" 7632elif test -r "$tcl_dir/tclConfig.sh" ; then 7633 tcl_conf="$tcl_dir/tclConfig.sh" 7634elif test -r "$tcl_dir/../tclConfig.sh" ; then 7635 tcl_conf="$tcl_dir/../tclConfig.sh" 7636else 7637 tcl_conf= 7638 lib="$tcl_dir/lib" 7639 for d in "$lib" "$lib"/tcl7.[0-9] "$lib"/tcl8.[0-9] ; do 7640 if test -r "$d/tclConfig.sh" ; then 7641 tcl_conf="$tcl_conf $d/tclConfig.sh" 7642 fi 7643 done 7644 fi 7645if test -n "$tcl_conf" ; then 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_conf" >&5 7647$as_echo "$tcl_conf" >&6; } 7648else 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7650$as_echo "not found" >&6; } 7651fi 7652tcl_ok_conf= 7653tcl_vers_maj= 7654tcl_vers_min= 7655old_CPPFLAGS=$CPPFLAGS 7656old_LIBS=$LIBS 7657old_LDFLAGS=$LDFLAGS 7658if test -n "$tcl_conf" ; then 7659 for file in $tcl_conf ; do 7660 TCL_MAJOR_VERSION=x ; TCL_MINOR_VERSION=x 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl info in $file" >&5 7662$as_echo_n "checking Tcl info in $file... " >&6; } 7663 . $file 7664 v=$TCL_MAJOR_VERSION.$TCL_MINOR_VERSION 7665 if test -z "$tcl_vers_maj" \ 7666 || test "$tcl_vers_maj" -lt "$TCL_MAJOR_VERSION" \ 7667 || test "$tcl_vers_maj" = "$TCL_MAJOR_VERSION" -a "$tcl_vers_min" -lt "$TCL_MINOR_VERSION" ; then 7668 for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do 7669 if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then 7670 CPPFLAGS="$old_CPPFLAGS -I$incdir" 7671 break 7672 fi 7673 done 7674 LIBS="$old_LIBS `eval echo x $TCL_LIB_SPEC $TCL_LIBS | sed 's/^x//'`" 7675 LDFLAGS="$old_LDFLAGS $TCL_LD_FLAGS" 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678#include <tcl.h> 7679int 7680main () 7681{ 7682Tcl_CreateInterp (); 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687if ac_fn_c_try_link "$LINENO"; then : 7688 tcl_ok_conf=$file 7689 tcl_vers_maj=$TCL_MAJOR_VERSION 7690 tcl_vers_min=$TCL_MINOR_VERSION 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $v - working" >&5 7692$as_echo "$v - working" >&6; } 7693else 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $v - compilation failed" >&5 7695$as_echo "$v - compilation failed" >&6; } 7696 7697fi 7698rm -f core conftest.err conftest.$ac_objext \ 7699 conftest$ac_exeext conftest.$ac_ext 7700 else 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: older version $v" >&5 7702$as_echo "older version $v" >&6; } 7703 fi 7704 done 7705fi 7706CPPFLAGS=$old_CPPFLAGS 7707LIBS=$old_LIBS 7708LDFLAGS=$old_LDFLAGS 7709tcl_header=no 7710tcl_lib=no 7711if test -n "$tcl_ok_conf" ; then 7712 . $tcl_ok_conf 7713 TCL_INCLUDES= 7714 for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do 7715 if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then 7716 if test "$incdir" != "/usr/include" ; then 7717 TCL_INCLUDES=-I$incdir 7718 fi 7719 break 7720 fi 7721 done 7722 # Need eval because the first-level expansion could reference 7723 # variables like ${TCL_DBGX}. 7724 eval TCL_LIBS='"'$TCL_LIB_SPEC $TCL_LIBS $TCL_DL_LIBS'"' 7725 TCL_LIBPATH="-L$TCL_EXEC_PREFIX/lib" 7726 TCL_RPATH=":$TCL_EXEC_PREFIX/lib" 7727 if test "$DEPLIBEXT" != "$SHLIBEXT" && test -n "$RPATH_FLAG"; then 7728 TCL_MAYBE_RPATH='$(RPATH_FLAG)'"$TCL_EXEC_PREFIX/lib$RPATH_TAIL" 7729 else 7730 TCL_MAYBE_RPATH= 7731 fi 7732 CPPFLAGS="$old_CPPFLAGS $TCL_INCLUDES" 7733 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default" 7734if test "x$ac_cv_header_tcl_h" = xyes; then : 7735 7736$as_echo "#define HAVE_TCL_H 1" >>confdefs.h 7737 tcl_header=yes 7738fi 7739 7740 7741 if test $tcl_header=no; then 7742 ac_fn_c_check_header_mongrel "$LINENO" "tcl/tcl.h" "ac_cv_header_tcl_tcl_h" "$ac_includes_default" 7743if test "x$ac_cv_header_tcl_tcl_h" = xyes; then : 7744 7745$as_echo "#define HAVE_TCL_TCL_H 1" >>confdefs.h 7746 tcl_header=yes 7747fi 7748 7749 7750 fi 7751 CPPFLAGS="$old_CPPFLAGS" 7752 tcl_lib=yes 7753else 7754 # If we read a tclConfig.sh file, it probably set this. 7755 TCL_LIBS= 7756fi 7757 7758 7759 7760 7761 7762 7763 if test $tcl_lib = no ; then 7764 if test "$with_tcl" != try ; then 7765 7766 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying old tcl search code" >&5 7768$as_echo "$as_me: WARNING: trying old tcl search code" >&2;} 7769if test "$with_tcl" != yes -a "$with_tcl" != no; then 7770 TCL_INCLUDES=-I$with_tcl/include 7771 TCL_LIBPATH=-L$with_tcl/lib 7772 TCL_RPATH=:$with_tcl/lib 7773fi 7774if test "$with_tcl" != no ; then 7775 krb5_save_CPPFLAGS="$CPPFLAGS" 7776 krb5_save_LDFLAGS="$LDFLAGS" 7777 CPPFLAGS="$CPPFLAGS $TCL_INCLUDES" 7778 LDFLAGS="$LDFLAGS $TCL_LIBPATH" 7779 tcl_header=no 7780 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default" 7781if test "x$ac_cv_header_tcl_h" = xyes; then : 7782 7783$as_echo "#define HAVE_TCL_H 1" >>confdefs.h 7784 tcl_header=yes 7785fi 7786 7787 7788 if test $tcl_header=no; then 7789 ac_fn_c_check_header_mongrel "$LINENO" "tcl/tcl.h" "ac_cv_header_tcl_tcl_h" "$ac_includes_default" 7790if test "x$ac_cv_header_tcl_tcl_h" = xyes; then : 7791 7792$as_echo "#define HAVE_TCL_TCL_H 1" >>confdefs.h 7793 tcl_header=yes 7794fi 7795 7796 7797 fi 7798 7799 if test $tcl_header = yes ; then 7800 tcl_lib=no 7801 7802 if test $tcl_lib = no; then 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateCommand in -ltcl8.0" >&5 7804$as_echo_n "checking for Tcl_CreateCommand in -ltcl8.0... " >&6; } 7805if ${ac_cv_lib_tcl8_0_Tcl_CreateCommand+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 ac_check_lib_save_LIBS=$LIBS 7809LIBS="-ltcl8.0 -lm $DL_LIB $LIBS" 7810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811/* end confdefs.h. */ 7812 7813/* Override any GCC internal prototype to avoid an error. 7814 Use char because int might match the return type of a GCC 7815 builtin and then its argument prototype would still apply. */ 7816#ifdef __cplusplus 7817extern "C" 7818#endif 7819char Tcl_CreateCommand (); 7820int 7821main () 7822{ 7823return Tcl_CreateCommand (); 7824 ; 7825 return 0; 7826} 7827_ACEOF 7828if ac_fn_c_try_link "$LINENO"; then : 7829 ac_cv_lib_tcl8_0_Tcl_CreateCommand=yes 7830else 7831 ac_cv_lib_tcl8_0_Tcl_CreateCommand=no 7832fi 7833rm -f core conftest.err conftest.$ac_objext \ 7834 conftest$ac_exeext conftest.$ac_ext 7835LIBS=$ac_check_lib_save_LIBS 7836fi 7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl8_0_Tcl_CreateCommand" >&5 7838$as_echo "$ac_cv_lib_tcl8_0_Tcl_CreateCommand" >&6; } 7839if test "x$ac_cv_lib_tcl8_0_Tcl_CreateCommand" = xyes; then : 7840 TCL_LIBS="$TCL_LIBS -ltcl8.0 -lm $DL_LIB $LIBS" 7841 tcl_lib=yes 7842fi 7843 7844 fi 7845 if test $tcl_lib = no; then 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateCommand in -ltcl7.6" >&5 7847$as_echo_n "checking for Tcl_CreateCommand in -ltcl7.6... " >&6; } 7848if ${ac_cv_lib_tcl7_6_Tcl_CreateCommand+:} false; then : 7849 $as_echo_n "(cached) " >&6 7850else 7851 ac_check_lib_save_LIBS=$LIBS 7852LIBS="-ltcl7.6 -lm $DL_LIB $LIBS" 7853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855 7856/* Override any GCC internal prototype to avoid an error. 7857 Use char because int might match the return type of a GCC 7858 builtin and then its argument prototype would still apply. */ 7859#ifdef __cplusplus 7860extern "C" 7861#endif 7862char Tcl_CreateCommand (); 7863int 7864main () 7865{ 7866return Tcl_CreateCommand (); 7867 ; 7868 return 0; 7869} 7870_ACEOF 7871if ac_fn_c_try_link "$LINENO"; then : 7872 ac_cv_lib_tcl7_6_Tcl_CreateCommand=yes 7873else 7874 ac_cv_lib_tcl7_6_Tcl_CreateCommand=no 7875fi 7876rm -f core conftest.err conftest.$ac_objext \ 7877 conftest$ac_exeext conftest.$ac_ext 7878LIBS=$ac_check_lib_save_LIBS 7879fi 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl7_6_Tcl_CreateCommand" >&5 7881$as_echo "$ac_cv_lib_tcl7_6_Tcl_CreateCommand" >&6; } 7882if test "x$ac_cv_lib_tcl7_6_Tcl_CreateCommand" = xyes; then : 7883 TCL_LIBS="$TCL_LIBS -ltcl7.6 -lm $DL_LIB $LIBS" 7884 tcl_lib=yes 7885fi 7886 7887 fi 7888 if test $tcl_lib = no; then 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateCommand in -ltcl7.5" >&5 7890$as_echo_n "checking for Tcl_CreateCommand in -ltcl7.5... " >&6; } 7891if ${ac_cv_lib_tcl7_5_Tcl_CreateCommand+:} false; then : 7892 $as_echo_n "(cached) " >&6 7893else 7894 ac_check_lib_save_LIBS=$LIBS 7895LIBS="-ltcl7.5 -lm $DL_LIB $LIBS" 7896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7897/* end confdefs.h. */ 7898 7899/* Override any GCC internal prototype to avoid an error. 7900 Use char because int might match the return type of a GCC 7901 builtin and then its argument prototype would still apply. */ 7902#ifdef __cplusplus 7903extern "C" 7904#endif 7905char Tcl_CreateCommand (); 7906int 7907main () 7908{ 7909return Tcl_CreateCommand (); 7910 ; 7911 return 0; 7912} 7913_ACEOF 7914if ac_fn_c_try_link "$LINENO"; then : 7915 ac_cv_lib_tcl7_5_Tcl_CreateCommand=yes 7916else 7917 ac_cv_lib_tcl7_5_Tcl_CreateCommand=no 7918fi 7919rm -f core conftest.err conftest.$ac_objext \ 7920 conftest$ac_exeext conftest.$ac_ext 7921LIBS=$ac_check_lib_save_LIBS 7922fi 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl7_5_Tcl_CreateCommand" >&5 7924$as_echo "$ac_cv_lib_tcl7_5_Tcl_CreateCommand" >&6; } 7925if test "x$ac_cv_lib_tcl7_5_Tcl_CreateCommand" = xyes; then : 7926 TCL_LIBS="$TCL_LIBS -ltcl7.5 -lm $DL_LIB $LIBS" 7927 tcl_lib=yes 7928fi 7929 7930 7931 fi 7932 if test $tcl_lib = no ; then 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateCommand in -ltcl" >&5 7934$as_echo_n "checking for Tcl_CreateCommand in -ltcl... " >&6; } 7935if ${ac_cv_lib_tcl_Tcl_CreateCommand+:} false; then : 7936 $as_echo_n "(cached) " >&6 7937else 7938 ac_check_lib_save_LIBS=$LIBS 7939LIBS="-ltcl -lm $DL_LIB $LIBS" 7940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942 7943/* Override any GCC internal prototype to avoid an error. 7944 Use char because int might match the return type of a GCC 7945 builtin and then its argument prototype would still apply. */ 7946#ifdef __cplusplus 7947extern "C" 7948#endif 7949char Tcl_CreateCommand (); 7950int 7951main () 7952{ 7953return Tcl_CreateCommand (); 7954 ; 7955 return 0; 7956} 7957_ACEOF 7958if ac_fn_c_try_link "$LINENO"; then : 7959 ac_cv_lib_tcl_Tcl_CreateCommand=yes 7960else 7961 ac_cv_lib_tcl_Tcl_CreateCommand=no 7962fi 7963rm -f core conftest.err conftest.$ac_objext \ 7964 conftest$ac_exeext conftest.$ac_ext 7965LIBS=$ac_check_lib_save_LIBS 7966fi 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_Tcl_CreateCommand" >&5 7968$as_echo "$ac_cv_lib_tcl_Tcl_CreateCommand" >&6; } 7969if test "x$ac_cv_lib_tcl_Tcl_CreateCommand" = xyes; then : 7970 TCL_LIBS="$TCL_LIBS -ltcl -lm $DL_LIB $LIBS" 7971 tcl_lib=yes 7972fi 7973 7974 7975 fi 7976 if test $tcl_lib = no ; then 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"tcl.h found but not library\"" >&5 7978$as_echo "$as_me: WARNING: \"tcl.h found but not library\"" >&2;} 7979 fi 7980 else 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find Tcl which is needed for the kadm5 tests" >&5 7982$as_echo "$as_me: WARNING: Could not find Tcl which is needed for the kadm5 tests" >&2;} 7983 TCL_LIBS= 7984 fi 7985 CPPFLAGS="$krb5_save_CPPFLAGS" 7986 LDFLAGS="$krb5_save_LDFLAGS" 7987 7988 7989 7990 7991else 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not looking for Tcl library\"" >&5 7993$as_echo "\"Not looking for Tcl library\"" >&6; } 7994fi 7995 7996 else 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find Tcl which is needed for some tests" >&5 7998$as_echo "$as_me: WARNING: Could not find Tcl which is needed for some tests" >&2;} 7999 fi 8000 fi 8001fi 8002# If "yes" or pathname, error out if not found. 8003if test "$with_tcl" != no -a "$with_tcl" != try ; then 8004 if test "$tcl_header $tcl_lib" != "yes yes" ; then 8005 as_fn_error $? "Could not find Tcl" "$LINENO" 5 8006 fi 8007fi 8008 8009# Check whether --enable-athena was given. 8010if test "${enable_athena+set}" = set; then : 8011 enableval=$enable_athena; 8012fi 8013 8014 8015# Begin autoconf tests for the Makefiles generated out of the top-level 8016# configure.in... 8017 8018 8019 8020 8021 8022 8023 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8025$as_echo_n "checking whether ln -s works... " >&6; } 8026LN_S=$as_ln_s 8027if test "$LN_S" = "ln -s"; then 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8029$as_echo "yes" >&6; } 8030else 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8032$as_echo "no, using $LN_S" >&6; } 8033fi 8034 8035if test -n "$ac_tool_prefix"; then 8036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8037set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8039$as_echo_n "checking for $ac_word... " >&6; } 8040if ${ac_cv_prog_RANLIB+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 if test -n "$RANLIB"; then 8044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8045else 8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8047for as_dir in $PATH 8048do 8049 IFS=$as_save_IFS 8050 test -z "$as_dir" && as_dir=. 8051 for ac_exec_ext in '' $ac_executable_extensions; do 8052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8055 break 2 8056 fi 8057done 8058 done 8059IFS=$as_save_IFS 8060 8061fi 8062fi 8063RANLIB=$ac_cv_prog_RANLIB 8064if test -n "$RANLIB"; then 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8066$as_echo "$RANLIB" >&6; } 8067else 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8069$as_echo "no" >&6; } 8070fi 8071 8072 8073fi 8074if test -z "$ac_cv_prog_RANLIB"; then 8075 ac_ct_RANLIB=$RANLIB 8076 # Extract the first word of "ranlib", so it can be a program name with args. 8077set dummy ranlib; ac_word=$2 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8079$as_echo_n "checking for $ac_word... " >&6; } 8080if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 if test -n "$ac_ct_RANLIB"; then 8084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8085else 8086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8087for as_dir in $PATH 8088do 8089 IFS=$as_save_IFS 8090 test -z "$as_dir" && as_dir=. 8091 for ac_exec_ext in '' $ac_executable_extensions; do 8092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8093 ac_cv_prog_ac_ct_RANLIB="ranlib" 8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8095 break 2 8096 fi 8097done 8098 done 8099IFS=$as_save_IFS 8100 8101fi 8102fi 8103ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8104if test -n "$ac_ct_RANLIB"; then 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8106$as_echo "$ac_ct_RANLIB" >&6; } 8107else 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8109$as_echo "no" >&6; } 8110fi 8111 8112 if test "x$ac_ct_RANLIB" = x; then 8113 RANLIB=":" 8114 else 8115 case $cross_compiling:$ac_tool_warned in 8116yes:) 8117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8119ac_tool_warned=yes ;; 8120esac 8121 RANLIB=$ac_ct_RANLIB 8122 fi 8123else 8124 RANLIB="$ac_cv_prog_RANLIB" 8125fi 8126 8127# Find a good install program. We prefer a C program (faster), 8128# so one script is as good as another. But avoid the broken or 8129# incompatible versions: 8130# SysV /etc/install, /usr/sbin/install 8131# SunOS /usr/etc/install 8132# IRIX /sbin/install 8133# AIX /bin/install 8134# AmigaOS /C/install, which installs bootblocks on floppy discs 8135# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 8136# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8137# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8138# OS/2's system install, which has a completely different semantic 8139# ./install, which can be erroneously created by make from ./install.sh. 8140# Reject install programs that cannot install multiple files. 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 8142$as_echo_n "checking for a BSD-compatible install... " >&6; } 8143if test -z "$INSTALL"; then 8144if ${ac_cv_path_install+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8148for as_dir in $PATH 8149do 8150 IFS=$as_save_IFS 8151 test -z "$as_dir" && as_dir=. 8152 # Account for people who put trailing slashes in PATH elements. 8153case $as_dir/ in #(( 8154 ./ | .// | /[cC]/* | \ 8155 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 8156 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 8157 /usr/ucb/* ) ;; 8158 *) 8159 # OSF1 and SCO ODT 3.0 have their own names for install. 8160 # Don't use installbsd from OSF since it installs stuff as root 8161 # by default. 8162 for ac_prog in ginstall scoinst install; do 8163 for ac_exec_ext in '' $ac_executable_extensions; do 8164 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 8165 if test $ac_prog = install && 8166 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8167 # AIX install. It has an incompatible calling convention. 8168 : 8169 elif test $ac_prog = install && 8170 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8171 # program-specific install script used by HP pwplus--don't use. 8172 : 8173 else 8174 rm -rf conftest.one conftest.two conftest.dir 8175 echo one > conftest.one 8176 echo two > conftest.two 8177 mkdir conftest.dir 8178 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 8179 test -s conftest.one && test -s conftest.two && 8180 test -s conftest.dir/conftest.one && 8181 test -s conftest.dir/conftest.two 8182 then 8183 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 8184 break 3 8185 fi 8186 fi 8187 fi 8188 done 8189 done 8190 ;; 8191esac 8192 8193 done 8194IFS=$as_save_IFS 8195 8196rm -rf conftest.one conftest.two conftest.dir 8197 8198fi 8199 if test "${ac_cv_path_install+set}" = set; then 8200 INSTALL=$ac_cv_path_install 8201 else 8202 # As a last resort, use the slow shell script. Don't cache a 8203 # value for INSTALL within a source directory, because that will 8204 # break other packages using the cache if that directory is 8205 # removed, or if the value is a relative name. 8206 INSTALL=$ac_install_sh 8207 fi 8208fi 8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 8210$as_echo "$INSTALL" >&6; } 8211 8212# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8213# It thinks the first close brace ends the variable substitution. 8214test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8215 8216test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 8217 8218test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8219 8220if test -n "$ac_tool_prefix"; then 8221 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8222set dummy ${ac_tool_prefix}ar; ac_word=$2 8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8224$as_echo_n "checking for $ac_word... " >&6; } 8225if ${ac_cv_prog_AR+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227else 8228 if test -n "$AR"; then 8229 ac_cv_prog_AR="$AR" # Let the user override the test. 8230else 8231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8232for as_dir in $PATH 8233do 8234 IFS=$as_save_IFS 8235 test -z "$as_dir" && as_dir=. 8236 for ac_exec_ext in '' $ac_executable_extensions; do 8237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8238 ac_cv_prog_AR="${ac_tool_prefix}ar" 8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8240 break 2 8241 fi 8242done 8243 done 8244IFS=$as_save_IFS 8245 8246fi 8247fi 8248AR=$ac_cv_prog_AR 8249if test -n "$AR"; then 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8251$as_echo "$AR" >&6; } 8252else 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8254$as_echo "no" >&6; } 8255fi 8256 8257 8258fi 8259if test -z "$ac_cv_prog_AR"; then 8260 ac_ct_AR=$AR 8261 # Extract the first word of "ar", so it can be a program name with args. 8262set dummy ar; ac_word=$2 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8264$as_echo_n "checking for $ac_word... " >&6; } 8265if ${ac_cv_prog_ac_ct_AR+:} false; then : 8266 $as_echo_n "(cached) " >&6 8267else 8268 if test -n "$ac_ct_AR"; then 8269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8270else 8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8272for as_dir in $PATH 8273do 8274 IFS=$as_save_IFS 8275 test -z "$as_dir" && as_dir=. 8276 for ac_exec_ext in '' $ac_executable_extensions; do 8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8278 ac_cv_prog_ac_ct_AR="ar" 8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8280 break 2 8281 fi 8282done 8283 done 8284IFS=$as_save_IFS 8285 8286fi 8287fi 8288ac_ct_AR=$ac_cv_prog_ac_ct_AR 8289if test -n "$ac_ct_AR"; then 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8291$as_echo "$ac_ct_AR" >&6; } 8292else 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8294$as_echo "no" >&6; } 8295fi 8296 8297 if test "x$ac_ct_AR" = x; then 8298 AR="false" 8299 else 8300 case $cross_compiling:$ac_tool_warned in 8301yes:) 8302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8304ac_tool_warned=yes ;; 8305esac 8306 AR=$ac_ct_AR 8307 fi 8308else 8309 AR="$ac_cv_prog_AR" 8310fi 8311 8312if test "$AR" = "false"; then 8313 as_fn_error $? "ar not found in PATH" "$LINENO" 5 8314fi 8315# Extract the first word of "perl", so it can be a program name with args. 8316set dummy perl; ac_word=$2 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8318$as_echo_n "checking for $ac_word... " >&6; } 8319if ${ac_cv_prog_PERL+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 if test -n "$PERL"; then 8323 ac_cv_prog_PERL="$PERL" # Let the user override the test. 8324else 8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8326for as_dir in $PATH 8327do 8328 IFS=$as_save_IFS 8329 test -z "$as_dir" && as_dir=. 8330 for ac_exec_ext in '' $ac_executable_extensions; do 8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8332 ac_cv_prog_PERL="perl" 8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8334 break 2 8335 fi 8336done 8337 done 8338IFS=$as_save_IFS 8339 8340 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false" 8341fi 8342fi 8343PERL=$ac_cv_prog_PERL 8344if test -n "$PERL"; then 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 8346$as_echo "$PERL" >&6; } 8347else 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8349$as_echo "no" >&6; } 8350fi 8351 8352 8353if test "$ac_cv_prog_PERL" = "false"; then 8354 as_fn_error $? "Perl is now required for Kerberos builds." "$LINENO" 5 8355fi 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working regcomp" >&5 8383$as_echo_n "checking for working regcomp... " >&6; } 8384if ${ac_cv_func_regcomp+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 8388if test "$cross_compiling" = yes; then : 8389 as_fn_error $? "Cannot test regcomp when cross compiling" "$LINENO" 5 8390else 8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8392/* end confdefs.h. */ 8393 8394#include <sys/types.h> 8395#include <regex.h> 8396regex_t x; regmatch_t m; 8397int main() { return regcomp(&x,"pat.*",0) || regexec(&x,"pattern",1,&m,0); } 8398 8399_ACEOF 8400if ac_fn_c_try_run "$LINENO"; then : 8401 ac_cv_func_regcomp=yes 8402else 8403 ac_cv_func_regcomp=no 8404fi 8405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8406 conftest.$ac_objext conftest.beam conftest.$ac_ext 8407fi 8408 8409fi 8410 8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_regcomp" >&5 8412$as_echo "$ac_cv_func_regcomp" >&6; } 8413test $ac_cv_func_regcomp = yes && 8414$as_echo "#define HAVE_REGCOMP 1" >>confdefs.h 8415 8416if test $ac_cv_func_regcomp = no; then 8417 save_LIBS="$LIBS" 8418 LIBS=-lgen 8419 for ac_func in compile step 8420do : 8421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8422ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8423if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8424 cat >>confdefs.h <<_ACEOF 8425#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8426_ACEOF 8427 8428fi 8429done 8430 8431 LIBS="$save_LIBS" 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile in -lgen" >&5 8433$as_echo_n "checking for compile in -lgen... " >&6; } 8434if ${ac_cv_lib_gen_compile+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 ac_check_lib_save_LIBS=$LIBS 8438LIBS="-lgen $LIBS" 8439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8440/* end confdefs.h. */ 8441 8442/* Override any GCC internal prototype to avoid an error. 8443 Use char because int might match the return type of a GCC 8444 builtin and then its argument prototype would still apply. */ 8445#ifdef __cplusplus 8446extern "C" 8447#endif 8448char compile (); 8449int 8450main () 8451{ 8452return compile (); 8453 ; 8454 return 0; 8455} 8456_ACEOF 8457if ac_fn_c_try_link "$LINENO"; then : 8458 ac_cv_lib_gen_compile=yes 8459else 8460 ac_cv_lib_gen_compile=no 8461fi 8462rm -f core conftest.err conftest.$ac_objext \ 8463 conftest$ac_exeext conftest.$ac_ext 8464LIBS=$ac_check_lib_save_LIBS 8465fi 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_compile" >&5 8467$as_echo "$ac_cv_lib_gen_compile" >&6; } 8468if test "x$ac_cv_lib_gen_compile" = xyes; then : 8469 GEN_LIB=-lgen 8470else 8471 GEN_LIB= 8472fi 8473 8474 8475fi 8476 8477 8478 8479 8480 8481 8482# for kprop 8483ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 8484if test "x$ac_cv_type_mode_t" = xyes; then : 8485 8486else 8487 8488cat >>confdefs.h <<_ACEOF 8489#define mode_t int 8490_ACEOF 8491 8492fi 8493 8494 8495 8496 8497 8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype provided" >&5 8499$as_echo_n "checking if daemon needs a prototype provided... " >&6; } 8500if ${krb5_cv_func_daemon_noproto+:} false; then : 8501 $as_echo_n "(cached) " >&6 8502else 8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8504/* end confdefs.h. */ 8505#ifdef HAVE_UNISTD_H 8506#include <unistd.h> 8507#endif 8508int 8509main () 8510{ 8511#undef daemon 8512struct k5foo {int foo; } xx; 8513extern int daemon (struct k5foo*); 8514daemon(&xx); 8515 8516 ; 8517 return 0; 8518} 8519_ACEOF 8520if ac_fn_c_try_compile "$LINENO"; then : 8521 krb5_cv_func_daemon_noproto=yes 8522else 8523 krb5_cv_func_daemon_noproto=no 8524fi 8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8526fi 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_daemon_noproto" >&5 8528$as_echo "$krb5_cv_func_daemon_noproto" >&6; } 8529if test $krb5_cv_func_daemon_noproto = yes; then 8530 8531$as_echo "#define NEED_DAEMON_PROTO 1" >>confdefs.h 8532 8533fi 8534 8535 8536 8537sock_set=no 8538for sock_arg1 in "struct sockaddr *" "void *" 8539do 8540 for sock_arg2 in "size_t *" "int *" "socklen_t *" 8541 do 8542 if test $sock_set = no; then 8543 8544krb5_lib_var=`echo "$sock_arg1 $sock_arg2" | sed 'y% ./+-*%___p_p%'` 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname() takes arguments $sock_arg1 and $sock_arg2" >&5 8546$as_echo_n "checking if getsockname() takes arguments $sock_arg1 and $sock_arg2... " >&6; } 8547if eval \${krb5_cv_getsockname_proto_$krb5_lib_var+:} false; then : 8548 $as_echo_n "(cached) " >&6 8549else 8550 8551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553#include <sys/types.h> 8554#include <sys/socket.h> 8555extern int getsockname(int, $sock_arg1, $sock_arg2); 8556 8557int 8558main () 8559{ 8560 8561 ; 8562 return 0; 8563} 8564_ACEOF 8565if ac_fn_c_try_compile "$LINENO"; then : 8566 eval "krb5_cv_getsockname_proto_$krb5_lib_var=yes" 8567else 8568 eval "krb5_cv_getsockname_proto_$krb5_lib_var=no" 8569fi 8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8571fi 8572 8573if eval "test \"`echo '$krb5_cv_getsockname_proto_'$krb5_lib_var`\" = yes"; then 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8575$as_echo "yes" >&6; } 8576 sock_set=yes; res1="$sock_arg1"; res2="$sock_arg2" 8577else 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8579$as_echo "no" >&6; } 8580fi 8581 8582 fi 8583 done 8584done 8585if test "$sock_set" = no; then 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: assuming struct sockaddr and socklen_t for getsockname args" >&5 8587$as_echo "$as_me: assuming struct sockaddr and socklen_t for getsockname args" >&6;} 8588 res1="struct sockaddr *" 8589 res2="socklen_t *" 8590fi 8591res1=`echo "$res1" | tr -d '*' | sed -e 's/ *$//'` 8592res2=`echo "$res2" | tr -d '*' | sed -e 's/ *$//'` 8593 8594cat >>confdefs.h <<_ACEOF 8595#define GETSOCKNAME_ARG3_TYPE $res2 8596_ACEOF 8597 8598 8599 8600 8601$as_echo "#define GETPEERNAME_ARG3_TYPE GETSOCKNAME_ARG3_TYPE" >>confdefs.h 8602 8603 8604LIBUTIL= 8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lutil" >&5 8606$as_echo_n "checking for main in -lutil... " >&6; } 8607if ${ac_cv_lib_util_main+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 ac_check_lib_save_LIBS=$LIBS 8611LIBS="-lutil $LIBS" 8612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613/* end confdefs.h. */ 8614 8615 8616int 8617main () 8618{ 8619return main (); 8620 ; 8621 return 0; 8622} 8623_ACEOF 8624if ac_fn_c_try_link "$LINENO"; then : 8625 ac_cv_lib_util_main=yes 8626else 8627 ac_cv_lib_util_main=no 8628fi 8629rm -f core conftest.err conftest.$ac_objext \ 8630 conftest$ac_exeext conftest.$ac_ext 8631LIBS=$ac_check_lib_save_LIBS 8632fi 8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_main" >&5 8634$as_echo "$ac_cv_lib_util_main" >&6; } 8635if test "x$ac_cv_lib_util_main" = xyes; then : 8636 8637$as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h 8638 8639LIBUTIL=-lutil 8640 8641fi 8642 8643 8644 8645# Determine if NLS is desired and supported. 8646po= 8647# Check whether --enable-nls was given. 8648if test "${enable_nls+set}" = set; then : 8649 enableval=$enable_nls; 8650else 8651 enable_nls=check 8652fi 8653 8654if test "$enable_nls" != no; then 8655 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 8656if test "x$ac_cv_header_libintl_h" = xyes; then : 8657 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgettext" >&5 8659$as_echo_n "checking for library containing dgettext... " >&6; } 8660if ${ac_cv_search_dgettext+:} false; then : 8661 $as_echo_n "(cached) " >&6 8662else 8663 ac_func_search_save_LIBS=$LIBS 8664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8665/* end confdefs.h. */ 8666 8667/* Override any GCC internal prototype to avoid an error. 8668 Use char because int might match the return type of a GCC 8669 builtin and then its argument prototype would still apply. */ 8670#ifdef __cplusplus 8671extern "C" 8672#endif 8673char dgettext (); 8674int 8675main () 8676{ 8677return dgettext (); 8678 ; 8679 return 0; 8680} 8681_ACEOF 8682for ac_lib in '' intl; do 8683 if test -z "$ac_lib"; then 8684 ac_res="none required" 8685 else 8686 ac_res=-l$ac_lib 8687 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8688 fi 8689 if ac_fn_c_try_link "$LINENO"; then : 8690 ac_cv_search_dgettext=$ac_res 8691fi 8692rm -f core conftest.err conftest.$ac_objext \ 8693 conftest$ac_exeext 8694 if ${ac_cv_search_dgettext+:} false; then : 8695 break 8696fi 8697done 8698if ${ac_cv_search_dgettext+:} false; then : 8699 8700else 8701 ac_cv_search_dgettext=no 8702fi 8703rm conftest.$ac_ext 8704LIBS=$ac_func_search_save_LIBS 8705fi 8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgettext" >&5 8707$as_echo "$ac_cv_search_dgettext" >&6; } 8708ac_res=$ac_cv_search_dgettext 8709if test "$ac_res" != no; then : 8710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8711 8712 8713$as_echo "#define ENABLE_NLS 1" >>confdefs.h 8714 8715 nls_enabled=yes 8716fi 8717 8718fi 8719 8720 8721 8722 # Extract the first word of "msgfmt", so it can be a program name with args. 8723set dummy msgfmt; ac_word=$2 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8725$as_echo_n "checking for $ac_word... " >&6; } 8726if ${ac_cv_prog_MSGFMT+:} false; then : 8727 $as_echo_n "(cached) " >&6 8728else 8729 if test -n "$MSGFMT"; then 8730 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 8731else 8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8733for as_dir in $PATH 8734do 8735 IFS=$as_save_IFS 8736 test -z "$as_dir" && as_dir=. 8737 for ac_exec_ext in '' $ac_executable_extensions; do 8738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8739 ac_cv_prog_MSGFMT="msgfmt" 8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8741 break 2 8742 fi 8743done 8744 done 8745IFS=$as_save_IFS 8746 8747fi 8748fi 8749MSGFMT=$ac_cv_prog_MSGFMT 8750if test -n "$MSGFMT"; then 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 8752$as_echo "$MSGFMT" >&6; } 8753else 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8755$as_echo "no" >&6; } 8756fi 8757 8758 8759 if test x"$MSGFMT" != x; then 8760 ac_config_files="$ac_config_files po/Makefile:$srcdir/./config/pre.in:po/Makefile.in:po/deps:$srcdir/./config/post.in" 8761 8762 8763 8764 po=po 8765 fi 8766 8767 # Error out if --enable-nls was explicitly requested but can't be enabled. 8768 if test "$enable_nls" = yes; then 8769 if test "$nls_enabled" != yes -o "x$po" = x; then 8770 as_fn_error $? "NLS support requested but cannot be built" "$LINENO" 5 8771 fi 8772 fi 8773fi 8774 8775 8776# for kdc 8777for ac_header in sys/sockio.h ifaddrs.h unistd.h fnmatch.h 8778do : 8779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8780ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8781if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8782 cat >>confdefs.h <<_ACEOF 8783#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8784_ACEOF 8785 8786fi 8787 8788done 8789 8790for ac_func in vsprintf vasprintf vsnprintf strlcpy fnmatch secure_getenv 8791do : 8792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8793ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8794if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8795 cat >>confdefs.h <<_ACEOF 8796#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8797_ACEOF 8798 8799fi 8800done 8801 8802 8803EXTRA_SUPPORT_SYMS= 8804ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 8805if test "x$ac_cv_func_strlcpy" = xyes; then : 8806 STRLCPY_ST_OBJ= 8807STRLCPY_OBJ= 8808else 8809 STRLCPY_ST_OBJ=strlcpy.o 8810STRLCPY_OBJ='$(OUTPRE)strlcpy.$(OBJEXT)' 8811EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_strlcpy krb5int_strlcat" 8812fi 8813 8814 8815 8816 8817ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 8818if test "x$ac_cv_func_getopt" = xyes; then : 8819 GETOPT_ST_OBJ= 8820GETOPT_OBJ= 8821 8822$as_echo "#define HAVE_GETOPT 1" >>confdefs.h 8823 8824else 8825 GETOPT_ST_OBJ='getopt.o' 8826GETOPT_OBJ='$(OUTPRE)getopt.$(OBJEXT)' 8827EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_optind k5_optarg k5_opterr k5_optopt k5_getopt" 8828fi 8829 8830 8831 8832 8833ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 8834if test "x$ac_cv_func_getopt_long" = xyes; then : 8835 GETOPT_LONG_ST_OBJ= 8836GETOPT_LONG_OBJ= 8837 8838$as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 8839 8840else 8841 GETOPT_LONG_ST_OBJ='getopt_long.o' 8842GETOPT_LONG_OBJ='$(OUTPRE)getopt_long.$(OBJEXT)' 8843EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_getopt_long" 8844fi 8845 8846 8847 8848 8849ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" 8850if test "x$ac_cv_func_fnmatch" = xyes; then : 8851 FNMATCH_ST_OBJ= 8852FNMATCH_OBJ= 8853else 8854 FNMATCH_ST_OBJ=fnmatch.o 8855FNMATCH_OBJ='$(OUTPRE)fnmatch.$(OBJEXT)' 8856EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_fnmatch" 8857fi 8858 8859 8860 8861 8862ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 8863if test "x$ac_cv_func_vasprintf" = xyes; then : 8864 PRINTF_ST_OBJ= 8865PRINTF_OBJ= 8866else 8867 PRINTF_ST_OBJ=printf.o 8868PRINTF_OBJ='$(OUTPRE)printf.$(OBJEXT)' 8869EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_asprintf krb5int_vasprintf" 8870fi 8871 8872 8873 8874 8875if test "x$ac_cv_func_vasprintf" = xyes; then 8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype provided" >&5 8877$as_echo_n "checking if vasprintf needs a prototype provided... " >&6; } 8878if ${krb5_cv_func_vasprintf_noproto+:} false; then : 8879 $as_echo_n "(cached) " >&6 8880else 8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8882/* end confdefs.h. */ 8883#include <stdarg.h> 8884#include <stdio.h> 8885 8886int 8887main () 8888{ 8889#undef vasprintf 8890struct k5foo {int foo; } xx; 8891extern int vasprintf (struct k5foo*); 8892vasprintf(&xx); 8893 8894 ; 8895 return 0; 8896} 8897_ACEOF 8898if ac_fn_c_try_compile "$LINENO"; then : 8899 krb5_cv_func_vasprintf_noproto=yes 8900else 8901 krb5_cv_func_vasprintf_noproto=no 8902fi 8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8904fi 8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_vasprintf_noproto" >&5 8906$as_echo "$krb5_cv_func_vasprintf_noproto" >&6; } 8907if test $krb5_cv_func_vasprintf_noproto = yes; then 8908 8909$as_echo "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h 8910 8911fi 8912fi 8913 8914 8915 8916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if swab needs a prototype provided" >&5 8917$as_echo_n "checking if swab needs a prototype provided... " >&6; } 8918if ${krb5_cv_func_swab_noproto+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8922/* end confdefs.h. */ 8923#include <string.h> 8924#ifdef HAVE_UNISTD_H 8925#include <unistd.h> 8926#endif 8927/* Solaris 8 declares swab in stdlib.h. */ 8928#include <stdlib.h> 8929 8930int 8931main () 8932{ 8933#undef swab 8934struct k5foo {int foo; } xx; 8935extern int swab (struct k5foo*); 8936swab(&xx); 8937 8938 ; 8939 return 0; 8940} 8941_ACEOF 8942if ac_fn_c_try_compile "$LINENO"; then : 8943 krb5_cv_func_swab_noproto=yes 8944else 8945 krb5_cv_func_swab_noproto=no 8946fi 8947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8948fi 8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_swab_noproto" >&5 8950$as_echo "$krb5_cv_func_swab_noproto" >&6; } 8951if test $krb5_cv_func_swab_noproto = yes; then 8952 8953$as_echo "#define NEED_SWAB_PROTO 1" >>confdefs.h 8954 8955fi 8956 8957 8958 8959ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 8960if test "x$ac_cv_func_secure_getenv" = xyes; then : 8961 SECURE_GETENV_ST_OBJ= 8962SECURE_GETENV_OBJ= 8963SECURE_GETENV_INIT= 8964else 8965 SECURE_GETENV_ST_OBJ=secure_getenv.o 8966SECURE_GETENV_OBJ='$(OUTPRE)secure_getenv.$(OBJEXT)' 8967SECURE_GETENV_INIT=k5_secure_getenv_init 8968EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_secure_getenv" 8969fi 8970 8971 8972 8973 8974 8975for ac_prog in gawk mawk nawk awk 8976do 8977 # Extract the first word of "$ac_prog", so it can be a program name with args. 8978set dummy $ac_prog; ac_word=$2 8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8980$as_echo_n "checking for $ac_word... " >&6; } 8981if ${ac_cv_prog_AWK+:} false; then : 8982 $as_echo_n "(cached) " >&6 8983else 8984 if test -n "$AWK"; then 8985 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8986else 8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8988for as_dir in $PATH 8989do 8990 IFS=$as_save_IFS 8991 test -z "$as_dir" && as_dir=. 8992 for ac_exec_ext in '' $ac_executable_extensions; do 8993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8994 ac_cv_prog_AWK="$ac_prog" 8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8996 break 2 8997 fi 8998done 8999 done 9000IFS=$as_save_IFS 9001 9002fi 9003fi 9004AWK=$ac_cv_prog_AWK 9005if test -n "$AWK"; then 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9007$as_echo "$AWK" >&6; } 9008else 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9010$as_echo "no" >&6; } 9011fi 9012 9013 9014 test -n "$AWK" && break 9015done 9016 9017 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 9018#include <sys/socket.h> 9019" 9020if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 9021 9022$as_echo "#define HAVE_SA_LEN 1" >>confdefs.h 9023 9024 9025fi 9026 9027 9028for ac_header in sys/types.h sys/socket.h netinet/in.h netdb.h 9029do : 9030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9031ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9032if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9033 cat >>confdefs.h <<_ACEOF 9034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9035_ACEOF 9036 9037fi 9038 9039done 9040 9041for ac_func in inet_ntop inet_pton getnameinfo 9042do : 9043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9044ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9045if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9046 cat >>confdefs.h <<_ACEOF 9047#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9048_ACEOF 9049 9050fi 9051done 9052 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 9054$as_echo_n "checking for getaddrinfo... " >&6; } 9055if ${ac_cv_func_getaddrinfo+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057else 9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9059/* end confdefs.h. */ 9060#ifdef HAVE_NETDB_H 9061#include <netdb.h> 9062#endif 9063int 9064main () 9065{ 9066 9067struct addrinfo *ai; 9068getaddrinfo("kerberos.mit.edu", "echo", 0, &ai); 9069 9070 ; 9071 return 0; 9072} 9073_ACEOF 9074if ac_fn_c_try_link "$LINENO"; then : 9075 ac_cv_func_getaddrinfo=yes 9076else 9077 ac_cv_func_getaddrinfo=no 9078fi 9079rm -f core conftest.err conftest.$ac_objext \ 9080 conftest$ac_exeext conftest.$ac_ext 9081fi 9082 9083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 9084$as_echo "$ac_cv_func_getaddrinfo" >&6; } 9085if test $ac_cv_func_getaddrinfo = yes; then 9086 9087$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 9088 9089fi 9090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support without -DINET6" >&5 9091$as_echo_n "checking for IPv6 compile-time support without -DINET6... " >&6; } 9092if ${krb5_cv_inet6+:} false; then : 9093 $as_echo_n "(cached) " >&6 9094else 9095 9096if test "$ac_cv_func_inet_ntop" != "yes" ; then 9097 krb5_cv_inet6=no 9098else 9099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9100/* end confdefs.h. */ 9101 9102#ifdef HAVE_SYS_TYPES_H 9103#include <sys/types.h> 9104#endif 9105#include <sys/socket.h> 9106#include <netinet/in.h> 9107#include <netdb.h> 9108 9109int 9110main () 9111{ 9112 9113 struct sockaddr_in6 in; 9114 AF_INET6; 9115 IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr); 9116 9117 ; 9118 return 0; 9119} 9120_ACEOF 9121if ac_fn_c_try_compile "$LINENO"; then : 9122 krb5_cv_inet6=yes 9123else 9124 krb5_cv_inet6=no 9125fi 9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9127fi 9128 9129fi 9130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6" >&5 9131$as_echo "$krb5_cv_inet6" >&6; } 9132if test "$krb5_cv_inet6" = no && test "$ac_cv_func_inet_ntop" = yes; then 9133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support with -DINET6" >&5 9134$as_echo_n "checking for IPv6 compile-time support with -DINET6... " >&6; } 9135if ${krb5_cv_inet6_with_dinet6+:} false; then : 9136 $as_echo_n "(cached) " >&6 9137else 9138 9139old_CC="$CC" 9140CC="$CC -DINET6" 9141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9142/* end confdefs.h. */ 9143 9144#ifdef HAVE_SYS_TYPES_H 9145#include <sys/types.h> 9146#endif 9147#include <sys/socket.h> 9148#include <netinet/in.h> 9149#include <netdb.h> 9150 9151int 9152main () 9153{ 9154 9155 struct sockaddr_in6 in; 9156 AF_INET6; 9157 IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr); 9158 9159 ; 9160 return 0; 9161} 9162_ACEOF 9163if ac_fn_c_try_compile "$LINENO"; then : 9164 krb5_cv_inet6_with_dinet6=yes 9165else 9166 krb5_cv_inet6_with_dinet6=no 9167fi 9168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9169CC="$old_CC" 9170fi 9171 9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6_with_dinet6" >&5 9173$as_echo "$krb5_cv_inet6_with_dinet6" >&6; } 9174fi 9175if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes; then 9176 if test "$krb5_cv_inet6_with_dinet6" = yes; then 9177 9178$as_echo "#define INET6 1" >>confdefs.h 9179 9180 fi 9181fi 9182 9183 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 9184#include <sys/socket.h> 9185" 9186if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 9187 9188$as_echo "#define HAVE_SA_LEN 1" >>confdefs.h 9189 9190 9191fi 9192 9193 9194ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 9195if test "x$ac_cv_func_sigprocmask" = xyes; then : 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t and POSIX_SIGNALS" >&5 9197$as_echo_n "checking for sigset_t and POSIX_SIGNALS... " >&6; } 9198if ${krb5_cv_type_sigset_t+:} false; then : 9199 $as_echo_n "(cached) " >&6 9200else 9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9202/* end confdefs.h. */ 9203#include <signal.h> 9204int 9205main () 9206{ 9207sigset_t x 9208 ; 9209 return 0; 9210} 9211_ACEOF 9212if ac_fn_c_try_compile "$LINENO"; then : 9213 krb5_cv_type_sigset_t=yes 9214else 9215 krb5_cv_type_sigset_t=no 9216fi 9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9218fi 9219 9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_sigset_t" >&5 9221$as_echo "$krb5_cv_type_sigset_t" >&6; } 9222if test $krb5_cv_type_sigset_t = yes; then 9223 9224$as_echo "#define POSIX_SIGNALS 1" >>confdefs.h 9225 9226fi 9227 9228fi 9229 9230 9231# --with-vague-errors disables useful error messages. 9232 9233 9234# Check whether --with-vague-errors was given. 9235if test "${with_vague_errors+set}" = set; then : 9236 withval=$with_vague_errors; 9237else 9238 withval=no 9239fi 9240 9241if test "$withval" = yes; then 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: Supplying vague error messages to KDC clients" >&5 9243$as_echo "$as_me: Supplying vague error messages to KDC clients" >&6;} 9244 9245$as_echo "#define KRBCONF_VAGUE_ERRORS 1" >>confdefs.h 9246 9247fi 9248 9249# Check which (if any) audit plugin to build 9250audit_plugin="" 9251# Check whether --enable-audit-plugin was given. 9252if test "${enable_audit_plugin+set}" = set; then : 9253 enableval=$enable_audit_plugin; 9254else 9255 enableval=no 9256fi 9257 9258if test "$enableval" != no; then 9259 case "$enableval" in 9260 simple) 9261 # if audit_log_user_message is found, we assume 9262 # that audit_open and audit_close are also defined. 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_message in -laudit" >&5 9264$as_echo_n "checking for audit_log_user_message in -laudit... " >&6; } 9265if ${ac_cv_lib_audit_audit_log_user_message+:} false; then : 9266 $as_echo_n "(cached) " >&6 9267else 9268 ac_check_lib_save_LIBS=$LIBS 9269LIBS="-laudit $LIBS" 9270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9271/* end confdefs.h. */ 9272 9273/* Override any GCC internal prototype to avoid an error. 9274 Use char because int might match the return type of a GCC 9275 builtin and then its argument prototype would still apply. */ 9276#ifdef __cplusplus 9277extern "C" 9278#endif 9279char audit_log_user_message (); 9280int 9281main () 9282{ 9283return audit_log_user_message (); 9284 ; 9285 return 0; 9286} 9287_ACEOF 9288if ac_fn_c_try_link "$LINENO"; then : 9289 ac_cv_lib_audit_audit_log_user_message=yes 9290else 9291 ac_cv_lib_audit_audit_log_user_message=no 9292fi 9293rm -f core conftest.err conftest.$ac_objext \ 9294 conftest$ac_exeext conftest.$ac_ext 9295LIBS=$ac_check_lib_save_LIBS 9296fi 9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_message" >&5 9298$as_echo "$ac_cv_lib_audit_audit_log_user_message" >&6; } 9299if test "x$ac_cv_lib_audit_audit_log_user_message" = xyes; then : 9300 AUDIT_IMPL_LIBS=-laudit 9301 ac_config_files="$ac_config_files plugins/audit/simple/Makefile:$srcdir/./config/pre.in:plugins/audit/simple/Makefile.in:plugins/audit/simple/deps:$srcdir/./config/post.in" 9302 9303 9304 9305 audit_plugin=plugins/audit/simple 9306else 9307 as_fn_error $? "libaudit not found or undefined symbol audit_log_user_message" "$LINENO" 5 9308fi 9309 9310 ;; 9311 *) 9312 as_fn_error $? "Unknown audit plugin implementation $enableval." "$LINENO" 5 9313 ;; 9314 esac 9315fi 9316 9317 9318 9319# WITH_CRYPTO_IMPL 9320 9321CRYPTO_IMPL="builtin" 9322 9323# Check whether --with-crypto-impl was given. 9324if test "${with_crypto_impl+set}" = set; then : 9325 withval=$with_crypto_impl; CRYPTO_IMPL=$withval 9326{ $as_echo "$as_me:${as_lineno-$LINENO}: k5crypto will use '$withval'" >&5 9327$as_echo "$as_me: k5crypto will use '$withval'" >&6;} 9328 9329else 9330 withval=builtin 9331fi 9332 9333case "$withval" in 9334builtin) 9335 ;; 9336openssl) 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS7_get_signer_info in -lcrypto" >&5 9338$as_echo_n "checking for PKCS7_get_signer_info in -lcrypto... " >&6; } 9339if ${ac_cv_lib_crypto_PKCS7_get_signer_info+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 ac_check_lib_save_LIBS=$LIBS 9343LIBS="-lcrypto $LIBS" 9344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9345/* end confdefs.h. */ 9346 9347/* Override any GCC internal prototype to avoid an error. 9348 Use char because int might match the return type of a GCC 9349 builtin and then its argument prototype would still apply. */ 9350#ifdef __cplusplus 9351extern "C" 9352#endif 9353char PKCS7_get_signer_info (); 9354int 9355main () 9356{ 9357return PKCS7_get_signer_info (); 9358 ; 9359 return 0; 9360} 9361_ACEOF 9362if ac_fn_c_try_link "$LINENO"; then : 9363 ac_cv_lib_crypto_PKCS7_get_signer_info=yes 9364else 9365 ac_cv_lib_crypto_PKCS7_get_signer_info=no 9366fi 9367rm -f core conftest.err conftest.$ac_objext \ 9368 conftest$ac_exeext conftest.$ac_ext 9369LIBS=$ac_check_lib_save_LIBS 9370fi 9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_PKCS7_get_signer_info" >&5 9372$as_echo "$ac_cv_lib_crypto_PKCS7_get_signer_info" >&6; } 9373if test "x$ac_cv_lib_crypto_PKCS7_get_signer_info" = xyes; then : 9374 cat >>confdefs.h <<_ACEOF 9375#define HAVE_LIBCRYPTO 1 9376_ACEOF 9377 9378 LIBS="-lcrypto $LIBS" 9379 9380fi 9381 9382 ;; 9383*) 9384 as_fn_error $? "Unknown crypto implementation $withval" "$LINENO" 5 9385 ;; 9386esac 9387ac_config_commands="$ac_config_commands CRYPTO_IMPL" 9388 9389 9390 9391 9392 9393 9394# Check whether --with-prng-alg was given. 9395if test "${with_prng_alg+set}" = set; then : 9396 withval=$with_prng_alg; PRNG_ALG=$withval 9397{ $as_echo "$as_me:${as_lineno-$LINENO}: k5crypto will use '$withval'" >&5 9398$as_echo "$as_me: k5crypto will use '$withval'" >&6;} 9399 9400else 9401 PRNG_ALG=fortuna 9402fi 9403 9404ac_config_commands="$ac_config_commands PRNG_ALG" 9405 9406 9407if test "$PRNG_ALG" = fortuna; then 9408 9409$as_echo "#define FORTUNA 1" >>confdefs.h 9410 9411fi 9412 9413# WITH_TLS_IMPL 9414 9415 9416# Check whether --with-tls-impl was given. 9417if test "${with_tls_impl+set}" = set; then : 9418 withval=$with_tls_impl; TLS_IMPL=$withval 9419else 9420 TLS_IMPL=auto 9421fi 9422 9423case "$TLS_IMPL" in 9424openssl|auto) 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5 9426$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; } 9427if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 ac_check_lib_save_LIBS=$LIBS 9431LIBS="-lssl -lcrypto $LIBS" 9432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433/* end confdefs.h. */ 9434 9435/* Override any GCC internal prototype to avoid an error. 9436 Use char because int might match the return type of a GCC 9437 builtin and then its argument prototype would still apply. */ 9438#ifdef __cplusplus 9439extern "C" 9440#endif 9441char SSL_CTX_new (); 9442int 9443main () 9444{ 9445return SSL_CTX_new (); 9446 ; 9447 return 0; 9448} 9449_ACEOF 9450if ac_fn_c_try_link "$LINENO"; then : 9451 ac_cv_lib_ssl_SSL_CTX_new=yes 9452else 9453 ac_cv_lib_ssl_SSL_CTX_new=no 9454fi 9455rm -f core conftest.err conftest.$ac_objext \ 9456 conftest$ac_exeext conftest.$ac_ext 9457LIBS=$ac_check_lib_save_LIBS 9458fi 9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5 9460$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; } 9461if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then : 9462 have_lib_ssl=true 9463else 9464 have_lib_ssl=false 9465fi 9466 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 9468$as_echo_n "checking for OpenSSL... " >&6; } 9469 if test x$have_lib_ssl = xtrue ; then 9470 9471$as_echo "#define TLS_IMPL_OPENSSL 1" >>confdefs.h 9472 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9474$as_echo "yes" >&6; } 9475 TLS_IMPL_LIBS="-lssl -lcrypto" 9476 TLS_IMPL=openssl 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: TLS module will use OpenSSL" >&5 9478$as_echo "$as_me: TLS module will use OpenSSL" >&6;} 9479 else 9480 if test "$TLS_IMPL" = openssl ; then 9481 as_fn_error $? "OpenSSL not found!" "$LINENO" 5 9482 else 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found!" >&5 9484$as_echo "$as_me: WARNING: OpenSSL not found!" >&2;} 9485 fi 9486 TLS_IMPL=no 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: building without TLS support" >&5 9488$as_echo "$as_me: building without TLS support" >&6;} 9489 fi 9490 ;; 9491no) 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: building without TLS support" >&5 9493$as_echo "$as_me: building without TLS support" >&6;} 9494 ;; 9495*) 9496 as_fn_error $? "Unsupported TLS implementation $withval" "$LINENO" 5 9497 ;; 9498esac 9499 9500if test "$TLS_IMPL" = no; then 9501 9502$as_echo "#define TLS_IMPL_NONE 1" >>confdefs.h 9503 9504fi 9505 9506 9507 9508 9509 9510 9511# Check whether --with-keyutils was given. 9512if test "${with_keyutils+set}" = set; then : 9513 withval=$with_keyutils; 9514else 9515 with_keyutils=check 9516fi 9517 9518if test "$with_keyutils" != no; then 9519 have_keyutils=false 9520 for ac_header in keyutils.h 9521do : 9522 ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default" 9523if test "x$ac_cv_header_keyutils_h" = xyes; then : 9524 cat >>confdefs.h <<_ACEOF 9525#define HAVE_KEYUTILS_H 1 9526_ACEOF 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_key in -lkeyutils" >&5 9528$as_echo_n "checking for add_key in -lkeyutils... " >&6; } 9529if ${ac_cv_lib_keyutils_add_key+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 ac_check_lib_save_LIBS=$LIBS 9533LIBS="-lkeyutils $LIBS" 9534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9535/* end confdefs.h. */ 9536 9537/* Override any GCC internal prototype to avoid an error. 9538 Use char because int might match the return type of a GCC 9539 builtin and then its argument prototype would still apply. */ 9540#ifdef __cplusplus 9541extern "C" 9542#endif 9543char add_key (); 9544int 9545main () 9546{ 9547return add_key (); 9548 ; 9549 return 0; 9550} 9551_ACEOF 9552if ac_fn_c_try_link "$LINENO"; then : 9553 ac_cv_lib_keyutils_add_key=yes 9554else 9555 ac_cv_lib_keyutils_add_key=no 9556fi 9557rm -f core conftest.err conftest.$ac_objext \ 9558 conftest$ac_exeext conftest.$ac_ext 9559LIBS=$ac_check_lib_save_LIBS 9560fi 9561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_add_key" >&5 9562$as_echo "$ac_cv_lib_keyutils_add_key" >&6; } 9563if test "x$ac_cv_lib_keyutils_add_key" = xyes; then : 9564 have_keyutils=true 9565fi 9566 9567fi 9568 9569done 9570 9571 if test "$have_keyutils" = true; then 9572 9573$as_echo "#define USE_KEYRING_CCACHE 1" >>confdefs.h 9574 9575 LIBS="-lkeyutils $LIBS" 9576 # If libkeyutils supports persistent keyrings, use them. 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_get_persistent in -lkeyutils" >&5 9578$as_echo_n "checking for keyctl_get_persistent in -lkeyutils... " >&6; } 9579if ${ac_cv_lib_keyutils_keyctl_get_persistent+:} false; then : 9580 $as_echo_n "(cached) " >&6 9581else 9582 ac_check_lib_save_LIBS=$LIBS 9583LIBS="-lkeyutils $LIBS" 9584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9585/* end confdefs.h. */ 9586 9587/* Override any GCC internal prototype to avoid an error. 9588 Use char because int might match the return type of a GCC 9589 builtin and then its argument prototype would still apply. */ 9590#ifdef __cplusplus 9591extern "C" 9592#endif 9593char keyctl_get_persistent (); 9594int 9595main () 9596{ 9597return keyctl_get_persistent (); 9598 ; 9599 return 0; 9600} 9601_ACEOF 9602if ac_fn_c_try_link "$LINENO"; then : 9603 ac_cv_lib_keyutils_keyctl_get_persistent=yes 9604else 9605 ac_cv_lib_keyutils_keyctl_get_persistent=no 9606fi 9607rm -f core conftest.err conftest.$ac_objext \ 9608 conftest$ac_exeext conftest.$ac_ext 9609LIBS=$ac_check_lib_save_LIBS 9610fi 9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_get_persistent" >&5 9612$as_echo "$ac_cv_lib_keyutils_keyctl_get_persistent" >&6; } 9613if test "x$ac_cv_lib_keyutils_keyctl_get_persistent" = xyes; then : 9614 9615$as_echo "#define HAVE_PERSISTENT_KEYRING 1" >>confdefs.h 9616 9617 9618fi 9619 9620 elif test "$with_keyutils" = yes; then 9621 as_fn_error $? "libkeyutils not found" "$LINENO" 5 9622 fi 9623fi 9624 9625# The SPAKE preauth plugin currently supports edwards25519 natively, 9626# and can support three NIST groups using OpenSSL. 9627HAVE_SPAKE_OPENSSL=no 9628 9629# Check whether --with-spake-openssl was given. 9630if test "${with_spake_openssl+set}" = set; then : 9631 withval=$with_spake_openssl; 9632else 9633 withval=auto 9634fi 9635 9636if test "$withval" = auto -o "$withval" = yes; then 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EC_POINT_new in -lcrypto" >&5 9638$as_echo_n "checking for EC_POINT_new in -lcrypto... " >&6; } 9639if ${ac_cv_lib_crypto_EC_POINT_new+:} false; then : 9640 $as_echo_n "(cached) " >&6 9641else 9642 ac_check_lib_save_LIBS=$LIBS 9643LIBS="-lcrypto $LIBS" 9644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9645/* end confdefs.h. */ 9646 9647/* Override any GCC internal prototype to avoid an error. 9648 Use char because int might match the return type of a GCC 9649 builtin and then its argument prototype would still apply. */ 9650#ifdef __cplusplus 9651extern "C" 9652#endif 9653char EC_POINT_new (); 9654int 9655main () 9656{ 9657return EC_POINT_new (); 9658 ; 9659 return 0; 9660} 9661_ACEOF 9662if ac_fn_c_try_link "$LINENO"; then : 9663 ac_cv_lib_crypto_EC_POINT_new=yes 9664else 9665 ac_cv_lib_crypto_EC_POINT_new=no 9666fi 9667rm -f core conftest.err conftest.$ac_objext \ 9668 conftest$ac_exeext conftest.$ac_ext 9669LIBS=$ac_check_lib_save_LIBS 9670fi 9671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EC_POINT_new" >&5 9672$as_echo "$ac_cv_lib_crypto_EC_POINT_new" >&6; } 9673if test "x$ac_cv_lib_crypto_EC_POINT_new" = xyes; then : 9674 have_crypto=true 9675else 9676 have_crypto=false 9677fi 9678 9679 if test "$have_crypto" = true; then 9680 9681$as_echo "#define SPAKE_OPENSSL 1" >>confdefs.h 9682 9683 SPAKE_OPENSSL_LIBS=-lcrypto 9684 HAVE_SPAKE_OPENSSL=yes 9685 elif test "$withval" = yes; then 9686 as_fn_error $? "OpenSSL libcrypto not found" "$LINENO" 5 9687 fi 9688fi 9689 9690 9691 9692# Check whether --enable-aesni was given. 9693if test "${enable_aesni+set}" = set; then : 9694 enableval=$enable_aesni; 9695else 9696 enable_aesni=check 9697fi 9698 9699if test "$CRYPTO_IMPL" = builtin -a "x$enable_aesni" != xno; then 9700 case "$host" in 9701 i686-*) 9702 aesni_obj=iaesx86.o 9703 aesni_machine=x86 9704 ;; 9705 x86_64-*) 9706 aesni_obj=iaesx64.o 9707 aesni_machine=amd64 9708 ;; 9709 esac 9710 case "$host" in 9711 *-*-linux* | *-*-gnu* | *-*-*bsd* | *-*-solaris*) 9712 # All Unix-like platforms need -D__linux__ for iaesx64.s to 9713 # use the System V x86-64 calling convention. 9714 aesni_flags="-D__linux__ -f elf -m $aesni_machine" 9715 ;; 9716 esac 9717 if test "x$aesni_obj" != x && test "x$aesni_flags" != x; then 9718 # Extract the first word of "yasm", so it can be a program name with args. 9719set dummy yasm; ac_word=$2 9720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9721$as_echo_n "checking for $ac_word... " >&6; } 9722if ${ac_cv_prog_YASM+:} false; then : 9723 $as_echo_n "(cached) " >&6 9724else 9725 if test -n "$YASM"; then 9726 ac_cv_prog_YASM="$YASM" # Let the user override the test. 9727else 9728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9729for as_dir in $PATH 9730do 9731 IFS=$as_save_IFS 9732 test -z "$as_dir" && as_dir=. 9733 for ac_exec_ext in '' $ac_executable_extensions; do 9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9735 ac_cv_prog_YASM="yasm" 9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9737 break 2 9738 fi 9739done 9740 done 9741IFS=$as_save_IFS 9742 9743fi 9744fi 9745YASM=$ac_cv_prog_YASM 9746if test -n "$YASM"; then 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YASM" >&5 9748$as_echo "$YASM" >&6; } 9749else 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9751$as_echo "no" >&6; } 9752fi 9753 9754 9755 for ac_header in cpuid.h 9756do : 9757 ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default" 9758if test "x$ac_cv_header_cpuid_h" = xyes; then : 9759 cat >>confdefs.h <<_ACEOF 9760#define HAVE_CPUID_H 1 9761_ACEOF 9762 9763fi 9764 9765done 9766 9767 if test x"$YASM" != x -a "x$ac_cv_header_cpuid_h" = xyes; then 9768 AESNI_OBJ=$aesni_obj 9769 AESNI_FLAGS=$aesni_flags 9770 9771$as_echo "#define AESNI 1" >>confdefs.h 9772 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with AES-NI support" >&5 9774$as_echo "$as_me: Building with AES-NI support" >&6;} 9775 fi 9776 fi 9777 if test "x$enable_aesni" = xyes -a "x$AESNI_OBJ" = x; then 9778 as_fn_error $? "AES-NI support requested but cannot be built" "$LINENO" 5 9779 fi 9780fi 9781 9782 9783 9784# Check whether --enable-kdc-lookaside-cache was given. 9785if test "${enable_kdc_lookaside_cache+set}" = set; then : 9786 enableval=$enable_kdc_lookaside_cache; 9787else 9788 enableval=yes 9789fi 9790 9791if test "$enableval" = no ; then 9792 9793$as_echo "#define NOCACHE 1" >>confdefs.h 9794 9795fi 9796KRB5_RUN_ENV="$RUN_ENV" 9797KRB5_RUN_VARS="$RUN_VARS" 9798 9799 9800 9801# asan is a gcc and clang facility to instrument the code with memory 9802# error checking. To use it, we compile C and C++ source files with 9803# -fsanitize=address, and set ASAN=yes to suppress the undefined 9804# symbols check when building shared libraries. 9805# Check whether --enable-asan was given. 9806if test "${enable_asan+set}" = set; then : 9807 enableval=$enable_asan; 9808else 9809 enable_asan=no 9810fi 9811 9812if test "$enable_asan" != no; then 9813 if test "$enable_asan" = yes; then 9814 enable_asan=address 9815 fi 9816 ASAN_FLAGS="$DEFS -fsanitize=$enable_asan" 9817 ASAN=yes 9818 UNDEF_CHECK= 9819else 9820 ASAN_FLAGS= 9821 ASAN=no 9822fi 9823 9824 9825 9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 9827$as_echo_n "checking return type of signal handlers... " >&6; } 9828if ${ac_cv_type_signal+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9832/* end confdefs.h. */ 9833#include <sys/types.h> 9834#include <signal.h> 9835 9836int 9837main () 9838{ 9839return *(signal (0, 0)) (0) == 1; 9840 ; 9841 return 0; 9842} 9843_ACEOF 9844if ac_fn_c_try_compile "$LINENO"; then : 9845 ac_cv_type_signal=int 9846else 9847 ac_cv_type_signal=void 9848fi 9849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9850fi 9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 9852$as_echo "$ac_cv_type_signal" >&6; } 9853 9854cat >>confdefs.h <<_ACEOF 9855#define RETSIGTYPE $ac_cv_type_signal 9856_ACEOF 9857 9858 9859 9860# from old include/configure.in 9861 9862 9863ac_config_headers="$ac_config_headers include/autoconf.h" 9864 9865for ac_prog in flex lex 9866do 9867 # Extract the first word of "$ac_prog", so it can be a program name with args. 9868set dummy $ac_prog; ac_word=$2 9869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9870$as_echo_n "checking for $ac_word... " >&6; } 9871if ${ac_cv_prog_LEX+:} false; then : 9872 $as_echo_n "(cached) " >&6 9873else 9874 if test -n "$LEX"; then 9875 ac_cv_prog_LEX="$LEX" # Let the user override the test. 9876else 9877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9878for as_dir in $PATH 9879do 9880 IFS=$as_save_IFS 9881 test -z "$as_dir" && as_dir=. 9882 for ac_exec_ext in '' $ac_executable_extensions; do 9883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9884 ac_cv_prog_LEX="$ac_prog" 9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9886 break 2 9887 fi 9888done 9889 done 9890IFS=$as_save_IFS 9891 9892fi 9893fi 9894LEX=$ac_cv_prog_LEX 9895if test -n "$LEX"; then 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 9897$as_echo "$LEX" >&6; } 9898else 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9900$as_echo "no" >&6; } 9901fi 9902 9903 9904 test -n "$LEX" && break 9905done 9906test -n "$LEX" || LEX=":" 9907 9908if test "x$LEX" != "x:"; then 9909 cat >conftest.l <<_ACEOF 9910%% 9911a { ECHO; } 9912b { REJECT; } 9913c { yymore (); } 9914d { yyless (1); } 9915e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 9916 yyless ((input () != 0)); } 9917f { unput (yytext[0]); } 9918. { BEGIN INITIAL; } 9919%% 9920#ifdef YYTEXT_POINTER 9921extern char *yytext; 9922#endif 9923int 9924main (void) 9925{ 9926 return ! yylex () + ! yywrap (); 9927} 9928_ACEOF 9929{ { ac_try="$LEX conftest.l" 9930case "(($ac_try" in 9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9932 *) ac_try_echo=$ac_try;; 9933esac 9934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9935$as_echo "$ac_try_echo"; } >&5 9936 (eval "$LEX conftest.l") 2>&5 9937 ac_status=$? 9938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9939 test $ac_status = 0; } 9940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 9941$as_echo_n "checking lex output file root... " >&6; } 9942if ${ac_cv_prog_lex_root+:} false; then : 9943 $as_echo_n "(cached) " >&6 9944else 9945 9946if test -f lex.yy.c; then 9947 ac_cv_prog_lex_root=lex.yy 9948elif test -f lexyy.c; then 9949 ac_cv_prog_lex_root=lexyy 9950else 9951 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 9952fi 9953fi 9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 9955$as_echo "$ac_cv_prog_lex_root" >&6; } 9956LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 9957 9958if test -z "${LEXLIB+set}"; then 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 9960$as_echo_n "checking lex library... " >&6; } 9961if ${ac_cv_lib_lex+:} false; then : 9962 $as_echo_n "(cached) " >&6 9963else 9964 9965 ac_save_LIBS=$LIBS 9966 ac_cv_lib_lex='none needed' 9967 for ac_lib in '' -lfl -ll; do 9968 LIBS="$ac_lib $ac_save_LIBS" 9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9970/* end confdefs.h. */ 9971`cat $LEX_OUTPUT_ROOT.c` 9972_ACEOF 9973if ac_fn_c_try_link "$LINENO"; then : 9974 ac_cv_lib_lex=$ac_lib 9975fi 9976rm -f core conftest.err conftest.$ac_objext \ 9977 conftest$ac_exeext conftest.$ac_ext 9978 test "$ac_cv_lib_lex" != 'none needed' && break 9979 done 9980 LIBS=$ac_save_LIBS 9981 9982fi 9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 9984$as_echo "$ac_cv_lib_lex" >&6; } 9985 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 9986fi 9987 9988 9989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 9990$as_echo_n "checking whether yytext is a pointer... " >&6; } 9991if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 9992 $as_echo_n "(cached) " >&6 9993else 9994 # POSIX says lex can declare yytext either as a pointer or an array; the 9995# default is implementation-dependent. Figure out which it is, since 9996# not all implementations provide the %pointer and %array declarations. 9997ac_cv_prog_lex_yytext_pointer=no 9998ac_save_LIBS=$LIBS 9999LIBS="$LEXLIB $ac_save_LIBS" 10000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10001/* end confdefs.h. */ 10002 10003 #define YYTEXT_POINTER 1 10004`cat $LEX_OUTPUT_ROOT.c` 10005_ACEOF 10006if ac_fn_c_try_link "$LINENO"; then : 10007 ac_cv_prog_lex_yytext_pointer=yes 10008fi 10009rm -f core conftest.err conftest.$ac_objext \ 10010 conftest$ac_exeext conftest.$ac_ext 10011LIBS=$ac_save_LIBS 10012 10013fi 10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 10015$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 10016if test $ac_cv_prog_lex_yytext_pointer = yes; then 10017 10018$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 10019 10020fi 10021rm -f conftest.l $LEX_OUTPUT_ROOT.c 10022 10023fi 10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10025$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10026if ${ac_cv_c_const+:} false; then : 10027 $as_echo_n "(cached) " >&6 10028else 10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031 10032int 10033main () 10034{ 10035 10036#ifndef __cplusplus 10037 /* Ultrix mips cc rejects this sort of thing. */ 10038 typedef int charset[2]; 10039 const charset cs = { 0, 0 }; 10040 /* SunOS 4.1.1 cc rejects this. */ 10041 char const *const *pcpcc; 10042 char **ppc; 10043 /* NEC SVR4.0.2 mips cc rejects this. */ 10044 struct point {int x, y;}; 10045 static struct point const zero = {0,0}; 10046 /* AIX XL C 1.02.0.0 rejects this. 10047 It does not let you subtract one const X* pointer from another in 10048 an arm of an if-expression whose if-part is not a constant 10049 expression */ 10050 const char *g = "string"; 10051 pcpcc = &g + (g ? g-g : 0); 10052 /* HPUX 7.0 cc rejects these. */ 10053 ++pcpcc; 10054 ppc = (char**) pcpcc; 10055 pcpcc = (char const *const *) ppc; 10056 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10057 char tx; 10058 char *t = &tx; 10059 char const *s = 0 ? (char *) 0 : (char const *) 0; 10060 10061 *t++ = 0; 10062 if (s) return 0; 10063 } 10064 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10065 int x[] = {25, 17}; 10066 const int *foo = &x[0]; 10067 ++foo; 10068 } 10069 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10070 typedef const int *iptr; 10071 iptr p = 0; 10072 ++p; 10073 } 10074 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 10075 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10076 struct s { int j; const int *ap[3]; } bx; 10077 struct s *b = &bx; b->j = 5; 10078 } 10079 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10080 const int foo = 10; 10081 if (!foo) return 0; 10082 } 10083 return !cs[0] && !zero.x; 10084#endif 10085 10086 ; 10087 return 0; 10088} 10089_ACEOF 10090if ac_fn_c_try_compile "$LINENO"; then : 10091 ac_cv_c_const=yes 10092else 10093 ac_cv_c_const=no 10094fi 10095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10096fi 10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10098$as_echo "$ac_cv_c_const" >&6; } 10099if test $ac_cv_c_const = no; then 10100 10101$as_echo "#define const /**/" >>confdefs.h 10102 10103fi 10104 10105ac_header_dirent=no 10106for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10107 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10109$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10110if eval \${$as_ac_Header+:} false; then : 10111 $as_echo_n "(cached) " >&6 10112else 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115#include <sys/types.h> 10116#include <$ac_hdr> 10117 10118int 10119main () 10120{ 10121if ((DIR *) 0) 10122return 0; 10123 ; 10124 return 0; 10125} 10126_ACEOF 10127if ac_fn_c_try_compile "$LINENO"; then : 10128 eval "$as_ac_Header=yes" 10129else 10130 eval "$as_ac_Header=no" 10131fi 10132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10133fi 10134eval ac_res=\$$as_ac_Header 10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10136$as_echo "$ac_res" >&6; } 10137if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10138 cat >>confdefs.h <<_ACEOF 10139#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10140_ACEOF 10141 10142ac_header_dirent=$ac_hdr; break 10143fi 10144 10145done 10146# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10147if test $ac_header_dirent = dirent.h; then 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10149$as_echo_n "checking for library containing opendir... " >&6; } 10150if ${ac_cv_search_opendir+:} false; then : 10151 $as_echo_n "(cached) " >&6 10152else 10153 ac_func_search_save_LIBS=$LIBS 10154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10155/* end confdefs.h. */ 10156 10157/* Override any GCC internal prototype to avoid an error. 10158 Use char because int might match the return type of a GCC 10159 builtin and then its argument prototype would still apply. */ 10160#ifdef __cplusplus 10161extern "C" 10162#endif 10163char opendir (); 10164int 10165main () 10166{ 10167return opendir (); 10168 ; 10169 return 0; 10170} 10171_ACEOF 10172for ac_lib in '' dir; do 10173 if test -z "$ac_lib"; then 10174 ac_res="none required" 10175 else 10176 ac_res=-l$ac_lib 10177 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10178 fi 10179 if ac_fn_c_try_link "$LINENO"; then : 10180 ac_cv_search_opendir=$ac_res 10181fi 10182rm -f core conftest.err conftest.$ac_objext \ 10183 conftest$ac_exeext 10184 if ${ac_cv_search_opendir+:} false; then : 10185 break 10186fi 10187done 10188if ${ac_cv_search_opendir+:} false; then : 10189 10190else 10191 ac_cv_search_opendir=no 10192fi 10193rm conftest.$ac_ext 10194LIBS=$ac_func_search_save_LIBS 10195fi 10196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10197$as_echo "$ac_cv_search_opendir" >&6; } 10198ac_res=$ac_cv_search_opendir 10199if test "$ac_res" != no; then : 10200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10201 10202fi 10203 10204else 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10206$as_echo_n "checking for library containing opendir... " >&6; } 10207if ${ac_cv_search_opendir+:} false; then : 10208 $as_echo_n "(cached) " >&6 10209else 10210 ac_func_search_save_LIBS=$LIBS 10211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10212/* end confdefs.h. */ 10213 10214/* Override any GCC internal prototype to avoid an error. 10215 Use char because int might match the return type of a GCC 10216 builtin and then its argument prototype would still apply. */ 10217#ifdef __cplusplus 10218extern "C" 10219#endif 10220char opendir (); 10221int 10222main () 10223{ 10224return opendir (); 10225 ; 10226 return 0; 10227} 10228_ACEOF 10229for ac_lib in '' x; do 10230 if test -z "$ac_lib"; then 10231 ac_res="none required" 10232 else 10233 ac_res=-l$ac_lib 10234 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10235 fi 10236 if ac_fn_c_try_link "$LINENO"; then : 10237 ac_cv_search_opendir=$ac_res 10238fi 10239rm -f core conftest.err conftest.$ac_objext \ 10240 conftest$ac_exeext 10241 if ${ac_cv_search_opendir+:} false; then : 10242 break 10243fi 10244done 10245if ${ac_cv_search_opendir+:} false; then : 10246 10247else 10248 ac_cv_search_opendir=no 10249fi 10250rm conftest.$ac_ext 10251LIBS=$ac_func_search_save_LIBS 10252fi 10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10254$as_echo "$ac_cv_search_opendir" >&6; } 10255ac_res=$ac_cv_search_opendir 10256if test "$ac_res" != no; then : 10257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10258 10259fi 10260 10261fi 10262 10263ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 10264if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 10265 ac_have_decl=1 10266else 10267 ac_have_decl=0 10268fi 10269 10270cat >>confdefs.h <<_ACEOF 10271#define HAVE_DECL_STRERROR_R $ac_have_decl 10272_ACEOF 10273 10274for ac_func in strerror_r 10275do : 10276 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 10277if test "x$ac_cv_func_strerror_r" = xyes; then : 10278 cat >>confdefs.h <<_ACEOF 10279#define HAVE_STRERROR_R 1 10280_ACEOF 10281 10282fi 10283done 10284 10285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 10286$as_echo_n "checking whether strerror_r returns char *... " >&6; } 10287if ${ac_cv_func_strerror_r_char_p+:} false; then : 10288 $as_echo_n "(cached) " >&6 10289else 10290 10291 ac_cv_func_strerror_r_char_p=no 10292 if test $ac_cv_have_decl_strerror_r = yes; then 10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10294/* end confdefs.h. */ 10295$ac_includes_default 10296int 10297main () 10298{ 10299 10300 char buf[100]; 10301 char x = *strerror_r (0, buf, sizeof buf); 10302 char *p = strerror_r (0, buf, sizeof buf); 10303 return !p || x; 10304 10305 ; 10306 return 0; 10307} 10308_ACEOF 10309if ac_fn_c_try_compile "$LINENO"; then : 10310 ac_cv_func_strerror_r_char_p=yes 10311fi 10312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10313 else 10314 # strerror_r is not declared. Choose between 10315 # systems that have relatively inaccessible declarations for the 10316 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 10317 # former has a strerror_r that returns char*, while the latter 10318 # has a strerror_r that returns `int'. 10319 # This test should segfault on the DEC system. 10320 if test "$cross_compiling" = yes; then : 10321 : 10322else 10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10324/* end confdefs.h. */ 10325$ac_includes_default 10326 extern char *strerror_r (); 10327int 10328main () 10329{ 10330char buf[100]; 10331 char x = *strerror_r (0, buf, sizeof buf); 10332 return ! isalpha (x); 10333 ; 10334 return 0; 10335} 10336_ACEOF 10337if ac_fn_c_try_run "$LINENO"; then : 10338 ac_cv_func_strerror_r_char_p=yes 10339fi 10340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10341 conftest.$ac_objext conftest.beam conftest.$ac_ext 10342fi 10343 10344 fi 10345 10346fi 10347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 10348$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 10349if test $ac_cv_func_strerror_r_char_p = yes; then 10350 10351$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 10352 10353fi 10354 10355for ac_func in strdup setvbuf seteuid setresuid setreuid setegid setresgid setregid setsid flock fchmod chmod strptime geteuid setenv unsetenv getenv gmtime_r localtime_r bswap16 bswap64 mkstemp getusershell access getcwd srand48 srand srandom stat strchr strerror timegm explicit_bzero explicit_memset getresuid getresgid 10356do : 10357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10358ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10359if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10360 cat >>confdefs.h <<_ACEOF 10361#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10362_ACEOF 10363 10364fi 10365done 10366 10367 10368ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 10369if test "x$ac_cv_func_mkstemp" = xyes; then : 10370 MKSTEMP_ST_OBJ= 10371MKSTEMP_OBJ= 10372else 10373 MKSTEMP_ST_OBJ='mkstemp.o' 10374MKSTEMP_OBJ='$(OUTPRE)mkstemp.$(OBJEXT)' 10375EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_mkstemp" 10376fi 10377 10378 10379 10380 10381ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 10382if test "x$ac_cv_func_gettimeofday" = xyes; then : 10383 GETTIMEOFDAY_ST_OBJ= 10384 GETTIMEOFDAY_OBJ= 10385 10386$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 10387 10388 10389else 10390 GETTIMEOFDAY_ST_OBJ='gettimeofday.o' 10391 GETTIMEOFDAY_OBJ='$(OUTPRE)gettimeofday.$(OBJEXT)' 10392 EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_gettimeofday" 10393fi 10394 10395 10396 10397 10398 10399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist declaration" >&5 10400$as_echo_n "checking for sys_errlist declaration... " >&6; } 10401if ${krb5_cv_decl_sys_errlist+:} false; then : 10402 $as_echo_n "(cached) " >&6 10403else 10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10405/* end confdefs.h. */ 10406#include <stdio.h> 10407#include <errno.h> 10408int 10409main () 10410{ 104111+sys_nerr; 10412 ; 10413 return 0; 10414} 10415_ACEOF 10416if ac_fn_c_try_compile "$LINENO"; then : 10417 krb5_cv_decl_sys_errlist=yes 10418else 10419 krb5_cv_decl_sys_errlist=no 10420fi 10421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10422fi 10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_decl_sys_errlist" >&5 10424$as_echo "$krb5_cv_decl_sys_errlist" >&6; } 10425# assume sys_nerr won't be declared w/o being in libc 10426if test $krb5_cv_decl_sys_errlist = yes; then 10427 10428$as_echo "#define SYS_ERRLIST_DECLARED 1" >>confdefs.h 10429 10430 10431$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h 10432 10433else 10434 # This means that sys_errlist is not declared in errno.h, but may still 10435 # be in libc. 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist in libc" >&5 10437$as_echo_n "checking for sys_errlist in libc... " >&6; } 10438if ${krb5_cv_var_sys_errlist+:} false; then : 10439 $as_echo_n "(cached) " >&6 10440else 10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10442/* end confdefs.h. */ 10443extern int sys_nerr; 10444int 10445main () 10446{ 10447if (1+sys_nerr < 0) return 1; 10448 ; 10449 return 0; 10450} 10451_ACEOF 10452if ac_fn_c_try_link "$LINENO"; then : 10453 krb5_cv_var_sys_errlist=yes 10454else 10455 krb5_cv_var_sys_errlist=no; 10456fi 10457rm -f core conftest.err conftest.$ac_objext \ 10458 conftest$ac_exeext conftest.$ac_ext 10459fi 10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_var_sys_errlist" >&5 10461$as_echo "$krb5_cv_var_sys_errlist" >&6; } 10462 if test $krb5_cv_var_sys_errlist = yes; then 10463 10464$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h 10465 10466 # Do this cruft for backwards compatibility for now. 10467 10468$as_echo "#define NEED_SYS_ERRLIST 1" >>confdefs.h 10469 10470 else 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys_errlist is neither in errno.h nor in libc" >&5 10472$as_echo "$as_me: WARNING: sys_errlist is neither in errno.h nor in libc" >&2;} 10473 fi 10474fi 10475for ac_header in unistd.h paths.h regex.h regexpr.h fcntl.h memory.h ifaddrs.h sys/filio.h byteswap.h machine/endian.h machine/byte_order.h sys/bswap.h endian.h pwd.h arpa/inet.h alloca.h dlfcn.h limits.h 10476do : 10477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10478ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10479if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10480 cat >>confdefs.h <<_ACEOF 10481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10482_ACEOF 10483 10484fi 10485 10486done 10487 10488ac_fn_c_check_header_compile "$LINENO" "regexp.h" "ac_cv_header_regexp_h" "#define INIT char *sp = instring; 10489#define GETC() (*sp++) 10490#define PEEKC() (*sp) 10491#define UNGETC(c) (--sp) 10492#define RETURN(c) return(c) 10493#define ERROR(c) 10494 10495" 10496if test "x$ac_cv_header_regexp_h" = xyes; then : 10497 10498fi 10499 10500 10501ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/types.h> 10502#include <sys/stat.h> 10503" 10504if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then : 10505 10506cat >>confdefs.h <<_ACEOF 10507#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 10508_ACEOF 10509 10510 10511fi 10512ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "#include <sys/types.h> 10513#include <sys/stat.h> 10514" 10515if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then : 10516 10517cat >>confdefs.h <<_ACEOF 10518#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1 10519_ACEOF 10520 10521 10522fi 10523ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/types.h> 10524#include <sys/stat.h> 10525" 10526if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then : 10527 10528cat >>confdefs.h <<_ACEOF 10529#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 10530_ACEOF 10531 10532 10533fi 10534 10535 10536for ac_func in re_comp re_exec regexec 10537do : 10538 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10539ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10540if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10541 cat >>confdefs.h <<_ACEOF 10542#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10543_ACEOF 10544 10545fi 10546done 10547 10548 10549ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10550if test "x$ac_cv_type_off_t" = xyes; then : 10551 10552else 10553 10554cat >>confdefs.h <<_ACEOF 10555#define off_t long int 10556_ACEOF 10557 10558fi 10559 10560 10561# Fancy caching of perror result... 10562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror declaration" >&5 10563$as_echo_n "checking for perror declaration... " >&6; } 10564if ${krb5_cv_decl_perror+:} false; then : 10565 $as_echo_n "(cached) " >&6 10566else 10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10568/* end confdefs.h. */ 10569#include <errno.h> 10570 10571_ACEOF 10572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10573 $EGREP "perror" >/dev/null 2>&1; then : 10574 krb5_cv_decl_perror=yes 10575else 10576 krb5_cv_decl_perror=no 10577fi 10578rm -f conftest* 10579 10580fi 10581 10582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_decl_perror" >&5 10583$as_echo "$krb5_cv_decl_perror" >&6; } 10584if test $krb5_cv_decl_perror = yes; then 10585 10586$as_echo "#define HDR_HAS_PERROR 1" >>confdefs.h 10587 10588fi 10589 10590 10591if test "x$ac_cv_func_strptime" = xyes; then 10592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strptime needs a prototype provided" >&5 10593$as_echo_n "checking if strptime needs a prototype provided... " >&6; } 10594if ${krb5_cv_func_strptime_noproto+:} false; then : 10595 $as_echo_n "(cached) " >&6 10596else 10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10598/* end confdefs.h. */ 10599#include <time.h> 10600int 10601main () 10602{ 10603#undef strptime 10604struct k5foo {int foo; } xx; 10605extern int strptime (struct k5foo*); 10606strptime(&xx); 10607 10608 ; 10609 return 0; 10610} 10611_ACEOF 10612if ac_fn_c_try_compile "$LINENO"; then : 10613 krb5_cv_func_strptime_noproto=yes 10614else 10615 krb5_cv_func_strptime_noproto=no 10616fi 10617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10618fi 10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_strptime_noproto" >&5 10620$as_echo "$krb5_cv_func_strptime_noproto" >&6; } 10621if test $krb5_cv_func_strptime_noproto = yes; then 10622 10623$as_echo "#define NEED_STRPTIME_PROTO 1" >>confdefs.h 10624 10625fi 10626fi 10627 10628 10629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argument to wait is int *" >&5 10630$as_echo_n "checking if argument to wait is int *... " >&6; } 10631if ${krb5_cv_struct_wait+:} false; then : 10632 $as_echo_n "(cached) " >&6 10633else 10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10635/* end confdefs.h. */ 10636#include <sys/types.h> 10637#include <sys/wait.h> 10638extern pid_t wait(int *); 10639int 10640main () 10641{ 10642 10643 ; 10644 return 0; 10645} 10646_ACEOF 10647if ac_fn_c_try_compile "$LINENO"; then : 10648 krb5_cv_struct_wait=no 10649else 10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10651/* end confdefs.h. */ 10652#include <sys/wait.h> 10653int 10654main () 10655{ 10656union wait i; 10657#ifdef WEXITSTATUS 10658 WEXITSTATUS (i); 10659#endif 10660 10661 ; 10662 return 0; 10663} 10664_ACEOF 10665if ac_fn_c_try_compile "$LINENO"; then : 10666 krb5_cv_struct_wait=yes 10667else 10668 krb5_cv_struct_wait=no 10669fi 10670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10671fi 10672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10673fi 10674 10675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_wait" >&5 10676$as_echo "$krb5_cv_struct_wait" >&6; } 10677if test $krb5_cv_struct_wait = no; then 10678 10679$as_echo "#define WAIT_USES_INT 1" >>confdefs.h 10680 10681fi 10682 10683 10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of sigprocmask" >&5 10685$as_echo_n "checking for use of sigprocmask... " >&6; } 10686if ${krb5_cv_func_sigprocmask_use+:} false; then : 10687 $as_echo_n "(cached) " >&6 10688else 10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10690/* end confdefs.h. */ 10691#include <signal.h> 10692int 10693main () 10694{ 10695sigprocmask(SIG_SETMASK,0,0); 10696 ; 10697 return 0; 10698} 10699_ACEOF 10700if ac_fn_c_try_link "$LINENO"; then : 10701 krb5_cv_func_sigprocmask_use=yes 10702else 10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10704/* end confdefs.h. */ 10705#include <signal.h> 10706int 10707main () 10708{ 10709sigmask(1); 10710 ; 10711 return 0; 10712} 10713_ACEOF 10714if ac_fn_c_try_link "$LINENO"; then : 10715 krb5_cv_func_sigprocmask_use=no 10716else 10717 krb5_cv_func_sigprocmask_use=yes 10718fi 10719rm -f core conftest.err conftest.$ac_objext \ 10720 conftest$ac_exeext conftest.$ac_ext 10721fi 10722rm -f core conftest.err conftest.$ac_objext \ 10723 conftest$ac_exeext conftest.$ac_ext 10724fi 10725 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_sigprocmask_use" >&5 10727$as_echo "$krb5_cv_func_sigprocmask_use" >&6; } 10728if test $krb5_cv_func_sigprocmask_use = yes; then 10729 10730$as_echo "#define USE_SIGPROCMASK 1" >>confdefs.h 10731 10732fi 10733 10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10735$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10736if ${ac_cv_type_uid_t+:} false; then : 10737 $as_echo_n "(cached) " >&6 10738else 10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10740/* end confdefs.h. */ 10741#include <sys/types.h> 10742 10743_ACEOF 10744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10745 $EGREP "uid_t" >/dev/null 2>&1; then : 10746 ac_cv_type_uid_t=yes 10747else 10748 ac_cv_type_uid_t=no 10749fi 10750rm -f conftest* 10751 10752fi 10753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10754$as_echo "$ac_cv_type_uid_t" >&6; } 10755if test $ac_cv_type_uid_t = no; then 10756 10757$as_echo "#define uid_t int" >>confdefs.h 10758 10759 10760$as_echo "#define gid_t int" >>confdefs.h 10761 10762fi 10763 10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 10765$as_echo_n "checking type of array argument to getgroups... " >&6; } 10766if ${ac_cv_type_getgroups+:} false; then : 10767 $as_echo_n "(cached) " >&6 10768else 10769 if test "$cross_compiling" = yes; then : 10770 ac_cv_type_getgroups=cross 10771else 10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10773/* end confdefs.h. */ 10774/* Thanks to Mike Rendell for this test. */ 10775$ac_includes_default 10776#define NGID 256 10777#undef MAX 10778#define MAX(x, y) ((x) > (y) ? (x) : (y)) 10779 10780int 10781main () 10782{ 10783 gid_t gidset[NGID]; 10784 int i, n; 10785 union { gid_t gval; long int lval; } val; 10786 10787 val.lval = -1; 10788 for (i = 0; i < NGID; i++) 10789 gidset[i] = val.gval; 10790 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 10791 gidset); 10792 /* Exit non-zero if getgroups seems to require an array of ints. This 10793 happens when gid_t is short int but getgroups modifies an array 10794 of ints. */ 10795 return n > 0 && gidset[n] != val.gval; 10796} 10797_ACEOF 10798if ac_fn_c_try_run "$LINENO"; then : 10799 ac_cv_type_getgroups=gid_t 10800else 10801 ac_cv_type_getgroups=int 10802fi 10803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10804 conftest.$ac_objext conftest.beam conftest.$ac_ext 10805fi 10806 10807if test $ac_cv_type_getgroups = cross; then 10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10809/* end confdefs.h. */ 10810#include <unistd.h> 10811 10812_ACEOF 10813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10814 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : 10815 ac_cv_type_getgroups=gid_t 10816else 10817 ac_cv_type_getgroups=int 10818fi 10819rm -f conftest* 10820 10821fi 10822fi 10823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 10824$as_echo "$ac_cv_type_getgroups" >&6; } 10825 10826cat >>confdefs.h <<_ACEOF 10827#define GETGROUPS_T $ac_cv_type_getgroups 10828_ACEOF 10829 10830 10831 10832ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp" 10833if test "x$ac_cv_func_sigsetjmp" = xyes; then : 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigjmp_buf" >&5 10835$as_echo_n "checking for sigjmp_buf... " >&6; } 10836if ${krb5_cv_struct_sigjmp_buf+:} false; then : 10837 $as_echo_n "(cached) " >&6 10838else 10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10840/* end confdefs.h. */ 10841#include <setjmp.h> 10842int 10843main () 10844{ 10845sigjmp_buf x 10846 ; 10847 return 0; 10848} 10849_ACEOF 10850if ac_fn_c_try_compile "$LINENO"; then : 10851 krb5_cv_struct_sigjmp_buf=yes 10852else 10853 krb5_cv_struct_sigjmp_buf=no 10854fi 10855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10856fi 10857 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_sigjmp_buf" >&5 10859$as_echo "$krb5_cv_struct_sigjmp_buf" >&6; } 10860if test $krb5_cv_struct_sigjmp_buf = yes; then 10861 10862$as_echo "#define POSIX_SETJMP 1" >>confdefs.h 10863 10864fi 10865 10866fi 10867 10868 10869# *rpcent return types needed for lib/rpc 10870 10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of setrpcent" >&5 10872$as_echo_n "checking return type of setrpcent... " >&6; } 10873if ${k5_cv_type_setrpcent+:} false; then : 10874 $as_echo_n "(cached) " >&6 10875else 10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10877/* end confdefs.h. */ 10878#include <netdb.h> 10879#ifdef __cplusplus 10880extern "C" 10881#endif 10882extern void setrpcent(); 10883int 10884main () 10885{ 10886int i; 10887 ; 10888 return 0; 10889} 10890_ACEOF 10891if ac_fn_c_try_compile "$LINENO"; then : 10892 k5_cv_type_setrpcent=void 10893else 10894 k5_cv_type_setrpcent=int 10895fi 10896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10897fi 10898 10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_setrpcent" >&5 10900$as_echo "$k5_cv_type_setrpcent" >&6; } 10901 10902cat >>confdefs.h <<_ACEOF 10903#define SETRPCENT_TYPE $k5_cv_type_setrpcent 10904_ACEOF 10905 10906 10907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of endrpcent" >&5 10908$as_echo_n "checking return type of endrpcent... " >&6; } 10909if ${k5_cv_type_endrpcent+:} false; then : 10910 $as_echo_n "(cached) " >&6 10911else 10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913/* end confdefs.h. */ 10914#include <netdb.h> 10915#ifdef __cplusplus 10916extern "C" 10917#endif 10918extern void endrpcent(); 10919int 10920main () 10921{ 10922int i; 10923 ; 10924 return 0; 10925} 10926_ACEOF 10927if ac_fn_c_try_compile "$LINENO"; then : 10928 k5_cv_type_endrpcent=void 10929else 10930 k5_cv_type_endrpcent=int 10931fi 10932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10933fi 10934 10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_endrpcent" >&5 10936$as_echo "$k5_cv_type_endrpcent" >&6; } 10937 10938cat >>confdefs.h <<_ACEOF 10939#define ENDRPCENT_TYPE $k5_cv_type_endrpcent 10940_ACEOF 10941 10942 10943 10944# bswap_16 is a macro in byteswap.h under GNU libc 10945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_16" >&5 10946$as_echo_n "checking for bswap_16... " >&6; } 10947if ${krb5_cv_bswap_16+:} false; then : 10948 $as_echo_n "(cached) " >&6 10949else 10950 10951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10952/* end confdefs.h. */ 10953#if HAVE_BYTESWAP_H 10954#include <byteswap.h> 10955#endif 10956int 10957main () 10958{ 10959bswap_16(37); 10960 ; 10961 return 0; 10962} 10963_ACEOF 10964if ac_fn_c_try_link "$LINENO"; then : 10965 krb5_cv_bswap_16=yes 10966else 10967 krb5_cv_bswap_16=no 10968fi 10969rm -f core conftest.err conftest.$ac_objext \ 10970 conftest$ac_exeext conftest.$ac_ext 10971fi 10972 10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_bswap_16" >&5 10974$as_echo "$krb5_cv_bswap_16" >&6; } 10975if test "$krb5_cv_bswap_16" = yes; then 10976 10977$as_echo "#define HAVE_BSWAP_16 1" >>confdefs.h 10978 10979fi 10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_64" >&5 10981$as_echo_n "checking for bswap_64... " >&6; } 10982if ${krb5_cv_bswap_64+:} false; then : 10983 $as_echo_n "(cached) " >&6 10984else 10985 10986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10987/* end confdefs.h. */ 10988#if HAVE_BYTESWAP_H 10989#include <byteswap.h> 10990#endif 10991int 10992main () 10993{ 10994bswap_64(37); 10995 ; 10996 return 0; 10997} 10998_ACEOF 10999if ac_fn_c_try_link "$LINENO"; then : 11000 krb5_cv_bswap_64=yes 11001else 11002 krb5_cv_bswap_64=no 11003fi 11004rm -f core conftest.err conftest.$ac_objext \ 11005 conftest$ac_exeext conftest.$ac_ext 11006fi 11007 11008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_bswap_64" >&5 11009$as_echo "$krb5_cv_bswap_64" >&6; } 11010if test "$krb5_cv_bswap_64" = yes; then 11011 11012$as_echo "#define HAVE_BSWAP_64 1" >>confdefs.h 11013 11014fi 11015 11016# Needed for ksu and some appl stuff. 11017 11018case $krb5_cv_host in 11019alpha*-dec-osf*) 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setluid in -lsecurity" >&5 11021$as_echo_n "checking for setluid in -lsecurity... " >&6; } 11022if ${ac_cv_lib_security_setluid+:} false; then : 11023 $as_echo_n "(cached) " >&6 11024else 11025 ac_check_lib_save_LIBS=$LIBS 11026LIBS="-lsecurity $LIBS" 11027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11028/* end confdefs.h. */ 11029 11030/* Override any GCC internal prototype to avoid an error. 11031 Use char because int might match the return type of a GCC 11032 builtin and then its argument prototype would still apply. */ 11033#ifdef __cplusplus 11034extern "C" 11035#endif 11036char setluid (); 11037int 11038main () 11039{ 11040return setluid (); 11041 ; 11042 return 0; 11043} 11044_ACEOF 11045if ac_fn_c_try_link "$LINENO"; then : 11046 ac_cv_lib_security_setluid=yes 11047else 11048 ac_cv_lib_security_setluid=no 11049fi 11050rm -f core conftest.err conftest.$ac_objext \ 11051 conftest$ac_exeext conftest.$ac_ext 11052LIBS=$ac_check_lib_save_LIBS 11053fi 11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_setluid" >&5 11055$as_echo "$ac_cv_lib_security_setluid" >&6; } 11056if test "x$ac_cv_lib_security_setluid" = xyes; then : 11057 11058$as_echo "#define HAVE_SETLUID 1" >>confdefs.h 11059 11060 KSU_LIBS="-lsecurity" 11061 11062fi 11063 11064 ;; 11065esac 11066 11067 11068if test $ac_cv_func_setenv = no || test $ac_cv_func_unsetenv = no \ 11069 || test $ac_cv_func_getenv = no; then 11070 SETENVOBJ=setenv.o 11071else 11072 SETENVOBJ= 11073fi 11074 11075 11076# Check what the return types for gethostbyname_r and getservbyname_r are. 11077 11078ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 11079if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 11080 11081ac_cv_func_gethostbyname_r=yes 11082if test "$ac_cv_func_gethostbyname_r" = yes; then 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r returns an int" >&5 11084$as_echo_n "checking if gethostbyname_r returns an int... " >&6; } 11085 if ${krb5_cv_gethostbyname_r_returns_int+:} false; then : 11086 $as_echo_n "(cached) " >&6 11087else 11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11089/* end confdefs.h. */ 11090#include <netdb.h> 11091 extern int gethostbyname_r (); 11092int 11093main () 11094{ 110951; 11096 ; 11097 return 0; 11098} 11099_ACEOF 11100if ac_fn_c_try_compile "$LINENO"; then : 11101 krb5_cv_gethostbyname_r_returns_int=yes 11102else 11103 krb5_cv_gethostbyname_r_returns_int=no 11104fi 11105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11106fi 11107 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gethostbyname_r_returns_int" >&5 11109$as_echo "$krb5_cv_gethostbyname_r_returns_int" >&6; } 11110 11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r returns a pointer" >&5 11112$as_echo_n "checking if gethostbyname_r returns a pointer... " >&6; } 11113 if ${krb5_cv_gethostbyname_r_returns_ptr+:} false; then : 11114 $as_echo_n "(cached) " >&6 11115else 11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11117/* end confdefs.h. */ 11118#include <netdb.h> 11119 extern struct hostent *gethostbyname_r (); 11120int 11121main () 11122{ 111231; 11124 ; 11125 return 0; 11126} 11127_ACEOF 11128if ac_fn_c_try_compile "$LINENO"; then : 11129 krb5_cv_gethostbyname_r_returns_ptr=yes 11130else 11131 krb5_cv_gethostbyname_r_returns_ptr=no 11132fi 11133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11134fi 11135 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gethostbyname_r_returns_ptr" >&5 11137$as_echo "$krb5_cv_gethostbyname_r_returns_ptr" >&6; } 11138 11139 if test "$krb5_cv_gethostbyname_r_returns_int" = "$krb5_cv_gethostbyname_r_returns_ptr"; then 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine return type of gethostbyname_r -- disabling" >&5 11141$as_echo "$as_me: WARNING: cannot determine return type of gethostbyname_r -- disabling" >&2;} 11142 ac_cv_func_gethostbyname_r=no 11143 fi 11144 if test "$krb5_cv_gethostbyname_r_returns_int" = yes; then 11145 11146$as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h 11147 11148 fi 11149fi 11150if test "$ac_cv_func_gethostbyname_r" = yes; then 11151 11152$as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 11153 11154 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r" 11155if test "x$ac_cv_func_gethostbyaddr_r" = xyes; then : 11156 11157fi 11158 11159fi 11160 11161fi 11162 11163 11164 11165# PTHREAD_CFLAGS changes which variant of these functions is declared 11166# on Solaris 11, so use it for these tests. 11167old_CFLAGS=$CFLAGS 11168CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11169ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" 11170if test "x$ac_cv_func_getpwnam_r" = xyes; then : 11171 ac_cv_func_getpwnam_r=yes 11172else 11173 ac_cv_func_getpwnam_r=no 11174fi 11175 11176ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" 11177if test "x$ac_cv_func_getpwuid_r" = xyes; then : 11178 ac_cv_func_getpwuid_r=yes 11179else 11180 ac_cv_func_getpwuid_r=no 11181fi 11182 11183if test "$ac_cv_func_getpwnam_r" = yes; then 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of getpwnam_r" >&5 11185$as_echo_n "checking return type of getpwnam_r... " >&6; } 11186 if ${krb5_cv_getpwnam_r_return_type+:} false; then : 11187 $as_echo_n "(cached) " >&6 11188else 11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11190/* end confdefs.h. */ 11191#include <pwd.h> 11192 extern int getpwnam_r(); 11193int 11194main () 11195{ 111961; 11197 ; 11198 return 0; 11199} 11200_ACEOF 11201if ac_fn_c_try_compile "$LINENO"; then : 11202 getpwnam_r_returns_int=yes 11203else 11204 getpwnam_r_returns_int=no 11205fi 11206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11208/* end confdefs.h. */ 11209#include <pwd.h> 11210 extern struct passwd *getpwnam_r(); 11211int 11212main () 11213{ 112141; 11215 ; 11216 return 0; 11217} 11218_ACEOF 11219if ac_fn_c_try_compile "$LINENO"; then : 11220 getpwnam_r_returns_ptr=yes 11221else 11222 getpwnam_r_returns_ptr=no 11223fi 11224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11225 case "$getpwnam_r_returns_int/$getpwnam_r_returns_ptr" in 11226 yes/no) krb5_cv_getpwnam_r_return_type=int ;; 11227 no/yes) krb5_cv_getpwnam_r_return_type=ptr ;; 11228 *) krb5_cv_getpwnam_r_return_type=unknown ;; 11229 esac 11230fi 11231 11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getpwnam_r_return_type" >&5 11233$as_echo "$krb5_cv_getpwnam_r_return_type" >&6; } 11234 if test $krb5_cv_getpwnam_r_return_type = int; then 11235 11236$as_echo "#define GETPWNAM_R_RETURNS_INT 1" >>confdefs.h 11237 11238 elif test $krb5_cv_getpwnam_r_return_type = unknown; then 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine getpwnam_r return type, disabling getpwnam_r" >&5 11240$as_echo "$as_me: WARNING: Cannot determine getpwnam_r return type, disabling getpwnam_r" >&2;} 11241 ac_cv_func_getpwnam_r=no 11242 fi 11243fi 11244if test "$ac_cv_func_getpwnam_r" = yes; then 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to getpwnam_r" >&5 11246$as_echo_n "checking number of arguments to getpwnam_r... " >&6; } 11247 if ${krb5_cv_getpwnam_r_args+:} false; then : 11248 $as_echo_n "(cached) " >&6 11249else 11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11251/* end confdefs.h. */ 11252#include <pwd.h> 11253 struct passwd pwx; char buf[1024]; 11254int 11255main () 11256{ 11257getpwnam_r("", &pwx, buf, sizeof(buf)); 11258 ; 11259 return 0; 11260} 11261_ACEOF 11262if ac_fn_c_try_compile "$LINENO"; then : 11263 args4=yes 11264else 11265 args4=no 11266fi 11267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11269/* end confdefs.h. */ 11270#include <pwd.h> 11271 struct passwd pwx, *p; char buf[1024]; 11272int 11273main () 11274{ 11275getpwnam_r("", &pwx, buf, sizeof(buf), &p); 11276 ; 11277 return 0; 11278} 11279_ACEOF 11280if ac_fn_c_try_compile "$LINENO"; then : 11281 args5=yes 11282else 11283 args5=no 11284fi 11285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11286 case $args4/$args5 in 11287 yes/no) krb5_cv_getpwnam_r_args=4 ;; 11288 no/yes) krb5_cv_getpwnam_r_args=5 ;; 11289 *) krb5_cv_getpwnam_r_args=unknown ;; 11290 esac 11291fi 11292 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getpwnam_r_args" >&5 11294$as_echo "$krb5_cv_getpwnam_r_args" >&6; } 11295 if test "$krb5_cv_getpwnam_r_args" = unknown; then 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine number of arguments to getpwnam_r, disabling its use." >&5 11297$as_echo "$as_me: WARNING: Cannot determine number of arguments to getpwnam_r, disabling its use." >&2;} 11298 ac_cv_func_getpwnam_r=no 11299 else 11300 11301$as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h 11302 11303 if test "$krb5_cv_getpwnam_r_args" = 4; then 11304 11305$as_echo "#define GETPWNAM_R_4_ARGS 1" >>confdefs.h 11306 11307 fi 11308 fi 11309fi 11310CFLAGS=$old_CFLAGS 11311 11312if test "$ac_cv_func_getpwnam_r" = no && test "$ac_cv_func_getpwuid_r" = yes; then 11313 # Actually, we could do this check, and the corresponding checks 11314 # for return type and number of arguments, but I doubt we'll run 11315 # into a system where we'd get to use getpwuid_r but not getpwnam_r. 11316 { $as_echo "$as_me:${as_lineno-$LINENO}: getpwnam_r not useful, so disabling getpwuid_r too" >&5 11317$as_echo "$as_me: getpwnam_r not useful, so disabling getpwuid_r too" >&6;} 11318 ac_cv_func_getpwuid_r=no 11319fi 11320if test "$ac_cv_func_getpwuid_r" = yes; then 11321 11322$as_echo "#define HAVE_GETPWUID_R 1" >>confdefs.h 11323 11324 # Hack: Assume getpwuid_r is the shorter form if getpwnam_r is. 11325 if test "$krb5_cv_getpwnam_r_args" = 4; then 11326 11327$as_echo "#define GETPWUID_R_4_ARGS 1" >>confdefs.h 11328 11329 fi 11330fi 11331 11332if test "$ac_cv_func_gmtime_r" = yes; then 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gmtime_r returns int" >&5 11334$as_echo_n "checking whether gmtime_r returns int... " >&6; } 11335 if ${krb5_cv_gmtime_r_returns_int+:} false; then : 11336 $as_echo_n "(cached) " >&6 11337else 11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11339/* end confdefs.h. */ 11340#include <time.h> 11341 extern int gmtime_r (); 11342int 11343main () 11344{ 113451; 11346 ; 11347 return 0; 11348} 11349_ACEOF 11350if ac_fn_c_try_compile "$LINENO"; then : 11351 return_int=yes 11352else 11353 return_int=no 11354fi 11355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11357/* end confdefs.h. */ 11358#include <time.h> 11359 extern struct tm *gmtime_r (); 11360int 11361main () 11362{ 113631; 11364 ; 11365 return 0; 11366} 11367_ACEOF 11368if ac_fn_c_try_compile "$LINENO"; then : 11369 return_ptr=yes 11370else 11371 return_ptr=no 11372fi 11373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11374 case $return_int/$return_ptr in 11375 yes/no) krb5_cv_gmtime_r_returns_int=yes ;; 11376 no/yes) krb5_cv_gmtime_r_returns_int=no ;; 11377 *) # Can't figure it out, punt the function. 11378 ac_cv_func_gmtime_r=no ;; 11379 esac 11380fi 11381 11382 if test "$ac_cv_func_gmtime_r" = no; then 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown -- ignoring gmtime_r" >&5 11384$as_echo "unknown -- ignoring gmtime_r" >&6; } 11385 else 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gmtime_r_returns_int" >&5 11387$as_echo "$krb5_cv_gmtime_r_returns_int" >&6; } 11388 if test "$krb5_cv_gmtime_r_returns_int" = yes; then 11389 11390$as_echo "#define GMTIME_R_RETURNS_INT 1" >>confdefs.h 11391 11392 fi 11393 fi 11394fi 11395 11396ac_fn_c_check_func "$LINENO" "getservbyname_r" "ac_cv_func_getservbyname_r" 11397if test "x$ac_cv_func_getservbyname_r" = xyes; then : 11398 11399ac_cv_func_getservbyname_r=yes 11400if test "$ac_cv_func_getservbyname_r" = yes; then 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname_r returns an int" >&5 11402$as_echo_n "checking if getservbyname_r returns an int... " >&6; } 11403 if ${krb5_cv_getservbyname_r_returns_int+:} false; then : 11404 $as_echo_n "(cached) " >&6 11405else 11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11407/* end confdefs.h. */ 11408#include <netdb.h> 11409 extern int getservbyname_r (); 11410int 11411main () 11412{ 114131; 11414 ; 11415 return 0; 11416} 11417_ACEOF 11418if ac_fn_c_try_compile "$LINENO"; then : 11419 krb5_cv_getservbyname_r_returns_int=yes 11420else 11421 krb5_cv_getservbyname_r_returns_int=no 11422fi 11423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11424fi 11425 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getservbyname_r_returns_int" >&5 11427$as_echo "$krb5_cv_getservbyname_r_returns_int" >&6; } 11428 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname_r returns a pointer" >&5 11430$as_echo_n "checking if getservbyname_r returns a pointer... " >&6; } 11431 if ${krb5_cv_getservbyname_r_returns_ptr+:} false; then : 11432 $as_echo_n "(cached) " >&6 11433else 11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11435/* end confdefs.h. */ 11436#include <netdb.h> 11437 extern struct servent *getservbyname_r (); 11438int 11439main () 11440{ 114411; 11442 ; 11443 return 0; 11444} 11445_ACEOF 11446if ac_fn_c_try_compile "$LINENO"; then : 11447 krb5_cv_getservbyname_r_returns_ptr=yes 11448else 11449 krb5_cv_getservbyname_r_returns_ptr=no 11450fi 11451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11452fi 11453 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getservbyname_r_returns_ptr" >&5 11455$as_echo "$krb5_cv_getservbyname_r_returns_ptr" >&6; } 11456 11457 if test "$krb5_cv_getservbyname_r_returns_int" = "$krb5_cv_getservbyname_r_returns_ptr"; then 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine return type of getservbyname_r -- disabling" >&5 11459$as_echo "$as_me: WARNING: cannot determine return type of getservbyname_r -- disabling" >&2;} 11460 ac_cv_func_getservbyname_r=no 11461 fi 11462 if test "$krb5_cv_getservbyname_r_returns_int" = yes; then 11463 11464$as_echo "#define GETSERVBYNAME_R_RETURNS_INT 1" >>confdefs.h 11465 11466 fi 11467fi 11468if test "$ac_cv_func_getservbyname_r" = yes; then 11469 11470$as_echo "#define HAVE_GETSERVBYNAME_R 1" >>confdefs.h 11471 11472 ac_fn_c_check_func "$LINENO" "getservbyport_r" "ac_cv_func_getservbyport_r" 11473if test "x$ac_cv_func_getservbyport_r" = xyes; then : 11474 11475fi 11476 11477fi 11478 11479fi 11480 11481 11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylineno declaration" >&5 11483$as_echo_n "checking for yylineno declaration... " >&6; } 11484if ${krb5_cv_type_yylineno+:} false; then : 11485 $as_echo_n "(cached) " >&6 11486else 11487 # some systems have yylineno, others don't... 11488 echo '%% 11489%%' | ${LEX} -t > conftest.out 11490 if egrep yylineno conftest.out >/dev/null 2>&1; then 11491 krb5_cv_type_yylineno=yes 11492 else 11493 krb5_cv_type_yylineno=no 11494 fi 11495 rm -f conftest.out 11496fi 11497 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_yylineno" >&5 11499$as_echo "$krb5_cv_type_yylineno" >&6; } 11500 if test $krb5_cv_type_yylineno = no; then 11501 11502$as_echo "#define NO_YYLINENO 1" >>confdefs.h 11503 11504 fi 11505 11506 11507ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" 11508if test "x$ac_cv_header_dirent_h" = xyes; then : 11509 11510$as_echo "#define USE_DIRENT_H 1" >>confdefs.h 11511 11512fi 11513 11514 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11516$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 11517if ${ac_cv_type_uid_t+:} false; then : 11518 $as_echo_n "(cached) " >&6 11519else 11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11521/* end confdefs.h. */ 11522#include <sys/types.h> 11523 11524_ACEOF 11525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11526 $EGREP "uid_t" >/dev/null 2>&1; then : 11527 ac_cv_type_uid_t=yes 11528else 11529 ac_cv_type_uid_t=no 11530fi 11531rm -f conftest* 11532 11533fi 11534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11535$as_echo "$ac_cv_type_uid_t" >&6; } 11536if test $ac_cv_type_uid_t = no; then 11537 11538$as_echo "#define uid_t int" >>confdefs.h 11539 11540 11541$as_echo "#define gid_t int" >>confdefs.h 11542 11543fi 11544 11545 11546ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 11547if test "x$ac_cv_header_termios_h" = xyes; then : 11548 ac_fn_c_check_func "$LINENO" "tcsetattr" "ac_cv_func_tcsetattr" 11549if test "x$ac_cv_func_tcsetattr" = xyes; then : 11550 11551$as_echo "#define POSIX_TERMIOS 1" >>confdefs.h 11552 11553fi 11554 11555fi 11556 11557 11558 11559 11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX signal handlers" >&5 11561$as_echo_n "checking POSIX signal handlers... " >&6; } 11562if ${krb5_cv_has_posix_signals+:} false; then : 11563 $as_echo_n "(cached) " >&6 11564else 11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11566/* end confdefs.h. */ 11567#include <sys/types.h> 11568#include <signal.h> 11569#ifdef signal 11570#undef signal 11571#endif 11572extern void (*signal ()) (); 11573int 11574main () 11575{ 11576 11577 ; 11578 return 0; 11579} 11580_ACEOF 11581if ac_fn_c_try_compile "$LINENO"; then : 11582 krb5_cv_has_posix_signals=yes 11583else 11584 krb5_cv_has_posix_signals=no 11585fi 11586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11587fi 11588 11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_posix_signals" >&5 11590$as_echo "$krb5_cv_has_posix_signals" >&6; } 11591if test $krb5_cv_has_posix_signals = yes; then 11592 stype=void 11593 11594$as_echo "#define POSIX_SIGTYPE 1" >>confdefs.h 11595 11596else 11597 if test $ac_cv_type_signal = void; then 11598 stype=void 11599 else 11600 stype=int 11601 fi 11602fi 11603 11604cat >>confdefs.h <<_ACEOF 11605#define krb5_sigtype $stype 11606_ACEOF 11607 11608for ac_header in poll.h stdlib.h string.h stddef.h sys/types.h sys/file.h sys/param.h sys/stat.h sys/time.h netinet/in.h sys/uio.h sys/filio.h sys/select.h time.h paths.h errno.h 11609do : 11610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11611ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11612if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11613 cat >>confdefs.h <<_ACEOF 11614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11615_ACEOF 11616 11617fi 11618 11619done 11620 11621 11622# If compiling with IPv6 support, test if in6addr_any functions. 11623# Irix 6.5.16 defines it, but lacks support in the C library. 11624if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes ; then 11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any definition in library" >&5 11626$as_echo_n "checking for in6addr_any definition in library... " >&6; } 11627if ${krb5_cv_var_in6addr_any+:} false; then : 11628 $as_echo_n "(cached) " >&6 11629else 11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11631/* end confdefs.h. */ 11632 11633#ifdef HAVE_SYS_TYPES_H 11634#include <sys/types.h> 11635#endif 11636#include <sys/socket.h> 11637#include <netinet/in.h> 11638#include <netdb.h> 11639#include <stdio.h> 11640 11641int 11642main () 11643{ 11644 11645 struct sockaddr_in6 in; 11646 in.sin6_addr = in6addr_any; 11647 printf("%x", &in); 11648 11649 ; 11650 return 0; 11651} 11652_ACEOF 11653if ac_fn_c_try_link "$LINENO"; then : 11654 krb5_cv_var_in6addr_any=yes 11655else 11656 krb5_cv_var_in6addr_any=no 11657fi 11658rm -f core conftest.err conftest.$ac_objext \ 11659 conftest$ac_exeext conftest.$ac_ext 11660fi 11661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_var_in6addr_any" >&5 11662$as_echo "$krb5_cv_var_in6addr_any" >&6; } 11663 if test $krb5_cv_var_in6addr_any = no; then 11664 11665$as_echo "#define NEED_INSIXADDR_ANY 1" >>confdefs.h 11666 11667 fi 11668fi 11669 11670# then from osconf.h, we have 11671 11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11673$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11674if ${ac_cv_header_time+:} false; then : 11675 $as_echo_n "(cached) " >&6 11676else 11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11678/* end confdefs.h. */ 11679#include <sys/types.h> 11680#include <sys/time.h> 11681#include <time.h> 11682 11683int 11684main () 11685{ 11686if ((struct tm *) 0) 11687return 0; 11688 ; 11689 return 0; 11690} 11691_ACEOF 11692if ac_fn_c_try_compile "$LINENO"; then : 11693 ac_cv_header_time=yes 11694else 11695 ac_cv_header_time=no 11696fi 11697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11698fi 11699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11700$as_echo "$ac_cv_header_time" >&6; } 11701if test $ac_cv_header_time = yes; then 11702 11703$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11704 11705fi 11706 11707ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default" 11708if test "x$ac_cv_type_time_t" = xyes; then : 11709 11710else 11711 11712cat >>confdefs.h <<_ACEOF 11713#define time_t long 11714_ACEOF 11715 11716fi 11717 11718# The cast to long int works around a bug in the HP C Compiler 11719# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11720# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11721# This bug is HP SR number 8606223364. 11722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 11723$as_echo_n "checking size of time_t... " >&6; } 11724if ${ac_cv_sizeof_time_t+:} false; then : 11725 $as_echo_n "(cached) " >&6 11726else 11727 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 11728 11729else 11730 if test "$ac_cv_type_time_t" = yes; then 11731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11733as_fn_error 77 "cannot compute sizeof (time_t) 11734See \`config.log' for more details" "$LINENO" 5; } 11735 else 11736 ac_cv_sizeof_time_t=0 11737 fi 11738fi 11739 11740fi 11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 11742$as_echo "$ac_cv_sizeof_time_t" >&6; } 11743 11744 11745 11746cat >>confdefs.h <<_ACEOF 11747#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 11748_ACEOF 11749 11750 11751SIZEOF_TIME_T=$ac_cv_sizeof_time_t 11752 11753 11754# Determine where to put the replay cache. 11755 11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for replay cache directory" >&5 11757$as_echo_n "checking for replay cache directory... " >&6; } 11758if ${krb5_cv_sys_rcdir+:} false; then : 11759 $as_echo_n "(cached) " >&6 11760else 11761 11762if test $cross_compiling = yes; then 11763 krb5_cv_sys_rcdir=/var/tmp 11764else 11765 for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do 11766 test -d $t_dir || continue 11767 krb5_cv_sys_rcdir=$t_dir 11768 break 11769 done 11770fi 11771fi 11772 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_sys_rcdir" >&5 11774$as_echo "$krb5_cv_sys_rcdir" >&6; } 11775KRB5_RCTMPDIR=$krb5_cv_sys_rcdir 11776 11777 11778 11779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 11780$as_echo_n "checking for socklen_t... " >&6; } 11781if ${krb5_cv_has_type_socklen_t+:} false; then : 11782 $as_echo_n "(cached) " >&6 11783else 11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11785/* end confdefs.h. */ 11786#include <sys/types.h> 11787#include <sys/socket.h> 11788 11789int 11790main () 11791{ 11792sizeof (socklen_t); 11793 ; 11794 return 0; 11795} 11796_ACEOF 11797if ac_fn_c_try_compile "$LINENO"; then : 11798 krb5_cv_has_type_socklen_t=yes 11799else 11800 krb5_cv_has_type_socklen_t=no 11801fi 11802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11803fi 11804 11805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_type_socklen_t" >&5 11806$as_echo "$krb5_cv_has_type_socklen_t" >&6; } 11807if test $krb5_cv_has_type_socklen_t = yes; then 11808 11809$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 11810 11811fi 11812 11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5 11814$as_echo_n "checking for struct lifconf... " >&6; } 11815if ${krb5_cv_has_struct_lifconf+:} false; then : 11816 $as_echo_n "(cached) " >&6 11817else 11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11819/* end confdefs.h. */ 11820#include <sys/socket.h> 11821#include <net/if.h> 11822 11823int 11824main () 11825{ 11826sizeof (struct lifconf); 11827 ; 11828 return 0; 11829} 11830_ACEOF 11831if ac_fn_c_try_compile "$LINENO"; then : 11832 krb5_cv_has_struct_lifconf=yes 11833else 11834 krb5_cv_has_struct_lifconf=no 11835fi 11836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11837fi 11838 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_struct_lifconf" >&5 11840$as_echo "$krb5_cv_has_struct_lifconf" >&6; } 11841if test $krb5_cv_has_struct_lifconf = yes; then 11842 11843$as_echo "#define HAVE_STRUCT_LIFCONF 1" >>confdefs.h 11844 11845fi 11846# HP-UX 11 uses stuct if_laddrconf 11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 11848$as_echo_n "checking for struct if_laddrconf... " >&6; } 11849if ${krb5_cv_has_struct_if_laddrconf+:} false; then : 11850 $as_echo_n "(cached) " >&6 11851else 11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11853/* end confdefs.h. */ 11854#include <sys/socket.h> 11855#include <net/if.h> 11856#include <net/if6.h> 11857 11858int 11859main () 11860{ 11861sizeof (struct if_laddrconf); 11862 ; 11863 return 0; 11864} 11865_ACEOF 11866if ac_fn_c_try_compile "$LINENO"; then : 11867 krb5_cv_has_struct_if_laddrconf=yes 11868else 11869 krb5_cv_has_struct_if_laddrconf=no 11870fi 11871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11872fi 11873 11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_struct_if_laddrconf" >&5 11875$as_echo "$krb5_cv_has_struct_if_laddrconf" >&6; } 11876if test $krb5_cv_has_struct_if_laddrconf = yes; then 11877 11878$as_echo "#define HAVE_STRUCT_IF_LADDRCONF 1" >>confdefs.h 11879 11880fi 11881 11882 11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5 11884$as_echo_n "checking for h_errno in netdb.h... " >&6; } 11885if ${krb5_cv_header_netdb_h_h_errno+:} false; then : 11886 $as_echo_n "(cached) " >&6 11887else 11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11889/* end confdefs.h. */ 11890#include <netdb.h> 11891int 11892main () 11893{ 11894int x = h_errno; 11895 ; 11896 return 0; 11897} 11898_ACEOF 11899if ac_fn_c_try_compile "$LINENO"; then : 11900 krb5_cv_header_netdb_h_h_errno=yes 11901else 11902 krb5_cv_header_netdb_h_h_errno=no 11903fi 11904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11905fi 11906 11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_netdb_h_h_errno" >&5 11908$as_echo "$krb5_cv_header_netdb_h_h_errno" >&6; } 11909if test $krb5_cv_header_netdb_h_h_errno = yes; then 11910 11911$as_echo "#define HAVE_NETDB_H_H_ERRNO 1" >>confdefs.h 11912 11913fi 11914 11915 11916# Check whether --enable-athena was given. 11917if test "${enable_athena+set}" = set; then : 11918 enableval=$enable_athena; 11919$as_echo "#define KRB5_ATHENA_COMPAT 1" >>confdefs.h 11920 11921fi 11922 11923 11924 11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11926$as_echo_n "checking for inline... " >&6; } 11927if ${ac_cv_c_inline+:} false; then : 11928 $as_echo_n "(cached) " >&6 11929else 11930 ac_cv_c_inline=no 11931for ac_kw in inline __inline__ __inline; do 11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11933/* end confdefs.h. */ 11934#ifndef __cplusplus 11935typedef int foo_t; 11936static $ac_kw foo_t static_foo () {return 0; } 11937$ac_kw foo_t foo () {return 0; } 11938#endif 11939 11940_ACEOF 11941if ac_fn_c_try_compile "$LINENO"; then : 11942 ac_cv_c_inline=$ac_kw 11943fi 11944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11945 test "$ac_cv_c_inline" != no && break 11946done 11947 11948fi 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11950$as_echo "$ac_cv_c_inline" >&6; } 11951 11952case $ac_cv_c_inline in 11953 inline | yes) ;; 11954 *) 11955 case $ac_cv_c_inline in 11956 no) ac_val=;; 11957 *) ac_val=$ac_cv_c_inline;; 11958 esac 11959 cat >>confdefs.h <<_ACEOF 11960#ifndef __cplusplus 11961#define inline $ac_val 11962#endif 11963_ACEOF 11964 ;; 11965esac 11966 11967 11968 11969 11970ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" " 11971#include <sys/types.h> 11972#include <sys/socket.h> 11973#include <netinet/in.h> 11974 11975" 11976if test "x$ac_cv_type_struct_cmsghdr" = xyes; then : 11977 11978cat >>confdefs.h <<_ACEOF 11979#define HAVE_STRUCT_CMSGHDR 1 11980_ACEOF 11981 11982 11983fi 11984ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" " 11985#include <sys/types.h> 11986#include <sys/socket.h> 11987#include <netinet/in.h> 11988 11989" 11990if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then : 11991 11992cat >>confdefs.h <<_ACEOF 11993#define HAVE_STRUCT_IN_PKTINFO 1 11994_ACEOF 11995 11996 11997fi 11998ac_fn_c_check_type "$LINENO" "struct in6_pktinfo" "ac_cv_type_struct_in6_pktinfo" " 11999#include <sys/types.h> 12000#include <sys/socket.h> 12001#include <netinet/in.h> 12002 12003" 12004if test "x$ac_cv_type_struct_in6_pktinfo" = xyes; then : 12005 12006cat >>confdefs.h <<_ACEOF 12007#define HAVE_STRUCT_IN6_PKTINFO 1 12008_ACEOF 12009 12010 12011fi 12012ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 12013#include <sys/types.h> 12014#include <sys/socket.h> 12015#include <netinet/in.h> 12016 12017" 12018if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 12019 12020cat >>confdefs.h <<_ACEOF 12021#define HAVE_STRUCT_SOCKADDR_STORAGE 1 12022_ACEOF 12023 12024 12025fi 12026 12027ac_fn_c_check_type "$LINENO" "struct rt_msghdr" "ac_cv_type_struct_rt_msghdr" " 12028#include <sys/socket.h> 12029#include <net/if.h> 12030#include <net/route.h> 12031 12032" 12033if test "x$ac_cv_type_struct_rt_msghdr" = xyes; then : 12034 12035cat >>confdefs.h <<_ACEOF 12036#define HAVE_STRUCT_RT_MSGHDR 1 12037_ACEOF 12038 12039 12040fi 12041 12042 12043# Tests for 64-bit edwards25519 code. 12044# The cast to long int works around a bug in the HP C Compiler 12045# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12046# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12047# This bug is HP SR number 8606223364. 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 12049$as_echo_n "checking size of size_t... " >&6; } 12050if ${ac_cv_sizeof_size_t+:} false; then : 12051 $as_echo_n "(cached) " >&6 12052else 12053 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 12054 12055else 12056 if test "$ac_cv_type_size_t" = yes; then 12057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12059as_fn_error 77 "cannot compute sizeof (size_t) 12060See \`config.log' for more details" "$LINENO" 5; } 12061 else 12062 ac_cv_sizeof_size_t=0 12063 fi 12064fi 12065 12066fi 12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 12068$as_echo "$ac_cv_sizeof_size_t" >&6; } 12069 12070 12071 12072cat >>confdefs.h <<_ACEOF 12073#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 12074_ACEOF 12075 12076 12077ac_fn_c_check_type "$LINENO" "__int128_t" "ac_cv_type___int128_t" "$ac_includes_default" 12078if test "x$ac_cv_type___int128_t" = xyes; then : 12079 12080cat >>confdefs.h <<_ACEOF 12081#define HAVE___INT128_T 1 12082_ACEOF 12083 12084 12085fi 12086ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" 12087if test "x$ac_cv_type___uint128_t" = xyes; then : 12088 12089cat >>confdefs.h <<_ACEOF 12090#define HAVE___UINT128_T 1 12091_ACEOF 12092 12093 12094fi 12095 12096 12097# stuff for util/profile 12098 12099# AC_KRB5_TCL already done 12100DO_TCL= 12101test "$TCL_LIBS" != "" && DO_TCL=ok 12102 12103 12104# types libdb2 wants 12105 12106ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 12107if test "x$ac_cv_type_ssize_t" = xyes; then : 12108 12109cat >>confdefs.h <<_ACEOF 12110#define HAVE_SSIZE_T 1 12111_ACEOF 12112 12113 12114fi 12115ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default" 12116if test "x$ac_cv_type_u_char" = xyes; then : 12117 12118cat >>confdefs.h <<_ACEOF 12119#define HAVE_U_CHAR 1 12120_ACEOF 12121 12122 12123fi 12124ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default" 12125if test "x$ac_cv_type_u_int" = xyes; then : 12126 12127cat >>confdefs.h <<_ACEOF 12128#define HAVE_U_INT 1 12129_ACEOF 12130 12131 12132fi 12133ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default" 12134if test "x$ac_cv_type_u_long" = xyes; then : 12135 12136cat >>confdefs.h <<_ACEOF 12137#define HAVE_U_LONG 1 12138_ACEOF 12139 12140 12141fi 12142ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default" 12143if test "x$ac_cv_type_u_int8_t" = xyes; then : 12144 12145cat >>confdefs.h <<_ACEOF 12146#define HAVE_U_INT8_T 1 12147_ACEOF 12148 12149 12150fi 12151ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" 12152if test "x$ac_cv_type_u_int16_t" = xyes; then : 12153 12154cat >>confdefs.h <<_ACEOF 12155#define HAVE_U_INT16_T 1 12156_ACEOF 12157 12158 12159fi 12160ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" 12161if test "x$ac_cv_type_u_int32_t" = xyes; then : 12162 12163cat >>confdefs.h <<_ACEOF 12164#define HAVE_U_INT32_T 1 12165_ACEOF 12166 12167 12168fi 12169ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 12170if test "x$ac_cv_type_int8_t" = xyes; then : 12171 12172cat >>confdefs.h <<_ACEOF 12173#define HAVE_INT8_T 1 12174_ACEOF 12175 12176 12177fi 12178ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 12179if test "x$ac_cv_type_int16_t" = xyes; then : 12180 12181cat >>confdefs.h <<_ACEOF 12182#define HAVE_INT16_T 1 12183_ACEOF 12184 12185 12186fi 12187ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 12188if test "x$ac_cv_type_int32_t" = xyes; then : 12189 12190cat >>confdefs.h <<_ACEOF 12191#define HAVE_INT32_T 1 12192_ACEOF 12193 12194 12195fi 12196 12197 12198# Some libdb2 test programs want a shell that supports functions. 12199FCTSH=false 12200# Extract the first word of "sh", so it can be a program name with args. 12201set dummy sh; ac_word=$2 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12203$as_echo_n "checking for $ac_word... " >&6; } 12204if ${ac_cv_path_SH+:} false; then : 12205 $as_echo_n "(cached) " >&6 12206else 12207 case $SH in 12208 [\\/]* | ?:[\\/]*) 12209 ac_cv_path_SH="$SH" # Let the user override the test with a path. 12210 ;; 12211 *) 12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12213for as_dir in $PATH 12214do 12215 IFS=$as_save_IFS 12216 test -z "$as_dir" && as_dir=. 12217 for ac_exec_ext in '' $ac_executable_extensions; do 12218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12219 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12221 break 2 12222 fi 12223done 12224 done 12225IFS=$as_save_IFS 12226 12227 test -z "$ac_cv_path_SH" && ac_cv_path_SH="false" 12228 ;; 12229esac 12230fi 12231SH=$ac_cv_path_SH 12232if test -n "$SH"; then 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 12234$as_echo "$SH" >&6; } 12235else 12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12237$as_echo "no" >&6; } 12238fi 12239 12240 12241# Extract the first word of "sh5", so it can be a program name with args. 12242set dummy sh5; ac_word=$2 12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12244$as_echo_n "checking for $ac_word... " >&6; } 12245if ${ac_cv_path_SH5+:} false; then : 12246 $as_echo_n "(cached) " >&6 12247else 12248 case $SH5 in 12249 [\\/]* | ?:[\\/]*) 12250 ac_cv_path_SH5="$SH5" # Let the user override the test with a path. 12251 ;; 12252 *) 12253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12254for as_dir in $PATH 12255do 12256 IFS=$as_save_IFS 12257 test -z "$as_dir" && as_dir=. 12258 for ac_exec_ext in '' $ac_executable_extensions; do 12259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12260 ac_cv_path_SH5="$as_dir/$ac_word$ac_exec_ext" 12261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12262 break 2 12263 fi 12264done 12265 done 12266IFS=$as_save_IFS 12267 12268 test -z "$ac_cv_path_SH5" && ac_cv_path_SH5="false" 12269 ;; 12270esac 12271fi 12272SH5=$ac_cv_path_SH5 12273if test -n "$SH5"; then 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH5" >&5 12275$as_echo "$SH5" >&6; } 12276else 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12278$as_echo "no" >&6; } 12279fi 12280 12281 12282# Extract the first word of "bash", so it can be a program name with args. 12283set dummy bash; ac_word=$2 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12285$as_echo_n "checking for $ac_word... " >&6; } 12286if ${ac_cv_path_BASH+:} false; then : 12287 $as_echo_n "(cached) " >&6 12288else 12289 case $BASH in 12290 [\\/]* | ?:[\\/]*) 12291 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 12292 ;; 12293 *) 12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12295for as_dir in $PATH 12296do 12297 IFS=$as_save_IFS 12298 test -z "$as_dir" && as_dir=. 12299 for ac_exec_ext in '' $ac_executable_extensions; do 12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12301 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12303 break 2 12304 fi 12305done 12306 done 12307IFS=$as_save_IFS 12308 12309 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="false" 12310 ;; 12311esac 12312fi 12313BASH=$ac_cv_path_BASH 12314if test -n "$BASH"; then 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 12316$as_echo "$BASH" >&6; } 12317else 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12319$as_echo "no" >&6; } 12320fi 12321 12322 12323for prog in $SH $SH5 $BASH; do 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $prog supports functions" >&5 12325$as_echo_n "checking if $prog supports functions... " >&6; } 12326 if $prog -c 'foo() { true; }; foo' >/dev/null 2>&1; then 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12328$as_echo "yes" >&6; } 12329 FCTSH=$prog 12330 break 12331 else 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12333$as_echo "no" >&6; } 12334 fi 12335done 12336 12337 12338# Test for POSIX 2001 *printf support (X/Open System Interfaces extension 12339# to ANSI/ISO C 1999 specification). Specifically, positional 12340# specifications; not checking for other features like %zx at present. 12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX printf positional specification support" >&5 12342$as_echo_n "checking for POSIX printf positional specification support... " >&6; } 12343if ${ac_cv_printf_positional+:} false; then : 12344 $as_echo_n "(cached) " >&6 12345else 12346 12347if test "$cross_compiling" = yes; then : 12348 as_fn_error $? "Cannot test for printf positional argument support when cross compiling" "$LINENO" 5 12349else 12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12351/* end confdefs.h. */ 12352 12353#include <stdio.h> 12354#include <string.h> 12355const char expected[] = "200 100"; 12356int main () { 12357 char buf[30]; 12358 sprintf(buf, "%2\$x %1\$d", 100, 512); 12359 if (strcmp(expected, buf)) { 12360 fprintf(stderr,"bad result: <%s> wanted: <%s>\n", buf, expected); 12361 return 1; 12362 } 12363 return 0; 12364} 12365_ACEOF 12366if ac_fn_c_try_run "$LINENO"; then : 12367 ac_cv_printf_positional=yes 12368else 12369 ac_cv_printf_positional=no 12370fi 12371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12372 conftest.$ac_objext conftest.beam conftest.$ac_ext 12373fi 12374 12375fi 12376 12377# Nothing for autoconf.h for now. 12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_printf_positional" >&5 12379$as_echo "$ac_cv_printf_positional" >&6; } 12380 12381 12382# for t_locate_kdc test 12383 12384# Extract the first word of "dig", so it can be a program name with args. 12385set dummy dig; ac_word=$2 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12387$as_echo_n "checking for $ac_word... " >&6; } 12388if ${ac_cv_path_DIG+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390else 12391 case $DIG in 12392 [\\/]* | ?:[\\/]*) 12393 ac_cv_path_DIG="$DIG" # Let the user override the test with a path. 12394 ;; 12395 *) 12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12397for as_dir in $PATH 12398do 12399 IFS=$as_save_IFS 12400 test -z "$as_dir" && as_dir=. 12401 for ac_exec_ext in '' $ac_executable_extensions; do 12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12403 ac_cv_path_DIG="$as_dir/$ac_word$ac_exec_ext" 12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12405 break 2 12406 fi 12407done 12408 done 12409IFS=$as_save_IFS 12410 12411 test -z "$ac_cv_path_DIG" && ac_cv_path_DIG="false" 12412 ;; 12413esac 12414fi 12415DIG=$ac_cv_path_DIG 12416if test -n "$DIG"; then 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIG" >&5 12418$as_echo "$DIG" >&6; } 12419else 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12421$as_echo "no" >&6; } 12422fi 12423 12424 12425# Extract the first word of "nslookup", so it can be a program name with args. 12426set dummy nslookup; ac_word=$2 12427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12428$as_echo_n "checking for $ac_word... " >&6; } 12429if ${ac_cv_path_NSLOOKUP+:} false; then : 12430 $as_echo_n "(cached) " >&6 12431else 12432 case $NSLOOKUP in 12433 [\\/]* | ?:[\\/]*) 12434 ac_cv_path_NSLOOKUP="$NSLOOKUP" # Let the user override the test with a path. 12435 ;; 12436 *) 12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12438for as_dir in $PATH 12439do 12440 IFS=$as_save_IFS 12441 test -z "$as_dir" && as_dir=. 12442 for ac_exec_ext in '' $ac_executable_extensions; do 12443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12444 ac_cv_path_NSLOOKUP="$as_dir/$ac_word$ac_exec_ext" 12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12446 break 2 12447 fi 12448done 12449 done 12450IFS=$as_save_IFS 12451 12452 test -z "$ac_cv_path_NSLOOKUP" && ac_cv_path_NSLOOKUP="false" 12453 ;; 12454esac 12455fi 12456NSLOOKUP=$ac_cv_path_NSLOOKUP 12457if test -n "$NSLOOKUP"; then 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSLOOKUP" >&5 12459$as_echo "$NSLOOKUP" >&6; } 12460else 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12462$as_echo "no" >&6; } 12463fi 12464 12465 12466 12467# for kadmin 12468 12469for ac_prog in 'bison -y' byacc 12470do 12471 # Extract the first word of "$ac_prog", so it can be a program name with args. 12472set dummy $ac_prog; ac_word=$2 12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12474$as_echo_n "checking for $ac_word... " >&6; } 12475if ${ac_cv_prog_YACC+:} false; then : 12476 $as_echo_n "(cached) " >&6 12477else 12478 if test -n "$YACC"; then 12479 ac_cv_prog_YACC="$YACC" # Let the user override the test. 12480else 12481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12482for as_dir in $PATH 12483do 12484 IFS=$as_save_IFS 12485 test -z "$as_dir" && as_dir=. 12486 for ac_exec_ext in '' $ac_executable_extensions; do 12487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12488 ac_cv_prog_YACC="$ac_prog" 12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12490 break 2 12491 fi 12492done 12493 done 12494IFS=$as_save_IFS 12495 12496fi 12497fi 12498YACC=$ac_cv_prog_YACC 12499if test -n "$YACC"; then 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 12501$as_echo "$YACC" >&6; } 12502else 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12504$as_echo "no" >&6; } 12505fi 12506 12507 12508 test -n "$YACC" && break 12509done 12510test -n "$YACC" || YACC="yacc" 12511 12512ath_compat= 12513# Check whether --enable-athena was given. 12514if test "${enable_athena+set}" = set; then : 12515 enableval=$enable_athena; ath_compat=compat 12516fi 12517 12518# The following are tests for the presence of programs required for 12519# kadmin testing. 12520# Extract the first word of "runtest", so it can be a program name with args. 12521set dummy runtest; ac_word=$2 12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12523$as_echo_n "checking for $ac_word... " >&6; } 12524if ${ac_cv_prog_have_RUNTEST+:} false; then : 12525 $as_echo_n "(cached) " >&6 12526else 12527 if test -n "$have_RUNTEST"; then 12528 ac_cv_prog_have_RUNTEST="$have_RUNTEST" # Let the user override the test. 12529else 12530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12531for as_dir in $PATH 12532do 12533 IFS=$as_save_IFS 12534 test -z "$as_dir" && as_dir=. 12535 for ac_exec_ext in '' $ac_executable_extensions; do 12536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12537 ac_cv_prog_have_RUNTEST="runtest" 12538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12539 break 2 12540 fi 12541done 12542 done 12543IFS=$as_save_IFS 12544 12545fi 12546fi 12547have_RUNTEST=$ac_cv_prog_have_RUNTEST 12548if test -n "$have_RUNTEST"; then 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_RUNTEST" >&5 12550$as_echo "$have_RUNTEST" >&6; } 12551else 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12553$as_echo "no" >&6; } 12554fi 12555 12556 12557# Extract the first word of "perl", so it can be a program name with args. 12558set dummy perl; ac_word=$2 12559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12560$as_echo_n "checking for $ac_word... " >&6; } 12561if ${ac_cv_prog_have_PERL+:} false; then : 12562 $as_echo_n "(cached) " >&6 12563else 12564 if test -n "$have_PERL"; then 12565 ac_cv_prog_have_PERL="$have_PERL" # Let the user override the test. 12566else 12567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12568for as_dir in $PATH 12569do 12570 IFS=$as_save_IFS 12571 test -z "$as_dir" && as_dir=. 12572 for ac_exec_ext in '' $ac_executable_extensions; do 12573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12574 ac_cv_prog_have_PERL="perl" 12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12576 break 2 12577 fi 12578done 12579 done 12580IFS=$as_save_IFS 12581 12582fi 12583fi 12584have_PERL=$ac_cv_prog_have_PERL 12585if test -n "$have_PERL"; then 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_PERL" >&5 12587$as_echo "$have_PERL" >&6; } 12588else 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12590$as_echo "no" >&6; } 12591fi 12592 12593 12594if test "$have_PERL" = perl -a "$have_RUNTEST" = runtest -a "$TCL_LIBS" != ""; then 12595 DO_TEST=ok 12596fi 12597 12598 12599# The following are substituted into kadmin/testing/scripts/env-setup.sh 12600RBUILD=`pwd` 12601 12602case "$srcdir" in 12603/*) S_TOP=$srcdir ;; 12604*) S_TOP=`pwd`/$srcdir ;; 12605esac 12606 12607# Extract the first word of "expect", so it can be a program name with args. 12608set dummy expect; ac_word=$2 12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12610$as_echo_n "checking for $ac_word... " >&6; } 12611if ${ac_cv_path_EXPECT+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 case $EXPECT in 12615 [\\/]* | ?:[\\/]*) 12616 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. 12617 ;; 12618 *) 12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12620for as_dir in $PATH 12621do 12622 IFS=$as_save_IFS 12623 test -z "$as_dir" && as_dir=. 12624 for ac_exec_ext in '' $ac_executable_extensions; do 12625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12626 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" 12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12628 break 2 12629 fi 12630done 12631 done 12632IFS=$as_save_IFS 12633 12634 ;; 12635esac 12636fi 12637EXPECT=$ac_cv_path_EXPECT 12638if test -n "$EXPECT"; then 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 12640$as_echo "$EXPECT" >&6; } 12641else 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12643$as_echo "no" >&6; } 12644fi 12645 12646 12647# For kadmin/testing/util/Makefile.in 12648if test "$TCL_LIBS" != "" ; then 12649 DO_ALL=tcl 12650fi 12651 12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use priocntl hack" >&5 12653$as_echo_n "checking whether to use priocntl hack... " >&6; } 12654if ${krb5_cv_priocntl_hack+:} false; then : 12655 $as_echo_n "(cached) " >&6 12656else 12657 case $krb5_cv_host in 12658*-*-solaris2.9*) 12659 if test "$cross_compiling" = yes; then 12660 krb5_cv_priocntl_hack=yes 12661 else 12662 # Solaris patch 117171-11 (sparc) or 117172-11 (x86) 12663 # fixes the Solaris 9 bug where final pty output 12664 # gets lost on close. 12665 if showrev -p | $AWK 'BEGIN { e = 1 } 12666/Patch: 11717[12]/ { x = index($2, "-"); 12667if (substr($2, x + 1, length($2) - x) >= 11) 12668{ e = 0 } else { e = 1 } } 12669END { exit e; }'; then 12670 krb5_cv_priocntl_hack=no 12671 else 12672 krb5_cv_priocntl_hack=yes 12673 fi 12674 fi 12675 ;; 12676*) 12677 krb5_cv_priocntl_hack=no 12678 ;; 12679esac 12680fi 12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_priocntl_hack" >&5 12682$as_echo "$krb5_cv_priocntl_hack" >&6; } 12683if test "$krb5_cv_priocntl_hack" = yes; then 12684 PRIOCNTL_HACK=1 12685else 12686 PRIOCNTL_HACK=0 12687fi 12688 12689ac_config_files="$ac_config_files kadmin/testing/scripts/env-setup.sh:kadmin/testing/scripts/env-setup.shin" 12690 12691# for lib/kadm5 12692# Extract the first word of "runtest", so it can be a program name with args. 12693set dummy runtest; ac_word=$2 12694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12695$as_echo_n "checking for $ac_word... " >&6; } 12696if ${ac_cv_prog_RUNTEST+:} false; then : 12697 $as_echo_n "(cached) " >&6 12698else 12699 if test -n "$RUNTEST"; then 12700 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. 12701else 12702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12703for as_dir in $PATH 12704do 12705 IFS=$as_save_IFS 12706 test -z "$as_dir" && as_dir=. 12707 for ac_exec_ext in '' $ac_executable_extensions; do 12708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12709 ac_cv_prog_RUNTEST="runtest" 12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12711 break 2 12712 fi 12713done 12714 done 12715IFS=$as_save_IFS 12716 12717fi 12718fi 12719RUNTEST=$ac_cv_prog_RUNTEST 12720if test -n "$RUNTEST"; then 12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 12722$as_echo "$RUNTEST" >&6; } 12723else 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12725$as_echo "no" >&6; } 12726fi 12727 12728 12729# Extract the first word of "perl", so it can be a program name with args. 12730set dummy perl; ac_word=$2 12731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12732$as_echo_n "checking for $ac_word... " >&6; } 12733if ${ac_cv_prog_PERL+:} false; then : 12734 $as_echo_n "(cached) " >&6 12735else 12736 if test -n "$PERL"; then 12737 ac_cv_prog_PERL="$PERL" # Let the user override the test. 12738else 12739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12740for as_dir in $PATH 12741do 12742 IFS=$as_save_IFS 12743 test -z "$as_dir" && as_dir=. 12744 for ac_exec_ext in '' $ac_executable_extensions; do 12745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12746 ac_cv_prog_PERL="perl" 12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12748 break 2 12749 fi 12750done 12751 done 12752IFS=$as_save_IFS 12753 12754fi 12755fi 12756PERL=$ac_cv_prog_PERL 12757if test -n "$PERL"; then 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 12759$as_echo "$PERL" >&6; } 12760else 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12762$as_echo "no" >&6; } 12763fi 12764 12765 12766 12767# lib/gssapi 12768ac_fn_c_check_header_mongrel "$LINENO" "xom.h" "ac_cv_header_xom_h" "$ac_includes_default" 12769if test "x$ac_cv_header_xom_h" = xyes; then : 12770 12771 include_xom='awk '\''END{printf("%cinclude <xom.h>\n", 35);}'\'' < /dev/null' 12772else 12773 12774 include_xom='echo "/* no xom.h */"' 12775fi 12776 12777 12778 12779 12780 12781# lib/rpc 12782### Check where struct rpcent is declared. 12783 12784# This is necessary to determine: 12785# 1. If /usr/include/netdb.h declares struct rpcent 12786# 2. If /usr/include/rpc/netdb.h declares struct rpcent 12787 12788# We have our own rpc/netdb.h, and if /usr/include/netdb.h includes 12789# rpc/netdb.h, then nastiness could happen. 12790 12791# Logic: If /usr/include/netdb.h declares struct rpcent, then check 12792# rpc/netdb.h. If /usr/include/rpc/netdb.h declares struct rpcent, 12793# then define STRUCT_RPCENT_IN_RPC_NETDB_H, otherwise do not. If 12794# neither netdb.h nor rpc/netdb.h declares struct rpcent, then define 12795# STRUCT_RPCENT_IN_RPC_NETDB_H anyway. 12796 12797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where struct rpcent is declared" >&5 12798$as_echo_n "checking where struct rpcent is declared... " >&6; } 12799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12800/* end confdefs.h. */ 12801#include <netdb.h> 12802int 12803main () 12804{ 12805struct rpcent e; 12806char c = e.r_name[0]; 12807int i = e.r_number; 12808 ; 12809 return 0; 12810} 12811_ACEOF 12812if ac_fn_c_try_compile "$LINENO"; then : 12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12814/* end confdefs.h. */ 12815#include <rpc/netdb.h> 12816int 12817main () 12818{ 12819struct rpcent e; 12820char c = e.r_name[0]; 12821int i = e.r_number; 12822 ; 12823 return 0; 12824} 12825_ACEOF 12826if ac_fn_c_try_compile "$LINENO"; then : 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: rpc/netdb.h" >&5 12828$as_echo "rpc/netdb.h" >&6; } 12829rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H' 12830else 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: netdb.h" >&5 12832$as_echo "netdb.h" >&6; } 12833fi 12834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12835else 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5 12837$as_echo "nowhere" >&6; } 12838rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H' 12839fi 12840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12841 12842 12843for ac_header in sys/select.h sys/time.h unistd.h 12844do : 12845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12846ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12847if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12848 cat >>confdefs.h <<_ACEOF 12849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12850_ACEOF 12851 12852fi 12853 12854done 12855 12856if test $ac_cv_header_sys_select_h = yes; then 12857 GSSRPC__SYS_SELECT_H='#include <sys/select.h>' 12858else 12859 GSSRPC__SYS_SELECT_H='/* #include <sys/select.h> */' 12860fi 12861 12862if test $ac_cv_header_sys_time_h = yes; then 12863 GSSRPC__SYS_TIME_H='#include <sys/time.h>' 12864else 12865 GSSRPC__SYS_TIME_H='/* #include <sys/time.h> */' 12866fi 12867 12868if test $ac_cv_header_unistd_h = yes; then 12869 GSSRPC__UNISTD_H='#include <unistd.h>' 12870else 12871 GSSRPC__UNISTD_H='/* #include <unistd.h> */' 12872fi 12873 12874 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN in sys/param.h" >&5 12876$as_echo_n "checking for MAXHOSTNAMELEN in sys/param.h... " >&6; } 12877if ${krb5_cv_header_sys_param_h_maxhostnamelen+:} false; then : 12878 $as_echo_n "(cached) " >&6 12879else 12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12881/* end confdefs.h. */ 12882#include <sys/param.h> 12883int 12884main () 12885{ 12886int i = MAXHOSTNAMELEN; 12887 ; 12888 return 0; 12889} 12890_ACEOF 12891if ac_fn_c_try_compile "$LINENO"; then : 12892 krb5_cv_header_sys_param_h_maxhostnamelen=yes 12893else 12894 krb5_cv_header_sys_param_h_maxhostnamelen=no 12895fi 12896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12897fi 12898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_sys_param_h_maxhostnamelen" >&5 12899$as_echo "$krb5_cv_header_sys_param_h_maxhostnamelen" >&6; } 12900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN in netdb.h" >&5 12901$as_echo_n "checking for MAXHOSTNAMELEN in netdb.h... " >&6; } 12902if ${krb5_cv_header_netdb_h_maxhostnamelen+:} false; then : 12903 $as_echo_n "(cached) " >&6 12904else 12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12906/* end confdefs.h. */ 12907#include <netdb.h> 12908int 12909main () 12910{ 12911int i = MAXHOSTNAMELEN; 12912 ; 12913 return 0; 12914} 12915_ACEOF 12916if ac_fn_c_try_compile "$LINENO"; then : 12917 krb5_cv_header_netdb_h_maxhostnamelen=yes 12918else 12919 krb5_cv_header_netdb_h_maxhostnamelen=no 12920fi 12921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12922fi 12923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_netdb_h_maxhostnamelen" >&5 12924$as_echo "$krb5_cv_header_netdb_h_maxhostnamelen" >&6; } 12925 12926GSSRPC__SYS_PARAM_H='/* #include <sys/param.h> */' 12927GSSRPC__NETDB_H='/* #include <netdb.h> */' 12928if test $krb5_cv_header_sys_param_h_maxhostnamelen = yes; then 12929 GSSRPC__SYS_PARAM_H='#include <sys/param.h>' 12930else 12931 if test $krb5_cv_header_netdb_h_maxhostnamelen = yes; then 12932 GSSRPC__NETDB_H='#include <netdb.h>' 12933 else 12934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find MAXHOSTNAMELEN definition; faking it" >&5 12935$as_echo "$as_me: WARNING: can't find MAXHOSTNAMELEN definition; faking it" >&2;} 12936 fi 12937fi 12938 12939 12940 12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD type aliases" >&5 12942$as_echo_n "checking for BSD type aliases... " >&6; } 12943if ${krb5_cv_type_bsdaliases+:} false; then : 12944 $as_echo_n "(cached) " >&6 12945else 12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12947/* end confdefs.h. */ 12948#include <sys/types.h> 12949#if HAVE_UNISTD_H 12950#include <unistd.h> 12951#endif 12952int 12953main () 12954{ 12955u_char c; 12956u_int i; 12957u_long l; 12958 ; 12959 return 0; 12960} 12961_ACEOF 12962if ac_fn_c_try_compile "$LINENO"; then : 12963 krb5_cv_type_bsdaliases=yes 12964else 12965 krb5_cv_type_bsdaliases=no 12966fi 12967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12968fi 12969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_bsdaliases" >&5 12970$as_echo "$krb5_cv_type_bsdaliases" >&6; } 12971if test $krb5_cv_type_bsdaliases = yes; then 12972 GSSRPC__BSD_TYPEALIASES='/* #undef GSSRPC__BSD_TYPEALIASES */' 12973else 12974 GSSRPC__BSD_TYPEALIASES='#define GSSRPC__BSD_TYPEALIASES 1' 12975fi 12976 12977 12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of setrpcent" >&5 12979$as_echo_n "checking return type of setrpcent... " >&6; } 12980if ${k5_cv_type_setrpcent+:} false; then : 12981 $as_echo_n "(cached) " >&6 12982else 12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12984/* end confdefs.h. */ 12985#include <netdb.h> 12986#ifdef __cplusplus 12987extern "C" 12988#endif 12989extern void setrpcent(); 12990int 12991main () 12992{ 12993int i; 12994 ; 12995 return 0; 12996} 12997_ACEOF 12998if ac_fn_c_try_compile "$LINENO"; then : 12999 k5_cv_type_setrpcent=void 13000else 13001 k5_cv_type_setrpcent=int 13002fi 13003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13004fi 13005 13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_setrpcent" >&5 13007$as_echo "$k5_cv_type_setrpcent" >&6; } 13008 13009cat >>confdefs.h <<_ACEOF 13010#define SETRPCENT_TYPE $k5_cv_type_setrpcent 13011_ACEOF 13012 13013 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of endrpcent" >&5 13015$as_echo_n "checking return type of endrpcent... " >&6; } 13016if ${k5_cv_type_endrpcent+:} false; then : 13017 $as_echo_n "(cached) " >&6 13018else 13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13020/* end confdefs.h. */ 13021#include <netdb.h> 13022#ifdef __cplusplus 13023extern "C" 13024#endif 13025extern void endrpcent(); 13026int 13027main () 13028{ 13029int i; 13030 ; 13031 return 0; 13032} 13033_ACEOF 13034if ac_fn_c_try_compile "$LINENO"; then : 13035 k5_cv_type_endrpcent=void 13036else 13037 k5_cv_type_endrpcent=int 13038fi 13039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13040fi 13041 13042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_endrpcent" >&5 13043$as_echo "$k5_cv_type_endrpcent" >&6; } 13044 13045cat >>confdefs.h <<_ACEOF 13046#define ENDRPCENT_TYPE $k5_cv_type_endrpcent 13047_ACEOF 13048 13049ac_config_files="$ac_config_files include/gssrpc/types.h:include/gssrpc/types.hin" 13050 13051 13052# for pkinit 13053# Check whether --enable-pkinit was given. 13054if test "${enable_pkinit+set}" = set; then : 13055 enableval=$enable_pkinit; 13056else 13057 enable_pkinit=try 13058fi 13059 13060if test "$enable_pkinit" = yes || test "$enable_pkinit" = try; then 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a recent enough OpenSSL" >&5 13062$as_echo_n "checking for a recent enough OpenSSL... " >&6; } 13063if ${k5_cv_openssl_version_okay+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13067/* end confdefs.h. */ 13068#include <openssl/opensslv.h> 13069#if OPENSSL_VERSION_NUMBER < 0x10000000L 13070# error openssl is too old, need 1.0.0 13071#endif 13072int i = 1; 13073 13074_ACEOF 13075if ac_fn_c_try_compile "$LINENO"; then : 13076 k5_cv_openssl_version_okay=yes 13077else 13078 k5_cv_openssl_version_okay=no 13079fi 13080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13081fi 13082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_openssl_version_okay" >&5 13083$as_echo "$k5_cv_openssl_version_okay" >&6; } 13084 old_LIBS="$LIBS" 13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS7_get_signer_info in -lcrypto" >&5 13086$as_echo_n "checking for PKCS7_get_signer_info in -lcrypto... " >&6; } 13087if ${ac_cv_lib_crypto_PKCS7_get_signer_info+:} false; then : 13088 $as_echo_n "(cached) " >&6 13089else 13090 ac_check_lib_save_LIBS=$LIBS 13091LIBS="-lcrypto $LIBS" 13092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13093/* end confdefs.h. */ 13094 13095/* Override any GCC internal prototype to avoid an error. 13096 Use char because int might match the return type of a GCC 13097 builtin and then its argument prototype would still apply. */ 13098#ifdef __cplusplus 13099extern "C" 13100#endif 13101char PKCS7_get_signer_info (); 13102int 13103main () 13104{ 13105return PKCS7_get_signer_info (); 13106 ; 13107 return 0; 13108} 13109_ACEOF 13110if ac_fn_c_try_link "$LINENO"; then : 13111 ac_cv_lib_crypto_PKCS7_get_signer_info=yes 13112else 13113 ac_cv_lib_crypto_PKCS7_get_signer_info=no 13114fi 13115rm -f core conftest.err conftest.$ac_objext \ 13116 conftest$ac_exeext conftest.$ac_ext 13117LIBS=$ac_check_lib_save_LIBS 13118fi 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_PKCS7_get_signer_info" >&5 13120$as_echo "$ac_cv_lib_crypto_PKCS7_get_signer_info" >&6; } 13121if test "x$ac_cv_lib_crypto_PKCS7_get_signer_info" = xyes; then : 13122 cat >>confdefs.h <<_ACEOF 13123#define HAVE_LIBCRYPTO 1 13124_ACEOF 13125 13126 LIBS="-lcrypto $LIBS" 13127 13128fi 13129 13130 LIBS="$old_LIBS" 13131fi 13132if test "$k5_cv_openssl_version_okay" = yes && (test "$enable_pkinit" = yes || test "$enable_pkinit" = try); then 13133 ac_config_files="$ac_config_files plugins/preauth/pkinit/Makefile:$srcdir/./config/pre.in:plugins/preauth/pkinit/Makefile.in:plugins/preauth/pkinit/deps:$srcdir/./config/post.in" 13134 13135 13136 13137 ac_config_files="$ac_config_files tests/softpkcs11/Makefile:$srcdir/./config/pre.in:tests/softpkcs11/Makefile.in:tests/softpkcs11/deps:$srcdir/./config/post.in" 13138 13139 13140 13141 PKINIT=yes 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMS_get0_content in -lcrypto" >&5 13143$as_echo_n "checking for CMS_get0_content in -lcrypto... " >&6; } 13144if ${ac_cv_lib_crypto_CMS_get0_content+:} false; then : 13145 $as_echo_n "(cached) " >&6 13146else 13147 ac_check_lib_save_LIBS=$LIBS 13148LIBS="-lcrypto $LIBS" 13149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13150/* end confdefs.h. */ 13151 13152/* Override any GCC internal prototype to avoid an error. 13153 Use char because int might match the return type of a GCC 13154 builtin and then its argument prototype would still apply. */ 13155#ifdef __cplusplus 13156extern "C" 13157#endif 13158char CMS_get0_content (); 13159int 13160main () 13161{ 13162return CMS_get0_content (); 13163 ; 13164 return 0; 13165} 13166_ACEOF 13167if ac_fn_c_try_link "$LINENO"; then : 13168 ac_cv_lib_crypto_CMS_get0_content=yes 13169else 13170 ac_cv_lib_crypto_CMS_get0_content=no 13171fi 13172rm -f core conftest.err conftest.$ac_objext \ 13173 conftest$ac_exeext conftest.$ac_ext 13174LIBS=$ac_check_lib_save_LIBS 13175fi 13176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CMS_get0_content" >&5 13177$as_echo "$ac_cv_lib_crypto_CMS_get0_content" >&6; } 13178if test "x$ac_cv_lib_crypto_CMS_get0_content" = xyes; then : 13179 13180$as_echo "#define HAVE_OPENSSL_CMS 1" >>confdefs.h 13181 13182fi 13183 13184elif test "$k5_cv_openssl_version_okay" = no && test "$enable_pkinit" = yes; then 13185 as_fn_error $? "Version of OpenSSL is too old; cannot enable PKINIT." "$LINENO" 5 13186else 13187 13188$as_echo "#define DISABLE_PKINIT 1" >>confdefs.h 13189 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PKINIT support." >&5 13191$as_echo "$as_me: Disabling PKINIT support." >&6;} 13192 PKINIT=no 13193fi 13194 13195 13196# for lib/apputils 13197ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 13198if test "x$ac_cv_func_daemon" = xyes; then : 13199 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h 13200 13201else 13202 case " $LIBOBJS " in 13203 *" daemon.$ac_objext "* ) ;; 13204 *) LIBOBJS="$LIBOBJS daemon.$ac_objext" 13205 ;; 13206esac 13207 13208fi 13209 13210 13211 13212# for tests/ 13213if test x"$RUNTEST" != x; then 13214 HAVE_RUNTEST=yes 13215else 13216 HAVE_RUNTEST=no 13217fi 13218 13219 13220# For Python tests. Python version 3.2.4 is required as prior 13221# versions do not accept string input to subprocess.Popen.communicate 13222# when universal_newlines is set. 13223PYTHON_MINVERSION=3.2.4 13224 13225# Extract the first word of "python3", so it can be a program name with args. 13226set dummy python3; ac_word=$2 13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13228$as_echo_n "checking for $ac_word... " >&6; } 13229if ${ac_cv_prog_PYTHON+:} false; then : 13230 $as_echo_n "(cached) " >&6 13231else 13232 if test -n "$PYTHON"; then 13233 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. 13234else 13235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13236for as_dir in $PATH 13237do 13238 IFS=$as_save_IFS 13239 test -z "$as_dir" && as_dir=. 13240 for ac_exec_ext in '' $ac_executable_extensions; do 13241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13242 ac_cv_prog_PYTHON="python3" 13243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13244 break 2 13245 fi 13246done 13247 done 13248IFS=$as_save_IFS 13249 13250fi 13251fi 13252PYTHON=$ac_cv_prog_PYTHON 13253if test -n "$PYTHON"; then 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 13255$as_echo "$PYTHON" >&6; } 13256else 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13258$as_echo "no" >&6; } 13259fi 13260 13261 13262if test x"$PYTHON" = x; then 13263 # Extract the first word of "python", so it can be a program name with args. 13264set dummy python; ac_word=$2 13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13266$as_echo_n "checking for $ac_word... " >&6; } 13267if ${ac_cv_prog_PYTHON+:} false; then : 13268 $as_echo_n "(cached) " >&6 13269else 13270 if test -n "$PYTHON"; then 13271 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. 13272else 13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13274for as_dir in $PATH 13275do 13276 IFS=$as_save_IFS 13277 test -z "$as_dir" && as_dir=. 13278 for ac_exec_ext in '' $ac_executable_extensions; do 13279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13280 ac_cv_prog_PYTHON="python" 13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13282 break 2 13283 fi 13284done 13285 done 13286IFS=$as_save_IFS 13287 13288fi 13289fi 13290PYTHON=$ac_cv_prog_PYTHON 13291if test -n "$PYTHON"; then 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 13293$as_echo "$PYTHON" >&6; } 13294else 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13296$as_echo "no" >&6; } 13297fi 13298 13299 13300fi 13301HAVE_PYTHON=no 13302if test x"$PYTHON" != x; then 13303 wantver="(sys.hexversion >= 0x30204F0)" 13304 if "$PYTHON" -c "import sys; sys.exit(not $wantver and 1 or 0)"; then 13305 HAVE_PYTHON=yes 13306 fi 13307fi 13308 13309 13310# For cmocka tests. 13311CMOCKA_LIBS= 13312HAVE_CMOCKA=no 13313HAVE_CMOCKA_H=no 13314HAVE_CMOCKA_LIB=no 13315ac_fn_c_check_header_compile "$LINENO" "cmocka.h" "ac_cv_header_cmocka_h" " 13316#include <stdarg.h> 13317#include <stddef.h> 13318#include <setjmp.h> 13319" 13320if test "x$ac_cv_header_cmocka_h" = xyes; then : 13321 HAVE_CMOCKA_H=yes 13322else 13323 : 13324fi 13325 13326 13327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _cmocka_run_group_tests in -lcmocka" >&5 13328$as_echo_n "checking for _cmocka_run_group_tests in -lcmocka... " >&6; } 13329if ${ac_cv_lib_cmocka__cmocka_run_group_tests+:} false; then : 13330 $as_echo_n "(cached) " >&6 13331else 13332 ac_check_lib_save_LIBS=$LIBS 13333LIBS="-lcmocka $LIBS" 13334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13335/* end confdefs.h. */ 13336 13337/* Override any GCC internal prototype to avoid an error. 13338 Use char because int might match the return type of a GCC 13339 builtin and then its argument prototype would still apply. */ 13340#ifdef __cplusplus 13341extern "C" 13342#endif 13343char _cmocka_run_group_tests (); 13344int 13345main () 13346{ 13347return _cmocka_run_group_tests (); 13348 ; 13349 return 0; 13350} 13351_ACEOF 13352if ac_fn_c_try_link "$LINENO"; then : 13353 ac_cv_lib_cmocka__cmocka_run_group_tests=yes 13354else 13355 ac_cv_lib_cmocka__cmocka_run_group_tests=no 13356fi 13357rm -f core conftest.err conftest.$ac_objext \ 13358 conftest$ac_exeext conftest.$ac_ext 13359LIBS=$ac_check_lib_save_LIBS 13360fi 13361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cmocka__cmocka_run_group_tests" >&5 13362$as_echo "$ac_cv_lib_cmocka__cmocka_run_group_tests" >&6; } 13363if test "x$ac_cv_lib_cmocka__cmocka_run_group_tests" = xyes; then : 13364 HAVE_CMOCKA_LIB=yes 13365fi 13366 13367if test "$HAVE_CMOCKA_LIB" = yes && test "$HAVE_CMOCKA_H" = yes; then 13368 HAVE_CMOCKA=yes 13369 CMOCKA_LIBS='-lcmocka' 13370 13371$as_echo "#define HAVE_CMOCKA 1" >>confdefs.h 13372 13373fi 13374 13375 13376 13377# For URI lookup tests. Requires resolv_wrapper >= 1.1.5 for URI 13378# support. 13379HAVE_RESOLV_WRAPPER=0 13380if test -n "$PKG_CONFIG" && \ 13381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"resolv_wrapper >= 1.1.5\""; } >&5 13382 ($PKG_CONFIG --exists --print-errors "resolv_wrapper >= 1.1.5") 2>&5 13383 ac_status=$? 13384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13385 test $ac_status = 0; }; then 13386 HAVE_RESOLV_WRAPPER=1 13387fi 13388 13389 13390# for plugins/kdb/db2 13391 13392# AIX is unusual in that it wants all symbols resolved at link time 13393# Fortunately, it will allow us to link the kdb library now, even if 13394# it is linked again later. 13395case $krb5_cv_host in 13396*-*-aix*) 13397 DB_EXTRA_LIBS=-ldb 13398 ;; 13399*) 13400 DB_EXTRA_LIBS= 13401 ;; 13402esac 13403 13404 13405 13406 13407# Check for thread safety issues. 13408# (Is there a better place for this?) 13409# tsfuncs="getpwnam_r getpwuid_r gethostbyname_r getservbyname_r gmtime_r localtime_r" 13410# Removed getpwnam_r and getpwuid_r because include/configure.in has some 13411# more careful checks, and may decide to pretend that they're not found if 13412# the function signatures can't be figured out. 13413tsfuncs="gethostbyname_r getservbyname_r gmtime_r localtime_r" 13414for ac_func in $tsfuncs 13415do : 13416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13417ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13418if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13419 cat >>confdefs.h <<_ACEOF 13420#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13421_ACEOF 13422 13423fi 13424done 13425 13426if test "$enable_thread_support" = yes; then 13427 tsmissing="" 13428 for ts in $tsfuncs; do 13429 if eval "test \"\${ac_cv_func_$ts}\" != yes"; then 13430 tsmissing="$tsmissing $ts" 13431 fi 13432 done 13433 if test "$ac_cv_func_res_nsearch/$ac_cv_lib_resolv_res_nsearch" = "no/no"; then 13434 tsmissing="$tsmissing res_nsearch" 13435 fi 13436 if test "$tsmissing" != ""; then 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Some functions that are needed for library thread" >&5 13438$as_echo "$as_me: WARNING: Some functions that are needed for library thread" >&2;} 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: safety appear to be missing." >&5 13440$as_echo "$as_me: WARNING: safety appear to be missing." >&2;} 13441 for ts in $tsmissing; do 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing thread-safe function: $ts" >&5 13443$as_echo "$as_me: WARNING: missing thread-safe function: $ts" >&2;} 13444 done 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without these functions, the installed libraries" >&5 13446$as_echo "$as_me: WARNING: Without these functions, the installed libraries" >&2;} 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: may not be thread-safe." >&5 13448$as_echo "$as_me: WARNING: may not be thread-safe." >&2;} 13449 fi # tsmissing not empty 13450fi # enable_thread_support 13451 13452# Sadly, we seem to have accidentally committed ourselves in 1.4 to 13453# an ABI that includes the existence of libkrb5support.0 even 13454# though random apps should never use anything from it. And on 13455# the Mac, to which that didn't apply, we can't use major version 0. 13456 13457case $krb5_cv_host in 13458*-*-darwin* | *-*-rhapsody*) SUPPORTLIB_MAJOR=1 ;; 13459*) SUPPORTLIB_MAJOR=0 ;; 13460esac 13461 13462 13463 13464if test "$COM_ERR_VERSION" = k5 ; then 13465 ac_config_files="$ac_config_files util/et/Makefile:$srcdir/./config/pre.in:util/et/Makefile.in:util/et/deps:$srcdir/./config/post.in" 13466 13467 13468 13469fi 13470if test "$SS_VERSION" = k5 ; then 13471 ac_config_files="$ac_config_files util/ss/Makefile:$srcdir/./config/pre.in:util/ss/Makefile.in:util/ss/deps:$srcdir/./config/post.in" 13472 13473 13474 13475fi 13476 13477 13478ldap_plugin_dir="" 13479ldap_lib="" 13480if test -n "$OPENLDAP_PLUGIN"; then 13481 for ac_header in ldap.h lber.h 13482do : 13483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13484ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13486 cat >>confdefs.h <<_ACEOF 13487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13488_ACEOF 13489 : 13490else 13491 as_fn_error $? "$ac_header not found" "$LINENO" 5 13492fi 13493 13494done 13495 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_str2dn in -lldap" >&5 13497$as_echo_n "checking for ldap_str2dn in -lldap... " >&6; } 13498if ${ac_cv_lib_ldap_ldap_str2dn+:} false; then : 13499 $as_echo_n "(cached) " >&6 13500else 13501 ac_check_lib_save_LIBS=$LIBS 13502LIBS="-lldap $LIBS" 13503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505 13506/* Override any GCC internal prototype to avoid an error. 13507 Use char because int might match the return type of a GCC 13508 builtin and then its argument prototype would still apply. */ 13509#ifdef __cplusplus 13510extern "C" 13511#endif 13512char ldap_str2dn (); 13513int 13514main () 13515{ 13516return ldap_str2dn (); 13517 ; 13518 return 0; 13519} 13520_ACEOF 13521if ac_fn_c_try_link "$LINENO"; then : 13522 ac_cv_lib_ldap_ldap_str2dn=yes 13523else 13524 ac_cv_lib_ldap_ldap_str2dn=no 13525fi 13526rm -f core conftest.err conftest.$ac_objext \ 13527 conftest$ac_exeext conftest.$ac_ext 13528LIBS=$ac_check_lib_save_LIBS 13529fi 13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_str2dn" >&5 13531$as_echo "$ac_cv_lib_ldap_ldap_str2dn" >&6; } 13532if test "x$ac_cv_lib_ldap_ldap_str2dn" = xyes; then : 13533 : 13534else 13535 as_fn_error $? "libldap not found or missing ldap_str2dn" "$LINENO" 5 13536fi 13537 13538 13539 BER_OKAY=0 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -lldap" >&5 13541$as_echo_n "checking for ber_init in -lldap... " >&6; } 13542if ${ac_cv_lib_ldap_ber_init+:} false; then : 13543 $as_echo_n "(cached) " >&6 13544else 13545 ac_check_lib_save_LIBS=$LIBS 13546LIBS="-lldap $LIBS" 13547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13548/* end confdefs.h. */ 13549 13550/* Override any GCC internal prototype to avoid an error. 13551 Use char because int might match the return type of a GCC 13552 builtin and then its argument prototype would still apply. */ 13553#ifdef __cplusplus 13554extern "C" 13555#endif 13556char ber_init (); 13557int 13558main () 13559{ 13560return ber_init (); 13561 ; 13562 return 0; 13563} 13564_ACEOF 13565if ac_fn_c_try_link "$LINENO"; then : 13566 ac_cv_lib_ldap_ber_init=yes 13567else 13568 ac_cv_lib_ldap_ber_init=no 13569fi 13570rm -f core conftest.err conftest.$ac_objext \ 13571 conftest$ac_exeext conftest.$ac_ext 13572LIBS=$ac_check_lib_save_LIBS 13573fi 13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ber_init" >&5 13575$as_echo "$ac_cv_lib_ldap_ber_init" >&6; } 13576if test "x$ac_cv_lib_ldap_ber_init" = xyes; then : 13577 BER_OKAY=1 13578fi 13579 13580 if test "$BER_OKAY" = "1"; then 13581 LDAP_LIBS='-lldap' 13582 else 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5 13584$as_echo_n "checking for ber_init in -llber... " >&6; } 13585if ${ac_cv_lib_lber_ber_init+:} false; then : 13586 $as_echo_n "(cached) " >&6 13587else 13588 ac_check_lib_save_LIBS=$LIBS 13589LIBS="-llber $LIBS" 13590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13591/* end confdefs.h. */ 13592 13593/* Override any GCC internal prototype to avoid an error. 13594 Use char because int might match the return type of a GCC 13595 builtin and then its argument prototype would still apply. */ 13596#ifdef __cplusplus 13597extern "C" 13598#endif 13599char ber_init (); 13600int 13601main () 13602{ 13603return ber_init (); 13604 ; 13605 return 0; 13606} 13607_ACEOF 13608if ac_fn_c_try_link "$LINENO"; then : 13609 ac_cv_lib_lber_ber_init=yes 13610else 13611 ac_cv_lib_lber_ber_init=no 13612fi 13613rm -f core conftest.err conftest.$ac_objext \ 13614 conftest$ac_exeext conftest.$ac_ext 13615LIBS=$ac_check_lib_save_LIBS 13616fi 13617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5 13618$as_echo "$ac_cv_lib_lber_ber_init" >&6; } 13619if test "x$ac_cv_lib_lber_ber_init" = xyes; then : 13620 BER_OKAY=1 13621else 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libber not found" >&5 13623$as_echo "$as_me: WARNING: libber not found" >&2;} 13624fi 13625 13626 if test "$BER_OKAY" = "1"; then 13627 LDAP_LIBS='-lldap -llber' 13628 else 13629 as_fn_error $? "\"BER library missing - cannot build LDAP database module\"" "$LINENO" 5 13630 fi 13631 fi 13632 13633$as_echo "#define ENABLE_LDAP 1" >>confdefs.h 13634 13635 13636 13637 for ac_header in sasl/sasl.h 13638do : 13639 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default" 13640if test "x$ac_cv_header_sasl_sasl_h" = xyes; then : 13641 cat >>confdefs.h <<_ACEOF 13642#define HAVE_SASL_SASL_H 1 13643_ACEOF 13644 HAVE_SASL=yes 13645else 13646 HAVE_SASL=no 13647fi 13648 13649done 13650 13651 13652 if test "$HAVE_SASL" = no; then 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not building LDAP SASL support" >&5 13654$as_echo "$as_me: WARNING: not building LDAP SASL support" >&2;} 13655 fi 13656 13657 ac_config_files="$ac_config_files plugins/kdb/ldap/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/Makefile.in:plugins/kdb/ldap/deps:$srcdir/./config/post.in" 13658 13659 13660 13661 ac_config_files="$ac_config_files plugins/kdb/ldap/ldap_util/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/ldap_util/Makefile.in:plugins/kdb/ldap/ldap_util/deps:$srcdir/./config/post.in" 13662 13663 13664 13665 ac_config_files="$ac_config_files plugins/kdb/ldap/libkdb_ldap/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/libkdb_ldap/Makefile.in:plugins/kdb/ldap/libkdb_ldap/deps:$srcdir/./config/post.in" 13666 13667 13668 13669 ldap_plugin_dir='plugins/kdb/ldap plugins/kdb/ldap/ldap_util' 13670 LDAP=yes 13671else 13672 LDAP=no 13673fi 13674 13675 13676# This check is for plugins/preauth/securid_sam2 13677sam2_plugin="" 13678old_CFLAGS=$CFLAGS 13679CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5 13681$as_echo_n "checking for SD_Init in -laceclnt... " >&6; } 13682if ${ac_cv_lib_aceclnt_SD_Init+:} false; then : 13683 $as_echo_n "(cached) " >&6 13684else 13685 ac_check_lib_save_LIBS=$LIBS 13686LIBS="-laceclnt $LIBS" 13687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13688/* end confdefs.h. */ 13689 13690/* Override any GCC internal prototype to avoid an error. 13691 Use char because int might match the return type of a GCC 13692 builtin and then its argument prototype would still apply. */ 13693#ifdef __cplusplus 13694extern "C" 13695#endif 13696char SD_Init (); 13697int 13698main () 13699{ 13700return SD_Init (); 13701 ; 13702 return 0; 13703} 13704_ACEOF 13705if ac_fn_c_try_link "$LINENO"; then : 13706 ac_cv_lib_aceclnt_SD_Init=yes 13707else 13708 ac_cv_lib_aceclnt_SD_Init=no 13709fi 13710rm -f core conftest.err conftest.$ac_objext \ 13711 conftest$ac_exeext conftest.$ac_ext 13712LIBS=$ac_check_lib_save_LIBS 13713fi 13714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init" >&5 13715$as_echo "$ac_cv_lib_aceclnt_SD_Init" >&6; } 13716if test "x$ac_cv_lib_aceclnt_SD_Init" = xyes; then : 13717 13718 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling RSA securID support" >&5 13719$as_echo "$as_me: Enabling RSA securID support" >&6;} 13720 ac_config_files="$ac_config_files plugins/preauth/securid_sam2/Makefile:$srcdir/./config/pre.in:plugins/preauth/securid_sam2/Makefile.in:plugins/preauth/securid_sam2/deps:$srcdir/./config/post.in" 13721 13722 13723 13724 sam2_plugin=plugins/preauth/securid_sam2 13725 13726fi 13727 13728 13729CFLAGS=$old_CFLAGS 13730 13731lmdb_plugin_dir="" 13732HAVE_LMDB=no 13733 13734# Check whether --with-lmdb was given. 13735if test "${with_lmdb+set}" = set; then : 13736 withval=$with_lmdb; 13737else 13738 withval=auto 13739fi 13740 13741if test "$withval" = auto -o "$withval" = yes; then 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5 13743$as_echo_n "checking for mdb_env_create in -llmdb... " >&6; } 13744if ${ac_cv_lib_lmdb_mdb_env_create+:} false; then : 13745 $as_echo_n "(cached) " >&6 13746else 13747 ac_check_lib_save_LIBS=$LIBS 13748LIBS="-llmdb $LIBS" 13749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13750/* end confdefs.h. */ 13751 13752/* Override any GCC internal prototype to avoid an error. 13753 Use char because int might match the return type of a GCC 13754 builtin and then its argument prototype would still apply. */ 13755#ifdef __cplusplus 13756extern "C" 13757#endif 13758char mdb_env_create (); 13759int 13760main () 13761{ 13762return mdb_env_create (); 13763 ; 13764 return 0; 13765} 13766_ACEOF 13767if ac_fn_c_try_link "$LINENO"; then : 13768 ac_cv_lib_lmdb_mdb_env_create=yes 13769else 13770 ac_cv_lib_lmdb_mdb_env_create=no 13771fi 13772rm -f core conftest.err conftest.$ac_objext \ 13773 conftest$ac_exeext conftest.$ac_ext 13774LIBS=$ac_check_lib_save_LIBS 13775fi 13776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5 13777$as_echo "$ac_cv_lib_lmdb_mdb_env_create" >&6; } 13778if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes; then : 13779 have_lmdb=true 13780else 13781 have_lmdb=false 13782fi 13783 13784 if test "$have_lmdb" = true; then 13785 LMDB_LIBS=-llmdb 13786 HAVE_LMDB=yes 13787 lmdb_plugin_dir='plugins/kdb/lmdb' 13788 ac_config_files="$ac_config_files plugins/kdb/lmdb/Makefile:$srcdir/./config/pre.in:plugins/kdb/lmdb/Makefile.in:plugins/kdb/lmdb/deps:$srcdir/./config/post.in" 13789 13790 13791 13792 elif test "$withval" = yes; then 13793 as_fn_error $? "liblmdb not found" "$LINENO" 5 13794 fi 13795fi 13796 13797 13798 13799 13800# Kludge for simple server --- FIXME is this the best way to do this? 13801 13802if test "$ac_cv_lib_socket" = "yes" -a "$ac_cv_lib_nsl" = "yes"; then 13803 13804$as_echo "#define BROKEN_STREAMS_SOCKETS 1" >>confdefs.h 13805 13806fi 13807 13808# Compile with libedit support in ss by default if available. Compile 13809# with readline only if asked, to avoid a default GPL dependency. 13810# Building with readline also breaks the dejagnu test suite. 13811 13812# Check whether --with-libedit was given. 13813if test "${with_libedit+set}" = set; then : 13814 withval=$with_libedit; 13815else 13816 with_libedit=default 13817fi 13818 13819 13820# Check whether --with-readline was given. 13821if test "${with_readline+set}" = set; then : 13822 withval=$with_readline; 13823else 13824 with_readline=no 13825fi 13826 13827if test "x$with_readline" = xyes; then 13828 with_libedit=no 13829fi 13830RL_CFLAGS= 13831RL_LIBS= 13832if test "x$with_libedit" != xno; then 13833 13834pkg_failed=no 13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 13836$as_echo_n "checking for libedit... " >&6; } 13837 13838if test -n "$LIBEDIT_CFLAGS"; then 13839 pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS" 13840 elif test -n "$PKG_CONFIG"; then 13841 if test -n "$PKG_CONFIG" && \ 13842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 13843 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 13844 ac_status=$? 13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13846 test $ac_status = 0; }; then 13847 pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` 13848 test "x$?" != "x0" && pkg_failed=yes 13849else 13850 pkg_failed=yes 13851fi 13852 else 13853 pkg_failed=untried 13854fi 13855if test -n "$LIBEDIT_LIBS"; then 13856 pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS" 13857 elif test -n "$PKG_CONFIG"; then 13858 if test -n "$PKG_CONFIG" && \ 13859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 13860 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 13861 ac_status=$? 13862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13863 test $ac_status = 0; }; then 13864 pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` 13865 test "x$?" != "x0" && pkg_failed=yes 13866else 13867 pkg_failed=yes 13868fi 13869 else 13870 pkg_failed=untried 13871fi 13872 13873 13874 13875if test $pkg_failed = yes; then 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13877$as_echo "no" >&6; } 13878 13879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13880 _pkg_short_errors_supported=yes 13881else 13882 _pkg_short_errors_supported=no 13883fi 13884 if test $_pkg_short_errors_supported = yes; then 13885 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` 13886 else 13887 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` 13888 fi 13889 # Put the nasty error message in config.log where it belongs 13890 echo "$LIBEDIT_PKG_ERRORS" >&5 13891 13892 have_libedit=no 13893elif test $pkg_failed = untried; then 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13895$as_echo "no" >&6; } 13896 have_libedit=no 13897else 13898 LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS 13899 LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13901$as_echo "yes" >&6; } 13902 have_libedit=yes 13903fi 13904 if test "x$have_libedit" = xyes; then 13905 RL_CFLAGS=$LIBEDIT_CFLAGS 13906 RL_LIBS=$LIBEDIT_LIBS 13907 13908$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h 13909 13910 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libedit for readline support" >&5 13911$as_echo "$as_me: Using libedit for readline support" >&6;} 13912 elif test "x$with_libedit" = xyes; then 13913 # We were explicitly asked for libedit and couldn't find it. 13914 as_fn_error $? "Could not detect libedit with pkg-config" "$LINENO" 5 13915 else 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using any readline support" >&5 13917$as_echo "$as_me: Not using any readline support" >&6;} 13918 fi 13919elif test "x$with_readline" = xyes; then 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU Readline" >&5 13921$as_echo "$as_me: Using GNU Readline" >&6;} 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5 13923$as_echo_n "checking for main in -lreadline... " >&6; } 13924if ${ac_cv_lib_readline_main+:} false; then : 13925 $as_echo_n "(cached) " >&6 13926else 13927 ac_check_lib_save_LIBS=$LIBS 13928LIBS="-lreadline $LIBS" 13929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13930/* end confdefs.h. */ 13931 13932 13933int 13934main () 13935{ 13936return main (); 13937 ; 13938 return 0; 13939} 13940_ACEOF 13941if ac_fn_c_try_link "$LINENO"; then : 13942 ac_cv_lib_readline_main=yes 13943else 13944 ac_cv_lib_readline_main=no 13945fi 13946rm -f core conftest.err conftest.$ac_objext \ 13947 conftest$ac_exeext conftest.$ac_ext 13948LIBS=$ac_check_lib_save_LIBS 13949fi 13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5 13951$as_echo "$ac_cv_lib_readline_main" >&6; } 13952if test "x$ac_cv_lib_readline_main" = xyes; then : 13953 : 13954else 13955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13957as_fn_error $? "Cannot find readline library. 13958See \`config.log' for more details" "$LINENO" 5; } 13959fi 13960 13961 13962$as_echo "#define HAVE_READLINE 1" >>confdefs.h 13963 13964 RL_LIBS='-lreadline' 13965else 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not using any readline support" >&5 13967$as_echo "Not using any readline support" >&6; } 13968fi 13969 13970 13971 13972 13973# Check whether --with-system-verto was given. 13974if test "${with_system_verto+set}" = set; then : 13975 withval=$with_system_verto; 13976else 13977 with_system_verto=default 13978fi 13979 13980VERTO_VERSION=k5 13981if test "x$with_system_verto" != xno; then 13982 13983pkg_failed=no 13984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libverto" >&5 13985$as_echo_n "checking for libverto... " >&6; } 13986 13987if test -n "$VERTO_CFLAGS"; then 13988 pkg_cv_VERTO_CFLAGS="$VERTO_CFLAGS" 13989 elif test -n "$PKG_CONFIG"; then 13990 if test -n "$PKG_CONFIG" && \ 13991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libverto\""; } >&5 13992 ($PKG_CONFIG --exists --print-errors "libverto") 2>&5 13993 ac_status=$? 13994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13995 test $ac_status = 0; }; then 13996 pkg_cv_VERTO_CFLAGS=`$PKG_CONFIG --cflags "libverto" 2>/dev/null` 13997 test "x$?" != "x0" && pkg_failed=yes 13998else 13999 pkg_failed=yes 14000fi 14001 else 14002 pkg_failed=untried 14003fi 14004if test -n "$VERTO_LIBS"; then 14005 pkg_cv_VERTO_LIBS="$VERTO_LIBS" 14006 elif test -n "$PKG_CONFIG"; then 14007 if test -n "$PKG_CONFIG" && \ 14008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libverto\""; } >&5 14009 ($PKG_CONFIG --exists --print-errors "libverto") 2>&5 14010 ac_status=$? 14011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14012 test $ac_status = 0; }; then 14013 pkg_cv_VERTO_LIBS=`$PKG_CONFIG --libs "libverto" 2>/dev/null` 14014 test "x$?" != "x0" && pkg_failed=yes 14015else 14016 pkg_failed=yes 14017fi 14018 else 14019 pkg_failed=untried 14020fi 14021 14022 14023 14024if test $pkg_failed = yes; then 14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14026$as_echo "no" >&6; } 14027 14028if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14029 _pkg_short_errors_supported=yes 14030else 14031 _pkg_short_errors_supported=no 14032fi 14033 if test $_pkg_short_errors_supported = yes; then 14034 VERTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libverto" 2>&1` 14035 else 14036 VERTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libverto" 2>&1` 14037 fi 14038 # Put the nasty error message in config.log where it belongs 14039 echo "$VERTO_PKG_ERRORS" >&5 14040 14041 have_sysverto=no 14042elif test $pkg_failed = untried; then 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14044$as_echo "no" >&6; } 14045 have_sysverto=no 14046else 14047 VERTO_CFLAGS=$pkg_cv_VERTO_CFLAGS 14048 VERTO_LIBS=$pkg_cv_VERTO_LIBS 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14050$as_echo "yes" >&6; } 14051 have_sysverto=yes 14052fi 14053 if test "x$have_sysverto" = xyes; then 14054 VERTO_VERSION=sys 14055 elif test "x$with_system_verto" = xyes; then 14056 as_fn_error $? "cannot detect system libverto" "$LINENO" 5 14057 fi 14058fi 14059if test "x$VERTO_VERSION" = xsys; then 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libverto" >&5 14061$as_echo "$as_me: Using system libverto" >&6;} 14062else 14063 VERTO_CFLAGS= 14064 VERTO_LIBS="-lverto" 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: Using built-in libverto" >&5 14066$as_echo "$as_me: Using built-in libverto" >&6;} 14067fi 14068 14069 14070 14071 14072# Extract the first word of "groff", so it can be a program name with args. 14073set dummy groff; ac_word=$2 14074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14075$as_echo_n "checking for $ac_word... " >&6; } 14076if ${ac_cv_path_GROFF+:} false; then : 14077 $as_echo_n "(cached) " >&6 14078else 14079 case $GROFF in 14080 [\\/]* | ?:[\\/]*) 14081 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 14082 ;; 14083 *) 14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14085for as_dir in $PATH 14086do 14087 IFS=$as_save_IFS 14088 test -z "$as_dir" && as_dir=. 14089 for ac_exec_ext in '' $ac_executable_extensions; do 14090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14091 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 14092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14093 break 2 14094 fi 14095done 14096 done 14097IFS=$as_save_IFS 14098 14099 ;; 14100esac 14101fi 14102GROFF=$ac_cv_path_GROFF 14103if test -n "$GROFF"; then 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 14105$as_echo "$GROFF" >&6; } 14106else 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14108$as_echo "no" >&6; } 14109fi 14110 14111 14112 14113# Make localedir work in autoconf 2.5x. 14114if test "${localedir+set}" != set; then 14115 localedir='$(datadir)/locale' 14116fi 14117 14118 14119# For KCM lib/krb5/ccache to build KCM Mach RPC support for macOS only. 14120case $host in 14121*-*-darwin* | *-*-rhapsody*) OSX=osx ;; 14122*) OSX=no ;; 14123esac 14124 14125 14126# Build-time default ccache, keytab, and client keytab names. These 14127# can be given as variable arguments DEFCCNAME, DEFKTNAME, and 14128# DEFCKTNAME. Otherwise, we try to get the OS defaults from 14129# krb5-config if we can, or fall back to hardcoded defaults. 14130 14131 14132 14133 14134# Check whether --with-krb5-config was given. 14135if test "${with_krb5_config+set}" = set; then : 14136 withval=$with_krb5_config; 14137else 14138 with_krb5_config=krb5-config 14139fi 14140 14141if test "x$with_krb5_config" != xno; then 14142 if test "x$with_krb5_config" = xyes; then 14143 with_krb5_config=krb5-config 14144 fi 14145 if $with_krb5_config --help 2>&1 | grep defccname >/dev/null; then 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $with_krb5_config for build defaults" >&5 14147$as_echo "$as_me: Using $with_krb5_config for build defaults" >&6;} 14148 : "${DEFCCNAME=`$with_krb5_config --defccname`}" 14149 : "${DEFKTNAME=`$with_krb5_config --defktname`}" 14150 : "${DEFCKTNAME=`$with_krb5_config --defcktname`}" 14151 fi 14152fi 14153if test "${DEFCCNAME+set}" != set; then 14154 case $host in 14155 *-*-darwin[0-9].* | *-*-darwin10.*) 14156 # Use the normal default for macOS 10.6 (Darwin 10) and prior. 14157 ;; 14158 *-*-darwin*) 14159 # For macOS 10.7 (Darwin 11) and later, the native ccache uses 14160 # the KCM daemon. 14161 DEFCCNAME=KCM: 14162 ;; 14163 esac 14164 if test "${DEFCCNAME+set}" != set; then 14165 DEFCCNAME=FILE:/tmp/krb5cc_%{uid} 14166 fi 14167fi 14168if test "${DEFKTNAME+set}" != set; then 14169 DEFKTNAME=FILE:/etc/krb5.keytab 14170fi 14171if test "${DEFCKTNAME+set}" != set; then 14172 _lcl_receval="$localstatedir" 14173exp_localstatedir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 14174 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 14175 _lcl_receval_old='' 14176 while test "$_lcl_receval_old" != "$_lcl_receval"; do 14177 _lcl_receval_old="$_lcl_receval" 14178 eval _lcl_receval="\"$_lcl_receval\"" 14179 done 14180 echo "$_lcl_receval")` 14181 DEFCKTNAME=FILE:$exp_localstatedir/krb5/user/%{euid}/client.keytab 14182fi 14183{ $as_echo "$as_me:${as_lineno-$LINENO}: Default ccache name: $DEFCCNAME" >&5 14184$as_echo "$as_me: Default ccache name: $DEFCCNAME" >&6;} 14185{ $as_echo "$as_me:${as_lineno-$LINENO}: Default keytab name: $DEFKTNAME" >&5 14186$as_echo "$as_me: Default keytab name: $DEFKTNAME" >&6;} 14187{ $as_echo "$as_me:${as_lineno-$LINENO}: Default client keytab name: $DEFCKTNAME" >&5 14188$as_echo "$as_me: Default client keytab name: $DEFCKTNAME" >&6;} 14189 14190cat >>confdefs.h <<_ACEOF 14191#define DEFCCNAME "$DEFCCNAME" 14192_ACEOF 14193 14194 14195cat >>confdefs.h <<_ACEOF 14196#define DEFKTNAME "$DEFKTNAME" 14197_ACEOF 14198 14199 14200cat >>confdefs.h <<_ACEOF 14201#define DEFCKTNAME "$DEFCKTNAME" 14202_ACEOF 14203 14204 14205ac_config_files="$ac_config_files build-tools/krb5-config" 14206 14207ac_config_files="$ac_config_files build-tools/kadm-server.pc build-tools/kadm-client.pc build-tools/kdb.pc build-tools/krb5.pc build-tools/krb5-gssapi.pc build-tools/mit-krb5.pc build-tools/mit-krb5-gssapi.pc build-tools/gssrpc.pc" 14208 14209 14210 ac_config_files="$ac_config_files ./Makefile:$srcdir/./config/pre.in:./Makefile.in:./deps:$srcdir/./config/post.in" 14211 ac_config_files="$ac_config_files util/Makefile:$srcdir/./config/pre.in:util/Makefile.in:util/deps:$srcdir/./config/post.in" 14212 ac_config_files="$ac_config_files util/support/Makefile:$srcdir/./config/pre.in:util/support/Makefile.in:util/support/deps:$srcdir/./config/post.in" 14213 ac_config_files="$ac_config_files util/profile/Makefile:$srcdir/./config/pre.in:util/profile/Makefile.in:util/profile/deps:$srcdir/./config/post.in" 14214 ac_config_files="$ac_config_files util/profile/testmod/Makefile:$srcdir/./config/pre.in:util/profile/testmod/Makefile.in:util/profile/testmod/deps:$srcdir/./config/post.in" 14215 ac_config_files="$ac_config_files util/verto/Makefile:$srcdir/./config/pre.in:util/verto/Makefile.in:util/verto/deps:$srcdir/./config/post.in" 14216 ac_config_files="$ac_config_files lib/Makefile:$srcdir/./config/pre.in:lib/Makefile.in:lib/deps:$srcdir/./config/post.in" 14217 ac_config_files="$ac_config_files lib/kdb/Makefile:$srcdir/./config/pre.in:lib/kdb/Makefile.in:lib/kdb/deps:$srcdir/./config/post.in" 14218 ac_config_files="$ac_config_files lib/crypto/Makefile:$srcdir/./config/pre.in:lib/crypto/Makefile.in:lib/crypto/deps:$srcdir/./config/post.in" 14219 ac_config_files="$ac_config_files lib/crypto/krb/Makefile:$srcdir/./config/pre.in:lib/crypto/krb/Makefile.in:lib/crypto/krb/deps:$srcdir/./config/post.in" 14220 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/Makefile.in:lib/crypto/$CRYPTO_IMPL/deps:$srcdir/./config/post.in" 14221 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile.in:lib/crypto/$CRYPTO_IMPL/enc_provider/deps:$srcdir/./config/post.in" 14222 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile.in:lib/crypto/$CRYPTO_IMPL/hash_provider/deps:$srcdir/./config/post.in" 14223 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/des/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/des/Makefile.in:lib/crypto/$CRYPTO_IMPL/des/deps:$srcdir/./config/post.in" 14224 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/md4/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/md4/Makefile.in:lib/crypto/$CRYPTO_IMPL/md4/deps:$srcdir/./config/post.in" 14225 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/md5/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/md5/Makefile.in:lib/crypto/$CRYPTO_IMPL/md5/deps:$srcdir/./config/post.in" 14226 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/sha1/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/sha1/Makefile.in:lib/crypto/$CRYPTO_IMPL/sha1/deps:$srcdir/./config/post.in" 14227 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/sha2/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/sha2/Makefile.in:lib/crypto/$CRYPTO_IMPL/sha2/deps:$srcdir/./config/post.in" 14228 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/aes/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/aes/Makefile.in:lib/crypto/$CRYPTO_IMPL/aes/deps:$srcdir/./config/post.in" 14229 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/camellia/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/camellia/Makefile.in:lib/crypto/$CRYPTO_IMPL/camellia/deps:$srcdir/./config/post.in" 14230 ac_config_files="$ac_config_files lib/crypto/crypto_tests/Makefile:$srcdir/./config/pre.in:lib/crypto/crypto_tests/Makefile.in:lib/crypto/crypto_tests/deps:$srcdir/./config/post.in" 14231 ac_config_files="$ac_config_files lib/krb5/Makefile:$srcdir/./config/pre.in:lib/krb5/Makefile.in:lib/krb5/deps:$srcdir/./config/post.in" 14232 ac_config_files="$ac_config_files lib/krb5/error_tables/Makefile:$srcdir/./config/pre.in:lib/krb5/error_tables/Makefile.in:lib/krb5/error_tables/deps:$srcdir/./config/post.in" 14233 ac_config_files="$ac_config_files lib/krb5/asn.1/Makefile:$srcdir/./config/pre.in:lib/krb5/asn.1/Makefile.in:lib/krb5/asn.1/deps:$srcdir/./config/post.in" 14234 ac_config_files="$ac_config_files lib/krb5/ccache/Makefile:$srcdir/./config/pre.in:lib/krb5/ccache/Makefile.in:lib/krb5/ccache/deps:$srcdir/./config/post.in" 14235 ac_config_files="$ac_config_files lib/krb5/keytab/Makefile:$srcdir/./config/pre.in:lib/krb5/keytab/Makefile.in:lib/krb5/keytab/deps:$srcdir/./config/post.in" 14236 ac_config_files="$ac_config_files lib/krb5/krb/Makefile:$srcdir/./config/pre.in:lib/krb5/krb/Makefile.in:lib/krb5/krb/deps:$srcdir/./config/post.in" 14237 ac_config_files="$ac_config_files lib/krb5/rcache/Makefile:$srcdir/./config/pre.in:lib/krb5/rcache/Makefile.in:lib/krb5/rcache/deps:$srcdir/./config/post.in" 14238 ac_config_files="$ac_config_files lib/krb5/os/Makefile:$srcdir/./config/pre.in:lib/krb5/os/Makefile.in:lib/krb5/os/deps:$srcdir/./config/post.in" 14239 ac_config_files="$ac_config_files lib/krb5/unicode/Makefile:$srcdir/./config/pre.in:lib/krb5/unicode/Makefile.in:lib/krb5/unicode/deps:$srcdir/./config/post.in" 14240 ac_config_files="$ac_config_files lib/gssapi/Makefile:$srcdir/./config/pre.in:lib/gssapi/Makefile.in:lib/gssapi/deps:$srcdir/./config/post.in" 14241 ac_config_files="$ac_config_files lib/gssapi/generic/Makefile:$srcdir/./config/pre.in:lib/gssapi/generic/Makefile.in:lib/gssapi/generic/deps:$srcdir/./config/post.in" 14242 ac_config_files="$ac_config_files lib/gssapi/krb5/Makefile:$srcdir/./config/pre.in:lib/gssapi/krb5/Makefile.in:lib/gssapi/krb5/deps:$srcdir/./config/post.in" 14243 ac_config_files="$ac_config_files lib/gssapi/spnego/Makefile:$srcdir/./config/pre.in:lib/gssapi/spnego/Makefile.in:lib/gssapi/spnego/deps:$srcdir/./config/post.in" 14244 ac_config_files="$ac_config_files lib/gssapi/mechglue/Makefile:$srcdir/./config/pre.in:lib/gssapi/mechglue/Makefile.in:lib/gssapi/mechglue/deps:$srcdir/./config/post.in" 14245 ac_config_files="$ac_config_files lib/rpc/Makefile:$srcdir/./config/pre.in:lib/rpc/Makefile.in:lib/rpc/deps:$srcdir/./config/post.in" 14246 ac_config_files="$ac_config_files lib/rpc/unit-test/Makefile:$srcdir/./config/pre.in:lib/rpc/unit-test/Makefile.in:lib/rpc/unit-test/deps:$srcdir/./config/post.in" 14247 ac_config_files="$ac_config_files lib/kadm5/Makefile:$srcdir/./config/pre.in:lib/kadm5/Makefile.in:lib/kadm5/deps:$srcdir/./config/post.in" 14248 ac_config_files="$ac_config_files lib/kadm5/clnt/Makefile:$srcdir/./config/pre.in:lib/kadm5/clnt/Makefile.in:lib/kadm5/clnt/deps:$srcdir/./config/post.in" 14249 ac_config_files="$ac_config_files lib/kadm5/srv/Makefile:$srcdir/./config/pre.in:lib/kadm5/srv/Makefile.in:lib/kadm5/srv/deps:$srcdir/./config/post.in" 14250 ac_config_files="$ac_config_files lib/kadm5/unit-test/Makefile:$srcdir/./config/pre.in:lib/kadm5/unit-test/Makefile.in:lib/kadm5/unit-test/deps:$srcdir/./config/post.in" 14251 ac_config_files="$ac_config_files lib/krad/Makefile:$srcdir/./config/pre.in:lib/krad/Makefile.in:lib/krad/deps:$srcdir/./config/post.in" 14252 ac_config_files="$ac_config_files lib/apputils/Makefile:$srcdir/./config/pre.in:lib/apputils/Makefile.in:lib/apputils/deps:$srcdir/./config/post.in" 14253 ac_config_files="$ac_config_files kdc/Makefile:$srcdir/./config/pre.in:kdc/Makefile.in:kdc/deps:$srcdir/./config/post.in" 14254 ac_config_files="$ac_config_files kprop/Makefile:$srcdir/./config/pre.in:kprop/Makefile.in:kprop/deps:$srcdir/./config/post.in" 14255 ac_config_files="$ac_config_files config-files/Makefile:$srcdir/./config/pre.in:config-files/Makefile.in:config-files/deps:$srcdir/./config/post.in" 14256 ac_config_files="$ac_config_files build-tools/Makefile:$srcdir/./config/pre.in:build-tools/Makefile.in:build-tools/deps:$srcdir/./config/post.in" 14257 ac_config_files="$ac_config_files man/Makefile:$srcdir/./config/pre.in:man/Makefile.in:man/deps:$srcdir/./config/post.in" 14258 ac_config_files="$ac_config_files doc/Makefile:$srcdir/./config/pre.in:doc/Makefile.in:doc/deps:$srcdir/./config/post.in" 14259 ac_config_files="$ac_config_files include/Makefile:$srcdir/./config/pre.in:include/Makefile.in:include/deps:$srcdir/./config/post.in" 14260 ac_config_files="$ac_config_files plugins/certauth/test/Makefile:$srcdir/./config/pre.in:plugins/certauth/test/Makefile.in:plugins/certauth/test/deps:$srcdir/./config/post.in" 14261 ac_config_files="$ac_config_files plugins/gssapi/negoextest/Makefile:$srcdir/./config/pre.in:plugins/gssapi/negoextest/Makefile.in:plugins/gssapi/negoextest/deps:$srcdir/./config/post.in" 14262 ac_config_files="$ac_config_files plugins/hostrealm/test/Makefile:$srcdir/./config/pre.in:plugins/hostrealm/test/Makefile.in:plugins/hostrealm/test/deps:$srcdir/./config/post.in" 14263 ac_config_files="$ac_config_files plugins/localauth/test/Makefile:$srcdir/./config/pre.in:plugins/localauth/test/Makefile.in:plugins/localauth/test/deps:$srcdir/./config/post.in" 14264 ac_config_files="$ac_config_files plugins/kadm5_hook/test/Makefile:$srcdir/./config/pre.in:plugins/kadm5_hook/test/Makefile.in:plugins/kadm5_hook/test/deps:$srcdir/./config/post.in" 14265 ac_config_files="$ac_config_files plugins/kadm5_auth/test/Makefile:$srcdir/./config/pre.in:plugins/kadm5_auth/test/Makefile.in:plugins/kadm5_auth/test/deps:$srcdir/./config/post.in" 14266 ac_config_files="$ac_config_files plugins/pwqual/test/Makefile:$srcdir/./config/pre.in:plugins/pwqual/test/Makefile.in:plugins/pwqual/test/deps:$srcdir/./config/post.in" 14267 ac_config_files="$ac_config_files plugins/audit/Makefile:$srcdir/./config/pre.in:plugins/audit/Makefile.in:plugins/audit/deps:$srcdir/./config/post.in" 14268 ac_config_files="$ac_config_files plugins/audit/test/Makefile:$srcdir/./config/pre.in:plugins/audit/test/Makefile.in:plugins/audit/test/deps:$srcdir/./config/post.in" 14269 ac_config_files="$ac_config_files plugins/kdb/db2/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/Makefile.in:plugins/kdb/db2/deps:$srcdir/./config/post.in" 14270 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/Makefile.in:plugins/kdb/db2/libdb2/deps:$srcdir/./config/post.in" 14271 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/hash/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/hash/Makefile.in:plugins/kdb/db2/libdb2/hash/deps:$srcdir/./config/post.in" 14272 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/btree/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/btree/Makefile.in:plugins/kdb/db2/libdb2/btree/deps:$srcdir/./config/post.in" 14273 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/db/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/db/Makefile.in:plugins/kdb/db2/libdb2/db/deps:$srcdir/./config/post.in" 14274 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/mpool/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/mpool/Makefile.in:plugins/kdb/db2/libdb2/mpool/deps:$srcdir/./config/post.in" 14275 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/recno/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/recno/Makefile.in:plugins/kdb/db2/libdb2/recno/deps:$srcdir/./config/post.in" 14276 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/test/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/test/Makefile.in:plugins/kdb/db2/libdb2/test/deps:$srcdir/./config/post.in" 14277 ac_config_files="$ac_config_files plugins/kdb/test/Makefile:$srcdir/./config/pre.in:plugins/kdb/test/Makefile.in:plugins/kdb/test/deps:$srcdir/./config/post.in" 14278 ac_config_files="$ac_config_files plugins/kdcpolicy/test/Makefile:$srcdir/./config/pre.in:plugins/kdcpolicy/test/Makefile.in:plugins/kdcpolicy/test/deps:$srcdir/./config/post.in" 14279 ac_config_files="$ac_config_files plugins/preauth/otp/Makefile:$srcdir/./config/pre.in:plugins/preauth/otp/Makefile.in:plugins/preauth/otp/deps:$srcdir/./config/post.in" 14280 ac_config_files="$ac_config_files plugins/preauth/spake/Makefile:$srcdir/./config/pre.in:plugins/preauth/spake/Makefile.in:plugins/preauth/spake/deps:$srcdir/./config/post.in" 14281 ac_config_files="$ac_config_files plugins/preauth/test/Makefile:$srcdir/./config/pre.in:plugins/preauth/test/Makefile.in:plugins/preauth/test/deps:$srcdir/./config/post.in" 14282 ac_config_files="$ac_config_files plugins/authdata/greet_client/Makefile:$srcdir/./config/pre.in:plugins/authdata/greet_client/Makefile.in:plugins/authdata/greet_client/deps:$srcdir/./config/post.in" 14283 ac_config_files="$ac_config_files plugins/authdata/greet_server/Makefile:$srcdir/./config/pre.in:plugins/authdata/greet_server/Makefile.in:plugins/authdata/greet_server/deps:$srcdir/./config/post.in" 14284 ac_config_files="$ac_config_files plugins/tls/k5tls/Makefile:$srcdir/./config/pre.in:plugins/tls/k5tls/Makefile.in:plugins/tls/k5tls/deps:$srcdir/./config/post.in" 14285 ac_config_files="$ac_config_files clients/Makefile:$srcdir/./config/pre.in:clients/Makefile.in:clients/deps:$srcdir/./config/post.in" 14286 ac_config_files="$ac_config_files clients/klist/Makefile:$srcdir/./config/pre.in:clients/klist/Makefile.in:clients/klist/deps:$srcdir/./config/post.in" 14287 ac_config_files="$ac_config_files clients/kinit/Makefile:$srcdir/./config/pre.in:clients/kinit/Makefile.in:clients/kinit/deps:$srcdir/./config/post.in" 14288 ac_config_files="$ac_config_files clients/kvno/Makefile:$srcdir/./config/pre.in:clients/kvno/Makefile.in:clients/kvno/deps:$srcdir/./config/post.in" 14289 ac_config_files="$ac_config_files clients/kdestroy/Makefile:$srcdir/./config/pre.in:clients/kdestroy/Makefile.in:clients/kdestroy/deps:$srcdir/./config/post.in" 14290 ac_config_files="$ac_config_files clients/kpasswd/Makefile:$srcdir/./config/pre.in:clients/kpasswd/Makefile.in:clients/kpasswd/deps:$srcdir/./config/post.in" 14291 ac_config_files="$ac_config_files clients/ksu/Makefile:$srcdir/./config/pre.in:clients/ksu/Makefile.in:clients/ksu/deps:$srcdir/./config/post.in" 14292 ac_config_files="$ac_config_files clients/kswitch/Makefile:$srcdir/./config/pre.in:clients/kswitch/Makefile.in:clients/kswitch/deps:$srcdir/./config/post.in" 14293 ac_config_files="$ac_config_files kadmin/Makefile:$srcdir/./config/pre.in:kadmin/Makefile.in:kadmin/deps:$srcdir/./config/post.in" 14294 ac_config_files="$ac_config_files kadmin/cli/Makefile:$srcdir/./config/pre.in:kadmin/cli/Makefile.in:kadmin/cli/deps:$srcdir/./config/post.in" 14295 ac_config_files="$ac_config_files kadmin/dbutil/Makefile:$srcdir/./config/pre.in:kadmin/dbutil/Makefile.in:kadmin/dbutil/deps:$srcdir/./config/post.in" 14296 ac_config_files="$ac_config_files kadmin/ktutil/Makefile:$srcdir/./config/pre.in:kadmin/ktutil/Makefile.in:kadmin/ktutil/deps:$srcdir/./config/post.in" 14297 ac_config_files="$ac_config_files kadmin/server/Makefile:$srcdir/./config/pre.in:kadmin/server/Makefile.in:kadmin/server/deps:$srcdir/./config/post.in" 14298 ac_config_files="$ac_config_files kadmin/testing/Makefile:$srcdir/./config/pre.in:kadmin/testing/Makefile.in:kadmin/testing/deps:$srcdir/./config/post.in" 14299 ac_config_files="$ac_config_files kadmin/testing/scripts/Makefile:$srcdir/./config/pre.in:kadmin/testing/scripts/Makefile.in:kadmin/testing/scripts/deps:$srcdir/./config/post.in" 14300 ac_config_files="$ac_config_files kadmin/testing/util/Makefile:$srcdir/./config/pre.in:kadmin/testing/util/Makefile.in:kadmin/testing/util/deps:$srcdir/./config/post.in" 14301 ac_config_files="$ac_config_files appl/Makefile:$srcdir/./config/pre.in:appl/Makefile.in:appl/deps:$srcdir/./config/post.in" 14302 ac_config_files="$ac_config_files appl/sample/Makefile:$srcdir/./config/pre.in:appl/sample/Makefile.in:appl/sample/deps:$srcdir/./config/post.in" 14303 ac_config_files="$ac_config_files appl/sample/sclient/Makefile:$srcdir/./config/pre.in:appl/sample/sclient/Makefile.in:appl/sample/sclient/deps:$srcdir/./config/post.in" 14304 ac_config_files="$ac_config_files appl/sample/sserver/Makefile:$srcdir/./config/pre.in:appl/sample/sserver/Makefile.in:appl/sample/sserver/deps:$srcdir/./config/post.in" 14305 ac_config_files="$ac_config_files appl/simple/Makefile:$srcdir/./config/pre.in:appl/simple/Makefile.in:appl/simple/deps:$srcdir/./config/post.in" 14306 ac_config_files="$ac_config_files appl/simple/client/Makefile:$srcdir/./config/pre.in:appl/simple/client/Makefile.in:appl/simple/client/deps:$srcdir/./config/post.in" 14307 ac_config_files="$ac_config_files appl/simple/server/Makefile:$srcdir/./config/pre.in:appl/simple/server/Makefile.in:appl/simple/server/deps:$srcdir/./config/post.in" 14308 ac_config_files="$ac_config_files appl/gss-sample/Makefile:$srcdir/./config/pre.in:appl/gss-sample/Makefile.in:appl/gss-sample/deps:$srcdir/./config/post.in" 14309 ac_config_files="$ac_config_files appl/user_user/Makefile:$srcdir/./config/pre.in:appl/user_user/Makefile.in:appl/user_user/deps:$srcdir/./config/post.in" 14310 ac_config_files="$ac_config_files tests/Makefile:$srcdir/./config/pre.in:tests/Makefile.in:tests/deps:$srcdir/./config/post.in" 14311 ac_config_files="$ac_config_files tests/asn.1/Makefile:$srcdir/./config/pre.in:tests/asn.1/Makefile.in:tests/asn.1/deps:$srcdir/./config/post.in" 14312 ac_config_files="$ac_config_files tests/create/Makefile:$srcdir/./config/pre.in:tests/create/Makefile.in:tests/create/deps:$srcdir/./config/post.in" 14313 ac_config_files="$ac_config_files tests/hammer/Makefile:$srcdir/./config/pre.in:tests/hammer/Makefile.in:tests/hammer/deps:$srcdir/./config/post.in" 14314 ac_config_files="$ac_config_files tests/verify/Makefile:$srcdir/./config/pre.in:tests/verify/Makefile.in:tests/verify/deps:$srcdir/./config/post.in" 14315 ac_config_files="$ac_config_files tests/gssapi/Makefile:$srcdir/./config/pre.in:tests/gssapi/Makefile.in:tests/gssapi/deps:$srcdir/./config/post.in" 14316 ac_config_files="$ac_config_files tests/dejagnu/Makefile:$srcdir/./config/pre.in:tests/dejagnu/Makefile.in:tests/dejagnu/deps:$srcdir/./config/post.in" 14317 ac_config_files="$ac_config_files tests/threads/Makefile:$srcdir/./config/pre.in:tests/threads/Makefile.in:tests/threads/deps:$srcdir/./config/post.in" 14318 ac_config_files="$ac_config_files tests/shlib/Makefile:$srcdir/./config/pre.in:tests/shlib/Makefile.in:tests/shlib/deps:$srcdir/./config/post.in" 14319 ac_config_files="$ac_config_files tests/gss-threads/Makefile:$srcdir/./config/pre.in:tests/gss-threads/Makefile.in:tests/gss-threads/deps:$srcdir/./config/post.in" 14320 ac_config_files="$ac_config_files tests/misc/Makefile:$srcdir/./config/pre.in:tests/misc/Makefile.in:tests/misc/deps:$srcdir/./config/post.in" 14321 14322cat >confcache <<\_ACEOF 14323# This file is a shell script that caches the results of configure 14324# tests run on this system so they can be shared between configure 14325# scripts and configure runs, see configure's option --config-cache. 14326# It is not useful on other systems. If it contains results you don't 14327# want to keep, you may remove or edit it. 14328# 14329# config.status only pays attention to the cache file if you give it 14330# the --recheck option to rerun configure. 14331# 14332# `ac_cv_env_foo' variables (set or unset) will be overridden when 14333# loading this file, other *unset* `ac_cv_foo' will be assigned the 14334# following values. 14335 14336_ACEOF 14337 14338# The following way of writing the cache mishandles newlines in values, 14339# but we know of no workaround that is simple, portable, and efficient. 14340# So, we kill variables containing newlines. 14341# Ultrix sh set writes to stderr and can't be redirected directly, 14342# and sets the high bit in the cache file unless we assign to the vars. 14343( 14344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14345 eval ac_val=\$$ac_var 14346 case $ac_val in #( 14347 *${as_nl}*) 14348 case $ac_var in #( 14349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14350$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14351 esac 14352 case $ac_var in #( 14353 _ | IFS | as_nl) ;; #( 14354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14355 *) { eval $ac_var=; unset $ac_var;} ;; 14356 esac ;; 14357 esac 14358 done 14359 14360 (set) 2>&1 | 14361 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14362 *${as_nl}ac_space=\ *) 14363 # `set' does not quote correctly, so add quotes: double-quote 14364 # substitution turns \\\\ into \\, and sed turns \\ into \. 14365 sed -n \ 14366 "s/'/'\\\\''/g; 14367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14368 ;; #( 14369 *) 14370 # `set' quotes correctly as required by POSIX, so do not add quotes. 14371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14372 ;; 14373 esac | 14374 sort 14375) | 14376 sed ' 14377 /^ac_cv_env_/b end 14378 t clear 14379 :clear 14380 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14381 t end 14382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14383 :end' >>confcache 14384if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14385 if test -w "$cache_file"; then 14386 if test "x$cache_file" != "x/dev/null"; then 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14388$as_echo "$as_me: updating cache $cache_file" >&6;} 14389 if test ! -f "$cache_file" || test -h "$cache_file"; then 14390 cat confcache >"$cache_file" 14391 else 14392 case $cache_file in #( 14393 */* | ?:*) 14394 mv -f confcache "$cache_file"$$ && 14395 mv -f "$cache_file"$$ "$cache_file" ;; #( 14396 *) 14397 mv -f confcache "$cache_file" ;; 14398 esac 14399 fi 14400 fi 14401 else 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14403$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14404 fi 14405fi 14406rm -f confcache 14407 14408test "x$prefix" = xNONE && prefix=$ac_default_prefix 14409# Let make expand exec_prefix. 14410test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14411 14412DEFS=-DHAVE_CONFIG_H 14413 14414ac_libobjs= 14415ac_ltlibobjs= 14416U= 14417for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14418 # 1. Remove the extension, and $U if already installed. 14419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14420 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14422 # will be set to the directory where LIBOBJS objects are built. 14423 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14424 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14425done 14426LIBOBJS=$ac_libobjs 14427 14428LTLIBOBJS=$ac_ltlibobjs 14429 14430 14431 14432: "${CONFIG_STATUS=./config.status}" 14433ac_write_fail=0 14434ac_clean_files_save=$ac_clean_files 14435ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14436{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14437$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14438as_write_fail=0 14439cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14440#! $SHELL 14441# Generated by $as_me. 14442# Run this file to recreate the current configuration. 14443# Compiler output produced by configure, useful for debugging 14444# configure, is in config.log if it exists. 14445 14446debug=false 14447ac_cs_recheck=false 14448ac_cs_silent=false 14449 14450SHELL=\${CONFIG_SHELL-$SHELL} 14451export SHELL 14452_ASEOF 14453cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14454## -------------------- ## 14455## M4sh Initialization. ## 14456## -------------------- ## 14457 14458# Be more Bourne compatible 14459DUALCASE=1; export DUALCASE # for MKS sh 14460if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14461 emulate sh 14462 NULLCMD=: 14463 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14464 # is contrary to our usage. Disable this feature. 14465 alias -g '${1+"$@"}'='"$@"' 14466 setopt NO_GLOB_SUBST 14467else 14468 case `(set -o) 2>/dev/null` in #( 14469 *posix*) : 14470 set -o posix ;; #( 14471 *) : 14472 ;; 14473esac 14474fi 14475 14476 14477as_nl=' 14478' 14479export as_nl 14480# Printing a long string crashes Solaris 7 /usr/bin/printf. 14481as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14482as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14483as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14484# Prefer a ksh shell builtin over an external printf program on Solaris, 14485# but without wasting forks for bash or zsh. 14486if test -z "$BASH_VERSION$ZSH_VERSION" \ 14487 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14488 as_echo='print -r --' 14489 as_echo_n='print -rn --' 14490elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14491 as_echo='printf %s\n' 14492 as_echo_n='printf %s' 14493else 14494 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14495 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14496 as_echo_n='/usr/ucb/echo -n' 14497 else 14498 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14499 as_echo_n_body='eval 14500 arg=$1; 14501 case $arg in #( 14502 *"$as_nl"*) 14503 expr "X$arg" : "X\\(.*\\)$as_nl"; 14504 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14505 esac; 14506 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14507 ' 14508 export as_echo_n_body 14509 as_echo_n='sh -c $as_echo_n_body as_echo' 14510 fi 14511 export as_echo_body 14512 as_echo='sh -c $as_echo_body as_echo' 14513fi 14514 14515# The user is always right. 14516if test "${PATH_SEPARATOR+set}" != set; then 14517 PATH_SEPARATOR=: 14518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14519 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14520 PATH_SEPARATOR=';' 14521 } 14522fi 14523 14524 14525# IFS 14526# We need space, tab and new line, in precisely that order. Quoting is 14527# there to prevent editors from complaining about space-tab. 14528# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14529# splitting by setting IFS to empty value.) 14530IFS=" "" $as_nl" 14531 14532# Find who we are. Look in the path if we contain no directory separator. 14533as_myself= 14534case $0 in #(( 14535 *[\\/]* ) as_myself=$0 ;; 14536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14537for as_dir in $PATH 14538do 14539 IFS=$as_save_IFS 14540 test -z "$as_dir" && as_dir=. 14541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14542 done 14543IFS=$as_save_IFS 14544 14545 ;; 14546esac 14547# We did not find ourselves, most probably we were run as `sh COMMAND' 14548# in which case we are not to be found in the path. 14549if test "x$as_myself" = x; then 14550 as_myself=$0 14551fi 14552if test ! -f "$as_myself"; then 14553 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14554 exit 1 14555fi 14556 14557# Unset variables that we do not need and which cause bugs (e.g. in 14558# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14559# suppresses any "Segmentation fault" message there. '((' could 14560# trigger a bug in pdksh 5.2.14. 14561for as_var in BASH_ENV ENV MAIL MAILPATH 14562do eval test x\${$as_var+set} = xset \ 14563 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14564done 14565PS1='$ ' 14566PS2='> ' 14567PS4='+ ' 14568 14569# NLS nuisances. 14570LC_ALL=C 14571export LC_ALL 14572LANGUAGE=C 14573export LANGUAGE 14574 14575# CDPATH. 14576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14577 14578 14579# as_fn_error STATUS ERROR [LINENO LOG_FD] 14580# ---------------------------------------- 14581# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14582# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14583# script with STATUS, using 1 if that was 0. 14584as_fn_error () 14585{ 14586 as_status=$1; test $as_status -eq 0 && as_status=1 14587 if test "$4"; then 14588 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14589 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14590 fi 14591 $as_echo "$as_me: error: $2" >&2 14592 as_fn_exit $as_status 14593} # as_fn_error 14594 14595 14596# as_fn_set_status STATUS 14597# ----------------------- 14598# Set $? to STATUS, without forking. 14599as_fn_set_status () 14600{ 14601 return $1 14602} # as_fn_set_status 14603 14604# as_fn_exit STATUS 14605# ----------------- 14606# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14607as_fn_exit () 14608{ 14609 set +e 14610 as_fn_set_status $1 14611 exit $1 14612} # as_fn_exit 14613 14614# as_fn_unset VAR 14615# --------------- 14616# Portably unset VAR. 14617as_fn_unset () 14618{ 14619 { eval $1=; unset $1;} 14620} 14621as_unset=as_fn_unset 14622# as_fn_append VAR VALUE 14623# ---------------------- 14624# Append the text in VALUE to the end of the definition contained in VAR. Take 14625# advantage of any shell optimizations that allow amortized linear growth over 14626# repeated appends, instead of the typical quadratic growth present in naive 14627# implementations. 14628if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14629 eval 'as_fn_append () 14630 { 14631 eval $1+=\$2 14632 }' 14633else 14634 as_fn_append () 14635 { 14636 eval $1=\$$1\$2 14637 } 14638fi # as_fn_append 14639 14640# as_fn_arith ARG... 14641# ------------------ 14642# Perform arithmetic evaluation on the ARGs, and store the result in the 14643# global $as_val. Take advantage of shells that can avoid forks. The arguments 14644# must be portable across $(()) and expr. 14645if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14646 eval 'as_fn_arith () 14647 { 14648 as_val=$(( $* )) 14649 }' 14650else 14651 as_fn_arith () 14652 { 14653 as_val=`expr "$@" || test $? -eq 1` 14654 } 14655fi # as_fn_arith 14656 14657 14658if expr a : '\(a\)' >/dev/null 2>&1 && 14659 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14660 as_expr=expr 14661else 14662 as_expr=false 14663fi 14664 14665if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14666 as_basename=basename 14667else 14668 as_basename=false 14669fi 14670 14671if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14672 as_dirname=dirname 14673else 14674 as_dirname=false 14675fi 14676 14677as_me=`$as_basename -- "$0" || 14678$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14679 X"$0" : 'X\(//\)$' \| \ 14680 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14681$as_echo X/"$0" | 14682 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14683 s//\1/ 14684 q 14685 } 14686 /^X\/\(\/\/\)$/{ 14687 s//\1/ 14688 q 14689 } 14690 /^X\/\(\/\).*/{ 14691 s//\1/ 14692 q 14693 } 14694 s/.*/./; q'` 14695 14696# Avoid depending upon Character Ranges. 14697as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14698as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14699as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14700as_cr_digits='0123456789' 14701as_cr_alnum=$as_cr_Letters$as_cr_digits 14702 14703ECHO_C= ECHO_N= ECHO_T= 14704case `echo -n x` in #((((( 14705-n*) 14706 case `echo 'xy\c'` in 14707 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14708 xy) ECHO_C='\c';; 14709 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14710 ECHO_T=' ';; 14711 esac;; 14712*) 14713 ECHO_N='-n';; 14714esac 14715 14716rm -f conf$$ conf$$.exe conf$$.file 14717if test -d conf$$.dir; then 14718 rm -f conf$$.dir/conf$$.file 14719else 14720 rm -f conf$$.dir 14721 mkdir conf$$.dir 2>/dev/null 14722fi 14723if (echo >conf$$.file) 2>/dev/null; then 14724 if ln -s conf$$.file conf$$ 2>/dev/null; then 14725 as_ln_s='ln -s' 14726 # ... but there are two gotchas: 14727 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14728 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14729 # In both cases, we have to default to `cp -pR'. 14730 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14731 as_ln_s='cp -pR' 14732 elif ln conf$$.file conf$$ 2>/dev/null; then 14733 as_ln_s=ln 14734 else 14735 as_ln_s='cp -pR' 14736 fi 14737else 14738 as_ln_s='cp -pR' 14739fi 14740rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14741rmdir conf$$.dir 2>/dev/null 14742 14743 14744# as_fn_mkdir_p 14745# ------------- 14746# Create "$as_dir" as a directory, including parents if necessary. 14747as_fn_mkdir_p () 14748{ 14749 14750 case $as_dir in #( 14751 -*) as_dir=./$as_dir;; 14752 esac 14753 test -d "$as_dir" || eval $as_mkdir_p || { 14754 as_dirs= 14755 while :; do 14756 case $as_dir in #( 14757 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14758 *) as_qdir=$as_dir;; 14759 esac 14760 as_dirs="'$as_qdir' $as_dirs" 14761 as_dir=`$as_dirname -- "$as_dir" || 14762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14763 X"$as_dir" : 'X\(//\)[^/]' \| \ 14764 X"$as_dir" : 'X\(//\)$' \| \ 14765 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14766$as_echo X"$as_dir" | 14767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14768 s//\1/ 14769 q 14770 } 14771 /^X\(\/\/\)[^/].*/{ 14772 s//\1/ 14773 q 14774 } 14775 /^X\(\/\/\)$/{ 14776 s//\1/ 14777 q 14778 } 14779 /^X\(\/\).*/{ 14780 s//\1/ 14781 q 14782 } 14783 s/.*/./; q'` 14784 test -d "$as_dir" && break 14785 done 14786 test -z "$as_dirs" || eval "mkdir $as_dirs" 14787 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14788 14789 14790} # as_fn_mkdir_p 14791if mkdir -p . 2>/dev/null; then 14792 as_mkdir_p='mkdir -p "$as_dir"' 14793else 14794 test -d ./-p && rmdir ./-p 14795 as_mkdir_p=false 14796fi 14797 14798 14799# as_fn_executable_p FILE 14800# ----------------------- 14801# Test if FILE is an executable regular file. 14802as_fn_executable_p () 14803{ 14804 test -f "$1" && test -x "$1" 14805} # as_fn_executable_p 14806as_test_x='test -x' 14807as_executable_p=as_fn_executable_p 14808 14809# Sed expression to map a string onto a valid CPP name. 14810as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14811 14812# Sed expression to map a string onto a valid variable name. 14813as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14814 14815 14816exec 6>&1 14817## ----------------------------------- ## 14818## Main body of $CONFIG_STATUS script. ## 14819## ----------------------------------- ## 14820_ASEOF 14821test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14822 14823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14824# Save the log message, to keep $0 and so on meaningful, and to 14825# report actual input values of CONFIG_FILES etc. instead of their 14826# values after options handling. 14827ac_log=" 14828This file was extended by Kerberos 5 $as_me 1.19.2, which was 14829generated by GNU Autoconf 2.69. Invocation command line was 14830 14831 CONFIG_FILES = $CONFIG_FILES 14832 CONFIG_HEADERS = $CONFIG_HEADERS 14833 CONFIG_LINKS = $CONFIG_LINKS 14834 CONFIG_COMMANDS = $CONFIG_COMMANDS 14835 $ $0 $@ 14836 14837on `(hostname || uname -n) 2>/dev/null | sed 1q` 14838" 14839 14840_ACEOF 14841 14842case $ac_config_files in *" 14843"*) set x $ac_config_files; shift; ac_config_files=$*;; 14844esac 14845 14846case $ac_config_headers in *" 14847"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14848esac 14849 14850 14851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14852# Files that config.status was made for. 14853config_files="$ac_config_files" 14854config_headers="$ac_config_headers" 14855config_commands="$ac_config_commands" 14856 14857_ACEOF 14858 14859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14860ac_cs_usage="\ 14861\`$as_me' instantiates files and other configuration actions 14862from templates according to the current configuration. Unless the files 14863and actions are specified as TAGs, all are instantiated by default. 14864 14865Usage: $0 [OPTION]... [TAG]... 14866 14867 -h, --help print this help, then exit 14868 -V, --version print version number and configuration settings, then exit 14869 --config print configuration, then exit 14870 -q, --quiet, --silent 14871 do not print progress messages 14872 -d, --debug don't remove temporary files 14873 --recheck update $as_me by reconfiguring in the same conditions 14874 --file=FILE[:TEMPLATE] 14875 instantiate the configuration file FILE 14876 --header=FILE[:TEMPLATE] 14877 instantiate the configuration header FILE 14878 14879Configuration files: 14880$config_files 14881 14882Configuration headers: 14883$config_headers 14884 14885Configuration commands: 14886$config_commands 14887 14888Report bugs to <krb5-bugs@mit.edu>." 14889 14890_ACEOF 14891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14892ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14893ac_cs_version="\\ 14894Kerberos 5 config.status 1.19.2 14895configured by $0, generated by GNU Autoconf 2.69, 14896 with options \\"\$ac_cs_config\\" 14897 14898Copyright (C) 2012 Free Software Foundation, Inc. 14899This config.status script is free software; the Free Software Foundation 14900gives unlimited permission to copy, distribute and modify it." 14901 14902ac_pwd='$ac_pwd' 14903srcdir='$srcdir' 14904INSTALL='$INSTALL' 14905AWK='$AWK' 14906test -n "\$AWK" || AWK=awk 14907_ACEOF 14908 14909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14910# The default lists apply if the user does not specify any file. 14911ac_need_defaults=: 14912while test $# != 0 14913do 14914 case $1 in 14915 --*=?*) 14916 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14917 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14918 ac_shift=: 14919 ;; 14920 --*=) 14921 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14922 ac_optarg= 14923 ac_shift=: 14924 ;; 14925 *) 14926 ac_option=$1 14927 ac_optarg=$2 14928 ac_shift=shift 14929 ;; 14930 esac 14931 14932 case $ac_option in 14933 # Handling of the options. 14934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14935 ac_cs_recheck=: ;; 14936 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14937 $as_echo "$ac_cs_version"; exit ;; 14938 --config | --confi | --conf | --con | --co | --c ) 14939 $as_echo "$ac_cs_config"; exit ;; 14940 --debug | --debu | --deb | --de | --d | -d ) 14941 debug=: ;; 14942 --file | --fil | --fi | --f ) 14943 $ac_shift 14944 case $ac_optarg in 14945 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14946 '') as_fn_error $? "missing file argument" ;; 14947 esac 14948 as_fn_append CONFIG_FILES " '$ac_optarg'" 14949 ac_need_defaults=false;; 14950 --header | --heade | --head | --hea ) 14951 $ac_shift 14952 case $ac_optarg in 14953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14954 esac 14955 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14956 ac_need_defaults=false;; 14957 --he | --h) 14958 # Conflict between --help and --header 14959 as_fn_error $? "ambiguous option: \`$1' 14960Try \`$0 --help' for more information.";; 14961 --help | --hel | -h ) 14962 $as_echo "$ac_cs_usage"; exit ;; 14963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14964 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14965 ac_cs_silent=: ;; 14966 14967 # This is an error. 14968 -*) as_fn_error $? "unrecognized option: \`$1' 14969Try \`$0 --help' for more information." ;; 14970 14971 *) as_fn_append ac_config_targets " $1" 14972 ac_need_defaults=false ;; 14973 14974 esac 14975 shift 14976done 14977 14978ac_configure_extra_args= 14979 14980if $ac_cs_silent; then 14981 exec 6>/dev/null 14982 ac_configure_extra_args="$ac_configure_extra_args --silent" 14983fi 14984 14985_ACEOF 14986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14987if \$ac_cs_recheck; then 14988 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14989 shift 14990 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14991 CONFIG_SHELL='$SHELL' 14992 export CONFIG_SHELL 14993 exec "\$@" 14994fi 14995 14996_ACEOF 14997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14998exec 5>>config.log 14999{ 15000 echo 15001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15002## Running $as_me. ## 15003_ASBOX 15004 $as_echo "$ac_log" 15005} >&5 15006 15007_ACEOF 15008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15009# 15010# INIT-COMMANDS 15011# 15012CRYPTO_IMPL=$CRYPTO_IMPL 15013PRNG_ALG=$PRNG_ALG 15014 15015_ACEOF 15016 15017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15018 15019# Handling of arguments. 15020for ac_config_target in $ac_config_targets 15021do 15022 case $ac_config_target in 15023 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile:$srcdir/./config/pre.in:po/Makefile.in:po/deps:$srcdir/./config/post.in" ;; 15024 "plugins/audit/simple/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/audit/simple/Makefile:$srcdir/./config/pre.in:plugins/audit/simple/Makefile.in:plugins/audit/simple/deps:$srcdir/./config/post.in" ;; 15025 "CRYPTO_IMPL") CONFIG_COMMANDS="$CONFIG_COMMANDS CRYPTO_IMPL" ;; 15026 "PRNG_ALG") CONFIG_COMMANDS="$CONFIG_COMMANDS PRNG_ALG" ;; 15027 "include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;; 15028 "kadmin/testing/scripts/env-setup.sh") CONFIG_FILES="$CONFIG_FILES kadmin/testing/scripts/env-setup.sh:kadmin/testing/scripts/env-setup.shin" ;; 15029 "include/gssrpc/types.h") CONFIG_FILES="$CONFIG_FILES include/gssrpc/types.h:include/gssrpc/types.hin" ;; 15030 "plugins/preauth/pkinit/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/pkinit/Makefile:$srcdir/./config/pre.in:plugins/preauth/pkinit/Makefile.in:plugins/preauth/pkinit/deps:$srcdir/./config/post.in" ;; 15031 "tests/softpkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES tests/softpkcs11/Makefile:$srcdir/./config/pre.in:tests/softpkcs11/Makefile.in:tests/softpkcs11/deps:$srcdir/./config/post.in" ;; 15032 "util/et/Makefile") CONFIG_FILES="$CONFIG_FILES util/et/Makefile:$srcdir/./config/pre.in:util/et/Makefile.in:util/et/deps:$srcdir/./config/post.in" ;; 15033 "util/ss/Makefile") CONFIG_FILES="$CONFIG_FILES util/ss/Makefile:$srcdir/./config/pre.in:util/ss/Makefile.in:util/ss/deps:$srcdir/./config/post.in" ;; 15034 "plugins/kdb/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/ldap/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/Makefile.in:plugins/kdb/ldap/deps:$srcdir/./config/post.in" ;; 15035 "plugins/kdb/ldap/ldap_util/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/ldap/ldap_util/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/ldap_util/Makefile.in:plugins/kdb/ldap/ldap_util/deps:$srcdir/./config/post.in" ;; 15036 "plugins/kdb/ldap/libkdb_ldap/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/ldap/libkdb_ldap/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/libkdb_ldap/Makefile.in:plugins/kdb/ldap/libkdb_ldap/deps:$srcdir/./config/post.in" ;; 15037 "plugins/preauth/securid_sam2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/securid_sam2/Makefile:$srcdir/./config/pre.in:plugins/preauth/securid_sam2/Makefile.in:plugins/preauth/securid_sam2/deps:$srcdir/./config/post.in" ;; 15038 "plugins/kdb/lmdb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/lmdb/Makefile:$srcdir/./config/pre.in:plugins/kdb/lmdb/Makefile.in:plugins/kdb/lmdb/deps:$srcdir/./config/post.in" ;; 15039 "build-tools/krb5-config") CONFIG_FILES="$CONFIG_FILES build-tools/krb5-config" ;; 15040 "build-tools/kadm-server.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kadm-server.pc" ;; 15041 "build-tools/kadm-client.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kadm-client.pc" ;; 15042 "build-tools/kdb.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kdb.pc" ;; 15043 "build-tools/krb5.pc") CONFIG_FILES="$CONFIG_FILES build-tools/krb5.pc" ;; 15044 "build-tools/krb5-gssapi.pc") CONFIG_FILES="$CONFIG_FILES build-tools/krb5-gssapi.pc" ;; 15045 "build-tools/mit-krb5.pc") CONFIG_FILES="$CONFIG_FILES build-tools/mit-krb5.pc" ;; 15046 "build-tools/mit-krb5-gssapi.pc") CONFIG_FILES="$CONFIG_FILES build-tools/mit-krb5-gssapi.pc" ;; 15047 "build-tools/gssrpc.pc") CONFIG_FILES="$CONFIG_FILES build-tools/gssrpc.pc" ;; 15048 "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/./config/pre.in:./Makefile.in:./deps:$srcdir/./config/post.in" ;; 15049 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile:$srcdir/./config/pre.in:util/Makefile.in:util/deps:$srcdir/./config/post.in" ;; 15050 "util/support/Makefile") CONFIG_FILES="$CONFIG_FILES util/support/Makefile:$srcdir/./config/pre.in:util/support/Makefile.in:util/support/deps:$srcdir/./config/post.in" ;; 15051 "util/profile/Makefile") CONFIG_FILES="$CONFIG_FILES util/profile/Makefile:$srcdir/./config/pre.in:util/profile/Makefile.in:util/profile/deps:$srcdir/./config/post.in" ;; 15052 "util/profile/testmod/Makefile") CONFIG_FILES="$CONFIG_FILES util/profile/testmod/Makefile:$srcdir/./config/pre.in:util/profile/testmod/Makefile.in:util/profile/testmod/deps:$srcdir/./config/post.in" ;; 15053 "util/verto/Makefile") CONFIG_FILES="$CONFIG_FILES util/verto/Makefile:$srcdir/./config/pre.in:util/verto/Makefile.in:util/verto/deps:$srcdir/./config/post.in" ;; 15054 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile:$srcdir/./config/pre.in:lib/Makefile.in:lib/deps:$srcdir/./config/post.in" ;; 15055 "lib/kdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdb/Makefile:$srcdir/./config/pre.in:lib/kdb/Makefile.in:lib/kdb/deps:$srcdir/./config/post.in" ;; 15056 "lib/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/Makefile:$srcdir/./config/pre.in:lib/crypto/Makefile.in:lib/crypto/deps:$srcdir/./config/post.in" ;; 15057 "lib/crypto/krb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/krb/Makefile:$srcdir/./config/pre.in:lib/crypto/krb/Makefile.in:lib/crypto/krb/deps:$srcdir/./config/post.in" ;; 15058 "lib/crypto/$CRYPTO_IMPL/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/Makefile.in:lib/crypto/$CRYPTO_IMPL/deps:$srcdir/./config/post.in" ;; 15059 "lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile.in:lib/crypto/$CRYPTO_IMPL/enc_provider/deps:$srcdir/./config/post.in" ;; 15060 "lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile.in:lib/crypto/$CRYPTO_IMPL/hash_provider/deps:$srcdir/./config/post.in" ;; 15061 "lib/crypto/$CRYPTO_IMPL/des/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/des/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/des/Makefile.in:lib/crypto/$CRYPTO_IMPL/des/deps:$srcdir/./config/post.in" ;; 15062 "lib/crypto/$CRYPTO_IMPL/md4/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/md4/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/md4/Makefile.in:lib/crypto/$CRYPTO_IMPL/md4/deps:$srcdir/./config/post.in" ;; 15063 "lib/crypto/$CRYPTO_IMPL/md5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/md5/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/md5/Makefile.in:lib/crypto/$CRYPTO_IMPL/md5/deps:$srcdir/./config/post.in" ;; 15064 "lib/crypto/$CRYPTO_IMPL/sha1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/sha1/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/sha1/Makefile.in:lib/crypto/$CRYPTO_IMPL/sha1/deps:$srcdir/./config/post.in" ;; 15065 "lib/crypto/$CRYPTO_IMPL/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/sha2/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/sha2/Makefile.in:lib/crypto/$CRYPTO_IMPL/sha2/deps:$srcdir/./config/post.in" ;; 15066 "lib/crypto/$CRYPTO_IMPL/aes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/aes/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/aes/Makefile.in:lib/crypto/$CRYPTO_IMPL/aes/deps:$srcdir/./config/post.in" ;; 15067 "lib/crypto/$CRYPTO_IMPL/camellia/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/camellia/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/camellia/Makefile.in:lib/crypto/$CRYPTO_IMPL/camellia/deps:$srcdir/./config/post.in" ;; 15068 "lib/crypto/crypto_tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/crypto_tests/Makefile:$srcdir/./config/pre.in:lib/crypto/crypto_tests/Makefile.in:lib/crypto/crypto_tests/deps:$srcdir/./config/post.in" ;; 15069 "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile:$srcdir/./config/pre.in:lib/krb5/Makefile.in:lib/krb5/deps:$srcdir/./config/post.in" ;; 15070 "lib/krb5/error_tables/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/error_tables/Makefile:$srcdir/./config/pre.in:lib/krb5/error_tables/Makefile.in:lib/krb5/error_tables/deps:$srcdir/./config/post.in" ;; 15071 "lib/krb5/asn.1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/asn.1/Makefile:$srcdir/./config/pre.in:lib/krb5/asn.1/Makefile.in:lib/krb5/asn.1/deps:$srcdir/./config/post.in" ;; 15072 "lib/krb5/ccache/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/ccache/Makefile:$srcdir/./config/pre.in:lib/krb5/ccache/Makefile.in:lib/krb5/ccache/deps:$srcdir/./config/post.in" ;; 15073 "lib/krb5/keytab/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/keytab/Makefile:$srcdir/./config/pre.in:lib/krb5/keytab/Makefile.in:lib/krb5/keytab/deps:$srcdir/./config/post.in" ;; 15074 "lib/krb5/krb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/krb/Makefile:$srcdir/./config/pre.in:lib/krb5/krb/Makefile.in:lib/krb5/krb/deps:$srcdir/./config/post.in" ;; 15075 "lib/krb5/rcache/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/rcache/Makefile:$srcdir/./config/pre.in:lib/krb5/rcache/Makefile.in:lib/krb5/rcache/deps:$srcdir/./config/post.in" ;; 15076 "lib/krb5/os/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/os/Makefile:$srcdir/./config/pre.in:lib/krb5/os/Makefile.in:lib/krb5/os/deps:$srcdir/./config/post.in" ;; 15077 "lib/krb5/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/unicode/Makefile:$srcdir/./config/pre.in:lib/krb5/unicode/Makefile.in:lib/krb5/unicode/deps:$srcdir/./config/post.in" ;; 15078 "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile:$srcdir/./config/pre.in:lib/gssapi/Makefile.in:lib/gssapi/deps:$srcdir/./config/post.in" ;; 15079 "lib/gssapi/generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/generic/Makefile:$srcdir/./config/pre.in:lib/gssapi/generic/Makefile.in:lib/gssapi/generic/deps:$srcdir/./config/post.in" ;; 15080 "lib/gssapi/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/krb5/Makefile:$srcdir/./config/pre.in:lib/gssapi/krb5/Makefile.in:lib/gssapi/krb5/deps:$srcdir/./config/post.in" ;; 15081 "lib/gssapi/spnego/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/spnego/Makefile:$srcdir/./config/pre.in:lib/gssapi/spnego/Makefile.in:lib/gssapi/spnego/deps:$srcdir/./config/post.in" ;; 15082 "lib/gssapi/mechglue/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/mechglue/Makefile:$srcdir/./config/pre.in:lib/gssapi/mechglue/Makefile.in:lib/gssapi/mechglue/deps:$srcdir/./config/post.in" ;; 15083 "lib/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpc/Makefile:$srcdir/./config/pre.in:lib/rpc/Makefile.in:lib/rpc/deps:$srcdir/./config/post.in" ;; 15084 "lib/rpc/unit-test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpc/unit-test/Makefile:$srcdir/./config/pre.in:lib/rpc/unit-test/Makefile.in:lib/rpc/unit-test/deps:$srcdir/./config/post.in" ;; 15085 "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile:$srcdir/./config/pre.in:lib/kadm5/Makefile.in:lib/kadm5/deps:$srcdir/./config/post.in" ;; 15086 "lib/kadm5/clnt/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/clnt/Makefile:$srcdir/./config/pre.in:lib/kadm5/clnt/Makefile.in:lib/kadm5/clnt/deps:$srcdir/./config/post.in" ;; 15087 "lib/kadm5/srv/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/srv/Makefile:$srcdir/./config/pre.in:lib/kadm5/srv/Makefile.in:lib/kadm5/srv/deps:$srcdir/./config/post.in" ;; 15088 "lib/kadm5/unit-test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/unit-test/Makefile:$srcdir/./config/pre.in:lib/kadm5/unit-test/Makefile.in:lib/kadm5/unit-test/deps:$srcdir/./config/post.in" ;; 15089 "lib/krad/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krad/Makefile:$srcdir/./config/pre.in:lib/krad/Makefile.in:lib/krad/deps:$srcdir/./config/post.in" ;; 15090 "lib/apputils/Makefile") CONFIG_FILES="$CONFIG_FILES lib/apputils/Makefile:$srcdir/./config/pre.in:lib/apputils/Makefile.in:lib/apputils/deps:$srcdir/./config/post.in" ;; 15091 "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile:$srcdir/./config/pre.in:kdc/Makefile.in:kdc/deps:$srcdir/./config/post.in" ;; 15092 "kprop/Makefile") CONFIG_FILES="$CONFIG_FILES kprop/Makefile:$srcdir/./config/pre.in:kprop/Makefile.in:kprop/deps:$srcdir/./config/post.in" ;; 15093 "config-files/Makefile") CONFIG_FILES="$CONFIG_FILES config-files/Makefile:$srcdir/./config/pre.in:config-files/Makefile.in:config-files/deps:$srcdir/./config/post.in" ;; 15094 "build-tools/Makefile") CONFIG_FILES="$CONFIG_FILES build-tools/Makefile:$srcdir/./config/pre.in:build-tools/Makefile.in:build-tools/deps:$srcdir/./config/post.in" ;; 15095 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile:$srcdir/./config/pre.in:man/Makefile.in:man/deps:$srcdir/./config/post.in" ;; 15096 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:$srcdir/./config/pre.in:doc/Makefile.in:doc/deps:$srcdir/./config/post.in" ;; 15097 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:$srcdir/./config/pre.in:include/Makefile.in:include/deps:$srcdir/./config/post.in" ;; 15098 "plugins/certauth/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/certauth/test/Makefile:$srcdir/./config/pre.in:plugins/certauth/test/Makefile.in:plugins/certauth/test/deps:$srcdir/./config/post.in" ;; 15099 "plugins/gssapi/negoextest/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/gssapi/negoextest/Makefile:$srcdir/./config/pre.in:plugins/gssapi/negoextest/Makefile.in:plugins/gssapi/negoextest/deps:$srcdir/./config/post.in" ;; 15100 "plugins/hostrealm/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/hostrealm/test/Makefile:$srcdir/./config/pre.in:plugins/hostrealm/test/Makefile.in:plugins/hostrealm/test/deps:$srcdir/./config/post.in" ;; 15101 "plugins/localauth/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/localauth/test/Makefile:$srcdir/./config/pre.in:plugins/localauth/test/Makefile.in:plugins/localauth/test/deps:$srcdir/./config/post.in" ;; 15102 "plugins/kadm5_hook/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kadm5_hook/test/Makefile:$srcdir/./config/pre.in:plugins/kadm5_hook/test/Makefile.in:plugins/kadm5_hook/test/deps:$srcdir/./config/post.in" ;; 15103 "plugins/kadm5_auth/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kadm5_auth/test/Makefile:$srcdir/./config/pre.in:plugins/kadm5_auth/test/Makefile.in:plugins/kadm5_auth/test/deps:$srcdir/./config/post.in" ;; 15104 "plugins/pwqual/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/pwqual/test/Makefile:$srcdir/./config/pre.in:plugins/pwqual/test/Makefile.in:plugins/pwqual/test/deps:$srcdir/./config/post.in" ;; 15105 "plugins/audit/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/audit/Makefile:$srcdir/./config/pre.in:plugins/audit/Makefile.in:plugins/audit/deps:$srcdir/./config/post.in" ;; 15106 "plugins/audit/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/audit/test/Makefile:$srcdir/./config/pre.in:plugins/audit/test/Makefile.in:plugins/audit/test/deps:$srcdir/./config/post.in" ;; 15107 "plugins/kdb/db2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/Makefile.in:plugins/kdb/db2/deps:$srcdir/./config/post.in" ;; 15108 "plugins/kdb/db2/libdb2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/Makefile.in:plugins/kdb/db2/libdb2/deps:$srcdir/./config/post.in" ;; 15109 "plugins/kdb/db2/libdb2/hash/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/hash/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/hash/Makefile.in:plugins/kdb/db2/libdb2/hash/deps:$srcdir/./config/post.in" ;; 15110 "plugins/kdb/db2/libdb2/btree/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/btree/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/btree/Makefile.in:plugins/kdb/db2/libdb2/btree/deps:$srcdir/./config/post.in" ;; 15111 "plugins/kdb/db2/libdb2/db/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/db/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/db/Makefile.in:plugins/kdb/db2/libdb2/db/deps:$srcdir/./config/post.in" ;; 15112 "plugins/kdb/db2/libdb2/mpool/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/mpool/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/mpool/Makefile.in:plugins/kdb/db2/libdb2/mpool/deps:$srcdir/./config/post.in" ;; 15113 "plugins/kdb/db2/libdb2/recno/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/recno/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/recno/Makefile.in:plugins/kdb/db2/libdb2/recno/deps:$srcdir/./config/post.in" ;; 15114 "plugins/kdb/db2/libdb2/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/test/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/test/Makefile.in:plugins/kdb/db2/libdb2/test/deps:$srcdir/./config/post.in" ;; 15115 "plugins/kdb/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/test/Makefile:$srcdir/./config/pre.in:plugins/kdb/test/Makefile.in:plugins/kdb/test/deps:$srcdir/./config/post.in" ;; 15116 "plugins/kdcpolicy/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdcpolicy/test/Makefile:$srcdir/./config/pre.in:plugins/kdcpolicy/test/Makefile.in:plugins/kdcpolicy/test/deps:$srcdir/./config/post.in" ;; 15117 "plugins/preauth/otp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/otp/Makefile:$srcdir/./config/pre.in:plugins/preauth/otp/Makefile.in:plugins/preauth/otp/deps:$srcdir/./config/post.in" ;; 15118 "plugins/preauth/spake/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/spake/Makefile:$srcdir/./config/pre.in:plugins/preauth/spake/Makefile.in:plugins/preauth/spake/deps:$srcdir/./config/post.in" ;; 15119 "plugins/preauth/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/test/Makefile:$srcdir/./config/pre.in:plugins/preauth/test/Makefile.in:plugins/preauth/test/deps:$srcdir/./config/post.in" ;; 15120 "plugins/authdata/greet_client/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/authdata/greet_client/Makefile:$srcdir/./config/pre.in:plugins/authdata/greet_client/Makefile.in:plugins/authdata/greet_client/deps:$srcdir/./config/post.in" ;; 15121 "plugins/authdata/greet_server/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/authdata/greet_server/Makefile:$srcdir/./config/pre.in:plugins/authdata/greet_server/Makefile.in:plugins/authdata/greet_server/deps:$srcdir/./config/post.in" ;; 15122 "plugins/tls/k5tls/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/tls/k5tls/Makefile:$srcdir/./config/pre.in:plugins/tls/k5tls/Makefile.in:plugins/tls/k5tls/deps:$srcdir/./config/post.in" ;; 15123 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:$srcdir/./config/pre.in:clients/Makefile.in:clients/deps:$srcdir/./config/post.in" ;; 15124 "clients/klist/Makefile") CONFIG_FILES="$CONFIG_FILES clients/klist/Makefile:$srcdir/./config/pre.in:clients/klist/Makefile.in:clients/klist/deps:$srcdir/./config/post.in" ;; 15125 "clients/kinit/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kinit/Makefile:$srcdir/./config/pre.in:clients/kinit/Makefile.in:clients/kinit/deps:$srcdir/./config/post.in" ;; 15126 "clients/kvno/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kvno/Makefile:$srcdir/./config/pre.in:clients/kvno/Makefile.in:clients/kvno/deps:$srcdir/./config/post.in" ;; 15127 "clients/kdestroy/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kdestroy/Makefile:$srcdir/./config/pre.in:clients/kdestroy/Makefile.in:clients/kdestroy/deps:$srcdir/./config/post.in" ;; 15128 "clients/kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kpasswd/Makefile:$srcdir/./config/pre.in:clients/kpasswd/Makefile.in:clients/kpasswd/deps:$srcdir/./config/post.in" ;; 15129 "clients/ksu/Makefile") CONFIG_FILES="$CONFIG_FILES clients/ksu/Makefile:$srcdir/./config/pre.in:clients/ksu/Makefile.in:clients/ksu/deps:$srcdir/./config/post.in" ;; 15130 "clients/kswitch/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kswitch/Makefile:$srcdir/./config/pre.in:clients/kswitch/Makefile.in:clients/kswitch/deps:$srcdir/./config/post.in" ;; 15131 "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile:$srcdir/./config/pre.in:kadmin/Makefile.in:kadmin/deps:$srcdir/./config/post.in" ;; 15132 "kadmin/cli/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/cli/Makefile:$srcdir/./config/pre.in:kadmin/cli/Makefile.in:kadmin/cli/deps:$srcdir/./config/post.in" ;; 15133 "kadmin/dbutil/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/dbutil/Makefile:$srcdir/./config/pre.in:kadmin/dbutil/Makefile.in:kadmin/dbutil/deps:$srcdir/./config/post.in" ;; 15134 "kadmin/ktutil/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/ktutil/Makefile:$srcdir/./config/pre.in:kadmin/ktutil/Makefile.in:kadmin/ktutil/deps:$srcdir/./config/post.in" ;; 15135 "kadmin/server/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/server/Makefile:$srcdir/./config/pre.in:kadmin/server/Makefile.in:kadmin/server/deps:$srcdir/./config/post.in" ;; 15136 "kadmin/testing/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/testing/Makefile:$srcdir/./config/pre.in:kadmin/testing/Makefile.in:kadmin/testing/deps:$srcdir/./config/post.in" ;; 15137 "kadmin/testing/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/testing/scripts/Makefile:$srcdir/./config/pre.in:kadmin/testing/scripts/Makefile.in:kadmin/testing/scripts/deps:$srcdir/./config/post.in" ;; 15138 "kadmin/testing/util/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/testing/util/Makefile:$srcdir/./config/pre.in:kadmin/testing/util/Makefile.in:kadmin/testing/util/deps:$srcdir/./config/post.in" ;; 15139 "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile:$srcdir/./config/pre.in:appl/Makefile.in:appl/deps:$srcdir/./config/post.in" ;; 15140 "appl/sample/Makefile") CONFIG_FILES="$CONFIG_FILES appl/sample/Makefile:$srcdir/./config/pre.in:appl/sample/Makefile.in:appl/sample/deps:$srcdir/./config/post.in" ;; 15141 "appl/sample/sclient/Makefile") CONFIG_FILES="$CONFIG_FILES appl/sample/sclient/Makefile:$srcdir/./config/pre.in:appl/sample/sclient/Makefile.in:appl/sample/sclient/deps:$srcdir/./config/post.in" ;; 15142 "appl/sample/sserver/Makefile") CONFIG_FILES="$CONFIG_FILES appl/sample/sserver/Makefile:$srcdir/./config/pre.in:appl/sample/sserver/Makefile.in:appl/sample/sserver/deps:$srcdir/./config/post.in" ;; 15143 "appl/simple/Makefile") CONFIG_FILES="$CONFIG_FILES appl/simple/Makefile:$srcdir/./config/pre.in:appl/simple/Makefile.in:appl/simple/deps:$srcdir/./config/post.in" ;; 15144 "appl/simple/client/Makefile") CONFIG_FILES="$CONFIG_FILES appl/simple/client/Makefile:$srcdir/./config/pre.in:appl/simple/client/Makefile.in:appl/simple/client/deps:$srcdir/./config/post.in" ;; 15145 "appl/simple/server/Makefile") CONFIG_FILES="$CONFIG_FILES appl/simple/server/Makefile:$srcdir/./config/pre.in:appl/simple/server/Makefile.in:appl/simple/server/deps:$srcdir/./config/post.in" ;; 15146 "appl/gss-sample/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gss-sample/Makefile:$srcdir/./config/pre.in:appl/gss-sample/Makefile.in:appl/gss-sample/deps:$srcdir/./config/post.in" ;; 15147 "appl/user_user/Makefile") CONFIG_FILES="$CONFIG_FILES appl/user_user/Makefile:$srcdir/./config/pre.in:appl/user_user/Makefile.in:appl/user_user/deps:$srcdir/./config/post.in" ;; 15148 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:$srcdir/./config/pre.in:tests/Makefile.in:tests/deps:$srcdir/./config/post.in" ;; 15149 "tests/asn.1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/asn.1/Makefile:$srcdir/./config/pre.in:tests/asn.1/Makefile.in:tests/asn.1/deps:$srcdir/./config/post.in" ;; 15150 "tests/create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/create/Makefile:$srcdir/./config/pre.in:tests/create/Makefile.in:tests/create/deps:$srcdir/./config/post.in" ;; 15151 "tests/hammer/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hammer/Makefile:$srcdir/./config/pre.in:tests/hammer/Makefile.in:tests/hammer/deps:$srcdir/./config/post.in" ;; 15152 "tests/verify/Makefile") CONFIG_FILES="$CONFIG_FILES tests/verify/Makefile:$srcdir/./config/pre.in:tests/verify/Makefile.in:tests/verify/deps:$srcdir/./config/post.in" ;; 15153 "tests/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gssapi/Makefile:$srcdir/./config/pre.in:tests/gssapi/Makefile.in:tests/gssapi/deps:$srcdir/./config/post.in" ;; 15154 "tests/dejagnu/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dejagnu/Makefile:$srcdir/./config/pre.in:tests/dejagnu/Makefile.in:tests/dejagnu/deps:$srcdir/./config/post.in" ;; 15155 "tests/threads/Makefile") CONFIG_FILES="$CONFIG_FILES tests/threads/Makefile:$srcdir/./config/pre.in:tests/threads/Makefile.in:tests/threads/deps:$srcdir/./config/post.in" ;; 15156 "tests/shlib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/shlib/Makefile:$srcdir/./config/pre.in:tests/shlib/Makefile.in:tests/shlib/deps:$srcdir/./config/post.in" ;; 15157 "tests/gss-threads/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss-threads/Makefile:$srcdir/./config/pre.in:tests/gss-threads/Makefile.in:tests/gss-threads/deps:$srcdir/./config/post.in" ;; 15158 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile:$srcdir/./config/pre.in:tests/misc/Makefile.in:tests/misc/deps:$srcdir/./config/post.in" ;; 15159 15160 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15161 esac 15162done 15163 15164 15165# If the user did not use the arguments to specify the items to instantiate, 15166# then the envvar interface is used. Set only those that are not. 15167# We use the long form for the default assignment because of an extremely 15168# bizarre bug on SunOS 4.1.3. 15169if $ac_need_defaults; then 15170 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15171 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15172 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15173fi 15174 15175# Have a temporary directory for convenience. Make it in the build tree 15176# simply because there is no reason against having it here, and in addition, 15177# creating and moving files from /tmp can sometimes cause problems. 15178# Hook for its removal unless debugging. 15179# Note that there is a small window in which the directory will not be cleaned: 15180# after its creation but before its name has been assigned to `$tmp'. 15181$debug || 15182{ 15183 tmp= ac_tmp= 15184 trap 'exit_status=$? 15185 : "${ac_tmp:=$tmp}" 15186 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15187' 0 15188 trap 'as_fn_exit 1' 1 2 13 15 15189} 15190# Create a (secure) tmp directory for tmp files. 15191 15192{ 15193 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15194 test -d "$tmp" 15195} || 15196{ 15197 tmp=./conf$$-$RANDOM 15198 (umask 077 && mkdir "$tmp") 15199} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15200ac_tmp=$tmp 15201 15202# Set up the scripts for CONFIG_FILES section. 15203# No need to generate them if there are no CONFIG_FILES. 15204# This happens for instance with `./config.status config.h'. 15205if test -n "$CONFIG_FILES"; then 15206 15207if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 15208 ac_cs_awk_getline=: 15209 ac_cs_awk_pipe_init= 15210 ac_cs_awk_read_file=' 15211 while ((getline aline < (F[key])) > 0) 15212 print(aline) 15213 close(F[key])' 15214 ac_cs_awk_pipe_fini= 15215else 15216 ac_cs_awk_getline=false 15217 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 15218 ac_cs_awk_read_file=' 15219 print "|#_!!_#|" 15220 print "cat " F[key] " &&" 15221 '$ac_cs_awk_pipe_init 15222 # The final `:' finishes the AND list. 15223 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 15224fi 15225ac_cr=`echo X | tr X '\015'` 15226# On cygwin, bash can eat \r inside `` if the user requested igncr. 15227# But we know of no other shell where ac_cr would be empty at this 15228# point, so we can use a bashism as a fallback. 15229if test "x$ac_cr" = x; then 15230 eval ac_cr=\$\'\\r\' 15231fi 15232ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15233if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15234 ac_cs_awk_cr='\\r' 15235else 15236 ac_cs_awk_cr=$ac_cr 15237fi 15238 15239echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15240_ACEOF 15241 15242# Create commands to substitute file output variables. 15243{ 15244 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 15245 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 15246 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 15247 echo "_ACAWK" && 15248 echo "_ACEOF" 15249} >conf$$files.sh && 15250. ./conf$$files.sh || 15251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15252rm -f conf$$files.sh 15253 15254{ 15255 echo "cat >conf$$subs.awk <<_ACEOF" && 15256 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15257 echo "_ACEOF" 15258} >conf$$subs.sh || 15259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15260ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15261ac_delim='%!_!# ' 15262for ac_last_try in false false false false false :; do 15263 . ./conf$$subs.sh || 15264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15265 15266 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15267 if test $ac_delim_n = $ac_delim_num; then 15268 break 15269 elif $ac_last_try; then 15270 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15271 else 15272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15273 fi 15274done 15275rm -f conf$$subs.sh 15276 15277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15278cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15279_ACEOF 15280sed -n ' 15281h 15282s/^/S["/; s/!.*/"]=/ 15283p 15284g 15285s/^[^!]*!// 15286:repl 15287t repl 15288s/'"$ac_delim"'$// 15289t delim 15290:nl 15291h 15292s/\(.\{148\}\)..*/\1/ 15293t more1 15294s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15295p 15296n 15297b repl 15298:more1 15299s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15300p 15301g 15302s/.\{148\}// 15303t nl 15304:delim 15305h 15306s/\(.\{148\}\)..*/\1/ 15307t more2 15308s/["\\]/\\&/g; s/^/"/; s/$/"/ 15309p 15310b 15311:more2 15312s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15313p 15314g 15315s/.\{148\}// 15316t delim 15317' <conf$$subs.awk | sed ' 15318/^[^""]/{ 15319 N 15320 s/\n// 15321} 15322' >>$CONFIG_STATUS || ac_write_fail=1 15323rm -f conf$$subs.awk 15324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15325_ACAWK 15326cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15327 for (key in S) S_is_set[key] = 1 15328 FS = "" 15329 \$ac_cs_awk_pipe_init 15330} 15331{ 15332 line = $ 0 15333 nfields = split(line, field, "@") 15334 substed = 0 15335 len = length(field[1]) 15336 for (i = 2; i < nfields; i++) { 15337 key = field[i] 15338 keylen = length(key) 15339 if (S_is_set[key]) { 15340 value = S[key] 15341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15342 len += length(value) + length(field[++i]) 15343 substed = 1 15344 } else 15345 len += 1 + keylen 15346 } 15347 if (nfields == 3 && !substed) { 15348 key = field[2] 15349 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 15350 \$ac_cs_awk_read_file 15351 next 15352 } 15353 } 15354 print line 15355} 15356\$ac_cs_awk_pipe_fini 15357_ACAWK 15358_ACEOF 15359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15360if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15361 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15362else 15363 cat 15364fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15365 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15366_ACEOF 15367 15368# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15369# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15370# trailing colons and then remove the whole line if VPATH becomes empty 15371# (actually we leave an empty line to preserve line numbers). 15372if test "x$srcdir" = x.; then 15373 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15374h 15375s/// 15376s/^/:/ 15377s/[ ]*$/:/ 15378s/:\$(srcdir):/:/g 15379s/:\${srcdir}:/:/g 15380s/:@srcdir@:/:/g 15381s/^:*// 15382s/:*$// 15383x 15384s/\(=[ ]*\).*/\1/ 15385G 15386s/\n// 15387s/^[^=]*=[ ]*$// 15388}' 15389fi 15390 15391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15392fi # test -n "$CONFIG_FILES" 15393 15394# Set up the scripts for CONFIG_HEADERS section. 15395# No need to generate them if there are no CONFIG_HEADERS. 15396# This happens for instance with `./config.status Makefile'. 15397if test -n "$CONFIG_HEADERS"; then 15398cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15399BEGIN { 15400_ACEOF 15401 15402# Transform confdefs.h into an awk script `defines.awk', embedded as 15403# here-document in config.status, that substitutes the proper values into 15404# config.h.in to produce config.h. 15405 15406# Create a delimiter string that does not exist in confdefs.h, to ease 15407# handling of long lines. 15408ac_delim='%!_!# ' 15409for ac_last_try in false false :; do 15410 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15411 if test -z "$ac_tt"; then 15412 break 15413 elif $ac_last_try; then 15414 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15415 else 15416 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15417 fi 15418done 15419 15420# For the awk script, D is an array of macro values keyed by name, 15421# likewise P contains macro parameters if any. Preserve backslash 15422# newline sequences. 15423 15424ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15425sed -n ' 15426s/.\{148\}/&'"$ac_delim"'/g 15427t rset 15428:rset 15429s/^[ ]*#[ ]*define[ ][ ]*/ / 15430t def 15431d 15432:def 15433s/\\$// 15434t bsnl 15435s/["\\]/\\&/g 15436s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15437D["\1"]=" \3"/p 15438s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15439d 15440:bsnl 15441s/["\\]/\\&/g 15442s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15443D["\1"]=" \3\\\\\\n"\\/p 15444t cont 15445s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15446t cont 15447d 15448:cont 15449n 15450s/.\{148\}/&'"$ac_delim"'/g 15451t clear 15452:clear 15453s/\\$// 15454t bsnlc 15455s/["\\]/\\&/g; s/^/"/; s/$/"/p 15456d 15457:bsnlc 15458s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15459b cont 15460' <confdefs.h | sed ' 15461s/'"$ac_delim"'/"\\\ 15462"/g' >>$CONFIG_STATUS || ac_write_fail=1 15463 15464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15465 for (key in D) D_is_set[key] = 1 15466 FS = "" 15467} 15468/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15469 line = \$ 0 15470 split(line, arg, " ") 15471 if (arg[1] == "#") { 15472 defundef = arg[2] 15473 mac1 = arg[3] 15474 } else { 15475 defundef = substr(arg[1], 2) 15476 mac1 = arg[2] 15477 } 15478 split(mac1, mac2, "(") #) 15479 macro = mac2[1] 15480 prefix = substr(line, 1, index(line, defundef) - 1) 15481 if (D_is_set[macro]) { 15482 # Preserve the white space surrounding the "#". 15483 print prefix "define", macro P[macro] D[macro] 15484 next 15485 } else { 15486 # Replace #undef with comments. This is necessary, for example, 15487 # in the case of _POSIX_SOURCE, which is predefined and required 15488 # on some systems where configure will not decide to define it. 15489 if (defundef == "undef") { 15490 print "/*", prefix defundef, macro, "*/" 15491 next 15492 } 15493 } 15494} 15495{ print } 15496_ACAWK 15497_ACEOF 15498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15499 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15500fi # test -n "$CONFIG_HEADERS" 15501 15502 15503eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15504shift 15505for ac_tag 15506do 15507 case $ac_tag in 15508 :[FHLC]) ac_mode=$ac_tag; continue;; 15509 esac 15510 case $ac_mode$ac_tag in 15511 :[FHL]*:*);; 15512 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15513 :[FH]-) ac_tag=-:-;; 15514 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15515 esac 15516 ac_save_IFS=$IFS 15517 IFS=: 15518 set x $ac_tag 15519 IFS=$ac_save_IFS 15520 shift 15521 ac_file=$1 15522 shift 15523 15524 case $ac_mode in 15525 :L) ac_source=$1;; 15526 :[FH]) 15527 ac_file_inputs= 15528 for ac_f 15529 do 15530 case $ac_f in 15531 -) ac_f="$ac_tmp/stdin";; 15532 *) # Look for the file first in the build tree, then in the source tree 15533 # (if the path is not absolute). The absolute path cannot be DOS-style, 15534 # because $ac_f cannot contain `:'. 15535 test -f "$ac_f" || 15536 case $ac_f in 15537 [\\/$]*) false;; 15538 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15539 esac || 15540 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15541 esac 15542 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15543 as_fn_append ac_file_inputs " '$ac_f'" 15544 done 15545 15546 # Let's still pretend it is `configure' which instantiates (i.e., don't 15547 # use $as_me), people would be surprised to read: 15548 # /* config.h. Generated by config.status. */ 15549 configure_input='Generated from '` 15550 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15551 `' by configure.' 15552 if test x"$ac_file" != x-; then 15553 configure_input="$ac_file. $configure_input" 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15555$as_echo "$as_me: creating $ac_file" >&6;} 15556 fi 15557 # Neutralize special characters interpreted by sed in replacement strings. 15558 case $configure_input in #( 15559 *\&* | *\|* | *\\* ) 15560 ac_sed_conf_input=`$as_echo "$configure_input" | 15561 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15562 *) ac_sed_conf_input=$configure_input;; 15563 esac 15564 15565 case $ac_tag in 15566 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15568 esac 15569 ;; 15570 esac 15571 15572 ac_dir=`$as_dirname -- "$ac_file" || 15573$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15574 X"$ac_file" : 'X\(//\)[^/]' \| \ 15575 X"$ac_file" : 'X\(//\)$' \| \ 15576 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15577$as_echo X"$ac_file" | 15578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15579 s//\1/ 15580 q 15581 } 15582 /^X\(\/\/\)[^/].*/{ 15583 s//\1/ 15584 q 15585 } 15586 /^X\(\/\/\)$/{ 15587 s//\1/ 15588 q 15589 } 15590 /^X\(\/\).*/{ 15591 s//\1/ 15592 q 15593 } 15594 s/.*/./; q'` 15595 as_dir="$ac_dir"; as_fn_mkdir_p 15596 ac_builddir=. 15597 15598case "$ac_dir" in 15599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15600*) 15601 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15602 # A ".." for each directory in $ac_dir_suffix. 15603 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15604 case $ac_top_builddir_sub in 15605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15607 esac ;; 15608esac 15609ac_abs_top_builddir=$ac_pwd 15610ac_abs_builddir=$ac_pwd$ac_dir_suffix 15611# for backward compatibility: 15612ac_top_builddir=$ac_top_build_prefix 15613 15614case $srcdir in 15615 .) # We are building in place. 15616 ac_srcdir=. 15617 ac_top_srcdir=$ac_top_builddir_sub 15618 ac_abs_top_srcdir=$ac_pwd ;; 15619 [\\/]* | ?:[\\/]* ) # Absolute name. 15620 ac_srcdir=$srcdir$ac_dir_suffix; 15621 ac_top_srcdir=$srcdir 15622 ac_abs_top_srcdir=$srcdir ;; 15623 *) # Relative name. 15624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15625 ac_top_srcdir=$ac_top_build_prefix$srcdir 15626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15627esac 15628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15629 15630 15631 case $ac_mode in 15632 :F) 15633 # 15634 # CONFIG_FILE 15635 # 15636 15637 case $INSTALL in 15638 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15639 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15640 esac 15641_ACEOF 15642 15643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15644# If the template does not know about datarootdir, expand it. 15645# FIXME: This hack should be removed a few years after 2.60. 15646ac_datarootdir_hack=; ac_datarootdir_seen= 15647ac_sed_dataroot=' 15648/datarootdir/ { 15649 p 15650 q 15651} 15652/@datadir@/p 15653/@docdir@/p 15654/@infodir@/p 15655/@localedir@/p 15656/@mandir@/p' 15657case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15658*datarootdir*) ac_datarootdir_seen=yes;; 15659*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15661$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15662_ACEOF 15663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15664 ac_datarootdir_hack=' 15665 s&@datadir@&$datadir&g 15666 s&@docdir@&$docdir&g 15667 s&@infodir@&$infodir&g 15668 s&@localedir@&$localedir&g 15669 s&@mandir@&$mandir&g 15670 s&\\\${datarootdir}&$datarootdir&g' ;; 15671esac 15672_ACEOF 15673 15674# Neutralize VPATH when `$srcdir' = `.'. 15675# Shell code in configure.ac might set extrasub. 15676# FIXME: do we really want to maintain this feature? 15677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15678ac_sed_extra="$ac_vpsub 15679$extrasub 15680_ACEOF 15681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15682:t 15683/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15684s|@configure_input@|$ac_sed_conf_input|;t t 15685s&@top_builddir@&$ac_top_builddir_sub&;t t 15686s&@top_build_prefix@&$ac_top_build_prefix&;t t 15687s&@srcdir@&$ac_srcdir&;t t 15688s&@abs_srcdir@&$ac_abs_srcdir&;t t 15689s&@top_srcdir@&$ac_top_srcdir&;t t 15690s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15691s&@builddir@&$ac_builddir&;t t 15692s&@abs_builddir@&$ac_abs_builddir&;t t 15693s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15694s&@INSTALL@&$ac_INSTALL&;t t 15695$ac_datarootdir_hack 15696" 15697eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 15698if $ac_cs_awk_getline; then 15699 $AWK -f "$ac_tmp/subs.awk" 15700else 15701 $AWK -f "$ac_tmp/subs.awk" | $SHELL 15702fi \ 15703 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15704 15705test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15706 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15707 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15708 "$ac_tmp/out"`; test -z "$ac_out"; } && 15709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15710which seems to be undefined. Please make sure it is defined" >&5 15711$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15712which seems to be undefined. Please make sure it is defined" >&2;} 15713 15714 rm -f "$ac_tmp/stdin" 15715 case $ac_file in 15716 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15717 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15718 esac \ 15719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15720 ;; 15721 :H) 15722 # 15723 # CONFIG_HEADER 15724 # 15725 if test x"$ac_file" != x-; then 15726 { 15727 $as_echo "/* $configure_input */" \ 15728 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15729 } >"$ac_tmp/config.h" \ 15730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15731 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15732 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15733$as_echo "$as_me: $ac_file is unchanged" >&6;} 15734 else 15735 rm -f "$ac_file" 15736 mv "$ac_tmp/config.h" "$ac_file" \ 15737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15738 fi 15739 else 15740 $as_echo "/* $configure_input */" \ 15741 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15742 || as_fn_error $? "could not create -" "$LINENO" 5 15743 fi 15744 ;; 15745 15746 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15747$as_echo "$as_me: executing $ac_file commands" >&6;} 15748 ;; 15749 esac 15750 15751 15752 case $ac_file$ac_mode in 15753 "include/autoconf.h":H) echo timestamp > include/autoconf.stamp ;; 15754 "build-tools/krb5-config":F) chmod +x build-tools/krb5-config ;; 15755 15756 esac 15757done # for ac_tag 15758 15759 15760as_fn_exit 0 15761_ACEOF 15762ac_clean_files=$ac_clean_files_save 15763 15764test $ac_write_fail = 0 || 15765 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15766 15767 15768# configure is writing to config.log, and then calls config.status. 15769# config.status does its own redirection, appending to config.log. 15770# Unfortunately, on DOS this fails, as config.log is still kept open 15771# by configure, so config.status won't be able to write to it; its 15772# output is simply discarded. So we exec the FD to /dev/null, 15773# effectively closing config.log, so it can be properly (re)opened and 15774# appended to by config.status. When coming back to configure, we 15775# need to make the FD available again. 15776if test "$no_create" != yes; then 15777 ac_cs_success=: 15778 ac_config_status_args= 15779 test "$silent" = yes && 15780 ac_config_status_args="$ac_config_status_args --quiet" 15781 exec 5>/dev/null 15782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15783 exec 5>>config.log 15784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15785 # would make configure fail if this is the last instruction. 15786 $ac_cs_success || as_fn_exit 1 15787fi 15788if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15790$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15791fi 15792 15793