1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for freeradius $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $. 4# 5# Report bugs to <http://bugs.freeradius.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: http://bugs.freeradius.org about your system, including 271$0: any error possibly output before this message. Then 272$0: install a modern shell, or manually run the script 273$0: under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='freeradius' 582PACKAGE_TARNAME='freeradius' 583PACKAGE_VERSION='$Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $' 584PACKAGE_STRING='freeradius $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $' 585PACKAGE_BUGREPORT='http://bugs.freeradius.org' 586PACKAGE_URL='http://www.freeradius.org' 587 588ac_unique_file="src/main/radiusd.c" 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625enable_option_checking=no 626ac_subst_vars='LTLIBOBJS 627LIBOBJS 628STATIC_MODULES 629USE_STATIC_LIBS 630USE_SHARED_LIBS 631INSTALLSTRIP 632MODULES 633subdirs 634HOSTINFO 635CRYPTLIB 636LIBPREFIX 637COLLECTDC_LDFLAGS 638COLLECTDC_LIBS 639PCAP_LDFLAGS 640PCAP_LIBS 641OPENSSL_CPPFLAGS 642OPENSSL_LDFLAGS 643OPENSSL_LIBS 644SYSTEMD_LDFLAGS 645SYSTEMD_LIBS 646LIBREADLINE 647TALLOC_LDFLAGS 648TALLOC_LIBS 649DIRNAME 650LOCATE 651AUTOHEADER 652AUTOCONF 653ACLOCAL 654RUSERS 655SNMPWALK 656SNMPGET 657openssl_version_check_config 658WITH_DHCP 659modconfdir 660dictdir 661raddbdir 662radacctdir 663logdir 664GIT 665FR_MAKEFLAGS 666MAKE 667GMAKE 668clang_path 669RANLIB 670EGREP 671GREP 672CPP 673ac_ct_CXX 674CXXFLAGS 675CXX 676OBJEXT 677EXEEXT 678ac_ct_CC 679CPPFLAGS 680LDFLAGS 681CFLAGS 682CC 683target_os 684target_vendor 685target_cpu 686target 687host_os 688host_vendor 689host_cpu 690host 691build_os 692build_vendor 693build_cpu 694build 695ANTORA 696GRAPHVIZ_DOT 697DOXYGEN 698PERL 699PANDOC_ENGINE 700PANDOC 701ASCIIDOCTOR 702RADIUSD_VERSION_STRING 703target_alias 704host_alias 705build_alias 706LIBS 707ECHO_T 708ECHO_N 709ECHO_C 710DEFS 711mandir 712localedir 713libdir 714psdir 715pdfdir 716dvidir 717htmldir 718infodir 719docdir 720oldincludedir 721includedir 722localstatedir 723sharedstatedir 724sysconfdir 725datadir 726datarootdir 727libexecdir 728sbindir 729bindir 730program_transform_name 731prefix 732exec_prefix 733PACKAGE_URL 734PACKAGE_BUGREPORT 735PACKAGE_STRING 736PACKAGE_VERSION 737PACKAGE_TARNAME 738PACKAGE_NAME 739PATH_SEPARATOR 740SHELL' 741ac_subst_files='' 742ac_user_opts=' 743enable_option_checking 744enable_developer 745enable_verify_ptr 746enable_largefile 747enable_strict_dependencies 748enable_werror 749with_docdir 750with_logdir 751with_radacctdir 752with_raddbdir 753with_dictdir 754with_ascend_binary 755with_threads 756with_tcp 757with_vmps 758with_dhcp 759with_static_modules 760with_shared_libs 761with_modules 762with_experimental_modules 763with_udpfromto 764with_rlm_FOO_lib_dir 765with_rlm_FOO_include_dir 766with_openssl 767with_openssl_lib_dir 768with_openssl_include_dir 769enable_openssl_version_check 770enable_reproducible_builds 771enable_fuzzer 772enable_address_sanitizer 773enable_leak_sanitizer 774enable_thread_sanitizer 775enable_undefined_behaviour_sanitizer 776with_talloc_lib_dir 777with_talloc_include_dir 778with_pcap_lib_dir 779with_pcap_include_dir 780with_collectdclient_lib_dir 781with_collectdclient_include_dir 782with_cap_lib_dir 783with_cap_include_dir 784with_systemd 785with_systemd_lib_dir 786with_systemd_include_dir 787with_execinfo_lib_dir 788with_execinfo_include_dir 789with_pcre 790with_pcre_lib_dir 791with_pcre_include_dir 792with_regex 793' 794 ac_precious_vars='build_alias 795host_alias 796target_alias 797CC 798CFLAGS 799LDFLAGS 800LIBS 801CPPFLAGS 802CXX 803CXXFLAGS 804CCC 805CPP' 806ac_subdirs_all='$mysubdirs' 807 808# Initialize some variables set by options. 809ac_init_help= 810ac_init_version=false 811ac_unrecognized_opts= 812ac_unrecognized_sep= 813# The variables have the same names as the options, with 814# dashes changed to underlines. 815cache_file=/dev/null 816exec_prefix=NONE 817no_create= 818no_recursion= 819prefix=NONE 820program_prefix=NONE 821program_suffix=NONE 822program_transform_name=s,x,x, 823silent= 824site= 825srcdir= 826verbose= 827x_includes=NONE 828x_libraries=NONE 829 830# Installation directory options. 831# These are left unexpanded so users can "make install exec_prefix=/foo" 832# and all the variables that are supposed to be based on exec_prefix 833# by default will actually change. 834# Use braces instead of parens because sh, perl, etc. also accept them. 835# (The list follows the same order as the GNU Coding Standards.) 836bindir='${exec_prefix}/bin' 837sbindir='${exec_prefix}/sbin' 838libexecdir='${exec_prefix}/libexec' 839datarootdir='${prefix}/share' 840datadir='${datarootdir}' 841sysconfdir='${prefix}/etc' 842sharedstatedir='${prefix}/com' 843localstatedir='${prefix}/var' 844includedir='${prefix}/include' 845oldincludedir='/usr/include' 846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 847infodir='${datarootdir}/info' 848htmldir='${docdir}' 849dvidir='${docdir}' 850pdfdir='${docdir}' 851psdir='${docdir}' 852libdir='${exec_prefix}/lib' 853localedir='${datarootdir}/locale' 854mandir='${datarootdir}/man' 855 856ac_prev= 857ac_dashdash= 858for ac_option 859do 860 # If the previous option needs an argument, assign it. 861 if test -n "$ac_prev"; then 862 eval $ac_prev=\$ac_option 863 ac_prev= 864 continue 865 fi 866 867 case $ac_option in 868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 869 *=) ac_optarg= ;; 870 *) ac_optarg=yes ;; 871 esac 872 873 # Accept the important Cygnus configure options, so we can diagnose typos. 874 875 case $ac_dashdash$ac_option in 876 --) 877 ac_dashdash=yes ;; 878 879 -bindir | --bindir | --bindi | --bind | --bin | --bi) 880 ac_prev=bindir ;; 881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 882 bindir=$ac_optarg ;; 883 884 -build | --build | --buil | --bui | --bu) 885 ac_prev=build_alias ;; 886 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 887 build_alias=$ac_optarg ;; 888 889 -cache-file | --cache-file | --cache-fil | --cache-fi \ 890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 891 ac_prev=cache_file ;; 892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 894 cache_file=$ac_optarg ;; 895 896 --config-cache | -C) 897 cache_file=config.cache ;; 898 899 -datadir | --datadir | --datadi | --datad) 900 ac_prev=datadir ;; 901 -datadir=* | --datadir=* | --datadi=* | --datad=*) 902 datadir=$ac_optarg ;; 903 904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 905 | --dataroo | --dataro | --datar) 906 ac_prev=datarootdir ;; 907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 909 datarootdir=$ac_optarg ;; 910 911 -disable-* | --disable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=no ;; 926 927 -docdir | --docdir | --docdi | --doc | --do) 928 ac_prev=docdir ;; 929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 930 docdir=$ac_optarg ;; 931 932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 933 ac_prev=dvidir ;; 934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 935 dvidir=$ac_optarg ;; 936 937 -enable-* | --enable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: $ac_useropt" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=\$ac_optarg ;; 952 953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 955 | --exec | --exe | --ex) 956 ac_prev=exec_prefix ;; 957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 959 | --exec=* | --exe=* | --ex=*) 960 exec_prefix=$ac_optarg ;; 961 962 -gas | --gas | --ga | --g) 963 # Obsolete; use --with-gas. 964 with_gas=yes ;; 965 966 -help | --help | --hel | --he | -h) 967 ac_init_help=long ;; 968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 969 ac_init_help=recursive ;; 970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 971 ac_init_help=short ;; 972 973 -host | --host | --hos | --ho) 974 ac_prev=host_alias ;; 975 -host=* | --host=* | --hos=* | --ho=*) 976 host_alias=$ac_optarg ;; 977 978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 979 ac_prev=htmldir ;; 980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 981 | --ht=*) 982 htmldir=$ac_optarg ;; 983 984 -includedir | --includedir | --includedi | --included | --include \ 985 | --includ | --inclu | --incl | --inc) 986 ac_prev=includedir ;; 987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 988 | --includ=* | --inclu=* | --incl=* | --inc=*) 989 includedir=$ac_optarg ;; 990 991 -infodir | --infodir | --infodi | --infod | --info | --inf) 992 ac_prev=infodir ;; 993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 994 infodir=$ac_optarg ;; 995 996 -libdir | --libdir | --libdi | --libd) 997 ac_prev=libdir ;; 998 -libdir=* | --libdir=* | --libdi=* | --libd=*) 999 libdir=$ac_optarg ;; 1000 1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1002 | --libexe | --libex | --libe) 1003 ac_prev=libexecdir ;; 1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1005 | --libexe=* | --libex=* | --libe=*) 1006 libexecdir=$ac_optarg ;; 1007 1008 -localedir | --localedir | --localedi | --localed | --locale) 1009 ac_prev=localedir ;; 1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1011 localedir=$ac_optarg ;; 1012 1013 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1014 | --localstate | --localstat | --localsta | --localst | --locals) 1015 ac_prev=localstatedir ;; 1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1018 localstatedir=$ac_optarg ;; 1019 1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1021 ac_prev=mandir ;; 1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1023 mandir=$ac_optarg ;; 1024 1025 -nfp | --nfp | --nf) 1026 # Obsolete; use --without-fp. 1027 with_fp=no ;; 1028 1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1030 | --no-cr | --no-c | -n) 1031 no_create=yes ;; 1032 1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1035 no_recursion=yes ;; 1036 1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1039 | --oldin | --oldi | --old | --ol | --o) 1040 ac_prev=oldincludedir ;; 1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1044 oldincludedir=$ac_optarg ;; 1045 1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1047 ac_prev=prefix ;; 1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1049 prefix=$ac_optarg ;; 1050 1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1052 | --program-pre | --program-pr | --program-p) 1053 ac_prev=program_prefix ;; 1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1056 program_prefix=$ac_optarg ;; 1057 1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1059 | --program-suf | --program-su | --program-s) 1060 ac_prev=program_suffix ;; 1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1063 program_suffix=$ac_optarg ;; 1064 1065 -program-transform-name | --program-transform-name \ 1066 | --program-transform-nam | --program-transform-na \ 1067 | --program-transform-n | --program-transform- \ 1068 | --program-transform | --program-transfor \ 1069 | --program-transfo | --program-transf \ 1070 | --program-trans | --program-tran \ 1071 | --progr-tra | --program-tr | --program-t) 1072 ac_prev=program_transform_name ;; 1073 -program-transform-name=* | --program-transform-name=* \ 1074 | --program-transform-nam=* | --program-transform-na=* \ 1075 | --program-transform-n=* | --program-transform-=* \ 1076 | --program-transform=* | --program-transfor=* \ 1077 | --program-transfo=* | --program-transf=* \ 1078 | --program-trans=* | --program-tran=* \ 1079 | --progr-tra=* | --program-tr=* | --program-t=*) 1080 program_transform_name=$ac_optarg ;; 1081 1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1083 ac_prev=pdfdir ;; 1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1085 pdfdir=$ac_optarg ;; 1086 1087 -psdir | --psdir | --psdi | --psd | --ps) 1088 ac_prev=psdir ;; 1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1090 psdir=$ac_optarg ;; 1091 1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1093 | -silent | --silent | --silen | --sile | --sil) 1094 silent=yes ;; 1095 1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097 ac_prev=sbindir ;; 1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099 | --sbi=* | --sb=*) 1100 sbindir=$ac_optarg ;; 1101 1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104 | --sharedst | --shareds | --shared | --share | --shar \ 1105 | --sha | --sh) 1106 ac_prev=sharedstatedir ;; 1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110 | --sha=* | --sh=*) 1111 sharedstatedir=$ac_optarg ;; 1112 1113 -site | --site | --sit) 1114 ac_prev=site ;; 1115 -site=* | --site=* | --sit=*) 1116 site=$ac_optarg ;; 1117 1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119 ac_prev=srcdir ;; 1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121 srcdir=$ac_optarg ;; 1122 1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124 | --syscon | --sysco | --sysc | --sys | --sy) 1125 ac_prev=sysconfdir ;; 1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128 sysconfdir=$ac_optarg ;; 1129 1130 -target | --target | --targe | --targ | --tar | --ta | --t) 1131 ac_prev=target_alias ;; 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133 target_alias=$ac_optarg ;; 1134 1135 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136 verbose=yes ;; 1137 1138 -version | --version | --versio | --versi | --vers | -V) 1139 ac_init_version=: ;; 1140 1141 -with-* | --with-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1161 as_fn_error $? "invalid package name: $ac_useropt" 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166"with_$ac_useropt" 1167"*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=no ;; 1172 1173 --x) 1174 # Obsolete; use --with-x. 1175 with_x=yes ;; 1176 1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178 | --x-incl | --x-inc | --x-in | --x-i) 1179 ac_prev=x_includes ;; 1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182 x_includes=$ac_optarg ;; 1183 1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186 ac_prev=x_libraries ;; 1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189 x_libraries=$ac_optarg ;; 1190 1191 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1192Try \`$0 --help' for more information" 1193 ;; 1194 1195 *=*) 1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197 # Reject names that are not valid shell variable names. 1198 case $ac_envvar in #( 1199 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1201 esac 1202 eval $ac_envvar=\$ac_optarg 1203 export $ac_envvar ;; 1204 1205 *) 1206 # FIXME: should be removed in autoconf 3.0. 1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211 ;; 1212 1213 esac 1214done 1215 1216if test -n "$ac_prev"; then 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1218 as_fn_error $? "missing argument to $ac_option" 1219fi 1220 1221if test -n "$ac_unrecognized_opts"; then 1222 case $enable_option_checking in 1223 no) ;; 1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226 esac 1227fi 1228 1229# Check all directory arguments for consistency. 1230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231 datadir sysconfdir sharedstatedir localstatedir includedir \ 1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1233 libdir localedir mandir 1234do 1235 eval ac_val=\$$ac_var 1236 # Remove trailing slashes. 1237 case $ac_val in 1238 */ ) 1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240 eval $ac_var=\$ac_val;; 1241 esac 1242 # Be sure to have absolute directory names. 1243 case $ac_val in 1244 [\\/$]* | ?:[\\/]* ) continue;; 1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246 esac 1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248done 1249 1250# There might be people who depend on the old broken behavior: `$host' 1251# used to hold the argument of --host etc. 1252# FIXME: To remove some day. 1253build=$build_alias 1254host=$host_alias 1255target=$target_alias 1256 1257# FIXME: To remove some day. 1258if test "x$host_alias" != x; then 1259 if test "x$build_alias" = x; then 1260 cross_compiling=maybe 1261 elif test "x$build_alias" != "x$host_alias"; then 1262 cross_compiling=yes 1263 fi 1264fi 1265 1266ac_tool_prefix= 1267test -n "$host_alias" && ac_tool_prefix=$host_alias- 1268 1269test "$silent" = yes && exec 6>/dev/null 1270 1271 1272ac_pwd=`pwd` && test -n "$ac_pwd" && 1273ac_ls_di=`ls -di .` && 1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1275 as_fn_error $? "working directory cannot be determined" 1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1277 as_fn_error $? "pwd does not report name of working directory" 1278 1279 1280# Find the source files, if location was not specified. 1281if test -z "$srcdir"; then 1282 ac_srcdir_defaulted=yes 1283 # Try the directory containing this script, then the parent directory. 1284 ac_confdir=`$as_dirname -- "$as_myself" || 1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1286 X"$as_myself" : 'X\(//\)[^/]' \| \ 1287 X"$as_myself" : 'X\(//\)$' \| \ 1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1289$as_echo X"$as_myself" | 1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)[^/].*/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\).*/{ 1303 s//\1/ 1304 q 1305 } 1306 s/.*/./; q'` 1307 srcdir=$ac_confdir 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 srcdir=.. 1310 fi 1311else 1312 ac_srcdir_defaulted=no 1313fi 1314if test ! -r "$srcdir/$ac_unique_file"; then 1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1317fi 1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1319ac_abs_confdir=`( 1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1321 pwd)` 1322# When building in place, set srcdir=. 1323if test "$ac_abs_confdir" = "$ac_pwd"; then 1324 srcdir=. 1325fi 1326# Remove unnecessary trailing slashes from srcdir. 1327# Double slashes in file names in object file debugging info 1328# mess up M-x gdb in Emacs. 1329case $srcdir in 1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1331esac 1332for ac_var in $ac_precious_vars; do 1333 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_env_${ac_var}_value=\$${ac_var} 1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1337done 1338 1339# 1340# Report the --help message. 1341# 1342if test "$ac_init_help" = "long"; then 1343 # Omit some internal or obsolete options to make the list less imposing. 1344 # This message is too long to be a string in the A/UX 3.1 sh. 1345 cat <<_ACEOF 1346\`configure' configures freeradius $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $ to adapt to many kinds of systems. 1347 1348Usage: $0 [OPTION]... [VAR=VALUE]... 1349 1350To assign environment variables (e.g., CC, CFLAGS...), specify them as 1351VAR=VALUE. See below for descriptions of some of the useful variables. 1352 1353Defaults for the options are specified in brackets. 1354 1355Configuration: 1356 -h, --help display this help and exit 1357 --help=short display options specific to this package 1358 --help=recursive display the short help of all the included packages 1359 -V, --version display version information and exit 1360 -q, --quiet, --silent do not print \`checking ...' messages 1361 --cache-file=FILE cache test results in FILE [disabled] 1362 -C, --config-cache alias for \`--cache-file=config.cache' 1363 -n, --no-create do not create output files 1364 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1365 1366Installation directories: 1367 --prefix=PREFIX install architecture-independent files in PREFIX 1368 [$ac_default_prefix] 1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1370 [PREFIX] 1371 1372By default, \`make install' will install all the files in 1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1374an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1375for instance \`--prefix=\$HOME'. 1376 1377For better control, use the options below. 1378 1379Fine tuning of the installation directories: 1380 --bindir=DIR user executables [EPREFIX/bin] 1381 --sbindir=DIR system admin executables [EPREFIX/sbin] 1382 --libexecdir=DIR program executables [EPREFIX/libexec] 1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399_ACEOF 1400 1401 cat <<\_ACEOF 1402 1403System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406 --target=TARGET configure for building compilers for TARGET [HOST] 1407_ACEOF 1408fi 1409 1410if test -n "$ac_init_help"; then 1411 case $ac_init_help in 1412 short | recursive ) echo "Configuration of freeradius $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $:";; 1413 esac 1414 cat <<\_ACEOF 1415 1416Optional Features: 1417 --disable-option-checking ignore unrecognized --enable/--with options 1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1420 --enable-developer enables features of interest to developers. 1421 --disable-verify-ptr disables WITH_VERIFY_PTR developer build option. 1422 --disable-largefile omit support for large files 1423 --enable-strict-dependencies fail configure on lack of module dependancy. 1424 --enable-werror causes the build to fail if any warnings are generated. 1425 --disable-openssl-version-check 1426 disable vulnerable OpenSSL version check 1427 1428 --enable-reproducible-builds 1429 ensure the build does not change each time 1430 --enable-fuzzer build with support for a fuzzer 1431 --enable-address-sanitizer 1432 build with support for address sanitizer. 1433 --enable-leak-sanitizer build with support for leak sanitizer. 1434 --enable-thread-sanitizer 1435 build with support for thread sanitizer. 1436 --enable-undefined-behaviour-sanitizer 1437 build with support for undefined behaviour 1438 sanitizer. 1439 1440Optional Packages: 1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1443 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius 1444 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius 1445 --with-radacctdir=DIR directory for detail files LOGDIR/radacct 1446 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb 1447 --with-dictdir=DIR directory for dictionary files DATAROOTDIR/freeradius 1448 --with-ascend-binary include support for Ascend binary filter attributes (default=yes) 1449 --with-threads use threads, if available. (default=yes) 1450 --with-tcp compile in TCP support. (default=yes) 1451 --with-vmps compile in VMPS support. (default=yes) 1452 --with-dhcp compile in DHCP support. (default=yes) 1453 --with-static-modules=QUOTED-MODULE-LIST 1454 --with-shared-libs build dynamic libraries and link against them. 1455 (default=yes) 1456 --with-modules=QUOTED-MODULE-LIST 1457 --with-experimental-modules 1458 use experimental and unstable modules. (default=no, 1459 unless --enable-developer=yes) 1460 --with-udpfromto compile in UDPFROMTO support. (default=yes) 1461 --with-rlm-FOO-lib-dir=DIR 1462 directory in which to look for library files used by 1463 module FOO 1464 --with-rlm-FOO-include-dir=DIR 1465 directory in which to look for include files used by 1466 module FOO 1467 --with-openssl use OpenSSL. (default=yes) 1468 --with-openssl-lib-dir=DIR 1469 directory to look for OpenSSL library files 1470 --with-openssl-include-dir=DIR 1471 directory to look for OpenSSL include files 1472 --with-talloc-lib-dir=DIR 1473 directory in which to look for talloc library files 1474 --with-talloc-include-dir=DIR 1475 directory in which to look for talloc include files 1476 --with-pcap-lib-dir=DIR directory in which to look for pcap library files 1477 --with-pcap-include-dir=DIR 1478 directory in which to look for pcap include files 1479 --with-collectdclient-lib-dir=DIR 1480 directory in which to look for collectdclient 1481 library files 1482 --with-collectdclient-include-dir=DIR 1483 directory in which to look for collectdclient 1484 include files 1485 --with-cap-lib-dir=DIR directory in which to look for cap library files 1486 --with-cap-include-dir=DIR 1487 directory in which to look for cap include files 1488 --with-systemd add systemd support, if available (default=no) 1489 --with-systemd-lib-dir=DIR 1490 directory to look for systemd library files 1491 --with-systemd-include-dir=DIR 1492 directory to look for systemd include files 1493 --with-execinfo-lib-dir=DIR 1494 directory in which to look for execinfo library 1495 files 1496 --with-execinfo-include-dir=DIR 1497 directory in which to look for execinfo include 1498 files 1499 --with-pcre use libpcre (if available). (default=yes) 1500 --with-pcre-lib-dir=DIR directory in which to look for pcre library files 1501 --with-pcre-include-dir=DIR 1502 directory in which to look for pcre include files 1503 --with-regex Whether to build with regular expressions 1504 (default=yes) 1505 1506Some influential environment variables: 1507 CC C compiler command 1508 CFLAGS C compiler flags 1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1510 nonstandard directory <lib dir> 1511 LIBS libraries to pass to the linker, e.g. -l<library> 1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1513 you have headers in a nonstandard directory <include dir> 1514 CXX C++ compiler command 1515 CXXFLAGS C++ compiler flags 1516 CPP C preprocessor 1517 1518Use these variables to override the choices made by `configure' or to help 1519it to find libraries and programs with nonstandard names/locations. 1520 1521Report bugs to <http://bugs.freeradius.org>. 1522freeradius home page: <http://www.freeradius.org>. 1523_ACEOF 1524ac_status=$? 1525fi 1526 1527if test "$ac_init_help" = "recursive"; then 1528 # If there are subdirs, report their specific --help. 1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1530 test -d "$ac_dir" || 1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1532 continue 1533 ac_builddir=. 1534 1535case "$ac_dir" in 1536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1537*) 1538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1539 # A ".." for each directory in $ac_dir_suffix. 1540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1541 case $ac_top_builddir_sub in 1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1544 esac ;; 1545esac 1546ac_abs_top_builddir=$ac_pwd 1547ac_abs_builddir=$ac_pwd$ac_dir_suffix 1548# for backward compatibility: 1549ac_top_builddir=$ac_top_build_prefix 1550 1551case $srcdir in 1552 .) # We are building in place. 1553 ac_srcdir=. 1554 ac_top_srcdir=$ac_top_builddir_sub 1555 ac_abs_top_srcdir=$ac_pwd ;; 1556 [\\/]* | ?:[\\/]* ) # Absolute name. 1557 ac_srcdir=$srcdir$ac_dir_suffix; 1558 ac_top_srcdir=$srcdir 1559 ac_abs_top_srcdir=$srcdir ;; 1560 *) # Relative name. 1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1562 ac_top_srcdir=$ac_top_build_prefix$srcdir 1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1564esac 1565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1566 1567 cd "$ac_dir" || { ac_status=$?; continue; } 1568 # Check for guested configure. 1569 if test -f "$ac_srcdir/configure.gnu"; then 1570 echo && 1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1572 elif test -f "$ac_srcdir/configure"; then 1573 echo && 1574 $SHELL "$ac_srcdir/configure" --help=recursive 1575 else 1576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1577 fi || ac_status=$? 1578 cd "$ac_pwd" || { ac_status=$?; break; } 1579 done 1580fi 1581 1582test -n "$ac_init_help" && exit $ac_status 1583if $ac_init_version; then 1584 cat <<\_ACEOF 1585freeradius configure $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $ 1586generated by GNU Autoconf 2.69 1587 1588Copyright (C) 2012 Free Software Foundation, Inc. 1589This configure script is free software; the Free Software Foundation 1590gives unlimited permission to copy, distribute and modify it. 1591_ACEOF 1592 exit 1593fi 1594 1595## ------------------------ ## 1596## Autoconf initialization. ## 1597## ------------------------ ## 1598 1599# ac_fn_c_try_compile LINENO 1600# -------------------------- 1601# Try to compile conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_compile () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext 1606 if { { ac_try="$ac_compile" 1607case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_compile") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest.$ac_objext; then : 1625 ac_retval=0 1626else 1627 $as_echo "$as_me: failed program was:" >&5 1628sed 's/^/| /' conftest.$ac_ext >&5 1629 1630 ac_retval=1 1631fi 1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1633 as_fn_set_status $ac_retval 1634 1635} # ac_fn_c_try_compile 1636 1637# ac_fn_cxx_try_compile LINENO 1638# ---------------------------- 1639# Try to compile conftest.$ac_ext, and return whether this succeeded. 1640ac_fn_cxx_try_compile () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 rm -f conftest.$ac_objext 1644 if { { ac_try="$ac_compile" 1645case "(($ac_try" in 1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1647 *) ac_try_echo=$ac_try;; 1648esac 1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1650$as_echo "$ac_try_echo"; } >&5 1651 (eval "$ac_compile") 2>conftest.err 1652 ac_status=$? 1653 if test -s conftest.err; then 1654 grep -v '^ *+' conftest.err >conftest.er1 1655 cat conftest.er1 >&5 1656 mv -f conftest.er1 conftest.err 1657 fi 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { 1660 test -z "$ac_cxx_werror_flag" || 1661 test ! -s conftest.err 1662 } && test -s conftest.$ac_objext; then : 1663 ac_retval=0 1664else 1665 $as_echo "$as_me: failed program was:" >&5 1666sed 's/^/| /' conftest.$ac_ext >&5 1667 1668 ac_retval=1 1669fi 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673} # ac_fn_cxx_try_compile 1674 1675# ac_fn_c_try_cpp LINENO 1676# ---------------------- 1677# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_cpp () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 if { { ac_try="$ac_cpp conftest.$ac_ext" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } > conftest.i && { 1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 }; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_cpp 1711 1712# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1713# ------------------------------------------------------- 1714# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1715# the include files in INCLUDES and setting the cache variable VAR 1716# accordingly. 1717ac_fn_c_check_header_mongrel () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 if eval \${$3+:} false; then : 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722$as_echo_n "checking for $2... " >&6; } 1723if eval \${$3+:} false; then : 1724 $as_echo_n "(cached) " >&6 1725fi 1726eval ac_res=\$$3 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1728$as_echo "$ac_res" >&6; } 1729else 1730 # Is the header compilable? 1731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1732$as_echo_n "checking $2 usability... " >&6; } 1733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1734/* end confdefs.h. */ 1735$4 1736#include <$2> 1737_ACEOF 1738if ac_fn_c_try_compile "$LINENO"; then : 1739 ac_header_compiler=yes 1740else 1741 ac_header_compiler=no 1742fi 1743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1745$as_echo "$ac_header_compiler" >&6; } 1746 1747# Is the header present? 1748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1749$as_echo_n "checking $2 presence... " >&6; } 1750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1751/* end confdefs.h. */ 1752#include <$2> 1753_ACEOF 1754if ac_fn_c_try_cpp "$LINENO"; then : 1755 ac_header_preproc=yes 1756else 1757 ac_header_preproc=no 1758fi 1759rm -f conftest.err conftest.i conftest.$ac_ext 1760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1761$as_echo "$ac_header_preproc" >&6; } 1762 1763# So? What about this header? 1764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1765 yes:no: ) 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1767$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1769$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1770 ;; 1771 no:yes:* ) 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1773$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1775$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1777$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1779$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1781$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1782( $as_echo "## ----------------------------------------- ## 1783## Report this to http://bugs.freeradius.org ## 1784## ----------------------------------------- ##" 1785 ) | sed "s/^/$as_me: WARNING: /" >&2 1786 ;; 1787esac 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789$as_echo_n "checking for $2... " >&6; } 1790if eval \${$3+:} false; then : 1791 $as_echo_n "(cached) " >&6 1792else 1793 eval "$3=\$ac_header_compiler" 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798fi 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 1801} # ac_fn_c_check_header_mongrel 1802 1803# ac_fn_c_try_run LINENO 1804# ---------------------- 1805# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1806# that executables *can* be run. 1807ac_fn_c_try_run () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 if { { ac_try="$ac_link" 1811case "(($ac_try" in 1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1813 *) ac_try_echo=$ac_try;; 1814esac 1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1816$as_echo "$ac_try_echo"; } >&5 1817 (eval "$ac_link") 2>&5 1818 ac_status=$? 1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1820 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1821 { { case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824esac 1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826$as_echo "$ac_try_echo"; } >&5 1827 (eval "$ac_try") 2>&5 1828 ac_status=$? 1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1830 test $ac_status = 0; }; }; then : 1831 ac_retval=0 1832else 1833 $as_echo "$as_me: program exited with status $ac_status" >&5 1834 $as_echo "$as_me: failed program was:" >&5 1835sed 's/^/| /' conftest.$ac_ext >&5 1836 1837 ac_retval=$ac_status 1838fi 1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1841 as_fn_set_status $ac_retval 1842 1843} # ac_fn_c_try_run 1844 1845# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1846# ------------------------------------------------------- 1847# Tests whether HEADER exists and can be compiled using the include files in 1848# INCLUDES, setting the cache variable VAR accordingly. 1849ac_fn_c_check_header_compile () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1853$as_echo_n "checking for $2... " >&6; } 1854if eval \${$3+:} false; then : 1855 $as_echo_n "(cached) " >&6 1856else 1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1858/* end confdefs.h. */ 1859$4 1860#include <$2> 1861_ACEOF 1862if ac_fn_c_try_compile "$LINENO"; then : 1863 eval "$3=yes" 1864else 1865 eval "$3=no" 1866fi 1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1868fi 1869eval ac_res=\$$3 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1871$as_echo "$ac_res" >&6; } 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 1874} # ac_fn_c_check_header_compile 1875 1876# ac_fn_c_try_link LINENO 1877# ----------------------- 1878# Try to link conftest.$ac_ext, and return whether this succeeded. 1879ac_fn_c_try_link () 1880{ 1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1882 rm -f conftest.$ac_objext conftest$ac_exeext 1883 if { { ac_try="$ac_link" 1884case "(($ac_try" in 1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1886 *) ac_try_echo=$ac_try;; 1887esac 1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1889$as_echo "$ac_try_echo"; } >&5 1890 (eval "$ac_link") 2>conftest.err 1891 ac_status=$? 1892 if test -s conftest.err; then 1893 grep -v '^ *+' conftest.err >conftest.er1 1894 cat conftest.er1 >&5 1895 mv -f conftest.er1 conftest.err 1896 fi 1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1898 test $ac_status = 0; } && { 1899 test -z "$ac_c_werror_flag" || 1900 test ! -s conftest.err 1901 } && test -s conftest$ac_exeext && { 1902 test "$cross_compiling" = yes || 1903 test -x conftest$ac_exeext 1904 }; then : 1905 ac_retval=0 1906else 1907 $as_echo "$as_me: failed program was:" >&5 1908sed 's/^/| /' conftest.$ac_ext >&5 1909 1910 ac_retval=1 1911fi 1912 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1913 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1914 # interfere with the next link command; also delete a directory that is 1915 # left behind by Apple's compiler. We do this before executing the actions. 1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1918 as_fn_set_status $ac_retval 1919 1920} # ac_fn_c_try_link 1921 1922# ac_fn_c_check_func LINENO FUNC VAR 1923# ---------------------------------- 1924# Tests whether FUNC exists, setting the cache variable VAR accordingly 1925ac_fn_c_check_func () 1926{ 1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1929$as_echo_n "checking for $2... " >&6; } 1930if eval \${$3+:} false; then : 1931 $as_echo_n "(cached) " >&6 1932else 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934/* end confdefs.h. */ 1935/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1937#define $2 innocuous_$2 1938 1939/* System header to define __stub macros and hopefully few prototypes, 1940 which can conflict with char $2 (); below. 1941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1942 <limits.h> exists even on freestanding compilers. */ 1943 1944#ifdef __STDC__ 1945# include <limits.h> 1946#else 1947# include <assert.h> 1948#endif 1949 1950#undef $2 1951 1952/* Override any GCC internal prototype to avoid an error. 1953 Use char because int might match the return type of a GCC 1954 builtin and then its argument prototype would still apply. */ 1955#ifdef __cplusplus 1956extern "C" 1957#endif 1958char $2 (); 1959/* The GNU C library defines this for functions which it implements 1960 to always fail with ENOSYS. Some functions are actually named 1961 something starting with __ and the normal name is an alias. */ 1962#if defined __stub_$2 || defined __stub___$2 1963choke me 1964#endif 1965 1966int 1967main () 1968{ 1969return $2 (); 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_link "$LINENO"; then : 1975 eval "$3=yes" 1976else 1977 eval "$3=no" 1978fi 1979rm -f core conftest.err conftest.$ac_objext \ 1980 conftest$ac_exeext conftest.$ac_ext 1981fi 1982eval ac_res=\$$3 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984$as_echo "$ac_res" >&6; } 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 1987} # ac_fn_c_check_func 1988 1989# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1990# ------------------------------------------- 1991# Tests whether TYPE exists after having included INCLUDES, setting cache 1992# variable VAR accordingly. 1993ac_fn_c_check_type () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997$as_echo_n "checking for $2... " >&6; } 1998if eval \${$3+:} false; then : 1999 $as_echo_n "(cached) " >&6 2000else 2001 eval "$3=no" 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004$4 2005int 2006main () 2007{ 2008if (sizeof ($2)) 2009 return 0; 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014if ac_fn_c_try_compile "$LINENO"; then : 2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2016/* end confdefs.h. */ 2017$4 2018int 2019main () 2020{ 2021if (sizeof (($2))) 2022 return 0; 2023 ; 2024 return 0; 2025} 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO"; then : 2028 2029else 2030 eval "$3=yes" 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033fi 2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2035fi 2036eval ac_res=\$$3 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038$as_echo "$ac_res" >&6; } 2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2040 2041} # ac_fn_c_check_type 2042 2043# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2044# --------------------------------------------- 2045# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2046# accordingly. 2047ac_fn_c_check_decl () 2048{ 2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2050 as_decl_name=`echo $2|sed 's/ *(.*//'` 2051 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2053$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2054if eval \${$3+:} false; then : 2055 $as_echo_n "(cached) " >&6 2056else 2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2058/* end confdefs.h. */ 2059$4 2060int 2061main () 2062{ 2063#ifndef $as_decl_name 2064#ifdef __cplusplus 2065 (void) $as_decl_use; 2066#else 2067 (void) $as_decl_name; 2068#endif 2069#endif 2070 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075if ac_fn_c_try_compile "$LINENO"; then : 2076 eval "$3=yes" 2077else 2078 eval "$3=no" 2079fi 2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2081fi 2082eval ac_res=\$$3 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2084$as_echo "$ac_res" >&6; } 2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2086 2087} # ac_fn_c_check_decl 2088cat >config.log <<_ACEOF 2089This file contains any messages produced by compilers while 2090running configure, to aid debugging if configure makes a mistake. 2091 2092It was created by freeradius $as_me $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $, which was 2093generated by GNU Autoconf 2.69. Invocation command line was 2094 2095 $ $0 $@ 2096 2097_ACEOF 2098exec 5>>config.log 2099{ 2100cat <<_ASUNAME 2101## --------- ## 2102## Platform. ## 2103## --------- ## 2104 2105hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2106uname -m = `(uname -m) 2>/dev/null || echo unknown` 2107uname -r = `(uname -r) 2>/dev/null || echo unknown` 2108uname -s = `(uname -s) 2>/dev/null || echo unknown` 2109uname -v = `(uname -v) 2>/dev/null || echo unknown` 2110 2111/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2112/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2113 2114/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2115/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2116/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2117/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2118/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2119/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2120/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2121 2122_ASUNAME 2123 2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2125for as_dir in $PATH 2126do 2127 IFS=$as_save_IFS 2128 test -z "$as_dir" && as_dir=. 2129 $as_echo "PATH: $as_dir" 2130 done 2131IFS=$as_save_IFS 2132 2133} >&5 2134 2135cat >&5 <<_ACEOF 2136 2137 2138## ----------- ## 2139## Core tests. ## 2140## ----------- ## 2141 2142_ACEOF 2143 2144 2145# Keep a trace of the command line. 2146# Strip out --no-create and --no-recursion so they do not pile up. 2147# Strip out --silent because we don't want to record it for future runs. 2148# Also quote any args containing shell meta-characters. 2149# Make two passes to allow for proper duplicate-argument suppression. 2150ac_configure_args= 2151ac_configure_args0= 2152ac_configure_args1= 2153ac_must_keep_next=false 2154for ac_pass in 1 2 2155do 2156 for ac_arg 2157 do 2158 case $ac_arg in 2159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2161 | -silent | --silent | --silen | --sile | --sil) 2162 continue ;; 2163 *\'*) 2164 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2165 esac 2166 case $ac_pass in 2167 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2168 2) 2169 as_fn_append ac_configure_args1 " '$ac_arg'" 2170 if test $ac_must_keep_next = true; then 2171 ac_must_keep_next=false # Got value, back to normal. 2172 else 2173 case $ac_arg in 2174 *=* | --config-cache | -C | -disable-* | --disable-* \ 2175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2177 | -with-* | --with-* | -without-* | --without-* | --x) 2178 case "$ac_configure_args0 " in 2179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2180 esac 2181 ;; 2182 -* ) ac_must_keep_next=true ;; 2183 esac 2184 fi 2185 as_fn_append ac_configure_args " '$ac_arg'" 2186 ;; 2187 esac 2188 done 2189done 2190{ ac_configure_args0=; unset ac_configure_args0;} 2191{ ac_configure_args1=; unset ac_configure_args1;} 2192 2193# When interrupted or exit'd, cleanup temporary files, and complete 2194# config.log. We remove comments because anyway the quotes in there 2195# would cause problems or look ugly. 2196# WARNING: Use '\'' to represent an apostrophe within the trap. 2197# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2198trap 'exit_status=$? 2199 # Save into config.log some information that might help in debugging. 2200 { 2201 echo 2202 2203 $as_echo "## ---------------- ## 2204## Cache variables. ## 2205## ---------------- ##" 2206 echo 2207 # The following way of writing the cache mishandles newlines in values, 2208( 2209 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2210 eval ac_val=\$$ac_var 2211 case $ac_val in #( 2212 *${as_nl}*) 2213 case $ac_var in #( 2214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2215$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2216 esac 2217 case $ac_var in #( 2218 _ | IFS | as_nl) ;; #( 2219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2220 *) { eval $ac_var=; unset $ac_var;} ;; 2221 esac ;; 2222 esac 2223 done 2224 (set) 2>&1 | 2225 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2226 *${as_nl}ac_space=\ *) 2227 sed -n \ 2228 "s/'\''/'\''\\\\'\'''\''/g; 2229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2230 ;; #( 2231 *) 2232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2233 ;; 2234 esac | 2235 sort 2236) 2237 echo 2238 2239 $as_echo "## ----------------- ## 2240## Output variables. ## 2241## ----------------- ##" 2242 echo 2243 for ac_var in $ac_subst_vars 2244 do 2245 eval ac_val=\$$ac_var 2246 case $ac_val in 2247 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2248 esac 2249 $as_echo "$ac_var='\''$ac_val'\''" 2250 done | sort 2251 echo 2252 2253 if test -n "$ac_subst_files"; then 2254 $as_echo "## ------------------- ## 2255## File substitutions. ## 2256## ------------------- ##" 2257 echo 2258 for ac_var in $ac_subst_files 2259 do 2260 eval ac_val=\$$ac_var 2261 case $ac_val in 2262 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2263 esac 2264 $as_echo "$ac_var='\''$ac_val'\''" 2265 done | sort 2266 echo 2267 fi 2268 2269 if test -s confdefs.h; then 2270 $as_echo "## ----------- ## 2271## confdefs.h. ## 2272## ----------- ##" 2273 echo 2274 cat confdefs.h 2275 echo 2276 fi 2277 test "$ac_signal" != 0 && 2278 $as_echo "$as_me: caught signal $ac_signal" 2279 $as_echo "$as_me: exit $exit_status" 2280 } >&5 2281 rm -f core *.core core.conftest.* && 2282 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2283 exit $exit_status 2284' 0 2285for ac_signal in 1 2 13 15; do 2286 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2287done 2288ac_signal=0 2289 2290# confdefs.h avoids OS command line length limits that DEFS can exceed. 2291rm -f -r conftest* confdefs.h 2292 2293$as_echo "/* confdefs.h */" > confdefs.h 2294 2295# Predefined preprocessor variables. 2296 2297cat >>confdefs.h <<_ACEOF 2298#define PACKAGE_NAME "$PACKAGE_NAME" 2299_ACEOF 2300 2301cat >>confdefs.h <<_ACEOF 2302#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2303_ACEOF 2304 2305cat >>confdefs.h <<_ACEOF 2306#define PACKAGE_VERSION "$PACKAGE_VERSION" 2307_ACEOF 2308 2309cat >>confdefs.h <<_ACEOF 2310#define PACKAGE_STRING "$PACKAGE_STRING" 2311_ACEOF 2312 2313cat >>confdefs.h <<_ACEOF 2314#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2315_ACEOF 2316 2317cat >>confdefs.h <<_ACEOF 2318#define PACKAGE_URL "$PACKAGE_URL" 2319_ACEOF 2320 2321 2322# Let the site file select an alternate cache file if it wants to. 2323# Prefer an explicitly selected file to automatically selected ones. 2324ac_site_file1=NONE 2325ac_site_file2=NONE 2326if test -n "$CONFIG_SITE"; then 2327 # We do not want a PATH search for config.site. 2328 case $CONFIG_SITE in #(( 2329 -*) ac_site_file1=./$CONFIG_SITE;; 2330 */*) ac_site_file1=$CONFIG_SITE;; 2331 *) ac_site_file1=./$CONFIG_SITE;; 2332 esac 2333elif test "x$prefix" != xNONE; then 2334 ac_site_file1=$prefix/share/config.site 2335 ac_site_file2=$prefix/etc/config.site 2336else 2337 ac_site_file1=$ac_default_prefix/share/config.site 2338 ac_site_file2=$ac_default_prefix/etc/config.site 2339fi 2340for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2341do 2342 test "x$ac_site_file" = xNONE && continue 2343 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2345$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2346 sed 's/^/| /' "$ac_site_file" >&5 2347 . "$ac_site_file" \ 2348 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2350as_fn_error $? "failed to load site script $ac_site_file 2351See \`config.log' for more details" "$LINENO" 5; } 2352 fi 2353done 2354 2355if test -r "$cache_file"; then 2356 # Some versions of bash will fail to source /dev/null (special files 2357 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2358 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2360$as_echo "$as_me: loading cache $cache_file" >&6;} 2361 case $cache_file in 2362 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2363 *) . "./$cache_file";; 2364 esac 2365 fi 2366else 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2368$as_echo "$as_me: creating cache $cache_file" >&6;} 2369 >$cache_file 2370fi 2371 2372# Check that the precious variables saved in the cache have kept the same 2373# value. 2374ac_cache_corrupted=false 2375for ac_var in $ac_precious_vars; do 2376 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2377 eval ac_new_set=\$ac_env_${ac_var}_set 2378 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2379 eval ac_new_val=\$ac_env_${ac_var}_value 2380 case $ac_old_set,$ac_new_set in 2381 set,) 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2383$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2384 ac_cache_corrupted=: ;; 2385 ,set) 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2387$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2388 ac_cache_corrupted=: ;; 2389 ,);; 2390 *) 2391 if test "x$ac_old_val" != "x$ac_new_val"; then 2392 # differences in whitespace do not lead to failure. 2393 ac_old_val_w=`echo x $ac_old_val` 2394 ac_new_val_w=`echo x $ac_new_val` 2395 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2397$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2398 ac_cache_corrupted=: 2399 else 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2401$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2402 eval $ac_var=\$ac_old_val 2403 fi 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2405$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2407$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2408 fi;; 2409 esac 2410 # Pass precious variables to config.status. 2411 if test "$ac_new_set" = set; then 2412 case $ac_new_val in 2413 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2414 *) ac_arg=$ac_var=$ac_new_val ;; 2415 esac 2416 case " $ac_configure_args " in 2417 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2418 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2419 esac 2420 fi 2421done 2422if $ac_cache_corrupted; then 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2426$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2427 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2428fi 2429## -------------------- ## 2430## Main body of script. ## 2431## -------------------- ## 2432 2433ac_ext=c 2434ac_cpp='$CPP $CPPFLAGS' 2435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2437ac_compiler_gnu=$ac_cv_c_compiler_gnu 2438 2439 2440 2441 2442ac_config_headers="$ac_config_headers src/include/autoconf.h" 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463# =========================================================================== 2464# https://www.gnu.org/software/autoconf-archive/ax_prog_perl_modules.html 2465# =========================================================================== 2466# 2467# SYNOPSIS 2468# 2469# AX_PROG_PERL_MODULES([MODULES], [ACTION-IF-TRUE], [ACTION-IF-FALSE]) 2470# 2471# DESCRIPTION 2472# 2473# Checks to see if the given perl modules are available. If true the shell 2474# commands in ACTION-IF-TRUE are executed. If not the shell commands in 2475# ACTION-IF-FALSE are run. Note if $PERL is not set (for example by 2476# calling AC_CHECK_PROG, or AC_PATH_PROG), AC_CHECK_PROG(PERL, perl, perl) 2477# will be run. 2478# 2479# MODULES is a space separated list of module names. To check for a 2480# minimum version of a module, append the version number to the module 2481# name, separated by an equals sign. 2482# 2483# Example: 2484# 2485# AX_PROG_PERL_MODULES( Text::Wrap Net::LDAP=1.0.3, , 2486# AC_MSG_WARN(Need some Perl modules) 2487# 2488# LICENSE 2489# 2490# Copyright (c) 2009 Dean Povey <povey@wedgetail.com> 2491# 2492# Copying and distribution of this file, with or without modification, are 2493# permitted in any medium without royalty provided the copyright notice 2494# and this notice are preserved. This file is offered as-is, without any 2495# warranty. 2496 2497#serial 8 2498 2499# This is what autoupdate's m4 run will expand. It fires 2500# the warning (with _au_warn_XXX), outputs it into the 2501# updated configure.ac (with AC_DIAGNOSE), and then outputs 2502# the replacement expansion. 2503 2504 2505# This is an auxiliary macro that is also run when 2506# autoupdate runs m4. It simply calls m4_warning, but 2507# we need a wrapper so that each warning is emitted only 2508# once. We break the quoting in m4_warning's argument in 2509# order to expand this macro's arguments, not AU_DEFUN's. 2510 2511 2512# Finally, this is the expansion that is picked up by 2513# autoconf. It tells the user to run autoupdate, and 2514# then outputs the replacement expansion. We do not care 2515# about autoupdate's warning because that contains 2516# information on what to do *after* running autoupdate. 2517 2518 2519 2520RADIUSD_MAJOR_VERSION=`cat VERSION | cut -f1 -d.` 2521RADIUSD_MINOR_VERSION=`cat VERSION | cut -f2 -d.` 2522RADIUSD_INCRM_VERSION=`cat VERSION | cut -f3 -d. | sed 's/[\.-].*$//'` 2523 2524RADIUSD_VERSION=`printf "%02i%02i%02i" $RADIUSD_MAJOR_VERSION $RADIUSD_MINOR_VERSION $RADIUSD_INCRM_VERSION` 2525 2526RADIUSD_VERSION_STRING=`cat VERSION` 2527 2528 2529 2530 2531cat >>confdefs.h <<_ACEOF 2532#define RADIUSD_VERSION ${RADIUSD_VERSION} 2533_ACEOF 2534 2535 2536cat >>confdefs.h <<_ACEOF 2537#define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}" 2538_ACEOF 2539 2540 2541 2542unset ASAN_OPTIONS 2543unset LSAN_OPTIONS 2544 2545# Extract the first word of "asciidoctor", so it can be a program name with args. 2546set dummy asciidoctor; ac_word=$2 2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2548$as_echo_n "checking for $ac_word... " >&6; } 2549if ${ac_cv_path_ASCIIDOCTOR+:} false; then : 2550 $as_echo_n "(cached) " >&6 2551else 2552 case $ASCIIDOCTOR in 2553 [\\/]* | ?:[\\/]*) 2554 ac_cv_path_ASCIIDOCTOR="$ASCIIDOCTOR" # Let the user override the test with a path. 2555 ;; 2556 *) 2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2558for as_dir in $PATH 2559do 2560 IFS=$as_save_IFS 2561 test -z "$as_dir" && as_dir=. 2562 for ac_exec_ext in '' $ac_executable_extensions; do 2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2564 ac_cv_path_ASCIIDOCTOR="$as_dir/$ac_word$ac_exec_ext" 2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2566 break 2 2567 fi 2568done 2569 done 2570IFS=$as_save_IFS 2571 2572 ;; 2573esac 2574fi 2575ASCIIDOCTOR=$ac_cv_path_ASCIIDOCTOR 2576if test -n "$ASCIIDOCTOR"; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOCTOR" >&5 2578$as_echo "$ASCIIDOCTOR" >&6; } 2579else 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2581$as_echo "no" >&6; } 2582fi 2583 2584 2585if test "x$ac_cv_path_ASCIIDOCTOR" = "x"; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoctor not found - Please install if you want build the docs" >&5 2587$as_echo "$as_me: WARNING: asciidoctor not found - Please install if you want build the docs" >&2;} 2588fi 2589 2590# Extract the first word of "pandoc", so it can be a program name with args. 2591set dummy pandoc; ac_word=$2 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2593$as_echo_n "checking for $ac_word... " >&6; } 2594if ${ac_cv_path_PANDOC+:} false; then : 2595 $as_echo_n "(cached) " >&6 2596else 2597 case $PANDOC in 2598 [\\/]* | ?:[\\/]*) 2599 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 2600 ;; 2601 *) 2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2603for as_dir in $PATH 2604do 2605 IFS=$as_save_IFS 2606 test -z "$as_dir" && as_dir=. 2607 for ac_exec_ext in '' $ac_executable_extensions; do 2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2609 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2611 break 2 2612 fi 2613done 2614 done 2615IFS=$as_save_IFS 2616 2617 ;; 2618esac 2619fi 2620PANDOC=$ac_cv_path_PANDOC 2621if test -n "$PANDOC"; then 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 2623$as_echo "$PANDOC" >&6; } 2624else 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2626$as_echo "no" >&6; } 2627fi 2628 2629 2630if test "x$ac_cv_path_PANDOC" = "x"; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pandoc not found - Please install if you want build the docs" >&5 2632$as_echo "$as_me: WARNING: pandoc not found - Please install if you want build the docs" >&2;} 2633else 2634 # 2635 # Pandoc v2 onwards renamed --latex-engine to --pdf-engine 2636 # 2637 if pandoc --help 2>&1 | grep -q "latex-engine"; then 2638 PANDOC_ENGINE=latex 2639 else 2640 PANDOC_ENGINE=pdf 2641 fi 2642 2643fi 2644 2645# pandoc and asciidoctor is defined? then check it. 2646if test "x$ac_cv_path_PANDOC" != "x" && test "x$ac_cv_path_ASCIIDOCTOR" != "x"; then 2647 2648 2649 2650 2651 2652 2653# Make sure we have perl 2654if test -z "$PERL"; then 2655# Extract the first word of "perl", so it can be a program name with args. 2656set dummy perl; ac_word=$2 2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2658$as_echo_n "checking for $ac_word... " >&6; } 2659if ${ac_cv_prog_PERL+:} false; then : 2660 $as_echo_n "(cached) " >&6 2661else 2662 if test -n "$PERL"; then 2663 ac_cv_prog_PERL="$PERL" # Let the user override the test. 2664else 2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666for as_dir in $PATH 2667do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2672 ac_cv_prog_PERL="perl" 2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2674 break 2 2675 fi 2676done 2677 done 2678IFS=$as_save_IFS 2679 2680fi 2681fi 2682PERL=$ac_cv_prog_PERL 2683if test -n "$PERL"; then 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 2685$as_echo "$PERL" >&6; } 2686else 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2688$as_echo "no" >&6; } 2689fi 2690 2691 2692fi 2693 2694if test "x$PERL" != x; then 2695 ax_perl_modules_failed=0 2696 for ax_perl_module in 'JSON' ; do 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5 2698$as_echo_n "checking for perl module $ax_perl_module... " >&6; } 2699 2700 # Would be nice to log result here, but can't rely on autoconf internals 2701 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1 2702 if test $? -ne 0; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2704$as_echo "no" >&6; }; 2705 ax_perl_modules_failed=1 2706 else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 2708$as_echo "ok" >&6; }; 2709 fi 2710 done 2711 2712 # Run optional shell commands 2713 if test "$ax_perl_modules_failed" = 0; then 2714 : 2715 2716 else 2717 : 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Perl JSON module not found - Please install if you want build the docs" >&5 2719$as_echo "$as_me: WARNING: Perl JSON module not found - Please install if you want build the docs" >&2;} 2720 fi 2721else 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5 2723$as_echo "$as_me: WARNING: could not find perl" >&2;} 2724fi 2725fi 2726 2727# Extract the first word of "doxygen", so it can be a program name with args. 2728set dummy doxygen; ac_word=$2 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2730$as_echo_n "checking for $ac_word... " >&6; } 2731if ${ac_cv_path_DOXYGEN+:} false; then : 2732 $as_echo_n "(cached) " >&6 2733else 2734 case $DOXYGEN in 2735 [\\/]* | ?:[\\/]*) 2736 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 2737 ;; 2738 *) 2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2740for as_dir in $PATH 2741do 2742 IFS=$as_save_IFS 2743 test -z "$as_dir" && as_dir=. 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2746 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2748 break 2 2749 fi 2750done 2751 done 2752IFS=$as_save_IFS 2753 2754 ;; 2755esac 2756fi 2757DOXYGEN=$ac_cv_path_DOXYGEN 2758if test -n "$DOXYGEN"; then 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 2760$as_echo "$DOXYGEN" >&6; } 2761else 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2763$as_echo "no" >&6; } 2764fi 2765 2766 2767if test "x$ac_cv_path_DOXYGEN" != "x"; then 2768 # Extract the first word of "dot", so it can be a program name with args. 2769set dummy dot; ac_word=$2 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2771$as_echo_n "checking for $ac_word... " >&6; } 2772if ${ac_cv_path_GRAPHVIZ_DOT+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 case $GRAPHVIZ_DOT in 2776 [\\/]* | ?:[\\/]*) 2777 ac_cv_path_GRAPHVIZ_DOT="$GRAPHVIZ_DOT" # Let the user override the test with a path. 2778 ;; 2779 *) 2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2787 ac_cv_path_GRAPHVIZ_DOT="$as_dir/$ac_word$ac_exec_ext" 2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792 done 2793IFS=$as_save_IFS 2794 2795 ;; 2796esac 2797fi 2798GRAPHVIZ_DOT=$ac_cv_path_GRAPHVIZ_DOT 2799if test -n "$GRAPHVIZ_DOT"; then 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ_DOT" >&5 2801$as_echo "$GRAPHVIZ_DOT" >&6; } 2802else 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2804$as_echo "no" >&6; } 2805fi 2806 2807 2808 if test "x$ac_cv_path_GRAPHVIZ_DOT" = "x"; then 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - Please install the graphviz if you want to build the docs/source" >&5 2810$as_echo "$as_me: WARNING: dot not found - Please install the graphviz if you want to build the docs/source" >&2;} 2811 fi 2812else 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - Please install if you want build the docs/source" >&5 2814$as_echo "$as_me: WARNING: doxygen not found - Please install if you want build the docs/source" >&2;} 2815fi 2816 2817# Extract the first word of "antora", so it can be a program name with args. 2818set dummy antora; ac_word=$2 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2820$as_echo_n "checking for $ac_word... " >&6; } 2821if ${ac_cv_path_ANTORA+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823else 2824 case $ANTORA in 2825 [\\/]* | ?:[\\/]*) 2826 ac_cv_path_ANTORA="$ANTORA" # Let the user override the test with a path. 2827 ;; 2828 *) 2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2830for as_dir in $PATH 2831do 2832 IFS=$as_save_IFS 2833 test -z "$as_dir" && as_dir=. 2834 for ac_exec_ext in '' $ac_executable_extensions; do 2835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2836 ac_cv_path_ANTORA="$as_dir/$ac_word$ac_exec_ext" 2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840done 2841 done 2842IFS=$as_save_IFS 2843 2844 ;; 2845esac 2846fi 2847ANTORA=$ac_cv_path_ANTORA 2848if test -n "$ANTORA"; then 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTORA" >&5 2850$as_echo "$ANTORA" >&6; } 2851else 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2853$as_echo "no" >&6; } 2854fi 2855 2856 2857if test "x$ac_cv_path_ANTORA" = "x"; then 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: antora not found - Please install if you want build the site" >&5 2859$as_echo "$as_me: WARNING: antora not found - Please install if you want build the site" >&2;} 2860fi 2861 2862# Check whether --enable-developer was given. 2863if test "${enable_developer+set}" = set; then : 2864 enableval=$enable_developer; case "$enableval" in 2865 no) 2866 developer=no 2867 ;; 2868 *) 2869 developer=yes 2870 esac 2871 2872fi 2873 2874 2875if test -d $srcdir/.git; then 2876 if test "x$developer" != "xno"; then 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5 2878$as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;} 2879 developer="yes" 2880 fi 2881fi 2882 2883if test "x$developer" = "xyes"; then 2884 : ${CFLAGS=-g3} 2885fi 2886 2887# Check whether --enable-verify-ptr was given. 2888if test "${enable_verify_ptr+set}" = set; then : 2889 enableval=$enable_verify_ptr; case "$enableval" in 2890 no) 2891 verify_ptr="" 2892 ;; 2893 *) 2894 verify_ptr="-DWITH_VERIFY_PTR=1" 2895 esac 2896else 2897 verify_ptr="-DWITH_VERIFY_PTR=1" 2898fi 2899 2900 2901 2902ac_aux_dir= 2903for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2904 if test -f "$ac_dir/install-sh"; then 2905 ac_aux_dir=$ac_dir 2906 ac_install_sh="$ac_aux_dir/install-sh -c" 2907 break 2908 elif test -f "$ac_dir/install.sh"; then 2909 ac_aux_dir=$ac_dir 2910 ac_install_sh="$ac_aux_dir/install.sh -c" 2911 break 2912 elif test -f "$ac_dir/shtool"; then 2913 ac_aux_dir=$ac_dir 2914 ac_install_sh="$ac_aux_dir/shtool install -c" 2915 break 2916 fi 2917done 2918if test -z "$ac_aux_dir"; then 2919 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2920fi 2921 2922# These three variables are undocumented and unsupported, 2923# and are intended to be withdrawn in a future Autoconf release. 2924# They can cause serious problems if a builder's source tree is in a directory 2925# whose full name contains unusual characters. 2926ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2927ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2928ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2929 2930 2931# Make sure we can run config.sub. 2932$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2933 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2934 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2936$as_echo_n "checking build system type... " >&6; } 2937if ${ac_cv_build+:} false; then : 2938 $as_echo_n "(cached) " >&6 2939else 2940 ac_build_alias=$build_alias 2941test "x$ac_build_alias" = x && 2942 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2943test "x$ac_build_alias" = x && 2944 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2945ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2946 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2947 2948fi 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2950$as_echo "$ac_cv_build" >&6; } 2951case $ac_cv_build in 2952*-*-*) ;; 2953*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2954esac 2955build=$ac_cv_build 2956ac_save_IFS=$IFS; IFS='-' 2957set x $ac_cv_build 2958shift 2959build_cpu=$1 2960build_vendor=$2 2961shift; shift 2962# Remember, the first character of IFS is used to create $*, 2963# except with old shells: 2964build_os=$* 2965IFS=$ac_save_IFS 2966case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2967 2968 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2970$as_echo_n "checking host system type... " >&6; } 2971if ${ac_cv_host+:} false; then : 2972 $as_echo_n "(cached) " >&6 2973else 2974 if test "x$host_alias" = x; then 2975 ac_cv_host=$ac_cv_build 2976else 2977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2978 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2979fi 2980 2981fi 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2983$as_echo "$ac_cv_host" >&6; } 2984case $ac_cv_host in 2985*-*-*) ;; 2986*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2987esac 2988host=$ac_cv_host 2989ac_save_IFS=$IFS; IFS='-' 2990set x $ac_cv_host 2991shift 2992host_cpu=$1 2993host_vendor=$2 2994shift; shift 2995# Remember, the first character of IFS is used to create $*, 2996# except with old shells: 2997host_os=$* 2998IFS=$ac_save_IFS 2999case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3000 3001 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3003$as_echo_n "checking target system type... " >&6; } 3004if ${ac_cv_target+:} false; then : 3005 $as_echo_n "(cached) " >&6 3006else 3007 if test "x$target_alias" = x; then 3008 ac_cv_target=$ac_cv_host 3009else 3010 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3011 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3012fi 3013 3014fi 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3016$as_echo "$ac_cv_target" >&6; } 3017case $ac_cv_target in 3018*-*-*) ;; 3019*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3020esac 3021target=$ac_cv_target 3022ac_save_IFS=$IFS; IFS='-' 3023set x $ac_cv_target 3024shift 3025target_cpu=$1 3026target_vendor=$2 3027shift; shift 3028# Remember, the first character of IFS is used to create $*, 3029# except with old shells: 3030target_os=$* 3031IFS=$ac_save_IFS 3032case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3033 3034 3035# The aliases save the names the user supplied, while $host etc. 3036# will get canonicalized. 3037test -n "$target_alias" && 3038 test "$program_prefix$program_suffix$program_transform_name" = \ 3039 NONENONEs,x,x, && 3040 program_prefix=${target_alias}- 3041 3042 3043ac_ext=c 3044ac_cpp='$CPP $CPPFLAGS' 3045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3047ac_compiler_gnu=$ac_cv_c_compiler_gnu 3048if test -n "$ac_tool_prefix"; then 3049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3050set dummy ${ac_tool_prefix}gcc; ac_word=$2 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052$as_echo_n "checking for $ac_word... " >&6; } 3053if ${ac_cv_prog_CC+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 if test -n "$CC"; then 3057 ac_cv_prog_CC="$CC" # Let the user override the test. 3058else 3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3060for as_dir in $PATH 3061do 3062 IFS=$as_save_IFS 3063 test -z "$as_dir" && as_dir=. 3064 for ac_exec_ext in '' $ac_executable_extensions; do 3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3066 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3068 break 2 3069 fi 3070done 3071 done 3072IFS=$as_save_IFS 3073 3074fi 3075fi 3076CC=$ac_cv_prog_CC 3077if test -n "$CC"; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3079$as_echo "$CC" >&6; } 3080else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082$as_echo "no" >&6; } 3083fi 3084 3085 3086fi 3087if test -z "$ac_cv_prog_CC"; then 3088 ac_ct_CC=$CC 3089 # Extract the first word of "gcc", so it can be a program name with args. 3090set dummy gcc; ac_word=$2 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3092$as_echo_n "checking for $ac_word... " >&6; } 3093if ${ac_cv_prog_ac_ct_CC+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 if test -n "$ac_ct_CC"; then 3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3098else 3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3100for as_dir in $PATH 3101do 3102 IFS=$as_save_IFS 3103 test -z "$as_dir" && as_dir=. 3104 for ac_exec_ext in '' $ac_executable_extensions; do 3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3106 ac_cv_prog_ac_ct_CC="gcc" 3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3108 break 2 3109 fi 3110done 3111 done 3112IFS=$as_save_IFS 3113 3114fi 3115fi 3116ac_ct_CC=$ac_cv_prog_ac_ct_CC 3117if test -n "$ac_ct_CC"; then 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3119$as_echo "$ac_ct_CC" >&6; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; } 3123fi 3124 3125 if test "x$ac_ct_CC" = x; then 3126 CC="" 3127 else 3128 case $cross_compiling:$ac_tool_warned in 3129yes:) 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3132ac_tool_warned=yes ;; 3133esac 3134 CC=$ac_ct_CC 3135 fi 3136else 3137 CC="$ac_cv_prog_CC" 3138fi 3139 3140if test -z "$CC"; then 3141 if test -n "$ac_tool_prefix"; then 3142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3143set dummy ${ac_tool_prefix}cc; ac_word=$2 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3145$as_echo_n "checking for $ac_word... " >&6; } 3146if ${ac_cv_prog_CC+:} false; then : 3147 $as_echo_n "(cached) " >&6 3148else 3149 if test -n "$CC"; then 3150 ac_cv_prog_CC="$CC" # Let the user override the test. 3151else 3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153for as_dir in $PATH 3154do 3155 IFS=$as_save_IFS 3156 test -z "$as_dir" && as_dir=. 3157 for ac_exec_ext in '' $ac_executable_extensions; do 3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3159 ac_cv_prog_CC="${ac_tool_prefix}cc" 3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3161 break 2 3162 fi 3163done 3164 done 3165IFS=$as_save_IFS 3166 3167fi 3168fi 3169CC=$ac_cv_prog_CC 3170if test -n "$CC"; then 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3172$as_echo "$CC" >&6; } 3173else 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3175$as_echo "no" >&6; } 3176fi 3177 3178 3179 fi 3180fi 3181if test -z "$CC"; then 3182 # Extract the first word of "cc", so it can be a program name with args. 3183set dummy cc; ac_word=$2 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3185$as_echo_n "checking for $ac_word... " >&6; } 3186if ${ac_cv_prog_CC+:} false; then : 3187 $as_echo_n "(cached) " >&6 3188else 3189 if test -n "$CC"; then 3190 ac_cv_prog_CC="$CC" # Let the user override the test. 3191else 3192 ac_prog_rejected=no 3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3194for as_dir in $PATH 3195do 3196 IFS=$as_save_IFS 3197 test -z "$as_dir" && as_dir=. 3198 for ac_exec_ext in '' $ac_executable_extensions; do 3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3201 ac_prog_rejected=yes 3202 continue 3203 fi 3204 ac_cv_prog_CC="cc" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209 done 3210IFS=$as_save_IFS 3211 3212if test $ac_prog_rejected = yes; then 3213 # We found a bogon in the path, so make sure we never use it. 3214 set dummy $ac_cv_prog_CC 3215 shift 3216 if test $# != 0; then 3217 # We chose a different compiler from the bogus one. 3218 # However, it has the same basename, so the bogon will be chosen 3219 # first if we set CC to just the basename; use the full file name. 3220 shift 3221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3222 fi 3223fi 3224fi 3225fi 3226CC=$ac_cv_prog_CC 3227if test -n "$CC"; then 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3229$as_echo "$CC" >&6; } 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232$as_echo "no" >&6; } 3233fi 3234 3235 3236fi 3237if test -z "$CC"; then 3238 if test -n "$ac_tool_prefix"; then 3239 for ac_prog in cl.exe 3240 do 3241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3242set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3244$as_echo_n "checking for $ac_word... " >&6; } 3245if ${ac_cv_prog_CC+:} false; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 if test -n "$CC"; then 3249 ac_cv_prog_CC="$CC" # Let the user override the test. 3250else 3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3252for as_dir in $PATH 3253do 3254 IFS=$as_save_IFS 3255 test -z "$as_dir" && as_dir=. 3256 for ac_exec_ext in '' $ac_executable_extensions; do 3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3260 break 2 3261 fi 3262done 3263 done 3264IFS=$as_save_IFS 3265 3266fi 3267fi 3268CC=$ac_cv_prog_CC 3269if test -n "$CC"; then 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3271$as_echo "$CC" >&6; } 3272else 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3274$as_echo "no" >&6; } 3275fi 3276 3277 3278 test -n "$CC" && break 3279 done 3280fi 3281if test -z "$CC"; then 3282 ac_ct_CC=$CC 3283 for ac_prog in cl.exe 3284do 3285 # Extract the first word of "$ac_prog", so it can be a program name with args. 3286set dummy $ac_prog; ac_word=$2 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3288$as_echo_n "checking for $ac_word... " >&6; } 3289if ${ac_cv_prog_ac_ct_CC+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 if test -n "$ac_ct_CC"; then 3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3294else 3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296for as_dir in $PATH 3297do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3302 ac_cv_prog_ac_ct_CC="$ac_prog" 3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306done 3307 done 3308IFS=$as_save_IFS 3309 3310fi 3311fi 3312ac_ct_CC=$ac_cv_prog_ac_ct_CC 3313if test -n "$ac_ct_CC"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3315$as_echo "$ac_ct_CC" >&6; } 3316else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318$as_echo "no" >&6; } 3319fi 3320 3321 3322 test -n "$ac_ct_CC" && break 3323done 3324 3325 if test "x$ac_ct_CC" = x; then 3326 CC="" 3327 else 3328 case $cross_compiling:$ac_tool_warned in 3329yes:) 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3332ac_tool_warned=yes ;; 3333esac 3334 CC=$ac_ct_CC 3335 fi 3336fi 3337 3338fi 3339 3340 3341test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3343as_fn_error $? "no acceptable C compiler found in \$PATH 3344See \`config.log' for more details" "$LINENO" 5; } 3345 3346# Provide some information about the compiler. 3347$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3348set X $ac_compile 3349ac_compiler=$2 3350for ac_option in --version -v -V -qversion; do 3351 { { ac_try="$ac_compiler $ac_option >&5" 3352case "(($ac_try" in 3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3354 *) ac_try_echo=$ac_try;; 3355esac 3356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3357$as_echo "$ac_try_echo"; } >&5 3358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3359 ac_status=$? 3360 if test -s conftest.err; then 3361 sed '10a\ 3362... rest of stderr output deleted ... 3363 10q' conftest.err >conftest.er1 3364 cat conftest.er1 >&5 3365 fi 3366 rm -f conftest.er1 conftest.err 3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3368 test $ac_status = 0; } 3369done 3370 3371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3372/* end confdefs.h. */ 3373 3374int 3375main () 3376{ 3377 3378 ; 3379 return 0; 3380} 3381_ACEOF 3382ac_clean_files_save=$ac_clean_files 3383ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3384# Try to create an executable without -o first, disregard a.out. 3385# It will help us diagnose broken compilers, and finding out an intuition 3386# of exeext. 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3388$as_echo_n "checking whether the C compiler works... " >&6; } 3389ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3390 3391# The possible output files: 3392ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3393 3394ac_rmfiles= 3395for ac_file in $ac_files 3396do 3397 case $ac_file in 3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3399 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3400 esac 3401done 3402rm -f $ac_rmfiles 3403 3404if { { ac_try="$ac_link_default" 3405case "(($ac_try" in 3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3407 *) ac_try_echo=$ac_try;; 3408esac 3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3410$as_echo "$ac_try_echo"; } >&5 3411 (eval "$ac_link_default") 2>&5 3412 ac_status=$? 3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3414 test $ac_status = 0; }; then : 3415 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3416# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3417# in a Makefile. We should not override ac_cv_exeext if it was cached, 3418# so that the user can short-circuit this test for compilers unknown to 3419# Autoconf. 3420for ac_file in $ac_files '' 3421do 3422 test -f "$ac_file" || continue 3423 case $ac_file in 3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3425 ;; 3426 [ab].out ) 3427 # We found the default executable, but exeext='' is most 3428 # certainly right. 3429 break;; 3430 *.* ) 3431 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3432 then :; else 3433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3434 fi 3435 # We set ac_cv_exeext here because the later test for it is not 3436 # safe: cross compilers may not add the suffix if given an `-o' 3437 # argument, so we may need to know it at that point already. 3438 # Even if this section looks crufty: it has the advantage of 3439 # actually working. 3440 break;; 3441 * ) 3442 break;; 3443 esac 3444done 3445test "$ac_cv_exeext" = no && ac_cv_exeext= 3446 3447else 3448 ac_file='' 3449fi 3450if test -z "$ac_file"; then : 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3452$as_echo "no" >&6; } 3453$as_echo "$as_me: failed program was:" >&5 3454sed 's/^/| /' conftest.$ac_ext >&5 3455 3456{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3458as_fn_error 77 "C compiler cannot create executables 3459See \`config.log' for more details" "$LINENO" 5; } 3460else 3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3462$as_echo "yes" >&6; } 3463fi 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3465$as_echo_n "checking for C compiler default output file name... " >&6; } 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3467$as_echo "$ac_file" >&6; } 3468ac_exeext=$ac_cv_exeext 3469 3470rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3471ac_clean_files=$ac_clean_files_save 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3473$as_echo_n "checking for suffix of executables... " >&6; } 3474if { { ac_try="$ac_link" 3475case "(($ac_try" in 3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3477 *) ac_try_echo=$ac_try;; 3478esac 3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3480$as_echo "$ac_try_echo"; } >&5 3481 (eval "$ac_link") 2>&5 3482 ac_status=$? 3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3484 test $ac_status = 0; }; then : 3485 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3486# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3487# work properly (i.e., refer to `conftest.exe'), while it won't with 3488# `rm'. 3489for ac_file in conftest.exe conftest conftest.*; do 3490 test -f "$ac_file" || continue 3491 case $ac_file in 3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3493 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3494 break;; 3495 * ) break;; 3496 esac 3497done 3498else 3499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3501as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3502See \`config.log' for more details" "$LINENO" 5; } 3503fi 3504rm -f conftest conftest$ac_cv_exeext 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3506$as_echo "$ac_cv_exeext" >&6; } 3507 3508rm -f conftest.$ac_ext 3509EXEEXT=$ac_cv_exeext 3510ac_exeext=$EXEEXT 3511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3512/* end confdefs.h. */ 3513#include <stdio.h> 3514int 3515main () 3516{ 3517FILE *f = fopen ("conftest.out", "w"); 3518 return ferror (f) || fclose (f) != 0; 3519 3520 ; 3521 return 0; 3522} 3523_ACEOF 3524ac_clean_files="$ac_clean_files conftest.out" 3525# Check that the compiler produces executables we can run. If not, either 3526# the compiler is broken, or we cross compile. 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3528$as_echo_n "checking whether we are cross compiling... " >&6; } 3529if test "$cross_compiling" != yes; then 3530 { { ac_try="$ac_link" 3531case "(($ac_try" in 3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3533 *) ac_try_echo=$ac_try;; 3534esac 3535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3536$as_echo "$ac_try_echo"; } >&5 3537 (eval "$ac_link") 2>&5 3538 ac_status=$? 3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3540 test $ac_status = 0; } 3541 if { ac_try='./conftest$ac_cv_exeext' 3542 { { case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_try") 2>&5 3549 ac_status=$? 3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3551 test $ac_status = 0; }; }; then 3552 cross_compiling=no 3553 else 3554 if test "$cross_compiling" = maybe; then 3555 cross_compiling=yes 3556 else 3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3559as_fn_error $? "cannot run C compiled programs. 3560If you meant to cross compile, use \`--host'. 3561See \`config.log' for more details" "$LINENO" 5; } 3562 fi 3563 fi 3564fi 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3566$as_echo "$cross_compiling" >&6; } 3567 3568rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3569ac_clean_files=$ac_clean_files_save 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3571$as_echo_n "checking for suffix of object files... " >&6; } 3572if ${ac_cv_objext+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577 3578int 3579main () 3580{ 3581 3582 ; 3583 return 0; 3584} 3585_ACEOF 3586rm -f conftest.o conftest.obj 3587if { { ac_try="$ac_compile" 3588case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591esac 3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3593$as_echo "$ac_try_echo"; } >&5 3594 (eval "$ac_compile") 2>&5 3595 ac_status=$? 3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3597 test $ac_status = 0; }; then : 3598 for ac_file in conftest.o conftest.obj conftest.*; do 3599 test -f "$ac_file" || continue; 3600 case $ac_file in 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3603 break;; 3604 esac 3605done 3606else 3607 $as_echo "$as_me: failed program was:" >&5 3608sed 's/^/| /' conftest.$ac_ext >&5 3609 3610{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3612as_fn_error $? "cannot compute suffix of object files: cannot compile 3613See \`config.log' for more details" "$LINENO" 5; } 3614fi 3615rm -f conftest.$ac_cv_objext conftest.$ac_ext 3616fi 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3618$as_echo "$ac_cv_objext" >&6; } 3619OBJEXT=$ac_cv_objext 3620ac_objext=$OBJEXT 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3622$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3623if ${ac_cv_c_compiler_gnu+:} false; then : 3624 $as_echo_n "(cached) " >&6 3625else 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627/* end confdefs.h. */ 3628 3629int 3630main () 3631{ 3632#ifndef __GNUC__ 3633 choke me 3634#endif 3635 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640if ac_fn_c_try_compile "$LINENO"; then : 3641 ac_compiler_gnu=yes 3642else 3643 ac_compiler_gnu=no 3644fi 3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3646ac_cv_c_compiler_gnu=$ac_compiler_gnu 3647 3648fi 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3650$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3651if test $ac_compiler_gnu = yes; then 3652 GCC=yes 3653else 3654 GCC= 3655fi 3656ac_test_CFLAGS=${CFLAGS+set} 3657ac_save_CFLAGS=$CFLAGS 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3659$as_echo_n "checking whether $CC accepts -g... " >&6; } 3660if ${ac_cv_prog_cc_g+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 ac_save_c_werror_flag=$ac_c_werror_flag 3664 ac_c_werror_flag=yes 3665 ac_cv_prog_cc_g=no 3666 CFLAGS="-g" 3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3668/* end confdefs.h. */ 3669 3670int 3671main () 3672{ 3673 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678if ac_fn_c_try_compile "$LINENO"; then : 3679 ac_cv_prog_cc_g=yes 3680else 3681 CFLAGS="" 3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683/* end confdefs.h. */ 3684 3685int 3686main () 3687{ 3688 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693if ac_fn_c_try_compile "$LINENO"; then : 3694 3695else 3696 ac_c_werror_flag=$ac_save_c_werror_flag 3697 CFLAGS="-g" 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701int 3702main () 3703{ 3704 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709if ac_fn_c_try_compile "$LINENO"; then : 3710 ac_cv_prog_cc_g=yes 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3713fi 3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3715fi 3716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3717 ac_c_werror_flag=$ac_save_c_werror_flag 3718fi 3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3720$as_echo "$ac_cv_prog_cc_g" >&6; } 3721if test "$ac_test_CFLAGS" = set; then 3722 CFLAGS=$ac_save_CFLAGS 3723elif test $ac_cv_prog_cc_g = yes; then 3724 if test "$GCC" = yes; then 3725 CFLAGS="-g -O2" 3726 else 3727 CFLAGS="-g" 3728 fi 3729else 3730 if test "$GCC" = yes; then 3731 CFLAGS="-O2" 3732 else 3733 CFLAGS= 3734 fi 3735fi 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3737$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3738if ${ac_cv_prog_cc_c89+:} false; then : 3739 $as_echo_n "(cached) " >&6 3740else 3741 ac_cv_prog_cc_c89=no 3742ac_save_CC=$CC 3743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3744/* end confdefs.h. */ 3745#include <stdarg.h> 3746#include <stdio.h> 3747struct stat; 3748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3749struct buf { int x; }; 3750FILE * (*rcsopen) (struct buf *, struct stat *, int); 3751static char *e (p, i) 3752 char **p; 3753 int i; 3754{ 3755 return p[i]; 3756} 3757static char *f (char * (*g) (char **, int), char **p, ...) 3758{ 3759 char *s; 3760 va_list v; 3761 va_start (v,p); 3762 s = g (p, va_arg (v,int)); 3763 va_end (v); 3764 return s; 3765} 3766 3767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3768 function prototypes and stuff, but not '\xHH' hex character constants. 3769 These don't provoke an error unfortunately, instead are silently treated 3770 as 'x'. The following induces an error, until -std is added to get 3771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3772 array size at least. It's necessary to write '\x00'==0 to get something 3773 that's true only with -std. */ 3774int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3775 3776/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3777 inside strings and character constants. */ 3778#define FOO(x) 'x' 3779int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3780 3781int test (int i, double x); 3782struct s1 {int (*f) (int a);}; 3783struct s2 {int (*f) (double a);}; 3784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3785int argc; 3786char **argv; 3787int 3788main () 3789{ 3790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3791 ; 3792 return 0; 3793} 3794_ACEOF 3795for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3797do 3798 CC="$ac_save_CC $ac_arg" 3799 if ac_fn_c_try_compile "$LINENO"; then : 3800 ac_cv_prog_cc_c89=$ac_arg 3801fi 3802rm -f core conftest.err conftest.$ac_objext 3803 test "x$ac_cv_prog_cc_c89" != "xno" && break 3804done 3805rm -f conftest.$ac_ext 3806CC=$ac_save_CC 3807 3808fi 3809# AC_CACHE_VAL 3810case "x$ac_cv_prog_cc_c89" in 3811 x) 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3813$as_echo "none needed" >&6; } ;; 3814 xno) 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3816$as_echo "unsupported" >&6; } ;; 3817 *) 3818 CC="$CC $ac_cv_prog_cc_c89" 3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3820$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3821esac 3822if test "x$ac_cv_prog_cc_c89" != xno; then : 3823 3824fi 3825 3826ac_ext=c 3827ac_cpp='$CPP $CPPFLAGS' 3828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3830ac_compiler_gnu=$ac_cv_c_compiler_gnu 3831 3832ac_ext=cpp 3833ac_cpp='$CXXCPP $CPPFLAGS' 3834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3837if test -z "$CXX"; then 3838 if test -n "$CCC"; then 3839 CXX=$CCC 3840 else 3841 if test -n "$ac_tool_prefix"; then 3842 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3843 do 3844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3845set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3847$as_echo_n "checking for $ac_word... " >&6; } 3848if ${ac_cv_prog_CXX+:} false; then : 3849 $as_echo_n "(cached) " >&6 3850else 3851 if test -n "$CXX"; then 3852 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3853else 3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3855for as_dir in $PATH 3856do 3857 IFS=$as_save_IFS 3858 test -z "$as_dir" && as_dir=. 3859 for ac_exec_ext in '' $ac_executable_extensions; do 3860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3861 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3863 break 2 3864 fi 3865done 3866 done 3867IFS=$as_save_IFS 3868 3869fi 3870fi 3871CXX=$ac_cv_prog_CXX 3872if test -n "$CXX"; then 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3874$as_echo "$CXX" >&6; } 3875else 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3877$as_echo "no" >&6; } 3878fi 3879 3880 3881 test -n "$CXX" && break 3882 done 3883fi 3884if test -z "$CXX"; then 3885 ac_ct_CXX=$CXX 3886 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3887do 3888 # Extract the first word of "$ac_prog", so it can be a program name with args. 3889set dummy $ac_prog; ac_word=$2 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3891$as_echo_n "checking for $ac_word... " >&6; } 3892if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3893 $as_echo_n "(cached) " >&6 3894else 3895 if test -n "$ac_ct_CXX"; then 3896 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3897else 3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3899for as_dir in $PATH 3900do 3901 IFS=$as_save_IFS 3902 test -z "$as_dir" && as_dir=. 3903 for ac_exec_ext in '' $ac_executable_extensions; do 3904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3905 ac_cv_prog_ac_ct_CXX="$ac_prog" 3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3907 break 2 3908 fi 3909done 3910 done 3911IFS=$as_save_IFS 3912 3913fi 3914fi 3915ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3916if test -n "$ac_ct_CXX"; then 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3918$as_echo "$ac_ct_CXX" >&6; } 3919else 3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3921$as_echo "no" >&6; } 3922fi 3923 3924 3925 test -n "$ac_ct_CXX" && break 3926done 3927 3928 if test "x$ac_ct_CXX" = x; then 3929 CXX="g++" 3930 else 3931 case $cross_compiling:$ac_tool_warned in 3932yes:) 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3935ac_tool_warned=yes ;; 3936esac 3937 CXX=$ac_ct_CXX 3938 fi 3939fi 3940 3941 fi 3942fi 3943# Provide some information about the compiler. 3944$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3945set X $ac_compile 3946ac_compiler=$2 3947for ac_option in --version -v -V -qversion; do 3948 { { ac_try="$ac_compiler $ac_option >&5" 3949case "(($ac_try" in 3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3951 *) ac_try_echo=$ac_try;; 3952esac 3953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3954$as_echo "$ac_try_echo"; } >&5 3955 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3956 ac_status=$? 3957 if test -s conftest.err; then 3958 sed '10a\ 3959... rest of stderr output deleted ... 3960 10q' conftest.err >conftest.er1 3961 cat conftest.er1 >&5 3962 fi 3963 rm -f conftest.er1 conftest.err 3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3965 test $ac_status = 0; } 3966done 3967 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3969$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3970if ${ac_cv_cxx_compiler_gnu+:} false; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974/* end confdefs.h. */ 3975 3976int 3977main () 3978{ 3979#ifndef __GNUC__ 3980 choke me 3981#endif 3982 3983 ; 3984 return 0; 3985} 3986_ACEOF 3987if ac_fn_cxx_try_compile "$LINENO"; then : 3988 ac_compiler_gnu=yes 3989else 3990 ac_compiler_gnu=no 3991fi 3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3993ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3994 3995fi 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3997$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3998if test $ac_compiler_gnu = yes; then 3999 GXX=yes 4000else 4001 GXX= 4002fi 4003ac_test_CXXFLAGS=${CXXFLAGS+set} 4004ac_save_CXXFLAGS=$CXXFLAGS 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4006$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4007if ${ac_cv_prog_cxx_g+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4011 ac_cxx_werror_flag=yes 4012 ac_cv_prog_cxx_g=no 4013 CXXFLAGS="-g" 4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015/* end confdefs.h. */ 4016 4017int 4018main () 4019{ 4020 4021 ; 4022 return 0; 4023} 4024_ACEOF 4025if ac_fn_cxx_try_compile "$LINENO"; then : 4026 ac_cv_prog_cxx_g=yes 4027else 4028 CXXFLAGS="" 4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4030/* end confdefs.h. */ 4031 4032int 4033main () 4034{ 4035 4036 ; 4037 return 0; 4038} 4039_ACEOF 4040if ac_fn_cxx_try_compile "$LINENO"; then : 4041 4042else 4043 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4044 CXXFLAGS="-g" 4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046/* end confdefs.h. */ 4047 4048int 4049main () 4050{ 4051 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056if ac_fn_cxx_try_compile "$LINENO"; then : 4057 ac_cv_prog_cxx_g=yes 4058fi 4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4060fi 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062fi 4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4064 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4065fi 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4067$as_echo "$ac_cv_prog_cxx_g" >&6; } 4068if test "$ac_test_CXXFLAGS" = set; then 4069 CXXFLAGS=$ac_save_CXXFLAGS 4070elif test $ac_cv_prog_cxx_g = yes; then 4071 if test "$GXX" = yes; then 4072 CXXFLAGS="-g -O2" 4073 else 4074 CXXFLAGS="-g" 4075 fi 4076else 4077 if test "$GXX" = yes; then 4078 CXXFLAGS="-O2" 4079 else 4080 CXXFLAGS= 4081 fi 4082fi 4083ac_ext=c 4084ac_cpp='$CPP $CPPFLAGS' 4085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4087ac_compiler_gnu=$ac_cv_c_compiler_gnu 4088 4089 4090 4091ac_ext=c 4092ac_cpp='$CPP $CPPFLAGS' 4093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4095ac_compiler_gnu=$ac_cv_c_compiler_gnu 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4097$as_echo_n "checking how to run the C preprocessor... " >&6; } 4098# On Suns, sometimes $CPP names a directory. 4099if test -n "$CPP" && test -d "$CPP"; then 4100 CPP= 4101fi 4102if test -z "$CPP"; then 4103 if ${ac_cv_prog_CPP+:} false; then : 4104 $as_echo_n "(cached) " >&6 4105else 4106 # Double quotes because CPP needs to be expanded 4107 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4108 do 4109 ac_preproc_ok=false 4110for ac_c_preproc_warn_flag in '' yes 4111do 4112 # Use a header file that comes with gcc, so configuring glibc 4113 # with a fresh cross-compiler works. 4114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4115 # <limits.h> exists even on freestanding compilers. 4116 # On the NeXT, cc -E runs the code through the compiler's parser, 4117 # not just through cpp. "Syntax error" is here to catch this case. 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119/* end confdefs.h. */ 4120#ifdef __STDC__ 4121# include <limits.h> 4122#else 4123# include <assert.h> 4124#endif 4125 Syntax error 4126_ACEOF 4127if ac_fn_c_try_cpp "$LINENO"; then : 4128 4129else 4130 # Broken: fails on valid input. 4131continue 4132fi 4133rm -f conftest.err conftest.i conftest.$ac_ext 4134 4135 # OK, works on sane cases. Now check whether nonexistent headers 4136 # can be detected and how. 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139#include <ac_nonexistent.h> 4140_ACEOF 4141if ac_fn_c_try_cpp "$LINENO"; then : 4142 # Broken: success on invalid input. 4143continue 4144else 4145 # Passes both tests. 4146ac_preproc_ok=: 4147break 4148fi 4149rm -f conftest.err conftest.i conftest.$ac_ext 4150 4151done 4152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4153rm -f conftest.i conftest.err conftest.$ac_ext 4154if $ac_preproc_ok; then : 4155 break 4156fi 4157 4158 done 4159 ac_cv_prog_CPP=$CPP 4160 4161fi 4162 CPP=$ac_cv_prog_CPP 4163else 4164 ac_cv_prog_CPP=$CPP 4165fi 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4167$as_echo "$CPP" >&6; } 4168ac_preproc_ok=false 4169for ac_c_preproc_warn_flag in '' yes 4170do 4171 # Use a header file that comes with gcc, so configuring glibc 4172 # with a fresh cross-compiler works. 4173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4174 # <limits.h> exists even on freestanding compilers. 4175 # On the NeXT, cc -E runs the code through the compiler's parser, 4176 # not just through cpp. "Syntax error" is here to catch this case. 4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178/* end confdefs.h. */ 4179#ifdef __STDC__ 4180# include <limits.h> 4181#else 4182# include <assert.h> 4183#endif 4184 Syntax error 4185_ACEOF 4186if ac_fn_c_try_cpp "$LINENO"; then : 4187 4188else 4189 # Broken: fails on valid input. 4190continue 4191fi 4192rm -f conftest.err conftest.i conftest.$ac_ext 4193 4194 # OK, works on sane cases. Now check whether nonexistent headers 4195 # can be detected and how. 4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198#include <ac_nonexistent.h> 4199_ACEOF 4200if ac_fn_c_try_cpp "$LINENO"; then : 4201 # Broken: success on invalid input. 4202continue 4203else 4204 # Passes both tests. 4205ac_preproc_ok=: 4206break 4207fi 4208rm -f conftest.err conftest.i conftest.$ac_ext 4209 4210done 4211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4212rm -f conftest.i conftest.err conftest.$ac_ext 4213if $ac_preproc_ok; then : 4214 4215else 4216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4218as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4219See \`config.log' for more details" "$LINENO" 5; } 4220fi 4221 4222ac_ext=c 4223ac_cpp='$CPP $CPPFLAGS' 4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4226ac_compiler_gnu=$ac_cv_c_compiler_gnu 4227 4228 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4230$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4231if ${ac_cv_path_GREP+:} false; then : 4232 $as_echo_n "(cached) " >&6 4233else 4234 if test -z "$GREP"; then 4235 ac_path_GREP_found=false 4236 # Loop through the user's path and test for each of PROGNAME-LIST 4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4238for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4239do 4240 IFS=$as_save_IFS 4241 test -z "$as_dir" && as_dir=. 4242 for ac_prog in grep ggrep; do 4243 for ac_exec_ext in '' $ac_executable_extensions; do 4244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4245 as_fn_executable_p "$ac_path_GREP" || continue 4246# Check for GNU ac_path_GREP and select it if it is found. 4247 # Check for GNU $ac_path_GREP 4248case `"$ac_path_GREP" --version 2>&1` in 4249*GNU*) 4250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4251*) 4252 ac_count=0 4253 $as_echo_n 0123456789 >"conftest.in" 4254 while : 4255 do 4256 cat "conftest.in" "conftest.in" >"conftest.tmp" 4257 mv "conftest.tmp" "conftest.in" 4258 cp "conftest.in" "conftest.nl" 4259 $as_echo 'GREP' >> "conftest.nl" 4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4262 as_fn_arith $ac_count + 1 && ac_count=$as_val 4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4264 # Best one so far, save it but keep looking for a better one 4265 ac_cv_path_GREP="$ac_path_GREP" 4266 ac_path_GREP_max=$ac_count 4267 fi 4268 # 10*(2^10) chars as input seems more than enough 4269 test $ac_count -gt 10 && break 4270 done 4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4272esac 4273 4274 $ac_path_GREP_found && break 3 4275 done 4276 done 4277 done 4278IFS=$as_save_IFS 4279 if test -z "$ac_cv_path_GREP"; then 4280 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4281 fi 4282else 4283 ac_cv_path_GREP=$GREP 4284fi 4285 4286fi 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4288$as_echo "$ac_cv_path_GREP" >&6; } 4289 GREP="$ac_cv_path_GREP" 4290 4291 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4293$as_echo_n "checking for egrep... " >&6; } 4294if ${ac_cv_path_EGREP+:} false; then : 4295 $as_echo_n "(cached) " >&6 4296else 4297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4298 then ac_cv_path_EGREP="$GREP -E" 4299 else 4300 if test -z "$EGREP"; then 4301 ac_path_EGREP_found=false 4302 # Loop through the user's path and test for each of PROGNAME-LIST 4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4305do 4306 IFS=$as_save_IFS 4307 test -z "$as_dir" && as_dir=. 4308 for ac_prog in egrep; do 4309 for ac_exec_ext in '' $ac_executable_extensions; do 4310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4311 as_fn_executable_p "$ac_path_EGREP" || continue 4312# Check for GNU ac_path_EGREP and select it if it is found. 4313 # Check for GNU $ac_path_EGREP 4314case `"$ac_path_EGREP" --version 2>&1` in 4315*GNU*) 4316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4317*) 4318 ac_count=0 4319 $as_echo_n 0123456789 >"conftest.in" 4320 while : 4321 do 4322 cat "conftest.in" "conftest.in" >"conftest.tmp" 4323 mv "conftest.tmp" "conftest.in" 4324 cp "conftest.in" "conftest.nl" 4325 $as_echo 'EGREP' >> "conftest.nl" 4326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4328 as_fn_arith $ac_count + 1 && ac_count=$as_val 4329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4330 # Best one so far, save it but keep looking for a better one 4331 ac_cv_path_EGREP="$ac_path_EGREP" 4332 ac_path_EGREP_max=$ac_count 4333 fi 4334 # 10*(2^10) chars as input seems more than enough 4335 test $ac_count -gt 10 && break 4336 done 4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4338esac 4339 4340 $ac_path_EGREP_found && break 3 4341 done 4342 done 4343 done 4344IFS=$as_save_IFS 4345 if test -z "$ac_cv_path_EGREP"; then 4346 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4347 fi 4348else 4349 ac_cv_path_EGREP=$EGREP 4350fi 4351 4352 fi 4353fi 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4355$as_echo "$ac_cv_path_EGREP" >&6; } 4356 EGREP="$ac_cv_path_EGREP" 4357 4358 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4360$as_echo_n "checking for ANSI C header files... " >&6; } 4361if ${ac_cv_header_stdc+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4365/* end confdefs.h. */ 4366#include <stdlib.h> 4367#include <stdarg.h> 4368#include <string.h> 4369#include <float.h> 4370 4371int 4372main () 4373{ 4374 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379if ac_fn_c_try_compile "$LINENO"; then : 4380 ac_cv_header_stdc=yes 4381else 4382 ac_cv_header_stdc=no 4383fi 4384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4385 4386if test $ac_cv_header_stdc = yes; then 4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4389/* end confdefs.h. */ 4390#include <string.h> 4391 4392_ACEOF 4393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4394 $EGREP "memchr" >/dev/null 2>&1; then : 4395 4396else 4397 ac_cv_header_stdc=no 4398fi 4399rm -f conftest* 4400 4401fi 4402 4403if test $ac_cv_header_stdc = yes; then 4404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4406/* end confdefs.h. */ 4407#include <stdlib.h> 4408 4409_ACEOF 4410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4411 $EGREP "free" >/dev/null 2>&1; then : 4412 4413else 4414 ac_cv_header_stdc=no 4415fi 4416rm -f conftest* 4417 4418fi 4419 4420if test $ac_cv_header_stdc = yes; then 4421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4422 if test "$cross_compiling" = yes; then : 4423 : 4424else 4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4426/* end confdefs.h. */ 4427#include <ctype.h> 4428#include <stdlib.h> 4429#if ((' ' & 0x0FF) == 0x020) 4430# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4431# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4432#else 4433# define ISLOWER(c) \ 4434 (('a' <= (c) && (c) <= 'i') \ 4435 || ('j' <= (c) && (c) <= 'r') \ 4436 || ('s' <= (c) && (c) <= 'z')) 4437# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4438#endif 4439 4440#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4441int 4442main () 4443{ 4444 int i; 4445 for (i = 0; i < 256; i++) 4446 if (XOR (islower (i), ISLOWER (i)) 4447 || toupper (i) != TOUPPER (i)) 4448 return 2; 4449 return 0; 4450} 4451_ACEOF 4452if ac_fn_c_try_run "$LINENO"; then : 4453 4454else 4455 ac_cv_header_stdc=no 4456fi 4457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4458 conftest.$ac_objext conftest.beam conftest.$ac_ext 4459fi 4460 4461fi 4462fi 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4464$as_echo "$ac_cv_header_stdc" >&6; } 4465if test $ac_cv_header_stdc = yes; then 4466 4467$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4468 4469fi 4470 4471# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4472for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4473 inttypes.h stdint.h unistd.h 4474do : 4475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4476ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4477" 4478if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4479 cat >>confdefs.h <<_ACEOF 4480#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4481_ACEOF 4482 4483fi 4484 4485done 4486 4487 4488 4489 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4490if test "x$ac_cv_header_minix_config_h" = xyes; then : 4491 MINIX=yes 4492else 4493 MINIX= 4494fi 4495 4496 4497 if test "$MINIX" = yes; then 4498 4499$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4500 4501 4502$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4503 4504 4505$as_echo "#define _MINIX 1" >>confdefs.h 4506 4507 fi 4508 4509 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4511$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4512if ${ac_cv_safe_to_define___extensions__+:} false; then : 4513 $as_echo_n "(cached) " >&6 4514else 4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4516/* end confdefs.h. */ 4517 4518# define __EXTENSIONS__ 1 4519 $ac_includes_default 4520int 4521main () 4522{ 4523 4524 ; 4525 return 0; 4526} 4527_ACEOF 4528if ac_fn_c_try_compile "$LINENO"; then : 4529 ac_cv_safe_to_define___extensions__=yes 4530else 4531 ac_cv_safe_to_define___extensions__=no 4532fi 4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4534fi 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4536$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4537 test $ac_cv_safe_to_define___extensions__ = yes && 4538 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4539 4540 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4541 4542 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4543 4544 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4545 4546 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4547 4548 4549 4550 4551if test $ac_cv_c_compiler_gnu = yes; then 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 4553$as_echo_n "checking whether $CC needs -traditional... " >&6; } 4554if ${ac_cv_prog_gcc_traditional+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 ac_pattern="Autoconf.*'x'" 4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4559/* end confdefs.h. */ 4560#include <sgtty.h> 4561Autoconf TIOCGETP 4562_ACEOF 4563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4564 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4565 ac_cv_prog_gcc_traditional=yes 4566else 4567 ac_cv_prog_gcc_traditional=no 4568fi 4569rm -f conftest* 4570 4571 4572 if test $ac_cv_prog_gcc_traditional = no; then 4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4574/* end confdefs.h. */ 4575#include <termio.h> 4576Autoconf TCGETA 4577_ACEOF 4578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4579 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4580 ac_cv_prog_gcc_traditional=yes 4581fi 4582rm -f conftest* 4583 4584 fi 4585fi 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 4587$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4588 if test $ac_cv_prog_gcc_traditional = yes; then 4589 CC="$CC -traditional" 4590 fi 4591fi 4592 4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5 4594$as_echo_n "checking whether we are using SUNPro C... " >&6; } 4595if ${ac_cv_prog_suncc+:} false; then : 4596 $as_echo_n "(cached) " >&6 4597else 4598 cat > conftest.c <<EOF 4599#ifdef __SUNPRO_C 4600 yes; 4601#endif 4602EOF 4603if { ac_try='${CC-cc} -E conftest.c' 4604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 4605 (eval $ac_try) 2>&5 4606 ac_status=$? 4607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4608 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then 4609 ac_cv_prog_suncc=yes 4610else 4611 ac_cv_prog_suncc=no 4612fi 4613fi 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5 4615$as_echo "$ac_cv_prog_suncc" >&6; } 4616if test -n "$ac_tool_prefix"; then 4617 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4618set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4620$as_echo_n "checking for $ac_word... " >&6; } 4621if ${ac_cv_prog_RANLIB+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 if test -n "$RANLIB"; then 4625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4626else 4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628for as_dir in $PATH 4629do 4630 IFS=$as_save_IFS 4631 test -z "$as_dir" && as_dir=. 4632 for ac_exec_ext in '' $ac_executable_extensions; do 4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4636 break 2 4637 fi 4638done 4639 done 4640IFS=$as_save_IFS 4641 4642fi 4643fi 4644RANLIB=$ac_cv_prog_RANLIB 4645if test -n "$RANLIB"; then 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4647$as_echo "$RANLIB" >&6; } 4648else 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4650$as_echo "no" >&6; } 4651fi 4652 4653 4654fi 4655if test -z "$ac_cv_prog_RANLIB"; then 4656 ac_ct_RANLIB=$RANLIB 4657 # Extract the first word of "ranlib", so it can be a program name with args. 4658set dummy ranlib; ac_word=$2 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4660$as_echo_n "checking for $ac_word... " >&6; } 4661if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 if test -n "$ac_ct_RANLIB"; then 4665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4666else 4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4668for as_dir in $PATH 4669do 4670 IFS=$as_save_IFS 4671 test -z "$as_dir" && as_dir=. 4672 for ac_exec_ext in '' $ac_executable_extensions; do 4673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4674 ac_cv_prog_ac_ct_RANLIB="ranlib" 4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4676 break 2 4677 fi 4678done 4679 done 4680IFS=$as_save_IFS 4681 4682fi 4683fi 4684ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4685if test -n "$ac_ct_RANLIB"; then 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4687$as_echo "$ac_ct_RANLIB" >&6; } 4688else 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4690$as_echo "no" >&6; } 4691fi 4692 4693 if test "x$ac_ct_RANLIB" = x; then 4694 RANLIB=":" 4695 else 4696 case $cross_compiling:$ac_tool_warned in 4697yes:) 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4700ac_tool_warned=yes ;; 4701esac 4702 RANLIB=$ac_ct_RANLIB 4703 fi 4704else 4705 RANLIB="$ac_cv_prog_RANLIB" 4706fi 4707 4708 4709 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 4711$as_echo_n "checking if compiler is clang... " >&6; } 4712if ${ax_cv_cc_clang+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 4716 4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4718/* end confdefs.h. */ 4719 4720int 4721main () 4722{ 4723 4724 #ifndef __clang__ 4725 not clang 4726 #endif 4727 4728 ; 4729 return 0; 4730} 4731_ACEOF 4732if ac_fn_c_try_compile "$LINENO"; then : 4733 ax_cv_cc_clang=yes 4734else 4735 ax_cv_cc_clang=no 4736fi 4737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4738 4739fi 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5 4741$as_echo "$ax_cv_cc_clang" >&6; } 4742 4743if test "x$ax_cv_cc_clang" = "xyes"; then 4744 clang_path="$CC" 4745 4746else 4747 clang_path="" 4748 4749fi 4750 4751 4752if test "x$GCC" = "xyes"; then 4753 CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE" 4754fi 4755 4756 4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wno-unknown-warning-option\"" >&5 4758$as_echo_n "checking for the compiler flag \"-Wno-unknown-warning-option\"... " >&6; } 4759if ${ax_cv_cc_no_unknown_warning_option_flag+:} false; then : 4760 $as_echo_n "(cached) " >&6 4761else 4762 4763 4764 CFLAGS_SAVED=$CFLAGS 4765 CFLAGS="-Werror -Wno-unknown-warning-option" 4766 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768/* end confdefs.h. */ 4769 4770int 4771main () 4772{ 4773 4774 /* 4775 * gcc will happily accept -Wno-unknown-warning-option 4776 * only emitting an error about it, if an error ocurrs in the source file. 4777 */ 4778 #if defined(__GNUC__) && !defined(__clang__) 4779 gcc sucks 4780 #endif 4781 4782 return 0; 4783 4784 ; 4785 return 0; 4786} 4787_ACEOF 4788if ac_fn_c_try_compile "$LINENO"; then : 4789 ax_cv_cc_no_unknown_warning_option_flag=yes 4790else 4791 ax_cv_cc_no_unknown_warning_option_flag=no 4792fi 4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4794 4795 CFLAGS="$CFLAGS_SAVED" 4796 4797fi 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_no_unknown_warning_option_flag" >&5 4799$as_echo "$ax_cv_cc_no_unknown_warning_option_flag" >&6; } 4800 4801if test "x$ax_cv_cc_no_unknown_warning_option_flag" = "xyes"; then 4802 CFLAGS="$CFLAGS -Wno-unknown-warning-option" 4803fi 4804 4805 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5 4807$as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; } 4808if ${ax_cv_cc_qunused_arguments_flag+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810else 4811 4812 4813 CFLAGS_SAVED=$CFLAGS 4814 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar" 4815 4816 ac_ext=c 4817ac_cpp='$CPP $CPPFLAGS' 4818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4820ac_compiler_gnu=$ac_cv_c_compiler_gnu 4821 4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4823/* end confdefs.h. */ 4824 4825int 4826main () 4827{ 4828return 0; 4829 ; 4830 return 0; 4831} 4832_ACEOF 4833if ac_fn_c_try_compile "$LINENO"; then : 4834 ax_cv_cc_qunused_arguments_flag="yes" 4835else 4836 ax_cv_cc_qunused_arguments_flag="no" 4837fi 4838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4839 ac_ext=c 4840ac_cpp='$CPP $CPPFLAGS' 4841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4843ac_compiler_gnu=$ac_cv_c_compiler_gnu 4844 4845 4846 CFLAGS="$CFLAGS_SAVED" 4847 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5 4850$as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; } 4851 4852if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then 4853 CFLAGS="$CFLAGS -Qunused-arguments" 4854 LDFLAGS="$LDFLAGS -Qunused-arguments" 4855fi 4856 4857 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wno-date-time\"" >&5 4859$as_echo_n "checking for the compiler flag \"-Wno-date-time\"... " >&6; } 4860if ${ax_cv_cc_no_date_time_flag+:} false; then : 4861 $as_echo_n "(cached) " >&6 4862else 4863 4864 4865 CFLAGS_SAVED=$CFLAGS 4866 CFLAGS="$CFLAGS -Werror -Wno-date-time" 4867 4868 ac_ext=c 4869ac_cpp='$CPP $CPPFLAGS' 4870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4872ac_compiler_gnu=$ac_cv_c_compiler_gnu 4873 4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4875/* end confdefs.h. */ 4876 4877int 4878main () 4879{ 4880return 0; 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885if ac_fn_c_try_compile "$LINENO"; then : 4886 ax_cv_cc_no_date_time_flag="yes" 4887else 4888 ax_cv_cc_no_date_time_flag="no" 4889fi 4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4891 ac_ext=c 4892ac_cpp='$CPP $CPPFLAGS' 4893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4895ac_compiler_gnu=$ac_cv_c_compiler_gnu 4896 4897 4898 CFLAGS="$CFLAGS_SAVED" 4899 4900fi 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_no_date_time_flag" >&5 4902$as_echo "$ax_cv_cc_no_date_time_flag" >&6; } 4903 4904 4905# Check whether --enable-largefile was given. 4906if test "${enable_largefile+set}" = set; then : 4907 enableval=$enable_largefile; 4908fi 4909 4910if test "$enable_largefile" != no; then 4911 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4913$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4914if ${ac_cv_sys_largefile_CC+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 ac_cv_sys_largefile_CC=no 4918 if test "$GCC" != yes; then 4919 ac_save_CC=$CC 4920 while :; do 4921 # IRIX 6.2 and later do not support large files by default, 4922 # so use the C compiler's -n32 option if that helps. 4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4924/* end confdefs.h. */ 4925#include <sys/types.h> 4926 /* Check that off_t can represent 2**63 - 1 correctly. 4927 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4928 since some C++ compilers masquerading as C compilers 4929 incorrectly reject 9223372036854775807. */ 4930#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4932 && LARGE_OFF_T % 2147483647 == 1) 4933 ? 1 : -1]; 4934int 4935main () 4936{ 4937 4938 ; 4939 return 0; 4940} 4941_ACEOF 4942 if ac_fn_c_try_compile "$LINENO"; then : 4943 break 4944fi 4945rm -f core conftest.err conftest.$ac_objext 4946 CC="$CC -n32" 4947 if ac_fn_c_try_compile "$LINENO"; then : 4948 ac_cv_sys_largefile_CC=' -n32'; break 4949fi 4950rm -f core conftest.err conftest.$ac_objext 4951 break 4952 done 4953 CC=$ac_save_CC 4954 rm -f conftest.$ac_ext 4955 fi 4956fi 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4958$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4959 if test "$ac_cv_sys_largefile_CC" != no; then 4960 CC=$CC$ac_cv_sys_largefile_CC 4961 fi 4962 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4964$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4965if ${ac_cv_sys_file_offset_bits+:} false; then : 4966 $as_echo_n "(cached) " >&6 4967else 4968 while :; do 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4970/* end confdefs.h. */ 4971#include <sys/types.h> 4972 /* Check that off_t can represent 2**63 - 1 correctly. 4973 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4974 since some C++ compilers masquerading as C compilers 4975 incorrectly reject 9223372036854775807. */ 4976#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4977 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4978 && LARGE_OFF_T % 2147483647 == 1) 4979 ? 1 : -1]; 4980int 4981main () 4982{ 4983 4984 ; 4985 return 0; 4986} 4987_ACEOF 4988if ac_fn_c_try_compile "$LINENO"; then : 4989 ac_cv_sys_file_offset_bits=no; break 4990fi 4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4993/* end confdefs.h. */ 4994#define _FILE_OFFSET_BITS 64 4995#include <sys/types.h> 4996 /* Check that off_t can represent 2**63 - 1 correctly. 4997 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4998 since some C++ compilers masquerading as C compilers 4999 incorrectly reject 9223372036854775807. */ 5000#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5002 && LARGE_OFF_T % 2147483647 == 1) 5003 ? 1 : -1]; 5004int 5005main () 5006{ 5007 5008 ; 5009 return 0; 5010} 5011_ACEOF 5012if ac_fn_c_try_compile "$LINENO"; then : 5013 ac_cv_sys_file_offset_bits=64; break 5014fi 5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5016 ac_cv_sys_file_offset_bits=unknown 5017 break 5018done 5019fi 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5021$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5022case $ac_cv_sys_file_offset_bits in #( 5023 no | unknown) ;; 5024 *) 5025cat >>confdefs.h <<_ACEOF 5026#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5027_ACEOF 5028;; 5029esac 5030rm -rf conftest* 5031 if test $ac_cv_sys_file_offset_bits = unknown; then 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5033$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5034if ${ac_cv_sys_large_files+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 while :; do 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5039/* end confdefs.h. */ 5040#include <sys/types.h> 5041 /* Check that off_t can represent 2**63 - 1 correctly. 5042 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5043 since some C++ compilers masquerading as C compilers 5044 incorrectly reject 9223372036854775807. */ 5045#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5047 && LARGE_OFF_T % 2147483647 == 1) 5048 ? 1 : -1]; 5049int 5050main () 5051{ 5052 5053 ; 5054 return 0; 5055} 5056_ACEOF 5057if ac_fn_c_try_compile "$LINENO"; then : 5058 ac_cv_sys_large_files=no; break 5059fi 5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5062/* end confdefs.h. */ 5063#define _LARGE_FILES 1 5064#include <sys/types.h> 5065 /* Check that off_t can represent 2**63 - 1 correctly. 5066 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5067 since some C++ compilers masquerading as C compilers 5068 incorrectly reject 9223372036854775807. */ 5069#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5071 && LARGE_OFF_T % 2147483647 == 1) 5072 ? 1 : -1]; 5073int 5074main () 5075{ 5076 5077 ; 5078 return 0; 5079} 5080_ACEOF 5081if ac_fn_c_try_compile "$LINENO"; then : 5082 ac_cv_sys_large_files=1; break 5083fi 5084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5085 ac_cv_sys_large_files=unknown 5086 break 5087done 5088fi 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5090$as_echo "$ac_cv_sys_large_files" >&6; } 5091case $ac_cv_sys_large_files in #( 5092 no | unknown) ;; 5093 *) 5094cat >>confdefs.h <<_ACEOF 5095#define _LARGE_FILES $ac_cv_sys_large_files 5096_ACEOF 5097;; 5098esac 5099rm -rf conftest* 5100 fi 5101 5102 5103fi 5104 5105 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5107$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5108if ${ac_cv_c_bigendian+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 ac_cv_c_bigendian=unknown 5112 # See if we're dealing with a universal compiler. 5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5114/* end confdefs.h. */ 5115#ifndef __APPLE_CC__ 5116 not a universal capable compiler 5117 #endif 5118 typedef int dummy; 5119 5120_ACEOF 5121if ac_fn_c_try_compile "$LINENO"; then : 5122 5123 # Check for potential -arch flags. It is not universal unless 5124 # there are at least two -arch flags with different values. 5125 ac_arch= 5126 ac_prev= 5127 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5128 if test -n "$ac_prev"; then 5129 case $ac_word in 5130 i?86 | x86_64 | ppc | ppc64) 5131 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5132 ac_arch=$ac_word 5133 else 5134 ac_cv_c_bigendian=universal 5135 break 5136 fi 5137 ;; 5138 esac 5139 ac_prev= 5140 elif test "x$ac_word" = "x-arch"; then 5141 ac_prev=arch 5142 fi 5143 done 5144fi 5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5146 if test $ac_cv_c_bigendian = unknown; then 5147 # See if sys/param.h defines the BYTE_ORDER macro. 5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5149/* end confdefs.h. */ 5150#include <sys/types.h> 5151 #include <sys/param.h> 5152 5153int 5154main () 5155{ 5156#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5157 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5158 && LITTLE_ENDIAN) 5159 bogus endian macros 5160 #endif 5161 5162 ; 5163 return 0; 5164} 5165_ACEOF 5166if ac_fn_c_try_compile "$LINENO"; then : 5167 # It does; now see whether it defined to BIG_ENDIAN or not. 5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170#include <sys/types.h> 5171 #include <sys/param.h> 5172 5173int 5174main () 5175{ 5176#if BYTE_ORDER != BIG_ENDIAN 5177 not big endian 5178 #endif 5179 5180 ; 5181 return 0; 5182} 5183_ACEOF 5184if ac_fn_c_try_compile "$LINENO"; then : 5185 ac_cv_c_bigendian=yes 5186else 5187 ac_cv_c_bigendian=no 5188fi 5189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5190fi 5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5192 fi 5193 if test $ac_cv_c_bigendian = unknown; then 5194 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197#include <limits.h> 5198 5199int 5200main () 5201{ 5202#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5203 bogus endian macros 5204 #endif 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210if ac_fn_c_try_compile "$LINENO"; then : 5211 # It does; now see whether it defined to _BIG_ENDIAN or not. 5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5213/* end confdefs.h. */ 5214#include <limits.h> 5215 5216int 5217main () 5218{ 5219#ifndef _BIG_ENDIAN 5220 not big endian 5221 #endif 5222 5223 ; 5224 return 0; 5225} 5226_ACEOF 5227if ac_fn_c_try_compile "$LINENO"; then : 5228 ac_cv_c_bigendian=yes 5229else 5230 ac_cv_c_bigendian=no 5231fi 5232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5233fi 5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5235 fi 5236 if test $ac_cv_c_bigendian = unknown; then 5237 # Compile a test program. 5238 if test "$cross_compiling" = yes; then : 5239 # Try to guess by grepping values from an object file. 5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5241/* end confdefs.h. */ 5242short int ascii_mm[] = 5243 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5244 short int ascii_ii[] = 5245 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5246 int use_ascii (int i) { 5247 return ascii_mm[i] + ascii_ii[i]; 5248 } 5249 short int ebcdic_ii[] = 5250 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5251 short int ebcdic_mm[] = 5252 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5253 int use_ebcdic (int i) { 5254 return ebcdic_mm[i] + ebcdic_ii[i]; 5255 } 5256 extern int foo; 5257 5258int 5259main () 5260{ 5261return use_ascii (foo) == use_ebcdic (foo); 5262 ; 5263 return 0; 5264} 5265_ACEOF 5266if ac_fn_c_try_compile "$LINENO"; then : 5267 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5268 ac_cv_c_bigendian=yes 5269 fi 5270 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5271 if test "$ac_cv_c_bigendian" = unknown; then 5272 ac_cv_c_bigendian=no 5273 else 5274 # finding both strings is unlikely to happen, but who knows? 5275 ac_cv_c_bigendian=unknown 5276 fi 5277 fi 5278fi 5279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5280else 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282/* end confdefs.h. */ 5283$ac_includes_default 5284int 5285main () 5286{ 5287 5288 /* Are we little or big endian? From Harbison&Steele. */ 5289 union 5290 { 5291 long int l; 5292 char c[sizeof (long int)]; 5293 } u; 5294 u.l = 1; 5295 return u.c[sizeof (long int) - 1] == 1; 5296 5297 ; 5298 return 0; 5299} 5300_ACEOF 5301if ac_fn_c_try_run "$LINENO"; then : 5302 ac_cv_c_bigendian=no 5303else 5304 ac_cv_c_bigendian=yes 5305fi 5306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5307 conftest.$ac_objext conftest.beam conftest.$ac_ext 5308fi 5309 5310 fi 5311fi 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5313$as_echo "$ac_cv_c_bigendian" >&6; } 5314 case $ac_cv_c_bigendian in #( 5315 yes) 5316 5317$as_echo "#define FR_BIG_ENDIAN 1" >>confdefs.h 5318;; #( 5319 no) 5320 5321$as_echo "#define FR_LITTLE_ENDIAN 1" >>confdefs.h 5322 5323 ;; #( 5324 universal) 5325 5326$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5327 5328 ;; #( 5329 *) 5330 as_fn_error $? "unknown endianness 5331 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5332 esac 5333 5334 5335# Extract the first word of "gmake", so it can be a program name with args. 5336set dummy gmake; ac_word=$2 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5338$as_echo_n "checking for $ac_word... " >&6; } 5339if ${ac_cv_prog_GMAKE+:} false; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 if test -n "$GMAKE"; then 5343 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test. 5344else 5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5346for as_dir in $PATH 5347do 5348 IFS=$as_save_IFS 5349 test -z "$as_dir" && as_dir=. 5350 for ac_exec_ext in '' $ac_executable_extensions; do 5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5352 ac_cv_prog_GMAKE="yes" 5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5354 break 2 5355 fi 5356done 5357 done 5358IFS=$as_save_IFS 5359 5360 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no" 5361fi 5362fi 5363GMAKE=$ac_cv_prog_GMAKE 5364if test -n "$GMAKE"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5 5366$as_echo "$GMAKE" >&6; } 5367else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369$as_echo "no" >&6; } 5370fi 5371 5372 5373if test $GMAKE = no; then 5374 # Extract the first word of "make", so it can be a program name with args. 5375set dummy make; ac_word=$2 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5377$as_echo_n "checking for $ac_word... " >&6; } 5378if ${ac_cv_path_MAKE+:} false; then : 5379 $as_echo_n "(cached) " >&6 5380else 5381 case $MAKE in 5382 [\\/]* | ?:[\\/]*) 5383 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 5384 ;; 5385 *) 5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387for as_dir in $PATH 5388do 5389 IFS=$as_save_IFS 5390 test -z "$as_dir" && as_dir=. 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5393 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397done 5398 done 5399IFS=$as_save_IFS 5400 5401 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make" 5402 ;; 5403esac 5404fi 5405MAKE=$ac_cv_path_MAKE 5406if test -n "$MAKE"; then 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 5408$as_echo "$MAKE" >&6; } 5409else 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5411$as_echo "no" >&6; } 5412fi 5413 5414 5415else 5416 # Extract the first word of "gmake", so it can be a program name with args. 5417set dummy gmake; ac_word=$2 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5419$as_echo_n "checking for $ac_word... " >&6; } 5420if ${ac_cv_path_MAKE+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 case $MAKE in 5424 [\\/]* | ?:[\\/]*) 5425 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 5426 ;; 5427 *) 5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5429for as_dir in $PATH 5430do 5431 IFS=$as_save_IFS 5432 test -z "$as_dir" && as_dir=. 5433 for ac_exec_ext in '' $ac_executable_extensions; do 5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5435 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5437 break 2 5438 fi 5439done 5440 done 5441IFS=$as_save_IFS 5442 5443 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make" 5444 ;; 5445esac 5446fi 5447MAKE=$ac_cv_path_MAKE 5448if test -n "$MAKE"; then 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 5450$as_echo "$MAKE" >&6; } 5451else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5453$as_echo "no" >&6; } 5454fi 5455 5456 5457fi 5458makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"` 5459if test -z "$makever"; then 5460 as_fn_error $? "GNU Make is not installed. Please download and install it from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5 5461fi 5462 5463 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5 5465$as_echo_n "checking number of system cores... " >&6; } 5466if ${ax_cv_system_cores+:} false; then : 5467 $as_echo_n "(cached) " >&6 5468else 5469 5470 ac_ext=c 5471ac_cpp='$CPP $CPPFLAGS' 5472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5474ac_compiler_gnu=$ac_cv_c_compiler_gnu 5475 5476 if test "$cross_compiling" = yes; then : 5477 ax_cv_system_cores= 5478 5479else 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482 5483 #include <stdio.h> 5484 #include <stdint.h> 5485 #ifdef _WIN32 5486 # include <windows.h> 5487 #elif MACOS 5488 # include <sys/param.h> 5489 # include <sys/sysctl.h> 5490 #else 5491 # include <unistd.h> 5492 #endif 5493 5494 int main (int argc, char *argv[]) 5495 { 5496 uint32_t count; 5497 5498 #ifdef WIN32 5499 SYSTEM_INFO sysinfo; 5500 GetSystemInfo(&sysinfo); 5501 5502 count = sysinfo.dwNumberOfProcessors; 5503 5504 #elif MACOS 5505 int nm[2]; 5506 size_t len = 4; 5507 5508 nm[0] = CTL_HW; 5509 nm[1] = HW_AVAILCPU; 5510 sysctl(nm, 2, &count, &len, NULL, 0); 5511 5512 if(count < 1) { 5513 nm[1] = HW_NCPU; 5514 sysctl(nm, 2, &count, &len, NULL, 0); 5515 if(count < 1) { 5516 count = 1; 5517 } 5518 } 5519 5520 #else 5521 count = sysconf(_SC_NPROCESSORS_ONLN); 5522 #endif 5523 5524 return count; 5525 } 5526 5527_ACEOF 5528if ac_fn_c_try_run "$LINENO"; then : 5529 ax_cv_system_cores=$? 5530else 5531 ax_cv_system_cores=$? 5532fi 5533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5534 conftest.$ac_objext conftest.beam conftest.$ac_ext 5535fi 5536 5537 ac_ext=c 5538ac_cpp='$CPP $CPPFLAGS' 5539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5541ac_compiler_gnu=$ac_cv_c_compiler_gnu 5542 5543 5544fi 5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5 5546$as_echo "$ax_cv_system_cores" >&6; } 5547 5548 5549 5550 5551# Extract the first word of "git", so it can be a program name with args. 5552set dummy git; ac_word=$2 5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5554$as_echo_n "checking for $ac_word... " >&6; } 5555if ${ac_cv_prog_GIT+:} false; then : 5556 $as_echo_n "(cached) " >&6 5557else 5558 if test -n "$GIT"; then 5559 ac_cv_prog_GIT="$GIT" # Let the user override the test. 5560else 5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5562for as_dir in $PATH 5563do 5564 IFS=$as_save_IFS 5565 test -z "$as_dir" && as_dir=. 5566 for ac_exec_ext in '' $ac_executable_extensions; do 5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5568 ac_cv_prog_GIT="yes" 5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5570 break 2 5571 fi 5572done 5573 done 5574IFS=$as_save_IFS 5575 5576 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no" 5577fi 5578fi 5579GIT=$ac_cv_prog_GIT 5580if test -n "$GIT"; then 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 5582$as_echo "$GIT" >&6; } 5583else 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5585$as_echo "no" >&6; } 5586fi 5587 5588 5589 5590 5591# Check whether --enable-strict-dependencies was given. 5592if test "${enable_strict_dependencies+set}" = set; then : 5593 enableval=$enable_strict_dependencies; 5594fi 5595 5596 5597# Check whether --enable-werror was given. 5598if test "${enable_werror+set}" = set; then : 5599 enableval=$enable_werror; case "$enableval" in 5600 no) 5601 werror=no 5602 ;; 5603 *) 5604 werror=yes 5605 esac 5606 5607fi 5608 5609 5610docdir='${datadir}/doc/freeradius' 5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5 5612$as_echo_n "checking docdir... " >&6; } 5613 5614# Check whether --with-docdir was given. 5615if test "${with_docdir+set}" = set; then : 5616 withval=$with_docdir; case "$withval" in 5617 no) 5618 docdir=no 5619 ;; 5620 yes) 5621 ;; 5622 [\\/$]* | ?:[\\/]* ) 5623 docdir="$withval" 5624 ;; 5625 *) 5626 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5 5627 ;; 5628 esac 5629 5630fi 5631 5632 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5 5634$as_echo "$docdir" >&6; } 5635if test "x$docdir" = xno; then 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5 5637$as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;} 5638fi 5639 5640logdir='${localstatedir}/log/radius' 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5 5642$as_echo_n "checking logdir... " >&6; } 5643 5644# Check whether --with-logdir was given. 5645if test "${with_logdir+set}" = set; then : 5646 withval=$with_logdir; case "$withval" in 5647 no) 5648 as_fn_error $? "Need logdir" "$LINENO" 5 5649 ;; 5650 yes) 5651 ;; 5652 [\\/$]* | ?:[\\/]* ) 5653 logdir="$withval" 5654 ;; 5655 *) 5656 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5 5657 ;; 5658 esac 5659 5660fi 5661 5662 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5 5664$as_echo "$logdir" >&6; } 5665 5666radacctdir='${logdir}/radacct' 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5 5668$as_echo_n "checking radacctdir... " >&6; } 5669 5670# Check whether --with-radacctdir was given. 5671if test "${with_radacctdir+set}" = set; then : 5672 withval=$with_radacctdir; case "$withval" in 5673 no) 5674 as_fn_error $? "Need radacctdir" "$LINENO" 5 5675 ;; 5676 yes) 5677 ;; 5678 [\\/$]* | ?:[\\/]* ) 5679 radacctdir="$withval" 5680 ;; 5681 *) 5682 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5 5683 ;; 5684 esac 5685 5686fi 5687 5688 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5 5690$as_echo "$radacctdir" >&6; } 5691 5692raddbdir='${sysconfdir}/raddb' 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5 5694$as_echo_n "checking raddbdir... " >&6; } 5695 5696# Check whether --with-raddbdir was given. 5697if test "${with_raddbdir+set}" = set; then : 5698 withval=$with_raddbdir; case "$withval" in 5699 no) 5700 as_fn_error $? "Need raddbdir" "$LINENO" 5 5701 ;; 5702 yes) 5703 ;; 5704 [\\/$]* | ?:[\\/]* ) 5705 raddbdir="$withval" 5706 ;; 5707 *) 5708 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5 5709 ;; 5710 esac 5711 5712fi 5713 5714 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5 5716$as_echo "$raddbdir" >&6; } 5717 5718dictdir='${datarootdir}/freeradius' 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5 5720$as_echo_n "checking dictdir... " >&6; } 5721 5722# Check whether --with-dictdir was given. 5723if test "${with_dictdir+set}" = set; then : 5724 withval=$with_dictdir; case "$withval" in 5725 no) 5726 as_fn_error $? "Need dictdir" "$LINENO" 5 5727 ;; 5728 yes) 5729 ;; 5730 [\\/$]* | ?:[\\/]* ) 5731 dictdir="$withval" 5732 ;; 5733 *) 5734 as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5 5735 ;; 5736 esac 5737 5738fi 5739 5740 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5 5742$as_echo "$dictdir" >&6; } 5743 5744modconfdir='${raddbdir}/mods-config' 5745 5746 5747WITH_ASCEND_BINARY=yes 5748 5749# Check whether --with-ascend-binary was given. 5750if test "${with_ascend_binary+set}" = set; then : 5751 withval=$with_ascend_binary; case "$withval" in 5752 yes) 5753 ;; 5754 *) 5755 WITH_ASCEND_BINARY=no 5756 esac 5757 5758fi 5759 5760if test "x$WITH_ASCEND_BINARY" = "xyes"; then 5761 5762$as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h 5763 5764fi 5765 5766WITH_THREADS=yes 5767 5768# Check whether --with-threads was given. 5769if test "${with_threads+set}" = set; then : 5770 withval=$with_threads; case "$withval" in 5771 yes) 5772 ;; 5773 *) 5774 WITH_THREADS=no 5775 esac 5776 5777fi 5778 5779 5780WITH_TCP=yes 5781 5782# Check whether --with-tcp was given. 5783if test "${with_tcp+set}" = set; then : 5784 withval=$with_tcp; case "$withval" in 5785 yes) 5786 ;; 5787 *) 5788 WITH_TCP=no 5789 esac 5790 5791fi 5792 5793if test "x$WITH_TCP" = "xyes"; then 5794 5795$as_echo "#define WITH_TCP 1" >>confdefs.h 5796 5797fi 5798 5799WITH_VMPS=yes 5800 5801# Check whether --with-vmps was given. 5802if test "${with_vmps+set}" = set; then : 5803 withval=$with_vmps; case "$withval" in 5804 yes) 5805 ;; 5806 *) 5807 WITH_VMPS=no 5808 esac 5809 5810fi 5811 5812if test "x$WITH_VMPS" = "xyes"; then 5813 5814$as_echo "#define WITH_VMPS 1" >>confdefs.h 5815 5816fi 5817 5818WITH_DHCP=yes 5819 5820# Check whether --with-dhcp was given. 5821if test "${with_dhcp+set}" = set; then : 5822 withval=$with_dhcp; case "$withval" in 5823 yes) 5824 ;; 5825 *) 5826 WITH_DHCP=no 5827 esac 5828 5829fi 5830 5831if test "x$WITH_DHCP" = "xyes"; then 5832 5833$as_echo "#define WITH_DHCP 1" >>confdefs.h 5834 5835fi 5836 5837 5838STATIC_MODULES= 5839 5840# Check whether --with-static_modules was given. 5841if test "${with_static_modules+set}" = set; then : 5842 withval=$with_static_modules; 5843 for i in $withval; do 5844 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la" 5845 done 5846 5847fi 5848 5849 5850USE_SHARED_LIBS=yes 5851 5852# Check whether --with-shared-libs was given. 5853if test "${with_shared_libs+set}" = set; then : 5854 withval=$with_shared_libs; case "$withval" in 5855 no) 5856 USE_SHARED_LIBS=no 5857 ;; 5858 *) 5859 esac 5860 5861fi 5862 5863 5864MODULES= 5865 5866# Check whether --with-modules was given. 5867if test "${with_modules+set}" = set; then : 5868 withval=$with_modules; 5869 for i in $withval; do 5870 MODULES="$MODULES $i" 5871 done 5872 5873fi 5874 5875 5876EXPERIMENTAL= 5877 5878# Check whether --with-experimental-modules was given. 5879if test "${with_experimental_modules+set}" = set; then : 5880 withval=$with_experimental_modules; case "$withval" in 5881 yes) 5882 EXPERIMENTAL=yes 5883 ;; 5884 no) 5885 EXPERIMENTAL=no 5886 ;; 5887 *) 5888 esac 5889 5890fi 5891 5892 5893WITH_UDPFROMTO=yes 5894 5895# Check whether --with-udpfromto was given. 5896if test "${with_udpfromto+set}" = set; then : 5897 withval=$with_udpfromto; case "$withval" in 5898 yes) 5899 WITH_UDPFROMTO=yes 5900 ;; 5901 *) 5902 WITH_UDPFROMTO=no 5903 esac 5904 5905fi 5906 5907 5908if test "x$WITH_UDPFROMTO" = "xyes"; then 5909 5910$as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h 5911 5912fi 5913 5914 5915 5916# Check whether --with-rlm-FOO-lib-dir was given. 5917if test "${with_rlm_FOO_lib_dir+set}" = set; then : 5918 withval=$with_rlm_FOO_lib_dir; case "$withval" in 5919 *) 5920 ;; 5921 esac 5922 5923fi 5924 5925 5926 5927# Check whether --with-rlm-FOO-include-dir was given. 5928if test "${with_rlm_FOO_include_dir+set}" = set; then : 5929 withval=$with_rlm_FOO_include_dir; case "$withval" in 5930 *) 5931 ;; 5932 esac 5933 5934fi 5935 5936 5937WITH_OPENSSL=yes 5938 5939# Check whether --with-openssl was given. 5940if test "${with_openssl+set}" = set; then : 5941 withval=$with_openssl; case "$withval" in 5942 no) 5943 WITH_OPENSSL=no 5944 ;; 5945 *) 5946 WITH_OPENSSL=yes 5947 ;; 5948 esac 5949 5950fi 5951 5952if test "x$WITH_THREADS" = "xno"; then 5953 if test "x$WITH_OPENSSL" = "xyes"; then 5954 as_fn_error $? "Threads are required when using OpenSSL, use --with-threads=yes" "$LINENO" 5 5955 fi 5956fi 5957 5958openssl_lib_dir= 5959 5960# Check whether --with-openssl-lib-dir was given. 5961if test "${with_openssl_lib_dir+set}" = set; then : 5962 withval=$with_openssl_lib_dir; case "$withval" in 5963 *) openssl_lib_dir="$withval" 5964 ;; 5965 esac 5966 5967fi 5968 5969 5970openssl_include_dir= 5971 5972# Check whether --with-openssl-include-dir was given. 5973if test "${with_openssl_include_dir+set}" = set; then : 5974 withval=$with_openssl_include_dir; case "$withval" in 5975 *) openssl_include_dir="$withval" 5976 ;; 5977 esac 5978 5979fi 5980 5981 5982# Check whether --enable-openssl-version-check was given. 5983if test "${enable_openssl_version_check+set}" = set; then : 5984 enableval=$enable_openssl_version_check; 5985fi 5986 5987if test "x$enable_openssl_version_check" != "xno"; then 5988 5989$as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h 5990 5991 openssl_version_check_config="\ 5992 # 5993 # allow_vulnerable_openssl: Allow the server to start with 5994 # versions of OpenSSL known to have critical vulnerabilities. 5995 # 5996 # This check is based on the version number reported by libssl 5997 # and may not reflect patches applied to libssl by 5998 # distribution maintainers. 5999 # 6000 allow_vulnerable_openssl = no" 6001else 6002 openssl_version_check_config= 6003fi 6004 6005 6006# Check whether --enable-reproducible-builds was given. 6007if test "${enable_reproducible_builds+set}" = set; then : 6008 enableval=$enable_reproducible_builds; case "$enableval" in 6009 yes) 6010 6011$as_echo "#define ENABLE_REPRODUCIBLE_BUILDS 1" >>confdefs.h 6012 6013 reproducible_builds=yes 6014 ;; 6015 *) 6016 reproducible_builds=no 6017 esac 6018 6019fi 6020 6021 6022# Check whether --enable-fuzzer was given. 6023if test "${enable_fuzzer+set}" = set; then : 6024 enableval=$enable_fuzzer; case "$enableval" in 6025 no) 6026 fuzzer=no 6027 ;; 6028 *) 6029 fuzzer=yes 6030 esac 6031 6032fi 6033 6034 6035# Check whether --enable-address-sanitizer was given. 6036if test "${enable_address_sanitizer+set}" = set; then : 6037 enableval=$enable_address_sanitizer; case "$enableval" in 6038 no) 6039 address_sanitizer=no 6040 ;; 6041 *) 6042 address_sanitizer=yes 6043 esac 6044 6045fi 6046 6047 6048# Check whether --enable-leak-sanitizer was given. 6049if test "${enable_leak_sanitizer+set}" = set; then : 6050 enableval=$enable_leak_sanitizer; case "$enableval" in 6051 no) 6052 leak_sanitizer=no 6053 ;; 6054 *) 6055 leak_sanitizer=yes 6056 esac 6057 6058fi 6059 6060 6061# Check whether --enable-thread-sanitizer was given. 6062if test "${enable_thread_sanitizer+set}" = set; then : 6063 enableval=$enable_thread_sanitizer; case "$enableval" in 6064 no) 6065 thread_sanitizer=no 6066 ;; 6067 *) 6068 thread_sanitizer=yes 6069 esac 6070 6071fi 6072 6073 6074# Check whether --enable-undefined-behaviour-sanitizer was given. 6075if test "${enable_undefined_behaviour_sanitizer+set}" = set; then : 6076 enableval=$enable_undefined_behaviour_sanitizer; case "$enableval" in 6077 no) 6078 undefined_behaviour_sanitizer=no 6079 ;; 6080 *) 6081 undefined_behaviour_sanitizer=yes 6082 esac 6083 6084fi 6085 6086 6087 6088CHECKRAD=checkrad 6089# Extract the first word of "perl", so it can be a program name with args. 6090set dummy perl; ac_word=$2 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6092$as_echo_n "checking for $ac_word... " >&6; } 6093if ${ac_cv_path_PERL+:} false; then : 6094 $as_echo_n "(cached) " >&6 6095else 6096 case $PERL in 6097 [\\/]* | ?:[\\/]*) 6098 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 6099 ;; 6100 *) 6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6102for as_dir in $PATH 6103do 6104 IFS=$as_save_IFS 6105 test -z "$as_dir" && as_dir=. 6106 for ac_exec_ext in '' $ac_executable_extensions; do 6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6108 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6110 break 2 6111 fi 6112done 6113 done 6114IFS=$as_save_IFS 6115 6116 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl" 6117 ;; 6118esac 6119fi 6120PERL=$ac_cv_path_PERL 6121if test -n "$PERL"; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 6123$as_echo "$PERL" >&6; } 6124else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128 6129 6130if test "x$ac_cv_path_PERL" = "x"; then 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5 6132$as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;} 6133fi 6134# Extract the first word of "snmpget", so it can be a program name with args. 6135set dummy snmpget; ac_word=$2 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6137$as_echo_n "checking for $ac_word... " >&6; } 6138if ${ac_cv_path_SNMPGET+:} false; then : 6139 $as_echo_n "(cached) " >&6 6140else 6141 case $SNMPGET in 6142 [\\/]* | ?:[\\/]*) 6143 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path. 6144 ;; 6145 *) 6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6147for as_dir in $PATH 6148do 6149 IFS=$as_save_IFS 6150 test -z "$as_dir" && as_dir=. 6151 for ac_exec_ext in '' $ac_executable_extensions; do 6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6153 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext" 6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6155 break 2 6156 fi 6157done 6158 done 6159IFS=$as_save_IFS 6160 6161 ;; 6162esac 6163fi 6164SNMPGET=$ac_cv_path_SNMPGET 6165if test -n "$SNMPGET"; then 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5 6167$as_echo "$SNMPGET" >&6; } 6168else 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6170$as_echo "no" >&6; } 6171fi 6172 6173 6174if test "x$ac_cv_path_SNMPGET" = "x"; then 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5 6176$as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;} 6177fi 6178 6179# Extract the first word of "snmpwalk", so it can be a program name with args. 6180set dummy snmpwalk; ac_word=$2 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6182$as_echo_n "checking for $ac_word... " >&6; } 6183if ${ac_cv_path_SNMPWALK+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185else 6186 case $SNMPWALK in 6187 [\\/]* | ?:[\\/]*) 6188 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path. 6189 ;; 6190 *) 6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6192for as_dir in $PATH 6193do 6194 IFS=$as_save_IFS 6195 test -z "$as_dir" && as_dir=. 6196 for ac_exec_ext in '' $ac_executable_extensions; do 6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6198 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext" 6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6200 break 2 6201 fi 6202done 6203 done 6204IFS=$as_save_IFS 6205 6206 ;; 6207esac 6208fi 6209SNMPWALK=$ac_cv_path_SNMPWALK 6210if test -n "$SNMPWALK"; then 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5 6212$as_echo "$SNMPWALK" >&6; } 6213else 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6215$as_echo "no" >&6; } 6216fi 6217 6218 6219if test "x$ac_cv_path_SNMPWALK" = "x"; then 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5 6221$as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;} 6222fi 6223 6224# Extract the first word of "rusers", so it can be a program name with args. 6225set dummy rusers; ac_word=$2 6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6227$as_echo_n "checking for $ac_word... " >&6; } 6228if ${ac_cv_path_RUSERS+:} false; then : 6229 $as_echo_n "(cached) " >&6 6230else 6231 case $RUSERS in 6232 [\\/]* | ?:[\\/]*) 6233 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path. 6234 ;; 6235 *) 6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6237for as_dir in $PATH 6238do 6239 IFS=$as_save_IFS 6240 test -z "$as_dir" && as_dir=. 6241 for ac_exec_ext in '' $ac_executable_extensions; do 6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6243 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext" 6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6245 break 2 6246 fi 6247done 6248 done 6249IFS=$as_save_IFS 6250 6251 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers" 6252 ;; 6253esac 6254fi 6255RUSERS=$ac_cv_path_RUSERS 6256if test -n "$RUSERS"; then 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5 6258$as_echo "$RUSERS" >&6; } 6259else 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6261$as_echo "no" >&6; } 6262fi 6263 6264 6265 6266missing_dir=`cd $ac_aux_dir && pwd` 6267# Expand $ac_aux_dir to an absolute path. 6268am_aux_dir=`cd "$ac_aux_dir" && pwd` 6269 6270if test x"${MISSING+set}" != xset; then 6271 case $am_aux_dir in 6272 *\ * | *\ *) 6273 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 6274 *) 6275 MISSING="\${SHELL} $am_aux_dir/missing" ;; 6276 esac 6277fi 6278# Use eval to expand $SHELL 6279if eval "$MISSING --is-lightweight"; then 6280 am_missing_run="$MISSING " 6281else 6282 am_missing_run= 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 6284$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 6285fi 6286 6287 6288ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 6289 6290 6291AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 6292 6293 6294AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 6295 6296 6297# Extract the first word of "locate", so it can be a program name with args. 6298set dummy locate; ac_word=$2 6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6300$as_echo_n "checking for $ac_word... " >&6; } 6301if ${ac_cv_path_LOCATE+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 case $LOCATE in 6305 [\\/]* | ?:[\\/]*) 6306 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path. 6307 ;; 6308 *) 6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6310for as_dir in $PATH 6311do 6312 IFS=$as_save_IFS 6313 test -z "$as_dir" && as_dir=. 6314 for ac_exec_ext in '' $ac_executable_extensions; do 6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6316 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext" 6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6318 break 2 6319 fi 6320done 6321 done 6322IFS=$as_save_IFS 6323 6324 ;; 6325esac 6326fi 6327LOCATE=$ac_cv_path_LOCATE 6328if test -n "$LOCATE"; then 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5 6330$as_echo "$LOCATE" >&6; } 6331else 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6333$as_echo "no" >&6; } 6334fi 6335 6336 6337# Extract the first word of "dirname", so it can be a program name with args. 6338set dummy dirname; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if ${ac_cv_path_DIRNAME+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 case $DIRNAME in 6345 [\\/]* | ?:[\\/]*) 6346 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6347 ;; 6348 *) 6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6350for as_dir in $PATH 6351do 6352 IFS=$as_save_IFS 6353 test -z "$as_dir" && as_dir=. 6354 for ac_exec_ext in '' $ac_executable_extensions; do 6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6356 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6358 break 2 6359 fi 6360done 6361 done 6362IFS=$as_save_IFS 6363 6364 ;; 6365esac 6366fi 6367DIRNAME=$ac_cv_path_DIRNAME 6368if test -n "$DIRNAME"; then 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6370$as_echo "$DIRNAME" >&6; } 6371else 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6373$as_echo "no" >&6; } 6374fi 6375 6376 6377# Extract the first word of "grep", so it can be a program name with args. 6378set dummy grep; ac_word=$2 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380$as_echo_n "checking for $ac_word... " >&6; } 6381if ${ac_cv_path_GREP+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 case $GREP in 6385 [\\/]* | ?:[\\/]*) 6386 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6387 ;; 6388 *) 6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390for as_dir in $PATH 6391do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6396 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400done 6401 done 6402IFS=$as_save_IFS 6403 6404 ;; 6405esac 6406fi 6407GREP=$ac_cv_path_GREP 6408if test -n "$GREP"; then 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 6410$as_echo "$GREP" >&6; } 6411else 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6413$as_echo "no" >&6; } 6414fi 6415 6416 6417 6418 6419talloc_lib_dir= 6420 6421# Check whether --with-talloc-lib-dir was given. 6422if test "${with_talloc_lib_dir+set}" = set; then : 6423 withval=$with_talloc_lib_dir; case "$withval" in 6424 no) 6425 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5 6426 ;; 6427 yes) 6428 ;; 6429 *) 6430 talloc_lib_dir="$withval" 6431 ;; 6432 esac 6433fi 6434 6435 6436talloc_include_dir= 6437 6438# Check whether --with-talloc-include-dir was given. 6439if test "${with_talloc_include_dir+set}" = set; then : 6440 withval=$with_talloc_include_dir; case "$withval" in 6441 no) 6442 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5 6443 ;; 6444 yes) 6445 ;; 6446 *) 6447 talloc_include_dir="$withval" 6448 ;; 6449 esac 6450fi 6451 6452 6453smart_try_dir="$talloc_lib_dir" 6454 6455 6456sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'` 6457sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'` 6458 6459old_LIBS="$LIBS" 6460old_CPPFLAGS="$CPPFLAGS" 6461smart_lib= 6462smart_ldflags= 6463smart_lib_dir= 6464 6465if test "x$smart_try_dir" != "x"; then 6466 for try in $smart_try_dir; do 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5 6468$as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; } 6469 LIBS="-ltalloc $old_LIBS" 6470 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472/* end confdefs.h. */ 6473extern char _talloc(); 6474int 6475main () 6476{ 6477_talloc() 6478 ; 6479 return 0; 6480} 6481_ACEOF 6482if ac_fn_c_try_link "$LINENO"; then : 6483 6484 smart_lib="-ltalloc" 6485 smart_ldflags="-L$try -Wl,-rpath,$try" 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6487$as_echo "yes" >&6; } 6488 break 6489 6490else 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492$as_echo "no" >&6; } 6493fi 6494rm -f core conftest.err conftest.$ac_objext \ 6495 conftest$ac_exeext conftest.$ac_ext 6496 done 6497 LIBS="$old_LIBS" 6498 CPPFLAGS="$old_CPPFLAGS" 6499fi 6500 6501if test "x$smart_lib" = "x"; then 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5 6503$as_echo_n "checking for _talloc in -ltalloc... " >&6; } 6504 LIBS="-ltalloc $old_LIBS" 6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6506/* end confdefs.h. */ 6507extern char _talloc(); 6508int 6509main () 6510{ 6511_talloc() 6512 ; 6513 return 0; 6514} 6515_ACEOF 6516if ac_fn_c_try_link "$LINENO"; then : 6517 6518 smart_lib="-ltalloc" 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6520$as_echo "yes" >&6; } 6521 6522else 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6524$as_echo "no" >&6; } 6525fi 6526rm -f core conftest.err conftest.$ac_objext \ 6527 conftest$ac_exeext conftest.$ac_ext 6528 LIBS="$old_LIBS" 6529fi 6530 6531if test "x$smart_lib" = "x"; then 6532 6533 6534if test "x$LOCATE" != "x"; then 6535 DIRS= 6536 file=libtalloc${libltdl_cv_shlibext} 6537 6538 for x in `${LOCATE} $file 2>/dev/null`; do 6539 base=`echo $x | sed "s%/${file}%%"` 6540 if test "x$x" = "x$base"; then 6541 continue; 6542 fi 6543 6544 dir=`${DIRNAME} $x 2>/dev/null` 6545 exclude=`echo ${dir} | ${GREP} /home` 6546 if test "x$exclude" != "x"; then 6547 continue 6548 fi 6549 6550 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 6551 if test "x$already" = "x"; then 6552 DIRS="$DIRS $dir" 6553 fi 6554 done 6555fi 6556 6557eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 6558 6559 6560 6561if test "x$LOCATE" != "x"; then 6562 DIRS= 6563 file=libtalloc.a 6564 6565 for x in `${LOCATE} $file 2>/dev/null`; do 6566 base=`echo $x | sed "s%/${file}%%"` 6567 if test "x$x" = "x$base"; then 6568 continue; 6569 fi 6570 6571 dir=`${DIRNAME} $x 2>/dev/null` 6572 exclude=`echo ${dir} | ${GREP} /home` 6573 if test "x$exclude" != "x"; then 6574 continue 6575 fi 6576 6577 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 6578 if test "x$already" = "x"; then 6579 DIRS="$DIRS $dir" 6580 fi 6581 done 6582fi 6583 6584eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 6585 6586 6587 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5 6589$as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; } 6590 LIBS="-ltalloc $old_LIBS" 6591 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593/* end confdefs.h. */ 6594extern char _talloc(); 6595int 6596main () 6597{ 6598_talloc() 6599 ; 6600 return 0; 6601} 6602_ACEOF 6603if ac_fn_c_try_link "$LINENO"; then : 6604 6605 smart_lib="-ltalloc" 6606 smart_ldflags="-L$try -Wl,-rpath,$try" 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6608$as_echo "yes" >&6; } 6609 break 6610 6611else 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6613$as_echo "no" >&6; } 6614fi 6615rm -f core conftest.err conftest.$ac_objext \ 6616 conftest$ac_exeext conftest.$ac_ext 6617 done 6618 LIBS="$old_LIBS" 6619 CPPFLAGS="$old_CPPFLAGS" 6620fi 6621 6622if test "x$smart_lib" != "x"; then 6623 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 6624 LIBS="$smart_ldflags $smart_lib $old_LIBS" 6625 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 6626fi 6627 6628if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5 6630$as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;} 6631 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5 6632fi 6633 6634TALLOC_LIBS="${smart_lib}" 6635TALLOC_LDFLAGS="${smart_ldflags}" 6636 6637 6638LIBS="$old_LIBS" 6639 6640old_CFLAGS=$CFLAGS 6641if test "x$WITH_THREADS" = "xyes"; then 6642 if test $ac_cv_prog_suncc = "yes"; then 6643 CFLAGS="$CFLAGS -mt" 6644 fi 6645 6646 for ac_header in pthread.h 6647do : 6648 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 6649if test "x$ac_cv_header_pthread_h" = xyes; then : 6650 cat >>confdefs.h <<_ACEOF 6651#define HAVE_PTHREAD_H 1 6652_ACEOF 6653 6654else 6655 6656 WITH_THREADS="no" 6657 fail=pthread.h 6658 6659fi 6660 6661done 6662 6663 6664 if test "x$WITH_THREADS" != "xno"; then 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 6666$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 6667if ${ac_cv_lib_pthread_pthread_create+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 ac_check_lib_save_LIBS=$LIBS 6671LIBS="-lpthread $LIBS" 6672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673/* end confdefs.h. */ 6674 6675/* Override any GCC internal prototype to avoid an error. 6676 Use char because int might match the return type of a GCC 6677 builtin and then its argument prototype would still apply. */ 6678#ifdef __cplusplus 6679extern "C" 6680#endif 6681char pthread_create (); 6682int 6683main () 6684{ 6685return pthread_create (); 6686 ; 6687 return 0; 6688} 6689_ACEOF 6690if ac_fn_c_try_link "$LINENO"; then : 6691 ac_cv_lib_pthread_pthread_create=yes 6692else 6693 ac_cv_lib_pthread_pthread_create=no 6694fi 6695rm -f core conftest.err conftest.$ac_objext \ 6696 conftest$ac_exeext conftest.$ac_ext 6697LIBS=$ac_check_lib_save_LIBS 6698fi 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 6700$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 6701if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 6702 6703 HAVE_LPTHREAD='yes' 6704 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" 6705 LIBS="-lpthread $LIBS" 6706 6707 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5 6709$as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; } 6710if ${ax_cv_cc_pthread_flag+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 6714 6715 CFLAGS_SAVED=$CFLAGS 6716 CFLAGS="$CFLAGS -Werror -pthread" 6717 6718 ac_ext=c 6719ac_cpp='$CPP $CPPFLAGS' 6720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6722ac_compiler_gnu=$ac_cv_c_compiler_gnu 6723 6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725/* end confdefs.h. */ 6726 6727int 6728main () 6729{ 6730return 0; 6731 ; 6732 return 0; 6733} 6734_ACEOF 6735if ac_fn_c_try_compile "$LINENO"; then : 6736 ax_cv_cc_pthread_flag="yes" 6737else 6738 ax_cv_cc_pthread_flag="no" 6739fi 6740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6741 ac_ext=c 6742ac_cpp='$CPP $CPPFLAGS' 6743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6745ac_compiler_gnu=$ac_cv_c_compiler_gnu 6746 6747 6748 CFLAGS="$CFLAGS_SAVED" 6749 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5 6752$as_echo "$ax_cv_cc_pthread_flag" >&6; } 6753 6754 if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then 6755 CFLAGS="$CFLAGS -pthread" 6756 fi 6757 6758 6759fi 6760 6761 6762 if test "x$HAVE_LPTHREAD" != "xyes"; then 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 6764$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 6765if ${ac_cv_lib_c_r_pthread_create+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 ac_check_lib_save_LIBS=$LIBS 6769LIBS="-lc_r $LIBS" 6770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6771/* end confdefs.h. */ 6772 6773/* Override any GCC internal prototype to avoid an error. 6774 Use char because int might match the return type of a GCC 6775 builtin and then its argument prototype would still apply. */ 6776#ifdef __cplusplus 6777extern "C" 6778#endif 6779char pthread_create (); 6780int 6781main () 6782{ 6783return pthread_create (); 6784 ; 6785 return 0; 6786} 6787_ACEOF 6788if ac_fn_c_try_link "$LINENO"; then : 6789 ac_cv_lib_c_r_pthread_create=yes 6790else 6791 ac_cv_lib_c_r_pthread_create=no 6792fi 6793rm -f core conftest.err conftest.$ac_objext \ 6794 conftest$ac_exeext conftest.$ac_ext 6795LIBS=$ac_check_lib_save_LIBS 6796fi 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 6798$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 6799if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 6800 6801 CFLAGS="$CFLAGS -D_THREAD_SAFE" 6802 6803 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5 6805$as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; } 6806if ${ax_cv_cc_pthread_flag+:} false; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 6810 6811 CFLAGS_SAVED=$CFLAGS 6812 CFLAGS="$CFLAGS -Werror -pthread" 6813 6814 ac_ext=c 6815ac_cpp='$CPP $CPPFLAGS' 6816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6818ac_compiler_gnu=$ac_cv_c_compiler_gnu 6819 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821/* end confdefs.h. */ 6822 6823int 6824main () 6825{ 6826return 0; 6827 ; 6828 return 0; 6829} 6830_ACEOF 6831if ac_fn_c_try_compile "$LINENO"; then : 6832 ax_cv_cc_pthread_flag="yes" 6833else 6834 ax_cv_cc_pthread_flag="no" 6835fi 6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6837 ac_ext=c 6838ac_cpp='$CPP $CPPFLAGS' 6839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6841ac_compiler_gnu=$ac_cv_c_compiler_gnu 6842 6843 6844 CFLAGS="$CFLAGS_SAVED" 6845 6846fi 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5 6848$as_echo "$ax_cv_cc_pthread_flag" >&6; } 6849 6850 if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then 6851 LIBS="-lc_r $LIBS" 6852 else 6853 CFLAGS="$CFLAGS -pthread" 6854 fi 6855 6856else 6857 fail=-lc_r or -lpthread 6858 6859fi 6860 6861 fi 6862 fi 6863 6864 if test "x$WITH_THREADS" != "xyes"; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5 6866$as_echo "$as_me: WARNING: silently not building with thread support." >&2;} 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5 6868$as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;} 6869 else 6870 6871$as_echo "#define WITH_THREADS 1" >>confdefs.h 6872 6873 fi 6874fi 6875 6876if test "x$WITH_THREADS" != "xyes"; then 6877 CFLAGS=$old_CFLAGS 6878 ac_cv_header_pthread_h="no" 6879 WITH_THREADS=no 6880else 6881 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 6883$as_echo_n "checking for library containing sem_init... " >&6; } 6884if ${ac_cv_search_sem_init+:} false; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 ac_func_search_save_LIBS=$LIBS 6888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889/* end confdefs.h. */ 6890 6891/* Override any GCC internal prototype to avoid an error. 6892 Use char because int might match the return type of a GCC 6893 builtin and then its argument prototype would still apply. */ 6894#ifdef __cplusplus 6895extern "C" 6896#endif 6897char sem_init (); 6898int 6899main () 6900{ 6901return sem_init (); 6902 ; 6903 return 0; 6904} 6905_ACEOF 6906for ac_lib in '' pthread sem posix4 rt semaphore; do 6907 if test -z "$ac_lib"; then 6908 ac_res="none required" 6909 else 6910 ac_res=-l$ac_lib 6911 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6912 fi 6913 if ac_fn_c_try_link "$LINENO"; then : 6914 ac_cv_search_sem_init=$ac_res 6915fi 6916rm -f core conftest.err conftest.$ac_objext \ 6917 conftest$ac_exeext 6918 if ${ac_cv_search_sem_init+:} false; then : 6919 break 6920fi 6921done 6922if ${ac_cv_search_sem_init+:} false; then : 6923 6924else 6925 ac_cv_search_sem_init=no 6926fi 6927rm conftest.$ac_ext 6928LIBS=$ac_func_search_save_LIBS 6929fi 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 6931$as_echo "$ac_cv_search_sem_init" >&6; } 6932ac_res=$ac_cv_search_sem_init 6933if test "$ac_res" != no; then : 6934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6935 6936else 6937 as_fn_error $? "-lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" "$LINENO" 5 6938 6939fi 6940 6941fi 6942 6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6944$as_echo_n "checking for dlopen in -ldl... " >&6; } 6945if ${ac_cv_lib_dl_dlopen+:} false; then : 6946 $as_echo_n "(cached) " >&6 6947else 6948 ac_check_lib_save_LIBS=$LIBS 6949LIBS="-ldl $LIBS" 6950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952 6953/* Override any GCC internal prototype to avoid an error. 6954 Use char because int might match the return type of a GCC 6955 builtin and then its argument prototype would still apply. */ 6956#ifdef __cplusplus 6957extern "C" 6958#endif 6959char dlopen (); 6960int 6961main () 6962{ 6963return dlopen (); 6964 ; 6965 return 0; 6966} 6967_ACEOF 6968if ac_fn_c_try_link "$LINENO"; then : 6969 ac_cv_lib_dl_dlopen=yes 6970else 6971 ac_cv_lib_dl_dlopen=no 6972fi 6973rm -f core conftest.err conftest.$ac_objext \ 6974 conftest$ac_exeext conftest.$ac_ext 6975LIBS=$ac_check_lib_save_LIBS 6976fi 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6978$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6979if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6980 cat >>confdefs.h <<_ACEOF 6981#define HAVE_LIBDL 1 6982_ACEOF 6983 6984 LIBS="-ldl $LIBS" 6985 6986fi 6987 6988 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5 6990$as_echo_n "checking for getsockname in -lsocket... " >&6; } 6991if ${ac_cv_lib_socket_getsockname+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 ac_check_lib_save_LIBS=$LIBS 6995LIBS="-lsocket $LIBS" 6996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6997/* end confdefs.h. */ 6998 6999/* Override any GCC internal prototype to avoid an error. 7000 Use char because int might match the return type of a GCC 7001 builtin and then its argument prototype would still apply. */ 7002#ifdef __cplusplus 7003extern "C" 7004#endif 7005char getsockname (); 7006int 7007main () 7008{ 7009return getsockname (); 7010 ; 7011 return 0; 7012} 7013_ACEOF 7014if ac_fn_c_try_link "$LINENO"; then : 7015 ac_cv_lib_socket_getsockname=yes 7016else 7017 ac_cv_lib_socket_getsockname=no 7018fi 7019rm -f core conftest.err conftest.$ac_objext \ 7020 conftest$ac_exeext conftest.$ac_ext 7021LIBS=$ac_check_lib_save_LIBS 7022fi 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5 7024$as_echo "$ac_cv_lib_socket_getsockname" >&6; } 7025if test "x$ac_cv_lib_socket_getsockname" = xyes; then : 7026 cat >>confdefs.h <<_ACEOF 7027#define HAVE_LIBSOCKET 1 7028_ACEOF 7029 7030 LIBS="-lsocket $LIBS" 7031 7032fi 7033 7034 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 7036$as_echo_n "checking for inet_aton in -lresolv... " >&6; } 7037if ${ac_cv_lib_resolv_inet_aton+:} false; then : 7038 $as_echo_n "(cached) " >&6 7039else 7040 ac_check_lib_save_LIBS=$LIBS 7041LIBS="-lresolv $LIBS" 7042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7043/* end confdefs.h. */ 7044 7045/* Override any GCC internal prototype to avoid an error. 7046 Use char because int might match the return type of a GCC 7047 builtin and then its argument prototype would still apply. */ 7048#ifdef __cplusplus 7049extern "C" 7050#endif 7051char inet_aton (); 7052int 7053main () 7054{ 7055return inet_aton (); 7056 ; 7057 return 0; 7058} 7059_ACEOF 7060if ac_fn_c_try_link "$LINENO"; then : 7061 ac_cv_lib_resolv_inet_aton=yes 7062else 7063 ac_cv_lib_resolv_inet_aton=no 7064fi 7065rm -f core conftest.err conftest.$ac_objext \ 7066 conftest$ac_exeext conftest.$ac_ext 7067LIBS=$ac_check_lib_save_LIBS 7068fi 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 7070$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 7071if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : 7072 cat >>confdefs.h <<_ACEOF 7073#define HAVE_LIBRESOLV 1 7074_ACEOF 7075 7076 LIBS="-lresolv $LIBS" 7077 7078fi 7079 7080 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5 7082$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; } 7083if ${ac_cv_lib_nsl_inet_ntoa+:} false; then : 7084 $as_echo_n "(cached) " >&6 7085else 7086 ac_check_lib_save_LIBS=$LIBS 7087LIBS="-lnsl $LIBS" 7088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7089/* end confdefs.h. */ 7090 7091/* Override any GCC internal prototype to avoid an error. 7092 Use char because int might match the return type of a GCC 7093 builtin and then its argument prototype would still apply. */ 7094#ifdef __cplusplus 7095extern "C" 7096#endif 7097char inet_ntoa (); 7098int 7099main () 7100{ 7101return inet_ntoa (); 7102 ; 7103 return 0; 7104} 7105_ACEOF 7106if ac_fn_c_try_link "$LINENO"; then : 7107 ac_cv_lib_nsl_inet_ntoa=yes 7108else 7109 ac_cv_lib_nsl_inet_ntoa=no 7110fi 7111rm -f core conftest.err conftest.$ac_objext \ 7112 conftest$ac_exeext conftest.$ac_ext 7113LIBS=$ac_check_lib_save_LIBS 7114fi 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5 7116$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; } 7117if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then : 7118 cat >>confdefs.h <<_ACEOF 7119#define HAVE_LIBNSL 1 7120_ACEOF 7121 7122 LIBS="-lnsl $LIBS" 7123 7124fi 7125 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5 7127$as_echo_n "checking for htonl in -lws2_32... " >&6; } 7128if ${ac_cv_lib_ws2_32_htonl+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 ac_check_lib_save_LIBS=$LIBS 7132LIBS="-lws2_32 $LIBS" 7133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134/* end confdefs.h. */ 7135 7136/* Override any GCC internal prototype to avoid an error. 7137 Use char because int might match the return type of a GCC 7138 builtin and then its argument prototype would still apply. */ 7139#ifdef __cplusplus 7140extern "C" 7141#endif 7142char htonl (); 7143int 7144main () 7145{ 7146return htonl (); 7147 ; 7148 return 0; 7149} 7150_ACEOF 7151if ac_fn_c_try_link "$LINENO"; then : 7152 ac_cv_lib_ws2_32_htonl=yes 7153else 7154 ac_cv_lib_ws2_32_htonl=no 7155fi 7156rm -f core conftest.err conftest.$ac_objext \ 7157 conftest$ac_exeext conftest.$ac_ext 7158LIBS=$ac_check_lib_save_LIBS 7159fi 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5 7161$as_echo "$ac_cv_lib_ws2_32_htonl" >&6; } 7162if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then : 7163 cat >>confdefs.h <<_ACEOF 7164#define HAVE_LIBWS2_32 1 7165_ACEOF 7166 7167 LIBS="-lws2_32 $LIBS" 7168 7169fi 7170 7171 7172pcap_lib_dir= 7173 7174# Check whether --with-pcap-lib-dir was given. 7175if test "${with_pcap_lib_dir+set}" = set; then : 7176 withval=$with_pcap_lib_dir; case "$withval" in 7177 no) 7178 as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5 7179 ;; 7180 yes) 7181 ;; 7182 *) 7183 pcap_lib_dir="$withval" 7184 ;; 7185 esac 7186fi 7187 7188 7189pcap_include_dir= 7190 7191# Check whether --with-pcap-include-dir was given. 7192if test "${with_pcap_include_dir+set}" = set; then : 7193 withval=$with_pcap_include_dir; case "$withval" in 7194 no) 7195 as_fn_error $? "Need pcap-include-dir" "$LINENO" 5 7196 ;; 7197 yes) 7198 ;; 7199 *) 7200 pcap_include_dir="$withval" 7201 ;; 7202 esac 7203fi 7204 7205 7206smart_try_dir="$pcap_lib_dir" 7207 7208 7209sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'` 7210sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'` 7211 7212old_LIBS="$LIBS" 7213old_CPPFLAGS="$CPPFLAGS" 7214smart_lib= 7215smart_ldflags= 7216smart_lib_dir= 7217 7218if test "x$smart_try_dir" != "x"; then 7219 for try in $smart_try_dir; do 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5 7221$as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; } 7222 LIBS="-lpcap $old_LIBS" 7223 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225/* end confdefs.h. */ 7226extern char pcap_open_live(); 7227int 7228main () 7229{ 7230pcap_open_live() 7231 ; 7232 return 0; 7233} 7234_ACEOF 7235if ac_fn_c_try_link "$LINENO"; then : 7236 7237 smart_lib="-lpcap" 7238 smart_ldflags="-L$try -Wl,-rpath,$try" 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7240$as_echo "yes" >&6; } 7241 break 7242 7243else 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7245$as_echo "no" >&6; } 7246fi 7247rm -f core conftest.err conftest.$ac_objext \ 7248 conftest$ac_exeext conftest.$ac_ext 7249 done 7250 LIBS="$old_LIBS" 7251 CPPFLAGS="$old_CPPFLAGS" 7252fi 7253 7254if test "x$smart_lib" = "x"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5 7256$as_echo_n "checking for pcap_open_live in -lpcap... " >&6; } 7257 LIBS="-lpcap $old_LIBS" 7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7259/* end confdefs.h. */ 7260extern char pcap_open_live(); 7261int 7262main () 7263{ 7264pcap_open_live() 7265 ; 7266 return 0; 7267} 7268_ACEOF 7269if ac_fn_c_try_link "$LINENO"; then : 7270 7271 smart_lib="-lpcap" 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7273$as_echo "yes" >&6; } 7274 7275else 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277$as_echo "no" >&6; } 7278fi 7279rm -f core conftest.err conftest.$ac_objext \ 7280 conftest$ac_exeext conftest.$ac_ext 7281 LIBS="$old_LIBS" 7282fi 7283 7284if test "x$smart_lib" = "x"; then 7285 7286 7287if test "x$LOCATE" != "x"; then 7288 DIRS= 7289 file=libpcap${libltdl_cv_shlibext} 7290 7291 for x in `${LOCATE} $file 2>/dev/null`; do 7292 base=`echo $x | sed "s%/${file}%%"` 7293 if test "x$x" = "x$base"; then 7294 continue; 7295 fi 7296 7297 dir=`${DIRNAME} $x 2>/dev/null` 7298 exclude=`echo ${dir} | ${GREP} /home` 7299 if test "x$exclude" != "x"; then 7300 continue 7301 fi 7302 7303 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 7304 if test "x$already" = "x"; then 7305 DIRS="$DIRS $dir" 7306 fi 7307 done 7308fi 7309 7310eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 7311 7312 7313 7314if test "x$LOCATE" != "x"; then 7315 DIRS= 7316 file=libpcap.a 7317 7318 for x in `${LOCATE} $file 2>/dev/null`; do 7319 base=`echo $x | sed "s%/${file}%%"` 7320 if test "x$x" = "x$base"; then 7321 continue; 7322 fi 7323 7324 dir=`${DIRNAME} $x 2>/dev/null` 7325 exclude=`echo ${dir} | ${GREP} /home` 7326 if test "x$exclude" != "x"; then 7327 continue 7328 fi 7329 7330 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 7331 if test "x$already" = "x"; then 7332 DIRS="$DIRS $dir" 7333 fi 7334 done 7335fi 7336 7337eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 7338 7339 7340 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5 7342$as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; } 7343 LIBS="-lpcap $old_LIBS" 7344 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347extern char pcap_open_live(); 7348int 7349main () 7350{ 7351pcap_open_live() 7352 ; 7353 return 0; 7354} 7355_ACEOF 7356if ac_fn_c_try_link "$LINENO"; then : 7357 7358 smart_lib="-lpcap" 7359 smart_ldflags="-L$try -Wl,-rpath,$try" 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7361$as_echo "yes" >&6; } 7362 break 7363 7364else 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7366$as_echo "no" >&6; } 7367fi 7368rm -f core conftest.err conftest.$ac_objext \ 7369 conftest$ac_exeext conftest.$ac_ext 7370 done 7371 LIBS="$old_LIBS" 7372 CPPFLAGS="$old_CPPFLAGS" 7373fi 7374 7375if test "x$smart_lib" != "x"; then 7376 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 7377 LIBS="$smart_ldflags $smart_lib $old_LIBS" 7378 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 7379fi 7380 7381if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&5 7383$as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&2;} 7384else 7385 for ac_func in \ 7386 pcap_fopen_offline \ 7387 pcap_dump_fopen \ 7388 pcap_create \ 7389 pcap_activate 7390 7391do : 7392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7393ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7394if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7395 cat >>confdefs.h <<_ACEOF 7396#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7397_ACEOF 7398 7399fi 7400done 7401 7402 7403 PCAP_LIBS="${smart_lib}" 7404 PCAP_LDFLAGS="${smart_ldflags}" 7405fi 7406LIBS="${old_LIBS}" 7407 7408collectdclient_lib_dir= 7409 7410# Check whether --with-collectdclient-lib-dir was given. 7411if test "${with_collectdclient_lib_dir+set}" = set; then : 7412 withval=$with_collectdclient_lib_dir; case "$withval" in 7413 no) 7414 as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5 7415 ;; 7416 yes) 7417 ;; 7418 *) 7419 collectdclient_lib_dir="$withval" 7420 ;; 7421 esac 7422fi 7423 7424 7425collectdclient_include_dir= 7426 7427# Check whether --with-collectdclient-include-dir was given. 7428if test "${with_collectdclient_include_dir+set}" = set; then : 7429 withval=$with_collectdclient_include_dir; case "$withval" in 7430 no) 7431 as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5 7432 ;; 7433 yes) 7434 ;; 7435 *) 7436 collectdclient_include_dir="$withval" 7437 ;; 7438 esac 7439fi 7440 7441 7442smart_try_dir="$collectdclient_lib_dir" 7443 7444 7445sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'` 7446sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'` 7447 7448old_LIBS="$LIBS" 7449old_CPPFLAGS="$CPPFLAGS" 7450smart_lib= 7451smart_ldflags= 7452smart_lib_dir= 7453 7454if test "x$smart_try_dir" != "x"; then 7455 for try in $smart_try_dir; do 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5 7457$as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; } 7458 LIBS="-lcollectdclient $old_LIBS" 7459 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7461/* end confdefs.h. */ 7462extern char lcc_connect(); 7463int 7464main () 7465{ 7466lcc_connect() 7467 ; 7468 return 0; 7469} 7470_ACEOF 7471if ac_fn_c_try_link "$LINENO"; then : 7472 7473 smart_lib="-lcollectdclient" 7474 smart_ldflags="-L$try -Wl,-rpath,$try" 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7476$as_echo "yes" >&6; } 7477 break 7478 7479else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7481$as_echo "no" >&6; } 7482fi 7483rm -f core conftest.err conftest.$ac_objext \ 7484 conftest$ac_exeext conftest.$ac_ext 7485 done 7486 LIBS="$old_LIBS" 7487 CPPFLAGS="$old_CPPFLAGS" 7488fi 7489 7490if test "x$smart_lib" = "x"; then 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5 7492$as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; } 7493 LIBS="-lcollectdclient $old_LIBS" 7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495/* end confdefs.h. */ 7496extern char lcc_connect(); 7497int 7498main () 7499{ 7500lcc_connect() 7501 ; 7502 return 0; 7503} 7504_ACEOF 7505if ac_fn_c_try_link "$LINENO"; then : 7506 7507 smart_lib="-lcollectdclient" 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7509$as_echo "yes" >&6; } 7510 7511else 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7513$as_echo "no" >&6; } 7514fi 7515rm -f core conftest.err conftest.$ac_objext \ 7516 conftest$ac_exeext conftest.$ac_ext 7517 LIBS="$old_LIBS" 7518fi 7519 7520if test "x$smart_lib" = "x"; then 7521 7522 7523if test "x$LOCATE" != "x"; then 7524 DIRS= 7525 file=libcollectdclient${libltdl_cv_shlibext} 7526 7527 for x in `${LOCATE} $file 2>/dev/null`; do 7528 base=`echo $x | sed "s%/${file}%%"` 7529 if test "x$x" = "x$base"; then 7530 continue; 7531 fi 7532 7533 dir=`${DIRNAME} $x 2>/dev/null` 7534 exclude=`echo ${dir} | ${GREP} /home` 7535 if test "x$exclude" != "x"; then 7536 continue 7537 fi 7538 7539 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 7540 if test "x$already" = "x"; then 7541 DIRS="$DIRS $dir" 7542 fi 7543 done 7544fi 7545 7546eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 7547 7548 7549 7550if test "x$LOCATE" != "x"; then 7551 DIRS= 7552 file=libcollectdclient.a 7553 7554 for x in `${LOCATE} $file 2>/dev/null`; do 7555 base=`echo $x | sed "s%/${file}%%"` 7556 if test "x$x" = "x$base"; then 7557 continue; 7558 fi 7559 7560 dir=`${DIRNAME} $x 2>/dev/null` 7561 exclude=`echo ${dir} | ${GREP} /home` 7562 if test "x$exclude" != "x"; then 7563 continue 7564 fi 7565 7566 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 7567 if test "x$already" = "x"; then 7568 DIRS="$DIRS $dir" 7569 fi 7570 done 7571fi 7572 7573eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 7574 7575 7576 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5 7578$as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; } 7579 LIBS="-lcollectdclient $old_LIBS" 7580 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7582/* end confdefs.h. */ 7583extern char lcc_connect(); 7584int 7585main () 7586{ 7587lcc_connect() 7588 ; 7589 return 0; 7590} 7591_ACEOF 7592if ac_fn_c_try_link "$LINENO"; then : 7593 7594 smart_lib="-lcollectdclient" 7595 smart_ldflags="-L$try -Wl,-rpath,$try" 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7597$as_echo "yes" >&6; } 7598 break 7599 7600else 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7602$as_echo "no" >&6; } 7603fi 7604rm -f core conftest.err conftest.$ac_objext \ 7605 conftest$ac_exeext conftest.$ac_ext 7606 done 7607 LIBS="$old_LIBS" 7608 CPPFLAGS="$old_CPPFLAGS" 7609fi 7610 7611if test "x$smart_lib" != "x"; then 7612 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 7613 LIBS="$smart_ldflags $smart_lib $old_LIBS" 7614 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 7615fi 7616 7617if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5 7619$as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;} 7620else 7621 COLLECTDC_LIBS="${smart_lib}" 7622 COLLECTDC_LDFLAGS="${smart_ldflags}" 7623fi 7624LIBS="${old_LIBS}" 7625 7626cap_lib_dir= 7627 7628# Check whether --with-cap-lib-dir was given. 7629if test "${with_cap_lib_dir+set}" = set; then : 7630 withval=$with_cap_lib_dir; case "$withval" in 7631 no) 7632 as_fn_error $? "Need cap-lib-dir" "$LINENO" 5 7633 ;; 7634 yes) 7635 ;; 7636 *) 7637 cap_lib_dir="$withval" 7638 ;; 7639 esac 7640fi 7641 7642 7643cap_include_dir= 7644 7645# Check whether --with-cap-include-dir was given. 7646if test "${with_cap_include_dir+set}" = set; then : 7647 withval=$with_cap_include_dir; case "$withval" in 7648 no) 7649 as_fn_error $? "Need cap-include-dir" "$LINENO" 5 7650 ;; 7651 yes) 7652 ;; 7653 *) 7654 cap_include_dir="$withval" 7655 ;; 7656 esac 7657fi 7658 7659 7660smart_try_dir="$cap_lib_dir" 7661 7662 7663sm_lib_safe=`echo "cap" | sed 'y%./+-%__p_%'` 7664sm_func_safe=`echo "cap_get_proc" | sed 'y%./+-%__p_%'` 7665 7666old_LIBS="$LIBS" 7667old_CPPFLAGS="$CPPFLAGS" 7668smart_lib= 7669smart_ldflags= 7670smart_lib_dir= 7671 7672if test "x$smart_try_dir" != "x"; then 7673 for try in $smart_try_dir; do 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5 7675$as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; } 7676 LIBS="-lcap $old_LIBS" 7677 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7679/* end confdefs.h. */ 7680extern char cap_get_proc(); 7681int 7682main () 7683{ 7684cap_get_proc() 7685 ; 7686 return 0; 7687} 7688_ACEOF 7689if ac_fn_c_try_link "$LINENO"; then : 7690 7691 smart_lib="-lcap" 7692 smart_ldflags="-L$try -Wl,-rpath,$try" 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7694$as_echo "yes" >&6; } 7695 break 7696 7697else 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7699$as_echo "no" >&6; } 7700fi 7701rm -f core conftest.err conftest.$ac_objext \ 7702 conftest$ac_exeext conftest.$ac_ext 7703 done 7704 LIBS="$old_LIBS" 7705 CPPFLAGS="$old_CPPFLAGS" 7706fi 7707 7708if test "x$smart_lib" = "x"; then 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5 7710$as_echo_n "checking for cap_get_proc in -lcap... " >&6; } 7711 LIBS="-lcap $old_LIBS" 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714extern char cap_get_proc(); 7715int 7716main () 7717{ 7718cap_get_proc() 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723if ac_fn_c_try_link "$LINENO"; then : 7724 7725 smart_lib="-lcap" 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7727$as_echo "yes" >&6; } 7728 7729else 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7731$as_echo "no" >&6; } 7732fi 7733rm -f core conftest.err conftest.$ac_objext \ 7734 conftest$ac_exeext conftest.$ac_ext 7735 LIBS="$old_LIBS" 7736fi 7737 7738if test "x$smart_lib" = "x"; then 7739 7740 7741if test "x$LOCATE" != "x"; then 7742 DIRS= 7743 file=libcap${libltdl_cv_shlibext} 7744 7745 for x in `${LOCATE} $file 2>/dev/null`; do 7746 base=`echo $x | sed "s%/${file}%%"` 7747 if test "x$x" = "x$base"; then 7748 continue; 7749 fi 7750 7751 dir=`${DIRNAME} $x 2>/dev/null` 7752 exclude=`echo ${dir} | ${GREP} /home` 7753 if test "x$exclude" != "x"; then 7754 continue 7755 fi 7756 7757 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 7758 if test "x$already" = "x"; then 7759 DIRS="$DIRS $dir" 7760 fi 7761 done 7762fi 7763 7764eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 7765 7766 7767 7768if test "x$LOCATE" != "x"; then 7769 DIRS= 7770 file=libcap.a 7771 7772 for x in `${LOCATE} $file 2>/dev/null`; do 7773 base=`echo $x | sed "s%/${file}%%"` 7774 if test "x$x" = "x$base"; then 7775 continue; 7776 fi 7777 7778 dir=`${DIRNAME} $x 2>/dev/null` 7779 exclude=`echo ${dir} | ${GREP} /home` 7780 if test "x$exclude" != "x"; then 7781 continue 7782 fi 7783 7784 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 7785 if test "x$already" = "x"; then 7786 DIRS="$DIRS $dir" 7787 fi 7788 done 7789fi 7790 7791eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 7792 7793 7794 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5 7796$as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; } 7797 LIBS="-lcap $old_LIBS" 7798 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801extern char cap_get_proc(); 7802int 7803main () 7804{ 7805cap_get_proc() 7806 ; 7807 return 0; 7808} 7809_ACEOF 7810if ac_fn_c_try_link "$LINENO"; then : 7811 7812 smart_lib="-lcap" 7813 smart_ldflags="-L$try -Wl,-rpath,$try" 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7815$as_echo "yes" >&6; } 7816 break 7817 7818else 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7820$as_echo "no" >&6; } 7821fi 7822rm -f core conftest.err conftest.$ac_objext \ 7823 conftest$ac_exeext conftest.$ac_ext 7824 done 7825 LIBS="$old_LIBS" 7826 CPPFLAGS="$old_CPPFLAGS" 7827fi 7828 7829if test "x$smart_lib" != "x"; then 7830 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 7831 LIBS="$smart_ldflags $smart_lib $old_LIBS" 7832 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 7833fi 7834 7835if test "x$ac_cv_lib_cap_cap_get_proc" != "xyes"; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&5 7837$as_echo "$as_me: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&2;} 7838else 7839 7840$as_echo "#define HAVE_LIBCAP 1" >>confdefs.h 7841 7842 HAVE_LIBCAP=1 7843fi 7844 7845 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 7847$as_echo_n "checking for a readline compatible library... " >&6; } 7848if ${vl_cv_lib_readline+:} false; then : 7849 $as_echo_n "(cached) " >&6 7850else 7851 7852 ORIG_LIBS="$LIBS" 7853 for readline_lib in readline edit editline; do 7854 for termcap_lib in "" termcap curses ncurses; do 7855 if test -z "$termcap_lib"; then 7856 TRY_LIB="-l$readline_lib" 7857 else 7858 TRY_LIB="-l$readline_lib -l$termcap_lib" 7859 fi 7860 LIBS="$ORIG_LIBS $TRY_LIB" 7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7862/* end confdefs.h. */ 7863 7864/* Override any GCC internal prototype to avoid an error. 7865 Use char because int might match the return type of a GCC 7866 builtin and then its argument prototype would still apply. */ 7867#ifdef __cplusplus 7868extern "C" 7869#endif 7870char readline (); 7871int 7872main () 7873{ 7874return readline (); 7875 ; 7876 return 0; 7877} 7878_ACEOF 7879if ac_fn_c_try_link "$LINENO"; then : 7880 vl_cv_lib_readline="$TRY_LIB" 7881fi 7882rm -f core conftest.err conftest.$ac_objext \ 7883 conftest$ac_exeext conftest.$ac_ext 7884 if test -n "$vl_cv_lib_readline"; then 7885 break 7886 fi 7887 done 7888 if test -n "$vl_cv_lib_readline"; then 7889 break 7890 fi 7891 done 7892 if test -z "$vl_cv_lib_readline"; then 7893 vl_cv_lib_readline="no" 7894 LIBS="$ORIG_LIBS" 7895 fi 7896 7897fi 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 7899$as_echo "$vl_cv_lib_readline" >&6; } 7900 7901 if test "$vl_cv_lib_readline" != "no"; then 7902 LIBREADLINE="$vl_cv_lib_readline" 7903 7904$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 7905 7906 for ac_header in readline.h readline/readline.h 7907do : 7908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7909ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7910if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7911 cat >>confdefs.h <<_ACEOF 7912#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7913_ACEOF 7914 7915fi 7916 7917done 7918 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 7920$as_echo_n "checking whether readline supports history... " >&6; } 7921if ${vl_cv_lib_readline_history+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 7925 vl_cv_lib_readline_history="no" 7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7927/* end confdefs.h. */ 7928 7929/* Override any GCC internal prototype to avoid an error. 7930 Use char because int might match the return type of a GCC 7931 builtin and then its argument prototype would still apply. */ 7932#ifdef __cplusplus 7933extern "C" 7934#endif 7935char add_history (); 7936int 7937main () 7938{ 7939return add_history (); 7940 ; 7941 return 0; 7942} 7943_ACEOF 7944if ac_fn_c_try_link "$LINENO"; then : 7945 vl_cv_lib_readline_history="yes" 7946fi 7947rm -f core conftest.err conftest.$ac_objext \ 7948 conftest$ac_exeext conftest.$ac_ext 7949 7950fi 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 7952$as_echo "$vl_cv_lib_readline_history" >&6; } 7953 if test "$vl_cv_lib_readline_history" = "yes"; then 7954 7955$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 7956 7957 for ac_header in history.h readline/history.h 7958do : 7959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7960ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7962 cat >>confdefs.h <<_ACEOF 7963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7964_ACEOF 7965 7966fi 7967 7968done 7969 7970 fi 7971 fi 7972 7973 7974 7975 7976# Check whether --with-systemd was given. 7977if test "${with_systemd+set}" = set; then : 7978 withval=$with_systemd; case "$withval" in 7979 no) 7980 WITH_SYSTEMD=no 7981 ;; 7982 *) 7983 WITH_SYSTEMD=yes 7984 esac 7985else 7986 WITH_SYSTEMD=no 7987fi 7988 7989 7990systemd_lib_dir= 7991 7992# Check whether --with-systemd-lib-dir was given. 7993if test "${with_systemd_lib_dir+set}" = set; then : 7994 withval=$with_systemd_lib_dir; case "$withval" in 7995 *) systemd_lib_dir="$withval" 7996 ;; 7997 esac 7998 7999fi 8000 8001 8002systemd_include_dir= 8003 8004# Check whether --with-systemd-include-dir was given. 8005if test "${with_systemd_include_dir+set}" = set; then : 8006 withval=$with_systemd_include_dir; case "$withval" in 8007 *) systemd_include_dir="$withval" 8008 ;; 8009 esac 8010 8011fi 8012 8013 8014if test "x$WITH_SYSTEMD" = xyes; then 8015 smart_try_dir="$systemd_lib_dir" 8016 8017 8018sm_lib_safe=`echo "systemd" | sed 'y%./+-%__p_%'` 8019sm_func_safe=`echo "sd_notify" | sed 'y%./+-%__p_%'` 8020 8021old_LIBS="$LIBS" 8022old_CPPFLAGS="$CPPFLAGS" 8023smart_lib= 8024smart_ldflags= 8025smart_lib_dir= 8026 8027if test "x$smart_try_dir" != "x"; then 8028 for try in $smart_try_dir; do 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd in $try" >&5 8030$as_echo_n "checking for sd_notify in -lsystemd in $try... " >&6; } 8031 LIBS="-lsystemd $old_LIBS" 8032 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8034/* end confdefs.h. */ 8035extern char sd_notify(); 8036int 8037main () 8038{ 8039sd_notify() 8040 ; 8041 return 0; 8042} 8043_ACEOF 8044if ac_fn_c_try_link "$LINENO"; then : 8045 8046 smart_lib="-lsystemd" 8047 smart_ldflags="-L$try -Wl,-rpath,$try" 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8049$as_echo "yes" >&6; } 8050 break 8051 8052else 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8054$as_echo "no" >&6; } 8055fi 8056rm -f core conftest.err conftest.$ac_objext \ 8057 conftest$ac_exeext conftest.$ac_ext 8058 done 8059 LIBS="$old_LIBS" 8060 CPPFLAGS="$old_CPPFLAGS" 8061fi 8062 8063if test "x$smart_lib" = "x"; then 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd" >&5 8065$as_echo_n "checking for sd_notify in -lsystemd... " >&6; } 8066 LIBS="-lsystemd $old_LIBS" 8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8068/* end confdefs.h. */ 8069extern char sd_notify(); 8070int 8071main () 8072{ 8073sd_notify() 8074 ; 8075 return 0; 8076} 8077_ACEOF 8078if ac_fn_c_try_link "$LINENO"; then : 8079 8080 smart_lib="-lsystemd" 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8082$as_echo "yes" >&6; } 8083 8084else 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8086$as_echo "no" >&6; } 8087fi 8088rm -f core conftest.err conftest.$ac_objext \ 8089 conftest$ac_exeext conftest.$ac_ext 8090 LIBS="$old_LIBS" 8091fi 8092 8093if test "x$smart_lib" = "x"; then 8094 8095 8096if test "x$LOCATE" != "x"; then 8097 DIRS= 8098 file=libsystemd${libltdl_cv_shlibext} 8099 8100 for x in `${LOCATE} $file 2>/dev/null`; do 8101 base=`echo $x | sed "s%/${file}%%"` 8102 if test "x$x" = "x$base"; then 8103 continue; 8104 fi 8105 8106 dir=`${DIRNAME} $x 2>/dev/null` 8107 exclude=`echo ${dir} | ${GREP} /home` 8108 if test "x$exclude" != "x"; then 8109 continue 8110 fi 8111 8112 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 8113 if test "x$already" = "x"; then 8114 DIRS="$DIRS $dir" 8115 fi 8116 done 8117fi 8118 8119eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 8120 8121 8122 8123if test "x$LOCATE" != "x"; then 8124 DIRS= 8125 file=libsystemd.a 8126 8127 for x in `${LOCATE} $file 2>/dev/null`; do 8128 base=`echo $x | sed "s%/${file}%%"` 8129 if test "x$x" = "x$base"; then 8130 continue; 8131 fi 8132 8133 dir=`${DIRNAME} $x 2>/dev/null` 8134 exclude=`echo ${dir} | ${GREP} /home` 8135 if test "x$exclude" != "x"; then 8136 continue 8137 fi 8138 8139 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 8140 if test "x$already" = "x"; then 8141 DIRS="$DIRS $dir" 8142 fi 8143 done 8144fi 8145 8146eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 8147 8148 8149 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd in $try" >&5 8151$as_echo_n "checking for sd_notify in -lsystemd in $try... " >&6; } 8152 LIBS="-lsystemd $old_LIBS" 8153 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8155/* end confdefs.h. */ 8156extern char sd_notify(); 8157int 8158main () 8159{ 8160sd_notify() 8161 ; 8162 return 0; 8163} 8164_ACEOF 8165if ac_fn_c_try_link "$LINENO"; then : 8166 8167 smart_lib="-lsystemd" 8168 smart_ldflags="-L$try -Wl,-rpath,$try" 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8170$as_echo "yes" >&6; } 8171 break 8172 8173else 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8175$as_echo "no" >&6; } 8176fi 8177rm -f core conftest.err conftest.$ac_objext \ 8178 conftest$ac_exeext conftest.$ac_ext 8179 done 8180 LIBS="$old_LIBS" 8181 CPPFLAGS="$old_CPPFLAGS" 8182fi 8183 8184if test "x$smart_lib" != "x"; then 8185 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 8186 LIBS="$smart_ldflags $smart_lib $old_LIBS" 8187 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 8188fi 8189 8190 if test "x$ac_cv_lib_systemd_sd_notify" != "xyes"; then 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemd library not found. Use --with-systemd-lib-dir=<path>." >&5 8192$as_echo "$as_me: WARNING: systemd library not found. Use --with-systemd-lib-dir=<path>." >&2;} 8193 else 8194 8195$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h 8196 8197 HAVE_SYSTEMD=1 8198 SYSTEMD_LIBS="${smart_lib}" 8199 SYSTEMD_LDFLAGS="${smart_ldflags}" 8200 fi 8201 LIBS="${old_LIBS}" 8202fi 8203 8204if test "x$HAVE_SYSTEMD" = x; then 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for systemd watchdog" >&5 8206$as_echo "$as_me: skipping test for systemd watchdog" >&6;} 8207else 8208 smart_try_dir="$systemd_lib_dir" 8209 8210 8211sm_lib_safe=`echo "systemd" | sed 'y%./+-%__p_%'` 8212sm_func_safe=`echo "sd_watchdog_enabled" | sed 'y%./+-%__p_%'` 8213 8214old_LIBS="$LIBS" 8215old_CPPFLAGS="$CPPFLAGS" 8216smart_lib= 8217smart_ldflags= 8218smart_lib_dir= 8219 8220if test "x$smart_try_dir" != "x"; then 8221 for try in $smart_try_dir; do 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_watchdog_enabled in -lsystemd in $try" >&5 8223$as_echo_n "checking for sd_watchdog_enabled in -lsystemd in $try... " >&6; } 8224 LIBS="-lsystemd $old_LIBS" 8225 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8227/* end confdefs.h. */ 8228extern char sd_watchdog_enabled(); 8229int 8230main () 8231{ 8232sd_watchdog_enabled() 8233 ; 8234 return 0; 8235} 8236_ACEOF 8237if ac_fn_c_try_link "$LINENO"; then : 8238 8239 smart_lib="-lsystemd" 8240 smart_ldflags="-L$try -Wl,-rpath,$try" 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8242$as_echo "yes" >&6; } 8243 break 8244 8245else 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8247$as_echo "no" >&6; } 8248fi 8249rm -f core conftest.err conftest.$ac_objext \ 8250 conftest$ac_exeext conftest.$ac_ext 8251 done 8252 LIBS="$old_LIBS" 8253 CPPFLAGS="$old_CPPFLAGS" 8254fi 8255 8256if test "x$smart_lib" = "x"; then 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_watchdog_enabled in -lsystemd" >&5 8258$as_echo_n "checking for sd_watchdog_enabled in -lsystemd... " >&6; } 8259 LIBS="-lsystemd $old_LIBS" 8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8261/* end confdefs.h. */ 8262extern char sd_watchdog_enabled(); 8263int 8264main () 8265{ 8266sd_watchdog_enabled() 8267 ; 8268 return 0; 8269} 8270_ACEOF 8271if ac_fn_c_try_link "$LINENO"; then : 8272 8273 smart_lib="-lsystemd" 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8275$as_echo "yes" >&6; } 8276 8277else 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8279$as_echo "no" >&6; } 8280fi 8281rm -f core conftest.err conftest.$ac_objext \ 8282 conftest$ac_exeext conftest.$ac_ext 8283 LIBS="$old_LIBS" 8284fi 8285 8286if test "x$smart_lib" = "x"; then 8287 8288 8289if test "x$LOCATE" != "x"; then 8290 DIRS= 8291 file=libsystemd${libltdl_cv_shlibext} 8292 8293 for x in `${LOCATE} $file 2>/dev/null`; do 8294 base=`echo $x | sed "s%/${file}%%"` 8295 if test "x$x" = "x$base"; then 8296 continue; 8297 fi 8298 8299 dir=`${DIRNAME} $x 2>/dev/null` 8300 exclude=`echo ${dir} | ${GREP} /home` 8301 if test "x$exclude" != "x"; then 8302 continue 8303 fi 8304 8305 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 8306 if test "x$already" = "x"; then 8307 DIRS="$DIRS $dir" 8308 fi 8309 done 8310fi 8311 8312eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 8313 8314 8315 8316if test "x$LOCATE" != "x"; then 8317 DIRS= 8318 file=libsystemd.a 8319 8320 for x in `${LOCATE} $file 2>/dev/null`; do 8321 base=`echo $x | sed "s%/${file}%%"` 8322 if test "x$x" = "x$base"; then 8323 continue; 8324 fi 8325 8326 dir=`${DIRNAME} $x 2>/dev/null` 8327 exclude=`echo ${dir} | ${GREP} /home` 8328 if test "x$exclude" != "x"; then 8329 continue 8330 fi 8331 8332 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 8333 if test "x$already" = "x"; then 8334 DIRS="$DIRS $dir" 8335 fi 8336 done 8337fi 8338 8339eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 8340 8341 8342 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_watchdog_enabled in -lsystemd in $try" >&5 8344$as_echo_n "checking for sd_watchdog_enabled in -lsystemd in $try... " >&6; } 8345 LIBS="-lsystemd $old_LIBS" 8346 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348/* end confdefs.h. */ 8349extern char sd_watchdog_enabled(); 8350int 8351main () 8352{ 8353sd_watchdog_enabled() 8354 ; 8355 return 0; 8356} 8357_ACEOF 8358if ac_fn_c_try_link "$LINENO"; then : 8359 8360 smart_lib="-lsystemd" 8361 smart_ldflags="-L$try -Wl,-rpath,$try" 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8363$as_echo "yes" >&6; } 8364 break 8365 8366else 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8368$as_echo "no" >&6; } 8369fi 8370rm -f core conftest.err conftest.$ac_objext \ 8371 conftest$ac_exeext conftest.$ac_ext 8372 done 8373 LIBS="$old_LIBS" 8374 CPPFLAGS="$old_CPPFLAGS" 8375fi 8376 8377if test "x$smart_lib" != "x"; then 8378 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 8379 LIBS="$smart_ldflags $smart_lib $old_LIBS" 8380 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 8381fi 8382 8383 if test "x$ac_cv_lib_systemd_sd_watchdog_enabled" != "xyes"; then 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemd watchdog is only available from systemd 209." >&5 8385$as_echo "$as_me: WARNING: systemd watchdog is only available from systemd 209." >&2;} 8386 else 8387 8388$as_echo "#define HAVE_SYSTEMD_WATCHDOG 1" >>confdefs.h 8389 8390 fi 8391 LIBS="${old_LIBS}" 8392fi 8393 8394if test "x$WITH_SYSTEMD" != xyes || test "x$SYSTEMD_LIBS" = x; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for systemd/sd-daemon.h." >&5 8396$as_echo "$as_me: skipping test for systemd/sd-daemon.h." >&6;} 8397else 8398 smart_try_dir="$systemd_include_dir" 8399 8400 8401ac_safe=`echo "systemd/sd-daemon.h" | sed 'y%./+-%__pm%'` 8402old_CPPFLAGS="$CPPFLAGS" 8403smart_include= 8404smart_include_dir="/usr/local/include /opt/include" 8405 8406_smart_try_dir= 8407_smart_include_dir= 8408 8409for _prefix in $smart_prefix ""; do 8410 for _dir in $smart_try_dir; do 8411 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}" 8412 done 8413 8414 for _dir in $smart_include_dir; do 8415 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}" 8416 done 8417done 8418 8419if test "x$_smart_try_dir" != "x"; then 8420 for try in $_smart_try_dir; do 8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd/sd-daemon.h in $try" >&5 8422$as_echo_n "checking for systemd/sd-daemon.h in $try... " >&6; } 8423 CPPFLAGS="-isystem $try $old_CPPFLAGS" 8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8425/* end confdefs.h. */ 8426 8427 #include <systemd/sd-daemon.h> 8428int 8429main () 8430{ 8431int a = 1; 8432 ; 8433 return 0; 8434} 8435_ACEOF 8436if ac_fn_c_try_compile "$LINENO"; then : 8437 8438 smart_include="-isystem $try" 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8440$as_echo "yes" >&6; } 8441 break 8442 8443else 8444 8445 smart_include= 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8447$as_echo "no" >&6; } 8448 8449fi 8450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8451 done 8452 CPPFLAGS="$old_CPPFLAGS" 8453fi 8454 8455if test "x$smart_include" = "x"; then 8456 for _prefix in $smart_prefix; do 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/systemd/sd-daemon.h" >&5 8458$as_echo_n "checking for ${_prefix}/systemd/sd-daemon.h... " >&6; } 8459 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462 8463 #include <systemd/sd-daemon.h> 8464int 8465main () 8466{ 8467int a = 1; 8468 ; 8469 return 0; 8470} 8471_ACEOF 8472if ac_fn_c_try_compile "$LINENO"; then : 8473 8474 smart_include="-isystem ${_prefix}/" 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8476$as_echo "yes" >&6; } 8477 break 8478 8479else 8480 8481 smart_include= 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8483$as_echo "no" >&6; } 8484 8485fi 8486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8487 done 8488fi 8489 8490if test "x$smart_include" = "x"; then 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd/sd-daemon.h" >&5 8492$as_echo_n "checking for systemd/sd-daemon.h... " >&6; } 8493 8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8495/* end confdefs.h. */ 8496 8497 #include <systemd/sd-daemon.h> 8498int 8499main () 8500{ 8501int a = 1; 8502 ; 8503 return 0; 8504} 8505_ACEOF 8506if ac_fn_c_try_compile "$LINENO"; then : 8507 8508 smart_include=" " 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8510$as_echo "yes" >&6; } 8511 break 8512 8513else 8514 8515 smart_include= 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8517$as_echo "no" >&6; } 8518 8519fi 8520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8521fi 8522 8523if test "x$smart_include" = "x"; then 8524 8525 for prefix in $smart_prefix; do 8526 8527 8528if test "x$LOCATE" != "x"; then 8529 DIRS= 8530 file="${_prefix}/${1}" 8531 8532 for x in `${LOCATE} $file 2>/dev/null`; do 8533 base=`echo $x | sed "s%/${file}%%"` 8534 if test "x$x" = "x$base"; then 8535 continue; 8536 fi 8537 8538 dir=`${DIRNAME} $x 2>/dev/null` 8539 exclude=`echo ${dir} | ${GREP} /home` 8540 if test "x$exclude" != "x"; then 8541 continue 8542 fi 8543 8544 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 8545 if test "x$already" = "x"; then 8546 DIRS="$DIRS $dir" 8547 fi 8548 done 8549fi 8550 8551eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 8552 8553 done 8554 8555 8556if test "x$LOCATE" != "x"; then 8557 DIRS= 8558 file=systemd/sd-daemon.h 8559 8560 for x in `${LOCATE} $file 2>/dev/null`; do 8561 base=`echo $x | sed "s%/${file}%%"` 8562 if test "x$x" = "x$base"; then 8563 continue; 8564 fi 8565 8566 dir=`${DIRNAME} $x 2>/dev/null` 8567 exclude=`echo ${dir} | ${GREP} /home` 8568 if test "x$exclude" != "x"; then 8569 continue 8570 fi 8571 8572 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 8573 if test "x$already" = "x"; then 8574 DIRS="$DIRS $dir" 8575 fi 8576 done 8577fi 8578 8579eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 8580 8581 8582 for try in $_smart_include_dir; do 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd/sd-daemon.h in $try" >&5 8584$as_echo_n "checking for systemd/sd-daemon.h in $try... " >&6; } 8585 CPPFLAGS="-isystem $try $old_CPPFLAGS" 8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8587/* end confdefs.h. */ 8588 8589 #include <systemd/sd-daemon.h> 8590int 8591main () 8592{ 8593int a = 1; 8594 ; 8595 return 0; 8596} 8597_ACEOF 8598if ac_fn_c_try_compile "$LINENO"; then : 8599 8600 smart_include="-isystem $try" 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8602$as_echo "yes" >&6; } 8603 break 8604 8605else 8606 8607 smart_include= 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8609$as_echo "no" >&6; } 8610 8611fi 8612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8613 done 8614 CPPFLAGS="$old_CPPFLAGS" 8615fi 8616 8617if test "x$smart_include" != "x"; then 8618 eval "ac_cv_header_$ac_safe=yes" 8619 CPPFLAGS="$smart_include $old_CPPFLAGS" 8620 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS" 8621fi 8622 8623smart_prefix= 8624 8625 if test "x$ac_cv_header_systemd_sdmdaemon_h" = "xyes"; then 8626 8627$as_echo "#define HAVE_SYSTEMD_SD_DAEMON_H 1" >>confdefs.h 8628 8629 8630 8631 else 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemd headers not found. Use --with-systemd-include-dir=<path>." >&5 8633$as_echo "$as_me: WARNING: systemd headers not found. Use --with-systemd-include-dir=<path>." >&2;} 8634 fi 8635fi 8636 8637 8638smart_try_dir="$talloc_include_dir" 8639 8640 8641ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'` 8642old_CPPFLAGS="$CPPFLAGS" 8643smart_include= 8644smart_include_dir="/usr/local/include /opt/include" 8645 8646_smart_try_dir= 8647_smart_include_dir= 8648 8649for _prefix in $smart_prefix ""; do 8650 for _dir in $smart_try_dir; do 8651 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}" 8652 done 8653 8654 for _dir in $smart_include_dir; do 8655 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}" 8656 done 8657done 8658 8659if test "x$_smart_try_dir" != "x"; then 8660 for try in $_smart_try_dir; do 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5 8662$as_echo_n "checking for talloc.h in $try... " >&6; } 8663 CPPFLAGS="-isystem $try $old_CPPFLAGS" 8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8665/* end confdefs.h. */ 8666 8667 #include <talloc.h> 8668int 8669main () 8670{ 8671int a = 1; 8672 ; 8673 return 0; 8674} 8675_ACEOF 8676if ac_fn_c_try_compile "$LINENO"; then : 8677 8678 smart_include="-isystem $try" 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8680$as_echo "yes" >&6; } 8681 break 8682 8683else 8684 8685 smart_include= 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8687$as_echo "no" >&6; } 8688 8689fi 8690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8691 done 8692 CPPFLAGS="$old_CPPFLAGS" 8693fi 8694 8695if test "x$smart_include" = "x"; then 8696 for _prefix in $smart_prefix; do 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5 8698$as_echo_n "checking for ${_prefix}/talloc.h... " >&6; } 8699 8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8701/* end confdefs.h. */ 8702 8703 #include <talloc.h> 8704int 8705main () 8706{ 8707int a = 1; 8708 ; 8709 return 0; 8710} 8711_ACEOF 8712if ac_fn_c_try_compile "$LINENO"; then : 8713 8714 smart_include="-isystem ${_prefix}/" 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8716$as_echo "yes" >&6; } 8717 break 8718 8719else 8720 8721 smart_include= 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8723$as_echo "no" >&6; } 8724 8725fi 8726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8727 done 8728fi 8729 8730if test "x$smart_include" = "x"; then 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5 8732$as_echo_n "checking for talloc.h... " >&6; } 8733 8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8735/* end confdefs.h. */ 8736 8737 #include <talloc.h> 8738int 8739main () 8740{ 8741int a = 1; 8742 ; 8743 return 0; 8744} 8745_ACEOF 8746if ac_fn_c_try_compile "$LINENO"; then : 8747 8748 smart_include=" " 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8750$as_echo "yes" >&6; } 8751 break 8752 8753else 8754 8755 smart_include= 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8757$as_echo "no" >&6; } 8758 8759fi 8760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8761fi 8762 8763if test "x$smart_include" = "x"; then 8764 8765 for prefix in $smart_prefix; do 8766 8767 8768if test "x$LOCATE" != "x"; then 8769 DIRS= 8770 file="${_prefix}/${1}" 8771 8772 for x in `${LOCATE} $file 2>/dev/null`; do 8773 base=`echo $x | sed "s%/${file}%%"` 8774 if test "x$x" = "x$base"; then 8775 continue; 8776 fi 8777 8778 dir=`${DIRNAME} $x 2>/dev/null` 8779 exclude=`echo ${dir} | ${GREP} /home` 8780 if test "x$exclude" != "x"; then 8781 continue 8782 fi 8783 8784 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 8785 if test "x$already" = "x"; then 8786 DIRS="$DIRS $dir" 8787 fi 8788 done 8789fi 8790 8791eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 8792 8793 done 8794 8795 8796if test "x$LOCATE" != "x"; then 8797 DIRS= 8798 file=talloc.h 8799 8800 for x in `${LOCATE} $file 2>/dev/null`; do 8801 base=`echo $x | sed "s%/${file}%%"` 8802 if test "x$x" = "x$base"; then 8803 continue; 8804 fi 8805 8806 dir=`${DIRNAME} $x 2>/dev/null` 8807 exclude=`echo ${dir} | ${GREP} /home` 8808 if test "x$exclude" != "x"; then 8809 continue 8810 fi 8811 8812 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 8813 if test "x$already" = "x"; then 8814 DIRS="$DIRS $dir" 8815 fi 8816 done 8817fi 8818 8819eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 8820 8821 8822 for try in $_smart_include_dir; do 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5 8824$as_echo_n "checking for talloc.h in $try... " >&6; } 8825 CPPFLAGS="-isystem $try $old_CPPFLAGS" 8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8827/* end confdefs.h. */ 8828 8829 #include <talloc.h> 8830int 8831main () 8832{ 8833int a = 1; 8834 ; 8835 return 0; 8836} 8837_ACEOF 8838if ac_fn_c_try_compile "$LINENO"; then : 8839 8840 smart_include="-isystem $try" 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8842$as_echo "yes" >&6; } 8843 break 8844 8845else 8846 8847 smart_include= 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8849$as_echo "no" >&6; } 8850 8851fi 8852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8853 done 8854 CPPFLAGS="$old_CPPFLAGS" 8855fi 8856 8857if test "x$smart_include" != "x"; then 8858 eval "ac_cv_header_$ac_safe=yes" 8859 CPPFLAGS="$smart_include $old_CPPFLAGS" 8860 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS" 8861fi 8862 8863smart_prefix= 8864 8865if test "x$ac_cv_header_talloc_h" != "xyes"; then 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5 8867$as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;} 8868 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5 8869fi 8870 8871case "$host" in 8872 *-interix*) 8873 CFLAGS="$CFLAGS -D_ALL_SOURCE" 8874 ;; 8875 *-darwin*) 8876 CFLAGS="$CFLAGS -DDARWIN" 8877 LIBS="-framework DirectoryService $LIBS" 8878 8879$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 8880 8881 ;; 8882esac 8883 8884ac_header_dirent=no 8885for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8886 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8888$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8889if eval \${$as_ac_Header+:} false; then : 8890 $as_echo_n "(cached) " >&6 8891else 8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8893/* end confdefs.h. */ 8894#include <sys/types.h> 8895#include <$ac_hdr> 8896 8897int 8898main () 8899{ 8900if ((DIR *) 0) 8901return 0; 8902 ; 8903 return 0; 8904} 8905_ACEOF 8906if ac_fn_c_try_compile "$LINENO"; then : 8907 eval "$as_ac_Header=yes" 8908else 8909 eval "$as_ac_Header=no" 8910fi 8911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8912fi 8913eval ac_res=\$$as_ac_Header 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8915$as_echo "$ac_res" >&6; } 8916if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8917 cat >>confdefs.h <<_ACEOF 8918#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8919_ACEOF 8920 8921ac_header_dirent=$ac_hdr; break 8922fi 8923 8924done 8925# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8926if test $ac_header_dirent = dirent.h; then 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8928$as_echo_n "checking for library containing opendir... " >&6; } 8929if ${ac_cv_search_opendir+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931else 8932 ac_func_search_save_LIBS=$LIBS 8933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8934/* end confdefs.h. */ 8935 8936/* Override any GCC internal prototype to avoid an error. 8937 Use char because int might match the return type of a GCC 8938 builtin and then its argument prototype would still apply. */ 8939#ifdef __cplusplus 8940extern "C" 8941#endif 8942char opendir (); 8943int 8944main () 8945{ 8946return opendir (); 8947 ; 8948 return 0; 8949} 8950_ACEOF 8951for ac_lib in '' dir; do 8952 if test -z "$ac_lib"; then 8953 ac_res="none required" 8954 else 8955 ac_res=-l$ac_lib 8956 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8957 fi 8958 if ac_fn_c_try_link "$LINENO"; then : 8959 ac_cv_search_opendir=$ac_res 8960fi 8961rm -f core conftest.err conftest.$ac_objext \ 8962 conftest$ac_exeext 8963 if ${ac_cv_search_opendir+:} false; then : 8964 break 8965fi 8966done 8967if ${ac_cv_search_opendir+:} false; then : 8968 8969else 8970 ac_cv_search_opendir=no 8971fi 8972rm conftest.$ac_ext 8973LIBS=$ac_func_search_save_LIBS 8974fi 8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8976$as_echo "$ac_cv_search_opendir" >&6; } 8977ac_res=$ac_cv_search_opendir 8978if test "$ac_res" != no; then : 8979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8980 8981fi 8982 8983else 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8985$as_echo_n "checking for library containing opendir... " >&6; } 8986if ${ac_cv_search_opendir+:} false; then : 8987 $as_echo_n "(cached) " >&6 8988else 8989 ac_func_search_save_LIBS=$LIBS 8990cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8991/* end confdefs.h. */ 8992 8993/* Override any GCC internal prototype to avoid an error. 8994 Use char because int might match the return type of a GCC 8995 builtin and then its argument prototype would still apply. */ 8996#ifdef __cplusplus 8997extern "C" 8998#endif 8999char opendir (); 9000int 9001main () 9002{ 9003return opendir (); 9004 ; 9005 return 0; 9006} 9007_ACEOF 9008for ac_lib in '' x; do 9009 if test -z "$ac_lib"; then 9010 ac_res="none required" 9011 else 9012 ac_res=-l$ac_lib 9013 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9014 fi 9015 if ac_fn_c_try_link "$LINENO"; then : 9016 ac_cv_search_opendir=$ac_res 9017fi 9018rm -f core conftest.err conftest.$ac_objext \ 9019 conftest$ac_exeext 9020 if ${ac_cv_search_opendir+:} false; then : 9021 break 9022fi 9023done 9024if ${ac_cv_search_opendir+:} false; then : 9025 9026else 9027 ac_cv_search_opendir=no 9028fi 9029rm conftest.$ac_ext 9030LIBS=$ac_func_search_save_LIBS 9031fi 9032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 9033$as_echo "$ac_cv_search_opendir" >&6; } 9034ac_res=$ac_cv_search_opendir 9035if test "$ac_res" != no; then : 9036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9037 9038fi 9039 9040fi 9041 9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9043$as_echo_n "checking for ANSI C header files... " >&6; } 9044if ${ac_cv_header_stdc+:} false; then : 9045 $as_echo_n "(cached) " >&6 9046else 9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048/* end confdefs.h. */ 9049#include <stdlib.h> 9050#include <stdarg.h> 9051#include <string.h> 9052#include <float.h> 9053 9054int 9055main () 9056{ 9057 9058 ; 9059 return 0; 9060} 9061_ACEOF 9062if ac_fn_c_try_compile "$LINENO"; then : 9063 ac_cv_header_stdc=yes 9064else 9065 ac_cv_header_stdc=no 9066fi 9067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9068 9069if test $ac_cv_header_stdc = yes; then 9070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9072/* end confdefs.h. */ 9073#include <string.h> 9074 9075_ACEOF 9076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9077 $EGREP "memchr" >/dev/null 2>&1; then : 9078 9079else 9080 ac_cv_header_stdc=no 9081fi 9082rm -f conftest* 9083 9084fi 9085 9086if test $ac_cv_header_stdc = yes; then 9087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9089/* end confdefs.h. */ 9090#include <stdlib.h> 9091 9092_ACEOF 9093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9094 $EGREP "free" >/dev/null 2>&1; then : 9095 9096else 9097 ac_cv_header_stdc=no 9098fi 9099rm -f conftest* 9100 9101fi 9102 9103if test $ac_cv_header_stdc = yes; then 9104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9105 if test "$cross_compiling" = yes; then : 9106 : 9107else 9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9109/* end confdefs.h. */ 9110#include <ctype.h> 9111#include <stdlib.h> 9112#if ((' ' & 0x0FF) == 0x020) 9113# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9114# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9115#else 9116# define ISLOWER(c) \ 9117 (('a' <= (c) && (c) <= 'i') \ 9118 || ('j' <= (c) && (c) <= 'r') \ 9119 || ('s' <= (c) && (c) <= 'z')) 9120# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9121#endif 9122 9123#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9124int 9125main () 9126{ 9127 int i; 9128 for (i = 0; i < 256; i++) 9129 if (XOR (islower (i), ISLOWER (i)) 9130 || toupper (i) != TOUPPER (i)) 9131 return 2; 9132 return 0; 9133} 9134_ACEOF 9135if ac_fn_c_try_run "$LINENO"; then : 9136 9137else 9138 ac_cv_header_stdc=no 9139fi 9140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9141 conftest.$ac_objext conftest.beam conftest.$ac_ext 9142fi 9143 9144fi 9145fi 9146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9147$as_echo "$ac_cv_header_stdc" >&6; } 9148if test $ac_cv_header_stdc = yes; then 9149 9150$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9151 9152fi 9153 9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 9155$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 9156if ${ac_cv_header_time+:} false; then : 9157 $as_echo_n "(cached) " >&6 9158else 9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9160/* end confdefs.h. */ 9161#include <sys/types.h> 9162#include <sys/time.h> 9163#include <time.h> 9164 9165int 9166main () 9167{ 9168if ((struct tm *) 0) 9169return 0; 9170 ; 9171 return 0; 9172} 9173_ACEOF 9174if ac_fn_c_try_compile "$LINENO"; then : 9175 ac_cv_header_time=yes 9176else 9177 ac_cv_header_time=no 9178fi 9179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9180fi 9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 9182$as_echo "$ac_cv_header_time" >&6; } 9183if test $ac_cv_header_time = yes; then 9184 9185$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 9186 9187fi 9188 9189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 9190$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 9191if ${ac_cv_header_sys_wait_h+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193else 9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9195/* end confdefs.h. */ 9196#include <sys/types.h> 9197#include <sys/wait.h> 9198#ifndef WEXITSTATUS 9199# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 9200#endif 9201#ifndef WIFEXITED 9202# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 9203#endif 9204 9205int 9206main () 9207{ 9208 int s; 9209 wait (&s); 9210 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 9211 ; 9212 return 0; 9213} 9214_ACEOF 9215if ac_fn_c_try_compile "$LINENO"; then : 9216 ac_cv_header_sys_wait_h=yes 9217else 9218 ac_cv_header_sys_wait_h=no 9219fi 9220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9221fi 9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 9223$as_echo "$ac_cv_header_sys_wait_h" >&6; } 9224if test $ac_cv_header_sys_wait_h = yes; then 9225 9226$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 9227 9228fi 9229 9230 9231for ac_header in \ 9232 arpa/inet.h \ 9233 crypt.h \ 9234 dlfcn.h \ 9235 errno.h \ 9236 fcntl.h \ 9237 features.h \ 9238 fnmatch.h \ 9239 getopt.h \ 9240 glob.h \ 9241 grp.h \ 9242 inttypes.h \ 9243 limits.h \ 9244 linux/if_packet.h \ 9245 malloc.h \ 9246 netdb.h \ 9247 netinet/in.h \ 9248 prot.h \ 9249 pwd.h \ 9250 resource.h \ 9251 semaphore.h \ 9252 sia.h \ 9253 siad.h \ 9254 signal.h \ 9255 stdatomic.h \ 9256 stdalign.h \ 9257 stdbool.h \ 9258 stddef.h \ 9259 stdint.h \ 9260 stdio.h \ 9261 sys/event.h \ 9262 sys/fcntl.h \ 9263 sys/prctl.h \ 9264 sys/procctl.h \ 9265 sys/ptrace.h \ 9266 sys/resource.h \ 9267 sys/security.h \ 9268 sys/select.h \ 9269 sys/socket.h \ 9270 sys/time.h \ 9271 sys/types.h \ 9272 sys/un.h \ 9273 sys/wait.h \ 9274 syslog.h \ 9275 unistd.h \ 9276 utime.h \ 9277 utmp.h \ 9278 utmpx.h \ 9279 winsock.h 9280 9281do : 9282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9283ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9284if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9285 cat >>confdefs.h <<_ACEOF 9286#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9287_ACEOF 9288 9289fi 9290 9291done 9292 9293 9294for ac_header in net/if.h 9295do : 9296 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 9297 #ifdef HAVE_SYS_SOCKET_H 9298 # include <sys/socket.h> 9299 #endif 9300 9301 9302" 9303if test "x$ac_cv_header_net_if_h" = xyes; then : 9304 cat >>confdefs.h <<_ACEOF 9305#define HAVE_NET_IF_H 1 9306_ACEOF 9307 9308fi 9309 9310done 9311 9312 9313if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes" 9314then 9315 9316$as_echo "#define OSFC2 /**/" >>confdefs.h 9317 9318fi 9319 9320if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes" 9321then 9322 9323$as_echo "#define OSFSIA /**/" >>confdefs.h 9324 9325fi 9326 9327if test "x$WITH_OPENSSL" = xyes; then 9328 OLD_LIBS="$LIBS" 9329 9330 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5" 9331 9332 smart_try_dir="$openssl_lib_dir" 9333 9334 9335sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'` 9336sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'` 9337 9338old_LIBS="$LIBS" 9339old_CPPFLAGS="$CPPFLAGS" 9340smart_lib= 9341smart_ldflags= 9342smart_lib_dir= 9343 9344if test "x$smart_try_dir" != "x"; then 9345 for try in $smart_try_dir; do 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5 9347$as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; } 9348 LIBS="-lcrypto $old_LIBS" 9349 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351/* end confdefs.h. */ 9352extern char DH_new(); 9353int 9354main () 9355{ 9356DH_new() 9357 ; 9358 return 0; 9359} 9360_ACEOF 9361if ac_fn_c_try_link "$LINENO"; then : 9362 9363 smart_lib="-lcrypto" 9364 smart_ldflags="-L$try -Wl,-rpath,$try" 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9366$as_echo "yes" >&6; } 9367 break 9368 9369else 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9371$as_echo "no" >&6; } 9372fi 9373rm -f core conftest.err conftest.$ac_objext \ 9374 conftest$ac_exeext conftest.$ac_ext 9375 done 9376 LIBS="$old_LIBS" 9377 CPPFLAGS="$old_CPPFLAGS" 9378fi 9379 9380if test "x$smart_lib" = "x"; then 9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5 9382$as_echo_n "checking for DH_new in -lcrypto... " >&6; } 9383 LIBS="-lcrypto $old_LIBS" 9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9385/* end confdefs.h. */ 9386extern char DH_new(); 9387int 9388main () 9389{ 9390DH_new() 9391 ; 9392 return 0; 9393} 9394_ACEOF 9395if ac_fn_c_try_link "$LINENO"; then : 9396 9397 smart_lib="-lcrypto" 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9399$as_echo "yes" >&6; } 9400 9401else 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9403$as_echo "no" >&6; } 9404fi 9405rm -f core conftest.err conftest.$ac_objext \ 9406 conftest$ac_exeext conftest.$ac_ext 9407 LIBS="$old_LIBS" 9408fi 9409 9410if test "x$smart_lib" = "x"; then 9411 9412 9413if test "x$LOCATE" != "x"; then 9414 DIRS= 9415 file=libcrypto${libltdl_cv_shlibext} 9416 9417 for x in `${LOCATE} $file 2>/dev/null`; do 9418 base=`echo $x | sed "s%/${file}%%"` 9419 if test "x$x" = "x$base"; then 9420 continue; 9421 fi 9422 9423 dir=`${DIRNAME} $x 2>/dev/null` 9424 exclude=`echo ${dir} | ${GREP} /home` 9425 if test "x$exclude" != "x"; then 9426 continue 9427 fi 9428 9429 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 9430 if test "x$already" = "x"; then 9431 DIRS="$DIRS $dir" 9432 fi 9433 done 9434fi 9435 9436eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 9437 9438 9439 9440if test "x$LOCATE" != "x"; then 9441 DIRS= 9442 file=libcrypto.a 9443 9444 for x in `${LOCATE} $file 2>/dev/null`; do 9445 base=`echo $x | sed "s%/${file}%%"` 9446 if test "x$x" = "x$base"; then 9447 continue; 9448 fi 9449 9450 dir=`${DIRNAME} $x 2>/dev/null` 9451 exclude=`echo ${dir} | ${GREP} /home` 9452 if test "x$exclude" != "x"; then 9453 continue 9454 fi 9455 9456 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 9457 if test "x$already" = "x"; then 9458 DIRS="$DIRS $dir" 9459 fi 9460 done 9461fi 9462 9463eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 9464 9465 9466 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5 9468$as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; } 9469 LIBS="-lcrypto $old_LIBS" 9470 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9472/* end confdefs.h. */ 9473extern char DH_new(); 9474int 9475main () 9476{ 9477DH_new() 9478 ; 9479 return 0; 9480} 9481_ACEOF 9482if ac_fn_c_try_link "$LINENO"; then : 9483 9484 smart_lib="-lcrypto" 9485 smart_ldflags="-L$try -Wl,-rpath,$try" 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9487$as_echo "yes" >&6; } 9488 break 9489 9490else 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9492$as_echo "no" >&6; } 9493fi 9494rm -f core conftest.err conftest.$ac_objext \ 9495 conftest$ac_exeext conftest.$ac_ext 9496 done 9497 LIBS="$old_LIBS" 9498 CPPFLAGS="$old_CPPFLAGS" 9499fi 9500 9501if test "x$smart_lib" != "x"; then 9502 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 9503 LIBS="$smart_ldflags $smart_lib $old_LIBS" 9504 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 9505fi 9506 9507 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then 9508 9509$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 9510 9511 OPENSSL_LIBS="$smart_lib" 9512 OPENSSL_LDFLAGS="$smart_ldflags" 9513 9514 9515 9516sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'` 9517sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'` 9518 9519old_LIBS="$LIBS" 9520old_CPPFLAGS="$CPPFLAGS" 9521smart_lib= 9522smart_ldflags= 9523smart_lib_dir= 9524 9525if test "x$smart_try_dir" != "x"; then 9526 for try in $smart_try_dir; do 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5 9528$as_echo_n "checking for SSL_new in -lssl in $try... " >&6; } 9529 LIBS="-lssl $old_LIBS" 9530 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9532/* end confdefs.h. */ 9533extern char SSL_new(); 9534int 9535main () 9536{ 9537SSL_new() 9538 ; 9539 return 0; 9540} 9541_ACEOF 9542if ac_fn_c_try_link "$LINENO"; then : 9543 9544 smart_lib="-lssl" 9545 smart_ldflags="-L$try -Wl,-rpath,$try" 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9547$as_echo "yes" >&6; } 9548 break 9549 9550else 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9552$as_echo "no" >&6; } 9553fi 9554rm -f core conftest.err conftest.$ac_objext \ 9555 conftest$ac_exeext conftest.$ac_ext 9556 done 9557 LIBS="$old_LIBS" 9558 CPPFLAGS="$old_CPPFLAGS" 9559fi 9560 9561if test "x$smart_lib" = "x"; then 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 9563$as_echo_n "checking for SSL_new in -lssl... " >&6; } 9564 LIBS="-lssl $old_LIBS" 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567extern char SSL_new(); 9568int 9569main () 9570{ 9571SSL_new() 9572 ; 9573 return 0; 9574} 9575_ACEOF 9576if ac_fn_c_try_link "$LINENO"; then : 9577 9578 smart_lib="-lssl" 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9580$as_echo "yes" >&6; } 9581 9582else 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9584$as_echo "no" >&6; } 9585fi 9586rm -f core conftest.err conftest.$ac_objext \ 9587 conftest$ac_exeext conftest.$ac_ext 9588 LIBS="$old_LIBS" 9589fi 9590 9591if test "x$smart_lib" = "x"; then 9592 9593 9594if test "x$LOCATE" != "x"; then 9595 DIRS= 9596 file=libssl${libltdl_cv_shlibext} 9597 9598 for x in `${LOCATE} $file 2>/dev/null`; do 9599 base=`echo $x | sed "s%/${file}%%"` 9600 if test "x$x" = "x$base"; then 9601 continue; 9602 fi 9603 9604 dir=`${DIRNAME} $x 2>/dev/null` 9605 exclude=`echo ${dir} | ${GREP} /home` 9606 if test "x$exclude" != "x"; then 9607 continue 9608 fi 9609 9610 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 9611 if test "x$already" = "x"; then 9612 DIRS="$DIRS $dir" 9613 fi 9614 done 9615fi 9616 9617eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 9618 9619 9620 9621if test "x$LOCATE" != "x"; then 9622 DIRS= 9623 file=libssl.a 9624 9625 for x in `${LOCATE} $file 2>/dev/null`; do 9626 base=`echo $x | sed "s%/${file}%%"` 9627 if test "x$x" = "x$base"; then 9628 continue; 9629 fi 9630 9631 dir=`${DIRNAME} $x 2>/dev/null` 9632 exclude=`echo ${dir} | ${GREP} /home` 9633 if test "x$exclude" != "x"; then 9634 continue 9635 fi 9636 9637 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 9638 if test "x$already" = "x"; then 9639 DIRS="$DIRS $dir" 9640 fi 9641 done 9642fi 9643 9644eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 9645 9646 9647 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5 9649$as_echo_n "checking for SSL_new in -lssl in $try... " >&6; } 9650 LIBS="-lssl $old_LIBS" 9651 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9653/* end confdefs.h. */ 9654extern char SSL_new(); 9655int 9656main () 9657{ 9658SSL_new() 9659 ; 9660 return 0; 9661} 9662_ACEOF 9663if ac_fn_c_try_link "$LINENO"; then : 9664 9665 smart_lib="-lssl" 9666 smart_ldflags="-L$try -Wl,-rpath,$try" 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9668$as_echo "yes" >&6; } 9669 break 9670 9671else 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9673$as_echo "no" >&6; } 9674fi 9675rm -f core conftest.err conftest.$ac_objext \ 9676 conftest$ac_exeext conftest.$ac_ext 9677 done 9678 LIBS="$old_LIBS" 9679 CPPFLAGS="$old_CPPFLAGS" 9680fi 9681 9682if test "x$smart_lib" != "x"; then 9683 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 9684 LIBS="$smart_ldflags $smart_lib $old_LIBS" 9685 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 9686fi 9687 9688 if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then 9689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9691as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL) 9692See \`config.log' for more details" "$LINENO" 5; } 9693 else 9694 9695$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h 9696 9697 OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib" 9698 9699 if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then 9700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9702as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\" 9703See \`config.log' for more details" "$LINENO" 5; } 9704 fi 9705 fi 9706 else 9707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9709as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL) 9710See \`config.log' for more details" "$LINENO" 5; } 9711 fi 9712 9713 smart_try_dir="$openssl_include_dir" 9714 9715 9716ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'` 9717old_CPPFLAGS="$CPPFLAGS" 9718smart_include= 9719smart_include_dir="/usr/local/include /opt/include" 9720 9721_smart_try_dir= 9722_smart_include_dir= 9723 9724for _prefix in $smart_prefix ""; do 9725 for _dir in $smart_try_dir; do 9726 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}" 9727 done 9728 9729 for _dir in $smart_include_dir; do 9730 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}" 9731 done 9732done 9733 9734if test "x$_smart_try_dir" != "x"; then 9735 for try in $_smart_try_dir; do 9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5 9737$as_echo_n "checking for openssl/ssl.h in $try... " >&6; } 9738 CPPFLAGS="-isystem $try $old_CPPFLAGS" 9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9740/* end confdefs.h. */ 9741 9742 #include <openssl/ssl.h> 9743int 9744main () 9745{ 9746int a = 1; 9747 ; 9748 return 0; 9749} 9750_ACEOF 9751if ac_fn_c_try_compile "$LINENO"; then : 9752 9753 smart_include="-isystem $try" 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9755$as_echo "yes" >&6; } 9756 break 9757 9758else 9759 9760 smart_include= 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9762$as_echo "no" >&6; } 9763 9764fi 9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9766 done 9767 CPPFLAGS="$old_CPPFLAGS" 9768fi 9769 9770if test "x$smart_include" = "x"; then 9771 for _prefix in $smart_prefix; do 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5 9773$as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; } 9774 9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776/* end confdefs.h. */ 9777 9778 #include <openssl/ssl.h> 9779int 9780main () 9781{ 9782int a = 1; 9783 ; 9784 return 0; 9785} 9786_ACEOF 9787if ac_fn_c_try_compile "$LINENO"; then : 9788 9789 smart_include="-isystem ${_prefix}/" 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9791$as_echo "yes" >&6; } 9792 break 9793 9794else 9795 9796 smart_include= 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9798$as_echo "no" >&6; } 9799 9800fi 9801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9802 done 9803fi 9804 9805if test "x$smart_include" = "x"; then 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5 9807$as_echo_n "checking for openssl/ssl.h... " >&6; } 9808 9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9810/* end confdefs.h. */ 9811 9812 #include <openssl/ssl.h> 9813int 9814main () 9815{ 9816int a = 1; 9817 ; 9818 return 0; 9819} 9820_ACEOF 9821if ac_fn_c_try_compile "$LINENO"; then : 9822 9823 smart_include=" " 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9825$as_echo "yes" >&6; } 9826 break 9827 9828else 9829 9830 smart_include= 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9832$as_echo "no" >&6; } 9833 9834fi 9835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9836fi 9837 9838if test "x$smart_include" = "x"; then 9839 9840 for prefix in $smart_prefix; do 9841 9842 9843if test "x$LOCATE" != "x"; then 9844 DIRS= 9845 file="${_prefix}/${1}" 9846 9847 for x in `${LOCATE} $file 2>/dev/null`; do 9848 base=`echo $x | sed "s%/${file}%%"` 9849 if test "x$x" = "x$base"; then 9850 continue; 9851 fi 9852 9853 dir=`${DIRNAME} $x 2>/dev/null` 9854 exclude=`echo ${dir} | ${GREP} /home` 9855 if test "x$exclude" != "x"; then 9856 continue 9857 fi 9858 9859 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 9860 if test "x$already" = "x"; then 9861 DIRS="$DIRS $dir" 9862 fi 9863 done 9864fi 9865 9866eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 9867 9868 done 9869 9870 9871if test "x$LOCATE" != "x"; then 9872 DIRS= 9873 file=openssl/ssl.h 9874 9875 for x in `${LOCATE} $file 2>/dev/null`; do 9876 base=`echo $x | sed "s%/${file}%%"` 9877 if test "x$x" = "x$base"; then 9878 continue; 9879 fi 9880 9881 dir=`${DIRNAME} $x 2>/dev/null` 9882 exclude=`echo ${dir} | ${GREP} /home` 9883 if test "x$exclude" != "x"; then 9884 continue 9885 fi 9886 9887 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 9888 if test "x$already" = "x"; then 9889 DIRS="$DIRS $dir" 9890 fi 9891 done 9892fi 9893 9894eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 9895 9896 9897 for try in $_smart_include_dir; do 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5 9899$as_echo_n "checking for openssl/ssl.h in $try... " >&6; } 9900 CPPFLAGS="-isystem $try $old_CPPFLAGS" 9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902/* end confdefs.h. */ 9903 9904 #include <openssl/ssl.h> 9905int 9906main () 9907{ 9908int a = 1; 9909 ; 9910 return 0; 9911} 9912_ACEOF 9913if ac_fn_c_try_compile "$LINENO"; then : 9914 9915 smart_include="-isystem $try" 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9917$as_echo "yes" >&6; } 9918 break 9919 9920else 9921 9922 smart_include= 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9924$as_echo "no" >&6; } 9925 9926fi 9927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9928 done 9929 CPPFLAGS="$old_CPPFLAGS" 9930fi 9931 9932if test "x$smart_include" != "x"; then 9933 eval "ac_cv_header_$ac_safe=yes" 9934 CPPFLAGS="$smart_include $old_CPPFLAGS" 9935 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS" 9936fi 9937 9938smart_prefix= 9939 9940 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then 9941 9942$as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 9943 9944 9945 for ac_header in \ 9946 openssl/asn1.h \ 9947 openssl/conf.h \ 9948 openssl/crypto.h \ 9949 openssl/err.h \ 9950 openssl/evp.h \ 9951 openssl/hmac.h \ 9952 openssl/md5.h \ 9953 openssl/md4.h \ 9954 openssl/rand.h \ 9955 openssl/sha.h \ 9956 openssl/ssl.h \ 9957 openssl/ocsp.h \ 9958 openssl/engine.h 9959do : 9960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9961ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9963 cat >>confdefs.h <<_ACEOF 9964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9965_ACEOF 9966 OPENSSL_CPPFLAGS="$smart_include" 9967else 9968 9969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9971as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL) 9972See \`config.log' for more details" "$LINENO" 5; } 9973 9974 9975fi 9976 9977done 9978 9979 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5 9981$as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; } 9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9983/* end confdefs.h. */ 9984#include <openssl/crypto.h> 9985 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L) 9986 yes 9987 #endif 9988 9989_ACEOF 9990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9991 $EGREP "yes" >/dev/null 2>&1; then : 9992 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9994$as_echo "yes" >&6; } 9995 9996else 9997 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9999$as_echo "no" >&6; } 10000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10002as_fn_error $? "OpenSSL version too old 10003See \`config.log' for more details" "$LINENO" 5; } 10004 10005 10006fi 10007rm -f conftest* 10008 10009 10010 old_CPPFLAGS="$CPPFLAGS" 10011 CPPFLAGS="$OPENSSL_CPPFLAGS $CPPFLAGS" 10012 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5 10014$as_echo_n "checking OpenSSL library and header version consistency... " >&6; } 10015 if test "$cross_compiling" = yes; then : 10016 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling (assuming yes)" >&5 10018$as_echo "cross-compiling (assuming yes)" >&6; } 10019 10020 10021else 10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10023/* end confdefs.h. */ 10024 10025 #include <stdio.h> 10026 #include <openssl/opensslv.h> 10027 #include <openssl/crypto.h> 10028 10029int 10030main () 10031{ 10032 10033 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER); 10034 if (SSLeay() == OPENSSL_VERSION_NUMBER) { 10035 return 0; 10036 } else { 10037 return 1; 10038 } 10039 10040 10041 ; 10042 return 0; 10043} 10044_ACEOF 10045if ac_fn_c_try_run "$LINENO"; then : 10046 10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10048$as_echo "yes" >&6; } 10049 10050else 10051 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10053$as_echo "no" >&6; } 10054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10056as_fn_error $? "OpenSSL library version does not match header version 10057See \`config.log' for more details" "$LINENO" 5; } 10058 10059fi 10060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10061 conftest.$ac_objext conftest.beam conftest.$ac_ext 10062fi 10063 10064 for ac_func in \ 10065 SSL_get_client_random \ 10066 SSL_get_server_random \ 10067 SSL_SESSION_get_master_key \ 10068 HMAC_CTX_new \ 10069 HMAC_CTX_free \ 10070 ASN1_STRING_get0_data \ 10071 CONF_modules_load_file \ 10072 CRYPTO_set_id_callback \ 10073 CRYPTO_set_locking_callback 10074 10075do : 10076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10077ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10078if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10079 cat >>confdefs.h <<_ACEOF 10080#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10081_ACEOF 10082 10083fi 10084done 10085 10086 CPPFLAGS="$old_CPPFLAGS" 10087 fi 10088 10089 LIBS="$OLD_LIBS" 10090 10091 10092 10093 export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS 10094fi 10095 10096if test "x$PCAP_LIBS" = x; then 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5 10098$as_echo "$as_me: skipping test for pcap.h." >&6;} 10099else 10100 smart_try_dir="$pcap_include_dir" 10101 10102 10103ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'` 10104old_CPPFLAGS="$CPPFLAGS" 10105smart_include= 10106smart_include_dir="/usr/local/include /opt/include" 10107 10108_smart_try_dir= 10109_smart_include_dir= 10110 10111for _prefix in $smart_prefix ""; do 10112 for _dir in $smart_try_dir; do 10113 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}" 10114 done 10115 10116 for _dir in $smart_include_dir; do 10117 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}" 10118 done 10119done 10120 10121if test "x$_smart_try_dir" != "x"; then 10122 for try in $_smart_try_dir; do 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5 10124$as_echo_n "checking for pcap.h in $try... " >&6; } 10125 CPPFLAGS="-isystem $try $old_CPPFLAGS" 10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128 10129 #include <pcap.h> 10130int 10131main () 10132{ 10133int a = 1; 10134 ; 10135 return 0; 10136} 10137_ACEOF 10138if ac_fn_c_try_compile "$LINENO"; then : 10139 10140 smart_include="-isystem $try" 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10142$as_echo "yes" >&6; } 10143 break 10144 10145else 10146 10147 smart_include= 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10149$as_echo "no" >&6; } 10150 10151fi 10152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10153 done 10154 CPPFLAGS="$old_CPPFLAGS" 10155fi 10156 10157if test "x$smart_include" = "x"; then 10158 for _prefix in $smart_prefix; do 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5 10160$as_echo_n "checking for ${_prefix}/pcap.h... " >&6; } 10161 10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10163/* end confdefs.h. */ 10164 10165 #include <pcap.h> 10166int 10167main () 10168{ 10169int a = 1; 10170 ; 10171 return 0; 10172} 10173_ACEOF 10174if ac_fn_c_try_compile "$LINENO"; then : 10175 10176 smart_include="-isystem ${_prefix}/" 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10178$as_echo "yes" >&6; } 10179 break 10180 10181else 10182 10183 smart_include= 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10185$as_echo "no" >&6; } 10186 10187fi 10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10189 done 10190fi 10191 10192if test "x$smart_include" = "x"; then 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5 10194$as_echo_n "checking for pcap.h... " >&6; } 10195 10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198 10199 #include <pcap.h> 10200int 10201main () 10202{ 10203int a = 1; 10204 ; 10205 return 0; 10206} 10207_ACEOF 10208if ac_fn_c_try_compile "$LINENO"; then : 10209 10210 smart_include=" " 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10212$as_echo "yes" >&6; } 10213 break 10214 10215else 10216 10217 smart_include= 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10219$as_echo "no" >&6; } 10220 10221fi 10222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10223fi 10224 10225if test "x$smart_include" = "x"; then 10226 10227 for prefix in $smart_prefix; do 10228 10229 10230if test "x$LOCATE" != "x"; then 10231 DIRS= 10232 file="${_prefix}/${1}" 10233 10234 for x in `${LOCATE} $file 2>/dev/null`; do 10235 base=`echo $x | sed "s%/${file}%%"` 10236 if test "x$x" = "x$base"; then 10237 continue; 10238 fi 10239 10240 dir=`${DIRNAME} $x 2>/dev/null` 10241 exclude=`echo ${dir} | ${GREP} /home` 10242 if test "x$exclude" != "x"; then 10243 continue 10244 fi 10245 10246 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 10247 if test "x$already" = "x"; then 10248 DIRS="$DIRS $dir" 10249 fi 10250 done 10251fi 10252 10253eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 10254 10255 done 10256 10257 10258if test "x$LOCATE" != "x"; then 10259 DIRS= 10260 file=pcap.h 10261 10262 for x in `${LOCATE} $file 2>/dev/null`; do 10263 base=`echo $x | sed "s%/${file}%%"` 10264 if test "x$x" = "x$base"; then 10265 continue; 10266 fi 10267 10268 dir=`${DIRNAME} $x 2>/dev/null` 10269 exclude=`echo ${dir} | ${GREP} /home` 10270 if test "x$exclude" != "x"; then 10271 continue 10272 fi 10273 10274 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 10275 if test "x$already" = "x"; then 10276 DIRS="$DIRS $dir" 10277 fi 10278 done 10279fi 10280 10281eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 10282 10283 10284 for try in $_smart_include_dir; do 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5 10286$as_echo_n "checking for pcap.h in $try... " >&6; } 10287 CPPFLAGS="-isystem $try $old_CPPFLAGS" 10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10289/* end confdefs.h. */ 10290 10291 #include <pcap.h> 10292int 10293main () 10294{ 10295int a = 1; 10296 ; 10297 return 0; 10298} 10299_ACEOF 10300if ac_fn_c_try_compile "$LINENO"; then : 10301 10302 smart_include="-isystem $try" 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10304$as_echo "yes" >&6; } 10305 break 10306 10307else 10308 10309 smart_include= 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10311$as_echo "no" >&6; } 10312 10313fi 10314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10315 done 10316 CPPFLAGS="$old_CPPFLAGS" 10317fi 10318 10319if test "x$smart_include" != "x"; then 10320 eval "ac_cv_header_$ac_safe=yes" 10321 CPPFLAGS="$smart_include $old_CPPFLAGS" 10322 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS" 10323fi 10324 10325smart_prefix= 10326 10327 if test "x$ac_cv_header_pcap_h" = "xyes" && test "x$ac_cv_lib_pcap_pcap_open_live" = "xyes"; then 10328 10329$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h 10330 10331 10332 10333 else 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&5 10335$as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;} 10336 fi 10337fi 10338 10339if test "x$COLLECTDC_LIBS" = x; then 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5 10341$as_echo "$as_me: skipping test for collectd/client.h." >&6;} 10342else 10343 smart_try_dir="$collectdclient_include_dir" 10344 10345 10346ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'` 10347old_CPPFLAGS="$CPPFLAGS" 10348smart_include= 10349smart_include_dir="/usr/local/include /opt/include" 10350 10351_smart_try_dir= 10352_smart_include_dir= 10353 10354for _prefix in $smart_prefix ""; do 10355 for _dir in $smart_try_dir; do 10356 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}" 10357 done 10358 10359 for _dir in $smart_include_dir; do 10360 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}" 10361 done 10362done 10363 10364if test "x$_smart_try_dir" != "x"; then 10365 for try in $_smart_try_dir; do 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5 10367$as_echo_n "checking for collectd/client.h in $try... " >&6; } 10368 CPPFLAGS="-isystem $try $old_CPPFLAGS" 10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10370/* end confdefs.h. */ 10371 10372 #include <collectd/client.h> 10373int 10374main () 10375{ 10376int a = 1; 10377 ; 10378 return 0; 10379} 10380_ACEOF 10381if ac_fn_c_try_compile "$LINENO"; then : 10382 10383 smart_include="-isystem $try" 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10385$as_echo "yes" >&6; } 10386 break 10387 10388else 10389 10390 smart_include= 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10392$as_echo "no" >&6; } 10393 10394fi 10395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10396 done 10397 CPPFLAGS="$old_CPPFLAGS" 10398fi 10399 10400if test "x$smart_include" = "x"; then 10401 for _prefix in $smart_prefix; do 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5 10403$as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; } 10404 10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406/* end confdefs.h. */ 10407 10408 #include <collectd/client.h> 10409int 10410main () 10411{ 10412int a = 1; 10413 ; 10414 return 0; 10415} 10416_ACEOF 10417if ac_fn_c_try_compile "$LINENO"; then : 10418 10419 smart_include="-isystem ${_prefix}/" 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10421$as_echo "yes" >&6; } 10422 break 10423 10424else 10425 10426 smart_include= 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10428$as_echo "no" >&6; } 10429 10430fi 10431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10432 done 10433fi 10434 10435if test "x$smart_include" = "x"; then 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5 10437$as_echo_n "checking for collectd/client.h... " >&6; } 10438 10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440/* end confdefs.h. */ 10441 10442 #include <collectd/client.h> 10443int 10444main () 10445{ 10446int a = 1; 10447 ; 10448 return 0; 10449} 10450_ACEOF 10451if ac_fn_c_try_compile "$LINENO"; then : 10452 10453 smart_include=" " 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10455$as_echo "yes" >&6; } 10456 break 10457 10458else 10459 10460 smart_include= 10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10462$as_echo "no" >&6; } 10463 10464fi 10465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10466fi 10467 10468if test "x$smart_include" = "x"; then 10469 10470 for prefix in $smart_prefix; do 10471 10472 10473if test "x$LOCATE" != "x"; then 10474 DIRS= 10475 file="${_prefix}/${1}" 10476 10477 for x in `${LOCATE} $file 2>/dev/null`; do 10478 base=`echo $x | sed "s%/${file}%%"` 10479 if test "x$x" = "x$base"; then 10480 continue; 10481 fi 10482 10483 dir=`${DIRNAME} $x 2>/dev/null` 10484 exclude=`echo ${dir} | ${GREP} /home` 10485 if test "x$exclude" != "x"; then 10486 continue 10487 fi 10488 10489 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 10490 if test "x$already" = "x"; then 10491 DIRS="$DIRS $dir" 10492 fi 10493 done 10494fi 10495 10496eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 10497 10498 done 10499 10500 10501if test "x$LOCATE" != "x"; then 10502 DIRS= 10503 file=collectd/client.h 10504 10505 for x in `${LOCATE} $file 2>/dev/null`; do 10506 base=`echo $x | sed "s%/${file}%%"` 10507 if test "x$x" = "x$base"; then 10508 continue; 10509 fi 10510 10511 dir=`${DIRNAME} $x 2>/dev/null` 10512 exclude=`echo ${dir} | ${GREP} /home` 10513 if test "x$exclude" != "x"; then 10514 continue 10515 fi 10516 10517 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 10518 if test "x$already" = "x"; then 10519 DIRS="$DIRS $dir" 10520 fi 10521 done 10522fi 10523 10524eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 10525 10526 10527 for try in $_smart_include_dir; do 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5 10529$as_echo_n "checking for collectd/client.h in $try... " >&6; } 10530 CPPFLAGS="-isystem $try $old_CPPFLAGS" 10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10532/* end confdefs.h. */ 10533 10534 #include <collectd/client.h> 10535int 10536main () 10537{ 10538int a = 1; 10539 ; 10540 return 0; 10541} 10542_ACEOF 10543if ac_fn_c_try_compile "$LINENO"; then : 10544 10545 smart_include="-isystem $try" 10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10547$as_echo "yes" >&6; } 10548 break 10549 10550else 10551 10552 smart_include= 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10554$as_echo "no" >&6; } 10555 10556fi 10557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10558 done 10559 CPPFLAGS="$old_CPPFLAGS" 10560fi 10561 10562if test "x$smart_include" != "x"; then 10563 eval "ac_cv_header_$ac_safe=yes" 10564 CPPFLAGS="$smart_include $old_CPPFLAGS" 10565 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS" 10566fi 10567 10568smart_prefix= 10569 10570 if test "x$ac_cv_header_collectd_client_h" = "xyes"; then 10571 10572$as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h 10573 10574 10575 10576 else 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5 10578$as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;} 10579 fi 10580fi 10581 10582if test "x$HAVE_LIBCAP" = x; then 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for cap.h." >&5 10584$as_echo "$as_me: skipping test for cap.h." >&6;} 10585else 10586 smart_try_dir="$cap_include_dir" 10587 10588 10589ac_safe=`echo "sys/capability.h" | sed 'y%./+-%__pm%'` 10590old_CPPFLAGS="$CPPFLAGS" 10591smart_include= 10592smart_include_dir="/usr/local/include /opt/include" 10593 10594_smart_try_dir= 10595_smart_include_dir= 10596 10597for _prefix in $smart_prefix ""; do 10598 for _dir in $smart_try_dir; do 10599 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}" 10600 done 10601 10602 for _dir in $smart_include_dir; do 10603 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}" 10604 done 10605done 10606 10607if test "x$_smart_try_dir" != "x"; then 10608 for try in $_smart_try_dir; do 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5 10610$as_echo_n "checking for sys/capability.h in $try... " >&6; } 10611 CPPFLAGS="-isystem $try $old_CPPFLAGS" 10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10613/* end confdefs.h. */ 10614 10615 #include <sys/capability.h> 10616int 10617main () 10618{ 10619int a = 1; 10620 ; 10621 return 0; 10622} 10623_ACEOF 10624if ac_fn_c_try_compile "$LINENO"; then : 10625 10626 smart_include="-isystem $try" 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10628$as_echo "yes" >&6; } 10629 break 10630 10631else 10632 10633 smart_include= 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10635$as_echo "no" >&6; } 10636 10637fi 10638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10639 done 10640 CPPFLAGS="$old_CPPFLAGS" 10641fi 10642 10643if test "x$smart_include" = "x"; then 10644 for _prefix in $smart_prefix; do 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/sys/capability.h" >&5 10646$as_echo_n "checking for ${_prefix}/sys/capability.h... " >&6; } 10647 10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649/* end confdefs.h. */ 10650 10651 #include <sys/capability.h> 10652int 10653main () 10654{ 10655int a = 1; 10656 ; 10657 return 0; 10658} 10659_ACEOF 10660if ac_fn_c_try_compile "$LINENO"; then : 10661 10662 smart_include="-isystem ${_prefix}/" 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10664$as_echo "yes" >&6; } 10665 break 10666 10667else 10668 10669 smart_include= 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10671$as_echo "no" >&6; } 10672 10673fi 10674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10675 done 10676fi 10677 10678if test "x$smart_include" = "x"; then 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h" >&5 10680$as_echo_n "checking for sys/capability.h... " >&6; } 10681 10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10683/* end confdefs.h. */ 10684 10685 #include <sys/capability.h> 10686int 10687main () 10688{ 10689int a = 1; 10690 ; 10691 return 0; 10692} 10693_ACEOF 10694if ac_fn_c_try_compile "$LINENO"; then : 10695 10696 smart_include=" " 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10698$as_echo "yes" >&6; } 10699 break 10700 10701else 10702 10703 smart_include= 10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10705$as_echo "no" >&6; } 10706 10707fi 10708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10709fi 10710 10711if test "x$smart_include" = "x"; then 10712 10713 for prefix in $smart_prefix; do 10714 10715 10716if test "x$LOCATE" != "x"; then 10717 DIRS= 10718 file="${_prefix}/${1}" 10719 10720 for x in `${LOCATE} $file 2>/dev/null`; do 10721 base=`echo $x | sed "s%/${file}%%"` 10722 if test "x$x" = "x$base"; then 10723 continue; 10724 fi 10725 10726 dir=`${DIRNAME} $x 2>/dev/null` 10727 exclude=`echo ${dir} | ${GREP} /home` 10728 if test "x$exclude" != "x"; then 10729 continue 10730 fi 10731 10732 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 10733 if test "x$already" = "x"; then 10734 DIRS="$DIRS $dir" 10735 fi 10736 done 10737fi 10738 10739eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 10740 10741 done 10742 10743 10744if test "x$LOCATE" != "x"; then 10745 DIRS= 10746 file=sys/capability.h 10747 10748 for x in `${LOCATE} $file 2>/dev/null`; do 10749 base=`echo $x | sed "s%/${file}%%"` 10750 if test "x$x" = "x$base"; then 10751 continue; 10752 fi 10753 10754 dir=`${DIRNAME} $x 2>/dev/null` 10755 exclude=`echo ${dir} | ${GREP} /home` 10756 if test "x$exclude" != "x"; then 10757 continue 10758 fi 10759 10760 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 10761 if test "x$already" = "x"; then 10762 DIRS="$DIRS $dir" 10763 fi 10764 done 10765fi 10766 10767eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 10768 10769 10770 for try in $_smart_include_dir; do 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5 10772$as_echo_n "checking for sys/capability.h in $try... " >&6; } 10773 CPPFLAGS="-isystem $try $old_CPPFLAGS" 10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10775/* end confdefs.h. */ 10776 10777 #include <sys/capability.h> 10778int 10779main () 10780{ 10781int a = 1; 10782 ; 10783 return 0; 10784} 10785_ACEOF 10786if ac_fn_c_try_compile "$LINENO"; then : 10787 10788 smart_include="-isystem $try" 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10790$as_echo "yes" >&6; } 10791 break 10792 10793else 10794 10795 smart_include= 10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10797$as_echo "no" >&6; } 10798 10799fi 10800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10801 done 10802 CPPFLAGS="$old_CPPFLAGS" 10803fi 10804 10805if test "x$smart_include" != "x"; then 10806 eval "ac_cv_header_$ac_safe=yes" 10807 CPPFLAGS="$smart_include $old_CPPFLAGS" 10808 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS" 10809fi 10810 10811smart_prefix= 10812 10813 if test "x$ac_cv_header_sys_capability_h" = "xyes"; then 10814 10815$as_echo "#define HAVE_CAPABILITY_H 1" >>confdefs.h 10816 10817 else 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&5 10819$as_echo "$as_me: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&2;} 10820 fi 10821fi 10822 10823 10824ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10825if test "x$ac_cv_type_off_t" = xyes; then : 10826 10827else 10828 10829cat >>confdefs.h <<_ACEOF 10830#define off_t long int 10831_ACEOF 10832 10833fi 10834 10835ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10836if test "x$ac_cv_type_pid_t" = xyes; then : 10837 10838else 10839 10840cat >>confdefs.h <<_ACEOF 10841#define pid_t int 10842_ACEOF 10843 10844fi 10845 10846ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10847if test "x$ac_cv_type_size_t" = xyes; then : 10848 10849else 10850 10851cat >>confdefs.h <<_ACEOF 10852#define size_t unsigned int 10853_ACEOF 10854 10855fi 10856 10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10858$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10859if ${ac_cv_type_uid_t+:} false; then : 10860 $as_echo_n "(cached) " >&6 10861else 10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10863/* end confdefs.h. */ 10864#include <sys/types.h> 10865 10866_ACEOF 10867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10868 $EGREP "uid_t" >/dev/null 2>&1; then : 10869 ac_cv_type_uid_t=yes 10870else 10871 ac_cv_type_uid_t=no 10872fi 10873rm -f conftest* 10874 10875fi 10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10877$as_echo "$ac_cv_type_uid_t" >&6; } 10878if test $ac_cv_type_uid_t = no; then 10879 10880$as_echo "#define uid_t int" >>confdefs.h 10881 10882 10883$as_echo "#define gid_t int" >>confdefs.h 10884 10885fi 10886 10887 10888 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 10890$as_echo_n "checking for socklen_t... " >&6; } 10891if ${ac_cv_type_socklen_t+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893else 10894 ac_cv_type_socklen_t=no 10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10896/* end confdefs.h. */ 10897#ifdef HAVE_SYS_TYPES_H 10898 # include <sys/types.h> 10899 #endif 10900 10901 #ifdef HAVE_SYS_SOCKET_H 10902 # include <sys/socket.h> 10903 #endif 10904 10905int 10906main () 10907{ 10908socklen_t foo 10909 ; 10910 return 0; 10911} 10912_ACEOF 10913if ac_fn_c_try_compile "$LINENO"; then : 10914 ac_cv_type_socklen_t=yes 10915fi 10916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10917 10918 10919fi 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 10921$as_echo "$ac_cv_type_socklen_t" >&6; } 10922 10923 if test "$ac_cv_type_socklen_t" != "yes"; then 10924 10925$as_echo "#define socklen_t int" >>confdefs.h 10926 10927 fi 10928 10929 10930 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5 10932$as_echo_n "checking for uint8_t... " >&6; } 10933if ${ac_cv_type_uint8_t+:} false; then : 10934 $as_echo_n "(cached) " >&6 10935else 10936 ac_cv_type_uint8_t=no 10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10938/* end confdefs.h. */ 10939#ifdef HAVE_INTTYPES_H 10940 # include <inttypes.h> 10941 #endif 10942 10943 #ifdef HAVE_STDINT_H 10944 # include <stdint.h> 10945 #endif 10946 10947int 10948main () 10949{ 10950uint8_t foo 10951 ; 10952 return 0; 10953} 10954_ACEOF 10955if ac_fn_c_try_compile "$LINENO"; then : 10956 ac_cv_type_uint8_t=yes 10957fi 10958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10959 10960 10961fi 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5 10963$as_echo "$ac_cv_type_uint8_t" >&6; } 10964 10965 if test "$ac_cv_type_uint8_t" != "yes"; then 10966 10967$as_echo "#define uint8_t unsigned char" >>confdefs.h 10968 10969 fi 10970 10971 10972 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5 10974$as_echo_n "checking for uint16_t... " >&6; } 10975if ${ac_cv_type_uint16_t+:} false; then : 10976 $as_echo_n "(cached) " >&6 10977else 10978 ac_cv_type_uint16_t=no 10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10980/* end confdefs.h. */ 10981#ifdef HAVE_INTTYPES_H 10982 # include <inttypes.h> 10983 #endif 10984 10985 #ifdef HAVE_STDINT_H 10986 # include <stdint.h> 10987 #endif 10988 10989int 10990main () 10991{ 10992uint16_t foo 10993 ; 10994 return 0; 10995} 10996_ACEOF 10997if ac_fn_c_try_compile "$LINENO"; then : 10998 ac_cv_type_uint16_t=yes 10999fi 11000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11001 11002 11003fi 11004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5 11005$as_echo "$ac_cv_type_uint16_t" >&6; } 11006 11007 if test "$ac_cv_type_uint16_t" != "yes"; then 11008 11009$as_echo "#define uint16_t unsigned short" >>confdefs.h 11010 11011 fi 11012 11013 11014 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 11016$as_echo_n "checking for uint32_t... " >&6; } 11017if ${ac_cv_type_uint32_t+:} false; then : 11018 $as_echo_n "(cached) " >&6 11019else 11020 ac_cv_type_uint32_t=no 11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11022/* end confdefs.h. */ 11023#ifdef HAVE_INTTYPES_H 11024 # include <inttypes.h> 11025 #endif 11026 11027 #ifdef HAVE_STDINT_H 11028 # include <stdint.h> 11029 #endif 11030 11031int 11032main () 11033{ 11034uint32_t foo 11035 ; 11036 return 0; 11037} 11038_ACEOF 11039if ac_fn_c_try_compile "$LINENO"; then : 11040 ac_cv_type_uint32_t=yes 11041fi 11042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11043 11044 11045fi 11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5 11047$as_echo "$ac_cv_type_uint32_t" >&6; } 11048 11049 if test "$ac_cv_type_uint32_t" != "yes"; then 11050 11051$as_echo "#define uint32_t unsigned int" >>confdefs.h 11052 11053 fi 11054 11055 11056 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5 11058$as_echo_n "checking for uint64_t... " >&6; } 11059if ${ac_cv_type_uint64_t+:} false; then : 11060 $as_echo_n "(cached) " >&6 11061else 11062 ac_cv_type_uint64_t=no 11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11064/* end confdefs.h. */ 11065#ifdef HAVE_INTTYPES_H 11066 # include <inttypes.h> 11067 #endif 11068 11069 #ifdef HAVE_STDINT_H 11070 # include <stdint.h> 11071 #endif 11072 11073int 11074main () 11075{ 11076uint64_t foo 11077 ; 11078 return 0; 11079} 11080_ACEOF 11081if ac_fn_c_try_compile "$LINENO"; then : 11082 ac_cv_type_uint64_t=yes 11083fi 11084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11085 11086 11087fi 11088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5 11089$as_echo "$ac_cv_type_uint64_t" >&6; } 11090 11091 if test "$ac_cv_type_uint64_t" != "yes"; then 11092 11093$as_echo "#define uint64_t unsigned long long" >>confdefs.h 11094 11095 fi 11096 11097 11098ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" 11099if test "x$ac_cv_type___uint128_t" = xyes; then : 11100 11101$as_echo "#define HAVE___UINT128_T 1" >>confdefs.h 11102 11103fi 11104 11105 11106ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" " 11107 #ifdef HAVE_INTTYPES_H 11108 # include <inttypes.h> 11109 #endif 11110 11111 #ifdef HAVE_STDINT_H 11112 # include <stdint.h> 11113 #endif 11114 11115 11116" 11117if test "x$ac_cv_type_uint128_t" = xyes; then : 11118 11119$as_echo "#define HAVE_UINT128_T 1" >>confdefs.h 11120 11121fi 11122 11123 11124ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" " 11125 #ifdef HAVE_NETINET_IN_H 11126 # include <netinet/in.h> 11127 #endif 11128 11129 11130" 11131if test "x$ac_cv_type_struct_in6_addr" = xyes; then : 11132 11133$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h 11134 11135fi 11136 11137 11138ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 11139 #ifdef HAVE_NETINET_IN_H 11140 # include <netinet/in.h> 11141 #endif 11142 11143 #ifdef HAVE_SYS_SOCKET_H 11144 # include <sys/socket.h> 11145 #endif 11146 11147" 11148if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 11149 11150$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 11151 11152fi 11153 11154 11155ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" " 11156 #ifdef HAVE_NETINET_IN_H 11157 # include <netinet/in.h> 11158 #endif 11159 11160" 11161if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 11162 11163$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h 11164 11165fi 11166 11167 11168ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" " 11169 #ifdef HAVE_SYS_TYPES_H 11170 # include <sys/types.h> 11171 #endif 11172 11173 #ifdef HAVE_SYS_SOCKET_H 11174 # include <sys/socket.h> 11175 #endif 11176 11177 #ifdef HAVE_NETDB_H 11178 # include <netdb.h> 11179 #endif 11180 11181 11182" 11183if test "x$ac_cv_type_struct_addrinfo" = xyes; then : 11184 11185$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 11186 11187fi 11188 11189 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5 11191$as_echo_n "checking if sig_t is defined... " >&6; } 11192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11193/* end confdefs.h. */ 11194 11195 #ifdef HAVE_SIGNAL_H 11196 # include <signal.h> 11197 #endif 11198 11199int 11200main () 11201{ 11202 11203 sig_t func; 11204 return 0; 11205 11206 11207 ; 11208 return 0; 11209} 11210_ACEOF 11211if ac_fn_c_try_link "$LINENO"; then : 11212 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11214$as_echo "yes" >&6; } 11215 11216$as_echo "#define HAVE_SIG_T 1" >>confdefs.h 11217 11218 11219else 11220 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11222$as_echo "no" >&6; } 11223 11224 11225fi 11226rm -f core conftest.err conftest.$ac_objext \ 11227 conftest$ac_exeext conftest.$ac_ext 11228 11229for ac_func in \ 11230 bindat \ 11231 clock_gettime \ 11232 closefrom \ 11233 ctime_r \ 11234 dladdr \ 11235 fcntl \ 11236 fopencookie \ 11237 funopen \ 11238 getaddrinfo \ 11239 getnameinfo \ 11240 getopt_long \ 11241 getpeereid \ 11242 getresuid \ 11243 gettimeofday \ 11244 getusershell \ 11245 gmtime_r \ 11246 if_indextoname \ 11247 inet_aton \ 11248 inet_ntop \ 11249 inet_pton \ 11250 initgroups \ 11251 kqueue \ 11252 localtime_r \ 11253 mallopt \ 11254 mkdirat \ 11255 openat \ 11256 pthread_sigmask \ 11257 setlinebuf \ 11258 setresuid \ 11259 setsid \ 11260 setuid \ 11261 setvbuf \ 11262 sigaction \ 11263 sigprocmask \ 11264 snprintf \ 11265 strcasecmp \ 11266 strlcat \ 11267 strlcpy \ 11268 strncasecmp \ 11269 strsep \ 11270 strsignal \ 11271 unlinkat \ 11272 vdprintf \ 11273 vsnprintf 11274 11275do : 11276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11277ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11278if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11279 cat >>confdefs.h <<_ACEOF 11280#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11281_ACEOF 11282 11283fi 11284done 11285 11286 11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11288$as_echo_n "checking return type of signal handlers... " >&6; } 11289if ${ac_cv_type_signal+:} false; then : 11290 $as_echo_n "(cached) " >&6 11291else 11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11293/* end confdefs.h. */ 11294#include <sys/types.h> 11295#include <signal.h> 11296 11297int 11298main () 11299{ 11300return *(signal (0, 0)) (0) == 1; 11301 ; 11302 return 0; 11303} 11304_ACEOF 11305if ac_fn_c_try_compile "$LINENO"; then : 11306 ac_cv_type_signal=int 11307else 11308 ac_cv_type_signal=void 11309fi 11310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11311fi 11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11313$as_echo "$ac_cv_type_signal" >&6; } 11314 11315cat >>confdefs.h <<_ACEOF 11316#define RETSIGTYPE $ac_cv_type_signal 11317_ACEOF 11318 11319 11320 11321if test "x$ac_cv_header_utmpx_h" = "xyes"; then 11322 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5 11324$as_echo_n "checking for ut_xtime in struct utmpx... " >&6; } 11325 11326 11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11328/* end confdefs.h. */ 11329 11330#include <utmpx.h> 11331#ifdef HAVE_STDDEF_H 11332#include <stddef.h> 11333#endif 11334#ifndef offsetof 11335#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER) 11336#endif 11337 11338int 11339main () 11340{ 11341 int foo = offsetof(struct utmpx, ut_xtime) 11342 ; 11343 return 0; 11344} 11345_ACEOF 11346if ac_fn_c_try_compile "$LINENO"; then : 11347 has_element=" " 11348else 11349 has_element= 11350fi 11351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11352 11353 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'` 11354 if test "x$has_element" != "x"; then 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11356$as_echo "yes" >&6; } 11357 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes" 11358 else 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11360$as_echo "no" >&6; } 11361 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=" 11362 fi 11363 11364 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then 11365 11366$as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h 11367 11368 fi 11369fi 11370 11371 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5 11373$as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; } 11374 11375 11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11377/* end confdefs.h. */ 11378 11379#include <netinet/in.h> 11380#ifdef HAVE_STDDEF_H 11381#include <stddef.h> 11382#endif 11383#ifndef offsetof 11384#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER) 11385#endif 11386 11387int 11388main () 11389{ 11390 int foo = offsetof(struct in_pktinfo, ipi_addr) 11391 ; 11392 return 0; 11393} 11394_ACEOF 11395if ac_fn_c_try_compile "$LINENO"; then : 11396 has_element=" " 11397else 11398 has_element= 11399fi 11400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11401 11402 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'` 11403 if test "x$has_element" != "x"; then 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11405$as_echo "yes" >&6; } 11406 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes" 11407 else 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11409$as_echo "no" >&6; } 11410 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=" 11411 fi 11412 11413if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then 11414 11415$as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h 11416 11417fi 11418 11419 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5 11421$as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; } 11422 11423 11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11425/* end confdefs.h. */ 11426 11427#include <netinet/in.h> 11428#ifdef HAVE_STDDEF_H 11429#include <stddef.h> 11430#endif 11431#ifndef offsetof 11432#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER) 11433#endif 11434 11435int 11436main () 11437{ 11438 int foo = offsetof(struct in6_pktinfo, ipi6_addr) 11439 ; 11440 return 0; 11441} 11442_ACEOF 11443if ac_fn_c_try_compile "$LINENO"; then : 11444 has_element=" " 11445else 11446 has_element= 11447fi 11448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11449 11450 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'` 11451 if test "x$has_element" != "x"; then 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11453$as_echo "yes" >&6; } 11454 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes" 11455 else 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11457$as_echo "no" >&6; } 11458 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=" 11459 fi 11460 11461if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then 11462 11463$as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h 11464 11465fi 11466 11467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5 11468$as_echo_n "checking if htonll is defined... " >&6; } 11469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11470/* end confdefs.h. */ 11471 11472 #include <sys/types.h> 11473 #include <netinet/in.h> 11474 11475int 11476main () 11477{ 11478 11479 return htonll(0); 11480 11481 11482 ; 11483 return 0; 11484} 11485_ACEOF 11486if ac_fn_c_try_link "$LINENO"; then : 11487 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11489$as_echo "yes" >&6; } 11490 11491$as_echo "#define HAVE_HTONLL 1" >>confdefs.h 11492 11493 11494else 11495 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11497$as_echo "no" >&6; } 11498 11499 11500fi 11501rm -f core conftest.err conftest.$ac_objext \ 11502 conftest$ac_exeext conftest.$ac_ext 11503 11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5 11505$as_echo_n "checking if htonlll is defined... " >&6; } 11506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11507/* end confdefs.h. */ 11508 11509 #include <sys/types.h> 11510 #include <netinet/in.h> 11511 11512int 11513main () 11514{ 11515 11516 return htonlll(0); 11517 11518 11519 ; 11520 return 0; 11521} 11522_ACEOF 11523if ac_fn_c_try_link "$LINENO"; then : 11524 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11526$as_echo "yes" >&6; } 11527 11528$as_echo "#define HAVE_HTONLLL 1" >>confdefs.h 11529 11530 11531else 11532 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11534$as_echo "no" >&6; } 11535 11536 11537fi 11538rm -f core conftest.err conftest.$ac_objext \ 11539 conftest$ac_exeext conftest.$ac_ext 11540 11541 11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11543$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11544if ${ac_cv_c_const+:} false; then : 11545 $as_echo_n "(cached) " >&6 11546else 11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11548/* end confdefs.h. */ 11549 11550int 11551main () 11552{ 11553 11554#ifndef __cplusplus 11555 /* Ultrix mips cc rejects this sort of thing. */ 11556 typedef int charset[2]; 11557 const charset cs = { 0, 0 }; 11558 /* SunOS 4.1.1 cc rejects this. */ 11559 char const *const *pcpcc; 11560 char **ppc; 11561 /* NEC SVR4.0.2 mips cc rejects this. */ 11562 struct point {int x, y;}; 11563 static struct point const zero = {0,0}; 11564 /* AIX XL C 1.02.0.0 rejects this. 11565 It does not let you subtract one const X* pointer from another in 11566 an arm of an if-expression whose if-part is not a constant 11567 expression */ 11568 const char *g = "string"; 11569 pcpcc = &g + (g ? g-g : 0); 11570 /* HPUX 7.0 cc rejects these. */ 11571 ++pcpcc; 11572 ppc = (char**) pcpcc; 11573 pcpcc = (char const *const *) ppc; 11574 { /* SCO 3.2v4 cc rejects this sort of thing. */ 11575 char tx; 11576 char *t = &tx; 11577 char const *s = 0 ? (char *) 0 : (char const *) 0; 11578 11579 *t++ = 0; 11580 if (s) return 0; 11581 } 11582 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11583 int x[] = {25, 17}; 11584 const int *foo = &x[0]; 11585 ++foo; 11586 } 11587 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11588 typedef const int *iptr; 11589 iptr p = 0; 11590 ++p; 11591 } 11592 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11593 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11594 struct s { int j; const int *ap[3]; } bx; 11595 struct s *b = &bx; b->j = 5; 11596 } 11597 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11598 const int foo = 10; 11599 if (!foo) return 0; 11600 } 11601 return !cs[0] && !zero.x; 11602#endif 11603 11604 ; 11605 return 0; 11606} 11607_ACEOF 11608if ac_fn_c_try_compile "$LINENO"; then : 11609 ac_cv_c_const=yes 11610else 11611 ac_cv_c_const=no 11612fi 11613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11614fi 11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11616$as_echo "$ac_cv_c_const" >&6; } 11617if test $ac_cv_c_const = no; then 11618 11619$as_echo "#define const /**/" >>confdefs.h 11620 11621fi 11622 11623 11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5 11625$as_echo_n "checking type of OS... " >&6; } 11626OS=`uname -s` 11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5 11628$as_echo "$OS" >&6; } 11629if test "$OS" = "OS/2"; then 11630 LIBPREFIX= 11631else 11632 LIBPREFIX=lib 11633fi 11634 11635 11636if test "x$developer" = "xyes"; then 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5 11638$as_echo "$as_me: Setting additional developer CFLAGS" >&6;} 11639 11640 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5 11642$as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; } 11643if ${ax_cv_cc_wdocumentation_flag+:} false; then : 11644 $as_echo_n "(cached) " >&6 11645else 11646 11647 11648 CFLAGS_SAVED=$CFLAGS 11649 CFLAGS="$CFLAGS -Werror -Wdocumentation" 11650 11651 ac_ext=c 11652ac_cpp='$CPP $CPPFLAGS' 11653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11655ac_compiler_gnu=$ac_cv_c_compiler_gnu 11656 11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11658/* end confdefs.h. */ 11659 11660int 11661main () 11662{ 11663return 0; 11664 ; 11665 return 0; 11666} 11667_ACEOF 11668if ac_fn_c_try_compile "$LINENO"; then : 11669 ax_cv_cc_wdocumentation_flag="yes" 11670else 11671 ax_cv_cc_wdocumentation_flag="no" 11672fi 11673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11674 ac_ext=c 11675ac_cpp='$CPP $CPPFLAGS' 11676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11678ac_compiler_gnu=$ac_cv_c_compiler_gnu 11679 11680 11681 CFLAGS="$CFLAGS_SAVED" 11682 11683fi 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5 11685$as_echo "$ax_cv_cc_wdocumentation_flag" >&6; } 11686 11687 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then 11688 devcflags="-Wdocumentation" 11689 11690$as_echo "#define HAVE_WDOCUMENTATION 1" >>confdefs.h 11691 11692 fi 11693 11694 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Weverything\"" >&5 11696$as_echo_n "checking for the compiler flag \"-Weverything\"... " >&6; } 11697if ${ax_cv_cc_weverything_flag+:} false; then : 11698 $as_echo_n "(cached) " >&6 11699else 11700 11701 11702 CFLAGS_SAVED=$CFLAGS 11703 CFLAGS="$CFLAGS -Werror -Weverything -Wno-unused-macros -Wno-unreachable-code-return" 11704 11705 ac_ext=c 11706ac_cpp='$CPP $CPPFLAGS' 11707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11709ac_compiler_gnu=$ac_cv_c_compiler_gnu 11710 11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11712/* end confdefs.h. */ 11713 11714int 11715main () 11716{ 11717return 0; 11718 ; 11719 return 0; 11720} 11721_ACEOF 11722if ac_fn_c_try_compile "$LINENO"; then : 11723 ax_cv_cc_weverything_flag="yes" 11724else 11725 ax_cv_cc_weverything_flag="no" 11726fi 11727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11728 ac_ext=c 11729ac_cpp='$CPP $CPPFLAGS' 11730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11732ac_compiler_gnu=$ac_cv_c_compiler_gnu 11733 11734 11735 CFLAGS="$CFLAGS_SAVED" 11736 11737fi 11738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_weverything_flag" >&5 11739$as_echo "$ax_cv_cc_weverything_flag" >&6; } 11740 11741 if test "x$ax_cv_cc_weverything_flag" = "xyes"; then 11742 devcflags="$devcflags -W -Weverything -Wformat=2 -Wno-missing-field-initializers -Wno-date-time -Wno-padded -Wno-gnu-zero-variadic-macro-arguments -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-conversion -Wno-switch-enum -Wno-gnu-statement-expression -Wno-extended-offsetof -Wno-cast-align -Wno-documentation-unknown-command -Wno-covered-switch-default -Wno-packed $verify_ptr" 11743 else 11744 if test "x$GCC" = "xyes"; then 11745 devcflags="$devcflags -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 $verify_ptr" 11746 INSTALLSTRIP="" 11747 fi 11748 fi 11749 11750 fsanitizeflags= 11751 11752 if test "x$fuzzer" = "xyes" && test "x$ax_cv_cc_clang" = "xyes"; then 11753 fsanitizeflags="$fsanitizeflags,fuzzer" 11754 fi 11755 11756 if test "x$address_sanitizer" = "xyes"; then 11757 devcflags="$devcflags -fno-omit-frame-pointer -fno-optimize-sibling-calls" 11758 11759 AX_CC_SANITZE_ADDRESS_USE_AFTER_SCOPE_FLAG 11760 if test "x$ax_cv_cc_sanitize_address_use_after_scope" = "xyes"; then 11761 devcflags="$devcflags -fsanitize-address-use-after-scope" 11762 fi 11763 11764 for ac_header in sanitizer/lsan_interface.h 11765do : 11766 ac_fn_c_check_header_mongrel "$LINENO" "sanitizer/lsan_interface.h" "ac_cv_header_sanitizer_lsan_interface_h" "$ac_includes_default" 11767if test "x$ac_cv_header_sanitizer_lsan_interface_h" = xyes; then : 11768 cat >>confdefs.h <<_ACEOF 11769#define HAVE_SANITIZER_LSAN_INTERFACE_H 1 11770_ACEOF 11771 11772fi 11773 11774done 11775 11776 fsanitizeflags="$fsanitizeflags,address" 11777 fi 11778 11779 if test "x$leak_sanitizer" = "xyes"; then 11780 fsanitizeflags="$fsanitizeflags,leak" 11781 fi 11782 11783 if test "x$thread_sanitizer" = "xyes"; then 11784 fsanitizeflags="$fsanitizeflags,thread" 11785 fi 11786 11787 if test "x$undefined_behaviour_sanitizer" = "xyes"; then 11788 devcflags="$devcflags -fno-sanitize-recover=undefined -fno-omit-frame-pointer" 11789 devldflags="$devldflags -fno-sanitize-recover=undefined" 11790 fsanitizeflags="$fsanitizeflags,undefined" 11791 fi 11792 11793 if test "x$fsanitizeflags" != "x"; then 11794 fsanitizeflags="$(echo $fsanitizeflags | sed 's/^,*//')" 11795 devcflags="-fsanitize=$fsanitizeflags $devcflags" 11796 devldflags="-fsanitize=$fsanitizeflags $devldflags" 11797 fi 11798 11799 devcflags="$(echo $devcflags | sed -e 's/\\t//g;s/ //g')" 11800 devldflags="$(echo $devldflags | sed -e 's/\\t//g;s/ //g')" 11801 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devcflags\"" >&5 11803$as_echo "$as_me: Developer CFLAGS are \"$devcflags\"" >&6;} 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer LDFLAGS are \"$devldflags\"" >&5 11805$as_echo "$as_me: Developer LDFLAGS are \"$devldflags\"" >&6;} 11806 11807 if test "x$EXPERIMENTAL" != "xno"; then 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5 11809$as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;} 11810 EXPERIMENTAL=yes 11811 fi 11812else 11813 devcflags="" 11814 devldflags="" 11815 CFLAGS="$CFLAGS -DNDEBUG" 11816 INSTALLSTRIP="" 11817fi 11818 11819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5 11820$as_echo_n "checking if building with -DNDEBUG... " >&6; } 11821if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11823$as_echo "yes" >&6; } 11824 11825$as_echo "#define WITH_NDEBUG 1" >>confdefs.h 11826 11827else 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11829$as_echo "no" >&6; } 11830fi 11831 11832export EXPERIMENTAL 11833 11834if test -d $srcdir/.git -a "x$GIT" = "xyes"; then 11835 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1 | cut -c1-9` 11836 11837cat >>confdefs.h <<_ACEOF 11838#define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT} 11839_ACEOF 11840 11841fi 11842 11843 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5 11845$as_echo_n "checking for __thread support in compiler... " >&6; } 11846 if test "$cross_compiling" = yes; then : 11847 have_tls=no 11848else 11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11850/* end confdefs.h. */ 11851 11852 static __thread int val; 11853 int main(int argc, char **argv) { 11854 val = 0; 11855 return val; 11856 } 11857 11858 11859_ACEOF 11860if ac_fn_c_try_run "$LINENO"; then : 11861 have_tls=yes 11862else 11863 have_tls=no 11864fi 11865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11866 conftest.$ac_objext conftest.beam conftest.$ac_ext 11867fi 11868 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5 11870$as_echo "$have_tls" >&6; } 11871 if test "x$have_tls" = "xyes"; then 11872 11873$as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h 11874 11875 fi 11876 11877 if test "x$have_tls" = "xno"; then 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5 11879$as_echo_n "checking for __declspec(thread) support in compiler... " >&6; } 11880 if test "$cross_compiling" = yes; then : 11881 have_tls=no 11882else 11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884/* end confdefs.h. */ 11885 11886 static _Thread_local int val; 11887 int main(int argc, char **argv) { 11888 val = 0; 11889 return val; 11890 } 11891 11892 11893_ACEOF 11894if ac_fn_c_try_run "$LINENO"; then : 11895 have_tls=yes 11896else 11897 have_tls=no 11898fi 11899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11900 conftest.$ac_objext conftest.beam conftest.$ac_ext 11901fi 11902 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5 11904$as_echo "$have_tls" >&6; } 11905 if test "x$have_tls" = "xyes"; then 11906 11907$as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h 11908 11909 fi 11910 fi 11911 if test "x$have_tls" = "xno"; then 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5 11913$as_echo_n "checking for _Thread_local support in compiler... " >&6; } 11914 if test "$cross_compiling" = yes; then : 11915 have_tls=no 11916else 11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11918/* end confdefs.h. */ 11919 11920 static _Thread_local int val; 11921 int main(int argc, char **argv) { 11922 val = 0; 11923 return val; 11924 } 11925 11926 11927_ACEOF 11928if ac_fn_c_try_run "$LINENO"; then : 11929 have_tls=yes 11930else 11931 have_tls=no 11932fi 11933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11934 conftest.$ac_objext conftest.beam conftest.$ac_ext 11935fi 11936 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5 11938$as_echo "$have_tls" >&6; } 11939 if test "x$have_tls" = "xyes"; then 11940 11941$as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h 11942 11943 fi 11944 fi 11945 11946 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5 11948$as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; } 11949if ${ax_cv_cc_builtin_choose_expr+:} false; then : 11950 $as_echo_n "(cached) " >&6 11951else 11952 11953 if test "$cross_compiling" = yes; then : 11954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11956as_fn_error $? "cannot run test program while cross compiling 11957See \`config.log' for more details" "$LINENO" 5; } 11958else 11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11960/* end confdefs.h. */ 11961 11962 11963 int main(int argc, char **argv) { 11964 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */ 11965 return __builtin_choose_expr(0, 1, 0); 11966 } 11967 11968 11969_ACEOF 11970if ac_fn_c_try_run "$LINENO"; then : 11971 ax_cv_cc_builtin_choose_expr=yes 11972else 11973 ax_cv_cc_builtin_choose_expr=no 11974 11975fi 11976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11977 conftest.$ac_objext conftest.beam conftest.$ac_ext 11978fi 11979 11980 11981fi 11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_choose_expr" >&5 11983$as_echo "$ax_cv_cc_builtin_choose_expr" >&6; } 11984 if test "x$ax_cv_cc_builtin_choose_expr" = "xyes"; then 11985 11986$as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h 11987 11988 fi 11989 11990 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5 11992$as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; } 11993if ${ax_cv_cc_builtin_types_compatible_p+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 11997 if test "$cross_compiling" = yes; then : 11998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12000as_fn_error $? "cannot run test program while cross compiling 12001See \`config.log' for more details" "$LINENO" 5; } 12002else 12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12004/* end confdefs.h. */ 12005 12006 12007 int main(int argc, char **argv) { 12008 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */ 12009 return !(__builtin_types_compatible_p(char *, char *)); 12010 } 12011 12012 12013_ACEOF 12014if ac_fn_c_try_run "$LINENO"; then : 12015 ax_cv_cc_builtin_types_compatible_p=yes 12016else 12017 ax_cv_cc_builtin_types_compatible_p=no 12018 12019fi 12020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12021 conftest.$ac_objext conftest.beam conftest.$ac_ext 12022fi 12023 12024 12025fi 12026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_types_compatible_p" >&5 12027$as_echo "$ax_cv_cc_builtin_types_compatible_p" >&6; } 12028 if test "x$ax_cv_cc_builtin_types_compatible_p" = "xyes"; then 12029 12030$as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h 12031 12032 fi 12033 12034 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5 12036$as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; } 12037if ${ax_cv_cc_builtin_bswap64+:} false; then : 12038 $as_echo_n "(cached) " >&6 12039else 12040 12041 if test "$cross_compiling" = yes; then : 12042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12044as_fn_error $? "cannot run test program while cross compiling 12045See \`config.log' for more details" "$LINENO" 5; } 12046else 12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12048/* end confdefs.h. */ 12049 12050 12051 int main(int argc, char **argv) { 12052 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */ 12053 return (__builtin_bswap64(0)); 12054 } 12055 12056 12057_ACEOF 12058if ac_fn_c_try_run "$LINENO"; then : 12059 ax_cv_cc_builtin_bswap64=yes 12060else 12061 ax_cv_cc_builtin_bswap64=no 12062 12063fi 12064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12065 conftest.$ac_objext conftest.beam conftest.$ac_ext 12066fi 12067 12068 12069fi 12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_bswap64" >&5 12071$as_echo "$ax_cv_cc_builtin_bswap64" >&6; } 12072 if test "x$ax_cv_cc_builtin_bswap64" = "xyes"; then 12073 12074$as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h 12075 12076 fi 12077 12078 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__bounded__)) support in compiler" >&5 12080$as_echo_n "checking for __attribute__((__bounded__)) support in compiler... " >&6; } 12081if ${ax_cv_cc_bounded_attribute+:} false; then : 12082 $as_echo_n "(cached) " >&6 12083else 12084 12085 CFLAGS_SAVED=$CFLAGS 12086 CFLAGS="$CFLAGS -Werror" 12087 if test "$cross_compiling" = yes; then : 12088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12090as_fn_error $? "cannot run test program while cross compiling 12091See \`config.log' for more details" "$LINENO" 5; } 12092else 12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12094/* end confdefs.h. */ 12095 12096 12097 void test(char *buff) __attribute__ ((__bounded__ (__string__, 1, 1))); 12098 int main(int argc, char **argv) { 12099 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */ 12100 return 0; 12101 } 12102 12103 12104_ACEOF 12105if ac_fn_c_try_run "$LINENO"; then : 12106 ax_cv_cc_bounded_attribute=yes 12107else 12108 ax_cv_cc_bounded_attribute=no 12109 12110fi 12111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12112 conftest.$ac_objext conftest.beam conftest.$ac_ext 12113fi 12114 12115 CFLAGS="$CFLAGS_SAVED" 12116 12117fi 12118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_bounded_attribute" >&5 12119$as_echo "$ax_cv_cc_bounded_attribute" >&6; } 12120 if test "x$ax_cv_cc_bounded_attribute" = "xyes"; then 12121 12122$as_echo "#define HAVE_ATTRIBUTE_BOUNDED 1" >>confdefs.h 12123 12124 fi 12125 12126 12127 12128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5 12129$as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; } 12130if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then : 12131 $as_echo_n "(cached) " >&6 12132else 12133 ac_check_lib_save_LIBS=$LIBS 12134LIBS="-ltalloc $LIBS" 12135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12136/* end confdefs.h. */ 12137 12138/* Override any GCC internal prototype to avoid an error. 12139 Use char because int might match the return type of a GCC 12140 builtin and then its argument prototype would still apply. */ 12141#ifdef __cplusplus 12142extern "C" 12143#endif 12144char talloc_set_memlimit (); 12145int 12146main () 12147{ 12148return talloc_set_memlimit (); 12149 ; 12150 return 0; 12151} 12152_ACEOF 12153if ac_fn_c_try_link "$LINENO"; then : 12154 ac_cv_lib_talloc_talloc_set_memlimit=yes 12155else 12156 ac_cv_lib_talloc_talloc_set_memlimit=no 12157fi 12158rm -f core conftest.err conftest.$ac_objext \ 12159 conftest$ac_exeext conftest.$ac_ext 12160LIBS=$ac_check_lib_save_LIBS 12161fi 12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5 12163$as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; } 12164if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then : 12165 12166 12167$as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h 12168 12169 12170 12171fi 12172 12173 12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 12175$as_echo_n "checking for crypt in -lcrypt... " >&6; } 12176if ${ac_cv_lib_crypt_crypt+:} false; then : 12177 $as_echo_n "(cached) " >&6 12178else 12179 ac_check_lib_save_LIBS=$LIBS 12180LIBS="-lcrypt $LIBS" 12181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12182/* end confdefs.h. */ 12183 12184/* Override any GCC internal prototype to avoid an error. 12185 Use char because int might match the return type of a GCC 12186 builtin and then its argument prototype would still apply. */ 12187#ifdef __cplusplus 12188extern "C" 12189#endif 12190char crypt (); 12191int 12192main () 12193{ 12194return crypt (); 12195 ; 12196 return 0; 12197} 12198_ACEOF 12199if ac_fn_c_try_link "$LINENO"; then : 12200 ac_cv_lib_crypt_crypt=yes 12201else 12202 ac_cv_lib_crypt_crypt=no 12203fi 12204rm -f core conftest.err conftest.$ac_objext \ 12205 conftest$ac_exeext conftest.$ac_ext 12206LIBS=$ac_check_lib_save_LIBS 12207fi 12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 12209$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 12210if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 12211 CRYPTLIB="-lcrypt" 12212 12213fi 12214 12215 12216if test "$CRYPTLIB" != ""; then 12217 12218$as_echo "#define HAVE_CRYPT /**/" >>confdefs.h 12219 12220else 12221 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 12222if test "x$ac_cv_func_crypt" = xyes; then : 12223 12224$as_echo "#define HAVE_CRYPT /**/" >>confdefs.h 12225 12226fi 12227 12228fi 12229 12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5 12231$as_echo_n "checking for crypt_r in -lcrypt... " >&6; } 12232if ${ac_cv_lib_crypt_crypt_r+:} false; then : 12233 $as_echo_n "(cached) " >&6 12234else 12235 ac_check_lib_save_LIBS=$LIBS 12236LIBS="-lcrypt $LIBS" 12237cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12238/* end confdefs.h. */ 12239 12240/* Override any GCC internal prototype to avoid an error. 12241 Use char because int might match the return type of a GCC 12242 builtin and then its argument prototype would still apply. */ 12243#ifdef __cplusplus 12244extern "C" 12245#endif 12246char crypt_r (); 12247int 12248main () 12249{ 12250return crypt_r (); 12251 ; 12252 return 0; 12253} 12254_ACEOF 12255if ac_fn_c_try_link "$LINENO"; then : 12256 ac_cv_lib_crypt_crypt_r=yes 12257else 12258 ac_cv_lib_crypt_crypt_r=no 12259fi 12260rm -f core conftest.err conftest.$ac_objext \ 12261 conftest$ac_exeext conftest.$ac_ext 12262LIBS=$ac_check_lib_save_LIBS 12263fi 12264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5 12265$as_echo "$ac_cv_lib_crypt_crypt_r" >&6; } 12266if test "x$ac_cv_lib_crypt_crypt_r" = xyes; then : 12267 12268$as_echo "#define HAVE_CRYPT_R /**/" >>confdefs.h 12269 12270fi 12271 12272 12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5 12274$as_echo_n "checking for setkey in -lcipher... " >&6; } 12275if ${ac_cv_lib_cipher_setkey+:} false; then : 12276 $as_echo_n "(cached) " >&6 12277else 12278 ac_check_lib_save_LIBS=$LIBS 12279LIBS="-lcipher $LIBS" 12280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12281/* end confdefs.h. */ 12282 12283/* Override any GCC internal prototype to avoid an error. 12284 Use char because int might match the return type of a GCC 12285 builtin and then its argument prototype would still apply. */ 12286#ifdef __cplusplus 12287extern "C" 12288#endif 12289char setkey (); 12290int 12291main () 12292{ 12293return setkey (); 12294 ; 12295 return 0; 12296} 12297_ACEOF 12298if ac_fn_c_try_link "$LINENO"; then : 12299 ac_cv_lib_cipher_setkey=yes 12300else 12301 ac_cv_lib_cipher_setkey=no 12302fi 12303rm -f core conftest.err conftest.$ac_objext \ 12304 conftest$ac_exeext conftest.$ac_ext 12305LIBS=$ac_check_lib_save_LIBS 12306fi 12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5 12308$as_echo "$ac_cv_lib_cipher_setkey" >&6; } 12309if test "x$ac_cv_lib_cipher_setkey" = xyes; then : 12310 CRYPTLIB="${CRYPTLIB} -lcipher" 12311 12312fi 12313 12314 12315 12316execinfo_lib_dir= 12317 12318# Check whether --with-execinfo-lib-dir was given. 12319if test "${with_execinfo_lib_dir+set}" = set; then : 12320 withval=$with_execinfo_lib_dir; case "$withval" in 12321 no) 12322 as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5 12323 ;; 12324 yes) 12325 ;; 12326 *) 12327 execinfo_lib_dir="$withval" 12328 ;; 12329 esac 12330 12331fi 12332 12333 12334execinfo_include_dir= 12335 12336# Check whether --with-execinfo-include-dir was given. 12337if test "${with_execinfo_include_dir+set}" = set; then : 12338 withval=$with_execinfo_include_dir; case "$withval" in 12339 no) 12340 as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5 12341 ;; 12342 yes) 12343 ;; 12344 *) 12345 execinfo_include_dir="$withval" 12346 ;; 12347 esac 12348 12349fi 12350 12351 12352smart_try_dir=$execinfo_include_dir 12353 12354 12355ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'` 12356old_CPPFLAGS="$CPPFLAGS" 12357smart_include= 12358smart_include_dir="/usr/local/include /opt/include" 12359 12360_smart_try_dir= 12361_smart_include_dir= 12362 12363for _prefix in $smart_prefix ""; do 12364 for _dir in $smart_try_dir; do 12365 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}" 12366 done 12367 12368 for _dir in $smart_include_dir; do 12369 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}" 12370 done 12371done 12372 12373if test "x$_smart_try_dir" != "x"; then 12374 for try in $_smart_try_dir; do 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5 12376$as_echo_n "checking for execinfo.h in $try... " >&6; } 12377 CPPFLAGS="-isystem $try $old_CPPFLAGS" 12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12379/* end confdefs.h. */ 12380 12381int 12382main () 12383{ 12384int a = 1; 12385 ; 12386 return 0; 12387} 12388_ACEOF 12389if ac_fn_c_try_compile "$LINENO"; then : 12390 12391 smart_include="-isystem $try" 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12393$as_echo "yes" >&6; } 12394 break 12395 12396else 12397 12398 smart_include= 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12400$as_echo "no" >&6; } 12401 12402fi 12403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12404 done 12405 CPPFLAGS="$old_CPPFLAGS" 12406fi 12407 12408if test "x$smart_include" = "x"; then 12409 for _prefix in $smart_prefix; do 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5 12411$as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; } 12412 12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12414/* end confdefs.h. */ 12415 12416int 12417main () 12418{ 12419int a = 1; 12420 ; 12421 return 0; 12422} 12423_ACEOF 12424if ac_fn_c_try_compile "$LINENO"; then : 12425 12426 smart_include="-isystem ${_prefix}/" 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12428$as_echo "yes" >&6; } 12429 break 12430 12431else 12432 12433 smart_include= 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12435$as_echo "no" >&6; } 12436 12437fi 12438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12439 done 12440fi 12441 12442if test "x$smart_include" = "x"; then 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5 12444$as_echo_n "checking for execinfo.h... " >&6; } 12445 12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12447/* end confdefs.h. */ 12448 12449int 12450main () 12451{ 12452int a = 1; 12453 ; 12454 return 0; 12455} 12456_ACEOF 12457if ac_fn_c_try_compile "$LINENO"; then : 12458 12459 smart_include=" " 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12461$as_echo "yes" >&6; } 12462 break 12463 12464else 12465 12466 smart_include= 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12468$as_echo "no" >&6; } 12469 12470fi 12471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12472fi 12473 12474if test "x$smart_include" = "x"; then 12475 12476 for prefix in $smart_prefix; do 12477 12478 12479if test "x$LOCATE" != "x"; then 12480 DIRS= 12481 file="${_prefix}/${1}" 12482 12483 for x in `${LOCATE} $file 2>/dev/null`; do 12484 base=`echo $x | sed "s%/${file}%%"` 12485 if test "x$x" = "x$base"; then 12486 continue; 12487 fi 12488 12489 dir=`${DIRNAME} $x 2>/dev/null` 12490 exclude=`echo ${dir} | ${GREP} /home` 12491 if test "x$exclude" != "x"; then 12492 continue 12493 fi 12494 12495 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 12496 if test "x$already" = "x"; then 12497 DIRS="$DIRS $dir" 12498 fi 12499 done 12500fi 12501 12502eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 12503 12504 done 12505 12506 12507if test "x$LOCATE" != "x"; then 12508 DIRS= 12509 file=execinfo.h 12510 12511 for x in `${LOCATE} $file 2>/dev/null`; do 12512 base=`echo $x | sed "s%/${file}%%"` 12513 if test "x$x" = "x$base"; then 12514 continue; 12515 fi 12516 12517 dir=`${DIRNAME} $x 2>/dev/null` 12518 exclude=`echo ${dir} | ${GREP} /home` 12519 if test "x$exclude" != "x"; then 12520 continue 12521 fi 12522 12523 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 12524 if test "x$already" = "x"; then 12525 DIRS="$DIRS $dir" 12526 fi 12527 done 12528fi 12529 12530eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 12531 12532 12533 for try in $_smart_include_dir; do 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5 12535$as_echo_n "checking for execinfo.h in $try... " >&6; } 12536 CPPFLAGS="-isystem $try $old_CPPFLAGS" 12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12538/* end confdefs.h. */ 12539 12540int 12541main () 12542{ 12543int a = 1; 12544 ; 12545 return 0; 12546} 12547_ACEOF 12548if ac_fn_c_try_compile "$LINENO"; then : 12549 12550 smart_include="-isystem $try" 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12552$as_echo "yes" >&6; } 12553 break 12554 12555else 12556 12557 smart_include= 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12559$as_echo "no" >&6; } 12560 12561fi 12562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12563 done 12564 CPPFLAGS="$old_CPPFLAGS" 12565fi 12566 12567if test "x$smart_include" != "x"; then 12568 eval "ac_cv_header_$ac_safe=yes" 12569 CPPFLAGS="$smart_include $old_CPPFLAGS" 12570 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS" 12571fi 12572 12573smart_prefix= 12574 12575if test "x$ac_cv_header_execinfo_h" = "xyes"; then 12576 smart_try_dir=$execinfo_lib_dir 12577 12578 12579sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'` 12580sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'` 12581 12582old_LIBS="$LIBS" 12583old_CPPFLAGS="$CPPFLAGS" 12584smart_lib= 12585smart_ldflags= 12586smart_lib_dir= 12587 12588if test "x$smart_try_dir" != "x"; then 12589 for try in $smart_try_dir; do 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5 12591$as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; } 12592 LIBS="-lexecinfo $old_LIBS" 12593 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12595/* end confdefs.h. */ 12596extern char backtrace_symbols(); 12597int 12598main () 12599{ 12600backtrace_symbols() 12601 ; 12602 return 0; 12603} 12604_ACEOF 12605if ac_fn_c_try_link "$LINENO"; then : 12606 12607 smart_lib="-lexecinfo" 12608 smart_ldflags="-L$try -Wl,-rpath,$try" 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12610$as_echo "yes" >&6; } 12611 break 12612 12613else 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12615$as_echo "no" >&6; } 12616fi 12617rm -f core conftest.err conftest.$ac_objext \ 12618 conftest$ac_exeext conftest.$ac_ext 12619 done 12620 LIBS="$old_LIBS" 12621 CPPFLAGS="$old_CPPFLAGS" 12622fi 12623 12624if test "x$smart_lib" = "x"; then 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5 12626$as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; } 12627 LIBS="-lexecinfo $old_LIBS" 12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12629/* end confdefs.h. */ 12630extern char backtrace_symbols(); 12631int 12632main () 12633{ 12634backtrace_symbols() 12635 ; 12636 return 0; 12637} 12638_ACEOF 12639if ac_fn_c_try_link "$LINENO"; then : 12640 12641 smart_lib="-lexecinfo" 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12643$as_echo "yes" >&6; } 12644 12645else 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12647$as_echo "no" >&6; } 12648fi 12649rm -f core conftest.err conftest.$ac_objext \ 12650 conftest$ac_exeext conftest.$ac_ext 12651 LIBS="$old_LIBS" 12652fi 12653 12654if test "x$smart_lib" = "x"; then 12655 12656 12657if test "x$LOCATE" != "x"; then 12658 DIRS= 12659 file=libexecinfo${libltdl_cv_shlibext} 12660 12661 for x in `${LOCATE} $file 2>/dev/null`; do 12662 base=`echo $x | sed "s%/${file}%%"` 12663 if test "x$x" = "x$base"; then 12664 continue; 12665 fi 12666 12667 dir=`${DIRNAME} $x 2>/dev/null` 12668 exclude=`echo ${dir} | ${GREP} /home` 12669 if test "x$exclude" != "x"; then 12670 continue 12671 fi 12672 12673 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 12674 if test "x$already" = "x"; then 12675 DIRS="$DIRS $dir" 12676 fi 12677 done 12678fi 12679 12680eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 12681 12682 12683 12684if test "x$LOCATE" != "x"; then 12685 DIRS= 12686 file=libexecinfo.a 12687 12688 for x in `${LOCATE} $file 2>/dev/null`; do 12689 base=`echo $x | sed "s%/${file}%%"` 12690 if test "x$x" = "x$base"; then 12691 continue; 12692 fi 12693 12694 dir=`${DIRNAME} $x 2>/dev/null` 12695 exclude=`echo ${dir} | ${GREP} /home` 12696 if test "x$exclude" != "x"; then 12697 continue 12698 fi 12699 12700 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 12701 if test "x$already" = "x"; then 12702 DIRS="$DIRS $dir" 12703 fi 12704 done 12705fi 12706 12707eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 12708 12709 12710 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5 12712$as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; } 12713 LIBS="-lexecinfo $old_LIBS" 12714 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12716/* end confdefs.h. */ 12717extern char backtrace_symbols(); 12718int 12719main () 12720{ 12721backtrace_symbols() 12722 ; 12723 return 0; 12724} 12725_ACEOF 12726if ac_fn_c_try_link "$LINENO"; then : 12727 12728 smart_lib="-lexecinfo" 12729 smart_ldflags="-L$try -Wl,-rpath,$try" 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12731$as_echo "yes" >&6; } 12732 break 12733 12734else 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12736$as_echo "no" >&6; } 12737fi 12738rm -f core conftest.err conftest.$ac_objext \ 12739 conftest$ac_exeext conftest.$ac_ext 12740 done 12741 LIBS="$old_LIBS" 12742 CPPFLAGS="$old_CPPFLAGS" 12743fi 12744 12745if test "x$smart_lib" != "x"; then 12746 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 12747 LIBS="$smart_ldflags $smart_lib $old_LIBS" 12748 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 12749fi 12750 12751 if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5 12753$as_echo_n "checking if execinfo provided as part of libc... " >&6; } 12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12755/* end confdefs.h. */ 12756 12757 12758int 12759main () 12760{ 12761 12762 void *sym[1]; 12763 backtrace_symbols(&sym, sizeof(sym)) 12764 ; 12765 return 0; 12766} 12767_ACEOF 12768if ac_fn_c_try_link "$LINENO"; then : 12769 12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12771$as_echo "yes" >&6; } 12772 ac_cv_lib_execinfo_backtrace_symbols="yes" 12773 12774else 12775 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12777$as_echo "no" >&6; } 12778 12779 12780fi 12781rm -f core conftest.err conftest.$ac_objext \ 12782 conftest$ac_exeext conftest.$ac_ext 12783 fi 12784 12785 if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then 12786 12787$as_echo "#define HAVE_EXECINFO 1" >>confdefs.h 12788 12789 fi 12790fi 12791 12792PCRE=yes 12793 12794# Check whether --with-pcre was given. 12795if test "${with_pcre+set}" = set; then : 12796 withval=$with_pcre; case "$withval" in 12797 no) 12798 PCRE=no 12799 ;; 12800 yes) 12801 PCRE=yes 12802 ;; 12803 esac 12804 12805fi 12806 12807 12808pcre_lib_dir= 12809 12810# Check whether --with-pcre-lib-dir was given. 12811if test "${with_pcre_lib_dir+set}" = set; then : 12812 withval=$with_pcre_lib_dir; case "$withval" in 12813 no) 12814 as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5 12815 ;; 12816 yes) 12817 ;; 12818 *) 12819 pcre_lib_dir="$withval" 12820 ;; 12821 esac 12822 12823fi 12824 12825 12826pcre_include_dir= 12827 12828# Check whether --with-pcre-include-dir was given. 12829if test "${with_pcre_include_dir+set}" = set; then : 12830 withval=$with_pcre_include_dir; case "$withval" in 12831 no) 12832 as_fn_error $? "Need pcre-include-dir" "$LINENO" 5 12833 ;; 12834 yes) 12835 ;; 12836 *) 12837 pcre_include_dir="$withval" 12838 ;; 12839 esac 12840 12841fi 12842 12843 12844REGEX= 12845 12846# Check whether --with-regex was given. 12847if test "${with_regex+set}" = set; then : 12848 withval=$with_regex; case "$withval" in 12849 no) 12850 REGEX=no 12851 ;; 12852 *) 12853 ;; 12854 esac 12855 12856fi 12857 12858 12859if test "x$REGEX" != "xno" && test "x$PCRE" != "xno"; then 12860 smart_try_dir=$pcre_include_dir 12861 12862 12863ac_safe=`echo "pcre.h" | sed 'y%./+-%__pm%'` 12864old_CPPFLAGS="$CPPFLAGS" 12865smart_include= 12866smart_include_dir="/usr/local/include /opt/include" 12867 12868_smart_try_dir= 12869_smart_include_dir= 12870 12871for _prefix in $smart_prefix ""; do 12872 for _dir in $smart_try_dir; do 12873 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}" 12874 done 12875 12876 for _dir in $smart_include_dir; do 12877 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}" 12878 done 12879done 12880 12881if test "x$_smart_try_dir" != "x"; then 12882 for try in $_smart_try_dir; do 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5 12884$as_echo_n "checking for pcre.h in $try... " >&6; } 12885 CPPFLAGS="-isystem $try $old_CPPFLAGS" 12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12887/* end confdefs.h. */ 12888 12889 #include <pcre.h> 12890int 12891main () 12892{ 12893int a = 1; 12894 ; 12895 return 0; 12896} 12897_ACEOF 12898if ac_fn_c_try_compile "$LINENO"; then : 12899 12900 smart_include="-isystem $try" 12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12902$as_echo "yes" >&6; } 12903 break 12904 12905else 12906 12907 smart_include= 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12909$as_echo "no" >&6; } 12910 12911fi 12912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12913 done 12914 CPPFLAGS="$old_CPPFLAGS" 12915fi 12916 12917if test "x$smart_include" = "x"; then 12918 for _prefix in $smart_prefix; do 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcre.h" >&5 12920$as_echo_n "checking for ${_prefix}/pcre.h... " >&6; } 12921 12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12923/* end confdefs.h. */ 12924 12925 #include <pcre.h> 12926int 12927main () 12928{ 12929int a = 1; 12930 ; 12931 return 0; 12932} 12933_ACEOF 12934if ac_fn_c_try_compile "$LINENO"; then : 12935 12936 smart_include="-isystem ${_prefix}/" 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12938$as_echo "yes" >&6; } 12939 break 12940 12941else 12942 12943 smart_include= 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12945$as_echo "no" >&6; } 12946 12947fi 12948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12949 done 12950fi 12951 12952if test "x$smart_include" = "x"; then 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5 12954$as_echo_n "checking for pcre.h... " >&6; } 12955 12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12957/* end confdefs.h. */ 12958 12959 #include <pcre.h> 12960int 12961main () 12962{ 12963int a = 1; 12964 ; 12965 return 0; 12966} 12967_ACEOF 12968if ac_fn_c_try_compile "$LINENO"; then : 12969 12970 smart_include=" " 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12972$as_echo "yes" >&6; } 12973 break 12974 12975else 12976 12977 smart_include= 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12979$as_echo "no" >&6; } 12980 12981fi 12982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12983fi 12984 12985if test "x$smart_include" = "x"; then 12986 12987 for prefix in $smart_prefix; do 12988 12989 12990if test "x$LOCATE" != "x"; then 12991 DIRS= 12992 file="${_prefix}/${1}" 12993 12994 for x in `${LOCATE} $file 2>/dev/null`; do 12995 base=`echo $x | sed "s%/${file}%%"` 12996 if test "x$x" = "x$base"; then 12997 continue; 12998 fi 12999 13000 dir=`${DIRNAME} $x 2>/dev/null` 13001 exclude=`echo ${dir} | ${GREP} /home` 13002 if test "x$exclude" != "x"; then 13003 continue 13004 fi 13005 13006 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 13007 if test "x$already" = "x"; then 13008 DIRS="$DIRS $dir" 13009 fi 13010 done 13011fi 13012 13013eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 13014 13015 done 13016 13017 13018if test "x$LOCATE" != "x"; then 13019 DIRS= 13020 file=pcre.h 13021 13022 for x in `${LOCATE} $file 2>/dev/null`; do 13023 base=`echo $x | sed "s%/${file}%%"` 13024 if test "x$x" = "x$base"; then 13025 continue; 13026 fi 13027 13028 dir=`${DIRNAME} $x 2>/dev/null` 13029 exclude=`echo ${dir} | ${GREP} /home` 13030 if test "x$exclude" != "x"; then 13031 continue 13032 fi 13033 13034 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 13035 if test "x$already" = "x"; then 13036 DIRS="$DIRS $dir" 13037 fi 13038 done 13039fi 13040 13041eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 13042 13043 13044 for try in $_smart_include_dir; do 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5 13046$as_echo_n "checking for pcre.h in $try... " >&6; } 13047 CPPFLAGS="-isystem $try $old_CPPFLAGS" 13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13049/* end confdefs.h. */ 13050 13051 #include <pcre.h> 13052int 13053main () 13054{ 13055int a = 1; 13056 ; 13057 return 0; 13058} 13059_ACEOF 13060if ac_fn_c_try_compile "$LINENO"; then : 13061 13062 smart_include="-isystem $try" 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13064$as_echo "yes" >&6; } 13065 break 13066 13067else 13068 13069 smart_include= 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13071$as_echo "no" >&6; } 13072 13073fi 13074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13075 done 13076 CPPFLAGS="$old_CPPFLAGS" 13077fi 13078 13079if test "x$smart_include" != "x"; then 13080 eval "ac_cv_header_$ac_safe=yes" 13081 CPPFLAGS="$smart_include $old_CPPFLAGS" 13082 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS" 13083fi 13084 13085smart_prefix= 13086 13087 if test "x$ac_cv_header_pcre_h" = "xyes"; then 13088 smart_try_dir=$pcre_lib_dir 13089 13090 13091sm_lib_safe=`echo "pcre" | sed 'y%./+-%__p_%'` 13092sm_func_safe=`echo "pcre_compile" | sed 'y%./+-%__p_%'` 13093 13094old_LIBS="$LIBS" 13095old_CPPFLAGS="$CPPFLAGS" 13096smart_lib= 13097smart_ldflags= 13098smart_lib_dir= 13099 13100if test "x$smart_try_dir" != "x"; then 13101 for try in $smart_try_dir; do 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5 13103$as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; } 13104 LIBS="-lpcre $old_LIBS" 13105 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13107/* end confdefs.h. */ 13108extern char pcre_compile(); 13109int 13110main () 13111{ 13112pcre_compile() 13113 ; 13114 return 0; 13115} 13116_ACEOF 13117if ac_fn_c_try_link "$LINENO"; then : 13118 13119 smart_lib="-lpcre" 13120 smart_ldflags="-L$try -Wl,-rpath,$try" 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13122$as_echo "yes" >&6; } 13123 break 13124 13125else 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13127$as_echo "no" >&6; } 13128fi 13129rm -f core conftest.err conftest.$ac_objext \ 13130 conftest$ac_exeext conftest.$ac_ext 13131 done 13132 LIBS="$old_LIBS" 13133 CPPFLAGS="$old_CPPFLAGS" 13134fi 13135 13136if test "x$smart_lib" = "x"; then 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5 13138$as_echo_n "checking for pcre_compile in -lpcre... " >&6; } 13139 LIBS="-lpcre $old_LIBS" 13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13141/* end confdefs.h. */ 13142extern char pcre_compile(); 13143int 13144main () 13145{ 13146pcre_compile() 13147 ; 13148 return 0; 13149} 13150_ACEOF 13151if ac_fn_c_try_link "$LINENO"; then : 13152 13153 smart_lib="-lpcre" 13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13155$as_echo "yes" >&6; } 13156 13157else 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13159$as_echo "no" >&6; } 13160fi 13161rm -f core conftest.err conftest.$ac_objext \ 13162 conftest$ac_exeext conftest.$ac_ext 13163 LIBS="$old_LIBS" 13164fi 13165 13166if test "x$smart_lib" = "x"; then 13167 13168 13169if test "x$LOCATE" != "x"; then 13170 DIRS= 13171 file=libpcre${libltdl_cv_shlibext} 13172 13173 for x in `${LOCATE} $file 2>/dev/null`; do 13174 base=`echo $x | sed "s%/${file}%%"` 13175 if test "x$x" = "x$base"; then 13176 continue; 13177 fi 13178 13179 dir=`${DIRNAME} $x 2>/dev/null` 13180 exclude=`echo ${dir} | ${GREP} /home` 13181 if test "x$exclude" != "x"; then 13182 continue 13183 fi 13184 13185 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 13186 if test "x$already" = "x"; then 13187 DIRS="$DIRS $dir" 13188 fi 13189 done 13190fi 13191 13192eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 13193 13194 13195 13196if test "x$LOCATE" != "x"; then 13197 DIRS= 13198 file=libpcre.a 13199 13200 for x in `${LOCATE} $file 2>/dev/null`; do 13201 base=`echo $x | sed "s%/${file}%%"` 13202 if test "x$x" = "x$base"; then 13203 continue; 13204 fi 13205 13206 dir=`${DIRNAME} $x 2>/dev/null` 13207 exclude=`echo ${dir} | ${GREP} /home` 13208 if test "x$exclude" != "x"; then 13209 continue 13210 fi 13211 13212 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` 13213 if test "x$already" = "x"; then 13214 DIRS="$DIRS $dir" 13215 fi 13216 done 13217fi 13218 13219eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" 13220 13221 13222 for try in $smart_lib_dir /usr/local/lib /opt/lib; do 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5 13224$as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; } 13225 LIBS="-lpcre $old_LIBS" 13226 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" 13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13228/* end confdefs.h. */ 13229extern char pcre_compile(); 13230int 13231main () 13232{ 13233pcre_compile() 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238if ac_fn_c_try_link "$LINENO"; then : 13239 13240 smart_lib="-lpcre" 13241 smart_ldflags="-L$try -Wl,-rpath,$try" 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13243$as_echo "yes" >&6; } 13244 break 13245 13246else 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13248$as_echo "no" >&6; } 13249fi 13250rm -f core conftest.err conftest.$ac_objext \ 13251 conftest$ac_exeext conftest.$ac_ext 13252 done 13253 LIBS="$old_LIBS" 13254 CPPFLAGS="$old_CPPFLAGS" 13255fi 13256 13257if test "x$smart_lib" != "x"; then 13258 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" 13259 LIBS="$smart_ldflags $smart_lib $old_LIBS" 13260 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS" 13261fi 13262 13263 if test "x$ac_cv_lib_pcre_pcre_compile" = "xyes"; then 13264 REGEX=yes 13265 13266$as_echo "#define HAVE_PCRE 1" >>confdefs.h 13267 13268 13269$as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h 13270 13271 fi 13272 fi 13273fi 13274 13275if test "x$REGEX" = "x"; then 13276 smart_try_dir= 13277 13278 13279ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'` 13280old_CPPFLAGS="$CPPFLAGS" 13281smart_include= 13282smart_include_dir="/usr/local/include /opt/include" 13283 13284_smart_try_dir= 13285_smart_include_dir= 13286 13287for _prefix in $smart_prefix ""; do 13288 for _dir in $smart_try_dir; do 13289 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}" 13290 done 13291 13292 for _dir in $smart_include_dir; do 13293 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}" 13294 done 13295done 13296 13297if test "x$_smart_try_dir" != "x"; then 13298 for try in $_smart_try_dir; do 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5 13300$as_echo_n "checking for regex.h in $try... " >&6; } 13301 CPPFLAGS="-isystem $try $old_CPPFLAGS" 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303/* end confdefs.h. */ 13304 13305 #include <regex.h> 13306int 13307main () 13308{ 13309int a = 1; 13310 ; 13311 return 0; 13312} 13313_ACEOF 13314if ac_fn_c_try_compile "$LINENO"; then : 13315 13316 smart_include="-isystem $try" 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13318$as_echo "yes" >&6; } 13319 break 13320 13321else 13322 13323 smart_include= 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13325$as_echo "no" >&6; } 13326 13327fi 13328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13329 done 13330 CPPFLAGS="$old_CPPFLAGS" 13331fi 13332 13333if test "x$smart_include" = "x"; then 13334 for _prefix in $smart_prefix; do 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5 13336$as_echo_n "checking for ${_prefix}/regex.h... " >&6; } 13337 13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13339/* end confdefs.h. */ 13340 13341 #include <regex.h> 13342int 13343main () 13344{ 13345int a = 1; 13346 ; 13347 return 0; 13348} 13349_ACEOF 13350if ac_fn_c_try_compile "$LINENO"; then : 13351 13352 smart_include="-isystem ${_prefix}/" 13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13354$as_echo "yes" >&6; } 13355 break 13356 13357else 13358 13359 smart_include= 13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13361$as_echo "no" >&6; } 13362 13363fi 13364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13365 done 13366fi 13367 13368if test "x$smart_include" = "x"; then 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5 13370$as_echo_n "checking for regex.h... " >&6; } 13371 13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13373/* end confdefs.h. */ 13374 13375 #include <regex.h> 13376int 13377main () 13378{ 13379int a = 1; 13380 ; 13381 return 0; 13382} 13383_ACEOF 13384if ac_fn_c_try_compile "$LINENO"; then : 13385 13386 smart_include=" " 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13388$as_echo "yes" >&6; } 13389 break 13390 13391else 13392 13393 smart_include= 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13395$as_echo "no" >&6; } 13396 13397fi 13398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13399fi 13400 13401if test "x$smart_include" = "x"; then 13402 13403 for prefix in $smart_prefix; do 13404 13405 13406if test "x$LOCATE" != "x"; then 13407 DIRS= 13408 file="${_prefix}/${1}" 13409 13410 for x in `${LOCATE} $file 2>/dev/null`; do 13411 base=`echo $x | sed "s%/${file}%%"` 13412 if test "x$x" = "x$base"; then 13413 continue; 13414 fi 13415 13416 dir=`${DIRNAME} $x 2>/dev/null` 13417 exclude=`echo ${dir} | ${GREP} /home` 13418 if test "x$exclude" != "x"; then 13419 continue 13420 fi 13421 13422 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 13423 if test "x$already" = "x"; then 13424 DIRS="$DIRS $dir" 13425 fi 13426 done 13427fi 13428 13429eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 13430 13431 done 13432 13433 13434if test "x$LOCATE" != "x"; then 13435 DIRS= 13436 file=regex.h 13437 13438 for x in `${LOCATE} $file 2>/dev/null`; do 13439 base=`echo $x | sed "s%/${file}%%"` 13440 if test "x$x" = "x$base"; then 13441 continue; 13442 fi 13443 13444 dir=`${DIRNAME} $x 2>/dev/null` 13445 exclude=`echo ${dir} | ${GREP} /home` 13446 if test "x$exclude" != "x"; then 13447 continue 13448 fi 13449 13450 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}` 13451 if test "x$already" = "x"; then 13452 DIRS="$DIRS $dir" 13453 fi 13454 done 13455fi 13456 13457eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\"" 13458 13459 13460 for try in $_smart_include_dir; do 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5 13462$as_echo_n "checking for regex.h in $try... " >&6; } 13463 CPPFLAGS="-isystem $try $old_CPPFLAGS" 13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13465/* end confdefs.h. */ 13466 13467 #include <regex.h> 13468int 13469main () 13470{ 13471int a = 1; 13472 ; 13473 return 0; 13474} 13475_ACEOF 13476if ac_fn_c_try_compile "$LINENO"; then : 13477 13478 smart_include="-isystem $try" 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13480$as_echo "yes" >&6; } 13481 break 13482 13483else 13484 13485 smart_include= 13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13487$as_echo "no" >&6; } 13488 13489fi 13490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13491 done 13492 CPPFLAGS="$old_CPPFLAGS" 13493fi 13494 13495if test "x$smart_include" != "x"; then 13496 eval "ac_cv_header_$ac_safe=yes" 13497 CPPFLAGS="$smart_include $old_CPPFLAGS" 13498 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS" 13499fi 13500 13501smart_prefix= 13502 13503 if test "x$ac_cv_header_regex_h" = "xyes"; then 13504 REGEX=yes 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended regular expressions" >&5 13506$as_echo_n "checking for extended regular expressions... " >&6; } 13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13508/* end confdefs.h. */ 13509 13510 #include <regex.h> 13511 #ifdef REG_EXTENDED 13512 yes 13513 #endif 13514 13515_ACEOF 13516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13517 $EGREP "yes" >/dev/null 2>&1; then : 13518 13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13520$as_echo "yes" >&6; } 13521 13522$as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h 13523 13524 13525else 13526 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13528$as_echo "no" >&6; } 13529 13530 13531fi 13532rm -f conftest* 13533 13534 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5 13536$as_echo_n "checking for regcomp in -lregex... " >&6; } 13537if ${ac_cv_lib_regex_regcomp+:} false; then : 13538 $as_echo_n "(cached) " >&6 13539else 13540 ac_check_lib_save_LIBS=$LIBS 13541LIBS="-lregex $LIBS" 13542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13543/* end confdefs.h. */ 13544 13545/* Override any GCC internal prototype to avoid an error. 13546 Use char because int might match the return type of a GCC 13547 builtin and then its argument prototype would still apply. */ 13548#ifdef __cplusplus 13549extern "C" 13550#endif 13551char regcomp (); 13552int 13553main () 13554{ 13555return regcomp (); 13556 ; 13557 return 0; 13558} 13559_ACEOF 13560if ac_fn_c_try_link "$LINENO"; then : 13561 ac_cv_lib_regex_regcomp=yes 13562else 13563 ac_cv_lib_regex_regcomp=no 13564fi 13565rm -f core conftest.err conftest.$ac_objext \ 13566 conftest$ac_exeext conftest.$ac_ext 13567LIBS=$ac_check_lib_save_LIBS 13568fi 13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5 13570$as_echo "$ac_cv_lib_regex_regcomp" >&6; } 13571if test "x$ac_cv_lib_regex_regcomp" = xyes; then : 13572 13573 LIBS="-lregex $LIBS" 13574 13575 13576fi 13577 13578 13579 for ac_func in \ 13580 regncomp \ 13581 regnexec 13582 13583do : 13584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13585ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13586if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13587 cat >>confdefs.h <<_ACEOF 13588#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13589_ACEOF 13590 13591fi 13592done 13593 13594 if test x"$ac_cv_func_regncomp" = x"yes" && test x"$ac_cv_func_regnexec" = x"yes"; then 13595 13596$as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h 13597 13598 fi 13599 fi 13600fi 13601 13602# 13603# Some platforms require an explicit -latomic 13604# 13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __atomic_load_4" >&5 13606$as_echo_n "checking for library containing __atomic_load_4... " >&6; } 13607if ${ac_cv_search___atomic_load_4+:} false; then : 13608 $as_echo_n "(cached) " >&6 13609else 13610 ac_func_search_save_LIBS=$LIBS 13611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13612/* end confdefs.h. */ 13613 13614/* Override any GCC internal prototype to avoid an error. 13615 Use char because int might match the return type of a GCC 13616 builtin and then its argument prototype would still apply. */ 13617#ifdef __cplusplus 13618extern "C" 13619#endif 13620char __atomic_load_4 (); 13621int 13622main () 13623{ 13624return __atomic_load_4 (); 13625 ; 13626 return 0; 13627} 13628_ACEOF 13629for ac_lib in '' atomic; do 13630 if test -z "$ac_lib"; then 13631 ac_res="none required" 13632 else 13633 ac_res=-l$ac_lib 13634 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13635 fi 13636 if ac_fn_c_try_link "$LINENO"; then : 13637 ac_cv_search___atomic_load_4=$ac_res 13638fi 13639rm -f core conftest.err conftest.$ac_objext \ 13640 conftest$ac_exeext 13641 if ${ac_cv_search___atomic_load_4+:} false; then : 13642 break 13643fi 13644done 13645if ${ac_cv_search___atomic_load_4+:} false; then : 13646 13647else 13648 ac_cv_search___atomic_load_4=no 13649fi 13650rm conftest.$ac_ext 13651LIBS=$ac_func_search_save_LIBS 13652fi 13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___atomic_load_4" >&5 13654$as_echo "$ac_cv_search___atomic_load_4" >&6; } 13655ac_res=$ac_cv_search___atomic_load_4 13656if test "$ac_res" != no; then : 13657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13658 13659fi 13660 13661 13662if test "x$REGEX" = "xyes"; then 13663 13664$as_echo "#define HAVE_REGEX 1" >>confdefs.h 13665 13666fi 13667 13668 13669$as_echo "#define GNUSTYLE 1" >>confdefs.h 13670 13671 13672 13673$as_echo "#define SYSVSTYLE 2" >>confdefs.h 13674 13675 13676 13677$as_echo "#define BSDSTYLE 3" >>confdefs.h 13678 13679 13680gethostbyaddrrstyle="" 13681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5 13682$as_echo_n "checking gethostbyaddr_r() syntax... " >&6; } 13683case "$host" in 13684 *-freebsd*|*-dragonfly*) 13685 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" " 13686 #ifdef HAVE_NETDB_H 13687 #include <netdb.h> 13688 #endif 13689 13690" 13691if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then : 13692 ac_have_decl=1 13693else 13694 ac_have_decl=0 13695fi 13696 13697cat >>confdefs.h <<_ACEOF 13698#define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl 13699_ACEOF 13700if test $ac_have_decl = 1; then : 13701 13702else 13703 13704 13705$as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h 13706 13707 gethostbyaddrrstyle=BSD 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5 13709$as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;} 13710 13711fi 13712 13713 ;; 13714esac 13715 13716if test "x$gethostbyaddrrstyle" = "x"; then 13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13718/* end confdefs.h. */ 13719 13720 #include <stdio.h> 13721 #include <netdb.h> 13722 13723int 13724main () 13725{ 13726 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL) 13727 ; 13728 return 0; 13729} 13730_ACEOF 13731if ac_fn_c_try_link "$LINENO"; then : 13732 13733 13734$as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h 13735 13736 gethostbyaddrrstyle=GNU 13737 13738 13739fi 13740rm -f core conftest.err conftest.$ac_objext \ 13741 conftest$ac_exeext conftest.$ac_ext 13742fi 13743 13744if test "x$gethostbyaddrrstyle" = "x"; then 13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13746/* end confdefs.h. */ 13747 13748 #include <stdio.h> 13749 #include <netdb.h> 13750 13751int 13752main () 13753{ 13754 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL) 13755 ; 13756 return 0; 13757} 13758_ACEOF 13759if ac_fn_c_try_link "$LINENO"; then : 13760 13761 13762$as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h 13763 13764 gethostbyaddrrstyle=SYSV 13765 13766 13767fi 13768rm -f core conftest.err conftest.$ac_objext \ 13769 conftest$ac_exeext conftest.$ac_ext 13770fi 13771 13772 13773if test "x$gethostbyaddrrstyle" = "x"; then 13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13775/* end confdefs.h. */ 13776 13777 #include <stdio.h> 13778 #include <netdb.h> 13779 13780int 13781main () 13782{ 13783 gethostbyaddr(NULL, 0, 0) 13784 ; 13785 return 0; 13786} 13787_ACEOF 13788if ac_fn_c_try_link "$LINENO"; then : 13789 13790 13791$as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h 13792 13793 gethostbyaddrrstyle=BSD 13794 13795 13796fi 13797rm -f core conftest.err conftest.$ac_objext \ 13798 conftest$ac_exeext conftest.$ac_ext 13799fi 13800 13801if test "x$gethostbyaddrrstyle" = "x"; then 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5 13803$as_echo "none! It must not exist, here." >&6; } 13804else 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5 13806$as_echo "${gethostbyaddrrstyle}-style" >&6; } 13807fi 13808 13809if test "x$gethostbyaddrrstyle" = "xBSD"; then 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5 13811$as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;} 13812fi 13813 13814gethostbynamerstyle="" 13815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5 13816$as_echo_n "checking gethostbyname_r() syntax... " >&6; } 13817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819 13820 #include <stdio.h> 13821 #include <netdb.h> 13822 13823int 13824main () 13825{ 13826 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL) 13827 ; 13828 return 0; 13829} 13830_ACEOF 13831if ac_fn_c_try_link "$LINENO"; then : 13832 13833 13834$as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h 13835 13836 gethostbynamerstyle=GNU 13837 13838 13839fi 13840rm -f core conftest.err conftest.$ac_objext \ 13841 conftest$ac_exeext conftest.$ac_ext 13842 13843if test "x$gethostbynamerstyle" = "x"; then 13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13845/* end confdefs.h. */ 13846 13847 #include <stdio.h> 13848 #include <netdb.h> 13849 13850int 13851main () 13852{ 13853 gethostbyname_r(NULL, NULL, NULL, 0, NULL) 13854 ; 13855 return 0; 13856} 13857_ACEOF 13858if ac_fn_c_try_link "$LINENO"; then : 13859 13860 13861$as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h 13862 13863 gethostbynamerstyle=SYSV 13864 13865 13866fi 13867rm -f core conftest.err conftest.$ac_objext \ 13868 conftest$ac_exeext conftest.$ac_ext 13869fi 13870 13871if test "x$gethostbynamerstyle" = "x"; then 13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13873/* end confdefs.h. */ 13874 13875 #include <stdio.h> 13876 #include <netdb.h> 13877 13878int 13879main () 13880{ 13881 gethostbyname(NULL) 13882 ; 13883 return 0; 13884} 13885_ACEOF 13886if ac_fn_c_try_link "$LINENO"; then : 13887 13888 13889$as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h 13890 13891 gethostbynamerstyle=BSD 13892 13893 13894fi 13895rm -f core conftest.err conftest.$ac_objext \ 13896 conftest$ac_exeext conftest.$ac_ext 13897fi 13898 13899if test "x$gethostbynamerstyle" = "x"; then 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5 13901$as_echo "none! It must not exist, here." >&6; } 13902else 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5 13904$as_echo "${gethostbynamerstyle}-style" >&6; } 13905fi 13906 13907if test "x$gethostbynamerstyle" = "xBSD"; then 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5 13909$as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;} 13910fi 13911 13912if test "x$ac_cv_header_pwd_h" = "xyes"; then 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getpwnam_r" >&5 13914$as_echo_n "checking getpwnam_r... " >&6; } 13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13916/* end confdefs.h. */ 13917 13918 #include <stdlib.h> 13919 #include <sys/types.h> 13920 #include <pwd.h> 13921 13922int 13923main () 13924{ 13925 getpwnam_r(NULL, NULL, NULL, 0, NULL) 13926 ; 13927 return 0; 13928} 13929_ACEOF 13930if ac_fn_c_try_link "$LINENO"; then : 13931 13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13933$as_echo "yes" >&6; } 13934 13935$as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h 13936 13937 13938else 13939 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13941$as_echo "no" >&6; } 13942 13943 13944fi 13945rm -f core conftest.err conftest.$ac_objext \ 13946 conftest$ac_exeext conftest.$ac_ext 13947fi 13948 13949if test "x$ac_cv_header_grp_h" = "xyes"; then 13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getgrnam_r" >&5 13951$as_echo_n "checking getgrnam_r... " >&6; } 13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13953/* end confdefs.h. */ 13954 13955 #include <stdlib.h> 13956 #include <sys/types.h> 13957 #include <grp.h> 13958 13959int 13960main () 13961{ 13962 getgrnam_r(NULL, NULL, NULL, 0, NULL) 13963 ; 13964 return 0; 13965} 13966_ACEOF 13967if ac_fn_c_try_link "$LINENO"; then : 13968 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13970$as_echo "yes" >&6; } 13971 13972$as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h 13973 13974 13975else 13976 13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13978$as_echo "no" >&6; } 13979 13980 13981fi 13982rm -f core conftest.err conftest.$ac_objext \ 13983 conftest$ac_exeext conftest.$ac_ext 13984fi 13985 13986 13987 13988$as_echo "#define POSIXSTYLE 1" >>confdefs.h 13989 13990 13991$as_echo "#define SOLARISSTYLE 2" >>confdefs.h 13992 13993ctimerstyle="" 13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5 13995$as_echo_n "checking ctime_r() syntax... " >&6; } 13996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13997/* end confdefs.h. */ 13998 13999 #include <time.h> 14000 14001int 14002main () 14003{ 14004 ctime_r(NULL, NULL, 0) 14005 ; 14006 return 0; 14007} 14008_ACEOF 14009if ac_fn_c_try_link "$LINENO"; then : 14010 14011 14012$as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h 14013 14014 ctimerstyle="SOLARIS" 14015 14016 14017fi 14018rm -f core conftest.err conftest.$ac_objext \ 14019 conftest$ac_exeext conftest.$ac_ext 14020 14021if test "x$ctimerstyle" = "x"; then 14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023/* end confdefs.h. */ 14024 14025 #include <time.h> 14026 14027int 14028main () 14029{ 14030 ctime_r(NULL, NULL) 14031 ; 14032 return 0; 14033} 14034_ACEOF 14035if ac_fn_c_try_link "$LINENO"; then : 14036 14037 14038$as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h 14039 14040 ctimerstyle="POSIX" 14041 14042 14043fi 14044rm -f core conftest.err conftest.$ac_objext \ 14045 conftest$ac_exeext conftest.$ac_ext 14046fi 14047 14048if test "x$ctimerstyle" = "x"; then 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5 14050$as_echo "none! It must not exist, here." >&6; } 14051else 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5 14053$as_echo "${ctimerstyle}-style" >&6; } 14054fi 14055 14056HOSTINFO=$host 14057 14058 14059 14060top_builddir=`pwd` 14061export top_builddir 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5 14063$as_echo "top_builddir=$top_builddir" >&6; } 14064 14065 14066 14067 14068if test "x$EXPERIMENTAL" = "xyes"; then 14069 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do 14070 MODULES="$MODULES $foo" 14071 done 14072else 14073 for foo in `cat "${srcdir}"/src/modules/stable`; do 14074 MODULES="$MODULES $foo" 14075 done 14076fi 14077 14078mysubdirs="" 14079for bar in $MODULES; do 14080 if test -f "${srcdir}"/src/modules/$bar/configure; then 14081 mysubdirs="$mysubdirs src/modules/$bar" 14082 fi 14083done 14084 14085 14086 14087subdirs="$subdirs $mysubdirs" 14088 14089 14090 14091if test "x$ax_cv_cc_no_date_time_flag" = "xyes" && test "x$reproducible_builds" != "xyes"; then 14092 CFLAGS="-Wno-date-time $CFLAGS" 14093fi 14094 14095CFLAGS="$CFLAGS $devcflags" 14096LDFLAGS="$LDFLAGS $devldflags" 14097 14098if test "x$werror" = "xyes"; then 14099 CFLAGS="-Werror $CFLAGS" 14100fi 14101 14102ac_config_commands="$ac_config_commands stamp-h" 14103 14104ac_config_commands="$ac_config_commands build-radpaths-h" 14105 14106ac_config_commands="$ac_config_commands main-chmod" 14107 14108ac_config_commands="$ac_config_commands scripts-chmod" 14109 14110 14111 14112 14113 14114 14115USE_STATIC_LIBS="yes" 14116 14117 14118 14119 14120 unset ac_cv_env_LIBS_set 14121 unset ac_cv_env_LIBS_value 14122 14123 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/cron/radiusd.cron.daily ./scripts/cron/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/radrelay.conf ./raddb/radiusd.conf" 14124 14125cat >confcache <<\_ACEOF 14126# This file is a shell script that caches the results of configure 14127# tests run on this system so they can be shared between configure 14128# scripts and configure runs, see configure's option --config-cache. 14129# It is not useful on other systems. If it contains results you don't 14130# want to keep, you may remove or edit it. 14131# 14132# config.status only pays attention to the cache file if you give it 14133# the --recheck option to rerun configure. 14134# 14135# `ac_cv_env_foo' variables (set or unset) will be overridden when 14136# loading this file, other *unset* `ac_cv_foo' will be assigned the 14137# following values. 14138 14139_ACEOF 14140 14141# The following way of writing the cache mishandles newlines in values, 14142# but we know of no workaround that is simple, portable, and efficient. 14143# So, we kill variables containing newlines. 14144# Ultrix sh set writes to stderr and can't be redirected directly, 14145# and sets the high bit in the cache file unless we assign to the vars. 14146( 14147 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14148 eval ac_val=\$$ac_var 14149 case $ac_val in #( 14150 *${as_nl}*) 14151 case $ac_var in #( 14152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14153$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14154 esac 14155 case $ac_var in #( 14156 _ | IFS | as_nl) ;; #( 14157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14158 *) { eval $ac_var=; unset $ac_var;} ;; 14159 esac ;; 14160 esac 14161 done 14162 14163 (set) 2>&1 | 14164 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14165 *${as_nl}ac_space=\ *) 14166 # `set' does not quote correctly, so add quotes: double-quote 14167 # substitution turns \\\\ into \\, and sed turns \\ into \. 14168 sed -n \ 14169 "s/'/'\\\\''/g; 14170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14171 ;; #( 14172 *) 14173 # `set' quotes correctly as required by POSIX, so do not add quotes. 14174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14175 ;; 14176 esac | 14177 sort 14178) | 14179 sed ' 14180 /^ac_cv_env_/b end 14181 t clear 14182 :clear 14183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14184 t end 14185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14186 :end' >>confcache 14187if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14188 if test -w "$cache_file"; then 14189 if test "x$cache_file" != "x/dev/null"; then 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14191$as_echo "$as_me: updating cache $cache_file" >&6;} 14192 if test ! -f "$cache_file" || test -h "$cache_file"; then 14193 cat confcache >"$cache_file" 14194 else 14195 case $cache_file in #( 14196 */* | ?:*) 14197 mv -f confcache "$cache_file"$$ && 14198 mv -f "$cache_file"$$ "$cache_file" ;; #( 14199 *) 14200 mv -f confcache "$cache_file" ;; 14201 esac 14202 fi 14203 fi 14204 else 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14206$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14207 fi 14208fi 14209rm -f confcache 14210 14211test "x$prefix" = xNONE && prefix=$ac_default_prefix 14212# Let make expand exec_prefix. 14213test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14214 14215DEFS=-DHAVE_CONFIG_H 14216 14217ac_libobjs= 14218ac_ltlibobjs= 14219U= 14220for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14221 # 1. Remove the extension, and $U if already installed. 14222 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14223 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14224 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14225 # will be set to the directory where LIBOBJS objects are built. 14226 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14227 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14228done 14229LIBOBJS=$ac_libobjs 14230 14231LTLIBOBJS=$ac_ltlibobjs 14232 14233 14234 14235 14236: "${CONFIG_STATUS=./config.status}" 14237ac_write_fail=0 14238ac_clean_files_save=$ac_clean_files 14239ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14240{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14241$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14242as_write_fail=0 14243cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14244#! $SHELL 14245# Generated by $as_me. 14246# Run this file to recreate the current configuration. 14247# Compiler output produced by configure, useful for debugging 14248# configure, is in config.log if it exists. 14249 14250debug=false 14251ac_cs_recheck=false 14252ac_cs_silent=false 14253 14254SHELL=\${CONFIG_SHELL-$SHELL} 14255export SHELL 14256_ASEOF 14257cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14258## -------------------- ## 14259## M4sh Initialization. ## 14260## -------------------- ## 14261 14262# Be more Bourne compatible 14263DUALCASE=1; export DUALCASE # for MKS sh 14264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14265 emulate sh 14266 NULLCMD=: 14267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14268 # is contrary to our usage. Disable this feature. 14269 alias -g '${1+"$@"}'='"$@"' 14270 setopt NO_GLOB_SUBST 14271else 14272 case `(set -o) 2>/dev/null` in #( 14273 *posix*) : 14274 set -o posix ;; #( 14275 *) : 14276 ;; 14277esac 14278fi 14279 14280 14281as_nl=' 14282' 14283export as_nl 14284# Printing a long string crashes Solaris 7 /usr/bin/printf. 14285as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14286as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14287as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14288# Prefer a ksh shell builtin over an external printf program on Solaris, 14289# but without wasting forks for bash or zsh. 14290if test -z "$BASH_VERSION$ZSH_VERSION" \ 14291 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14292 as_echo='print -r --' 14293 as_echo_n='print -rn --' 14294elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14295 as_echo='printf %s\n' 14296 as_echo_n='printf %s' 14297else 14298 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14299 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14300 as_echo_n='/usr/ucb/echo -n' 14301 else 14302 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14303 as_echo_n_body='eval 14304 arg=$1; 14305 case $arg in #( 14306 *"$as_nl"*) 14307 expr "X$arg" : "X\\(.*\\)$as_nl"; 14308 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14309 esac; 14310 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14311 ' 14312 export as_echo_n_body 14313 as_echo_n='sh -c $as_echo_n_body as_echo' 14314 fi 14315 export as_echo_body 14316 as_echo='sh -c $as_echo_body as_echo' 14317fi 14318 14319# The user is always right. 14320if test "${PATH_SEPARATOR+set}" != set; then 14321 PATH_SEPARATOR=: 14322 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14323 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14324 PATH_SEPARATOR=';' 14325 } 14326fi 14327 14328 14329# IFS 14330# We need space, tab and new line, in precisely that order. Quoting is 14331# there to prevent editors from complaining about space-tab. 14332# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14333# splitting by setting IFS to empty value.) 14334IFS=" "" $as_nl" 14335 14336# Find who we are. Look in the path if we contain no directory separator. 14337as_myself= 14338case $0 in #(( 14339 *[\\/]* ) as_myself=$0 ;; 14340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14341for as_dir in $PATH 14342do 14343 IFS=$as_save_IFS 14344 test -z "$as_dir" && as_dir=. 14345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14346 done 14347IFS=$as_save_IFS 14348 14349 ;; 14350esac 14351# We did not find ourselves, most probably we were run as `sh COMMAND' 14352# in which case we are not to be found in the path. 14353if test "x$as_myself" = x; then 14354 as_myself=$0 14355fi 14356if test ! -f "$as_myself"; then 14357 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14358 exit 1 14359fi 14360 14361# Unset variables that we do not need and which cause bugs (e.g. in 14362# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14363# suppresses any "Segmentation fault" message there. '((' could 14364# trigger a bug in pdksh 5.2.14. 14365for as_var in BASH_ENV ENV MAIL MAILPATH 14366do eval test x\${$as_var+set} = xset \ 14367 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14368done 14369PS1='$ ' 14370PS2='> ' 14371PS4='+ ' 14372 14373# NLS nuisances. 14374LC_ALL=C 14375export LC_ALL 14376LANGUAGE=C 14377export LANGUAGE 14378 14379# CDPATH. 14380(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14381 14382 14383# as_fn_error STATUS ERROR [LINENO LOG_FD] 14384# ---------------------------------------- 14385# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14386# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14387# script with STATUS, using 1 if that was 0. 14388as_fn_error () 14389{ 14390 as_status=$1; test $as_status -eq 0 && as_status=1 14391 if test "$4"; then 14392 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14393 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14394 fi 14395 $as_echo "$as_me: error: $2" >&2 14396 as_fn_exit $as_status 14397} # as_fn_error 14398 14399 14400# as_fn_set_status STATUS 14401# ----------------------- 14402# Set $? to STATUS, without forking. 14403as_fn_set_status () 14404{ 14405 return $1 14406} # as_fn_set_status 14407 14408# as_fn_exit STATUS 14409# ----------------- 14410# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14411as_fn_exit () 14412{ 14413 set +e 14414 as_fn_set_status $1 14415 exit $1 14416} # as_fn_exit 14417 14418# as_fn_unset VAR 14419# --------------- 14420# Portably unset VAR. 14421as_fn_unset () 14422{ 14423 { eval $1=; unset $1;} 14424} 14425as_unset=as_fn_unset 14426# as_fn_append VAR VALUE 14427# ---------------------- 14428# Append the text in VALUE to the end of the definition contained in VAR. Take 14429# advantage of any shell optimizations that allow amortized linear growth over 14430# repeated appends, instead of the typical quadratic growth present in naive 14431# implementations. 14432if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14433 eval 'as_fn_append () 14434 { 14435 eval $1+=\$2 14436 }' 14437else 14438 as_fn_append () 14439 { 14440 eval $1=\$$1\$2 14441 } 14442fi # as_fn_append 14443 14444# as_fn_arith ARG... 14445# ------------------ 14446# Perform arithmetic evaluation on the ARGs, and store the result in the 14447# global $as_val. Take advantage of shells that can avoid forks. The arguments 14448# must be portable across $(()) and expr. 14449if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14450 eval 'as_fn_arith () 14451 { 14452 as_val=$(( $* )) 14453 }' 14454else 14455 as_fn_arith () 14456 { 14457 as_val=`expr "$@" || test $? -eq 1` 14458 } 14459fi # as_fn_arith 14460 14461 14462if expr a : '\(a\)' >/dev/null 2>&1 && 14463 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14464 as_expr=expr 14465else 14466 as_expr=false 14467fi 14468 14469if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14470 as_basename=basename 14471else 14472 as_basename=false 14473fi 14474 14475if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14476 as_dirname=dirname 14477else 14478 as_dirname=false 14479fi 14480 14481as_me=`$as_basename -- "$0" || 14482$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14483 X"$0" : 'X\(//\)$' \| \ 14484 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14485$as_echo X/"$0" | 14486 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14487 s//\1/ 14488 q 14489 } 14490 /^X\/\(\/\/\)$/{ 14491 s//\1/ 14492 q 14493 } 14494 /^X\/\(\/\).*/{ 14495 s//\1/ 14496 q 14497 } 14498 s/.*/./; q'` 14499 14500# Avoid depending upon Character Ranges. 14501as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14502as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14503as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14504as_cr_digits='0123456789' 14505as_cr_alnum=$as_cr_Letters$as_cr_digits 14506 14507ECHO_C= ECHO_N= ECHO_T= 14508case `echo -n x` in #((((( 14509-n*) 14510 case `echo 'xy\c'` in 14511 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14512 xy) ECHO_C='\c';; 14513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14514 ECHO_T=' ';; 14515 esac;; 14516*) 14517 ECHO_N='-n';; 14518esac 14519 14520rm -f conf$$ conf$$.exe conf$$.file 14521if test -d conf$$.dir; then 14522 rm -f conf$$.dir/conf$$.file 14523else 14524 rm -f conf$$.dir 14525 mkdir conf$$.dir 2>/dev/null 14526fi 14527if (echo >conf$$.file) 2>/dev/null; then 14528 if ln -s conf$$.file conf$$ 2>/dev/null; then 14529 as_ln_s='ln -s' 14530 # ... but there are two gotchas: 14531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14533 # In both cases, we have to default to `cp -pR'. 14534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14535 as_ln_s='cp -pR' 14536 elif ln conf$$.file conf$$ 2>/dev/null; then 14537 as_ln_s=ln 14538 else 14539 as_ln_s='cp -pR' 14540 fi 14541else 14542 as_ln_s='cp -pR' 14543fi 14544rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14545rmdir conf$$.dir 2>/dev/null 14546 14547 14548# as_fn_mkdir_p 14549# ------------- 14550# Create "$as_dir" as a directory, including parents if necessary. 14551as_fn_mkdir_p () 14552{ 14553 14554 case $as_dir in #( 14555 -*) as_dir=./$as_dir;; 14556 esac 14557 test -d "$as_dir" || eval $as_mkdir_p || { 14558 as_dirs= 14559 while :; do 14560 case $as_dir in #( 14561 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14562 *) as_qdir=$as_dir;; 14563 esac 14564 as_dirs="'$as_qdir' $as_dirs" 14565 as_dir=`$as_dirname -- "$as_dir" || 14566$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14567 X"$as_dir" : 'X\(//\)[^/]' \| \ 14568 X"$as_dir" : 'X\(//\)$' \| \ 14569 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14570$as_echo X"$as_dir" | 14571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14572 s//\1/ 14573 q 14574 } 14575 /^X\(\/\/\)[^/].*/{ 14576 s//\1/ 14577 q 14578 } 14579 /^X\(\/\/\)$/{ 14580 s//\1/ 14581 q 14582 } 14583 /^X\(\/\).*/{ 14584 s//\1/ 14585 q 14586 } 14587 s/.*/./; q'` 14588 test -d "$as_dir" && break 14589 done 14590 test -z "$as_dirs" || eval "mkdir $as_dirs" 14591 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14592 14593 14594} # as_fn_mkdir_p 14595if mkdir -p . 2>/dev/null; then 14596 as_mkdir_p='mkdir -p "$as_dir"' 14597else 14598 test -d ./-p && rmdir ./-p 14599 as_mkdir_p=false 14600fi 14601 14602 14603# as_fn_executable_p FILE 14604# ----------------------- 14605# Test if FILE is an executable regular file. 14606as_fn_executable_p () 14607{ 14608 test -f "$1" && test -x "$1" 14609} # as_fn_executable_p 14610as_test_x='test -x' 14611as_executable_p=as_fn_executable_p 14612 14613# Sed expression to map a string onto a valid CPP name. 14614as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14615 14616# Sed expression to map a string onto a valid variable name. 14617as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14618 14619 14620exec 6>&1 14621## ----------------------------------- ## 14622## Main body of $CONFIG_STATUS script. ## 14623## ----------------------------------- ## 14624_ASEOF 14625test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14626 14627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14628# Save the log message, to keep $0 and so on meaningful, and to 14629# report actual input values of CONFIG_FILES etc. instead of their 14630# values after options handling. 14631ac_log=" 14632This file was extended by freeradius $as_me $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $, which was 14633generated by GNU Autoconf 2.69. Invocation command line was 14634 14635 CONFIG_FILES = $CONFIG_FILES 14636 CONFIG_HEADERS = $CONFIG_HEADERS 14637 CONFIG_LINKS = $CONFIG_LINKS 14638 CONFIG_COMMANDS = $CONFIG_COMMANDS 14639 $ $0 $@ 14640 14641on `(hostname || uname -n) 2>/dev/null | sed 1q` 14642" 14643 14644_ACEOF 14645 14646case $ac_config_files in *" 14647"*) set x $ac_config_files; shift; ac_config_files=$*;; 14648esac 14649 14650case $ac_config_headers in *" 14651"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14652esac 14653 14654 14655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14656# Files that config.status was made for. 14657config_files="$ac_config_files" 14658config_headers="$ac_config_headers" 14659config_commands="$ac_config_commands" 14660 14661_ACEOF 14662 14663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14664ac_cs_usage="\ 14665\`$as_me' instantiates files and other configuration actions 14666from templates according to the current configuration. Unless the files 14667and actions are specified as TAGs, all are instantiated by default. 14668 14669Usage: $0 [OPTION]... [TAG]... 14670 14671 -h, --help print this help, then exit 14672 -V, --version print version number and configuration settings, then exit 14673 --config print configuration, then exit 14674 -q, --quiet, --silent 14675 do not print progress messages 14676 -d, --debug don't remove temporary files 14677 --recheck update $as_me by reconfiguring in the same conditions 14678 --file=FILE[:TEMPLATE] 14679 instantiate the configuration file FILE 14680 --header=FILE[:TEMPLATE] 14681 instantiate the configuration header FILE 14682 14683Configuration files: 14684$config_files 14685 14686Configuration headers: 14687$config_headers 14688 14689Configuration commands: 14690$config_commands 14691 14692Report bugs to <http://bugs.freeradius.org>. 14693freeradius home page: <http://www.freeradius.org>." 14694 14695_ACEOF 14696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14697ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14698ac_cs_version="\\ 14699freeradius config.status $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $ 14700configured by $0, generated by GNU Autoconf 2.69, 14701 with options \\"\$ac_cs_config\\" 14702 14703Copyright (C) 2012 Free Software Foundation, Inc. 14704This config.status script is free software; the Free Software Foundation 14705gives unlimited permission to copy, distribute and modify it." 14706 14707ac_pwd='$ac_pwd' 14708srcdir='$srcdir' 14709test -n "\$AWK" || AWK=awk 14710_ACEOF 14711 14712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14713# The default lists apply if the user does not specify any file. 14714ac_need_defaults=: 14715while test $# != 0 14716do 14717 case $1 in 14718 --*=?*) 14719 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14720 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14721 ac_shift=: 14722 ;; 14723 --*=) 14724 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14725 ac_optarg= 14726 ac_shift=: 14727 ;; 14728 *) 14729 ac_option=$1 14730 ac_optarg=$2 14731 ac_shift=shift 14732 ;; 14733 esac 14734 14735 case $ac_option in 14736 # Handling of the options. 14737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14738 ac_cs_recheck=: ;; 14739 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14740 $as_echo "$ac_cs_version"; exit ;; 14741 --config | --confi | --conf | --con | --co | --c ) 14742 $as_echo "$ac_cs_config"; exit ;; 14743 --debug | --debu | --deb | --de | --d | -d ) 14744 debug=: ;; 14745 --file | --fil | --fi | --f ) 14746 $ac_shift 14747 case $ac_optarg in 14748 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14749 '') as_fn_error $? "missing file argument" ;; 14750 esac 14751 as_fn_append CONFIG_FILES " '$ac_optarg'" 14752 ac_need_defaults=false;; 14753 --header | --heade | --head | --hea ) 14754 $ac_shift 14755 case $ac_optarg in 14756 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14757 esac 14758 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14759 ac_need_defaults=false;; 14760 --he | --h) 14761 # Conflict between --help and --header 14762 as_fn_error $? "ambiguous option: \`$1' 14763Try \`$0 --help' for more information.";; 14764 --help | --hel | -h ) 14765 $as_echo "$ac_cs_usage"; exit ;; 14766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14767 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14768 ac_cs_silent=: ;; 14769 14770 # This is an error. 14771 -*) as_fn_error $? "unrecognized option: \`$1' 14772Try \`$0 --help' for more information." ;; 14773 14774 *) as_fn_append ac_config_targets " $1" 14775 ac_need_defaults=false ;; 14776 14777 esac 14778 shift 14779done 14780 14781ac_configure_extra_args= 14782 14783if $ac_cs_silent; then 14784 exec 6>/dev/null 14785 ac_configure_extra_args="$ac_configure_extra_args --silent" 14786fi 14787 14788_ACEOF 14789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14790if \$ac_cs_recheck; then 14791 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14792 shift 14793 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14794 CONFIG_SHELL='$SHELL' 14795 export CONFIG_SHELL 14796 exec "\$@" 14797fi 14798 14799_ACEOF 14800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14801exec 5>>config.log 14802{ 14803 echo 14804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14805## Running $as_me. ## 14806_ASBOX 14807 $as_echo "$ac_log" 14808} >&5 14809 14810_ACEOF 14811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14812_ACEOF 14813 14814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14815 14816# Handling of arguments. 14817for ac_config_target in $ac_config_targets 14818do 14819 case $ac_config_target in 14820 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;; 14821 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; 14822 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;; 14823 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;; 14824 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;; 14825 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;; 14826 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;; 14827 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;; 14828 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;; 14829 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;; 14830 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;; 14831 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;; 14832 "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;; 14833 "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;; 14834 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;; 14835 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;; 14836 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;; 14837 14838 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14839 esac 14840done 14841 14842 14843# If the user did not use the arguments to specify the items to instantiate, 14844# then the envvar interface is used. Set only those that are not. 14845# We use the long form for the default assignment because of an extremely 14846# bizarre bug on SunOS 4.1.3. 14847if $ac_need_defaults; then 14848 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14849 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14850 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14851fi 14852 14853# Have a temporary directory for convenience. Make it in the build tree 14854# simply because there is no reason against having it here, and in addition, 14855# creating and moving files from /tmp can sometimes cause problems. 14856# Hook for its removal unless debugging. 14857# Note that there is a small window in which the directory will not be cleaned: 14858# after its creation but before its name has been assigned to `$tmp'. 14859$debug || 14860{ 14861 tmp= ac_tmp= 14862 trap 'exit_status=$? 14863 : "${ac_tmp:=$tmp}" 14864 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14865' 0 14866 trap 'as_fn_exit 1' 1 2 13 15 14867} 14868# Create a (secure) tmp directory for tmp files. 14869 14870{ 14871 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14872 test -d "$tmp" 14873} || 14874{ 14875 tmp=./conf$$-$RANDOM 14876 (umask 077 && mkdir "$tmp") 14877} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14878ac_tmp=$tmp 14879 14880# Set up the scripts for CONFIG_FILES section. 14881# No need to generate them if there are no CONFIG_FILES. 14882# This happens for instance with `./config.status config.h'. 14883if test -n "$CONFIG_FILES"; then 14884 14885 14886ac_cr=`echo X | tr X '\015'` 14887# On cygwin, bash can eat \r inside `` if the user requested igncr. 14888# But we know of no other shell where ac_cr would be empty at this 14889# point, so we can use a bashism as a fallback. 14890if test "x$ac_cr" = x; then 14891 eval ac_cr=\$\'\\r\' 14892fi 14893ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14894if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14895 ac_cs_awk_cr='\\r' 14896else 14897 ac_cs_awk_cr=$ac_cr 14898fi 14899 14900echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14901_ACEOF 14902 14903 14904{ 14905 echo "cat >conf$$subs.awk <<_ACEOF" && 14906 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14907 echo "_ACEOF" 14908} >conf$$subs.sh || 14909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14910ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14911ac_delim='%!_!# ' 14912for ac_last_try in false false false false false :; do 14913 . ./conf$$subs.sh || 14914 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14915 14916 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14917 if test $ac_delim_n = $ac_delim_num; then 14918 break 14919 elif $ac_last_try; then 14920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14921 else 14922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14923 fi 14924done 14925rm -f conf$$subs.sh 14926 14927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14928cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14929_ACEOF 14930sed -n ' 14931h 14932s/^/S["/; s/!.*/"]=/ 14933p 14934g 14935s/^[^!]*!// 14936:repl 14937t repl 14938s/'"$ac_delim"'$// 14939t delim 14940:nl 14941h 14942s/\(.\{148\}\)..*/\1/ 14943t more1 14944s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14945p 14946n 14947b repl 14948:more1 14949s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14950p 14951g 14952s/.\{148\}// 14953t nl 14954:delim 14955h 14956s/\(.\{148\}\)..*/\1/ 14957t more2 14958s/["\\]/\\&/g; s/^/"/; s/$/"/ 14959p 14960b 14961:more2 14962s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14963p 14964g 14965s/.\{148\}// 14966t delim 14967' <conf$$subs.awk | sed ' 14968/^[^""]/{ 14969 N 14970 s/\n// 14971} 14972' >>$CONFIG_STATUS || ac_write_fail=1 14973rm -f conf$$subs.awk 14974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14975_ACAWK 14976cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14977 for (key in S) S_is_set[key] = 1 14978 FS = "" 14979 14980} 14981{ 14982 line = $ 0 14983 nfields = split(line, field, "@") 14984 substed = 0 14985 len = length(field[1]) 14986 for (i = 2; i < nfields; i++) { 14987 key = field[i] 14988 keylen = length(key) 14989 if (S_is_set[key]) { 14990 value = S[key] 14991 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14992 len += length(value) + length(field[++i]) 14993 substed = 1 14994 } else 14995 len += 1 + keylen 14996 } 14997 14998 print line 14999} 15000 15001_ACAWK 15002_ACEOF 15003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15004if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15005 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15006else 15007 cat 15008fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15009 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15010_ACEOF 15011 15012# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15013# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15014# trailing colons and then remove the whole line if VPATH becomes empty 15015# (actually we leave an empty line to preserve line numbers). 15016if test "x$srcdir" = x.; then 15017 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15018h 15019s/// 15020s/^/:/ 15021s/[ ]*$/:/ 15022s/:\$(srcdir):/:/g 15023s/:\${srcdir}:/:/g 15024s/:@srcdir@:/:/g 15025s/^:*// 15026s/:*$// 15027x 15028s/\(=[ ]*\).*/\1/ 15029G 15030s/\n// 15031s/^[^=]*=[ ]*$// 15032}' 15033fi 15034 15035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15036fi # test -n "$CONFIG_FILES" 15037 15038# Set up the scripts for CONFIG_HEADERS section. 15039# No need to generate them if there are no CONFIG_HEADERS. 15040# This happens for instance with `./config.status Makefile'. 15041if test -n "$CONFIG_HEADERS"; then 15042cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15043BEGIN { 15044_ACEOF 15045 15046# Transform confdefs.h into an awk script `defines.awk', embedded as 15047# here-document in config.status, that substitutes the proper values into 15048# config.h.in to produce config.h. 15049 15050# Create a delimiter string that does not exist in confdefs.h, to ease 15051# handling of long lines. 15052ac_delim='%!_!# ' 15053for ac_last_try in false false :; do 15054 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15055 if test -z "$ac_tt"; then 15056 break 15057 elif $ac_last_try; then 15058 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15059 else 15060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15061 fi 15062done 15063 15064# For the awk script, D is an array of macro values keyed by name, 15065# likewise P contains macro parameters if any. Preserve backslash 15066# newline sequences. 15067 15068ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15069sed -n ' 15070s/.\{148\}/&'"$ac_delim"'/g 15071t rset 15072:rset 15073s/^[ ]*#[ ]*define[ ][ ]*/ / 15074t def 15075d 15076:def 15077s/\\$// 15078t bsnl 15079s/["\\]/\\&/g 15080s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15081D["\1"]=" \3"/p 15082s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15083d 15084:bsnl 15085s/["\\]/\\&/g 15086s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15087D["\1"]=" \3\\\\\\n"\\/p 15088t cont 15089s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15090t cont 15091d 15092:cont 15093n 15094s/.\{148\}/&'"$ac_delim"'/g 15095t clear 15096:clear 15097s/\\$// 15098t bsnlc 15099s/["\\]/\\&/g; s/^/"/; s/$/"/p 15100d 15101:bsnlc 15102s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15103b cont 15104' <confdefs.h | sed ' 15105s/'"$ac_delim"'/"\\\ 15106"/g' >>$CONFIG_STATUS || ac_write_fail=1 15107 15108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15109 for (key in D) D_is_set[key] = 1 15110 FS = "" 15111} 15112/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15113 line = \$ 0 15114 split(line, arg, " ") 15115 if (arg[1] == "#") { 15116 defundef = arg[2] 15117 mac1 = arg[3] 15118 } else { 15119 defundef = substr(arg[1], 2) 15120 mac1 = arg[2] 15121 } 15122 split(mac1, mac2, "(") #) 15123 macro = mac2[1] 15124 prefix = substr(line, 1, index(line, defundef) - 1) 15125 if (D_is_set[macro]) { 15126 # Preserve the white space surrounding the "#". 15127 print prefix "define", macro P[macro] D[macro] 15128 next 15129 } else { 15130 # Replace #undef with comments. This is necessary, for example, 15131 # in the case of _POSIX_SOURCE, which is predefined and required 15132 # on some systems where configure will not decide to define it. 15133 if (defundef == "undef") { 15134 print "/*", prefix defundef, macro, "*/" 15135 next 15136 } 15137 } 15138} 15139{ print } 15140_ACAWK 15141_ACEOF 15142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15143 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15144fi # test -n "$CONFIG_HEADERS" 15145 15146 15147eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15148shift 15149for ac_tag 15150do 15151 case $ac_tag in 15152 :[FHLC]) ac_mode=$ac_tag; continue;; 15153 esac 15154 case $ac_mode$ac_tag in 15155 :[FHL]*:*);; 15156 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15157 :[FH]-) ac_tag=-:-;; 15158 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15159 esac 15160 ac_save_IFS=$IFS 15161 IFS=: 15162 set x $ac_tag 15163 IFS=$ac_save_IFS 15164 shift 15165 ac_file=$1 15166 shift 15167 15168 case $ac_mode in 15169 :L) ac_source=$1;; 15170 :[FH]) 15171 ac_file_inputs= 15172 for ac_f 15173 do 15174 case $ac_f in 15175 -) ac_f="$ac_tmp/stdin";; 15176 *) # Look for the file first in the build tree, then in the source tree 15177 # (if the path is not absolute). The absolute path cannot be DOS-style, 15178 # because $ac_f cannot contain `:'. 15179 test -f "$ac_f" || 15180 case $ac_f in 15181 [\\/$]*) false;; 15182 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15183 esac || 15184 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15185 esac 15186 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15187 as_fn_append ac_file_inputs " '$ac_f'" 15188 done 15189 15190 # Let's still pretend it is `configure' which instantiates (i.e., don't 15191 # use $as_me), people would be surprised to read: 15192 # /* config.h. Generated by config.status. */ 15193 configure_input='Generated from '` 15194 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15195 `' by configure.' 15196 if test x"$ac_file" != x-; then 15197 configure_input="$ac_file. $configure_input" 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15199$as_echo "$as_me: creating $ac_file" >&6;} 15200 fi 15201 # Neutralize special characters interpreted by sed in replacement strings. 15202 case $configure_input in #( 15203 *\&* | *\|* | *\\* ) 15204 ac_sed_conf_input=`$as_echo "$configure_input" | 15205 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15206 *) ac_sed_conf_input=$configure_input;; 15207 esac 15208 15209 case $ac_tag in 15210 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15212 esac 15213 ;; 15214 esac 15215 15216 ac_dir=`$as_dirname -- "$ac_file" || 15217$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15218 X"$ac_file" : 'X\(//\)[^/]' \| \ 15219 X"$ac_file" : 'X\(//\)$' \| \ 15220 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15221$as_echo X"$ac_file" | 15222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15223 s//\1/ 15224 q 15225 } 15226 /^X\(\/\/\)[^/].*/{ 15227 s//\1/ 15228 q 15229 } 15230 /^X\(\/\/\)$/{ 15231 s//\1/ 15232 q 15233 } 15234 /^X\(\/\).*/{ 15235 s//\1/ 15236 q 15237 } 15238 s/.*/./; q'` 15239 as_dir="$ac_dir"; as_fn_mkdir_p 15240 ac_builddir=. 15241 15242case "$ac_dir" in 15243.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15244*) 15245 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15246 # A ".." for each directory in $ac_dir_suffix. 15247 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15248 case $ac_top_builddir_sub in 15249 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15250 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15251 esac ;; 15252esac 15253ac_abs_top_builddir=$ac_pwd 15254ac_abs_builddir=$ac_pwd$ac_dir_suffix 15255# for backward compatibility: 15256ac_top_builddir=$ac_top_build_prefix 15257 15258case $srcdir in 15259 .) # We are building in place. 15260 ac_srcdir=. 15261 ac_top_srcdir=$ac_top_builddir_sub 15262 ac_abs_top_srcdir=$ac_pwd ;; 15263 [\\/]* | ?:[\\/]* ) # Absolute name. 15264 ac_srcdir=$srcdir$ac_dir_suffix; 15265 ac_top_srcdir=$srcdir 15266 ac_abs_top_srcdir=$srcdir ;; 15267 *) # Relative name. 15268 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15269 ac_top_srcdir=$ac_top_build_prefix$srcdir 15270 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15271esac 15272ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15273 15274 15275 case $ac_mode in 15276 :F) 15277 # 15278 # CONFIG_FILE 15279 # 15280 15281_ACEOF 15282 15283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15284# If the template does not know about datarootdir, expand it. 15285# FIXME: This hack should be removed a few years after 2.60. 15286ac_datarootdir_hack=; ac_datarootdir_seen= 15287ac_sed_dataroot=' 15288/datarootdir/ { 15289 p 15290 q 15291} 15292/@datadir@/p 15293/@docdir@/p 15294/@infodir@/p 15295/@localedir@/p 15296/@mandir@/p' 15297case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15298*datarootdir*) ac_datarootdir_seen=yes;; 15299*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15301$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15302_ACEOF 15303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15304 ac_datarootdir_hack=' 15305 s&@datadir@&$datadir&g 15306 s&@docdir@&$docdir&g 15307 s&@infodir@&$infodir&g 15308 s&@localedir@&$localedir&g 15309 s&@mandir@&$mandir&g 15310 s&\\\${datarootdir}&$datarootdir&g' ;; 15311esac 15312_ACEOF 15313 15314# Neutralize VPATH when `$srcdir' = `.'. 15315# Shell code in configure.ac might set extrasub. 15316# FIXME: do we really want to maintain this feature? 15317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15318ac_sed_extra="$ac_vpsub 15319$extrasub 15320_ACEOF 15321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15322:t 15323/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15324s|@configure_input@|$ac_sed_conf_input|;t t 15325s&@top_builddir@&$ac_top_builddir_sub&;t t 15326s&@top_build_prefix@&$ac_top_build_prefix&;t t 15327s&@srcdir@&$ac_srcdir&;t t 15328s&@abs_srcdir@&$ac_abs_srcdir&;t t 15329s&@top_srcdir@&$ac_top_srcdir&;t t 15330s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15331s&@builddir@&$ac_builddir&;t t 15332s&@abs_builddir@&$ac_abs_builddir&;t t 15333s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15334$ac_datarootdir_hack 15335" 15336eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15337 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15338 15339test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15340 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15341 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15342 "$ac_tmp/out"`; test -z "$ac_out"; } && 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15344which seems to be undefined. Please make sure it is defined" >&5 15345$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15346which seems to be undefined. Please make sure it is defined" >&2;} 15347 15348 rm -f "$ac_tmp/stdin" 15349 case $ac_file in 15350 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15351 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15352 esac \ 15353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15354 ;; 15355 :H) 15356 # 15357 # CONFIG_HEADER 15358 # 15359 if test x"$ac_file" != x-; then 15360 { 15361 $as_echo "/* $configure_input */" \ 15362 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15363 } >"$ac_tmp/config.h" \ 15364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15365 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15367$as_echo "$as_me: $ac_file is unchanged" >&6;} 15368 else 15369 rm -f "$ac_file" 15370 mv "$ac_tmp/config.h" "$ac_file" \ 15371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15372 fi 15373 else 15374 $as_echo "/* $configure_input */" \ 15375 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15376 || as_fn_error $? "could not create -" "$LINENO" 5 15377 fi 15378 ;; 15379 15380 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15381$as_echo "$as_me: executing $ac_file commands" >&6;} 15382 ;; 15383 esac 15384 15385 15386 case $ac_file$ac_mode in 15387 "stamp-h":C) echo timestamp > src/include/stamp-h ;; 15388 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;; 15389 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;; 15390 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;; 15391 15392 esac 15393done # for ac_tag 15394 15395 15396as_fn_exit 0 15397_ACEOF 15398ac_clean_files=$ac_clean_files_save 15399 15400test $ac_write_fail = 0 || 15401 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15402 15403 15404# configure is writing to config.log, and then calls config.status. 15405# config.status does its own redirection, appending to config.log. 15406# Unfortunately, on DOS this fails, as config.log is still kept open 15407# by configure, so config.status won't be able to write to it; its 15408# output is simply discarded. So we exec the FD to /dev/null, 15409# effectively closing config.log, so it can be properly (re)opened and 15410# appended to by config.status. When coming back to configure, we 15411# need to make the FD available again. 15412if test "$no_create" != yes; then 15413 ac_cs_success=: 15414 ac_config_status_args= 15415 test "$silent" = yes && 15416 ac_config_status_args="$ac_config_status_args --quiet" 15417 exec 5>/dev/null 15418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15419 exec 5>>config.log 15420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15421 # would make configure fail if this is the last instruction. 15422 $ac_cs_success || as_fn_exit 1 15423fi 15424 15425# 15426# CONFIG_SUBDIRS section. 15427# 15428if test "$no_recursion" != yes; then 15429 15430 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 15431 # so they do not pile up. 15432 ac_sub_configure_args= 15433 ac_prev= 15434 eval "set x $ac_configure_args" 15435 shift 15436 for ac_arg 15437 do 15438 if test -n "$ac_prev"; then 15439 ac_prev= 15440 continue 15441 fi 15442 case $ac_arg in 15443 -cache-file | --cache-file | --cache-fil | --cache-fi \ 15444 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 15445 ac_prev=cache_file ;; 15446 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 15447 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 15448 | --c=*) 15449 ;; 15450 --config-cache | -C) 15451 ;; 15452 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 15453 ac_prev=srcdir ;; 15454 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 15455 ;; 15456 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 15457 ac_prev=prefix ;; 15458 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 15459 ;; 15460 --disable-option-checking) 15461 ;; 15462 *) 15463 case $ac_arg in 15464 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 15465 esac 15466 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 15467 esac 15468 done 15469 15470 # Always prepend --prefix to ensure using the same prefix 15471 # in subdir configurations. 15472 ac_arg="--prefix=$prefix" 15473 case $ac_arg in 15474 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 15475 esac 15476 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 15477 15478 # Pass --silent 15479 if test "$silent" = yes; then 15480 ac_sub_configure_args="--silent $ac_sub_configure_args" 15481 fi 15482 15483 # Always prepend --disable-option-checking to silence warnings, since 15484 # different subdirs can have different --enable and --with options. 15485 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 15486 15487 ac_popdir=`pwd` 15488 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 15489 15490 # Do not complain, so a configure script can configure whichever 15491 # parts of a large source tree are present. 15492 test -d "$srcdir/$ac_dir" || continue 15493 15494 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 15495 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 15496 $as_echo "$ac_msg" >&6 15497 as_dir="$ac_dir"; as_fn_mkdir_p 15498 ac_builddir=. 15499 15500case "$ac_dir" in 15501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15502*) 15503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15504 # A ".." for each directory in $ac_dir_suffix. 15505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15506 case $ac_top_builddir_sub in 15507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15509 esac ;; 15510esac 15511ac_abs_top_builddir=$ac_pwd 15512ac_abs_builddir=$ac_pwd$ac_dir_suffix 15513# for backward compatibility: 15514ac_top_builddir=$ac_top_build_prefix 15515 15516case $srcdir in 15517 .) # We are building in place. 15518 ac_srcdir=. 15519 ac_top_srcdir=$ac_top_builddir_sub 15520 ac_abs_top_srcdir=$ac_pwd ;; 15521 [\\/]* | ?:[\\/]* ) # Absolute name. 15522 ac_srcdir=$srcdir$ac_dir_suffix; 15523 ac_top_srcdir=$srcdir 15524 ac_abs_top_srcdir=$srcdir ;; 15525 *) # Relative name. 15526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15527 ac_top_srcdir=$ac_top_build_prefix$srcdir 15528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15529esac 15530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15531 15532 15533 cd "$ac_dir" 15534 15535 # Check for guested configure; otherwise get Cygnus style configure. 15536 if test -f "$ac_srcdir/configure.gnu"; then 15537 ac_sub_configure=$ac_srcdir/configure.gnu 15538 elif test -f "$ac_srcdir/configure"; then 15539 ac_sub_configure=$ac_srcdir/configure 15540 elif test -f "$ac_srcdir/configure.in"; then 15541 # This should be Cygnus configure. 15542 ac_sub_configure=$ac_aux_dir/configure 15543 else 15544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 15545$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 15546 ac_sub_configure= 15547 fi 15548 15549 # The recursion is here. 15550 if test -n "$ac_sub_configure"; then 15551 # Make the cache file name correct relative to the subdirectory. 15552 case $cache_file in 15553 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 15554 *) # Relative name. 15555 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 15556 esac 15557 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 15559$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 15560 # The eval makes quoting arguments work. 15561 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 15562 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 15563 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 15564 fi 15565 15566 cd "$ac_popdir" 15567 done 15568fi 15569if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15571$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15572fi 15573 15574 15575