1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for Zabbix 3.0.32. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME='Zabbix' 579PACKAGE_TARNAME='zabbix' 580PACKAGE_VERSION='3.0.32' 581PACKAGE_STRING='Zabbix 3.0.32' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585ac_unique_file="src/zabbix_server/server.c" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='am__EXEEXT_FALSE 623am__EXEEXT_TRUE 624LTLIBOBJS 625SENDER_LIBS 626SENDER_LDFLAGS 627ZBXGET_LIBS 628ZBXGET_LDFLAGS 629AGENT_LIBS 630AGENT_LDFLAGS 631PROXY_LIBS 632PROXY_LDFLAGS 633SERVER_LIBS 634SERVER_LDFLAGS 635RANLIB 636ICONV_LDFLAGS 637ICONV_CFLAGS 638LIBCURL_LIBS 639LIBCURL_LDFLAGS 640LIBCURL_CFLAGS 641_libcurl_config 642LDAP_LIBS 643LDAP_LDFLAGS 644LDAP_CPPFLAGS 645JAR 646JAVAC 647TLS_CFLAGS 648OPENSSL_LIBS 649OPENSSL_LDFLAGS 650OPENSSL_CFLAGS 651GNUTLS_LIBS 652GNUTLS_LDFLAGS 653GNUTLS_CFLAGS 654MBEDTLS_LIBS 655MBEDTLS_LDFLAGS 656MBEDTLS_CFLAGS 657OPENIPMI_LIBS 658OPENIPMI_LDFLAGS 659OPENIPMI_CFLAGS 660SSH2_LIBS 661SSH2_LDFLAGS 662SSH2_CFLAGS 663SNMP_LIBS 664SNMP_LDFLAGS 665SNMP_CFLAGS 666_libnetsnmp_config 667UNIXODBC_LIBS 668UNIXODBC_CFLAGS 669UNIXODBC_LDFLAGS 670ODBC_CONFIG 671LIBXML2_LIBS 672LIBXML2_LDFLAGS 673LIBXML2_CFLAGS 674LIBXML2_VERSION 675JABBER_LIBS 676JABBER_LDFLAGS 677JABBER_CPPFLAGS 678IKSEMEL_LIBS 679IKSEMEL_CFLAGS 680PKG_CONFIG_LIBDIR 681PKG_CONFIG_PATH 682PKG_CONFIG 683DB_LIBS 684DB_LDFLAGS 685DB_CFLAGS 686SQLITE3_VERSION 687SQLITE3_LIBS 688SQLITE3_LDFLAGS 689SQLITE3_CPPFLAGS 690POSTGRESQL_VERSION 691POSTGRESQL_LIBS 692POSTGRESQL_LDFLAGS 693POSTGRESQL_CFLAGS 694PG_CONFIG 695ORACLE_OCI_LIBS 696ORACLE_OCI_LDFLAGS 697ORACLE_OCI_CFLAGS 698ORACLE_OCI_VERSION 699MYSQL_LIBS 700MYSQL_LDFLAGS 701MYSQL_CFLAGS 702MYSQL_VERSION 703MYSQL_CONFIG 704JAVA_FALSE 705JAVA_TRUE 706AGENT_FALSE 707AGENT_TRUE 708PROXY_FALSE 709PROXY_TRUE 710SERVER_FALSE 711SERVER_TRUE 712ARCH 713LIBOBJS 714RESOLV_LIBS 715EGREP 716GREP 717CPP 718am__fastdepCC_FALSE 719am__fastdepCC_TRUE 720CCDEPMODE 721am__nodep 722AMDEPBACKSLASH 723AMDEP_FALSE 724AMDEP_TRUE 725am__quote 726am__include 727DEPDIR 728OBJEXT 729EXEEXT 730ac_ct_CC 731CPPFLAGS 732LDFLAGS 733CFLAGS 734CC 735host_os 736host_vendor 737host_cpu 738host 739build_os 740build_vendor 741build_cpu 742build 743AM_BACKSLASH 744AM_DEFAULT_VERBOSITY 745AM_DEFAULT_V 746AM_V 747am__untar 748am__tar 749AMTAR 750am__leading_dot 751SET_MAKE 752AWK 753mkdir_p 754MKDIR_P 755INSTALL_STRIP_PROGRAM 756STRIP 757install_sh 758MAKEINFO 759AUTOHEADER 760AUTOMAKE 761AUTOCONF 762ACLOCAL 763VERSION 764PACKAGE 765CYGPATH_W 766am__isrc 767INSTALL_DATA 768INSTALL_SCRIPT 769INSTALL_PROGRAM 770target_alias 771host_alias 772build_alias 773LIBS 774ECHO_T 775ECHO_N 776ECHO_C 777DEFS 778mandir 779localedir 780libdir 781psdir 782pdfdir 783dvidir 784htmldir 785infodir 786docdir 787oldincludedir 788includedir 789runstatedir 790localstatedir 791sharedstatedir 792sysconfdir 793datadir 794datarootdir 795libexecdir 796sbindir 797bindir 798program_transform_name 799prefix 800exec_prefix 801PACKAGE_URL 802PACKAGE_BUGREPORT 803PACKAGE_STRING 804PACKAGE_VERSION 805PACKAGE_TARNAME 806PACKAGE_NAME 807PATH_SEPARATOR 808SHELL' 809ac_subst_files='' 810ac_user_opts=' 811enable_option_checking 812enable_silent_rules 813enable_dependency_tracking 814enable_largefile 815enable_static 816enable_server 817enable_proxy 818enable_agent 819enable_java 820enable_ipv6 821with_ibm_db2 822with_ibm_db2_include 823with_ibm_db2_lib 824with_mysql 825with_oracle 826with_oracle_include 827with_oracle_lib 828with_postgresql 829with_sqlite3 830with_jabber 831with_libxml2 832with_unixodbc 833with_net_snmp 834with_ssh2 835with_openipmi 836with_mbedtls 837with_gnutls 838with_openssl 839with_ldap 840with_libcurl 841with_iconv 842with_iconv_include 843with_iconv_lib 844' 845 ac_precious_vars='build_alias 846host_alias 847target_alias 848CC 849CFLAGS 850LDFLAGS 851LIBS 852CPPFLAGS 853CPP 854PKG_CONFIG 855PKG_CONFIG_PATH 856PKG_CONFIG_LIBDIR 857IKSEMEL_CFLAGS 858IKSEMEL_LIBS' 859 860 861# Initialize some variables set by options. 862ac_init_help= 863ac_init_version=false 864ac_unrecognized_opts= 865ac_unrecognized_sep= 866# The variables have the same names as the options, with 867# dashes changed to underlines. 868cache_file=/dev/null 869exec_prefix=NONE 870no_create= 871no_recursion= 872prefix=NONE 873program_prefix=NONE 874program_suffix=NONE 875program_transform_name=s,x,x, 876silent= 877site= 878srcdir= 879verbose= 880x_includes=NONE 881x_libraries=NONE 882 883# Installation directory options. 884# These are left unexpanded so users can "make install exec_prefix=/foo" 885# and all the variables that are supposed to be based on exec_prefix 886# by default will actually change. 887# Use braces instead of parens because sh, perl, etc. also accept them. 888# (The list follows the same order as the GNU Coding Standards.) 889bindir='${exec_prefix}/bin' 890sbindir='${exec_prefix}/sbin' 891libexecdir='${exec_prefix}/libexec' 892datarootdir='${prefix}/share' 893datadir='${datarootdir}' 894sysconfdir='${prefix}/etc' 895sharedstatedir='${prefix}/com' 896localstatedir='${prefix}/var' 897runstatedir='${localstatedir}/run' 898includedir='${prefix}/include' 899oldincludedir='/usr/include' 900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 901infodir='${datarootdir}/info' 902htmldir='${docdir}' 903dvidir='${docdir}' 904pdfdir='${docdir}' 905psdir='${docdir}' 906libdir='${exec_prefix}/lib' 907localedir='${datarootdir}/locale' 908mandir='${datarootdir}/man' 909 910ac_prev= 911ac_dashdash= 912for ac_option 913do 914 # If the previous option needs an argument, assign it. 915 if test -n "$ac_prev"; then 916 eval $ac_prev=\$ac_option 917 ac_prev= 918 continue 919 fi 920 921 case $ac_option in 922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 923 *=) ac_optarg= ;; 924 *) ac_optarg=yes ;; 925 esac 926 927 # Accept the important Cygnus configure options, so we can diagnose typos. 928 929 case $ac_dashdash$ac_option in 930 --) 931 ac_dashdash=yes ;; 932 933 -bindir | --bindir | --bindi | --bind | --bin | --bi) 934 ac_prev=bindir ;; 935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 936 bindir=$ac_optarg ;; 937 938 -build | --build | --buil | --bui | --bu) 939 ac_prev=build_alias ;; 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 941 build_alias=$ac_optarg ;; 942 943 -cache-file | --cache-file | --cache-fil | --cache-fi \ 944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 945 ac_prev=cache_file ;; 946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 948 cache_file=$ac_optarg ;; 949 950 --config-cache | -C) 951 cache_file=config.cache ;; 952 953 -datadir | --datadir | --datadi | --datad) 954 ac_prev=datadir ;; 955 -datadir=* | --datadir=* | --datadi=* | --datad=*) 956 datadir=$ac_optarg ;; 957 958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 959 | --dataroo | --dataro | --datar) 960 ac_prev=datarootdir ;; 961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 963 datarootdir=$ac_optarg ;; 964 965 -disable-* | --disable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=no ;; 980 981 -docdir | --docdir | --docdi | --doc | --do) 982 ac_prev=docdir ;; 983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 984 docdir=$ac_optarg ;; 985 986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 987 ac_prev=dvidir ;; 988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 989 dvidir=$ac_optarg ;; 990 991 -enable-* | --enable-*) 992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 995 as_fn_error $? "invalid feature name: $ac_useropt" 996 ac_useropt_orig=$ac_useropt 997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 998 case $ac_user_opts in 999 *" 1000"enable_$ac_useropt" 1001"*) ;; 1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1003 ac_unrecognized_sep=', ';; 1004 esac 1005 eval enable_$ac_useropt=\$ac_optarg ;; 1006 1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1009 | --exec | --exe | --ex) 1010 ac_prev=exec_prefix ;; 1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1013 | --exec=* | --exe=* | --ex=*) 1014 exec_prefix=$ac_optarg ;; 1015 1016 -gas | --gas | --ga | --g) 1017 # Obsolete; use --with-gas. 1018 with_gas=yes ;; 1019 1020 -help | --help | --hel | --he | -h) 1021 ac_init_help=long ;; 1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1023 ac_init_help=recursive ;; 1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1025 ac_init_help=short ;; 1026 1027 -host | --host | --hos | --ho) 1028 ac_prev=host_alias ;; 1029 -host=* | --host=* | --hos=* | --ho=*) 1030 host_alias=$ac_optarg ;; 1031 1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1033 ac_prev=htmldir ;; 1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1035 | --ht=*) 1036 htmldir=$ac_optarg ;; 1037 1038 -includedir | --includedir | --includedi | --included | --include \ 1039 | --includ | --inclu | --incl | --inc) 1040 ac_prev=includedir ;; 1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1042 | --includ=* | --inclu=* | --incl=* | --inc=*) 1043 includedir=$ac_optarg ;; 1044 1045 -infodir | --infodir | --infodi | --infod | --info | --inf) 1046 ac_prev=infodir ;; 1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1048 infodir=$ac_optarg ;; 1049 1050 -libdir | --libdir | --libdi | --libd) 1051 ac_prev=libdir ;; 1052 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1053 libdir=$ac_optarg ;; 1054 1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1056 | --libexe | --libex | --libe) 1057 ac_prev=libexecdir ;; 1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1059 | --libexe=* | --libex=* | --libe=*) 1060 libexecdir=$ac_optarg ;; 1061 1062 -localedir | --localedir | --localedi | --localed | --locale) 1063 ac_prev=localedir ;; 1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1065 localedir=$ac_optarg ;; 1066 1067 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1068 | --localstate | --localstat | --localsta | --localst | --locals) 1069 ac_prev=localstatedir ;; 1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1072 localstatedir=$ac_optarg ;; 1073 1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1075 ac_prev=mandir ;; 1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1077 mandir=$ac_optarg ;; 1078 1079 -nfp | --nfp | --nf) 1080 # Obsolete; use --without-fp. 1081 with_fp=no ;; 1082 1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1084 | --no-cr | --no-c | -n) 1085 no_create=yes ;; 1086 1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1089 no_recursion=yes ;; 1090 1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1093 | --oldin | --oldi | --old | --ol | --o) 1094 ac_prev=oldincludedir ;; 1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1098 oldincludedir=$ac_optarg ;; 1099 1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1101 ac_prev=prefix ;; 1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1103 prefix=$ac_optarg ;; 1104 1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1106 | --program-pre | --program-pr | --program-p) 1107 ac_prev=program_prefix ;; 1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1110 program_prefix=$ac_optarg ;; 1111 1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1113 | --program-suf | --program-su | --program-s) 1114 ac_prev=program_suffix ;; 1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1117 program_suffix=$ac_optarg ;; 1118 1119 -program-transform-name | --program-transform-name \ 1120 | --program-transform-nam | --program-transform-na \ 1121 | --program-transform-n | --program-transform- \ 1122 | --program-transform | --program-transfor \ 1123 | --program-transfo | --program-transf \ 1124 | --program-trans | --program-tran \ 1125 | --progr-tra | --program-tr | --program-t) 1126 ac_prev=program_transform_name ;; 1127 -program-transform-name=* | --program-transform-name=* \ 1128 | --program-transform-nam=* | --program-transform-na=* \ 1129 | --program-transform-n=* | --program-transform-=* \ 1130 | --program-transform=* | --program-transfor=* \ 1131 | --program-transfo=* | --program-transf=* \ 1132 | --program-trans=* | --program-tran=* \ 1133 | --progr-tra=* | --program-tr=* | --program-t=*) 1134 program_transform_name=$ac_optarg ;; 1135 1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1137 ac_prev=pdfdir ;; 1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1139 pdfdir=$ac_optarg ;; 1140 1141 -psdir | --psdir | --psdi | --psd | --ps) 1142 ac_prev=psdir ;; 1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1144 psdir=$ac_optarg ;; 1145 1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1147 | -silent | --silent | --silen | --sile | --sil) 1148 silent=yes ;; 1149 1150 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1151 | --runstate | --runstat | --runsta | --runst | --runs \ 1152 | --run | --ru | --r) 1153 ac_prev=runstatedir ;; 1154 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1155 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1156 | --run=* | --ru=* | --r=*) 1157 runstatedir=$ac_optarg ;; 1158 1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1160 ac_prev=sbindir ;; 1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1162 | --sbi=* | --sb=*) 1163 sbindir=$ac_optarg ;; 1164 1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1167 | --sharedst | --shareds | --shared | --share | --shar \ 1168 | --sha | --sh) 1169 ac_prev=sharedstatedir ;; 1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1173 | --sha=* | --sh=*) 1174 sharedstatedir=$ac_optarg ;; 1175 1176 -site | --site | --sit) 1177 ac_prev=site ;; 1178 -site=* | --site=* | --sit=*) 1179 site=$ac_optarg ;; 1180 1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1182 ac_prev=srcdir ;; 1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1184 srcdir=$ac_optarg ;; 1185 1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1187 | --syscon | --sysco | --sysc | --sys | --sy) 1188 ac_prev=sysconfdir ;; 1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1191 sysconfdir=$ac_optarg ;; 1192 1193 -target | --target | --targe | --targ | --tar | --ta | --t) 1194 ac_prev=target_alias ;; 1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1196 target_alias=$ac_optarg ;; 1197 1198 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1199 verbose=yes ;; 1200 1201 -version | --version | --versio | --versi | --vers | -V) 1202 ac_init_version=: ;; 1203 1204 -with-* | --with-*) 1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1206 # Reject names that are not valid shell variable names. 1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1208 as_fn_error $? "invalid package name: $ac_useropt" 1209 ac_useropt_orig=$ac_useropt 1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1211 case $ac_user_opts in 1212 *" 1213"with_$ac_useropt" 1214"*) ;; 1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1216 ac_unrecognized_sep=', ';; 1217 esac 1218 eval with_$ac_useropt=\$ac_optarg ;; 1219 1220 -without-* | --without-*) 1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1222 # Reject names that are not valid shell variable names. 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1224 as_fn_error $? "invalid package name: $ac_useropt" 1225 ac_useropt_orig=$ac_useropt 1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1227 case $ac_user_opts in 1228 *" 1229"with_$ac_useropt" 1230"*) ;; 1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1232 ac_unrecognized_sep=', ';; 1233 esac 1234 eval with_$ac_useropt=no ;; 1235 1236 --x) 1237 # Obsolete; use --with-x. 1238 with_x=yes ;; 1239 1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1241 | --x-incl | --x-inc | --x-in | --x-i) 1242 ac_prev=x_includes ;; 1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1245 x_includes=$ac_optarg ;; 1246 1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1249 ac_prev=x_libraries ;; 1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1252 x_libraries=$ac_optarg ;; 1253 1254 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1255Try \`$0 --help' for more information" 1256 ;; 1257 1258 *=*) 1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1260 # Reject names that are not valid shell variable names. 1261 case $ac_envvar in #( 1262 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1264 esac 1265 eval $ac_envvar=\$ac_optarg 1266 export $ac_envvar ;; 1267 1268 *) 1269 # FIXME: should be removed in autoconf 3.0. 1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1274 ;; 1275 1276 esac 1277done 1278 1279if test -n "$ac_prev"; then 1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1281 as_fn_error $? "missing argument to $ac_option" 1282fi 1283 1284if test -n "$ac_unrecognized_opts"; then 1285 case $enable_option_checking in 1286 no) ;; 1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1289 esac 1290fi 1291 1292# Check all directory arguments for consistency. 1293for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1294 datadir sysconfdir sharedstatedir localstatedir includedir \ 1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1296 libdir localedir mandir runstatedir 1297do 1298 eval ac_val=\$$ac_var 1299 # Remove trailing slashes. 1300 case $ac_val in 1301 */ ) 1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1303 eval $ac_var=\$ac_val;; 1304 esac 1305 # Be sure to have absolute directory names. 1306 case $ac_val in 1307 [\\/$]* | ?:[\\/]* ) continue;; 1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1309 esac 1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1311done 1312 1313# There might be people who depend on the old broken behavior: `$host' 1314# used to hold the argument of --host etc. 1315# FIXME: To remove some day. 1316build=$build_alias 1317host=$host_alias 1318target=$target_alias 1319 1320# FIXME: To remove some day. 1321if test "x$host_alias" != x; then 1322 if test "x$build_alias" = x; then 1323 cross_compiling=maybe 1324 elif test "x$build_alias" != "x$host_alias"; then 1325 cross_compiling=yes 1326 fi 1327fi 1328 1329ac_tool_prefix= 1330test -n "$host_alias" && ac_tool_prefix=$host_alias- 1331 1332test "$silent" = yes && exec 6>/dev/null 1333 1334 1335ac_pwd=`pwd` && test -n "$ac_pwd" && 1336ac_ls_di=`ls -di .` && 1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1338 as_fn_error $? "working directory cannot be determined" 1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1340 as_fn_error $? "pwd does not report name of working directory" 1341 1342 1343# Find the source files, if location was not specified. 1344if test -z "$srcdir"; then 1345 ac_srcdir_defaulted=yes 1346 # Try the directory containing this script, then the parent directory. 1347 ac_confdir=`$as_dirname -- "$as_myself" || 1348$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1349 X"$as_myself" : 'X\(//\)[^/]' \| \ 1350 X"$as_myself" : 'X\(//\)$' \| \ 1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1352$as_echo X"$as_myself" | 1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\/\)[^/].*/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)$/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\).*/{ 1366 s//\1/ 1367 q 1368 } 1369 s/.*/./; q'` 1370 srcdir=$ac_confdir 1371 if test ! -r "$srcdir/$ac_unique_file"; then 1372 srcdir=.. 1373 fi 1374else 1375 ac_srcdir_defaulted=no 1376fi 1377if test ! -r "$srcdir/$ac_unique_file"; then 1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1380fi 1381ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1382ac_abs_confdir=`( 1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1384 pwd)` 1385# When building in place, set srcdir=. 1386if test "$ac_abs_confdir" = "$ac_pwd"; then 1387 srcdir=. 1388fi 1389# Remove unnecessary trailing slashes from srcdir. 1390# Double slashes in file names in object file debugging info 1391# mess up M-x gdb in Emacs. 1392case $srcdir in 1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1394esac 1395for ac_var in $ac_precious_vars; do 1396 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_env_${ac_var}_value=\$${ac_var} 1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1400done 1401 1402# 1403# Report the --help message. 1404# 1405if test "$ac_init_help" = "long"; then 1406 # Omit some internal or obsolete options to make the list less imposing. 1407 # This message is too long to be a string in the A/UX 3.1 sh. 1408 cat <<_ACEOF 1409\`configure' configures Zabbix 3.0.32 to adapt to many kinds of systems. 1410 1411Usage: $0 [OPTION]... [VAR=VALUE]... 1412 1413To assign environment variables (e.g., CC, CFLAGS...), specify them as 1414VAR=VALUE. See below for descriptions of some of the useful variables. 1415 1416Defaults for the options are specified in brackets. 1417 1418Configuration: 1419 -h, --help display this help and exit 1420 --help=short display options specific to this package 1421 --help=recursive display the short help of all the included packages 1422 -V, --version display version information and exit 1423 -q, --quiet, --silent do not print \`checking ...' messages 1424 --cache-file=FILE cache test results in FILE [disabled] 1425 -C, --config-cache alias for \`--cache-file=config.cache' 1426 -n, --no-create do not create output files 1427 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1428 1429Installation directories: 1430 --prefix=PREFIX install architecture-independent files in PREFIX 1431 [$ac_default_prefix] 1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1433 [PREFIX] 1434 1435By default, \`make install' will install all the files in 1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1437an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1438for instance \`--prefix=\$HOME'. 1439 1440For better control, use the options below. 1441 1442Fine tuning of the installation directories: 1443 --bindir=DIR user executables [EPREFIX/bin] 1444 --sbindir=DIR system admin executables [EPREFIX/sbin] 1445 --libexecdir=DIR program executables [EPREFIX/libexec] 1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1449 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1450 --libdir=DIR object code libraries [EPREFIX/lib] 1451 --includedir=DIR C header files [PREFIX/include] 1452 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1455 --infodir=DIR info documentation [DATAROOTDIR/info] 1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1457 --mandir=DIR man documentation [DATAROOTDIR/man] 1458 --docdir=DIR documentation root [DATAROOTDIR/doc/zabbix] 1459 --htmldir=DIR html documentation [DOCDIR] 1460 --dvidir=DIR dvi documentation [DOCDIR] 1461 --pdfdir=DIR pdf documentation [DOCDIR] 1462 --psdir=DIR ps documentation [DOCDIR] 1463_ACEOF 1464 1465 cat <<\_ACEOF 1466 1467Program names: 1468 --program-prefix=PREFIX prepend PREFIX to installed program names 1469 --program-suffix=SUFFIX append SUFFIX to installed program names 1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1471 1472System types: 1473 --build=BUILD configure for building on BUILD [guessed] 1474 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1475_ACEOF 1476fi 1477 1478if test -n "$ac_init_help"; then 1479 case $ac_init_help in 1480 short | recursive ) echo "Configuration of Zabbix 3.0.32:";; 1481 esac 1482 cat <<\_ACEOF 1483 1484Optional Features: 1485 --disable-option-checking ignore unrecognized --enable/--with options 1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1488 --enable-silent-rules less verbose build output (undo: "make V=1") 1489 --disable-silent-rules verbose build output (undo: "make V=0") 1490 --enable-dependency-tracking 1491 do not reject slow dependency extractors 1492 --disable-dependency-tracking 1493 speeds up one-time build 1494 --disable-largefile omit support for large files 1495 --enable-static Build statically linked binaries 1496 --enable-server Turn on build of Zabbix server 1497 --enable-proxy Turn on build of Zabbix proxy 1498 --enable-agent Turn on build of Zabbix agent and client utilities 1499 --enable-java Turn on build of Zabbix Java gateway 1500 --enable-ipv6 Turn on support of IPv6 1501 1502Optional Packages: 1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1505 --with-ibm-db2=[ARG] use IBM DB2 CLI from given sqllib directory 1506 (ARG=path); use /home/db2inst1/sqllib (ARG=yes); 1507 disable IBM DB2 support (ARG=no) 1508 --with-ibm-db2-include=[DIR] 1509 use IBM DB2 CLI headers from given path 1510 --with-ibm-db2-lib=[DIR] 1511 use IBM DB2 CLI libraries from given path 1512 --with-mysql[=ARG] use MySQL client library [default=no], optionally 1513 specify path to mysql_config 1514 --with-oracle=[ARG] use Oracle OCI API from given Oracle home 1515 (ARG=path); use existing ORACLE_HOME (ARG=yes); 1516 disable Oracle OCI support (ARG=no) 1517 --with-oracle-include=[DIR] 1518 use Oracle OCI API headers from given path 1519 --with-oracle-lib=[DIR] use Oracle OCI API libraries from given path 1520 --with-postgresql[=ARG] use PostgreSQL library [default=no], optionally 1521 specify path to pg_config 1522 --with-sqlite3[=ARG] use SQLite 3 library [default=no], optionally 1523 specify the prefix for sqlite3 library 1524 1525If you want to use Jabber protocol for messaging: 1526 --with-jabber[=DIR] Include Jabber support [default=no]. DIR is the 1527 iksemel library install directory. 1528 1529If you want to use XML library: 1530 --with-libxml2[=ARG] use libxml2 client library [default=no], see 1531 PKG_CONFIG_PATH environment variable to specify .pc 1532 file location 1533 1534If you want to use unixODBC library: 1535 --with-unixodbc[=ARG] use ODBC driver against unixODBC package 1536 [default=no], optionally specify full path to 1537 odbc_config binary. 1538 1539If you want to use Net-SNMP library: 1540 --with-net-snmp[=ARG] use Net-SNMP package [default=no], optionally 1541 specify path to net-snmp-config 1542 1543If you want to use SSH2 based checks: 1544 --with-ssh2[=DIR] use SSH2 package [default=no], DIR is the SSH2 1545 library install directory. 1546 1547If you want to check IPMI devices: 1548 --with-openipmi[=DIR] Include OPENIPMI support [default=no]. DIR is the 1549 OPENIPMI base install directory, default is to 1550 search through a number of common places for the 1551 OPENIPMI files. 1552 1553If you want to use encryption provided by mbed TLS (PolarSSL) library: 1554 --with-mbedtls[=DIR] use mbed TLS (PolarSSL) package [default=no], DIR is 1555 the libpolarssl install directory. 1556 1557If you want to use encryption provided by GnuTLS library: 1558 --with-gnutls[=DIR] use GnuTLS package [default=no], DIR is the 1559 libgnutls install directory. 1560 1561If you want to use encryption provided by OpenSSL library: 1562 --with-openssl[=DIR] use OpenSSL package [default=no], DIR is the libssl 1563 and libcrypto install directory. 1564 1565If you want to check LDAP servers: 1566 --with-ldap[=DIR] Include LDAP support [default=no]. DIR is the LDAP 1567 base install directory, default is to search through 1568 a number of common places for the LDAP files. 1569 1570If you want to use cURL library: 1571 --with-libcurl[=DIR] use cURL package [default=no], optionally specify 1572 path to curl-config 1573 1574If you want to specify iconv installation directories: 1575 --with-iconv=[DIR] use iconv from given base install directory (DIR), 1576 default is to search through a number of common 1577 places for the iconv files. 1578 --with-iconv-include=[DIR] 1579 use iconv include headers from given path. 1580 --with-iconv-lib=[DIR] use iconv libraries from given path. 1581 1582Some influential environment variables: 1583 CC C compiler command 1584 CFLAGS C compiler flags 1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1586 nonstandard directory <lib dir> 1587 LIBS libraries to pass to the linker, e.g. -l<library> 1588 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1589 you have headers in a nonstandard directory <include dir> 1590 CPP C preprocessor 1591 PKG_CONFIG path to pkg-config utility 1592 PKG_CONFIG_PATH 1593 directories to add to pkg-config's search path 1594 PKG_CONFIG_LIBDIR 1595 path overriding pkg-config's built-in search path 1596 IKSEMEL_CFLAGS 1597 C compiler flags for IKSEMEL, overriding pkg-config 1598 IKSEMEL_LIBS 1599 linker flags for IKSEMEL, overriding pkg-config 1600 1601Use these variables to override the choices made by `configure' or to help 1602it to find libraries and programs with nonstandard names/locations. 1603 1604Report bugs to the package provider. 1605_ACEOF 1606ac_status=$? 1607fi 1608 1609if test "$ac_init_help" = "recursive"; then 1610 # If there are subdirs, report their specific --help. 1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1612 test -d "$ac_dir" || 1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1614 continue 1615 ac_builddir=. 1616 1617case "$ac_dir" in 1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1619*) 1620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1621 # A ".." for each directory in $ac_dir_suffix. 1622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1623 case $ac_top_builddir_sub in 1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1626 esac ;; 1627esac 1628ac_abs_top_builddir=$ac_pwd 1629ac_abs_builddir=$ac_pwd$ac_dir_suffix 1630# for backward compatibility: 1631ac_top_builddir=$ac_top_build_prefix 1632 1633case $srcdir in 1634 .) # We are building in place. 1635 ac_srcdir=. 1636 ac_top_srcdir=$ac_top_builddir_sub 1637 ac_abs_top_srcdir=$ac_pwd ;; 1638 [\\/]* | ?:[\\/]* ) # Absolute name. 1639 ac_srcdir=$srcdir$ac_dir_suffix; 1640 ac_top_srcdir=$srcdir 1641 ac_abs_top_srcdir=$srcdir ;; 1642 *) # Relative name. 1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1644 ac_top_srcdir=$ac_top_build_prefix$srcdir 1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1646esac 1647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1648 1649 cd "$ac_dir" || { ac_status=$?; continue; } 1650 # Check for guested configure. 1651 if test -f "$ac_srcdir/configure.gnu"; then 1652 echo && 1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1654 elif test -f "$ac_srcdir/configure"; then 1655 echo && 1656 $SHELL "$ac_srcdir/configure" --help=recursive 1657 else 1658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1659 fi || ac_status=$? 1660 cd "$ac_pwd" || { ac_status=$?; break; } 1661 done 1662fi 1663 1664test -n "$ac_init_help" && exit $ac_status 1665if $ac_init_version; then 1666 cat <<\_ACEOF 1667Zabbix configure 3.0.32 1668generated by GNU Autoconf 2.69 1669 1670Copyright (C) 2012 Free Software Foundation, Inc. 1671This configure script is free software; the Free Software Foundation 1672gives unlimited permission to copy, distribute and modify it. 1673_ACEOF 1674 exit 1675fi 1676 1677## ------------------------ ## 1678## Autoconf initialization. ## 1679## ------------------------ ## 1680 1681# ac_fn_c_try_compile LINENO 1682# -------------------------- 1683# Try to compile conftest.$ac_ext, and return whether this succeeded. 1684ac_fn_c_try_compile () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 rm -f conftest.$ac_objext 1688 if { { ac_try="$ac_compile" 1689case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_compile") 2>conftest.err 1696 ac_status=$? 1697 if test -s conftest.err; then 1698 grep -v '^ *+' conftest.err >conftest.er1 1699 cat conftest.er1 >&5 1700 mv -f conftest.er1 conftest.err 1701 fi 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; } && { 1704 test -z "$ac_c_werror_flag" || 1705 test ! -s conftest.err 1706 } && test -s conftest.$ac_objext; then : 1707 ac_retval=0 1708else 1709 $as_echo "$as_me: failed program was:" >&5 1710sed 's/^/| /' conftest.$ac_ext >&5 1711 1712 ac_retval=1 1713fi 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717} # ac_fn_c_try_compile 1718 1719# ac_fn_c_try_cpp LINENO 1720# ---------------------- 1721# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1722ac_fn_c_try_cpp () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 if { { ac_try="$ac_cpp conftest.$ac_ext" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } > conftest.i && { 1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1742 test ! -s conftest.err 1743 }; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_cpp 1755 1756# ac_fn_c_try_run LINENO 1757# ---------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1759# that executables *can* be run. 1760ac_fn_c_try_run () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>&5 1771 ac_status=$? 1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1774 { { case "(($ac_try" in 1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776 *) ac_try_echo=$ac_try;; 1777esac 1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779$as_echo "$ac_try_echo"; } >&5 1780 (eval "$ac_try") 2>&5 1781 ac_status=$? 1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1783 test $ac_status = 0; }; }; then : 1784 ac_retval=0 1785else 1786 $as_echo "$as_me: program exited with status $ac_status" >&5 1787 $as_echo "$as_me: failed program was:" >&5 1788sed 's/^/| /' conftest.$ac_ext >&5 1789 1790 ac_retval=$ac_status 1791fi 1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794 as_fn_set_status $ac_retval 1795 1796} # ac_fn_c_try_run 1797 1798# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1799# ------------------------------------------------------- 1800# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1801# the include files in INCLUDES and setting the cache variable VAR 1802# accordingly. 1803ac_fn_c_check_header_mongrel () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 if eval \${$3+:} false; then : 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1808$as_echo_n "checking for $2... " >&6; } 1809if eval \${$3+:} false; then : 1810 $as_echo_n "(cached) " >&6 1811fi 1812eval ac_res=\$$3 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1814$as_echo "$ac_res" >&6; } 1815else 1816 # Is the header compilable? 1817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1818$as_echo_n "checking $2 usability... " >&6; } 1819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1820/* end confdefs.h. */ 1821$4 1822#include <$2> 1823_ACEOF 1824if ac_fn_c_try_compile "$LINENO"; then : 1825 ac_header_compiler=yes 1826else 1827 ac_header_compiler=no 1828fi 1829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1831$as_echo "$ac_header_compiler" >&6; } 1832 1833# Is the header present? 1834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1835$as_echo_n "checking $2 presence... " >&6; } 1836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837/* end confdefs.h. */ 1838#include <$2> 1839_ACEOF 1840if ac_fn_c_try_cpp "$LINENO"; then : 1841 ac_header_preproc=yes 1842else 1843 ac_header_preproc=no 1844fi 1845rm -f conftest.err conftest.i conftest.$ac_ext 1846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1847$as_echo "$ac_header_preproc" >&6; } 1848 1849# So? What about this header? 1850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1851 yes:no: ) 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1853$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1855$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1856 ;; 1857 no:yes:* ) 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1859$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1861$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1863$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1865$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1867$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1868 ;; 1869esac 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871$as_echo_n "checking for $2... " >&6; } 1872if eval \${$3+:} false; then : 1873 $as_echo_n "(cached) " >&6 1874else 1875 eval "$3=\$ac_header_compiler" 1876fi 1877eval ac_res=\$$3 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879$as_echo "$ac_res" >&6; } 1880fi 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_header_mongrel 1884 1885# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1886# ------------------------------------------------------- 1887# Tests whether HEADER exists and can be compiled using the include files in 1888# INCLUDES, setting the cache variable VAR accordingly. 1889ac_fn_c_check_header_compile () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1893$as_echo_n "checking for $2... " >&6; } 1894if eval \${$3+:} false; then : 1895 $as_echo_n "(cached) " >&6 1896else 1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1898/* end confdefs.h. */ 1899$4 1900#include <$2> 1901_ACEOF 1902if ac_fn_c_try_compile "$LINENO"; then : 1903 eval "$3=yes" 1904else 1905 eval "$3=no" 1906fi 1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1908fi 1909eval ac_res=\$$3 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1911$as_echo "$ac_res" >&6; } 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 1914} # ac_fn_c_check_header_compile 1915 1916# ac_fn_c_try_link LINENO 1917# ----------------------- 1918# Try to link conftest.$ac_ext, and return whether this succeeded. 1919ac_fn_c_try_link () 1920{ 1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1922 rm -f conftest.$ac_objext conftest$ac_exeext 1923 if { { ac_try="$ac_link" 1924case "(($ac_try" in 1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1926 *) ac_try_echo=$ac_try;; 1927esac 1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1929$as_echo "$ac_try_echo"; } >&5 1930 (eval "$ac_link") 2>conftest.err 1931 ac_status=$? 1932 if test -s conftest.err; then 1933 grep -v '^ *+' conftest.err >conftest.er1 1934 cat conftest.er1 >&5 1935 mv -f conftest.er1 conftest.err 1936 fi 1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1938 test $ac_status = 0; } && { 1939 test -z "$ac_c_werror_flag" || 1940 test ! -s conftest.err 1941 } && test -s conftest$ac_exeext && { 1942 test "$cross_compiling" = yes || 1943 test -x conftest$ac_exeext 1944 }; then : 1945 ac_retval=0 1946else 1947 $as_echo "$as_me: failed program was:" >&5 1948sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 ac_retval=1 1951fi 1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1954 # interfere with the next link command; also delete a directory that is 1955 # left behind by Apple's compiler. We do this before executing the actions. 1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1958 as_fn_set_status $ac_retval 1959 1960} # ac_fn_c_try_link 1961 1962# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1963# ------------------------------------------- 1964# Tests whether TYPE exists after having included INCLUDES, setting cache 1965# variable VAR accordingly. 1966ac_fn_c_check_type () 1967{ 1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1970$as_echo_n "checking for $2... " >&6; } 1971if eval \${$3+:} false; then : 1972 $as_echo_n "(cached) " >&6 1973else 1974 eval "$3=no" 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977$4 1978int 1979main () 1980{ 1981if (sizeof ($2)) 1982 return 0; 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO"; then : 1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1989/* end confdefs.h. */ 1990$4 1991int 1992main () 1993{ 1994if (sizeof (($2))) 1995 return 0; 1996 ; 1997 return 0; 1998} 1999_ACEOF 2000if ac_fn_c_try_compile "$LINENO"; then : 2001 2002else 2003 eval "$3=yes" 2004fi 2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2006fi 2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2008fi 2009eval ac_res=\$$3 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011$as_echo "$ac_res" >&6; } 2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2013 2014} # ac_fn_c_check_type 2015 2016# ac_fn_c_check_func LINENO FUNC VAR 2017# ---------------------------------- 2018# Tests whether FUNC exists, setting the cache variable VAR accordingly 2019ac_fn_c_check_func () 2020{ 2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2023$as_echo_n "checking for $2... " >&6; } 2024if eval \${$3+:} false; then : 2025 $as_echo_n "(cached) " >&6 2026else 2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2028/* end confdefs.h. */ 2029/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2031#define $2 innocuous_$2 2032 2033/* System header to define __stub macros and hopefully few prototypes, 2034 which can conflict with char $2 (); below. 2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2036 <limits.h> exists even on freestanding compilers. */ 2037 2038#ifdef __STDC__ 2039# include <limits.h> 2040#else 2041# include <assert.h> 2042#endif 2043 2044#undef $2 2045 2046/* Override any GCC internal prototype to avoid an error. 2047 Use char because int might match the return type of a GCC 2048 builtin and then its argument prototype would still apply. */ 2049#ifdef __cplusplus 2050extern "C" 2051#endif 2052char $2 (); 2053/* The GNU C library defines this for functions which it implements 2054 to always fail with ENOSYS. Some functions are actually named 2055 something starting with __ and the normal name is an alias. */ 2056#if defined __stub_$2 || defined __stub___$2 2057choke me 2058#endif 2059 2060int 2061main () 2062{ 2063return $2 (); 2064 ; 2065 return 0; 2066} 2067_ACEOF 2068if ac_fn_c_try_link "$LINENO"; then : 2069 eval "$3=yes" 2070else 2071 eval "$3=no" 2072fi 2073rm -f core conftest.err conftest.$ac_objext \ 2074 conftest$ac_exeext conftest.$ac_ext 2075fi 2076eval ac_res=\$$3 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2078$as_echo "$ac_res" >&6; } 2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2080 2081} # ac_fn_c_check_func 2082 2083# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2084# -------------------------------------------- 2085# Tries to find the compile-time value of EXPR in a program that includes 2086# INCLUDES, setting VAR accordingly. Returns whether the value could be 2087# computed 2088ac_fn_c_compute_int () 2089{ 2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2091 if test "$cross_compiling" = yes; then 2092 # Depending upon the size, compute the lo and hi bounds. 2093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2094/* end confdefs.h. */ 2095$4 2096int 2097main () 2098{ 2099static int test_array [1 - 2 * !(($2) >= 0)]; 2100test_array [0] = 0; 2101return test_array [0]; 2102 2103 ; 2104 return 0; 2105} 2106_ACEOF 2107if ac_fn_c_try_compile "$LINENO"; then : 2108 ac_lo=0 ac_mid=0 2109 while :; do 2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2111/* end confdefs.h. */ 2112$4 2113int 2114main () 2115{ 2116static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2117test_array [0] = 0; 2118return test_array [0]; 2119 2120 ; 2121 return 0; 2122} 2123_ACEOF 2124if ac_fn_c_try_compile "$LINENO"; then : 2125 ac_hi=$ac_mid; break 2126else 2127 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2128 if test $ac_lo -le $ac_mid; then 2129 ac_lo= ac_hi= 2130 break 2131 fi 2132 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2133fi 2134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2135 done 2136else 2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2138/* end confdefs.h. */ 2139$4 2140int 2141main () 2142{ 2143static int test_array [1 - 2 * !(($2) < 0)]; 2144test_array [0] = 0; 2145return test_array [0]; 2146 2147 ; 2148 return 0; 2149} 2150_ACEOF 2151if ac_fn_c_try_compile "$LINENO"; then : 2152 ac_hi=-1 ac_mid=-1 2153 while :; do 2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2155/* end confdefs.h. */ 2156$4 2157int 2158main () 2159{ 2160static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2161test_array [0] = 0; 2162return test_array [0]; 2163 2164 ; 2165 return 0; 2166} 2167_ACEOF 2168if ac_fn_c_try_compile "$LINENO"; then : 2169 ac_lo=$ac_mid; break 2170else 2171 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2172 if test $ac_mid -le $ac_hi; then 2173 ac_lo= ac_hi= 2174 break 2175 fi 2176 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2177fi 2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2179 done 2180else 2181 ac_lo= ac_hi= 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184fi 2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2186# Binary search between lo and hi bounds. 2187while test "x$ac_lo" != "x$ac_hi"; do 2188 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190/* end confdefs.h. */ 2191$4 2192int 2193main () 2194{ 2195static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2196test_array [0] = 0; 2197return test_array [0]; 2198 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203if ac_fn_c_try_compile "$LINENO"; then : 2204 ac_hi=$ac_mid 2205else 2206 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2207fi 2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2209done 2210case $ac_lo in #(( 2211?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2212'') ac_retval=1 ;; 2213esac 2214 else 2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2216/* end confdefs.h. */ 2217$4 2218static long int longval () { return $2; } 2219static unsigned long int ulongval () { return $2; } 2220#include <stdio.h> 2221#include <stdlib.h> 2222int 2223main () 2224{ 2225 2226 FILE *f = fopen ("conftest.val", "w"); 2227 if (! f) 2228 return 1; 2229 if (($2) < 0) 2230 { 2231 long int i = longval (); 2232 if (i != ($2)) 2233 return 1; 2234 fprintf (f, "%ld", i); 2235 } 2236 else 2237 { 2238 unsigned long int i = ulongval (); 2239 if (i != ($2)) 2240 return 1; 2241 fprintf (f, "%lu", i); 2242 } 2243 /* Do not output a trailing newline, as this causes \r\n confusion 2244 on some platforms. */ 2245 return ferror (f) || fclose (f) != 0; 2246 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251if ac_fn_c_try_run "$LINENO"; then : 2252 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2253else 2254 ac_retval=1 2255fi 2256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2257 conftest.$ac_objext conftest.beam conftest.$ac_ext 2258rm -f conftest.val 2259 2260 fi 2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2262 as_fn_set_status $ac_retval 2263 2264} # ac_fn_c_compute_int 2265cat >config.log <<_ACEOF 2266This file contains any messages produced by compilers while 2267running configure, to aid debugging if configure makes a mistake. 2268 2269It was created by Zabbix $as_me 3.0.32, which was 2270generated by GNU Autoconf 2.69. Invocation command line was 2271 2272 $ $0 $@ 2273 2274_ACEOF 2275exec 5>>config.log 2276{ 2277cat <<_ASUNAME 2278## --------- ## 2279## Platform. ## 2280## --------- ## 2281 2282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2283uname -m = `(uname -m) 2>/dev/null || echo unknown` 2284uname -r = `(uname -r) 2>/dev/null || echo unknown` 2285uname -s = `(uname -s) 2>/dev/null || echo unknown` 2286uname -v = `(uname -v) 2>/dev/null || echo unknown` 2287 2288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2289/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2290 2291/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2292/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2294/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2295/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2296/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2297/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2298 2299_ASUNAME 2300 2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2302for as_dir in $PATH 2303do 2304 IFS=$as_save_IFS 2305 test -z "$as_dir" && as_dir=. 2306 $as_echo "PATH: $as_dir" 2307 done 2308IFS=$as_save_IFS 2309 2310} >&5 2311 2312cat >&5 <<_ACEOF 2313 2314 2315## ----------- ## 2316## Core tests. ## 2317## ----------- ## 2318 2319_ACEOF 2320 2321 2322# Keep a trace of the command line. 2323# Strip out --no-create and --no-recursion so they do not pile up. 2324# Strip out --silent because we don't want to record it for future runs. 2325# Also quote any args containing shell meta-characters. 2326# Make two passes to allow for proper duplicate-argument suppression. 2327ac_configure_args= 2328ac_configure_args0= 2329ac_configure_args1= 2330ac_must_keep_next=false 2331for ac_pass in 1 2 2332do 2333 for ac_arg 2334 do 2335 case $ac_arg in 2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2338 | -silent | --silent | --silen | --sile | --sil) 2339 continue ;; 2340 *\'*) 2341 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2342 esac 2343 case $ac_pass in 2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2345 2) 2346 as_fn_append ac_configure_args1 " '$ac_arg'" 2347 if test $ac_must_keep_next = true; then 2348 ac_must_keep_next=false # Got value, back to normal. 2349 else 2350 case $ac_arg in 2351 *=* | --config-cache | -C | -disable-* | --disable-* \ 2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2354 | -with-* | --with-* | -without-* | --without-* | --x) 2355 case "$ac_configure_args0 " in 2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2357 esac 2358 ;; 2359 -* ) ac_must_keep_next=true ;; 2360 esac 2361 fi 2362 as_fn_append ac_configure_args " '$ac_arg'" 2363 ;; 2364 esac 2365 done 2366done 2367{ ac_configure_args0=; unset ac_configure_args0;} 2368{ ac_configure_args1=; unset ac_configure_args1;} 2369 2370# When interrupted or exit'd, cleanup temporary files, and complete 2371# config.log. We remove comments because anyway the quotes in there 2372# would cause problems or look ugly. 2373# WARNING: Use '\'' to represent an apostrophe within the trap. 2374# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2375trap 'exit_status=$? 2376 # Save into config.log some information that might help in debugging. 2377 { 2378 echo 2379 2380 $as_echo "## ---------------- ## 2381## Cache variables. ## 2382## ---------------- ##" 2383 echo 2384 # The following way of writing the cache mishandles newlines in values, 2385( 2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2387 eval ac_val=\$$ac_var 2388 case $ac_val in #( 2389 *${as_nl}*) 2390 case $ac_var in #( 2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2393 esac 2394 case $ac_var in #( 2395 _ | IFS | as_nl) ;; #( 2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2397 *) { eval $ac_var=; unset $ac_var;} ;; 2398 esac ;; 2399 esac 2400 done 2401 (set) 2>&1 | 2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2403 *${as_nl}ac_space=\ *) 2404 sed -n \ 2405 "s/'\''/'\''\\\\'\'''\''/g; 2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2407 ;; #( 2408 *) 2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2410 ;; 2411 esac | 2412 sort 2413) 2414 echo 2415 2416 $as_echo "## ----------------- ## 2417## Output variables. ## 2418## ----------------- ##" 2419 echo 2420 for ac_var in $ac_subst_vars 2421 do 2422 eval ac_val=\$$ac_var 2423 case $ac_val in 2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2425 esac 2426 $as_echo "$ac_var='\''$ac_val'\''" 2427 done | sort 2428 echo 2429 2430 if test -n "$ac_subst_files"; then 2431 $as_echo "## ------------------- ## 2432## File substitutions. ## 2433## ------------------- ##" 2434 echo 2435 for ac_var in $ac_subst_files 2436 do 2437 eval ac_val=\$$ac_var 2438 case $ac_val in 2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2440 esac 2441 $as_echo "$ac_var='\''$ac_val'\''" 2442 done | sort 2443 echo 2444 fi 2445 2446 if test -s confdefs.h; then 2447 $as_echo "## ----------- ## 2448## confdefs.h. ## 2449## ----------- ##" 2450 echo 2451 cat confdefs.h 2452 echo 2453 fi 2454 test "$ac_signal" != 0 && 2455 $as_echo "$as_me: caught signal $ac_signal" 2456 $as_echo "$as_me: exit $exit_status" 2457 } >&5 2458 rm -f core *.core core.conftest.* && 2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2460 exit $exit_status 2461' 0 2462for ac_signal in 1 2 13 15; do 2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2464done 2465ac_signal=0 2466 2467# confdefs.h avoids OS command line length limits that DEFS can exceed. 2468rm -f -r conftest* confdefs.h 2469 2470$as_echo "/* confdefs.h */" > confdefs.h 2471 2472# Predefined preprocessor variables. 2473 2474cat >>confdefs.h <<_ACEOF 2475#define PACKAGE_NAME "$PACKAGE_NAME" 2476_ACEOF 2477 2478cat >>confdefs.h <<_ACEOF 2479#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2480_ACEOF 2481 2482cat >>confdefs.h <<_ACEOF 2483#define PACKAGE_VERSION "$PACKAGE_VERSION" 2484_ACEOF 2485 2486cat >>confdefs.h <<_ACEOF 2487#define PACKAGE_STRING "$PACKAGE_STRING" 2488_ACEOF 2489 2490cat >>confdefs.h <<_ACEOF 2491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2492_ACEOF 2493 2494cat >>confdefs.h <<_ACEOF 2495#define PACKAGE_URL "$PACKAGE_URL" 2496_ACEOF 2497 2498 2499# Let the site file select an alternate cache file if it wants to. 2500# Prefer an explicitly selected file to automatically selected ones. 2501ac_site_file1=NONE 2502ac_site_file2=NONE 2503if test -n "$CONFIG_SITE"; then 2504 # We do not want a PATH search for config.site. 2505 case $CONFIG_SITE in #(( 2506 -*) ac_site_file1=./$CONFIG_SITE;; 2507 */*) ac_site_file1=$CONFIG_SITE;; 2508 *) ac_site_file1=./$CONFIG_SITE;; 2509 esac 2510elif test "x$prefix" != xNONE; then 2511 ac_site_file1=$prefix/share/config.site 2512 ac_site_file2=$prefix/etc/config.site 2513else 2514 ac_site_file1=$ac_default_prefix/share/config.site 2515 ac_site_file2=$ac_default_prefix/etc/config.site 2516fi 2517for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2518do 2519 test "x$ac_site_file" = xNONE && continue 2520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2522$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2523 sed 's/^/| /' "$ac_site_file" >&5 2524 . "$ac_site_file" \ 2525 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2527as_fn_error $? "failed to load site script $ac_site_file 2528See \`config.log' for more details" "$LINENO" 5; } 2529 fi 2530done 2531 2532if test -r "$cache_file"; then 2533 # Some versions of bash will fail to source /dev/null (special files 2534 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2535 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2537$as_echo "$as_me: loading cache $cache_file" >&6;} 2538 case $cache_file in 2539 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2540 *) . "./$cache_file";; 2541 esac 2542 fi 2543else 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2545$as_echo "$as_me: creating cache $cache_file" >&6;} 2546 >$cache_file 2547fi 2548 2549# Check that the precious variables saved in the cache have kept the same 2550# value. 2551ac_cache_corrupted=false 2552for ac_var in $ac_precious_vars; do 2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2554 eval ac_new_set=\$ac_env_${ac_var}_set 2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2556 eval ac_new_val=\$ac_env_${ac_var}_value 2557 case $ac_old_set,$ac_new_set in 2558 set,) 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2560$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2561 ac_cache_corrupted=: ;; 2562 ,set) 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2564$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2565 ac_cache_corrupted=: ;; 2566 ,);; 2567 *) 2568 if test "x$ac_old_val" != "x$ac_new_val"; then 2569 # differences in whitespace do not lead to failure. 2570 ac_old_val_w=`echo x $ac_old_val` 2571 ac_new_val_w=`echo x $ac_new_val` 2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2574$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2575 ac_cache_corrupted=: 2576 else 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2578$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2579 eval $ac_var=\$ac_old_val 2580 fi 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2582$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2584$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2585 fi;; 2586 esac 2587 # Pass precious variables to config.status. 2588 if test "$ac_new_set" = set; then 2589 case $ac_new_val in 2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2591 *) ac_arg=$ac_var=$ac_new_val ;; 2592 esac 2593 case " $ac_configure_args " in 2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2596 esac 2597 fi 2598done 2599if $ac_cache_corrupted; then 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2603$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2604 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2605fi 2606## -------------------- ## 2607## Main body of script. ## 2608## -------------------- ## 2609 2610ac_ext=c 2611ac_cpp='$CPP $CPPFLAGS' 2612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2614ac_compiler_gnu=$ac_cv_c_compiler_gnu 2615 2616 2617 2618am__api_version='1.15' 2619 2620ac_aux_dir= 2621for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2622 if test -f "$ac_dir/install-sh"; then 2623 ac_aux_dir=$ac_dir 2624 ac_install_sh="$ac_aux_dir/install-sh -c" 2625 break 2626 elif test -f "$ac_dir/install.sh"; then 2627 ac_aux_dir=$ac_dir 2628 ac_install_sh="$ac_aux_dir/install.sh -c" 2629 break 2630 elif test -f "$ac_dir/shtool"; then 2631 ac_aux_dir=$ac_dir 2632 ac_install_sh="$ac_aux_dir/shtool install -c" 2633 break 2634 fi 2635done 2636if test -z "$ac_aux_dir"; then 2637 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2638fi 2639 2640# These three variables are undocumented and unsupported, 2641# and are intended to be withdrawn in a future Autoconf release. 2642# They can cause serious problems if a builder's source tree is in a directory 2643# whose full name contains unusual characters. 2644ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2645ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2646ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2647 2648 2649# Find a good install program. We prefer a C program (faster), 2650# so one script is as good as another. But avoid the broken or 2651# incompatible versions: 2652# SysV /etc/install, /usr/sbin/install 2653# SunOS /usr/etc/install 2654# IRIX /sbin/install 2655# AIX /bin/install 2656# AmigaOS /C/install, which installs bootblocks on floppy discs 2657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2658# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2660# OS/2's system install, which has a completely different semantic 2661# ./install, which can be erroneously created by make from ./install.sh. 2662# Reject install programs that cannot install multiple files. 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2664$as_echo_n "checking for a BSD-compatible install... " >&6; } 2665if test -z "$INSTALL"; then 2666if ${ac_cv_path_install+:} false; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 # Account for people who put trailing slashes in PATH elements. 2675case $as_dir/ in #(( 2676 ./ | .// | /[cC]/* | \ 2677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2678 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2679 /usr/ucb/* ) ;; 2680 *) 2681 # OSF1 and SCO ODT 3.0 have their own names for install. 2682 # Don't use installbsd from OSF since it installs stuff as root 2683 # by default. 2684 for ac_prog in ginstall scoinst install; do 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2687 if test $ac_prog = install && 2688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2689 # AIX install. It has an incompatible calling convention. 2690 : 2691 elif test $ac_prog = install && 2692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2693 # program-specific install script used by HP pwplus--don't use. 2694 : 2695 else 2696 rm -rf conftest.one conftest.two conftest.dir 2697 echo one > conftest.one 2698 echo two > conftest.two 2699 mkdir conftest.dir 2700 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2701 test -s conftest.one && test -s conftest.two && 2702 test -s conftest.dir/conftest.one && 2703 test -s conftest.dir/conftest.two 2704 then 2705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2706 break 3 2707 fi 2708 fi 2709 fi 2710 done 2711 done 2712 ;; 2713esac 2714 2715 done 2716IFS=$as_save_IFS 2717 2718rm -rf conftest.one conftest.two conftest.dir 2719 2720fi 2721 if test "${ac_cv_path_install+set}" = set; then 2722 INSTALL=$ac_cv_path_install 2723 else 2724 # As a last resort, use the slow shell script. Don't cache a 2725 # value for INSTALL within a source directory, because that will 2726 # break other packages using the cache if that directory is 2727 # removed, or if the value is a relative name. 2728 INSTALL=$ac_install_sh 2729 fi 2730fi 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2732$as_echo "$INSTALL" >&6; } 2733 2734# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2735# It thinks the first close brace ends the variable substitution. 2736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2737 2738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2739 2740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2741 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2743$as_echo_n "checking whether build environment is sane... " >&6; } 2744# Reject unsafe characters in $srcdir or the absolute working directory 2745# name. Accept space and tab only in the latter. 2746am_lf=' 2747' 2748case `pwd` in 2749 *[\\\"\#\$\&\'\`$am_lf]*) 2750 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2751esac 2752case $srcdir in 2753 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2754 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2755esac 2756 2757# Do 'set' in a subshell so we don't clobber the current shell's 2758# arguments. Must try -L first in case configure is actually a 2759# symlink; some systems play weird games with the mod time of symlinks 2760# (eg FreeBSD returns the mod time of the symlink's containing 2761# directory). 2762if ( 2763 am_has_slept=no 2764 for am_try in 1 2; do 2765 echo "timestamp, slept: $am_has_slept" > conftest.file 2766 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2767 if test "$*" = "X"; then 2768 # -L didn't work. 2769 set X `ls -t "$srcdir/configure" conftest.file` 2770 fi 2771 if test "$*" != "X $srcdir/configure conftest.file" \ 2772 && test "$*" != "X conftest.file $srcdir/configure"; then 2773 2774 # If neither matched, then we have a broken ls. This can happen 2775 # if, for instance, CONFIG_SHELL is bash and it inherits a 2776 # broken ls alias from the environment. This has actually 2777 # happened. Such a system could not be considered "sane". 2778 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2779 alias in your environment" "$LINENO" 5 2780 fi 2781 if test "$2" = conftest.file || test $am_try -eq 2; then 2782 break 2783 fi 2784 # Just in case. 2785 sleep 1 2786 am_has_slept=yes 2787 done 2788 test "$2" = conftest.file 2789 ) 2790then 2791 # Ok. 2792 : 2793else 2794 as_fn_error $? "newly created file is older than distributed files! 2795Check your system clock" "$LINENO" 5 2796fi 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2798$as_echo "yes" >&6; } 2799# If we didn't sleep, we still need to ensure time stamps of config.status and 2800# generated files are strictly newer. 2801am_sleep_pid= 2802if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2803 ( sleep 1 ) & 2804 am_sleep_pid=$! 2805fi 2806 2807rm -f conftest.file 2808 2809test "$program_prefix" != NONE && 2810 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2811# Use a double $ so make ignores it. 2812test "$program_suffix" != NONE && 2813 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2814# Double any \ or $. 2815# By default was `s,x,x', remove it if useless. 2816ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2817program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2818 2819# Expand $ac_aux_dir to an absolute path. 2820am_aux_dir=`cd "$ac_aux_dir" && pwd` 2821 2822if test x"${MISSING+set}" != xset; then 2823 case $am_aux_dir in 2824 *\ * | *\ *) 2825 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2826 *) 2827 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2828 esac 2829fi 2830# Use eval to expand $SHELL 2831if eval "$MISSING --is-lightweight"; then 2832 am_missing_run="$MISSING " 2833else 2834 am_missing_run= 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2836$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2837fi 2838 2839if test x"${install_sh+set}" != xset; then 2840 case $am_aux_dir in 2841 *\ * | *\ *) 2842 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2843 *) 2844 install_sh="\${SHELL} $am_aux_dir/install-sh" 2845 esac 2846fi 2847 2848# Installed binaries are usually stripped using 'strip' when the user 2849# run "make install-strip". However 'strip' might not be the right 2850# tool to use in cross-compilation environments, therefore Automake 2851# will honor the 'STRIP' environment variable to overrule this program. 2852if test "$cross_compiling" != no; then 2853 if test -n "$ac_tool_prefix"; then 2854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2855set dummy ${ac_tool_prefix}strip; ac_word=$2 2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2857$as_echo_n "checking for $ac_word... " >&6; } 2858if ${ac_cv_prog_STRIP+:} false; then : 2859 $as_echo_n "(cached) " >&6 2860else 2861 if test -n "$STRIP"; then 2862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2863else 2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH 2866do 2867 IFS=$as_save_IFS 2868 test -z "$as_dir" && as_dir=. 2869 for ac_exec_ext in '' $ac_executable_extensions; do 2870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2871 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2873 break 2 2874 fi 2875done 2876 done 2877IFS=$as_save_IFS 2878 2879fi 2880fi 2881STRIP=$ac_cv_prog_STRIP 2882if test -n "$STRIP"; then 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2884$as_echo "$STRIP" >&6; } 2885else 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2887$as_echo "no" >&6; } 2888fi 2889 2890 2891fi 2892if test -z "$ac_cv_prog_STRIP"; then 2893 ac_ct_STRIP=$STRIP 2894 # Extract the first word of "strip", so it can be a program name with args. 2895set dummy strip; ac_word=$2 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2897$as_echo_n "checking for $ac_word... " >&6; } 2898if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2899 $as_echo_n "(cached) " >&6 2900else 2901 if test -n "$ac_ct_STRIP"; then 2902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2903else 2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2905for as_dir in $PATH 2906do 2907 IFS=$as_save_IFS 2908 test -z "$as_dir" && as_dir=. 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2911 ac_cv_prog_ac_ct_STRIP="strip" 2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2913 break 2 2914 fi 2915done 2916 done 2917IFS=$as_save_IFS 2918 2919fi 2920fi 2921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2922if test -n "$ac_ct_STRIP"; then 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2924$as_echo "$ac_ct_STRIP" >&6; } 2925else 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927$as_echo "no" >&6; } 2928fi 2929 2930 if test "x$ac_ct_STRIP" = x; then 2931 STRIP=":" 2932 else 2933 case $cross_compiling:$ac_tool_warned in 2934yes:) 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2937ac_tool_warned=yes ;; 2938esac 2939 STRIP=$ac_ct_STRIP 2940 fi 2941else 2942 STRIP="$ac_cv_prog_STRIP" 2943fi 2944 2945fi 2946INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2947 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2949$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2950if test -z "$MKDIR_P"; then 2951 if ${ac_cv_path_mkdir+:} false; then : 2952 $as_echo_n "(cached) " >&6 2953else 2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2955for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2956do 2957 IFS=$as_save_IFS 2958 test -z "$as_dir" && as_dir=. 2959 for ac_prog in mkdir gmkdir; do 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2962 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2963 'mkdir (GNU coreutils) '* | \ 2964 'mkdir (coreutils) '* | \ 2965 'mkdir (fileutils) '4.1*) 2966 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2967 break 3;; 2968 esac 2969 done 2970 done 2971 done 2972IFS=$as_save_IFS 2973 2974fi 2975 2976 test -d ./--version && rmdir ./--version 2977 if test "${ac_cv_path_mkdir+set}" = set; then 2978 MKDIR_P="$ac_cv_path_mkdir -p" 2979 else 2980 # As a last resort, use the slow shell script. Don't cache a 2981 # value for MKDIR_P within a source directory, because that will 2982 # break other packages using the cache if that directory is 2983 # removed, or if the value is a relative name. 2984 MKDIR_P="$ac_install_sh -d" 2985 fi 2986fi 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2988$as_echo "$MKDIR_P" >&6; } 2989 2990for ac_prog in gawk mawk nawk awk 2991do 2992 # Extract the first word of "$ac_prog", so it can be a program name with args. 2993set dummy $ac_prog; ac_word=$2 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2995$as_echo_n "checking for $ac_word... " >&6; } 2996if ${ac_cv_prog_AWK+:} false; then : 2997 $as_echo_n "(cached) " >&6 2998else 2999 if test -n "$AWK"; then 3000 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3001else 3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3003for as_dir in $PATH 3004do 3005 IFS=$as_save_IFS 3006 test -z "$as_dir" && as_dir=. 3007 for ac_exec_ext in '' $ac_executable_extensions; do 3008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3009 ac_cv_prog_AWK="$ac_prog" 3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3011 break 2 3012 fi 3013done 3014 done 3015IFS=$as_save_IFS 3016 3017fi 3018fi 3019AWK=$ac_cv_prog_AWK 3020if test -n "$AWK"; then 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3022$as_echo "$AWK" >&6; } 3023else 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025$as_echo "no" >&6; } 3026fi 3027 3028 3029 test -n "$AWK" && break 3030done 3031 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3033$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3034set x ${MAKE-make} 3035ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3036if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 cat >conftest.make <<\_ACEOF 3040SHELL = /bin/sh 3041all: 3042 @echo '@@@%%%=$(MAKE)=@@@%%%' 3043_ACEOF 3044# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3045case `${MAKE-make} -f conftest.make 2>/dev/null` in 3046 *@@@%%%=?*=@@@%%%*) 3047 eval ac_cv_prog_make_${ac_make}_set=yes;; 3048 *) 3049 eval ac_cv_prog_make_${ac_make}_set=no;; 3050esac 3051rm -f conftest.make 3052fi 3053if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3055$as_echo "yes" >&6; } 3056 SET_MAKE= 3057else 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3059$as_echo "no" >&6; } 3060 SET_MAKE="MAKE=${MAKE-make}" 3061fi 3062 3063rm -rf .tst 2>/dev/null 3064mkdir .tst 2>/dev/null 3065if test -d .tst; then 3066 am__leading_dot=. 3067else 3068 am__leading_dot=_ 3069fi 3070rmdir .tst 2>/dev/null 3071 3072# Check whether --enable-silent-rules was given. 3073if test "${enable_silent_rules+set}" = set; then : 3074 enableval=$enable_silent_rules; 3075fi 3076 3077case $enable_silent_rules in # ((( 3078 yes) AM_DEFAULT_VERBOSITY=0;; 3079 no) AM_DEFAULT_VERBOSITY=1;; 3080 *) AM_DEFAULT_VERBOSITY=1;; 3081esac 3082am_make=${MAKE-make} 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3084$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3085if ${am_cv_make_support_nested_variables+:} false; then : 3086 $as_echo_n "(cached) " >&6 3087else 3088 if $as_echo 'TRUE=$(BAR$(V)) 3089BAR0=false 3090BAR1=true 3091V=1 3092am__doit: 3093 @$(TRUE) 3094.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3095 am_cv_make_support_nested_variables=yes 3096else 3097 am_cv_make_support_nested_variables=no 3098fi 3099fi 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3101$as_echo "$am_cv_make_support_nested_variables" >&6; } 3102if test $am_cv_make_support_nested_variables = yes; then 3103 AM_V='$(V)' 3104 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3105else 3106 AM_V=$AM_DEFAULT_VERBOSITY 3107 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3108fi 3109AM_BACKSLASH='\' 3110 3111if test "`cd $srcdir && pwd`" != "`pwd`"; then 3112 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3113 # is not polluted with repeated "-I." 3114 am__isrc=' -I$(srcdir)' 3115 # test to see if srcdir already configured 3116 if test -f $srcdir/config.status; then 3117 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3118 fi 3119fi 3120 3121# test whether we have cygpath 3122if test -z "$CYGPATH_W"; then 3123 if (cygpath --version) >/dev/null 2>/dev/null; then 3124 CYGPATH_W='cygpath -w' 3125 else 3126 CYGPATH_W=echo 3127 fi 3128fi 3129 3130 3131# Define the identity of the package. 3132 PACKAGE='zabbix' 3133 VERSION='3.0.32' 3134 3135 3136cat >>confdefs.h <<_ACEOF 3137#define PACKAGE "$PACKAGE" 3138_ACEOF 3139 3140 3141cat >>confdefs.h <<_ACEOF 3142#define VERSION "$VERSION" 3143_ACEOF 3144 3145# Some tools Automake needs. 3146 3147ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3148 3149 3150AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3151 3152 3153AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3154 3155 3156AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3157 3158 3159MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3160 3161# For better backward compatibility. To be removed once Automake 1.9.x 3162# dies out for good. For more background, see: 3163# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3164# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3165mkdir_p='$(MKDIR_P)' 3166 3167# We need awk for the "check" target (and possibly the TAP driver). The 3168# system "awk" is bad on some platforms. 3169# Always define AMTAR for backward compatibility. Yes, it's still used 3170# in the wild :-( We should find a proper way to deprecate it ... 3171AMTAR='$${TAR-tar}' 3172 3173 3174# We'll loop over all known methods to create a tar archive until one works. 3175_am_tools='gnutar pax cpio none' 3176 3177am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3178 3179 3180 3181 3182 3183 3184# POSIX will say in a future version that running "rm -f" with no argument 3185# is OK; and we want to be able to make that assumption in our Makefile 3186# recipes. So use an aggressive probe to check that the usage we want is 3187# actually supported "in the wild" to an acceptable degree. 3188# See automake bug#10828. 3189# To make any issue more visible, cause the running configure to be aborted 3190# by default if the 'rm' program in use doesn't match our expectations; the 3191# user can still override this though. 3192if rm -f && rm -fr && rm -rf; then : OK; else 3193 cat >&2 <<'END' 3194Oops! 3195 3196Your 'rm' program seems unable to run without file operands specified 3197on the command line, even when the '-f' option is present. This is contrary 3198to the behaviour of most rm programs out there, and not conforming with 3199the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3200 3201Please tell bug-automake@gnu.org about your system, including the value 3202of your $PATH and any error possibly output before this message. This 3203can help us improve future automake versions. 3204 3205END 3206 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3207 echo 'Configuration will proceed anyway, since you have set the' >&2 3208 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3209 echo >&2 3210 else 3211 cat >&2 <<'END' 3212Aborting the configuration process, to ensure you take notice of the issue. 3213 3214You can download and install GNU coreutils to get an 'rm' implementation 3215that behaves properly: <http://www.gnu.org/software/coreutils/>. 3216 3217If you want to complete the configuration process using your problematic 3218'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3219to "yes", and re-run configure. 3220 3221END 3222 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3223 fi 3224fi 3225 3226 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring $PACKAGE_NAME $PACKAGE_VERSION" >&5 3228$as_echo "$as_me: Configuring $PACKAGE_NAME $PACKAGE_VERSION" >&6;} 3229 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3231$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3232set x ${MAKE-make} 3233ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3234if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3235 $as_echo_n "(cached) " >&6 3236else 3237 cat >conftest.make <<\_ACEOF 3238SHELL = /bin/sh 3239all: 3240 @echo '@@@%%%=$(MAKE)=@@@%%%' 3241_ACEOF 3242# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3243case `${MAKE-make} -f conftest.make 2>/dev/null` in 3244 *@@@%%%=?*=@@@%%%*) 3245 eval ac_cv_prog_make_${ac_make}_set=yes;; 3246 *) 3247 eval ac_cv_prog_make_${ac_make}_set=no;; 3248esac 3249rm -f conftest.make 3250fi 3251if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3253$as_echo "yes" >&6; } 3254 SET_MAKE= 3255else 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257$as_echo "no" >&6; } 3258 SET_MAKE="MAKE=${MAKE-make}" 3259fi 3260 3261 3262ac_config_headers="$ac_config_headers include/config.h" 3263 3264 3265# Make sure we can run config.sub. 3266$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3267 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3268 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3270$as_echo_n "checking build system type... " >&6; } 3271if ${ac_cv_build+:} false; then : 3272 $as_echo_n "(cached) " >&6 3273else 3274 ac_build_alias=$build_alias 3275test "x$ac_build_alias" = x && 3276 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3277test "x$ac_build_alias" = x && 3278 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3279ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3280 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3281 3282fi 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3284$as_echo "$ac_cv_build" >&6; } 3285case $ac_cv_build in 3286*-*-*) ;; 3287*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3288esac 3289build=$ac_cv_build 3290ac_save_IFS=$IFS; IFS='-' 3291set x $ac_cv_build 3292shift 3293build_cpu=$1 3294build_vendor=$2 3295shift; shift 3296# Remember, the first character of IFS is used to create $*, 3297# except with old shells: 3298build_os=$* 3299IFS=$ac_save_IFS 3300case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3301 3302 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3304$as_echo_n "checking host system type... " >&6; } 3305if ${ac_cv_host+:} false; then : 3306 $as_echo_n "(cached) " >&6 3307else 3308 if test "x$host_alias" = x; then 3309 ac_cv_host=$ac_cv_build 3310else 3311 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3313fi 3314 3315fi 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3317$as_echo "$ac_cv_host" >&6; } 3318case $ac_cv_host in 3319*-*-*) ;; 3320*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3321esac 3322host=$ac_cv_host 3323ac_save_IFS=$IFS; IFS='-' 3324set x $ac_cv_host 3325shift 3326host_cpu=$1 3327host_vendor=$2 3328shift; shift 3329# Remember, the first character of IFS is used to create $*, 3330# except with old shells: 3331host_os=$* 3332IFS=$ac_save_IFS 3333case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3334 3335 3336 3337 3338ac_ext=c 3339ac_cpp='$CPP $CPPFLAGS' 3340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3342ac_compiler_gnu=$ac_cv_c_compiler_gnu 3343if test -n "$ac_tool_prefix"; then 3344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3345set dummy ${ac_tool_prefix}gcc; ac_word=$2 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3347$as_echo_n "checking for $ac_word... " >&6; } 3348if ${ac_cv_prog_CC+:} false; then : 3349 $as_echo_n "(cached) " >&6 3350else 3351 if test -n "$CC"; then 3352 ac_cv_prog_CC="$CC" # Let the user override the test. 3353else 3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3355for as_dir in $PATH 3356do 3357 IFS=$as_save_IFS 3358 test -z "$as_dir" && as_dir=. 3359 for ac_exec_ext in '' $ac_executable_extensions; do 3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3361 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3363 break 2 3364 fi 3365done 3366 done 3367IFS=$as_save_IFS 3368 3369fi 3370fi 3371CC=$ac_cv_prog_CC 3372if test -n "$CC"; then 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3374$as_echo "$CC" >&6; } 3375else 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3377$as_echo "no" >&6; } 3378fi 3379 3380 3381fi 3382if test -z "$ac_cv_prog_CC"; then 3383 ac_ct_CC=$CC 3384 # Extract the first word of "gcc", so it can be a program name with args. 3385set dummy gcc; ac_word=$2 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3387$as_echo_n "checking for $ac_word... " >&6; } 3388if ${ac_cv_prog_ac_ct_CC+:} false; then : 3389 $as_echo_n "(cached) " >&6 3390else 3391 if test -n "$ac_ct_CC"; then 3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3393else 3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3395for as_dir in $PATH 3396do 3397 IFS=$as_save_IFS 3398 test -z "$as_dir" && as_dir=. 3399 for ac_exec_ext in '' $ac_executable_extensions; do 3400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3401 ac_cv_prog_ac_ct_CC="gcc" 3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3403 break 2 3404 fi 3405done 3406 done 3407IFS=$as_save_IFS 3408 3409fi 3410fi 3411ac_ct_CC=$ac_cv_prog_ac_ct_CC 3412if test -n "$ac_ct_CC"; then 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3414$as_echo "$ac_ct_CC" >&6; } 3415else 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3417$as_echo "no" >&6; } 3418fi 3419 3420 if test "x$ac_ct_CC" = x; then 3421 CC="" 3422 else 3423 case $cross_compiling:$ac_tool_warned in 3424yes:) 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3427ac_tool_warned=yes ;; 3428esac 3429 CC=$ac_ct_CC 3430 fi 3431else 3432 CC="$ac_cv_prog_CC" 3433fi 3434 3435if test -z "$CC"; then 3436 if test -n "$ac_tool_prefix"; then 3437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3438set dummy ${ac_tool_prefix}cc; ac_word=$2 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3440$as_echo_n "checking for $ac_word... " >&6; } 3441if ${ac_cv_prog_CC+:} false; then : 3442 $as_echo_n "(cached) " >&6 3443else 3444 if test -n "$CC"; then 3445 ac_cv_prog_CC="$CC" # Let the user override the test. 3446else 3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448for as_dir in $PATH 3449do 3450 IFS=$as_save_IFS 3451 test -z "$as_dir" && as_dir=. 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3454 ac_cv_prog_CC="${ac_tool_prefix}cc" 3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3456 break 2 3457 fi 3458done 3459 done 3460IFS=$as_save_IFS 3461 3462fi 3463fi 3464CC=$ac_cv_prog_CC 3465if test -n "$CC"; then 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3467$as_echo "$CC" >&6; } 3468else 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470$as_echo "no" >&6; } 3471fi 3472 3473 3474 fi 3475fi 3476if test -z "$CC"; then 3477 # Extract the first word of "cc", so it can be a program name with args. 3478set dummy cc; ac_word=$2 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3480$as_echo_n "checking for $ac_word... " >&6; } 3481if ${ac_cv_prog_CC+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483else 3484 if test -n "$CC"; then 3485 ac_cv_prog_CC="$CC" # Let the user override the test. 3486else 3487 ac_prog_rejected=no 3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3489for as_dir in $PATH 3490do 3491 IFS=$as_save_IFS 3492 test -z "$as_dir" && as_dir=. 3493 for ac_exec_ext in '' $ac_executable_extensions; do 3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3496 ac_prog_rejected=yes 3497 continue 3498 fi 3499 ac_cv_prog_CC="cc" 3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3501 break 2 3502 fi 3503done 3504 done 3505IFS=$as_save_IFS 3506 3507if test $ac_prog_rejected = yes; then 3508 # We found a bogon in the path, so make sure we never use it. 3509 set dummy $ac_cv_prog_CC 3510 shift 3511 if test $# != 0; then 3512 # We chose a different compiler from the bogus one. 3513 # However, it has the same basename, so the bogon will be chosen 3514 # first if we set CC to just the basename; use the full file name. 3515 shift 3516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3517 fi 3518fi 3519fi 3520fi 3521CC=$ac_cv_prog_CC 3522if test -n "$CC"; then 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3524$as_echo "$CC" >&6; } 3525else 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3527$as_echo "no" >&6; } 3528fi 3529 3530 3531fi 3532if test -z "$CC"; then 3533 if test -n "$ac_tool_prefix"; then 3534 for ac_prog in cl.exe 3535 do 3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3537set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3539$as_echo_n "checking for $ac_word... " >&6; } 3540if ${ac_cv_prog_CC+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 if test -n "$CC"; then 3544 ac_cv_prog_CC="$CC" # Let the user override the test. 3545else 3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3547for as_dir in $PATH 3548do 3549 IFS=$as_save_IFS 3550 test -z "$as_dir" && as_dir=. 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3555 break 2 3556 fi 3557done 3558 done 3559IFS=$as_save_IFS 3560 3561fi 3562fi 3563CC=$ac_cv_prog_CC 3564if test -n "$CC"; then 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3566$as_echo "$CC" >&6; } 3567else 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3569$as_echo "no" >&6; } 3570fi 3571 3572 3573 test -n "$CC" && break 3574 done 3575fi 3576if test -z "$CC"; then 3577 ac_ct_CC=$CC 3578 for ac_prog in cl.exe 3579do 3580 # Extract the first word of "$ac_prog", so it can be a program name with args. 3581set dummy $ac_prog; ac_word=$2 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3583$as_echo_n "checking for $ac_word... " >&6; } 3584if ${ac_cv_prog_ac_ct_CC+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 if test -n "$ac_ct_CC"; then 3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3589else 3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3591for as_dir in $PATH 3592do 3593 IFS=$as_save_IFS 3594 test -z "$as_dir" && as_dir=. 3595 for ac_exec_ext in '' $ac_executable_extensions; do 3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3597 ac_cv_prog_ac_ct_CC="$ac_prog" 3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3599 break 2 3600 fi 3601done 3602 done 3603IFS=$as_save_IFS 3604 3605fi 3606fi 3607ac_ct_CC=$ac_cv_prog_ac_ct_CC 3608if test -n "$ac_ct_CC"; then 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3610$as_echo "$ac_ct_CC" >&6; } 3611else 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3613$as_echo "no" >&6; } 3614fi 3615 3616 3617 test -n "$ac_ct_CC" && break 3618done 3619 3620 if test "x$ac_ct_CC" = x; then 3621 CC="" 3622 else 3623 case $cross_compiling:$ac_tool_warned in 3624yes:) 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3627ac_tool_warned=yes ;; 3628esac 3629 CC=$ac_ct_CC 3630 fi 3631fi 3632 3633fi 3634 3635 3636test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3638as_fn_error $? "no acceptable C compiler found in \$PATH 3639See \`config.log' for more details" "$LINENO" 5; } 3640 3641# Provide some information about the compiler. 3642$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3643set X $ac_compile 3644ac_compiler=$2 3645for ac_option in --version -v -V -qversion; do 3646 { { ac_try="$ac_compiler $ac_option >&5" 3647case "(($ac_try" in 3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3649 *) ac_try_echo=$ac_try;; 3650esac 3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3652$as_echo "$ac_try_echo"; } >&5 3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3654 ac_status=$? 3655 if test -s conftest.err; then 3656 sed '10a\ 3657... rest of stderr output deleted ... 3658 10q' conftest.err >conftest.er1 3659 cat conftest.er1 >&5 3660 fi 3661 rm -f conftest.er1 conftest.err 3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3663 test $ac_status = 0; } 3664done 3665 3666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3667/* end confdefs.h. */ 3668 3669int 3670main () 3671{ 3672 3673 ; 3674 return 0; 3675} 3676_ACEOF 3677ac_clean_files_save=$ac_clean_files 3678ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3679# Try to create an executable without -o first, disregard a.out. 3680# It will help us diagnose broken compilers, and finding out an intuition 3681# of exeext. 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3683$as_echo_n "checking whether the C compiler works... " >&6; } 3684ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3685 3686# The possible output files: 3687ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3688 3689ac_rmfiles= 3690for ac_file in $ac_files 3691do 3692 case $ac_file in 3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3694 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3695 esac 3696done 3697rm -f $ac_rmfiles 3698 3699if { { ac_try="$ac_link_default" 3700case "(($ac_try" in 3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3702 *) ac_try_echo=$ac_try;; 3703esac 3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3705$as_echo "$ac_try_echo"; } >&5 3706 (eval "$ac_link_default") 2>&5 3707 ac_status=$? 3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3709 test $ac_status = 0; }; then : 3710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3711# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3712# in a Makefile. We should not override ac_cv_exeext if it was cached, 3713# so that the user can short-circuit this test for compilers unknown to 3714# Autoconf. 3715for ac_file in $ac_files '' 3716do 3717 test -f "$ac_file" || continue 3718 case $ac_file in 3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3720 ;; 3721 [ab].out ) 3722 # We found the default executable, but exeext='' is most 3723 # certainly right. 3724 break;; 3725 *.* ) 3726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3727 then :; else 3728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3729 fi 3730 # We set ac_cv_exeext here because the later test for it is not 3731 # safe: cross compilers may not add the suffix if given an `-o' 3732 # argument, so we may need to know it at that point already. 3733 # Even if this section looks crufty: it has the advantage of 3734 # actually working. 3735 break;; 3736 * ) 3737 break;; 3738 esac 3739done 3740test "$ac_cv_exeext" = no && ac_cv_exeext= 3741 3742else 3743 ac_file='' 3744fi 3745if test -z "$ac_file"; then : 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747$as_echo "no" >&6; } 3748$as_echo "$as_me: failed program was:" >&5 3749sed 's/^/| /' conftest.$ac_ext >&5 3750 3751{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3753as_fn_error 77 "C compiler cannot create executables 3754See \`config.log' for more details" "$LINENO" 5; } 3755else 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3757$as_echo "yes" >&6; } 3758fi 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3760$as_echo_n "checking for C compiler default output file name... " >&6; } 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3762$as_echo "$ac_file" >&6; } 3763ac_exeext=$ac_cv_exeext 3764 3765rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3766ac_clean_files=$ac_clean_files_save 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3768$as_echo_n "checking for suffix of executables... " >&6; } 3769if { { ac_try="$ac_link" 3770case "(($ac_try" in 3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3772 *) ac_try_echo=$ac_try;; 3773esac 3774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3775$as_echo "$ac_try_echo"; } >&5 3776 (eval "$ac_link") 2>&5 3777 ac_status=$? 3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3779 test $ac_status = 0; }; then : 3780 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3781# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3782# work properly (i.e., refer to `conftest.exe'), while it won't with 3783# `rm'. 3784for ac_file in conftest.exe conftest conftest.*; do 3785 test -f "$ac_file" || continue 3786 case $ac_file in 3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3789 break;; 3790 * ) break;; 3791 esac 3792done 3793else 3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3796as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3797See \`config.log' for more details" "$LINENO" 5; } 3798fi 3799rm -f conftest conftest$ac_cv_exeext 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3801$as_echo "$ac_cv_exeext" >&6; } 3802 3803rm -f conftest.$ac_ext 3804EXEEXT=$ac_cv_exeext 3805ac_exeext=$EXEEXT 3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808#include <stdio.h> 3809int 3810main () 3811{ 3812FILE *f = fopen ("conftest.out", "w"); 3813 return ferror (f) || fclose (f) != 0; 3814 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819ac_clean_files="$ac_clean_files conftest.out" 3820# Check that the compiler produces executables we can run. If not, either 3821# the compiler is broken, or we cross compile. 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3823$as_echo_n "checking whether we are cross compiling... " >&6; } 3824if test "$cross_compiling" != yes; then 3825 { { ac_try="$ac_link" 3826case "(($ac_try" in 3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3828 *) ac_try_echo=$ac_try;; 3829esac 3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3831$as_echo "$ac_try_echo"; } >&5 3832 (eval "$ac_link") 2>&5 3833 ac_status=$? 3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3835 test $ac_status = 0; } 3836 if { ac_try='./conftest$ac_cv_exeext' 3837 { { case "(($ac_try" in 3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3839 *) ac_try_echo=$ac_try;; 3840esac 3841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3842$as_echo "$ac_try_echo"; } >&5 3843 (eval "$ac_try") 2>&5 3844 ac_status=$? 3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3846 test $ac_status = 0; }; }; then 3847 cross_compiling=no 3848 else 3849 if test "$cross_compiling" = maybe; then 3850 cross_compiling=yes 3851 else 3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3854as_fn_error $? "cannot run C compiled programs. 3855If you meant to cross compile, use \`--host'. 3856See \`config.log' for more details" "$LINENO" 5; } 3857 fi 3858 fi 3859fi 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3861$as_echo "$cross_compiling" >&6; } 3862 3863rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3864ac_clean_files=$ac_clean_files_save 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3866$as_echo_n "checking for suffix of object files... " >&6; } 3867if ${ac_cv_objext+:} false; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871/* end confdefs.h. */ 3872 3873int 3874main () 3875{ 3876 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881rm -f conftest.o conftest.obj 3882if { { ac_try="$ac_compile" 3883case "(($ac_try" in 3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3885 *) ac_try_echo=$ac_try;; 3886esac 3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3888$as_echo "$ac_try_echo"; } >&5 3889 (eval "$ac_compile") 2>&5 3890 ac_status=$? 3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3892 test $ac_status = 0; }; then : 3893 for ac_file in conftest.o conftest.obj conftest.*; do 3894 test -f "$ac_file" || continue; 3895 case $ac_file in 3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3898 break;; 3899 esac 3900done 3901else 3902 $as_echo "$as_me: failed program was:" >&5 3903sed 's/^/| /' conftest.$ac_ext >&5 3904 3905{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3907as_fn_error $? "cannot compute suffix of object files: cannot compile 3908See \`config.log' for more details" "$LINENO" 5; } 3909fi 3910rm -f conftest.$ac_cv_objext conftest.$ac_ext 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3913$as_echo "$ac_cv_objext" >&6; } 3914OBJEXT=$ac_cv_objext 3915ac_objext=$OBJEXT 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3917$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3918if ${ac_cv_c_compiler_gnu+:} false; then : 3919 $as_echo_n "(cached) " >&6 3920else 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923 3924int 3925main () 3926{ 3927#ifndef __GNUC__ 3928 choke me 3929#endif 3930 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935if ac_fn_c_try_compile "$LINENO"; then : 3936 ac_compiler_gnu=yes 3937else 3938 ac_compiler_gnu=no 3939fi 3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3941ac_cv_c_compiler_gnu=$ac_compiler_gnu 3942 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3945$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3946if test $ac_compiler_gnu = yes; then 3947 GCC=yes 3948else 3949 GCC= 3950fi 3951ac_test_CFLAGS=${CFLAGS+set} 3952ac_save_CFLAGS=$CFLAGS 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3954$as_echo_n "checking whether $CC accepts -g... " >&6; } 3955if ${ac_cv_prog_cc_g+:} false; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 ac_save_c_werror_flag=$ac_c_werror_flag 3959 ac_c_werror_flag=yes 3960 ac_cv_prog_cc_g=no 3961 CFLAGS="-g" 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963/* end confdefs.h. */ 3964 3965int 3966main () 3967{ 3968 3969 ; 3970 return 0; 3971} 3972_ACEOF 3973if ac_fn_c_try_compile "$LINENO"; then : 3974 ac_cv_prog_cc_g=yes 3975else 3976 CFLAGS="" 3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3978/* end confdefs.h. */ 3979 3980int 3981main () 3982{ 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988if ac_fn_c_try_compile "$LINENO"; then : 3989 3990else 3991 ac_c_werror_flag=$ac_save_c_werror_flag 3992 CFLAGS="-g" 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995 3996int 3997main () 3998{ 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004if ac_fn_c_try_compile "$LINENO"; then : 4005 ac_cv_prog_cc_g=yes 4006fi 4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4008fi 4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4010fi 4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4012 ac_c_werror_flag=$ac_save_c_werror_flag 4013fi 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4015$as_echo "$ac_cv_prog_cc_g" >&6; } 4016if test "$ac_test_CFLAGS" = set; then 4017 CFLAGS=$ac_save_CFLAGS 4018elif test $ac_cv_prog_cc_g = yes; then 4019 if test "$GCC" = yes; then 4020 CFLAGS="-g -O2" 4021 else 4022 CFLAGS="-g" 4023 fi 4024else 4025 if test "$GCC" = yes; then 4026 CFLAGS="-O2" 4027 else 4028 CFLAGS= 4029 fi 4030fi 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4032$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4033if ${ac_cv_prog_cc_c89+:} false; then : 4034 $as_echo_n "(cached) " >&6 4035else 4036 ac_cv_prog_cc_c89=no 4037ac_save_CC=$CC 4038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4039/* end confdefs.h. */ 4040#include <stdarg.h> 4041#include <stdio.h> 4042struct stat; 4043/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4044struct buf { int x; }; 4045FILE * (*rcsopen) (struct buf *, struct stat *, int); 4046static char *e (p, i) 4047 char **p; 4048 int i; 4049{ 4050 return p[i]; 4051} 4052static char *f (char * (*g) (char **, int), char **p, ...) 4053{ 4054 char *s; 4055 va_list v; 4056 va_start (v,p); 4057 s = g (p, va_arg (v,int)); 4058 va_end (v); 4059 return s; 4060} 4061 4062/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4063 function prototypes and stuff, but not '\xHH' hex character constants. 4064 These don't provoke an error unfortunately, instead are silently treated 4065 as 'x'. The following induces an error, until -std is added to get 4066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4067 array size at least. It's necessary to write '\x00'==0 to get something 4068 that's true only with -std. */ 4069int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4070 4071/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4072 inside strings and character constants. */ 4073#define FOO(x) 'x' 4074int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4075 4076int test (int i, double x); 4077struct s1 {int (*f) (int a);}; 4078struct s2 {int (*f) (double a);}; 4079int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4080int argc; 4081char **argv; 4082int 4083main () 4084{ 4085return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4086 ; 4087 return 0; 4088} 4089_ACEOF 4090for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4092do 4093 CC="$ac_save_CC $ac_arg" 4094 if ac_fn_c_try_compile "$LINENO"; then : 4095 ac_cv_prog_cc_c89=$ac_arg 4096fi 4097rm -f core conftest.err conftest.$ac_objext 4098 test "x$ac_cv_prog_cc_c89" != "xno" && break 4099done 4100rm -f conftest.$ac_ext 4101CC=$ac_save_CC 4102 4103fi 4104# AC_CACHE_VAL 4105case "x$ac_cv_prog_cc_c89" in 4106 x) 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4108$as_echo "none needed" >&6; } ;; 4109 xno) 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4111$as_echo "unsupported" >&6; } ;; 4112 *) 4113 CC="$CC $ac_cv_prog_cc_c89" 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4115$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4116esac 4117if test "x$ac_cv_prog_cc_c89" != xno; then : 4118 4119fi 4120 4121ac_ext=c 4122ac_cpp='$CPP $CPPFLAGS' 4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4125ac_compiler_gnu=$ac_cv_c_compiler_gnu 4126 4127ac_ext=c 4128ac_cpp='$CPP $CPPFLAGS' 4129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4131ac_compiler_gnu=$ac_cv_c_compiler_gnu 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4133$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4134if ${am_cv_prog_cc_c_o+:} false; then : 4135 $as_echo_n "(cached) " >&6 4136else 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139 4140int 4141main () 4142{ 4143 4144 ; 4145 return 0; 4146} 4147_ACEOF 4148 # Make sure it works both with $CC and with simple cc. 4149 # Following AC_PROG_CC_C_O, we do the test twice because some 4150 # compilers refuse to overwrite an existing .o file with -o, 4151 # though they will create one. 4152 am_cv_prog_cc_c_o=yes 4153 for am_i in 1 2; do 4154 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4155 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4156 ac_status=$? 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4158 (exit $ac_status); } \ 4159 && test -f conftest2.$ac_objext; then 4160 : OK 4161 else 4162 am_cv_prog_cc_c_o=no 4163 break 4164 fi 4165 done 4166 rm -f core conftest* 4167 unset am_i 4168fi 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4170$as_echo "$am_cv_prog_cc_c_o" >&6; } 4171if test "$am_cv_prog_cc_c_o" != yes; then 4172 # Losing compiler, so override with the script. 4173 # FIXME: It is wrong to rewrite CC. 4174 # But if we don't then we get into trouble of one sort or another. 4175 # A longer-term fix would be to have automake use am__CC in this case, 4176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4177 CC="$am_aux_dir/compile $CC" 4178fi 4179ac_ext=c 4180ac_cpp='$CPP $CPPFLAGS' 4181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4183ac_compiler_gnu=$ac_cv_c_compiler_gnu 4184 4185DEPDIR="${am__leading_dot}deps" 4186 4187ac_config_commands="$ac_config_commands depfiles" 4188 4189 4190am_make=${MAKE-make} 4191cat > confinc << 'END' 4192am__doit: 4193 @echo this is the am__doit target 4194.PHONY: am__doit 4195END 4196# If we don't find an include directive, just comment out the code. 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4198$as_echo_n "checking for style of include used by $am_make... " >&6; } 4199am__include="#" 4200am__quote= 4201_am_result=none 4202# First try GNU make style include. 4203echo "include confinc" > confmf 4204# Ignore all kinds of additional output from 'make'. 4205case `$am_make -s -f confmf 2> /dev/null` in #( 4206*the\ am__doit\ target*) 4207 am__include=include 4208 am__quote= 4209 _am_result=GNU 4210 ;; 4211esac 4212# Now try BSD make style include. 4213if test "$am__include" = "#"; then 4214 echo '.include "confinc"' > confmf 4215 case `$am_make -s -f confmf 2> /dev/null` in #( 4216 *the\ am__doit\ target*) 4217 am__include=.include 4218 am__quote="\"" 4219 _am_result=BSD 4220 ;; 4221 esac 4222fi 4223 4224 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4226$as_echo "$_am_result" >&6; } 4227rm -f confinc confmf 4228 4229# Check whether --enable-dependency-tracking was given. 4230if test "${enable_dependency_tracking+set}" = set; then : 4231 enableval=$enable_dependency_tracking; 4232fi 4233 4234if test "x$enable_dependency_tracking" != xno; then 4235 am_depcomp="$ac_aux_dir/depcomp" 4236 AMDEPBACKSLASH='\' 4237 am__nodep='_no' 4238fi 4239 if test "x$enable_dependency_tracking" != xno; then 4240 AMDEP_TRUE= 4241 AMDEP_FALSE='#' 4242else 4243 AMDEP_TRUE='#' 4244 AMDEP_FALSE= 4245fi 4246 4247 4248 4249depcc="$CC" am_compiler_list= 4250 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4252$as_echo_n "checking dependency style of $depcc... " >&6; } 4253if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4257 # We make a subdir and do the tests there. Otherwise we can end up 4258 # making bogus files that we don't know about and never remove. For 4259 # instance it was reported that on HP-UX the gcc test will end up 4260 # making a dummy file named 'D' -- because '-MD' means "put the output 4261 # in D". 4262 rm -rf conftest.dir 4263 mkdir conftest.dir 4264 # Copy depcomp to subdir because otherwise we won't find it if we're 4265 # using a relative directory. 4266 cp "$am_depcomp" conftest.dir 4267 cd conftest.dir 4268 # We will build objects and dependencies in a subdirectory because 4269 # it helps to detect inapplicable dependency modes. For instance 4270 # both Tru64's cc and ICC support -MD to output dependencies as a 4271 # side effect of compilation, but ICC will put the dependencies in 4272 # the current directory while Tru64 will put them in the object 4273 # directory. 4274 mkdir sub 4275 4276 am_cv_CC_dependencies_compiler_type=none 4277 if test "$am_compiler_list" = ""; then 4278 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4279 fi 4280 am__universal=false 4281 case " $depcc " in #( 4282 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4283 esac 4284 4285 for depmode in $am_compiler_list; do 4286 # Setup a source with many dependencies, because some compilers 4287 # like to wrap large dependency lists on column 80 (with \), and 4288 # we should not choose a depcomp mode which is confused by this. 4289 # 4290 # We need to recreate these files for each test, as the compiler may 4291 # overwrite some of them when testing with obscure command lines. 4292 # This happens at least with the AIX C compiler. 4293 : > sub/conftest.c 4294 for i in 1 2 3 4 5 6; do 4295 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4296 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4297 # Solaris 10 /bin/sh. 4298 echo '/* dummy */' > sub/conftst$i.h 4299 done 4300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4301 4302 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4303 # mode. It turns out that the SunPro C++ compiler does not properly 4304 # handle '-M -o', and we need to detect this. Also, some Intel 4305 # versions had trouble with output in subdirs. 4306 am__obj=sub/conftest.${OBJEXT-o} 4307 am__minus_obj="-o $am__obj" 4308 case $depmode in 4309 gcc) 4310 # This depmode causes a compiler race in universal mode. 4311 test "$am__universal" = false || continue 4312 ;; 4313 nosideeffect) 4314 # After this tag, mechanisms are not by side-effect, so they'll 4315 # only be used when explicitly requested. 4316 if test "x$enable_dependency_tracking" = xyes; then 4317 continue 4318 else 4319 break 4320 fi 4321 ;; 4322 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4323 # This compiler won't grok '-c -o', but also, the minuso test has 4324 # not run yet. These depmodes are late enough in the game, and 4325 # so weak that their functioning should not be impacted. 4326 am__obj=conftest.${OBJEXT-o} 4327 am__minus_obj= 4328 ;; 4329 none) break ;; 4330 esac 4331 if depmode=$depmode \ 4332 source=sub/conftest.c object=$am__obj \ 4333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4335 >/dev/null 2>conftest.err && 4336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4340 # icc doesn't choke on unknown options, it will just issue warnings 4341 # or remarks (even with -Werror). So we grep stderr for any message 4342 # that says an option was ignored or not supported. 4343 # When given -MP, icc 7.0 and 7.1 complain thusly: 4344 # icc: Command line warning: ignoring option '-M'; no argument required 4345 # The diagnosis changed in icc 8.0: 4346 # icc: Command line remark: option '-MP' not supported 4347 if (grep 'ignoring option' conftest.err || 4348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4349 am_cv_CC_dependencies_compiler_type=$depmode 4350 break 4351 fi 4352 fi 4353 done 4354 4355 cd .. 4356 rm -rf conftest.dir 4357else 4358 am_cv_CC_dependencies_compiler_type=none 4359fi 4360 4361fi 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4363$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4364CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4365 4366 if 4367 test "x$enable_dependency_tracking" != xno \ 4368 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4369 am__fastdepCC_TRUE= 4370 am__fastdepCC_FALSE='#' 4371else 4372 am__fastdepCC_TRUE='#' 4373 am__fastdepCC_FALSE= 4374fi 4375 4376 4377 4378 4379 4380 4381ac_ext=c 4382ac_cpp='$CPP $CPPFLAGS' 4383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4385ac_compiler_gnu=$ac_cv_c_compiler_gnu 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4387$as_echo_n "checking how to run the C preprocessor... " >&6; } 4388# On Suns, sometimes $CPP names a directory. 4389if test -n "$CPP" && test -d "$CPP"; then 4390 CPP= 4391fi 4392if test -z "$CPP"; then 4393 if ${ac_cv_prog_CPP+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395else 4396 # Double quotes because CPP needs to be expanded 4397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4398 do 4399 ac_preproc_ok=false 4400for ac_c_preproc_warn_flag in '' yes 4401do 4402 # Use a header file that comes with gcc, so configuring glibc 4403 # with a fresh cross-compiler works. 4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4405 # <limits.h> exists even on freestanding compilers. 4406 # On the NeXT, cc -E runs the code through the compiler's parser, 4407 # not just through cpp. "Syntax error" is here to catch this case. 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4409/* end confdefs.h. */ 4410#ifdef __STDC__ 4411# include <limits.h> 4412#else 4413# include <assert.h> 4414#endif 4415 Syntax error 4416_ACEOF 4417if ac_fn_c_try_cpp "$LINENO"; then : 4418 4419else 4420 # Broken: fails on valid input. 4421continue 4422fi 4423rm -f conftest.err conftest.i conftest.$ac_ext 4424 4425 # OK, works on sane cases. Now check whether nonexistent headers 4426 # can be detected and how. 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428/* end confdefs.h. */ 4429#include <ac_nonexistent.h> 4430_ACEOF 4431if ac_fn_c_try_cpp "$LINENO"; then : 4432 # Broken: success on invalid input. 4433continue 4434else 4435 # Passes both tests. 4436ac_preproc_ok=: 4437break 4438fi 4439rm -f conftest.err conftest.i conftest.$ac_ext 4440 4441done 4442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4443rm -f conftest.i conftest.err conftest.$ac_ext 4444if $ac_preproc_ok; then : 4445 break 4446fi 4447 4448 done 4449 ac_cv_prog_CPP=$CPP 4450 4451fi 4452 CPP=$ac_cv_prog_CPP 4453else 4454 ac_cv_prog_CPP=$CPP 4455fi 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4457$as_echo "$CPP" >&6; } 4458ac_preproc_ok=false 4459for ac_c_preproc_warn_flag in '' yes 4460do 4461 # Use a header file that comes with gcc, so configuring glibc 4462 # with a fresh cross-compiler works. 4463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4464 # <limits.h> exists even on freestanding compilers. 4465 # On the NeXT, cc -E runs the code through the compiler's parser, 4466 # not just through cpp. "Syntax error" is here to catch this case. 4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4468/* end confdefs.h. */ 4469#ifdef __STDC__ 4470# include <limits.h> 4471#else 4472# include <assert.h> 4473#endif 4474 Syntax error 4475_ACEOF 4476if ac_fn_c_try_cpp "$LINENO"; then : 4477 4478else 4479 # Broken: fails on valid input. 4480continue 4481fi 4482rm -f conftest.err conftest.i conftest.$ac_ext 4483 4484 # OK, works on sane cases. Now check whether nonexistent headers 4485 # can be detected and how. 4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4487/* end confdefs.h. */ 4488#include <ac_nonexistent.h> 4489_ACEOF 4490if ac_fn_c_try_cpp "$LINENO"; then : 4491 # Broken: success on invalid input. 4492continue 4493else 4494 # Passes both tests. 4495ac_preproc_ok=: 4496break 4497fi 4498rm -f conftest.err conftest.i conftest.$ac_ext 4499 4500done 4501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4502rm -f conftest.i conftest.err conftest.$ac_ext 4503if $ac_preproc_ok; then : 4504 4505else 4506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4508as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4509See \`config.log' for more details" "$LINENO" 5; } 4510fi 4511 4512ac_ext=c 4513ac_cpp='$CPP $CPPFLAGS' 4514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4516ac_compiler_gnu=$ac_cv_c_compiler_gnu 4517 4518 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4520$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4521if ${ac_cv_path_GREP+:} false; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 if test -z "$GREP"; then 4525 ac_path_GREP_found=false 4526 # Loop through the user's path and test for each of PROGNAME-LIST 4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4529do 4530 IFS=$as_save_IFS 4531 test -z "$as_dir" && as_dir=. 4532 for ac_prog in grep ggrep; do 4533 for ac_exec_ext in '' $ac_executable_extensions; do 4534 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4535 as_fn_executable_p "$ac_path_GREP" || continue 4536# Check for GNU ac_path_GREP and select it if it is found. 4537 # Check for GNU $ac_path_GREP 4538case `"$ac_path_GREP" --version 2>&1` in 4539*GNU*) 4540 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4541*) 4542 ac_count=0 4543 $as_echo_n 0123456789 >"conftest.in" 4544 while : 4545 do 4546 cat "conftest.in" "conftest.in" >"conftest.tmp" 4547 mv "conftest.tmp" "conftest.in" 4548 cp "conftest.in" "conftest.nl" 4549 $as_echo 'GREP' >> "conftest.nl" 4550 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4552 as_fn_arith $ac_count + 1 && ac_count=$as_val 4553 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4554 # Best one so far, save it but keep looking for a better one 4555 ac_cv_path_GREP="$ac_path_GREP" 4556 ac_path_GREP_max=$ac_count 4557 fi 4558 # 10*(2^10) chars as input seems more than enough 4559 test $ac_count -gt 10 && break 4560 done 4561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4562esac 4563 4564 $ac_path_GREP_found && break 3 4565 done 4566 done 4567 done 4568IFS=$as_save_IFS 4569 if test -z "$ac_cv_path_GREP"; then 4570 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4571 fi 4572else 4573 ac_cv_path_GREP=$GREP 4574fi 4575 4576fi 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4578$as_echo "$ac_cv_path_GREP" >&6; } 4579 GREP="$ac_cv_path_GREP" 4580 4581 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4583$as_echo_n "checking for egrep... " >&6; } 4584if ${ac_cv_path_EGREP+:} false; then : 4585 $as_echo_n "(cached) " >&6 4586else 4587 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4588 then ac_cv_path_EGREP="$GREP -E" 4589 else 4590 if test -z "$EGREP"; then 4591 ac_path_EGREP_found=false 4592 # Loop through the user's path and test for each of PROGNAME-LIST 4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4594for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4595do 4596 IFS=$as_save_IFS 4597 test -z "$as_dir" && as_dir=. 4598 for ac_prog in egrep; do 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4601 as_fn_executable_p "$ac_path_EGREP" || continue 4602# Check for GNU ac_path_EGREP and select it if it is found. 4603 # Check for GNU $ac_path_EGREP 4604case `"$ac_path_EGREP" --version 2>&1` in 4605*GNU*) 4606 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4607*) 4608 ac_count=0 4609 $as_echo_n 0123456789 >"conftest.in" 4610 while : 4611 do 4612 cat "conftest.in" "conftest.in" >"conftest.tmp" 4613 mv "conftest.tmp" "conftest.in" 4614 cp "conftest.in" "conftest.nl" 4615 $as_echo 'EGREP' >> "conftest.nl" 4616 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4618 as_fn_arith $ac_count + 1 && ac_count=$as_val 4619 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4620 # Best one so far, save it but keep looking for a better one 4621 ac_cv_path_EGREP="$ac_path_EGREP" 4622 ac_path_EGREP_max=$ac_count 4623 fi 4624 # 10*(2^10) chars as input seems more than enough 4625 test $ac_count -gt 10 && break 4626 done 4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4628esac 4629 4630 $ac_path_EGREP_found && break 3 4631 done 4632 done 4633 done 4634IFS=$as_save_IFS 4635 if test -z "$ac_cv_path_EGREP"; then 4636 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4637 fi 4638else 4639 ac_cv_path_EGREP=$EGREP 4640fi 4641 4642 fi 4643fi 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4645$as_echo "$ac_cv_path_EGREP" >&6; } 4646 EGREP="$ac_cv_path_EGREP" 4647 4648 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4650$as_echo_n "checking for ANSI C header files... " >&6; } 4651if ${ac_cv_header_stdc+:} false; then : 4652 $as_echo_n "(cached) " >&6 4653else 4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4655/* end confdefs.h. */ 4656#include <stdlib.h> 4657#include <stdarg.h> 4658#include <string.h> 4659#include <float.h> 4660 4661int 4662main () 4663{ 4664 4665 ; 4666 return 0; 4667} 4668_ACEOF 4669if ac_fn_c_try_compile "$LINENO"; then : 4670 ac_cv_header_stdc=yes 4671else 4672 ac_cv_header_stdc=no 4673fi 4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4675 4676if test $ac_cv_header_stdc = yes; then 4677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679/* end confdefs.h. */ 4680#include <string.h> 4681 4682_ACEOF 4683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4684 $EGREP "memchr" >/dev/null 2>&1; then : 4685 4686else 4687 ac_cv_header_stdc=no 4688fi 4689rm -f conftest* 4690 4691fi 4692 4693if test $ac_cv_header_stdc = yes; then 4694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4696/* end confdefs.h. */ 4697#include <stdlib.h> 4698 4699_ACEOF 4700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4701 $EGREP "free" >/dev/null 2>&1; then : 4702 4703else 4704 ac_cv_header_stdc=no 4705fi 4706rm -f conftest* 4707 4708fi 4709 4710if test $ac_cv_header_stdc = yes; then 4711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4712 if test "$cross_compiling" = yes; then : 4713 : 4714else 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4716/* end confdefs.h. */ 4717#include <ctype.h> 4718#include <stdlib.h> 4719#if ((' ' & 0x0FF) == 0x020) 4720# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4721# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4722#else 4723# define ISLOWER(c) \ 4724 (('a' <= (c) && (c) <= 'i') \ 4725 || ('j' <= (c) && (c) <= 'r') \ 4726 || ('s' <= (c) && (c) <= 'z')) 4727# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4728#endif 4729 4730#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4731int 4732main () 4733{ 4734 int i; 4735 for (i = 0; i < 256; i++) 4736 if (XOR (islower (i), ISLOWER (i)) 4737 || toupper (i) != TOUPPER (i)) 4738 return 2; 4739 return 0; 4740} 4741_ACEOF 4742if ac_fn_c_try_run "$LINENO"; then : 4743 4744else 4745 ac_cv_header_stdc=no 4746fi 4747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4748 conftest.$ac_objext conftest.beam conftest.$ac_ext 4749fi 4750 4751fi 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4754$as_echo "$ac_cv_header_stdc" >&6; } 4755if test $ac_cv_header_stdc = yes; then 4756 4757$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4758 4759fi 4760 4761# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4762for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4763 inttypes.h stdint.h unistd.h 4764do : 4765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4766ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4767" 4768if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4769 cat >>confdefs.h <<_ACEOF 4770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4771_ACEOF 4772 4773fi 4774 4775done 4776 4777 4778for ac_header in stdio.h stdlib.h string.h unistd.h netdb.h signal.h \ 4779 syslog.h time.h errno.h sys/types.h sys/stat.h netinet/in.h \ 4780 math.h sys/socket.h dirent.h ctype.h \ 4781 mtent.h fcntl.h sys/param.h arpa/inet.h \ 4782 sys/vfs.h sys/pstat.h sys/sysinfo.h sys/statvfs.h sys/statfs.h \ 4783 sys/socket.h sys/loadavg.h arpa/inet.h \ 4784 sys/vmmeter.h strings.h vm/vm_param.h \ 4785 sys/time.h kstat.h sys/syscall.h sys/sysmacros.h \ 4786 stdint.h mach/host_info.h mach/mach_host.h knlist.h pwd.h \ 4787 sys/var.h arpa/nameser.h assert.h sys/dkstat.h sys/disk.h sys/sched.h \ 4788 zone.h nlist.h kvm.h linux/kernel.h procinfo.h sys/dk.h \ 4789 sys/resource.h pthread.h windows.h process.h conio.h sys/wait.h regex.h \ 4790 stdarg.h winsock2.h pdh.h psapi.h sys/sem.h sys/ipc.h sys/shm.h Winldap.h \ 4791 Winber.h lber.h ws2tcpip.h inttypes.h sys/file.h grp.h \ 4792 execinfo.h sys/systemcfg.h sys/mnttab.h mntent.h sys/times.h \ 4793 dlfcn.h sys/utsname.h sys/protosw.h 4794do : 4795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4796ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4797if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4798 cat >>confdefs.h <<_ACEOF 4799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4800_ACEOF 4801 4802fi 4803 4804done 4805 4806for ac_header in resolv.h 4807do : 4808 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 4809#ifdef HAVE_SYS_TYPES_H 4810# include <sys/types.h> 4811#endif 4812#ifdef HAVE_NETINET_IN_H 4813# include <netinet/in.h> 4814#endif 4815#ifdef HAVE_ARPA_NAMESER_H 4816# include <arpa/nameser.h> 4817#endif 4818#ifdef HAVE_NETDB_H 4819# include <netdb.h> 4820#endif 4821 4822" 4823if test "x$ac_cv_header_resolv_h" = xyes; then : 4824 cat >>confdefs.h <<_ACEOF 4825#define HAVE_RESOLV_H 1 4826_ACEOF 4827 4828fi 4829 4830done 4831 4832for ac_header in net/if.h net/if_mib.h 4833do : 4834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4835ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 4836#include <stdio.h> 4837#ifdef STDC_HEADERS 4838# include <stdlib.h> 4839# include <stddef.h> 4840#else 4841# ifdef HAVE_STDLIB_H 4842# include <stdlib.h> 4843# endif 4844#endif 4845#ifdef HAVE_SYS_TYPES_H 4846# include <sys/types.h> 4847#endif 4848#ifdef HAVE_SYS_SOCKET_H 4849# include <sys/socket.h> 4850#endif 4851/* for net/if_mib.h */ 4852#ifdef HAVE_NET_IF_H 4853# include <net/if.h> 4854#endif 4855 4856" 4857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4858 cat >>confdefs.h <<_ACEOF 4859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4860_ACEOF 4861 4862fi 4863 4864done 4865 4866for ac_header in sys/mount.h sys/proc.h sys/sysctl.h sys/user.h 4867do : 4868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4869ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 4870#ifdef HAVE_SYS_TYPES_H 4871# include <sys/types.h> 4872#endif 4873#ifdef HAVE_SYS_PARAM_H 4874# include <sys/param.h> 4875#endif 4876 4877" 4878if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4879 cat >>confdefs.h <<_ACEOF 4880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4881_ACEOF 4882 4883fi 4884 4885done 4886 4887for ac_header in sys/swap.h 4888do : 4889 ac_fn_c_check_header_compile "$LINENO" "sys/swap.h" "ac_cv_header_sys_swap_h" " 4890#ifdef HAVE_SYS_PARAM_H 4891# include <sys/param.h> 4892#endif 4893 4894" 4895if test "x$ac_cv_header_sys_swap_h" = xyes; then : 4896 cat >>confdefs.h <<_ACEOF 4897#define HAVE_SYS_SWAP_H 1 4898_ACEOF 4899 4900fi 4901 4902done 4903 4904for ac_header in sys/ucontext.h 4905do : 4906 ac_fn_c_check_header_compile "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" " 4907#ifdef HAVE_SIGNAL_H 4908# include <signal.h> 4909#endif 4910 4911" 4912if test "x$ac_cv_header_sys_ucontext_h" = xyes; then : 4913 cat >>confdefs.h <<_ACEOF 4914#define HAVE_SYS_UCONTEXT_H 1 4915_ACEOF 4916 4917fi 4918 4919done 4920 4921for ac_header in devstat.h 4922do : 4923 ac_fn_c_check_header_compile "$LINENO" "devstat.h" "ac_cv_header_devstat_h" " 4924#ifdef HAVE_SYS_DKSTAT_H 4925# include <sys/dkstat.h> 4926#endif 4927 4928" 4929if test "x$ac_cv_header_devstat_h" = xyes; then : 4930 cat >>confdefs.h <<_ACEOF 4931#define HAVE_DEVSTAT_H 1 4932_ACEOF 4933 4934fi 4935 4936done 4937 4938for ac_header in linux/netlink.h 4939do : 4940 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 4941#ifdef HAVE_SYS_SOCKET_H 4942# include <sys/socket.h> 4943#endif 4944 4945" 4946if test "x$ac_cv_header_linux_netlink_h" = xyes; then : 4947 cat >>confdefs.h <<_ACEOF 4948#define HAVE_LINUX_NETLINK_H 1 4949_ACEOF 4950 4951 for ac_header in linux/inet_diag.h 4952do : 4953 ac_fn_c_check_header_mongrel "$LINENO" "linux/inet_diag.h" "ac_cv_header_linux_inet_diag_h" "$ac_includes_default" 4954if test "x$ac_cv_header_linux_inet_diag_h" = xyes; then : 4955 cat >>confdefs.h <<_ACEOF 4956#define HAVE_LINUX_INET_DIAG_H 1 4957_ACEOF 4958 4959 4960$as_echo "#define HAVE_INET_DIAG 1" >>confdefs.h 4961 4962 4963fi 4964 4965done 4966 4967 4968fi 4969 4970done 4971 4972for ac_header in libperfstat.h 4973do : 4974 ac_fn_c_check_header_compile "$LINENO" "libperfstat.h" "ac_cv_header_libperfstat_h" " 4975#ifdef HAVE_SYS_PROTOSW_H 4976# include <sys/protosw.h> 4977#endif 4978 4979" 4980if test "x$ac_cv_header_libperfstat_h" = xyes; then : 4981 cat >>confdefs.h <<_ACEOF 4982#define HAVE_LIBPERFSTAT_H 1 4983_ACEOF 4984 4985fi 4986 4987done 4988 4989 4990 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 4992$as_echo_n "checking for library containing socket... " >&6; } 4993if ${ac_cv_search_socket+:} false; then : 4994 $as_echo_n "(cached) " >&6 4995else 4996 ac_func_search_save_LIBS=$LIBS 4997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998/* end confdefs.h. */ 4999 5000/* Override any GCC internal prototype to avoid an error. 5001 Use char because int might match the return type of a GCC 5002 builtin and then its argument prototype would still apply. */ 5003#ifdef __cplusplus 5004extern "C" 5005#endif 5006char socket (); 5007int 5008main () 5009{ 5010return socket (); 5011 ; 5012 return 0; 5013} 5014_ACEOF 5015for ac_lib in '' socket; do 5016 if test -z "$ac_lib"; then 5017 ac_res="none required" 5018 else 5019 ac_res=-l$ac_lib 5020 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5021 fi 5022 if ac_fn_c_try_link "$LINENO"; then : 5023 ac_cv_search_socket=$ac_res 5024fi 5025rm -f core conftest.err conftest.$ac_objext \ 5026 conftest$ac_exeext 5027 if ${ac_cv_search_socket+:} false; then : 5028 break 5029fi 5030done 5031if ${ac_cv_search_socket+:} false; then : 5032 5033else 5034 ac_cv_search_socket=no 5035fi 5036rm conftest.$ac_ext 5037LIBS=$ac_func_search_save_LIBS 5038fi 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5040$as_echo "$ac_cv_search_socket" >&6; } 5041ac_res=$ac_cv_search_socket 5042if test "$ac_res" != no; then : 5043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5044 5045fi 5046 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5 5048$as_echo_n "checking for library containing kstat_open... " >&6; } 5049if ${ac_cv_search_kstat_open+:} false; then : 5050 $as_echo_n "(cached) " >&6 5051else 5052 ac_func_search_save_LIBS=$LIBS 5053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5054/* end confdefs.h. */ 5055 5056/* Override any GCC internal prototype to avoid an error. 5057 Use char because int might match the return type of a GCC 5058 builtin and then its argument prototype would still apply. */ 5059#ifdef __cplusplus 5060extern "C" 5061#endif 5062char kstat_open (); 5063int 5064main () 5065{ 5066return kstat_open (); 5067 ; 5068 return 0; 5069} 5070_ACEOF 5071for ac_lib in '' kstat; do 5072 if test -z "$ac_lib"; then 5073 ac_res="none required" 5074 else 5075 ac_res=-l$ac_lib 5076 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5077 fi 5078 if ac_fn_c_try_link "$LINENO"; then : 5079 ac_cv_search_kstat_open=$ac_res 5080fi 5081rm -f core conftest.err conftest.$ac_objext \ 5082 conftest$ac_exeext 5083 if ${ac_cv_search_kstat_open+:} false; then : 5084 break 5085fi 5086done 5087if ${ac_cv_search_kstat_open+:} false; then : 5088 5089else 5090 ac_cv_search_kstat_open=no 5091fi 5092rm conftest.$ac_ext 5093LIBS=$ac_func_search_save_LIBS 5094fi 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5 5096$as_echo "$ac_cv_search_kstat_open" >&6; } 5097ac_res=$ac_cv_search_kstat_open 5098if test "$ac_res" != no; then : 5099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5100 5101fi 5102 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 5104$as_echo_n "checking for library containing gethostbyname... " >&6; } 5105if ${ac_cv_search_gethostbyname+:} false; then : 5106 $as_echo_n "(cached) " >&6 5107else 5108 ac_func_search_save_LIBS=$LIBS 5109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5110/* end confdefs.h. */ 5111 5112/* Override any GCC internal prototype to avoid an error. 5113 Use char because int might match the return type of a GCC 5114 builtin and then its argument prototype would still apply. */ 5115#ifdef __cplusplus 5116extern "C" 5117#endif 5118char gethostbyname (); 5119int 5120main () 5121{ 5122return gethostbyname (); 5123 ; 5124 return 0; 5125} 5126_ACEOF 5127for ac_lib in '' nsl; do 5128 if test -z "$ac_lib"; then 5129 ac_res="none required" 5130 else 5131 ac_res=-l$ac_lib 5132 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5133 fi 5134 if ac_fn_c_try_link "$LINENO"; then : 5135 ac_cv_search_gethostbyname=$ac_res 5136fi 5137rm -f core conftest.err conftest.$ac_objext \ 5138 conftest$ac_exeext 5139 if ${ac_cv_search_gethostbyname+:} false; then : 5140 break 5141fi 5142done 5143if ${ac_cv_search_gethostbyname+:} false; then : 5144 5145else 5146 ac_cv_search_gethostbyname=no 5147fi 5148rm conftest.$ac_ext 5149LIBS=$ac_func_search_save_LIBS 5150fi 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 5152$as_echo "$ac_cv_search_gethostbyname" >&6; } 5153ac_res=$ac_cv_search_gethostbyname 5154if test "$ac_res" != no; then : 5155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5156 5157fi 5158 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 5160$as_echo_n "checking for library containing clock_gettime... " >&6; } 5161if ${ac_cv_search_clock_gettime+:} false; then : 5162 $as_echo_n "(cached) " >&6 5163else 5164 ac_func_search_save_LIBS=$LIBS 5165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5166/* end confdefs.h. */ 5167 5168/* Override any GCC internal prototype to avoid an error. 5169 Use char because int might match the return type of a GCC 5170 builtin and then its argument prototype would still apply. */ 5171#ifdef __cplusplus 5172extern "C" 5173#endif 5174char clock_gettime (); 5175int 5176main () 5177{ 5178return clock_gettime (); 5179 ; 5180 return 0; 5181} 5182_ACEOF 5183for ac_lib in '' rt; do 5184 if test -z "$ac_lib"; then 5185 ac_res="none required" 5186 else 5187 ac_res=-l$ac_lib 5188 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5189 fi 5190 if ac_fn_c_try_link "$LINENO"; then : 5191 ac_cv_search_clock_gettime=$ac_res 5192fi 5193rm -f core conftest.err conftest.$ac_objext \ 5194 conftest$ac_exeext 5195 if ${ac_cv_search_clock_gettime+:} false; then : 5196 break 5197fi 5198done 5199if ${ac_cv_search_clock_gettime+:} false; then : 5200 5201else 5202 ac_cv_search_clock_gettime=no 5203fi 5204rm conftest.$ac_ext 5205LIBS=$ac_func_search_save_LIBS 5206fi 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 5208$as_echo "$ac_cv_search_clock_gettime" >&6; } 5209ac_res=$ac_cv_search_clock_gettime 5210if test "$ac_res" != no; then : 5211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5212 5213fi 5214 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 5216$as_echo_n "checking for library containing dlopen... " >&6; } 5217if ${ac_cv_search_dlopen+:} false; then : 5218 $as_echo_n "(cached) " >&6 5219else 5220 ac_func_search_save_LIBS=$LIBS 5221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222/* end confdefs.h. */ 5223 5224/* Override any GCC internal prototype to avoid an error. 5225 Use char because int might match the return type of a GCC 5226 builtin and then its argument prototype would still apply. */ 5227#ifdef __cplusplus 5228extern "C" 5229#endif 5230char dlopen (); 5231int 5232main () 5233{ 5234return dlopen (); 5235 ; 5236 return 0; 5237} 5238_ACEOF 5239for ac_lib in '' dl; do 5240 if test -z "$ac_lib"; then 5241 ac_res="none required" 5242 else 5243 ac_res=-l$ac_lib 5244 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5245 fi 5246 if ac_fn_c_try_link "$LINENO"; then : 5247 ac_cv_search_dlopen=$ac_res 5248fi 5249rm -f core conftest.err conftest.$ac_objext \ 5250 conftest$ac_exeext 5251 if ${ac_cv_search_dlopen+:} false; then : 5252 break 5253fi 5254done 5255if ${ac_cv_search_dlopen+:} false; then : 5256 5257else 5258 ac_cv_search_dlopen=no 5259fi 5260rm conftest.$ac_ext 5261LIBS=$ac_func_search_save_LIBS 5262fi 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 5264$as_echo "$ac_cv_search_dlopen" >&6; } 5265ac_res=$ac_cv_search_dlopen 5266if test "$ac_res" != no; then : 5267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5268 5269fi 5270 5271 5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing perfstat_memory_total" >&5 5273$as_echo_n "checking for library containing perfstat_memory_total... " >&6; } 5274if ${ac_cv_search_perfstat_memory_total+:} false; then : 5275 $as_echo_n "(cached) " >&6 5276else 5277 ac_func_search_save_LIBS=$LIBS 5278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280 5281/* Override any GCC internal prototype to avoid an error. 5282 Use char because int might match the return type of a GCC 5283 builtin and then its argument prototype would still apply. */ 5284#ifdef __cplusplus 5285extern "C" 5286#endif 5287char perfstat_memory_total (); 5288int 5289main () 5290{ 5291return perfstat_memory_total (); 5292 ; 5293 return 0; 5294} 5295_ACEOF 5296for ac_lib in '' perfstat; do 5297 if test -z "$ac_lib"; then 5298 ac_res="none required" 5299 else 5300 ac_res=-l$ac_lib 5301 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5302 fi 5303 if ac_fn_c_try_link "$LINENO"; then : 5304 ac_cv_search_perfstat_memory_total=$ac_res 5305fi 5306rm -f core conftest.err conftest.$ac_objext \ 5307 conftest$ac_exeext 5308 if ${ac_cv_search_perfstat_memory_total+:} false; then : 5309 break 5310fi 5311done 5312if ${ac_cv_search_perfstat_memory_total+:} false; then : 5313 5314else 5315 ac_cv_search_perfstat_memory_total=no 5316fi 5317rm conftest.$ac_ext 5318LIBS=$ac_func_search_save_LIBS 5319fi 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_perfstat_memory_total" >&5 5321$as_echo "$ac_cv_search_perfstat_memory_total" >&6; } 5322ac_res=$ac_cv_search_perfstat_memory_total 5323if test "$ac_res" != no; then : 5324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5325 5326$as_echo "#define HAVE_LIBPERFSTAT 1" >>confdefs.h 5327 5328fi 5329 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing devstat_getdevs" >&5 5331$as_echo_n "checking for library containing devstat_getdevs... " >&6; } 5332if ${ac_cv_search_devstat_getdevs+:} false; then : 5333 $as_echo_n "(cached) " >&6 5334else 5335 ac_func_search_save_LIBS=$LIBS 5336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5337/* end confdefs.h. */ 5338 5339/* Override any GCC internal prototype to avoid an error. 5340 Use char because int might match the return type of a GCC 5341 builtin and then its argument prototype would still apply. */ 5342#ifdef __cplusplus 5343extern "C" 5344#endif 5345char devstat_getdevs (); 5346int 5347main () 5348{ 5349return devstat_getdevs (); 5350 ; 5351 return 0; 5352} 5353_ACEOF 5354for ac_lib in '' devstat; do 5355 if test -z "$ac_lib"; then 5356 ac_res="none required" 5357 else 5358 ac_res=-l$ac_lib 5359 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5360 fi 5361 if ac_fn_c_try_link "$LINENO"; then : 5362 ac_cv_search_devstat_getdevs=$ac_res 5363fi 5364rm -f core conftest.err conftest.$ac_objext \ 5365 conftest$ac_exeext 5366 if ${ac_cv_search_devstat_getdevs+:} false; then : 5367 break 5368fi 5369done 5370if ${ac_cv_search_devstat_getdevs+:} false; then : 5371 5372else 5373 ac_cv_search_devstat_getdevs=no 5374fi 5375rm conftest.$ac_ext 5376LIBS=$ac_func_search_save_LIBS 5377fi 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_devstat_getdevs" >&5 5379$as_echo "$ac_cv_search_devstat_getdevs" >&6; } 5380ac_res=$ac_cv_search_devstat_getdevs 5381if test "$ac_res" != no; then : 5382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5383 5384$as_echo "#define HAVE_LIBDEVSTAT 1" >>confdefs.h 5385 5386fi 5387 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getdevs" >&5 5389$as_echo_n "checking for library containing getdevs... " >&6; } 5390if ${ac_cv_search_getdevs+:} false; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 ac_func_search_save_LIBS=$LIBS 5394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5395/* end confdefs.h. */ 5396 5397/* Override any GCC internal prototype to avoid an error. 5398 Use char because int might match the return type of a GCC 5399 builtin and then its argument prototype would still apply. */ 5400#ifdef __cplusplus 5401extern "C" 5402#endif 5403char getdevs (); 5404int 5405main () 5406{ 5407return getdevs (); 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412for ac_lib in '' devstat; do 5413 if test -z "$ac_lib"; then 5414 ac_res="none required" 5415 else 5416 ac_res=-l$ac_lib 5417 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5418 fi 5419 if ac_fn_c_try_link "$LINENO"; then : 5420 ac_cv_search_getdevs=$ac_res 5421fi 5422rm -f core conftest.err conftest.$ac_objext \ 5423 conftest$ac_exeext 5424 if ${ac_cv_search_getdevs+:} false; then : 5425 break 5426fi 5427done 5428if ${ac_cv_search_getdevs+:} false; then : 5429 5430else 5431 ac_cv_search_getdevs=no 5432fi 5433rm conftest.$ac_ext 5434LIBS=$ac_func_search_save_LIBS 5435fi 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getdevs" >&5 5437$as_echo "$ac_cv_search_getdevs" >&6; } 5438ac_res=$ac_cv_search_getdevs 5439if test "$ac_res" != no; then : 5440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5441 5442$as_echo "#define HAVE_LIBDEVSTAT 1" >>confdefs.h 5443 5444fi 5445 5446 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5 5448$as_echo_n "checking for library containing backtrace_symbols... " >&6; } 5449if ${ac_cv_search_backtrace_symbols+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 ac_func_search_save_LIBS=$LIBS 5453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455 5456/* Override any GCC internal prototype to avoid an error. 5457 Use char because int might match the return type of a GCC 5458 builtin and then its argument prototype would still apply. */ 5459#ifdef __cplusplus 5460extern "C" 5461#endif 5462char backtrace_symbols (); 5463int 5464main () 5465{ 5466return backtrace_symbols (); 5467 ; 5468 return 0; 5469} 5470_ACEOF 5471for ac_lib in '' execinfo; do 5472 if test -z "$ac_lib"; then 5473 ac_res="none required" 5474 else 5475 ac_res=-l$ac_lib 5476 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5477 fi 5478 if ac_fn_c_try_link "$LINENO"; then : 5479 ac_cv_search_backtrace_symbols=$ac_res 5480fi 5481rm -f core conftest.err conftest.$ac_objext \ 5482 conftest$ac_exeext 5483 if ${ac_cv_search_backtrace_symbols+:} false; then : 5484 break 5485fi 5486done 5487if ${ac_cv_search_backtrace_symbols+:} false; then : 5488 5489else 5490 ac_cv_search_backtrace_symbols=no 5491fi 5492rm conftest.$ac_ext 5493LIBS=$ac_func_search_save_LIBS 5494fi 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5 5496$as_echo "$ac_cv_search_backtrace_symbols" >&6; } 5497ac_res=$ac_cv_search_backtrace_symbols 5498if test "$ac_res" != no; then : 5499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5500 5501$as_echo "#define HAVE_LIBEXECINFO 1" >>confdefs.h 5502 5503fi 5504 5505 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 5507$as_echo_n "checking for main in -lm... " >&6; } 5508if ${ac_cv_lib_m_main+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 ac_check_lib_save_LIBS=$LIBS 5512LIBS="-lm $LIBS" 5513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5514/* end confdefs.h. */ 5515 5516 5517int 5518main () 5519{ 5520return main (); 5521 ; 5522 return 0; 5523} 5524_ACEOF 5525if ac_fn_c_try_link "$LINENO"; then : 5526 ac_cv_lib_m_main=yes 5527else 5528 ac_cv_lib_m_main=no 5529fi 5530rm -f core conftest.err conftest.$ac_objext \ 5531 conftest$ac_exeext conftest.$ac_ext 5532LIBS=$ac_check_lib_save_LIBS 5533fi 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 5535$as_echo "$ac_cv_lib_m_main" >&6; } 5536if test "x$ac_cv_lib_m_main" = xyes; then : 5537 cat >>confdefs.h <<_ACEOF 5538#define HAVE_LIBM 1 5539_ACEOF 5540 5541 LIBS="-lm $LIBS" 5542 5543fi 5544 5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5 5546$as_echo_n "checking for main in -lkvm... " >&6; } 5547if ${ac_cv_lib_kvm_main+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 ac_check_lib_save_LIBS=$LIBS 5551LIBS="-lkvm $LIBS" 5552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553/* end confdefs.h. */ 5554 5555 5556int 5557main () 5558{ 5559return main (); 5560 ; 5561 return 0; 5562} 5563_ACEOF 5564if ac_fn_c_try_link "$LINENO"; then : 5565 ac_cv_lib_kvm_main=yes 5566else 5567 ac_cv_lib_kvm_main=no 5568fi 5569rm -f core conftest.err conftest.$ac_objext \ 5570 conftest$ac_exeext conftest.$ac_ext 5571LIBS=$ac_check_lib_save_LIBS 5572fi 5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5 5574$as_echo "$ac_cv_lib_kvm_main" >&6; } 5575if test "x$ac_cv_lib_kvm_main" = xyes; then : 5576 cat >>confdefs.h <<_ACEOF 5577#define HAVE_LIBKVM 1 5578_ACEOF 5579 5580 LIBS="-lkvm $LIBS" 5581 5582fi 5583 5584 5585found_resolv="no" 5586 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNS lookup functions" >&5 5588$as_echo_n "checking for DNS lookup functions... " >&6; } 5589 5590 5591am_save_LIBS="$LIBS" 5592LIBS="$LIBS " 5593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595 5596#ifdef HAVE_SYS_TYPES_H 5597# include <sys/types.h> 5598#endif 5599#ifdef HAVE_NETINET_IN_H 5600# include <netinet/in.h> 5601#endif 5602#ifdef HAVE_ARPA_NAMESER_H 5603# include <arpa/nameser.h> 5604#endif 5605#ifdef HAVE_RESOLV_H 5606# include <resolv.h> 5607#endif 5608#ifndef C_IN 5609# define C_IN ns_c_in 5610#endif /* C_IN */ 5611#ifndef T_SOA 5612# define T_SOA ns_t_soa 5613#endif /* T_SOA */ 5614 5615int 5616main () 5617{ 5618 5619 char *buf; 5620 5621 res_init(); 5622 res_query("", C_IN, T_SOA, buf, 0); 5623 5624 ; 5625 return 0; 5626} 5627_ACEOF 5628if ac_fn_c_try_link "$LINENO"; then : 5629 found_resolv="yes" 5630RESOLV_LIBS="" 5631fi 5632rm -f core conftest.err conftest.$ac_objext \ 5633 conftest$ac_exeext conftest.$ac_ext 5634LIBS="$am_save_LIBS" 5635 5636 5637 if test "x$found_resolv" != "xyes"; then 5638 5639am_save_LIBS="$LIBS" 5640LIBS="$LIBS -lresolv" 5641cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643 5644#ifdef HAVE_SYS_TYPES_H 5645# include <sys/types.h> 5646#endif 5647#ifdef HAVE_NETINET_IN_H 5648# include <netinet/in.h> 5649#endif 5650#ifdef HAVE_ARPA_NAMESER_H 5651# include <arpa/nameser.h> 5652#endif 5653#ifdef HAVE_RESOLV_H 5654# include <resolv.h> 5655#endif 5656#ifndef C_IN 5657# define C_IN ns_c_in 5658#endif /* C_IN */ 5659#ifndef T_SOA 5660# define T_SOA ns_t_soa 5661#endif /* T_SOA */ 5662 5663int 5664main () 5665{ 5666 5667 char *buf; 5668 5669 res_init(); 5670 res_query("", C_IN, T_SOA, buf, 0); 5671 5672 ; 5673 return 0; 5674} 5675_ACEOF 5676if ac_fn_c_try_link "$LINENO"; then : 5677 found_resolv="yes" 5678RESOLV_LIBS="-lresolv" 5679fi 5680rm -f core conftest.err conftest.$ac_objext \ 5681 conftest$ac_exeext conftest.$ac_ext 5682LIBS="$am_save_LIBS" 5683 5684 fi 5685 if test "x$found_resolv" != "xyes"; then 5686 5687am_save_LIBS="$LIBS" 5688LIBS="$LIBS -lbind" 5689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690/* end confdefs.h. */ 5691 5692#ifdef HAVE_SYS_TYPES_H 5693# include <sys/types.h> 5694#endif 5695#ifdef HAVE_NETINET_IN_H 5696# include <netinet/in.h> 5697#endif 5698#ifdef HAVE_ARPA_NAMESER_H 5699# include <arpa/nameser.h> 5700#endif 5701#ifdef HAVE_RESOLV_H 5702# include <resolv.h> 5703#endif 5704#ifndef C_IN 5705# define C_IN ns_c_in 5706#endif /* C_IN */ 5707#ifndef T_SOA 5708# define T_SOA ns_t_soa 5709#endif /* T_SOA */ 5710 5711int 5712main () 5713{ 5714 5715 char *buf; 5716 5717 res_init(); 5718 res_query("", C_IN, T_SOA, buf, 0); 5719 5720 ; 5721 return 0; 5722} 5723_ACEOF 5724if ac_fn_c_try_link "$LINENO"; then : 5725 found_resolv="yes" 5726RESOLV_LIBS="-lbind" 5727fi 5728rm -f core conftest.err conftest.$ac_objext \ 5729 conftest$ac_exeext conftest.$ac_ext 5730LIBS="$am_save_LIBS" 5731 5732 fi 5733 if test "x$found_resolv" != "xyes"; then 5734 5735am_save_LIBS="$LIBS" 5736LIBS="$LIBS -lsocket" 5737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738/* end confdefs.h. */ 5739 5740#ifdef HAVE_SYS_TYPES_H 5741# include <sys/types.h> 5742#endif 5743#ifdef HAVE_NETINET_IN_H 5744# include <netinet/in.h> 5745#endif 5746#ifdef HAVE_ARPA_NAMESER_H 5747# include <arpa/nameser.h> 5748#endif 5749#ifdef HAVE_RESOLV_H 5750# include <resolv.h> 5751#endif 5752#ifndef C_IN 5753# define C_IN ns_c_in 5754#endif /* C_IN */ 5755#ifndef T_SOA 5756# define T_SOA ns_t_soa 5757#endif /* T_SOA */ 5758 5759int 5760main () 5761{ 5762 5763 char *buf; 5764 5765 res_init(); 5766 res_query("", C_IN, T_SOA, buf, 0); 5767 5768 ; 5769 return 0; 5770} 5771_ACEOF 5772if ac_fn_c_try_link "$LINENO"; then : 5773 found_resolv="yes" 5774RESOLV_LIBS="-lsocket" 5775fi 5776rm -f core conftest.err conftest.$ac_objext \ 5777 conftest$ac_exeext conftest.$ac_ext 5778LIBS="$am_save_LIBS" 5779 5780 fi 5781 5782 if test "x$found_resolv" = "xyes"; then 5783 5784$as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h 5785 5786 else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789 fi 5790 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_resolv" >&5 5792$as_echo "$found_resolv" >&6; } 5793 5794 5795 5796if test "x$found_resolv" != "xyes"; then 5797 as_fn_error $? "Unable to do DNS lookups (libresolv check failed)" "$LINENO" 5 5798fi 5799LIBS="${LIBS} ${RESOLV_LIBS}" 5800 5801 5802largefile=yes 5803 5804case "${host_os}" in 5805 solaris*) 5806 largefile=no 5807 ;; 5808esac 5809 5810if test "x$largefile" = "xyes"; then 5811 # Check whether --enable-largefile was given. 5812if test "${enable_largefile+set}" = set; then : 5813 enableval=$enable_largefile; 5814fi 5815 5816if test "$enable_largefile" != no; then 5817 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5819$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5820if ${ac_cv_sys_largefile_CC+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 ac_cv_sys_largefile_CC=no 5824 if test "$GCC" != yes; then 5825 ac_save_CC=$CC 5826 while :; do 5827 # IRIX 6.2 and later do not support large files by default, 5828 # so use the C compiler's -n32 option if that helps. 5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5830/* end confdefs.h. */ 5831#include <sys/types.h> 5832 /* Check that off_t can represent 2**63 - 1 correctly. 5833 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5834 since some C++ compilers masquerading as C compilers 5835 incorrectly reject 9223372036854775807. */ 5836#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5838 && LARGE_OFF_T % 2147483647 == 1) 5839 ? 1 : -1]; 5840int 5841main () 5842{ 5843 5844 ; 5845 return 0; 5846} 5847_ACEOF 5848 if ac_fn_c_try_compile "$LINENO"; then : 5849 break 5850fi 5851rm -f core conftest.err conftest.$ac_objext 5852 CC="$CC -n32" 5853 if ac_fn_c_try_compile "$LINENO"; then : 5854 ac_cv_sys_largefile_CC=' -n32'; break 5855fi 5856rm -f core conftest.err conftest.$ac_objext 5857 break 5858 done 5859 CC=$ac_save_CC 5860 rm -f conftest.$ac_ext 5861 fi 5862fi 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5864$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5865 if test "$ac_cv_sys_largefile_CC" != no; then 5866 CC=$CC$ac_cv_sys_largefile_CC 5867 fi 5868 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5870$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5871if ${ac_cv_sys_file_offset_bits+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 while :; do 5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5876/* end confdefs.h. */ 5877#include <sys/types.h> 5878 /* Check that off_t can represent 2**63 - 1 correctly. 5879 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5880 since some C++ compilers masquerading as C compilers 5881 incorrectly reject 9223372036854775807. */ 5882#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5884 && LARGE_OFF_T % 2147483647 == 1) 5885 ? 1 : -1]; 5886int 5887main () 5888{ 5889 5890 ; 5891 return 0; 5892} 5893_ACEOF 5894if ac_fn_c_try_compile "$LINENO"; then : 5895 ac_cv_sys_file_offset_bits=no; break 5896fi 5897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899/* end confdefs.h. */ 5900#define _FILE_OFFSET_BITS 64 5901#include <sys/types.h> 5902 /* Check that off_t can represent 2**63 - 1 correctly. 5903 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5904 since some C++ compilers masquerading as C compilers 5905 incorrectly reject 9223372036854775807. */ 5906#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5908 && LARGE_OFF_T % 2147483647 == 1) 5909 ? 1 : -1]; 5910int 5911main () 5912{ 5913 5914 ; 5915 return 0; 5916} 5917_ACEOF 5918if ac_fn_c_try_compile "$LINENO"; then : 5919 ac_cv_sys_file_offset_bits=64; break 5920fi 5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5922 ac_cv_sys_file_offset_bits=unknown 5923 break 5924done 5925fi 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5927$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5928case $ac_cv_sys_file_offset_bits in #( 5929 no | unknown) ;; 5930 *) 5931cat >>confdefs.h <<_ACEOF 5932#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5933_ACEOF 5934;; 5935esac 5936rm -rf conftest* 5937 if test $ac_cv_sys_file_offset_bits = unknown; then 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5939$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5940if ${ac_cv_sys_large_files+:} false; then : 5941 $as_echo_n "(cached) " >&6 5942else 5943 while :; do 5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5945/* end confdefs.h. */ 5946#include <sys/types.h> 5947 /* Check that off_t can represent 2**63 - 1 correctly. 5948 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5949 since some C++ compilers masquerading as C compilers 5950 incorrectly reject 9223372036854775807. */ 5951#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5953 && LARGE_OFF_T % 2147483647 == 1) 5954 ? 1 : -1]; 5955int 5956main () 5957{ 5958 5959 ; 5960 return 0; 5961} 5962_ACEOF 5963if ac_fn_c_try_compile "$LINENO"; then : 5964 ac_cv_sys_large_files=no; break 5965fi 5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968/* end confdefs.h. */ 5969#define _LARGE_FILES 1 5970#include <sys/types.h> 5971 /* Check that off_t can represent 2**63 - 1 correctly. 5972 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5973 since some C++ compilers masquerading as C compilers 5974 incorrectly reject 9223372036854775807. */ 5975#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5977 && LARGE_OFF_T % 2147483647 == 1) 5978 ? 1 : -1]; 5979int 5980main () 5981{ 5982 5983 ; 5984 return 0; 5985} 5986_ACEOF 5987if ac_fn_c_try_compile "$LINENO"; then : 5988 ac_cv_sys_large_files=1; break 5989fi 5990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5991 ac_cv_sys_large_files=unknown 5992 break 5993done 5994fi 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5996$as_echo "$ac_cv_sys_large_files" >&6; } 5997case $ac_cv_sys_large_files in #( 5998 no | unknown) ;; 5999 *) 6000cat >>confdefs.h <<_ACEOF 6001#define _LARGE_FILES $ac_cv_sys_large_files 6002_ACEOF 6003;; 6004esac 6005rm -rf conftest* 6006 fi 6007 6008 6009fi 6010 6011fi 6012 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6014$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6015if ${ac_cv_c_const+:} false; then : 6016 $as_echo_n "(cached) " >&6 6017else 6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6019/* end confdefs.h. */ 6020 6021int 6022main () 6023{ 6024 6025#ifndef __cplusplus 6026 /* Ultrix mips cc rejects this sort of thing. */ 6027 typedef int charset[2]; 6028 const charset cs = { 0, 0 }; 6029 /* SunOS 4.1.1 cc rejects this. */ 6030 char const *const *pcpcc; 6031 char **ppc; 6032 /* NEC SVR4.0.2 mips cc rejects this. */ 6033 struct point {int x, y;}; 6034 static struct point const zero = {0,0}; 6035 /* AIX XL C 1.02.0.0 rejects this. 6036 It does not let you subtract one const X* pointer from another in 6037 an arm of an if-expression whose if-part is not a constant 6038 expression */ 6039 const char *g = "string"; 6040 pcpcc = &g + (g ? g-g : 0); 6041 /* HPUX 7.0 cc rejects these. */ 6042 ++pcpcc; 6043 ppc = (char**) pcpcc; 6044 pcpcc = (char const *const *) ppc; 6045 { /* SCO 3.2v4 cc rejects this sort of thing. */ 6046 char tx; 6047 char *t = &tx; 6048 char const *s = 0 ? (char *) 0 : (char const *) 0; 6049 6050 *t++ = 0; 6051 if (s) return 0; 6052 } 6053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6054 int x[] = {25, 17}; 6055 const int *foo = &x[0]; 6056 ++foo; 6057 } 6058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6059 typedef const int *iptr; 6060 iptr p = 0; 6061 ++p; 6062 } 6063 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 6064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6065 struct s { int j; const int *ap[3]; } bx; 6066 struct s *b = &bx; b->j = 5; 6067 } 6068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6069 const int foo = 10; 6070 if (!foo) return 0; 6071 } 6072 return !cs[0] && !zero.x; 6073#endif 6074 6075 ; 6076 return 0; 6077} 6078_ACEOF 6079if ac_fn_c_try_compile "$LINENO"; then : 6080 ac_cv_c_const=yes 6081else 6082 ac_cv_c_const=no 6083fi 6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6085fi 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6087$as_echo "$ac_cv_c_const" >&6; } 6088if test $ac_cv_c_const = no; then 6089 6090$as_echo "#define const /**/" >>confdefs.h 6091 6092fi 6093 6094ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6095if test "x$ac_cv_type_pid_t" = xyes; then : 6096 6097else 6098 6099cat >>confdefs.h <<_ACEOF 6100#define pid_t int 6101_ACEOF 6102 6103fi 6104 6105 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 6107$as_echo_n "checking for socklen_t... " >&6; } 6108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6109/* end confdefs.h. */ 6110 6111#include <sys/types.h> 6112#include <unistd.h> 6113#include <sys/socket.h> 6114 6115int 6116main () 6117{ 6118socklen_t s; 6119 ; 6120 return 0; 6121} 6122_ACEOF 6123if ac_fn_c_try_compile "$LINENO"; then : 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6125$as_echo "yes" >&6; } 6126else 6127 6128$as_echo "#define socklen_t int" >>confdefs.h 6129 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131$as_echo "no" >&6; } 6132fi 6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6134 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for actual socklen_t parameter type in socket functions" >&5 6136$as_echo_n "checking for actual socklen_t parameter type in socket functions... " >&6; } 6137zbx_socklen_t= 6138for arg2 in "struct sockaddr" void; do 6139 for arg3 in socklen_t size_t int; do 6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6141/* end confdefs.h. */ 6142 6143#ifdef HAVE_SYS_TYPES_H 6144# include <sys/types.h> 6145#endif 6146#ifdef HAVE_SYS_SOCKET_H 6147# include <sys/socket.h> 6148#endif 6149 extern int getpeername(int sockfd, $arg2 *addr, $arg3 *addrlen); 6150 6151int 6152main () 6153{ 6154 6155 $arg3 addrlen; 6156 getpeername(0, 0, &addrlen); 6157 6158 ; 6159 return 0; 6160} 6161_ACEOF 6162if ac_fn_c_try_compile "$LINENO"; then : 6163 6164 zbx_socklen_t="$arg3" 6165 break 2 6166 6167fi 6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6169 done 6170done 6171if test "x$zbx_socklen_t" != "x"; then 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $zbx_socklen_t" >&5 6173$as_echo "$zbx_socklen_t" >&6; } 6174 6175cat >>confdefs.h <<_ACEOF 6176#define ZBX_SOCKLEN_T $zbx_socklen_t 6177_ACEOF 6178 6179else 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: leaving undefined" >&5 6181$as_echo "leaving undefined" >&6; } 6182fi 6183 6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for integer field name in union sigval of struct siginfo_t" >&5 6185$as_echo_n "checking for integer field name in union sigval of struct siginfo_t... " >&6; } 6186zbx_sival_int= 6187for field in sival_int sigval_int; do 6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6189/* end confdefs.h. */ 6190 6191#ifdef HAVE_SIGNAL_H 6192# include <signal.h> 6193#endif 6194 6195int 6196main () 6197{ 6198 6199 siginfo_t siginfo; 6200 siginfo.si_value.$field = 0; 6201 6202 ; 6203 return 0; 6204} 6205_ACEOF 6206if ac_fn_c_try_compile "$LINENO"; then : 6207 6208 zbx_sival_int="$field" 6209 break 6210 6211fi 6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6213done 6214if test "x$zbx_sival_int" != "x"; then 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $zbx_sival_int" >&5 6216$as_echo "$zbx_sival_int" >&6; } 6217 6218cat >>confdefs.h <<_ACEOF 6219#define ZBX_SIVAL_INT $zbx_sival_int 6220_ACEOF 6221 6222else 6223 as_fn_error $? "Unable to find integer field name in union sigval of struct siginfo_t" "$LINENO" 5 6224fi 6225 6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5 6227$as_echo_n "checking for res_ninit... " >&6; } 6228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6229/* end confdefs.h. */ 6230 6231#ifdef HAVE_SYS_TYPES_H 6232# include <sys/types.h> 6233#endif 6234#ifdef HAVE_NETINET_IN_H 6235# include <netinet/in.h> 6236#endif 6237#ifdef HAVE_ARPA_NAMESER_H 6238# include <arpa/nameser.h> 6239#endif 6240#ifdef HAVE_RESOLV_H 6241# include <resolv.h> 6242#endif 6243#ifndef C_IN 6244# define C_IN ns_c_in 6245#endif /* C_IN */ 6246#ifndef T_SOA 6247# define T_SOA ns_t_soa 6248#endif /* T_SOA */ 6249 6250int 6251main () 6252{ 6253 6254 struct __res_state res_state_local; 6255 6256 res_ninit(&res_state_local); 6257 6258 ; 6259 return 0; 6260} 6261_ACEOF 6262if ac_fn_c_try_link "$LINENO"; then : 6263 6264$as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h 6265 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6267$as_echo "yes" >&6; } 6268else 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270$as_echo "no" >&6; } 6271fi 6272rm -f core conftest.err conftest.$ac_objext \ 6273 conftest$ac_exeext conftest.$ac_ext 6274 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5 6276$as_echo_n "checking for res_ndestroy... " >&6; } 6277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6278/* end confdefs.h. */ 6279 6280#ifdef HAVE_SYS_TYPES_H 6281# include <sys/types.h> 6282#endif 6283#ifdef HAVE_NETINET_IN_H 6284# include <netinet/in.h> 6285#endif 6286#ifdef HAVE_ARPA_NAMESER_H 6287# include <arpa/nameser.h> 6288#endif 6289#ifdef HAVE_RESOLV_H 6290# include <resolv.h> 6291#endif 6292#ifndef C_IN 6293# define C_IN ns_c_in 6294#endif /* C_IN */ 6295#ifndef T_SOA 6296# define T_SOA ns_t_soa 6297#endif /* T_SOA */ 6298 6299int 6300main () 6301{ 6302 6303 struct __res_state res_state_local; 6304 6305 res_ninit(&res_state_local); 6306 res_ndestroy(&res_state_local); 6307 6308 ; 6309 return 0; 6310} 6311_ACEOF 6312if ac_fn_c_try_link "$LINENO"; then : 6313 6314$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h 6315 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6317$as_echo "yes" >&6; } 6318else 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320$as_echo "no" >&6; } 6321fi 6322rm -f core conftest.err conftest.$ac_objext \ 6323 conftest$ac_exeext conftest.$ac_ext 6324 6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5 6326$as_echo_n "checking for union semun... " >&6; } 6327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6328/* end confdefs.h. */ 6329 6330#include <sys/types.h> 6331#include <sys/ipc.h> 6332#include <sys/sem.h> 6333 6334int 6335main () 6336{ 6337union semun foo; 6338 ; 6339 return 0; 6340} 6341_ACEOF 6342if ac_fn_c_try_compile "$LINENO"; then : 6343 6344$as_echo "#define HAVE_SEMUN 1" >>confdefs.h 6345 6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6347$as_echo "yes" >&6; } 6348else 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6350$as_echo "no" >&6; } 6351fi 6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6353 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct swaptable in sys/swap.h" >&5 6355$as_echo_n "checking for struct swaptable in sys/swap.h... " >&6; } 6356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6357/* end confdefs.h. */ 6358 6359#include <stdlib.h> 6360#include <sys/types.h> 6361#include <sys/syscall.h> 6362#include <sys/swap.h> 6363 6364#ifndef NULL 6365#define NULL (void *)0 6366#endif 6367 6368int 6369main () 6370{ 6371 6372 register int cnt, i; 6373 register int t, f; 6374 struct swaptable *swt; 6375 struct swapent *ste; 6376 static char path[256]; 6377 6378 /* get total number of swap entries */ 6379 cnt = swapctl(SC_GETNSWP, 0); 6380 6381 /* allocate enough space to hold count + n swapents */ 6382 swt = (struct swaptable *)malloc(sizeof(int) + 6383 cnt * sizeof(struct swapent)); 6384 if (swt == NULL) 6385 { 6386 return; 6387 } 6388 swt->swt_n = cnt; 6389 6390 /* fill in ste_path pointers: we do not care about the paths, so we 6391point 6392 them all to the same buffer */ 6393 ste = &(swt->swt_ent[0]); 6394 i = cnt; 6395 while (--i >= 0) 6396 { 6397 ste++->ste_path = path; 6398 } 6399 6400 /* grab all swap info */ 6401 swapctl(SC_LIST, swt); 6402 6403 /* walk through the structs and sum up the fields */ 6404 t = f = 0; 6405 ste = &(swt->swt_ent[0]); 6406 i = cnt; 6407 while (--i >= 0) 6408 { 6409 /* do not count slots being deleted */ 6410 if (!(ste->ste_flags & ST_INDEL) && 6411 !(ste->ste_flags & ST_DOINGDEL)) 6412 { 6413 t += ste->ste_pages; 6414 f += ste->ste_free; 6415 } ste++; 6416 } 6417 6418 /* fill in the results */ 6419 free(swt); 6420 6421 6422 ; 6423 return 0; 6424} 6425_ACEOF 6426if ac_fn_c_try_compile "$LINENO"; then : 6427 6428$as_echo "#define HAVE_SYS_SWAP_SWAPTABLE 1" >>confdefs.h 6429 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6431$as_echo "yes" >&6; } 6432else 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6434$as_echo "no" >&6; } 6435fi 6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6437 6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sensordev in sys/sensors.h" >&5 6439$as_echo_n "checking for struct sensordev in sys/sensors.h... " >&6; } 6440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442 6443#include <stdlib.h> 6444#include <sys/queue.h> 6445#include <sys/sensors.h> 6446int 6447main () 6448{ 6449struct sensordev sensordev; 6450sensordev.xname[0]='\0'; 6451sensordev.maxnumt[0]=0; 6452 6453 ; 6454 return 0; 6455} 6456_ACEOF 6457if ac_fn_c_try_compile "$LINENO"; then : 6458 6459$as_echo "#define HAVE_SENSORDEV 1" >>confdefs.h 6460 6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6462$as_echo "yes" >&6; } 6463else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465$as_echo "no" >&6; } 6466fi 6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6468 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statvfs64 in sys/statvfs.h" >&5 6470$as_echo_n "checking for struct statvfs64 in sys/statvfs.h... " >&6; } 6471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472/* end confdefs.h. */ 6473 6474#ifdef HAVE_SYS_TYPES_H 6475# include <sys/types.h> 6476#endif 6477#ifdef HAVE_SYS_STATVFS_H 6478# include <sys/statvfs.h> 6479#endif 6480 6481int 6482main () 6483{ 6484 6485 struct statvfs64 s; 6486 s.f_frsize = s.f_blocks = s.f_bfree = s.f_bavail = 0; 6487 statvfs64("/", &s); 6488 6489 ; 6490 return 0; 6491} 6492_ACEOF 6493if ac_fn_c_try_compile "$LINENO"; then : 6494 6495$as_echo "#define HAVE_SYS_STATVFS64 1" >>confdefs.h 6496 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6498$as_echo "yes" >&6; } 6499else 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6501$as_echo "no" >&6; } 6502fi 6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6504 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs64 in sys/statfs.h" >&5 6506$as_echo_n "checking for struct statfs64 in sys/statfs.h... " >&6; } 6507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6508/* end confdefs.h. */ 6509 6510#ifdef HAVE_SYS_TYPES_H 6511# include <sys/types.h> 6512#endif 6513#ifdef HAVE_SYS_STATFS_H 6514# include <sys/statfs.h> 6515#endif 6516 6517int 6518main () 6519{ 6520 6521 struct statfs64 s; 6522 s.f_bsize = s.f_blocks = s.f_bfree = s.f_bavail = 0; 6523 statfs64("/", &s); 6524 6525 ; 6526 return 0; 6527} 6528_ACEOF 6529if ac_fn_c_try_compile "$LINENO"; then : 6530 6531$as_echo "#define HAVE_SYS_STATFS64 1" >>confdefs.h 6532 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6534$as_echo "yes" >&6; } 6535else 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6537$as_echo "no" >&6; } 6538fi 6539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6540 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5 6542$as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; } 6543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544/* end confdefs.h. */ 6545#include <sys/socket.h> 6546int 6547main () 6548{ 6549struct sockaddr_storage ss; 6550ss.ss_family = 0; 6551 6552 ; 6553 return 0; 6554} 6555_ACEOF 6556if ac_fn_c_try_compile "$LINENO"; then : 6557 6558$as_echo "#define HAVE_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h 6559 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6561$as_echo "yes" >&6; } 6562else 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6564$as_echo "no" >&6; } 6565fi 6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6567 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field mem_unit in struct sysinfo" >&5 6569$as_echo_n "checking for field mem_unit in struct sysinfo... " >&6; } 6570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6571/* end confdefs.h. */ 6572#include <sys/sysinfo.h> 6573int 6574main () 6575{ 6576struct sysinfo sysinfo; 6577sysinfo.mem_unit=0; 6578 6579 ; 6580 return 0; 6581} 6582_ACEOF 6583if ac_fn_c_try_compile "$LINENO"; then : 6584 6585$as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 6586 6587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6588$as_echo "yes" >&6; } 6589else 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6591$as_echo "no" >&6; } 6592fi 6593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6594 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field freeswap in struct sysinfo" >&5 6596$as_echo_n "checking for field freeswap in struct sysinfo... " >&6; } 6597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6598/* end confdefs.h. */ 6599#include <sys/sysinfo.h> 6600int 6601main () 6602{ 6603struct sysinfo sysinfo; 6604sysinfo.freeswap=0; 6605 6606 ; 6607 return 0; 6608} 6609_ACEOF 6610if ac_fn_c_try_compile "$LINENO"; then : 6611 6612$as_echo "#define HAVE_SYSINFO_FREESWAP 1" >>confdefs.h 6613 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6615$as_echo "yes" >&6; } 6616else 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6618$as_echo "no" >&6; } 6619fi 6620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6621 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field totalswap in struct sysinfo" >&5 6623$as_echo_n "checking for field totalswap in struct sysinfo... " >&6; } 6624cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6625/* end confdefs.h. */ 6626#include <sys/sysinfo.h> 6627int 6628main () 6629{ 6630struct sysinfo sysinfo; 6631sysinfo.totalswap=0; 6632 6633 ; 6634 return 0; 6635} 6636_ACEOF 6637if ac_fn_c_try_compile "$LINENO"; then : 6638 6639$as_echo "#define HAVE_SYSINFO_TOTALSWAP 1" >>confdefs.h 6640 6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6642$as_echo "yes" >&6; } 6643else 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6645$as_echo "no" >&6; } 6646fi 6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6648 6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field totalram in struct sysinfo" >&5 6650$as_echo_n "checking for field totalram in struct sysinfo... " >&6; } 6651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6652/* end confdefs.h. */ 6653#include <sys/sysinfo.h> 6654int 6655main () 6656{ 6657struct sysinfo sysinfo; 6658sysinfo.totalram=0; 6659 6660 ; 6661 return 0; 6662} 6663_ACEOF 6664if ac_fn_c_try_compile "$LINENO"; then : 6665 6666$as_echo "#define HAVE_SYSINFO_TOTALRAM 1" >>confdefs.h 6667 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6669$as_echo "yes" >&6; } 6670else 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6672$as_echo "no" >&6; } 6673fi 6674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6675 6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sharedram in struct sysinfo" >&5 6677$as_echo_n "checking for field sharedram in struct sysinfo... " >&6; } 6678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6679/* end confdefs.h. */ 6680#include <sys/sysinfo.h> 6681int 6682main () 6683{ 6684struct sysinfo sysinfo; 6685sysinfo.sharedram=0; 6686 6687 ; 6688 return 0; 6689} 6690_ACEOF 6691if ac_fn_c_try_compile "$LINENO"; then : 6692 6693$as_echo "#define HAVE_SYSINFO_SHAREDRAM 1" >>confdefs.h 6694 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6696$as_echo "yes" >&6; } 6697else 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6699$as_echo "no" >&6; } 6700fi 6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6702 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field bufferram in struct sysinfo" >&5 6704$as_echo_n "checking for field bufferram in struct sysinfo... " >&6; } 6705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6706/* end confdefs.h. */ 6707#include <sys/sysinfo.h> 6708int 6709main () 6710{ 6711struct sysinfo sysinfo; 6712sysinfo.bufferram=0; 6713 6714 ; 6715 return 0; 6716} 6717_ACEOF 6718if ac_fn_c_try_compile "$LINENO"; then : 6719 6720$as_echo "#define HAVE_SYSINFO_BUFFERRAM 1" >>confdefs.h 6721 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6723$as_echo "yes" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6729 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field freeram in struct sysinfo" >&5 6731$as_echo_n "checking for field freeram in struct sysinfo... " >&6; } 6732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6733/* end confdefs.h. */ 6734#include <sys/sysinfo.h> 6735int 6736main () 6737{ 6738struct sysinfo sysinfo; 6739sysinfo.freeram=0; 6740 6741 ; 6742 return 0; 6743} 6744_ACEOF 6745if ac_fn_c_try_compile "$LINENO"; then : 6746 6747$as_echo "#define HAVE_SYSINFO_FREERAM 1" >>confdefs.h 6748 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6750$as_echo "yes" >&6; } 6751else 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6753$as_echo "no" >&6; } 6754fi 6755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6756 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field uptime in struct sysinfo" >&5 6758$as_echo_n "checking for field uptime in struct sysinfo... " >&6; } 6759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761#include <sys/sysinfo.h> 6762int 6763main () 6764{ 6765struct sysinfo sysinfo; 6766sysinfo.uptime=0; 6767 6768 ; 6769 return 0; 6770} 6771_ACEOF 6772if ac_fn_c_try_compile "$LINENO"; then : 6773 6774$as_echo "#define HAVE_SYSINFO_UPTIME 1" >>confdefs.h 6775 6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6777$as_echo "yes" >&6; } 6778else 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6780$as_echo "no" >&6; } 6781fi 6782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6783 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field procs in struct sysinfo" >&5 6785$as_echo_n "checking for field procs in struct sysinfo... " >&6; } 6786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6787/* end confdefs.h. */ 6788#include <sys/sysinfo.h> 6789int 6790main () 6791{ 6792struct sysinfo sysinfo; 6793sysinfo.procs=0; 6794 6795 ; 6796 return 0; 6797} 6798_ACEOF 6799if ac_fn_c_try_compile "$LINENO"; then : 6800 6801$as_echo "#define HAVE_SYSINFO_PROCS 1" >>confdefs.h 6802 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6804$as_echo "yes" >&6; } 6805else 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6807$as_echo "no" >&6; } 6808fi 6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6810 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field tm_gmtoff in struct tm" >&5 6812$as_echo_n "checking for field tm_gmtoff in struct tm... " >&6; } 6813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815 6816#ifdef HAVE_SYS_TIME_H 6817#include <sys/time.h> 6818#endif /* HAVE_SYS_TIME_H */ 6819 6820#ifdef HAVE_TIME_H 6821#include <time.h> 6822#endif /* HAVE_TIME_H */ 6823 6824int 6825main () 6826{ 6827 6828 struct tm tm; 6829 tm.tm_gmtoff; 6830 6831 ; 6832 return 0; 6833} 6834_ACEOF 6835if ac_fn_c_try_compile "$LINENO"; then : 6836 6837$as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h 6838 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6840$as_echo "yes" >&6; } 6841else 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6843$as_echo "no" >&6; } 6844fi 6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6846 6847 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysconf() in unistd.h" >&5 6849$as_echo_n "checking for function sysconf() in unistd.h... " >&6; } 6850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6851/* end confdefs.h. */ 6852 6853#include <unistd.h> 6854 6855int 6856main () 6857{ 6858 int i; 6859 6860 i=sysconf(_SC_PHYS_PAGES)*sysconf(_SC_PHYS_PAGES); 6861 i=sysconf(_SC_AVPHYS_PAGES)*sysconf(_SC_PHYS_PAGES); 6862 6863 ; 6864 return 0; 6865} 6866_ACEOF 6867if ac_fn_c_try_compile "$LINENO"; then : 6868 6869$as_echo "#define HAVE_UNISTD_SYSCONF 1" >>confdefs.h 6870 6871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6872$as_echo "yes" >&6; } 6873else 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875$as_echo "no" >&6; } 6876fi 6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6878 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function initgroups()" >&5 6880$as_echo_n "checking for function initgroups()... " >&6; } 6881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6882/* end confdefs.h. */ 6883 6884#include <sys/types.h> 6885#include <grp.h> 6886 6887int 6888main () 6889{ 6890 6891 char *user = "zabbix"; 6892 initgroups(user, 0); 6893 6894 ; 6895 return 0; 6896} 6897_ACEOF 6898if ac_fn_c_try_link "$LINENO"; then : 6899 6900$as_echo "#define HAVE_FUNCTION_INITGROUPS 1" >>confdefs.h 6901 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6903$as_echo "yes" >&6; } 6904else 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6906$as_echo "no" >&6; } 6907fi 6908rm -f core conftest.err conftest.$ac_objext \ 6909 conftest$ac_exeext conftest.$ac_ext 6910 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for functions seteuid() and setegid()" >&5 6912$as_echo_n "checking for functions seteuid() and setegid()... " >&6; } 6913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6914/* end confdefs.h. */ 6915 6916#include <sys/types.h> 6917#include <unistd.h> 6918 6919int 6920main () 6921{ 6922 6923 seteuid(0); 6924 setegid(0); 6925 6926 ; 6927 return 0; 6928} 6929_ACEOF 6930if ac_fn_c_try_link "$LINENO"; then : 6931 6932$as_echo "#define HAVE_FUNCTION_SETEUID 1" >>confdefs.h 6933 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6935$as_echo "yes" >&6; } 6936else 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6938$as_echo "no" >&6; } 6939fi 6940rm -f core conftest.err conftest.$ac_objext \ 6941 conftest$ac_exeext conftest.$ac_ext 6942 6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function setproctitle()" >&5 6944$as_echo_n "checking for function setproctitle()... " >&6; } 6945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6946/* end confdefs.h. */ 6947 6948#include <sys/types.h> 6949#include <unistd.h> 6950 6951int 6952main () 6953{ 6954 6955 setproctitle("Test %d", 1); 6956 6957 ; 6958 return 0; 6959} 6960_ACEOF 6961if ac_fn_c_try_link "$LINENO"; then : 6962 6963$as_echo "#define HAVE_FUNCTION_SETPROCTITLE 1" >>confdefs.h 6964 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6966$as_echo "yes" >&6; } 6967else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969$as_echo "no" >&6; } 6970fi 6971rm -f core conftest.err conftest.$ac_objext \ 6972 conftest$ac_exeext conftest.$ac_ext 6973 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctlbyname()" >&5 6975$as_echo_n "checking for function sysctlbyname()... " >&6; } 6976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6977/* end confdefs.h. */ 6978 6979#ifdef HAVE_SYS_TYPES_H 6980#include <sys/types.h> 6981#endif /* HAVE_SYS_TYPES_H */ 6982 6983#ifdef HAVE_SYS_PARAM_H 6984#include <sys/param.h> 6985#endif /* HAVE_SYS_PARAM_H */ 6986 6987#include <sys/sysctl.h> 6988 6989int 6990main () 6991{ 6992 6993 sysctlbyname("", 0, 0, 0, 0); 6994 6995 ; 6996 return 0; 6997} 6998_ACEOF 6999if ac_fn_c_try_link "$LINENO"; then : 7000 7001$as_echo "#define HAVE_FUNCTION_SYSCTLBYNAME 1" >>confdefs.h 7002 7003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7004$as_echo "yes" >&6; } 7005else 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7007$as_echo "no" >&6; } 7008fi 7009rm -f core conftest.err conftest.$ac_objext \ 7010 conftest$ac_exeext conftest.$ac_ext 7011 7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (KERN_BOOTTIME)" >&5 7013$as_echo_n "checking for function sysctl (KERN_BOOTTIME)... " >&6; } 7014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015/* end confdefs.h. */ 7016 7017#ifdef HAVE_SYS_TYPES_H 7018#include <sys/types.h> 7019#endif /* HAVE_SYS_TYPES_H */ 7020 7021#ifdef HAVE_SYS_PARAM_H 7022#include <sys/param.h> 7023#endif /* HAVE_SYS_PARAM_H */ 7024 7025#include <sys/sysctl.h> 7026#include <unistd.h> 7027#include <time.h> 7028#include <sys/time.h> 7029 7030int 7031main () 7032{ 7033 7034 size_t len; 7035 struct timeval uptime; 7036 int mib[2]; 7037 7038 mib[0] = CTL_KERN; 7039 mib[1] = KERN_BOOTTIME; 7040 7041 len = sizeof(uptime); 7042 sysctl(mib, 2, &uptime, &len, 0, 0); 7043 7044 ; 7045 return 0; 7046} 7047_ACEOF 7048if ac_fn_c_try_compile "$LINENO"; then : 7049 7050$as_echo "#define HAVE_FUNCTION_SYSCTL_KERN_BOOTTIME 1" >>confdefs.h 7051 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7053$as_echo "yes" >&6; } 7054else 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7056$as_echo "no" >&6; } 7057fi 7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7059 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (HW_NCPU)" >&5 7061$as_echo_n "checking for function sysctl (HW_NCPU)... " >&6; } 7062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064 7065#ifdef HAVE_SYS_TYPES_H 7066#include <sys/types.h> 7067#endif /* HAVE_SYS_TYPES_H */ 7068 7069#ifdef HAVE_SYS_PARAM_H 7070#include <sys/param.h> 7071#endif /* HAVE_SYS_PARAM_H */ 7072 7073#include <sys/sysctl.h> 7074 7075int 7076main () 7077{ 7078 7079 size_t len; 7080 int mib[2], ncpu; 7081 7082 mib[0] = CTL_HW; 7083 mib[1] = HW_NCPU; 7084 7085 len = sizeof(ncpu); 7086 sysctl(mib, 2, &ncpu, &len, 0, 0); 7087 7088 ; 7089 return 0; 7090} 7091_ACEOF 7092if ac_fn_c_try_compile "$LINENO"; then : 7093 7094$as_echo "#define HAVE_FUNCTION_SYSCTL_HW_NCPU 1" >>confdefs.h 7095 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7097$as_echo "yes" >&6; } 7098else 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7100$as_echo "no" >&6; } 7101fi 7102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7103 7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (KERN_MAXFILES)" >&5 7105$as_echo_n "checking for function sysctl (KERN_MAXFILES)... " >&6; } 7106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107/* end confdefs.h. */ 7108 7109#ifdef HAVE_SYS_TYPES_H 7110#include <sys/types.h> 7111#endif /* HAVE_SYS_TYPES_H */ 7112 7113#ifdef HAVE_SYS_PARAM_H 7114#include <sys/param.h> 7115#endif /* HAVE_SYS_PARAM_H */ 7116 7117#include <sys/sysctl.h> 7118 7119int 7120main () 7121{ 7122 7123 size_t len; 7124 int mib[2], maxfiles; 7125 7126 mib[0] = CTL_KERN; 7127 mib[1] = KERN_MAXFILES; 7128 7129 len = sizeof(maxfiles); 7130 sysctl(mib, 2, &maxfiles, &len, 0, 0); 7131 7132 ; 7133 return 0; 7134} 7135_ACEOF 7136if ac_fn_c_try_compile "$LINENO"; then : 7137 7138$as_echo "#define HAVE_FUNCTION_SYSCTL_KERN_MAXFILES 1" >>confdefs.h 7139 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7141$as_echo "yes" >&6; } 7142else 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7144$as_echo "no" >&6; } 7145fi 7146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7147 7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (KERN_MAXPROC)" >&5 7149$as_echo_n "checking for function sysctl (KERN_MAXPROC)... " >&6; } 7150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7151/* end confdefs.h. */ 7152 7153#ifdef HAVE_SYS_TYPES_H 7154#include <sys/types.h> 7155#endif /* HAVE_SYS_TYPES_H */ 7156 7157#ifdef HAVE_SYS_PARAM_H 7158#include <sys/param.h> 7159#endif /* HAVE_SYS_PARAM_H */ 7160 7161#include <sys/sysctl.h> 7162 7163int 7164main () 7165{ 7166 7167 size_t len; 7168 int mib[2], maxproc; 7169 7170 mib[0] = CTL_KERN; 7171 mib[1] = KERN_MAXPROC; 7172 7173 len = sizeof(maxproc); 7174 sysctl(mib, 2, &maxproc, &len, 0, 0); 7175 7176 ; 7177 return 0; 7178} 7179_ACEOF 7180if ac_fn_c_try_compile "$LINENO"; then : 7181 7182$as_echo "#define HAVE_FUNCTION_SYSCTL_KERN_MAXPROC 1" >>confdefs.h 7183 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7185$as_echo "yes" >&6; } 7186else 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7188$as_echo "no" >&6; } 7189fi 7190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7191 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (KERN_CPTIME,KERN_CPTIME2)" >&5 7193$as_echo_n "checking for function sysctl (KERN_CPTIME,KERN_CPTIME2)... " >&6; } 7194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7195/* end confdefs.h. */ 7196 7197#include <sys/param.h> 7198#include <sys/sysctl.h> 7199#if defined(HAVE_SYS_DKSTAT_H) 7200# include <sys/dkstat.h> 7201#elif defined(HAVE_SYS_SCHED_H) 7202# include <sys/sched.h> 7203#endif 7204 7205int 7206main () 7207{ 7208 7209size_t sz; 7210int i[] = {CP_USER, CP_NICE, CP_SYS, CP_INTR, CP_IDLE}; 7211 7212{ 7213 long states[CPUSTATES]; 7214 int mib[2] = {CTL_KERN, KERN_CPTIME}; 7215 7216 sz = sizeof(states); 7217 sysctl(mib, 2, &states, &sz, NULL, 0); 7218} 7219 7220{ 7221 u_int64_t states[CPUSTATES]; 7222 int mib[3] = {CTL_KERN, KERN_CPTIME2, 0}; 7223 7224 sz = sizeof(states); 7225 sysctl(mib, 3, &states, &sz, NULL, 0); 7226} 7227 7228 ; 7229 return 0; 7230} 7231_ACEOF 7232if ac_fn_c_try_compile "$LINENO"; then : 7233 7234$as_echo "#define HAVE_FUNCTION_SYSCTL_KERN_CPTIME 1" >>confdefs.h 7235 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7237$as_echo "yes" >&6; } 7238else 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7240$as_echo "no" >&6; } 7241fi 7242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7243 7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function clock_gettime in time.h" >&5 7245$as_echo_n "checking for function clock_gettime in time.h... " >&6; } 7246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7247/* end confdefs.h. */ 7248 7249#ifdef HAVE_TIME_H 7250# include <time.h> 7251#elif HAVE_SYS_TIME_H 7252# include <sys/time.h> 7253#endif /* HAVE_SYS_TIME_H */ 7254 7255int 7256main () 7257{ 7258struct timespec tp; 7259clock_gettime(CLOCK_REALTIME, &tp); 7260 7261 ; 7262 return 0; 7263} 7264_ACEOF 7265if ac_fn_c_try_link "$LINENO"; then : 7266 7267$as_echo "#define HAVE_TIME_CLOCK_GETTIME 1" >>confdefs.h 7268 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7270$as_echo "yes" >&6; } 7271else 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7273$as_echo "no" >&6; } 7274fi 7275rm -f core conftest.err conftest.$ac_objext \ 7276 conftest$ac_exeext conftest.$ac_ext 7277 7278 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for macro __va_copy() in stdarg.h" >&5 7280$as_echo_n "checking for macro __va_copy() in stdarg.h... " >&6; } 7281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282/* end confdefs.h. */ 7283 7284#include <stdarg.h> 7285 7286int 7287main () 7288{ 7289 7290 va_list src,dst; 7291 7292 __va_copy(dst,src); 7293 7294 ; 7295 return 0; 7296} 7297_ACEOF 7298if ac_fn_c_try_compile "$LINENO"; then : 7299 7300$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h 7301 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7303$as_echo "yes" >&6; } 7304else 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7306$as_echo "no" >&6; } 7307fi 7308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7309 7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for macro __VA_ARGS__" >&5 7311$as_echo_n "checking for macro __VA_ARGS__... " >&6; } 7312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313/* end confdefs.h. */ 7314 7315#define ZBX_CONST_STRING(str) str 7316int test(const char *fmt, ...) { return 0; } 7317 7318int 7319main () 7320{ 7321 7322#define TEST(fmt, ...) test(ZBX_CONST_STRING(fmt), ##__VA_ARGS__) 7323TEST("%s","test"); 7324TEST("test"); 7325 7326 ; 7327 return 0; 7328} 7329_ACEOF 7330if ac_fn_c_try_compile "$LINENO"; then : 7331 7332$as_echo "#define HAVE___VA_ARGS__ 1" >>confdefs.h 7333 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7335$as_echo "yes" >&6; } 7336else 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7338$as_echo "no" >&6; } 7339fi 7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7341 7342 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 7344$as_echo_n "checking return type of signal handlers... " >&6; } 7345if ${ac_cv_type_signal+:} false; then : 7346 $as_echo_n "(cached) " >&6 7347else 7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7349/* end confdefs.h. */ 7350#include <sys/types.h> 7351#include <signal.h> 7352 7353int 7354main () 7355{ 7356return *(signal (0, 0)) (0) == 1; 7357 ; 7358 return 0; 7359} 7360_ACEOF 7361if ac_fn_c_try_compile "$LINENO"; then : 7362 ac_cv_type_signal=int 7363else 7364 ac_cv_type_signal=void 7365fi 7366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7367fi 7368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 7369$as_echo "$ac_cv_type_signal" >&6; } 7370 7371cat >>confdefs.h <<_ACEOF 7372#define RETSIGTYPE $ac_cv_type_signal 7373_ACEOF 7374 7375 7376ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 7377if test "x$ac_cv_func_getloadavg" = xyes; then : 7378 $as_echo "#define HAVE_GETLOADAVG 1" >>confdefs.h 7379 7380else 7381 case " $LIBOBJS " in 7382 *" getloadavg.$ac_objext "* ) ;; 7383 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 7384 ;; 7385esac 7386 7387fi 7388 7389 7390for ac_func in hstrerror 7391do : 7392 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" 7393if test "x$ac_cv_func_hstrerror" = xyes; then : 7394 cat >>confdefs.h <<_ACEOF 7395#define HAVE_HSTRERROR 1 7396_ACEOF 7397 7398fi 7399done 7400 7401for ac_func in getenv 7402do : 7403 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" 7404if test "x$ac_cv_func_getenv" = xyes; then : 7405 cat >>confdefs.h <<_ACEOF 7406#define HAVE_GETENV 1 7407_ACEOF 7408 7409fi 7410done 7411 7412for ac_func in putenv 7413do : 7414 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 7415if test "x$ac_cv_func_putenv" = xyes; then : 7416 cat >>confdefs.h <<_ACEOF 7417#define HAVE_PUTENV 1 7418_ACEOF 7419 7420fi 7421done 7422 7423for ac_func in sigqueue 7424do : 7425 ac_fn_c_check_func "$LINENO" "sigqueue" "ac_cv_func_sigqueue" 7426if test "x$ac_cv_func_sigqueue" = xyes; then : 7427 cat >>confdefs.h <<_ACEOF 7428#define HAVE_SIGQUEUE 1 7429_ACEOF 7430 7431fi 7432done 7433 7434for ac_func in round 7435do : 7436 ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round" 7437if test "x$ac_cv_func_round" = xyes; then : 7438 cat >>confdefs.h <<_ACEOF 7439#define HAVE_ROUND 1 7440_ACEOF 7441 7442fi 7443done 7444 7445 7446 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc filesystem" >&5 7448$as_echo_n "checking for /proc filesystem... " >&6; } 7449if test -d /proc; then 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7451$as_echo "yes" >&6; } 7452 7453$as_echo "#define HAVE_PROC 1" >>confdefs.h 7454 7455else 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7457$as_echo "no" >&6; } 7458fi 7459 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/stat" >&5 7461$as_echo_n "checking for file /proc/stat... " >&6; } 7462if test -r /proc/stat; then 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7464$as_echo "yes" >&6; } 7465 7466$as_echo "#define HAVE_PROC_STAT 1" >>confdefs.h 7467 7468else 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7470$as_echo "no" >&6; } 7471fi 7472 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/cpuinfo" >&5 7474$as_echo_n "checking for file /proc/cpuinfo... " >&6; } 7475if test -r /proc/cpuinfo; then 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7477$as_echo "yes" >&6; } 7478 7479$as_echo "#define HAVE_PROC_CPUINFO 1" >>confdefs.h 7480 7481else 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7483$as_echo "no" >&6; } 7484fi 7485 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/0/psinfo" >&5 7487$as_echo_n "checking for file /proc/0/psinfo... " >&6; } 7488if test -r /proc/0/psinfo; then 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7490$as_echo "yes" >&6; } 7491 7492$as_echo "#define HAVE_PROC_0_PSINFO 1" >>confdefs.h 7493 7494else 7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7496$as_echo "no" >&6; } 7497fi 7498 7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/loadavg" >&5 7500$as_echo_n "checking for file /proc/loadavg... " >&6; } 7501if test -r /proc/loadavg; then 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7503$as_echo "yes" >&6; } 7504 7505$as_echo "#define HAVE_PROC_LOADAVG 1" >>confdefs.h 7506 7507else 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7509$as_echo "no" >&6; } 7510fi 7511 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/net/dev" >&5 7513$as_echo_n "checking for file /proc/net/dev... " >&6; } 7514if test -r /proc/net/dev; then 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7516$as_echo "yes" >&6; } 7517 7518$as_echo "#define HAVE_PROC_NET_DEV 1" >>confdefs.h 7519 7520else 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7522$as_echo "no" >&6; } 7523fi 7524 7525 7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long format" >&5 7527$as_echo_n "checking for long long format... " >&6; } 7528if test "$cross_compiling" = yes; then : 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7530$as_echo "no" >&6; } 7531else 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534 7535#include <sys/types.h> 7536int main() 7537{ 7538 uint64_t i; 7539 7540 sscanf("200000000010020", "%qu", &i); 7541 7542 if (i == 200000000010020) return 0; 7543 else return -1; 7544} 7545 7546_ACEOF 7547if ac_fn_c_try_run "$LINENO"; then : 7548 7549$as_echo "#define HAVE_LONG_LONG_QU 1 " >>confdefs.h 7550 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7552$as_echo "yes" >&6; } 7553else 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7555$as_echo "no" >&6; } 7556fi 7557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7558 conftest.$ac_objext conftest.beam conftest.$ac_ext 7559fi 7560 7561 7562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic linking option" >&5 7563$as_echo_n "checking for -rdynamic linking option... " >&6; } 7564saved_LDFLAGS="$LDFLAGS" 7565LDFLAGS="-rdynamic $LDFLAGS" 7566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7567/* end confdefs.h. */ 7568#include <execinfo.h> 7569int 7570main () 7571{ 7572void *bcktrc[6]; 7573(void)backtrace(bcktrc, 6); 7574 7575 ; 7576 return 0; 7577} 7578_ACEOF 7579if ac_fn_c_try_link "$LINENO"; then : 7580 LDFLAGS="-rdynamic $saved_LDFLAGS" 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7582$as_echo "yes" >&6; } 7583else 7584 LDFLAGS="$saved_LDFLAGS" 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7586$as_echo "no" >&6; } 7587fi 7588rm -f core conftest.err conftest.$ac_objext \ 7589 conftest$ac_exeext conftest.$ac_ext 7590 7591 7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperfstat 5.2.0.40 fileset" >&5 7593$as_echo_n "checking for libperfstat 5.2.0.40 fileset... " >&6; } 7594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595/* end confdefs.h. */ 7596#include <sys/protosw.h> 7597#include <libperfstat.h> 7598int 7599main () 7600{ 7601perfstat_memory_total_t memstats; 7602memstats.virt_active = 0; 7603 7604 ; 7605 return 0; 7606} 7607_ACEOF 7608if ac_fn_c_try_compile "$LINENO"; then : 7609 7610$as_echo "#define HAVE_AIXOSLEVEL_520004 1" >>confdefs.h 7611 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7613$as_echo "yes" >&6; } 7614else 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7616$as_echo "no" >&6; } 7617fi 7618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7619 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperfstat 5.3.0.60 fileset" >&5 7621$as_echo_n "checking for libperfstat 5.3.0.60 fileset... " >&6; } 7622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7623/* end confdefs.h. */ 7624#include <sys/protosw.h> 7625#include <libperfstat.h> 7626int 7627main () 7628{ 7629perfstat_partition_total_t lparstats; 7630lparstats.type.b.donate_enabled = 0; 7631lparstats.idle_donated_purr = 0; 7632lparstats.busy_donated_purr = 0; 7633lparstats.idle_stolen_purr = 0; 7634lparstats.busy_stolen_purr = 0; 7635 7636 ; 7637 return 0; 7638} 7639_ACEOF 7640if ac_fn_c_try_compile "$LINENO"; then : 7641 7642$as_echo "#define HAVE_AIXOSLEVEL_530006 1" >>confdefs.h 7643 7644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7645$as_echo "yes" >&6; } 7646else 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7648$as_echo "no" >&6; } 7649fi 7650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7651 7652case "$host_os" in 7653linux*) 7654 ARCH="linux" 7655 ;; 7656aix*) 7657 ARCH="aix" 7658 ;; 7659darwin*|rhapsody*) 7660 ARCH="osx" 7661 7662$as_echo "#define MAC_OS_X 1" >>confdefs.h 7663 7664 ;; 7665*solaris*) 7666 ARCH="solaris" 7667 ;; 7668hpux*) 7669 ARCH="hpux" 7670 ;; 7671freebsd*) 7672 ARCH="freebsd" 7673 ;; 7674netbsd*) 7675 ARCH="netbsd" 7676 ;; 7677osf*) 7678 ARCH="osf" 7679 ;; 7680openbsd*) 7681 ARCH="openbsd" 7682 ;; 7683*) 7684 ARCH="unknown" 7685 ;; 7686esac 7687 7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5 7689$as_echo_n "checking for architecture... " >&6; } 7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH ($host_os)" >&5 7691$as_echo "$ARCH ($host_os)" >&6; } 7692 7693if test "x$ARCH" = "xlinux"; then 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the linux kernel version" >&5 7695$as_echo_n "checking for the linux kernel version... " >&6; } 7696 7697 kernel=`uname -r` 7698 7699 case "${kernel}" in 7700 2.6.*) 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5 7702$as_echo "2.6 family (${kernel})" >&6; } 7703 7704$as_echo "#define KERNEL_2_6 1" >>confdefs.h 7705 7706 ;; 7707 2.4.*) 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5 7709$as_echo "2.4 family (${kernel})" >&6; } 7710 7711$as_echo "#define KERNEL_2_4 1" >>confdefs.h 7712 7713 ;; 7714 *) 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown family (${kernel})" >&5 7716$as_echo "unknown family (${kernel})" >&6; } 7717 ;; 7718 esac 7719fi 7720 7721if test "x$ARCH" = "xsolaris"; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -m64 compilation flag" >&5 7723$as_echo_n "checking for -m64 compilation flag... " >&6; } 7724 saved_CFLAGS="$CFLAGS" 7725 CFLAGS="-m64" 7726 if test "$cross_compiling" = yes; then : 7727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7729as_fn_error $? "cannot run test program while cross compiling 7730See \`config.log' for more details" "$LINENO" 5; } 7731else 7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7733/* end confdefs.h. */ 7734int main(void) {return 0;} 7735_ACEOF 7736if ac_fn_c_try_run "$LINENO"; then : 7737 CFLAGS="-m64 $saved_CFLAGS" 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7739$as_echo "yes" >&6; } 7740else 7741 CFLAGS="$saved_CFLAGS" 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7743$as_echo "no" >&6; } 7744fi 7745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7746 conftest.$ac_objext conftest.beam conftest.$ac_ext 7747fi 7748 7749fi 7750 7751if test "x$ARCH" = "xhpux"; then 7752 hpux_version=${host_os#hpux} 7753 hpux_major=${hpux_version%.*} 7754 hpux_minor=${hpux_version#*.} 7755 7756 7757cat >>confdefs.h <<_ACEOF 7758#define HPUX_VERSION $hpux_major$hpux_minor 7759_ACEOF 7760 7761 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -D_HPUX_API_LEVEL=20040821 compilation flag" >&5 7763$as_echo_n "checking for -D_HPUX_API_LEVEL=20040821 compilation flag... " >&6; } 7764 saved_CFLAGS="$CFLAGS" 7765 CFLAGS="-D_HPUX_API_LEVEL=20040821" 7766 if test "$cross_compiling" = yes; then : 7767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7769as_fn_error $? "cannot run test program while cross compiling 7770See \`config.log' for more details" "$LINENO" 5; } 7771else 7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7773/* end confdefs.h. */ 7774 7775#ifdef HAVE_DLFCN_H 7776# include <dlfcn.h> 7777#endif 7778#ifdef HAVE_SYS_UTSNAME_H 7779# include <sys/utsname.h> 7780#endif 7781 7782int main(void) 7783{ 7784 void *p1, *p2; 7785 struct utsname name; 7786 7787 /* check that the compiler (e.g., GCC 4.3.0 and above) supports function-level versioning */ 7788 7789 p1 = uname; 7790 p2 = dlsym(RTLD_DEFAULT, "uname{20040821}"); 7791 7792 if (p1 != p2) 7793 return 1; 7794 7795 /* uname() fails with EFAULT on HP-UX systems that were only partially upgraded to this API level */ 7796 7797 return -1 == uname(&name) ? 1 : 0; 7798} 7799 7800_ACEOF 7801if ac_fn_c_try_run "$LINENO"; then : 7802 CFLAGS="-D_HPUX_API_LEVEL=20040821 $saved_CFLAGS" 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7804$as_echo "yes" >&6; } 7805else 7806 CFLAGS="$saved_CFLAGS" 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7808$as_echo "no" >&6; } 7809fi 7810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7811 conftest.$ac_objext conftest.beam conftest.$ac_ext 7812fi 7813 7814fi 7815 7816 7817cat >>confdefs.h <<_ACEOF 7818#define ARCH "${ARCH}" 7819_ACEOF 7820 7821 7822 7823# The cast to long int works around a bug in the HP C Compiler 7824# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7825# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7826# This bug is HP SR number 8606223364. 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 7828$as_echo_n "checking size of void *... " >&6; } 7829if ${ac_cv_sizeof_void_p+:} false; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 7833 7834else 7835 if test "$ac_cv_type_void_p" = yes; then 7836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7838as_fn_error 77 "cannot compute sizeof (void *) 7839See \`config.log' for more details" "$LINENO" 5; } 7840 else 7841 ac_cv_sizeof_void_p=0 7842 fi 7843fi 7844 7845fi 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 7847$as_echo "$ac_cv_sizeof_void_p" >&6; } 7848 7849 7850 7851cat >>confdefs.h <<_ACEOF 7852#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 7853_ACEOF 7854 7855 7856 7857 7858# Check whether --enable-static was given. 7859if test "${enable_static+set}" = set; then : 7860 enableval=$enable_static; case "${enableval}" in 7861 yes) 7862 LDFLAGS="${LDFLAGS} -static" 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static linking is possible" >&5 7864$as_echo_n "checking if static linking is possible... " >&6; } 7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866/* end confdefs.h. */ 7867 7868int 7869main () 7870{ 7871 7872 ; 7873 return 0; 7874} 7875_ACEOF 7876if ac_fn_c_try_link "$LINENO"; then : 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7878$as_echo "yes" >&6; } 7879 static_linking=yes 7880else 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7882$as_echo "no" >&6; } 7883 static_linking=no 7884fi 7885rm -f core conftest.err conftest.$ac_objext \ 7886 conftest$ac_exeext conftest.$ac_ext 7887 if test "x$static_linking" = "xno"; then 7888 as_fn_error $? "static linking is not possible on this system" "$LINENO" 5 7889 fi 7890 ;; 7891 no) ;; 7892 *) as_fn_error $? "bad value ${enableval} for --enable-static" "$LINENO" 5 ;; 7893esac 7894fi 7895 7896 7897# Check whether --enable-server was given. 7898if test "${enable_server+set}" = set; then : 7899 enableval=$enable_server; case "${enableval}" in 7900 yes) server=yes ;; 7901 no) server=no ;; 7902 *) as_fn_error $? "bad value ${enableval} for --enable-server" "$LINENO" 5 ;; 7903esac 7904else 7905 server=no 7906fi 7907 7908 if test "x$server" = "xyes"; then 7909 SERVER_TRUE= 7910 SERVER_FALSE='#' 7911else 7912 SERVER_TRUE='#' 7913 SERVER_FALSE= 7914fi 7915 7916 7917# Check whether --enable-proxy was given. 7918if test "${enable_proxy+set}" = set; then : 7919 enableval=$enable_proxy; case "${enableval}" in 7920 yes) proxy=yes ;; 7921 no) proxy=no ;; 7922 *) as_fn_error $? "bad value ${enableval} for --enable-proxy" "$LINENO" 5 ;; 7923esac 7924else 7925 proxy=no 7926fi 7927 7928 if test "x$proxy" = "xyes"; then 7929 PROXY_TRUE= 7930 PROXY_FALSE='#' 7931else 7932 PROXY_TRUE='#' 7933 PROXY_FALSE= 7934fi 7935 7936 7937# Check whether --enable-agent was given. 7938if test "${enable_agent+set}" = set; then : 7939 enableval=$enable_agent; case "${enableval}" in 7940 yes) agent=yes ;; 7941 no) agent=no ;; 7942 *) as_fn_error $? "bad value ${enableval} for --enable-agent" "$LINENO" 5 ;; 7943esac 7944else 7945 agent=no 7946fi 7947 7948 if test "x$agent" = "xyes"; then 7949 AGENT_TRUE= 7950 AGENT_FALSE='#' 7951else 7952 AGENT_TRUE='#' 7953 AGENT_FALSE= 7954fi 7955 7956 7957# Check whether --enable-java was given. 7958if test "${enable_java+set}" = set; then : 7959 enableval=$enable_java; case "${enableval}" in 7960 yes) java=yes ;; 7961 no) java=no ;; 7962 *) as_fn_error $? "bad value ${enableval} for --enable-java" "$LINENO" 5 ;; 7963esac 7964else 7965 java=no 7966fi 7967 7968 if test "x$java" = "xyes"; then 7969 JAVA_TRUE= 7970 JAVA_FALSE='#' 7971else 7972 JAVA_TRUE='#' 7973 JAVA_FALSE= 7974fi 7975 7976 7977# Check whether --enable-ipv6 was given. 7978if test "${enable_ipv6+set}" = set; then : 7979 enableval=$enable_ipv6; case "${enableval}" in 7980 yes) ipv6=yes ;; 7981 no) ipv6=no ;; 7982 *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;; 7983esac 7984else 7985 ipv6=no 7986fi 7987 7988 7989have_db="no" 7990have_unixodbc="no" 7991have_web_monitoring="no" 7992have_jabber="no" 7993have_snmp="no" 7994have_ipmi="no" 7995have_ipv6="no" 7996have_ssh2="no" 7997have_tls="no" 7998 7999if test "x$ipv6" = "xyes"; then 8000 8001$as_echo "#define HAVE_IPV6 1" >>confdefs.h 8002 8003 have_ipv6="yes" 8004fi 8005 8006if test "x$server" = "xyes" || test "x$proxy" = "xyes"; then 8007 8008 have_multirow_insert="no" 8009 8010 8011 8012# Check whether --with-ibm-db2 was given. 8013if test "${with_ibm_db2+set}" = set; then : 8014 withval=$with_ibm_db2; 8015 if test "$withval" != "no"; then 8016 want_ibm_db2="yes" 8017 if test "$withval" != "yes"; then 8018 ibm_db2_include_dir="$withval/include" 8019 ibm_db2_lib_dir="$withval/lib" 8020 else 8021 ibm_db2_include_dir=/home/db2inst1/sqllib/include 8022 ibm_db2_lib_dir=/home/db2inst1/sqllib/lib 8023 fi 8024 fi 8025 8026 8027fi 8028 8029 8030# Check whether --with-ibm-db2-include was given. 8031if test "${with_ibm_db2_include+set}" = set; then : 8032 withval=$with_ibm_db2_include; 8033 if test "$withval" != "no"; then 8034 want_ibm_db2="yes" 8035 ibm_db2_include_dir="$withval" 8036 fi 8037 8038 8039fi 8040 8041 8042# Check whether --with-ibm-db2-lib was given. 8043if test "${with_ibm_db2_lib+set}" = set; then : 8044 withval=$with_ibm_db2_lib; 8045 if test "$withval" != "no"; then 8046 want_ibm_db2="yes" 8047 ibm_db2_lib_dir="$withval" 8048 fi 8049 8050 8051fi 8052 8053 8054 if test "x$want_ibm_db2" = "xyes"; then 8055 IBM_DB2_CPPFLAGS="-I$ibm_db2_include_dir" 8056 IBM_DB2_LDFLAGS="-L$ibm_db2_lib_dir" 8057 IBM_DB2_LIBS="-ldb2" 8058 8059 saved_CPPFLAGS="$CPPFLAGS" 8060 saved_LDFLAGS="$LDFLAGS" 8061 saved_LIBS="$LIBS" 8062 CPPFLAGS="$CPPFLAGS $IBM_DB2_CPPFLAGS" 8063 LDFLAGS="$LDFLAGS $IBM_DB2_LDFLAGS" 8064 LIBS="$LIBS $IBM_DB2_LIBS" 8065 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 CLI libraries" >&5 8067$as_echo_n "checking for IBM DB2 CLI libraries... " >&6; } 8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8069/* end confdefs.h. */ 8070#include <sqlcli1.h> 8071int 8072main () 8073{ 8074SQLHANDLE hdbc; 8075 SQLRETURN sqlr; 8076 sqlr = SQLDriverConnect(hdbc, 0, "", SQL_NTS, 0, 0, 0, SQL_DRIVER_NOPROMPT); 8077 8078 ; 8079 return 0; 8080} 8081_ACEOF 8082if ac_fn_c_try_link "$LINENO"; then : 8083 8084$as_echo "#define HAVE_IBM_DB2 1" >>confdefs.h 8085 8086 found_ibm_db2="yes" 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8088$as_echo "yes" >&6; } 8089else 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8091$as_echo "no" >&6; } 8092fi 8093rm -f core conftest.err conftest.$ac_objext \ 8094 conftest$ac_exeext conftest.$ac_ext 8095 8096 CPPFLAGS="$saved_CPPFLAGS" 8097 LDFLAGS="$saved_LDFLAGS" 8098 LIBS="$saved_LIBS" 8099 fi 8100 8101 if test "x$want_ibm_db2" = "xyes"; then 8102 if test "x$have_db" != "xno"; then 8103 as_fn_error $? "You can configure for only one database." "$LINENO" 5 8104 fi 8105 8106 if test "x$found_ibm_db2" = "xyes"; then 8107 have_db="IBM DB2" 8108 have_multirow_insert="yes" 8109 else 8110 as_fn_error $? "IBM DB2 library not found" "$LINENO" 5 8111 fi 8112 fi 8113 8114 8115 MYSQL_CONFIG="no" 8116 8117 8118# Check whether --with-mysql was given. 8119if test "${with_mysql+set}" = set; then : 8120 withval=$with_mysql; 8121 if test "$withval" = "no"; then 8122 want_mysql="no" 8123 elif test "$withval" = "yes"; then 8124 want_mysql="yes" 8125 else 8126 want_mysql="yes" 8127 MYSQL_CONFIG="$withval" 8128 fi 8129 8130else 8131 want_mysql="no" 8132 8133fi 8134 8135 8136 MYSQL_CFLAGS="" 8137 MYSQL_LDFLAGS="" 8138 MYSQL_LIBS="" 8139 MYSQL_VERSION="" 8140 8141 8142 if test "$want_mysql" = "yes"; then 8143 8144 for ac_prog in mysql_config mariadb_config 8145do 8146 # Extract the first word of "$ac_prog", so it can be a program name with args. 8147set dummy $ac_prog; ac_word=$2 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8149$as_echo_n "checking for $ac_word... " >&6; } 8150if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 8151 $as_echo_n "(cached) " >&6 8152else 8153 case $MYSQL_CONFIG in 8154 [\\/]* | ?:[\\/]*) 8155 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 8156 ;; 8157 *) 8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8159for as_dir in $PATH 8160do 8161 IFS=$as_save_IFS 8162 test -z "$as_dir" && as_dir=. 8163 for ac_exec_ext in '' $ac_executable_extensions; do 8164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8165 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8167 break 2 8168 fi 8169done 8170 done 8171IFS=$as_save_IFS 8172 8173 ;; 8174esac 8175fi 8176MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 8177if test -n "$MYSQL_CONFIG"; then 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 8179$as_echo "$MYSQL_CONFIG" >&6; } 8180else 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8182$as_echo "no" >&6; } 8183fi 8184 8185 8186 test -n "$MYSQL_CONFIG" && break 8187done 8188 8189 8190 if test -x "$MYSQL_CONFIG"; then 8191 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" 8192 _full_libmysql_libs="`$MYSQL_CONFIG --libs`" 8193 8194 _save_mysql_ldflags="${LDFLAGS}" 8195 _save_mysql_cflags="${CFLAGS}" 8196 LDFLAGS="${LDFLAGS} ${_full_libmysql_libs}" 8197 CFLAGS="${CFLAGS} ${MYSQL_CFLAGS}" 8198 8199 for i in $_full_libmysql_libs; do 8200 case $i in 8201 -lmysqlclient|-lperconaserverclient|-lmariadbclient|-lmariadb) 8202 8203 _lib_name="`echo "$i" | cut -b3-`" 8204 as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name''_main" | $as_tr_sh` 8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name" >&5 8206$as_echo_n "checking for main in -l$_lib_name... " >&6; } 8207if eval \${$as_ac_Lib+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 ac_check_lib_save_LIBS=$LIBS 8211LIBS="-l$_lib_name $LIBS" 8212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8213/* end confdefs.h. */ 8214 8215 8216int 8217main () 8218{ 8219return main (); 8220 ; 8221 return 0; 8222} 8223_ACEOF 8224if ac_fn_c_try_link "$LINENO"; then : 8225 eval "$as_ac_Lib=yes" 8226else 8227 eval "$as_ac_Lib=no" 8228fi 8229rm -f core conftest.err conftest.$ac_objext \ 8230 conftest$ac_exeext conftest.$ac_ext 8231LIBS=$ac_check_lib_save_LIBS 8232fi 8233eval ac_res=\$$as_ac_Lib 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8235$as_echo "$ac_res" >&6; } 8236if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8237 8238 MYSQL_LIBS="-l${_lib_name} ${MYSQL_LIBS}" 8239 8240else 8241 8242 as_fn_error $? "Not found $_lib_name library" "$LINENO" 5 8243 8244fi 8245 8246 ;; 8247 -L*) 8248 8249 MYSQL_LDFLAGS="${MYSQL_LDFLAGS} $i" 8250 ;; 8251 -l*) 8252 8253 _lib_name="`echo "$i" | cut -b3-`" 8254 as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name''_main" | $as_tr_sh` 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name" >&5 8256$as_echo_n "checking for main in -l$_lib_name... " >&6; } 8257if eval \${$as_ac_Lib+:} false; then : 8258 $as_echo_n "(cached) " >&6 8259else 8260 ac_check_lib_save_LIBS=$LIBS 8261LIBS="-l$_lib_name $LIBS" 8262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8263/* end confdefs.h. */ 8264 8265 8266int 8267main () 8268{ 8269return main (); 8270 ; 8271 return 0; 8272} 8273_ACEOF 8274if ac_fn_c_try_link "$LINENO"; then : 8275 eval "$as_ac_Lib=yes" 8276else 8277 eval "$as_ac_Lib=no" 8278fi 8279rm -f core conftest.err conftest.$ac_objext \ 8280 conftest$ac_exeext conftest.$ac_ext 8281LIBS=$ac_check_lib_save_LIBS 8282fi 8283eval ac_res=\$$as_ac_Lib 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8285$as_echo "$ac_res" >&6; } 8286if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8287 8288 MYSQL_LIBS="${MYSQL_LIBS} ${i}" 8289 8290else 8291 8292 as_fn_error $? "Not found $i library" "$LINENO" 5 8293 8294fi 8295 8296 ;; 8297 esac 8298 done 8299 8300 LDFLAGS="${_save_mysql_ldflags}" 8301 CFLAGS="${_save_mysql_cflags}" 8302 unset _save_mysql_ldflags 8303 unset _save_mysql_cflags 8304 8305 MYSQL_VERSION=`$MYSQL_CONFIG --version` 8306 8307 8308$as_echo "#define HAVE_MYSQL 1" >>confdefs.h 8309 8310 8311 found_mysql="yes" 8312 else 8313 found_mysql="no" 8314 fi 8315 fi 8316 8317 8318 mysql_version_req= 8319 8320 if test "$found_mysql" = "yes" -a -n "$mysql_version_req"; then 8321 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MySQL version is >= $mysql_version_req" >&5 8323$as_echo_n "checking if MySQL version is >= $mysql_version_req... " >&6; } 8324 8325 mysql_version_req_major=`expr $mysql_version_req : '\([0-9]*\)'` 8326 mysql_version_req_minor=`expr $mysql_version_req : '[0-9]*\.\([0-9]*\)'` 8327 mysql_version_req_micro=`expr $mysql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 8328 if test "x$mysql_version_req_micro" = "x"; then 8329 mysql_version_req_micro="0" 8330 fi 8331 8332 mysql_version_req_number=`expr $mysql_version_req_major \* 1000000 \ 8333 \+ $mysql_version_req_minor \* 1000 \ 8334 \+ $mysql_version_req_micro` 8335 8336 mysql_version_major=`expr $MYSQL_VERSION : '\([0-9]*\)'` 8337 mysql_version_minor=`expr $MYSQL_VERSION : '[0-9]*\.\([0-9]*\)'` 8338 mysql_version_micro=`expr $MYSQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 8339 if test "x$mysql_version_micro" = "x"; then 8340 mysql_version_micro="0" 8341 fi 8342 8343 mysql_version_number=`expr $mysql_version_major \* 1000000 \ 8344 \+ $mysql_version_minor \* 1000 \ 8345 \+ $mysql_version_micro` 8346 8347 mysql_version_check=`expr $mysql_version_number \>\= $mysql_version_req_number` 8348 if test "$mysql_version_check" = "1"; then 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8350$as_echo "yes" >&6; } 8351 else 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8353$as_echo "no" >&6; } 8354 fi 8355 fi 8356 8357 8358 8359 8360 8361 8362 if test "x$want_mysql" = "xyes"; then 8363 if test "x$have_db" != "xno"; then 8364 as_fn_error $? "You can configure for only one database." "$LINENO" 5 8365 fi 8366 8367 if test "x$found_mysql" = "xyes"; then 8368 have_db="MySQL" 8369 have_multirow_insert="yes" 8370 else 8371 as_fn_error $? "MySQL library not found" "$LINENO" 5 8372 fi 8373 fi 8374 8375 8376 8377# Check whether --with-oracle was given. 8378if test "${with_oracle+set}" = set; then : 8379 withval=$with_oracle; 8380 if test "$withval" = "no"; then 8381 want_oracle_oci="no" 8382 elif test "$withval" = "yes"; then 8383 want_oracle_oci="yes" 8384 oracle_home_dir="$ORACLE_HOME" 8385 elif test -d "$withval"; then 8386 want_oracle_oci="yes" 8387 oracle_home_dir="$withval" 8388 else 8389 want_oracle_oci="yes" 8390 oracle_home_dir="" 8391 fi 8392 8393else 8394 want_oracle_oci="no" 8395 8396fi 8397 8398 8399 8400# Check whether --with-oracle-include was given. 8401if test "${with_oracle_include+set}" = set; then : 8402 withval=$with_oracle_include; 8403 if test "$withval" != "no"; then 8404 want_oracle_oci="yes" 8405 oracle_home_include_dir="$withval" 8406 fi 8407 8408else 8409 oracle_home_include_dir="" 8410 8411fi 8412 8413 8414# Check whether --with-oracle-lib was given. 8415if test "${with_oracle_lib+set}" = set; then : 8416 withval=$with_oracle_lib; 8417 if test "$withval" != "no"; then 8418 want_oracle_oci="yes" 8419 oracle_home_lib_dir="$withval" 8420 fi 8421 8422else 8423 oracle_home_lib_dir="" 8424 8425fi 8426 8427 8428 ORACLE_OCI_CFLAGS="" 8429 ORACLE_OCI_LDFLAGS="" 8430 ORACLE_OCI_LIBS="" 8431 ORACLE_OCI_VERSION="" 8432 8433 want_oracle_but_no_path="no" 8434 8435 if test -n "$oracle_home_dir"; then 8436 8437 if test "$oracle_home_dir" != "no" -a "$oracle_home_dir" != "yes"; then 8438 8439 oracle_include_dir="$oracle_home_dir/rdbms/public" 8440 8441 oracle_include_dir2="$oracle_home_dir/rdbms/demo" 8442 8443 oracle_lib_dir="$oracle_home_dir/lib" 8444 elif test "$oracle_home_dir" = "yes"; then 8445 want_oracle_but_no_path="yes" 8446 fi 8447 8448 elif test -n "$oracle_home_include_dir" -o -n "$oracle_home_lib_dir"; then 8449 8450 if test "$oracle_home_include_dir" != "no" -a "$oracle_home_include_dir" != "yes"; then 8451 oracle_include_dir="$oracle_home_include_dir" 8452 elif test "$oracle_home_include_dir" = "yes"; then 8453 want_oracle_but_no_path="yes" 8454 fi 8455 8456 if test "$oracle_home_lib_dir" != "no" -a "$oracle_home_lib_dir" != "yes"; then 8457 oracle_lib_dir="$oracle_home_lib_dir" 8458 elif test "$oracle_home_lib_dir" = "yes"; then 8459 want_oracle_but_no_path="yes" 8460 fi 8461 fi 8462 8463 if test "$want_oracle_but_no_path" = "yes"; then 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oracle support is requested but no Oracle paths have been provided. \ 8465Please, locate Oracle directories using --with-oracle or \ 8466--with-oracle-include and --with-oracle-lib options." >&5 8467$as_echo "$as_me: WARNING: Oracle support is requested but no Oracle paths have been provided. \ 8468Please, locate Oracle directories using --with-oracle or \ 8469--with-oracle-include and --with-oracle-lib options." >&2;} 8470 fi 8471 8472 if test -n "$oracle_include_dir" -a -n "$oracle_lib_dir"; then 8473 8474 saved_CPPFLAGS="$CPPFLAGS" 8475 CPPFLAGS="$CPPFLAGS -I$oracle_include_dir" 8476 8477 if test -n "$oracle_include_dir2"; then 8478 CPPFLAGS="$CPPFLAGS -I$oracle_include_dir2" 8479 fi 8480 8481 saved_LDFLAGS="$LDFLAGS" 8482 oci_ldflags="-L$oracle_lib_dir" 8483 LDFLAGS="$LDFLAGS $oci_ldflags" 8484 8485 saved_LIBS="$LIBS" 8486 oci_libs="-lclntsh" 8487 LIBS="$LIBS $oci_libs" 8488 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle OCI headers in $oracle_include_dir" >&5 8490$as_echo_n "checking for Oracle OCI headers in $oracle_include_dir... " >&6; } 8491 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494 8495 #include <oci.h> 8496int 8497main () 8498{ 8499 8500#if defined(OCI_MAJOR_VERSION) 8501#if OCI_MAJOR_VERSION == 10 && OCI_MINOR_VERSION == 2 8502// Oracle 10.2 detected 8503#endif 8504#elif defined(OCI_V7_SYNTAX) 8505// OK, older Oracle detected 8506// TODO - mloskot: find better macro to check for older versions; 8507#else 8508# error Oracle oci.h header not found 8509#endif 8510 8511 8512 ; 8513 return 0; 8514} 8515_ACEOF 8516if ac_fn_c_try_compile "$LINENO"; then : 8517 8518 ORACLE_OCI_CFLAGS="-I$oracle_include_dir" 8519 8520 if test -n "$oracle_include_dir2"; then 8521 ORACLE_OCI_CFLAGS="$ORACLE_OCI_CFLAGS -I$oracle_include_dir2" 8522 fi 8523 8524 oci_header_found="yes" 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8526$as_echo "yes" >&6; } 8527 8528else 8529 8530 oci_header_found="no" 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8532$as_echo "not found" >&6; } 8533 8534 8535fi 8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8537 8538 oracle_version_req=10.0 8539 8540 if test "$oci_header_found" = "yes"; then 8541 8542 oracle_version_major=`cat $oracle_include_dir/oci.h \ 8543 | grep '#define.*OCI_MAJOR_VERSION.*' \ 8544 | sed -e 's/#define OCI_MAJOR_VERSION *//' \ 8545 | sed -e 's/ *\/\*.*\*\///'` 8546 8547 oracle_version_minor=`cat $oracle_include_dir/oci.h \ 8548 | grep '#define.*OCI_MINOR_VERSION.*' \ 8549 | sed -e 's/#define OCI_MINOR_VERSION *//' \ 8550 | sed -e 's/ *\/\*.*\*\///'` 8551 8552 oracle_version_number=`expr $oracle_version_major \* 1000000 \ 8553 \+ $oracle_version_minor \* 1000` 8554 8555 8556 if test -n "$oracle_version_req"; then 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Oracle OCI version is >= $oracle_version_req" >&5 8558$as_echo_n "checking if Oracle OCI version is >= $oracle_version_req... " >&6; } 8559 8560 if test -n "$oracle_version_major" -a -n $"oracle_version_minor"; then 8561 8562 ORACLE_OCI_VERSION="$oracle_version_major.$oracle_version_minor" 8563 8564 oracle_version_req_major=`expr $oracle_version_req : '\([0-9]*\)'` 8565 oracle_version_req_minor=`expr $oracle_version_req : '[0-9]*\.\([0-9]*\)'` 8566 8567 oracle_version_req_number=`expr $oracle_version_req_major \* 1000000 \ 8568 \+ $oracle_version_req_minor \* 1000` 8569 8570 oracle_version_check=`expr $oracle_version_number \>\= $oracle_version_req_number` 8571 if test "$oracle_version_check" = "1"; then 8572 8573 oracle_version_checked="yes" 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8575$as_echo "yes" >&6; } 8576 8577 else 8578 oracle_version_checked="no" 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8580$as_echo "no" >&6; } 8581 as_fn_error $? "Oracle $ORACLE_OCI_VERSION found, but required version is $oracle_version_req" "$LINENO" 5 8582 fi 8583 else 8584 ORACLE_OCI_VERSION="UNKNOWN" 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8586$as_echo "no" >&6; } 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oracle version unknown, probably OCI older than 10.2 is available" >&5 8588$as_echo "$as_me: WARNING: Oracle version unknown, probably OCI older than 10.2 is available" >&2;} 8589 fi 8590 fi 8591 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle OCI version >= 10.x to use -lnnz1x flag" >&5 8593$as_echo_n "checking for Oracle OCI version >= 10.x to use -lnnz1x flag... " >&6; } 8594 oracle_nnz1x_flag=`expr $oracle_version_number / 1000000` 8595 if test "$oracle_nnz1x_flag" -ge 10; then 8596 oci_libs="$oci_libs -lnnz$oracle_nnz1x_flag" 8597 LIBS="$LIBS -lnnz$oracle_nnz1x_flag" 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lnnz$oracle_nnz1x_flag" >&5 8599$as_echo "-lnnz$oracle_nnz1x_flag" >&6; } 8600 else 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8602$as_echo "no" >&6; } 8603 fi 8604 fi 8605 8606 if test "$oci_header_found" = "yes"; then 8607 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle OCI libraries in $oracle_lib_dir" >&5 8609$as_echo_n "checking for Oracle OCI libraries in $oracle_lib_dir... " >&6; } 8610 8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8612/* end confdefs.h. */ 8613 8614 #include <oci.h> 8615int 8616main () 8617{ 8618 8619OCIEnv* envh = 0; 8620OCIEnvCreate(&envh, OCI_DEFAULT, 0, 0, 0, 0, 0, 0); 8621if (envh) OCIHandleFree(envh, OCI_HTYPE_ENV); 8622 8623 8624 ; 8625 return 0; 8626} 8627_ACEOF 8628if ac_fn_c_try_link "$LINENO"; then : 8629 8630 ORACLE_OCI_LDFLAGS="$oci_ldflags" 8631 ORACLE_OCI_LIBS="$oci_libs" 8632 oci_lib_found="yes" 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8634$as_echo "yes" >&6; } 8635 8636else 8637 8638 oci_lib_found="no" 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8640$as_echo "not found" >&6; } 8641 8642 8643fi 8644rm -f core conftest.err conftest.$ac_objext \ 8645 conftest$ac_exeext conftest.$ac_ext 8646 fi 8647 8648 CPPFLAGS="$saved_CPPFLAGS" 8649 LDFLAGS="$saved_LDFLAGS" 8650 LIBS="$saved_LIBS" 8651 fi 8652 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle support" >&5 8654$as_echo_n "checking for Oracle support... " >&6; } 8655 8656 if test "$oci_header_found" = "yes" -a "$oci_lib_found" = "yes"; then 8657 8658 8659 8660 8661 8662 8663 HAVE_ORACLE_OCI="yes" 8664 else 8665 HAVE_ORACLE_OCI="no" 8666 fi 8667 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ORACLE_OCI" >&5 8669$as_echo "$HAVE_ORACLE_OCI" >&6; } 8670 8671 if test "x$want_oracle_oci" = "xyes"; then 8672 if test "x$have_db" != "xno"; then 8673 as_fn_error $? "You can configure for only one database." "$LINENO" 5 8674 fi 8675 8676 if test "x$HAVE_ORACLE_OCI" = "xyes"; then 8677 have_db="Oracle" 8678 8679 ORACLE_CPPFLAGS="$ORACLE_OCI_CFLAGS" 8680 ORACLE_LDFLAGS="$ORACLE_OCI_LDFLAGS" 8681 ORACLE_LIBS="$ORACLE_OCI_LIBS" 8682 8683 8684$as_echo "#define HAVE_ORACLE 1" >>confdefs.h 8685 8686 else 8687 as_fn_error $? "Oracle OCI library not found" "$LINENO" 5 8688 fi 8689 fi 8690 8691 8692 PG_CONFIG="no" 8693 8694 8695# Check whether --with-postgresql was given. 8696if test "${with_postgresql+set}" = set; then : 8697 withval=$with_postgresql; 8698 if test "x$withval" = "xno"; then 8699 want_postgresql="no" 8700 elif test "x$withval" = "xyes"; then 8701 want_postgresql="yes" 8702 else 8703 want_postgresql="yes" 8704 PG_CONFIG="$withval" 8705 fi 8706 8707else 8708 want_postgresql="no" 8709 8710fi 8711 8712 8713 POSTGRESQL_CFLAGS="" 8714 POSTGRESQL_LDFLAGS="" 8715 POSTGRESQL_LIBS="" 8716 POSTGRESQL_VERSION="" 8717 8718 8719 if test "x$want_postgresql" = "xyes"; then 8720 # Extract the first word of "pg_config", so it can be a program name with args. 8721set dummy pg_config; ac_word=$2 8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8723$as_echo_n "checking for $ac_word... " >&6; } 8724if ${ac_cv_path_PG_CONFIG+:} false; then : 8725 $as_echo_n "(cached) " >&6 8726else 8727 case $PG_CONFIG in 8728 [\\/]* | ?:[\\/]*) 8729 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 8730 ;; 8731 *) 8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8733for as_dir in $PATH 8734do 8735 IFS=$as_save_IFS 8736 test -z "$as_dir" && as_dir=. 8737 for ac_exec_ext in '' $ac_executable_extensions; do 8738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8739 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8741 break 2 8742 fi 8743done 8744 done 8745IFS=$as_save_IFS 8746 8747 ;; 8748esac 8749fi 8750PG_CONFIG=$ac_cv_path_PG_CONFIG 8751if test -n "$PG_CONFIG"; then 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 8753$as_echo "$PG_CONFIG" >&6; } 8754else 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8756$as_echo "no" >&6; } 8757fi 8758 8759 8760 8761 if test -x "$PG_CONFIG"; then 8762 POSTGRESQL_CFLAGS="`$PG_CONFIG --includedir`" 8763 if test -n "$POSTGRESQL_CFLAGS"; then 8764 POSTGRESQL_CFLAGS="-I$POSTGRESQL_CFLAGS"; 8765 fi 8766 POSTGRESQL_LDFLAGS="`$PG_CONFIG --libdir`" 8767 if test -n "$POSTGRESQL_LDFLAGS"; then 8768 POSTGRESQL_LDFLAGS="-L$POSTGRESQL_LDFLAGS"; 8769 fi 8770 POSTGRESQL_LIBS="-lpq" 8771 8772 _save_postgresql_cflags="${CFLAGS}" 8773 _save_postgresql_ldflags="${LDFLAGS}" 8774 _save_postgresql_libs="${LIBS}" 8775 CFLAGS="${CFLAGS} ${POSTGRESQL_CFLAGS}" 8776 LDFLAGS="${LDFLAGS} ${POSTGRESQL_LDFLAGS}" 8777 LIBS="${LIBS} ${POSTGRESQL_LIBS}" 8778 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries" >&5 8780$as_echo_n "checking for PostgreSQL libraries... " >&6; } 8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8782/* end confdefs.h. */ 8783 8784#include <libpq-fe.h> 8785 8786int 8787main () 8788{ 8789 8790PGconn *conn; 8791conn = PQsetdbLogin(NULL, NULL, NULL, NULL, NULL, NULL, NULL); 8792 8793 ; 8794 return 0; 8795} 8796_ACEOF 8797if ac_fn_c_try_link "$LINENO"; then : 8798 8799$as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h 8800 8801 found_postgresql="yes" 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8803$as_echo "yes" >&6; } 8804else 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8806$as_echo "no" >&6; } 8807fi 8808rm -f core conftest.err conftest.$ac_objext \ 8809 conftest$ac_exeext conftest.$ac_ext 8810 8811 CFLAGS="${_save_postgresql_cflags}" 8812 LDFLAGS="${_save_postgresql_ldflags}" 8813 LIBS="${_save_postgresql_libs}" 8814 unset _save_postgresql_cflags 8815 unset _save_postgresql_ldflags 8816 unset _save_postgresql_libs 8817 8818 if test "x$found_postgresql" = "xyes"; then 8819 POSTGRESQL_VERSION=`$PG_CONFIG --version | cut -d' ' -f2` 8820 fi 8821 fi 8822 fi 8823 8824 8825 postgresql_version_req="8.1" 8826 8827 if test "x$found_postgresql" = "xyes" -a -n "$postgresql_version_req"; then 8828 8829 postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([0-9]*\)'` 8830 postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[0-9]*\.\([0-9]*\)'` 8831 postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 8832 if test "x$postgresql_version_minor" = "x"; then 8833 postgresql_version_minor="0" 8834 fi 8835 if test "x$postgresql_version_micro" = "x"; then 8836 postgresql_version_micro="0" 8837 fi 8838 8839 postgresql_version_number=`expr $postgresql_version_major \* 1000000 \ 8840 \+ $postgresql_version_minor \* 1000 \ 8841 \+ $postgresql_version_micro` 8842 8843 if test -n "$postgresql_version_req"; then 8844 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PostgreSQL version is >= $postgresql_version_req" >&5 8846$as_echo_n "checking if PostgreSQL version is >= $postgresql_version_req... " >&6; } 8847 8848 postgresql_version_req_major=`expr $postgresql_version_req : '\([0-9]*\)'` 8849 postgresql_version_req_minor=`expr $postgresql_version_req : '[0-9]*\.\([0-9]*\)'` 8850 postgresql_version_req_micro=`expr $postgresql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 8851 if test "x$postgresql_version_req_micro" = "x"; then 8852 postgresql_version_req_micro="0" 8853 fi 8854 8855 postgresql_version_req_number=`expr $postgresql_version_req_major \* 1000000 \ 8856 \+ $postgresql_version_req_minor \* 1000 \ 8857 \+ $postgresql_version_req_micro` 8858 8859 postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number` 8860 if test "$postgresql_version_check" = "1"; then 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8862$as_echo "yes" >&6; } 8863 else 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8865$as_echo "no" >&6; } 8866 fi 8867 8868 fi 8869 8870 fi 8871 8872 8873 8874 8875 8876 8877 if test "x$want_postgresql" = "xyes"; then 8878 if test "x$have_db" != "xno"; then 8879 as_fn_error $? "You can configure for only one database." "$LINENO" 5 8880 fi 8881 8882 if test "x$found_postgresql" = "xyes"; then 8883 if test "$postgresql_version_check" != "1"; then 8884 as_fn_error $? "PostgreSQL version mismatch" "$LINENO" 5 8885 fi 8886 8887 have_db="PostgreSQL" 8888 8889 if test "$postgresql_version_number" -ge 8002000; then 8890 have_multirow_insert="yes" 8891 fi 8892 8893 else 8894 as_fn_error $? "PostgreSQL library not found" "$LINENO" 5 8895 fi 8896 fi 8897 8898 8899 8900# Check whether --with-sqlite3 was given. 8901if test "${with_sqlite3+set}" = set; then : 8902 withval=$with_sqlite3; 8903 if test "$withval" = "no"; then 8904 want_sqlite3="no" 8905 elif test "$withval" = "yes"; then 8906 want_sqlite3="yes" 8907 ac_sqlite3_path="" 8908 else 8909 want_sqlite3="yes" 8910 ac_sqlite3_path="$withval" 8911 fi 8912 8913else 8914 want_sqlite3="no" 8915 8916fi 8917 8918 8919 SQLITE3_CFLAGS="" 8920 SQLITE3_LDFLAGS="" 8921 SQLITE3_LIBS="" 8922 SQLITE3_VERSION="" 8923 8924 if test "x$want_sqlite3" = "xyes"; then 8925 8926 ac_sqlite3_header="sqlite3.h" 8927 8928 sqlite3_version_req=3.0.0 8929 sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'` 8930 sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'` 8931 sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'` 8932 sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 8933 if test "x$sqlite3_version_req_micro" = "x" ; then 8934 sqlite3_version_req_micro="0" 8935 fi 8936 8937 sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \ 8938 \+ $sqlite3_version_req_minor \* 1000 \ 8939 \+ $sqlite3_version_req_micro` 8940 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5 8942$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; } 8943 8944 if test "$ac_sqlite3_path" != ""; then 8945 ac_sqlite3_cppflags="-I$ac_sqlite3_path/include" 8946 ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib" 8947 else 8948 for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do 8949 if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \ 8950 && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then 8951 ac_sqlite3_path=$ac_sqlite3_path_tmp 8952 ac_sqlite3_cppflags="-I$ac_sqlite3_path/include" 8953 ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib" 8954 break; 8955 fi 8956 done 8957 fi 8958 8959 saved_CPPFLAGS="$CPPFLAGS" 8960 CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags" 8961 8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8963/* end confdefs.h. */ 8964 8965 #include <sqlite3.h> 8966int 8967main () 8968{ 8969 8970#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number) 8971// Everything is okay 8972#else 8973# error SQLite version is too old 8974#endif 8975 8976 8977 ; 8978 return 0; 8979} 8980 8981_ACEOF 8982if ac_fn_c_try_compile "$LINENO"; then : 8983 8984 found_sqlite3="yes" 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8986$as_echo "yes" >&6; } 8987 8988else 8989 8990 found_sqlite3="no" 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8992$as_echo "no" >&6; } 8993 8994 8995fi 8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8997 8998 CPPFLAGS="$saved_CPPFLAGS" 8999 9000 if test "$found_sqlite3" = "yes"; then 9001 9002 SQLITE3_CPPFLAGS="$ac_sqlite3_cppflags" 9003 SQLITE3_LDFLAGS="$ac_sqlite3_ldflags" 9004 SQLITE3_LIBS="-lsqlite3" 9005 9006 ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header" 9007 9008 if test "x$ac_sqlite3_header_path" != "x"; then 9009 ac_sqlite3_version=`cat $ac_sqlite3_header_path \ 9010 | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \ 9011 | sed -e 's/"//'` 9012 if test $ac_sqlite3_version != ""; then 9013 SQLITE3_VERSION=$ac_sqlite3_version 9014 else 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5 9016$as_echo "$as_me: WARNING: Can not find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;} 9017 fi 9018 fi 9019 9020 9021 9022 9023 9024 9025$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h 9026 9027 fi 9028 fi 9029 9030 if test "x$want_sqlite3" = "xyes"; then 9031 if test "x$have_db" != "xno"; then 9032 as_fn_error $? "You can configure for only one database." "$LINENO" 5 9033 fi 9034 9035 if test "x$found_sqlite3" = "xyes"; then 9036 have_db="SQLite v3.x" 9037 9038 saved_CPPFLAGS="$CPPFLAGS" 9039 saved_LDFLAGS="$LDFLAGS" 9040 9041 CPPFLAGS="$CPPFLAGS $SQLITE3_CPPFLAGS" 9042 LDFLAGS="$LDFLAGS $SQLITE3_LDFLAGS $SQLITE3_LIBS" 9043 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sqlite3_open_v2() in sqlite3.h" >&5 9045$as_echo_n "checking for function sqlite3_open_v2() in sqlite3.h... " >&6; } 9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047/* end confdefs.h. */ 9048#include <sqlite3.h> 9049int 9050main () 9051{ 9052sqlite3 *conn = 0; 9053 sqlite3_open_v2("dbname", &conn, SQLITE_OPEN_READWRITE, 0); 9054 9055 ; 9056 return 0; 9057} 9058_ACEOF 9059if ac_fn_c_try_link "$LINENO"; then : 9060 9061$as_echo "#define HAVE_FUNCTION_SQLITE3_OPEN_V2 1" >>confdefs.h 9062 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9064$as_echo "yes" >&6; } 9065else 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9067$as_echo "no" >&6; } 9068fi 9069rm -f core conftest.err conftest.$ac_objext \ 9070 conftest$ac_exeext conftest.$ac_ext 9071 9072 CPPFLAGS="$saved_CPPFLAGS" 9073 LDFLAGS="$saved_LDFLAGS" 9074 else 9075 as_fn_error $? "SQLite3 library not found" "$LINENO" 5 9076 fi 9077 fi 9078 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zabbix server/proxy database selection" >&5 9080$as_echo_n "checking for Zabbix server/proxy database selection... " >&6; } 9081 if test "x$have_db" = "xno"; then 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 9083$as_echo "error" >&6; } 9084 as_fn_error $? "No database selected for Zabbix server/proxy. Use --with-ibm-db2 or --with-mysql or --with-oracle or --with-postgresql or --with-sqlite3." "$LINENO" 5 9085 else 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9087$as_echo "ok" >&6; } 9088 fi 9089 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multirow insert statements" >&5 9091$as_echo_n "checking for multirow insert statements... " >&6; } 9092 if test "x$have_multirow_insert" = "xyes"; then 9093 9094$as_echo "#define HAVE_MULTIROW_INSERT 1" >>confdefs.h 9095 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9097$as_echo "yes" >&6; } 9098 else 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9100$as_echo "no" >&6; } 9101 fi 9102 9103 DB_CFLAGS="$IBM_DB2_CPPFLAGS $MYSQL_CFLAGS $ORACLE_CPPFLAGS $POSTGRESQL_CFLAGS $SQLITE3_CPPFLAGS" 9104 DB_LDFLAGS="$IBM_DB2_LDFLAGS $MYSQL_LDFLAGS $ORACLE_LDFLAGS $POSTGRESQL_LDFLAGS $SQLITE3_LDFLAGS" 9105 DB_LIBS="$IBM_DB2_LIBS $MYSQL_LIBS $ORACLE_LIBS $POSTGRESQL_LIBS $SQLITE3_LIBS" 9106 9107 9108 9109 9110 9111 SERVER_LDFLAGS="${SERVER_LDFLAGS} ${DB_LDFLAGS}" 9112 SERVER_LIBS="${SERVER_LIBS} ${DB_LIBS}" 9113 9114 PROXY_LDFLAGS="${PROXY_LDFLAGS} ${DB_LDFLAGS}" 9115 PROXY_LIBS="${PROXY_LIBS} ${DB_LIBS}" 9116 9117 9118 9119 9120 9121 9122 9123 9124if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9125 if test -n "$ac_tool_prefix"; then 9126 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9127set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9129$as_echo_n "checking for $ac_word... " >&6; } 9130if ${ac_cv_path_PKG_CONFIG+:} false; then : 9131 $as_echo_n "(cached) " >&6 9132else 9133 case $PKG_CONFIG in 9134 [\\/]* | ?:[\\/]*) 9135 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9136 ;; 9137 *) 9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9139for as_dir in $PATH 9140do 9141 IFS=$as_save_IFS 9142 test -z "$as_dir" && as_dir=. 9143 for ac_exec_ext in '' $ac_executable_extensions; do 9144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9145 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9147 break 2 9148 fi 9149done 9150 done 9151IFS=$as_save_IFS 9152 9153 ;; 9154esac 9155fi 9156PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9157if test -n "$PKG_CONFIG"; then 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9159$as_echo "$PKG_CONFIG" >&6; } 9160else 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9162$as_echo "no" >&6; } 9163fi 9164 9165 9166fi 9167if test -z "$ac_cv_path_PKG_CONFIG"; then 9168 ac_pt_PKG_CONFIG=$PKG_CONFIG 9169 # Extract the first word of "pkg-config", so it can be a program name with args. 9170set dummy pkg-config; ac_word=$2 9171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9172$as_echo_n "checking for $ac_word... " >&6; } 9173if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9174 $as_echo_n "(cached) " >&6 9175else 9176 case $ac_pt_PKG_CONFIG in 9177 [\\/]* | ?:[\\/]*) 9178 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9179 ;; 9180 *) 9181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9182for as_dir in $PATH 9183do 9184 IFS=$as_save_IFS 9185 test -z "$as_dir" && as_dir=. 9186 for ac_exec_ext in '' $ac_executable_extensions; do 9187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9188 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9190 break 2 9191 fi 9192done 9193 done 9194IFS=$as_save_IFS 9195 9196 ;; 9197esac 9198fi 9199ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9200if test -n "$ac_pt_PKG_CONFIG"; then 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9202$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9203else 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9205$as_echo "no" >&6; } 9206fi 9207 9208 if test "x$ac_pt_PKG_CONFIG" = x; then 9209 PKG_CONFIG="" 9210 else 9211 case $cross_compiling:$ac_tool_warned in 9212yes:) 9213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9215ac_tool_warned=yes ;; 9216esac 9217 PKG_CONFIG=$ac_pt_PKG_CONFIG 9218 fi 9219else 9220 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9221fi 9222 9223fi 9224if test -n "$PKG_CONFIG"; then 9225 _pkg_min_version=0.9.0 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 9227$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 9228 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9230$as_echo "yes" >&6; } 9231 else 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9233$as_echo "no" >&6; } 9234 PKG_CONFIG="" 9235 fi 9236fi 9237 9238 9239# Check whether --with-jabber was given. 9240if test "${with_jabber+set}" = set; then : 9241 withval=$with_jabber; 9242 if test "$withval" = "no"; then 9243 want_jabber="no" 9244 _libiksemel_with="no" 9245 elif test "$withval" = "yes"; then 9246 want_jabber="yes" 9247 _libiksemel_with="yes" 9248 else 9249 want_jabber="yes" 9250 _libiksemel_with=$withval 9251 fi 9252 9253else 9254 _libiksemel_with=no 9255fi 9256 9257 9258 if test "x$_libiksemel_with" != x"no"; then 9259 if test "$_libiksemel_with" = "yes"; then 9260 9261pkg_failed=no 9262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IKSEMEL" >&5 9263$as_echo_n "checking for IKSEMEL... " >&6; } 9264 9265if test -n "$IKSEMEL_CFLAGS"; then 9266 pkg_cv_IKSEMEL_CFLAGS="$IKSEMEL_CFLAGS" 9267 elif test -n "$PKG_CONFIG"; then 9268 if test -n "$PKG_CONFIG" && \ 9269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iksemel\""; } >&5 9270 ($PKG_CONFIG --exists --print-errors "iksemel") 2>&5 9271 ac_status=$? 9272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9273 test $ac_status = 0; }; then 9274 pkg_cv_IKSEMEL_CFLAGS=`$PKG_CONFIG --cflags "iksemel" 2>/dev/null` 9275 test "x$?" != "x0" && pkg_failed=yes 9276else 9277 pkg_failed=yes 9278fi 9279 else 9280 pkg_failed=untried 9281fi 9282if test -n "$IKSEMEL_LIBS"; then 9283 pkg_cv_IKSEMEL_LIBS="$IKSEMEL_LIBS" 9284 elif test -n "$PKG_CONFIG"; then 9285 if test -n "$PKG_CONFIG" && \ 9286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iksemel\""; } >&5 9287 ($PKG_CONFIG --exists --print-errors "iksemel") 2>&5 9288 ac_status=$? 9289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9290 test $ac_status = 0; }; then 9291 pkg_cv_IKSEMEL_LIBS=`$PKG_CONFIG --libs "iksemel" 2>/dev/null` 9292 test "x$?" != "x0" && pkg_failed=yes 9293else 9294 pkg_failed=yes 9295fi 9296 else 9297 pkg_failed=untried 9298fi 9299 9300 9301 9302if test $pkg_failed = yes; then 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9304$as_echo "no" >&6; } 9305 9306if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9307 _pkg_short_errors_supported=yes 9308else 9309 _pkg_short_errors_supported=no 9310fi 9311 if test $_pkg_short_errors_supported = yes; then 9312 IKSEMEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "iksemel" 2>&1` 9313 else 9314 IKSEMEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "iksemel" 2>&1` 9315 fi 9316 # Put the nasty error message in config.log where it belongs 9317 echo "$IKSEMEL_PKG_ERRORS" >&5 9318 9319 9320 found_iksemel="no" 9321 found_jabber="no" 9322 9323elif test $pkg_failed = untried; then 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9325$as_echo "no" >&6; } 9326 9327 found_iksemel="no" 9328 found_jabber="no" 9329 9330else 9331 IKSEMEL_CFLAGS=$pkg_cv_IKSEMEL_CFLAGS 9332 IKSEMEL_LIBS=$pkg_cv_IKSEMEL_LIBS 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9334$as_echo "yes" >&6; } 9335 9336 JABBER_INCDIR="$IKSEMEL_CPPFLAGS" 9337 JABBER_LIBDIR="$IKSEMEL_LDFLAGS" 9338 JABBER_LIBS="-liksemel" 9339 9340fi 9341 else 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iksemel support" >&5 9343$as_echo_n "checking for iksemel support... " >&6; } 9344 9345 if test -f $_libiksemel_with/include/iksemel.h; then 9346 JABBER_INCDIR="-I$_libiksemel_with/include" 9347 JABBER_LIBDIR="-L$_libiksemel_with/lib" 9348 JABBER_LIBS="-liksemel" 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9350$as_echo "yes" >&6; } 9351 else 9352 found_iksemel="no" 9353 found_jabber="no" 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9355$as_echo "no" >&6; } 9356 fi 9357 fi 9358 9359 if test "x$found_iksemel" != "xno" ; then 9360 9361 for ac_func in getaddrinfo 9362do : 9363 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 9364if test "x$ac_cv_func_getaddrinfo" = xyes; then : 9365 cat >>confdefs.h <<_ACEOF 9366#define HAVE_GETADDRINFO 1 9367_ACEOF 9368 9369fi 9370done 9371 9372 9373 JABBER_CPPFLAGS=$JABBER_INCDIR 9374 JABBER_LDFLAGS="$JABBER_LIBDIR" 9375 9376 if test "x$enable_static" = "xyes"; then 9377 for i in -liksemel -lgnutls -ltasn1 -lgcrypt -lgpg-error; do 9378 case $i in 9379 -liksemel) 9380 ;; 9381 -l*) 9382 _lib_name=`echo "$i" | cut -b3-` 9383 as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name ''_main" | $as_tr_sh` 9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name " >&5 9385$as_echo_n "checking for main in -l$_lib_name ... " >&6; } 9386if eval \${$as_ac_Lib+:} false; then : 9387 $as_echo_n "(cached) " >&6 9388else 9389 ac_check_lib_save_LIBS=$LIBS 9390LIBS="-l$_lib_name $LIBS" 9391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9392/* end confdefs.h. */ 9393 9394 9395int 9396main () 9397{ 9398return main (); 9399 ; 9400 return 0; 9401} 9402_ACEOF 9403if ac_fn_c_try_link "$LINENO"; then : 9404 eval "$as_ac_Lib=yes" 9405else 9406 eval "$as_ac_Lib=no" 9407fi 9408rm -f core conftest.err conftest.$ac_objext \ 9409 conftest$ac_exeext conftest.$ac_ext 9410LIBS=$ac_check_lib_save_LIBS 9411fi 9412eval ac_res=\$$as_ac_Lib 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9414$as_echo "$ac_res" >&6; } 9415if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9416 9417 JABBER_LIBS="$JABBER_LIBS $i" 9418 9419else 9420 9421 as_fn_error $? "Not found $_lib_name library" "$LINENO" 5 9422 9423fi 9424 9425 ;; 9426 esac 9427 done 9428 fi 9429 9430 found_iksemel="yes" 9431 found_jabber="yes" 9432 9433$as_echo "#define HAVE_IKSEMEL 1" >>confdefs.h 9434 9435 9436$as_echo "#define HAVE_JABBER 1" >>confdefs.h 9437 9438 fi 9439 fi 9440 9441 9442 9443 9444 9445 unset _libiksemel_with 9446 9447 if test "x$want_jabber" = "xyes"; then 9448 if test "x$found_jabber" != "xyes"; then 9449 as_fn_error $? "Jabber library not found" "$LINENO" 5 9450 else 9451 have_jabber="yes" 9452 fi 9453 fi 9454 SERVER_LDFLAGS="$SERVER_LDFLAGS $JABBER_LDFLAGS" 9455 SERVER_LIBS="$SERVER_LIBS $JABBER_LIBS" 9456 9457 9458 9459 9460 LIBXML2_CONFIG="no" 9461 9462 9463# Check whether --with-libxml2 was given. 9464if test "${with_libxml2+set}" = set; then : 9465 withval=$with_libxml2; 9466 if test "$withval" = "no"; then 9467 want_libxml2="no" 9468 elif test "$withval" = "yes"; then 9469 want_libxml2="yes" 9470 else 9471 want_libxml2="yes" 9472 fi 9473 9474else 9475 want_libxml2="no" 9476 9477fi 9478 9479 9480 LIBXML2_CFLAGS="" 9481 LIBXML2_LDFLAGS="" 9482 LIBXML2_LIBS="" 9483 LIBXML2_VERSION="" 9484 9485 9486 if test "$want_libxml2" = "yes"; then 9487 9488 9489 9490 9491 9492 9493 9494 9495if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9496 if test -n "$ac_tool_prefix"; then 9497 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9498set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9500$as_echo_n "checking for $ac_word... " >&6; } 9501if ${ac_cv_path_PKG_CONFIG+:} false; then : 9502 $as_echo_n "(cached) " >&6 9503else 9504 case $PKG_CONFIG in 9505 [\\/]* | ?:[\\/]*) 9506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9507 ;; 9508 *) 9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9510for as_dir in $PATH 9511do 9512 IFS=$as_save_IFS 9513 test -z "$as_dir" && as_dir=. 9514 for ac_exec_ext in '' $ac_executable_extensions; do 9515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9518 break 2 9519 fi 9520done 9521 done 9522IFS=$as_save_IFS 9523 9524 ;; 9525esac 9526fi 9527PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9528if test -n "$PKG_CONFIG"; then 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9530$as_echo "$PKG_CONFIG" >&6; } 9531else 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9533$as_echo "no" >&6; } 9534fi 9535 9536 9537fi 9538if test -z "$ac_cv_path_PKG_CONFIG"; then 9539 ac_pt_PKG_CONFIG=$PKG_CONFIG 9540 # Extract the first word of "pkg-config", so it can be a program name with args. 9541set dummy pkg-config; ac_word=$2 9542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9543$as_echo_n "checking for $ac_word... " >&6; } 9544if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546else 9547 case $ac_pt_PKG_CONFIG in 9548 [\\/]* | ?:[\\/]*) 9549 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9550 ;; 9551 *) 9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9553for as_dir in $PATH 9554do 9555 IFS=$as_save_IFS 9556 test -z "$as_dir" && as_dir=. 9557 for ac_exec_ext in '' $ac_executable_extensions; do 9558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9559 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9561 break 2 9562 fi 9563done 9564 done 9565IFS=$as_save_IFS 9566 9567 ;; 9568esac 9569fi 9570ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9571if test -n "$ac_pt_PKG_CONFIG"; then 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9573$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9574else 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9576$as_echo "no" >&6; } 9577fi 9578 9579 if test "x$ac_pt_PKG_CONFIG" = x; then 9580 PKG_CONFIG="" 9581 else 9582 case $cross_compiling:$ac_tool_warned in 9583yes:) 9584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9586ac_tool_warned=yes ;; 9587esac 9588 PKG_CONFIG=$ac_pt_PKG_CONFIG 9589 fi 9590else 9591 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9592fi 9593 9594fi 9595if test -n "$PKG_CONFIG"; then 9596 _pkg_min_version=0.9.0 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 9598$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 9599 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9601$as_echo "yes" >&6; } 9602 else 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9604$as_echo "no" >&6; } 9605 PKG_CONFIG="" 9606 fi 9607fi 9608 9609 if test -x "$PKG_CONFIG"; then 9610 9611 LIBXML2_CFLAGS="`$PKG_CONFIG --cflags libxml-2.0`" 9612 9613 _full_libxml2_libs="`$PKG_CONFIG --libs libxml-2.0`" 9614 9615 for i in $_full_libxml2_libs; do 9616 case $i in 9617 -lxml2) 9618 ;; 9619 -L*) 9620 LIBXML2_LDFLAGS="${LIBXML2_LDFLAGS} $i" 9621 ;; 9622 esac 9623 done 9624 9625 if test "x$enable_static" = "xyes"; then 9626 for i in $_full_libxml2_libs; do 9627 case $i in 9628 -lxml2) 9629 ;; 9630 -l*) 9631 _lib_name="`echo "$i" | cut -b3-`" 9632 as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name''_main" | $as_tr_sh` 9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name" >&5 9634$as_echo_n "checking for main in -l$_lib_name... " >&6; } 9635if eval \${$as_ac_Lib+:} false; then : 9636 $as_echo_n "(cached) " >&6 9637else 9638 ac_check_lib_save_LIBS=$LIBS 9639LIBS="-l$_lib_name $LIBS" 9640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9641/* end confdefs.h. */ 9642 9643 9644int 9645main () 9646{ 9647return main (); 9648 ; 9649 return 0; 9650} 9651_ACEOF 9652if ac_fn_c_try_link "$LINENO"; then : 9653 eval "$as_ac_Lib=yes" 9654else 9655 eval "$as_ac_Lib=no" 9656fi 9657rm -f core conftest.err conftest.$ac_objext \ 9658 conftest$ac_exeext conftest.$ac_ext 9659LIBS=$ac_check_lib_save_LIBS 9660fi 9661eval ac_res=\$$as_ac_Lib 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9663$as_echo "$ac_res" >&6; } 9664if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9665 9666 LIBXML2_LIBS="$LIBXML2_LIBS $i" 9667 9668else 9669 9670 as_fn_error $? "Not found $_lib_name library" "$LINENO" 5 9671 9672fi 9673 9674 ;; 9675 esac 9676 done 9677 fi 9678 9679 _save_libxml2_libs="${LIBS}" 9680 _save_libxml2_ldflags="${LDFLAGS}" 9681 _save_libxml2_cflags="${CFLAGS}" 9682 LIBS="${LIBS} ${LIBXML2_LIBS}" 9683 LDFLAGS="${LDFLAGS} ${LIBXML2_LDFLAGS}" 9684 CFLAGS="${CFLAGS} ${LIBXML2_CFLAGS}" 9685 9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5 9687$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; } 9688if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then : 9689 $as_echo_n "(cached) " >&6 9690else 9691 ac_check_lib_save_LIBS=$LIBS 9692LIBS="-lxml2 $LIBS" 9693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694/* end confdefs.h. */ 9695 9696/* Override any GCC internal prototype to avoid an error. 9697 Use char because int might match the return type of a GCC 9698 builtin and then its argument prototype would still apply. */ 9699#ifdef __cplusplus 9700extern "C" 9701#endif 9702char xmlReadMemory (); 9703int 9704main () 9705{ 9706return xmlReadMemory (); 9707 ; 9708 return 0; 9709} 9710_ACEOF 9711if ac_fn_c_try_link "$LINENO"; then : 9712 ac_cv_lib_xml2_xmlReadMemory=yes 9713else 9714 ac_cv_lib_xml2_xmlReadMemory=no 9715fi 9716rm -f core conftest.err conftest.$ac_objext \ 9717 conftest$ac_exeext conftest.$ac_ext 9718LIBS=$ac_check_lib_save_LIBS 9719fi 9720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5 9721$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; } 9722if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then : 9723 9724 LIBXML2_LIBS="-lxml2 ${LIBXML2_LIBS}" 9725 9726else 9727 9728 as_fn_error $? "Not found libxml2 library" "$LINENO" 5 9729 9730fi 9731 9732 9733 LIBS="${_save_libxml2_libs}" 9734 LDFLAGS="${_save_libxml2_ldflags}" 9735 CFLAGS="${_save_libxml2_cflags}" 9736 unset _save_libxml2_libs 9737 unset _save_libxml2_ldflags 9738 unset _save_libxml2_cflags 9739 9740 LIBXML2_VERSION=`$PKG_CONFIG --version libxml-2.0` 9741 9742 9743$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h 9744 9745 9746 found_libxml2="yes" 9747 else 9748 found_libxml2="no" 9749 fi 9750 fi 9751 9752 9753 9754 9755 9756 9757 if test "x$want_libxml2" = "xyes"; then 9758 if test "x$found_libxml2" != "xyes"; then 9759 as_fn_error $? "LIBXML2 library not found" "$LINENO" 5 9760 else 9761 have_libxml2="yes" 9762 fi 9763 fi 9764 SERVER_LDFLAGS="$SERVER_LDFLAGS $LIBXML2_LDFLAGS" 9765 SERVER_LIBS="$SERVER_LIBS $LIBXML2_LIBS" 9766 9767 PROXY_LDFLAGS="$PROXY_LDFLAGS $LIBXML2_LDFLAGS" 9768 PROXY_LIBS="$PROXY_LIBS $LIBXML2_LIBS" 9769 9770 9771 9772 9773 9774# Check whether --with-unixodbc was given. 9775if test "${with_unixodbc+set}" = set; then : 9776 withval=$with_unixodbc; if test "x$withval" = "xno"; then 9777 want_unixodbc="no" 9778 elif test "x$withval" = "xyes"; then 9779 want_unixodbc="yes" 9780 else 9781 want_unixodbc="yes" 9782 specified_unixodbc="yes" 9783 ODBC_CONFIG=$withval 9784 fi 9785 9786else 9787 want_unixodbc=no 9788fi 9789 9790 9791 if test "x$want_unixodbc" != "xno"; then 9792 # Extract the first word of "odbc_config", so it can be a program name with args. 9793set dummy odbc_config; ac_word=$2 9794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9795$as_echo_n "checking for $ac_word... " >&6; } 9796if ${ac_cv_path_ODBC_CONFIG+:} false; then : 9797 $as_echo_n "(cached) " >&6 9798else 9799 case $ODBC_CONFIG in 9800 [\\/]* | ?:[\\/]*) 9801 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 9802 ;; 9803 *) 9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9805for as_dir in $PATH 9806do 9807 IFS=$as_save_IFS 9808 test -z "$as_dir" && as_dir=. 9809 for ac_exec_ext in '' $ac_executable_extensions; do 9810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9811 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9813 break 2 9814 fi 9815done 9816 done 9817IFS=$as_save_IFS 9818 9819 ;; 9820esac 9821fi 9822ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 9823if test -n "$ODBC_CONFIG"; then 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 9825$as_echo "$ODBC_CONFIG" >&6; } 9826else 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9828$as_echo "no" >&6; } 9829fi 9830 9831 9832 9833 unixodbc_error="" 9834 9835 UNIXODBC_LIBS="-lodbc" 9836 9837 if test -x "$ODBC_CONFIG"; then 9838 UNIXODBC_CFLAGS="-I`$ODBC_CONFIG --include-prefix`" 9839 UNIXODBC_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 9840 elif test "x$specified_unixodbc" = "xyes"; then 9841 unixodbc_error="file $ODBC_CONFIG not found or not executable" 9842 fi 9843 9844 if test "x$unixodbc_error" = "x"; then 9845 _save_unixodbc_cflags="${CFLAGS}" 9846 _save_unixodbc_ldflags="${LDFLAGS}" 9847 _save_unixodbc_libs="${LIBS}" 9848 CFLAGS="${CFLAGS} ${UNIXODBC_CFLAGS}" 9849 LDFLAGS="${LDFLAGS} ${UNIXODBC_LDFLAGS}" 9850 LIBS="${LIBS} ${UNIXODBC_LIBS}" 9851 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 9853$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 9854if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 9855 $as_echo_n "(cached) " >&6 9856else 9857 ac_check_lib_save_LIBS=$LIBS 9858LIBS="-lodbc $LIBS" 9859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9860/* end confdefs.h. */ 9861 9862/* Override any GCC internal prototype to avoid an error. 9863 Use char because int might match the return type of a GCC 9864 builtin and then its argument prototype would still apply. */ 9865#ifdef __cplusplus 9866extern "C" 9867#endif 9868char SQLAllocHandle (); 9869int 9870main () 9871{ 9872return SQLAllocHandle (); 9873 ; 9874 return 0; 9875} 9876_ACEOF 9877if ac_fn_c_try_link "$LINENO"; then : 9878 ac_cv_lib_odbc_SQLAllocHandle=yes 9879else 9880 ac_cv_lib_odbc_SQLAllocHandle=no 9881fi 9882rm -f core conftest.err conftest.$ac_objext \ 9883 conftest$ac_exeext conftest.$ac_ext 9884LIBS=$ac_check_lib_save_LIBS 9885fi 9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 9887$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 9888if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 9889 cat >>confdefs.h <<_ACEOF 9890#define HAVE_LIBODBC 1 9891_ACEOF 9892 9893 LIBS="-lodbc $LIBS" 9894 9895else 9896 unixodbc_error="unixODBC library not found" 9897fi 9898 9899 9900 if test "x$unixodbc_error" = "x"; then 9901 9902$as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h 9903 9904 fi 9905 9906 CFLAGS="${_save_unixodbc_cflags}" 9907 LDFLAGS="${_save_unixodbc_ldflags}" 9908 LIBS="${_save_unixodbc_libs}" 9909 fi 9910 fi 9911 9912 9913 9914 9915 9916 9917 if test "x$want_unixodbc" = "xyes"; then 9918 if test "x$unixodbc_error" != "x"; then 9919 as_fn_error $? "$unixodbc_error" "$LINENO" 5 9920 fi 9921 have_unixodbc="yes" 9922 fi 9923 SERVER_LDFLAGS="$SERVER_LDFLAGS $UNIXODBC_LDFLAGS" 9924 SERVER_LIBS="$SERVER_LIBS $UNIXODBC_LIBS" 9925 9926 PROXY_LDFLAGS="$PROXY_LDFLAGS $UNIXODBC_LDFLAGS" 9927 PROXY_LIBS="$PROXY_LIBS $UNIXODBC_LIBS" 9928 9929 9930 9931 9932 _libnetsnmp_config="no" 9933 9934 9935# Check whether --with-net-snmp was given. 9936if test "${with_net_snmp+set}" = set; then : 9937 withval=$with_net_snmp; if test "$withval" = "no"; then 9938 want_netsnmp="no" 9939 elif test "$withval" = "yes"; then 9940 want_netsnmp="yes" 9941 else 9942 want_netsnmp="yes" 9943 _libnetsnmp_config=$withval 9944 fi 9945 9946else 9947 want_netsnmp=no 9948fi 9949 9950 9951 SNMP_CFLAGS="" 9952 SNMP_LDFLAGS="" 9953 SNMP_LIBS="" 9954 9955 if test "x$want_netsnmp" != "xno"; then 9956 9957 # Extract the first word of "net-snmp-config", so it can be a program name with args. 9958set dummy net-snmp-config; ac_word=$2 9959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9960$as_echo_n "checking for $ac_word... " >&6; } 9961if ${ac_cv_path__libnetsnmp_config+:} false; then : 9962 $as_echo_n "(cached) " >&6 9963else 9964 case $_libnetsnmp_config in 9965 [\\/]* | ?:[\\/]*) 9966 ac_cv_path__libnetsnmp_config="$_libnetsnmp_config" # Let the user override the test with a path. 9967 ;; 9968 *) 9969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9970for as_dir in $PATH 9971do 9972 IFS=$as_save_IFS 9973 test -z "$as_dir" && as_dir=. 9974 for ac_exec_ext in '' $ac_executable_extensions; do 9975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9976 ac_cv_path__libnetsnmp_config="$as_dir/$ac_word$ac_exec_ext" 9977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9978 break 2 9979 fi 9980done 9981 done 9982IFS=$as_save_IFS 9983 9984 ;; 9985esac 9986fi 9987_libnetsnmp_config=$ac_cv_path__libnetsnmp_config 9988if test -n "$_libnetsnmp_config"; then 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libnetsnmp_config" >&5 9990$as_echo "$_libnetsnmp_config" >&6; } 9991else 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9993$as_echo "no" >&6; } 9994fi 9995 9996 9997 9998 if test -x "$_libnetsnmp_config"; then 9999 10000 _full_libnetsnmp_cflags="`$_libnetsnmp_config --cflags`" 10001 for i in $_full_libnetsnmp_cflags; do 10002 case $i in 10003 -I*) 10004 SNMP_CFLAGS="$SNMP_CFLAGS $i" 10005 10006 ;; 10007 esac 10008 done 10009 10010 _full_libnetsnmp_libs="`$_libnetsnmp_config --netsnmp-libs`" 10011 for i in $_full_libnetsnmp_libs; do 10012 case $i in 10013 -L*) 10014 SNMP_LDFLAGS="${SNMP_LDFLAGS} $i" 10015 ;; 10016 -l*) 10017 SNMP_LIBS="${SNMP_LIBS} $i" 10018 ;; 10019 esac 10020 done 10021 10022 if test "x$enable_static" = "xyes"; then 10023 _full_libnetsnmp_libs="`$_libnetsnmp_config --libs`" 10024 for i in $_full_libnetsnmp_libs; do 10025 case $i in 10026 -lnetsnmp) 10027 ;; 10028 -l*) 10029 _lib_name="`echo "$i" | cut -b3-`" 10030 as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name''_main" | $as_tr_sh` 10031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name" >&5 10032$as_echo_n "checking for main in -l$_lib_name... " >&6; } 10033if eval \${$as_ac_Lib+:} false; then : 10034 $as_echo_n "(cached) " >&6 10035else 10036 ac_check_lib_save_LIBS=$LIBS 10037LIBS="-l$_lib_name $LIBS" 10038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10039/* end confdefs.h. */ 10040 10041 10042int 10043main () 10044{ 10045return main (); 10046 ; 10047 return 0; 10048} 10049_ACEOF 10050if ac_fn_c_try_link "$LINENO"; then : 10051 eval "$as_ac_Lib=yes" 10052else 10053 eval "$as_ac_Lib=no" 10054fi 10055rm -f core conftest.err conftest.$ac_objext \ 10056 conftest$ac_exeext conftest.$ac_ext 10057LIBS=$ac_check_lib_save_LIBS 10058fi 10059eval ac_res=\$$as_ac_Lib 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10061$as_echo "$ac_res" >&6; } 10062if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10063 10064 SNMP_LIBS="$SNMP_LIBS $i" 10065 10066else 10067 10068 as_fn_error $? "Not found $_lib_name library" "$LINENO" 5 10069 10070fi 10071 10072 10073 ;; 10074 esac 10075 done 10076 fi 10077 10078 _save_netsnmp_cflags="$CFLAGS" 10079 _save_netsnmp_ldflags="$LDFLAGS" 10080 _save_netsnmp_libs="$LIBS" 10081 CFLAGS="$CFLAGS $SNMP_CFLAGS" 10082 LDFLAGS="$LDFLAGS $SNMP_LDFLAGS" 10083 LIBS="$LIBS $SNMP_LIBS" 10084 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnetsnmp" >&5 10086$as_echo_n "checking for main in -lnetsnmp... " >&6; } 10087if ${ac_cv_lib_netsnmp_main+:} false; then : 10088 $as_echo_n "(cached) " >&6 10089else 10090 ac_check_lib_save_LIBS=$LIBS 10091LIBS="-lnetsnmp $LIBS" 10092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093/* end confdefs.h. */ 10094 10095 10096int 10097main () 10098{ 10099return main (); 10100 ; 10101 return 0; 10102} 10103_ACEOF 10104if ac_fn_c_try_link "$LINENO"; then : 10105 ac_cv_lib_netsnmp_main=yes 10106else 10107 ac_cv_lib_netsnmp_main=no 10108fi 10109rm -f core conftest.err conftest.$ac_objext \ 10110 conftest$ac_exeext conftest.$ac_ext 10111LIBS=$ac_check_lib_save_LIBS 10112fi 10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_main" >&5 10114$as_echo "$ac_cv_lib_netsnmp_main" >&6; } 10115if test "x$ac_cv_lib_netsnmp_main" = xyes; then : 10116 cat >>confdefs.h <<_ACEOF 10117#define HAVE_LIBNETSNMP 1 10118_ACEOF 10119 10120 LIBS="-lnetsnmp $LIBS" 10121 10122else 10123 as_fn_error $? "Not found Net-SNMP library" "$LINENO" 5 10124fi 10125 10126 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for localname in struct snmp_session" >&5 10128$as_echo_n "checking for localname in struct snmp_session... " >&6; } 10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10130/* end confdefs.h. */ 10131 10132#include <net-snmp/net-snmp-config.h> 10133#include <net-snmp/net-snmp-includes.h> 10134int 10135main () 10136{ 10137 10138struct snmp_session session; 10139session.localname = ""; 10140 10141 ; 10142 return 0; 10143} 10144_ACEOF 10145if ac_fn_c_try_compile "$LINENO"; then : 10146 10147$as_echo "#define HAVE_NETSNMP_SESSION_LOCALNAME 1" >>confdefs.h 10148 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10150$as_echo "yes" >&6; } 10151else 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10153$as_echo "no" >&6; } 10154fi 10155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10156 10157 CFLAGS="$_save_netsnmp_cflags" 10158 LDFLAGS="$_save_netsnmp_ldflags" 10159 LIBS="$_save_netsnmp_libs" 10160 unset _save_netsnmp_cflags 10161 unset _save_netsnmp_ldflags 10162 unset _save_netsnmp_libs 10163 10164 10165$as_echo "#define HAVE_NETSNMP 1" >>confdefs.h 10166 10167 10168 found_netsnmp="yes" 10169 else 10170 found_netsnmp="no" 10171 fi 10172 fi 10173 10174 10175 10176 10177 10178 if test "x$want_netsnmp" = "xyes"; then 10179 if test "x$found_netsnmp" != "xyes"; then 10180 as_fn_error $? "Invalid Net-SNMP directory - unable to find net-snmp-config" "$LINENO" 5 10181 else 10182 have_snmp="yes" 10183 fi 10184 fi 10185 SERVER_LDFLAGS="$SERVER_LDFLAGS $SNMP_LDFLAGS" 10186 SERVER_LIBS="$SERVER_LIBS $SNMP_LIBS" 10187 10188 PROXY_LDFLAGS="$PROXY_LDFLAGS $SNMP_LDFLAGS" 10189 PROXY_LIBS="$PROXY_LIBS $SNMP_LIBS" 10190 10191 10192 10193 10194 10195# Check whether --with-ssh2 was given. 10196if test "${with_ssh2+set}" = set; then : 10197 withval=$with_ssh2; 10198 if test "$withval" = "no"; then 10199 want_ssh2="no" 10200 _libssh2_dir="no" 10201 elif test "$withval" = "yes"; then 10202 want_ssh2="yes" 10203 _libssh2_dir="no" 10204 else 10205 want_ssh2="yes" 10206 _libssh2_dir=$withval 10207 fi 10208 accept_ssh2_version="no" 10209 10210else 10211 want_ssh2=no 10212 10213fi 10214 10215 10216 if test "x$want_ssh2" = "xyes"; then 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSH2 support" >&5 10218$as_echo_n "checking for SSH2 support... " >&6; } 10219 if test "x$_libssh2_dir" = "xno"; then 10220 if test -f /usr/include/libssh2.h; then 10221 SSH2_CFLAGS=-I/usr/include 10222 SSH2_LDFLAGS=-L/usr/lib 10223 SSH2_LIBS="-lssh2" 10224 found_ssh2="yes" 10225 10226 # Zabbix minimal major supported version of libssh2: 10227 minimal_libssh2_major_version=1 10228 10229 # get the major version 10230 found_ssh2_version_major=`cat /usr/include/libssh2.h | $EGREP \#define.*LIBSSH2_VERSION_MAJOR | $AWK '{print $3;}'` 10231 10232 accept_ssh2_version="no" 10233 10234 if test $found_ssh2_version_major -ge $minimal_libssh2_major_version; then 10235 accept_ssh2_version="yes" 10236 fi; 10237 10238 elif test -f /usr/local/include/libssh2.h; then 10239 SSH2_CFLAGS=-I/usr/local/include 10240 SSH2_LDFLAGS=-L/usr/local/lib 10241 SSH2_LIBS="-lssh2" 10242 found_ssh2="yes" 10243 10244 # Zabbix minimal major supported version of libssh2: 10245 minimal_libssh2_major_version=1 10246 10247 # get the major version 10248 found_ssh2_version_major=`cat /usr/local/include/libssh2.h | $EGREP \#define.*LIBSSH2_VERSION_MAJOR | $AWK '{print $3;}'` 10249 10250 accept_ssh2_version="no" 10251 10252 if test $found_ssh2_version_major -ge $minimal_libssh2_major_version; then 10253 accept_ssh2_version="yes" 10254 fi; 10255 10256 else #libraries are not found in default directories 10257 found_ssh2="no" 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10259$as_echo "no" >&6; } 10260 fi # test -f /usr/include/libssh2.h; then 10261 else # test "x$_libssh2_dir" = "xno"; then 10262 if test -f $_libssh2_dir/include/libssh2.h; then 10263 SSH2_CFLAGS=-I$_libssh2_dir/include 10264 SSH2_LDFLAGS=-L$_libssh2_dir/lib 10265 SSH2_LIBS="-lssh2" 10266 found_ssh2="yes" 10267 10268 # Zabbix minimal major supported version of libssh2: 10269 minimal_libssh2_major_version=1 10270 10271 # get the major version 10272 found_ssh2_version_major=`cat $_libssh2_dir/include/libssh2.h | $EGREP \#define.*LIBSSH2_VERSION_MAJOR | $AWK '{print $3;}'` 10273 10274 accept_ssh2_version="no" 10275 10276 if test $found_ssh2_version_major -ge $minimal_libssh2_major_version; then 10277 accept_ssh2_version="yes" 10278 fi; 10279 10280 else #if test -f $_libssh2_dir/include/libssh2.h; then 10281 found_ssh2="no" 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10283$as_echo "no" >&6; } 10284 fi #test -f $_libssh2_dir/include/libssh2.h; then 10285 fi #if test "x$_libssh2_dir" = "xno"; then 10286 fi # if test "x$want_ssh2" != "xno"; then 10287 10288 if test "x$found_ssh2" = "xyes"; then 10289 am_save_cflags="$CFLAGS" 10290 am_save_ldflags="$LDFLAGS" 10291 am_save_libs="$LIBS" 10292 10293 CFLAGS="$CFLAGS $SSH2_CFLAGS" 10294 LDFLAGS="$LDFLAGS $SSH2_LDFLAGS" 10295 LIBS="$LIBS $SSH2_LIBS" 10296 10297 found_ssh2="no" 10298 10299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10300/* end confdefs.h. */ 10301 10302#include <libssh2.h> 10303 10304int 10305main () 10306{ 10307 10308 LIBSSH2_SESSION *session; 10309 session = libssh2_session_init(); 10310 10311 ; 10312 return 0; 10313} 10314_ACEOF 10315if ac_fn_c_try_link "$LINENO"; then : 10316 found_ssh2="yes" 10317fi 10318rm -f core conftest.err conftest.$ac_objext \ 10319 conftest$ac_exeext conftest.$ac_ext 10320 10321 10322 CFLAGS="$am_save_cflags" 10323 LDFLAGS="$am_save_ldflags" 10324 LIBS="$am_save_libs" 10325 10326 if test "x$found_ssh2" = "xyes"; then 10327 10328$as_echo "#define HAVE_SSH2 1" >>confdefs.h 10329 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10331$as_echo "yes" >&6; } 10332 else 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10334$as_echo "no" >&6; } 10335 SSH2_CFLAGS="" 10336 SSH2_LDFLAGS="" 10337 SSH2_LIBS="" 10338 fi 10339 fi 10340 10341 10342 10343 10344 10345 10346 if test "x$want_ssh2" = "xyes"; then 10347 if test "x$found_ssh2" != "xyes"; then 10348 as_fn_error $? "SSH2 library not found" "$LINENO" 5 10349 elif test "x$accept_ssh2_version" != "xyes"; then 10350 as_fn_error $? "SSH2 library version requirement not met (>= 1.0.0)" "$LINENO" 5 10351 else 10352 have_ssh2="yes" 10353 fi 10354 fi 10355 SERVER_LDFLAGS="$SERVER_LDFLAGS $SSH2_LDFLAGS" 10356 SERVER_LIBS="$SERVER_LIBS $SSH2_LIBS" 10357 10358 PROXY_LDFLAGS="$PROXY_LDFLAGS $SSH2_LDFLAGS" 10359 PROXY_LIBS="$PROXY_LIBS $SSH2_LIBS" 10360 10361 10362 10363 found_openipmi="no" 10364 10365 10366# Check whether --with-openipmi was given. 10367if test "${with_openipmi+set}" = set; then : 10368 withval=$with_openipmi; if test "$withval" = "no"; then 10369 want_openipmi="no" 10370 _libopenipmi_with="no" 10371 elif test "$withval" = "yes"; then 10372 want_openipmi="yes" 10373 _libopenipmi_with="yes" 10374 else 10375 want_openipmi="yes" 10376 _libopenipmi_with=$withval 10377 fi 10378 10379else 10380 _libopenipmi_with=no 10381fi 10382 10383 10384 if test "x$_libopenipmi_with" != x"no"; then 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENIPMI support" >&5 10386$as_echo_n "checking for OPENIPMI support... " >&6; } 10387 10388 if test "$_libopenipmi_with" = "yes"; then 10389 if test -f /usr/local/include/OpenIPMI/ipmiif.h; then 10390 OPENIPMI_INCDIR=/usr/local/include 10391 OPENIPMI_LIBDIR=/usr/local/lib 10392 found_openipmi="yes" 10393 elif test -f /usr/include/OpenIPMI/ipmiif.h; then 10394 OPENIPMI_INCDIR=/usr/include 10395 OPENIPMI_LIBDIR=/usr/lib 10396 found_openipmi="yes" 10397 else 10398 found_openipmi="no" 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10400$as_echo "no" >&6; } 10401 fi 10402 else 10403 if test -f $_libopenipmi_with/include/OpenIPMI/ipmiif.h; then 10404 OPENIPMI_INCDIR=$_libopenipmi_with/include 10405 OPENIPMI_LIBDIR=$_libopenipmi_with/lib 10406 found_openipmi="yes" 10407 else 10408 found_openipmi="no" 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10410$as_echo "no" >&6; } 10411 fi 10412 fi 10413 10414 if test "x$found_openipmi" != "xno" ; then 10415 OPENIPMI_CFLAGS="-I$OPENIPMI_INCDIR" 10416 OPENIPMI_LDFLAGS="-L$OPENIPMI_LIBDIR" 10417 OPENIPMI_LIBS="-lOpenIPMI -lOpenIPMIposix" 10418 10419 found_openipmi="yes" 10420 10421$as_echo "#define HAVE_OPENIPMI 1" >>confdefs.h 10422 10423 10424$as_echo "#define OPENIPMI_DEPRECATED 1" >>confdefs.h 10425 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10427$as_echo "yes" >&6; } 10428 fi 10429 fi 10430 10431 10432 10433 10434 10435 unset _libopenipmi_with 10436 10437 if test "x$want_openipmi" = "xyes"; then 10438 if test "x$found_openipmi" != "xyes"; then 10439 as_fn_error $? "Invalid OPENIPMI directory - unable to find ipmiif.h" "$LINENO" 5 10440 else 10441 have_ipmi="yes" 10442 fi 10443 fi 10444 SERVER_LDFLAGS="$SERVER_LDFLAGS $OPENIPMI_LDFLAGS" 10445 SERVER_LIBS="$SERVER_LIBS $OPENIPMI_LIBS" 10446 10447 PROXY_LDFLAGS="$PROXY_LDFLAGS $OPENIPMI_LDFLAGS" 10448 PROXY_LIBS="$PROXY_LIBS $OPENIPMI_LIBS" 10449 10450 10451fi 10452 10453 10454 10455# Check whether --with-mbedtls was given. 10456if test "${with_mbedtls+set}" = set; then : 10457 withval=$with_mbedtls; 10458 if test "$withval" = "no"; then 10459 want_mbedtls="no" 10460 _libmbedtls_dir="no" 10461 elif test "$withval" = "yes"; then 10462 want_mbedtls="yes" 10463 _libmbedtls_dir="no" 10464 else 10465 want_mbedtls="yes" 10466 _libmbedtls_dir=$withval 10467 fi 10468 accept_mbedtls_version="no" 10469 10470else 10471 want_mbedtls=no 10472 10473fi 10474 10475 10476 if test "x$want_mbedtls" = "xyes"; then 10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbed TLS (PolarSSL) support" >&5 10478$as_echo_n "checking for mbed TLS (PolarSSL) support... " >&6; } 10479 10480 if test "x$_libmbedtls_dir" = "xno"; then 10481 if test -f /usr/local/include/polarssl/version.h; then 10482 MBEDTLS_CFLAGS=-I/usr/local/include 10483 MBEDTLS_LDFLAGS=-L/usr/local/lib 10484 MBEDTLS_LIBS="-lpolarssl" 10485 found_mbedtls="yes" 10486 10487 # Zabbix minimal supported version of libmbedtls: 10488 minimal_mbedtls_version_major=1 10489 minimal_mbedtls_version_minor=3 10490 minimal_mbedtls_version_patch=9 10491 10492 # get version 10493 found_mbedtls_version_major=`cat /usr/local/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MAJOR | $AWK '{print $3;}'` 10494 found_mbedtls_version_minor=`cat /usr/local/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MINOR | $AWK '{print $3;}'` 10495 found_mbedtls_version_patch=`cat /usr/local/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_PATCH | $AWK '{print $3;}'` 10496 10497 if test $((found_mbedtls_version_major)) -gt $((minimal_mbedtls_version_major)); then 10498 accept_mbedtls_version="yes" 10499 elif test $((found_mbedtls_version_major)) -lt $((minimal_mbedtls_version_major)); then 10500 accept_mbedtls_version="no" 10501 elif test $((found_mbedtls_version_minor)) -gt $((minimal_mbedtls_version_minor)); then 10502 accept_mbedtls_version="yes" 10503 elif test $((found_mbedtls_version_minor)) -lt $((minimal_mbedtls_version_minor)); then 10504 accept_mbedtls_version="no" 10505 elif test $((found_mbedtls_version_patch)) -ge $((minimal_mbedtls_version_patch)); then 10506 accept_mbedtls_version="yes" 10507 else 10508 accept_mbedtls_version="no" 10509 fi; 10510 10511 elif test -f /usr/include/polarssl/version.h; then 10512 MBEDTLS_CFLAGS=-I/usr/include 10513 MBEDTLS_LDFLAGS=-L/usr/lib 10514 MBEDTLS_LIBS="-lpolarssl" 10515 found_mbedtls="yes" 10516 10517 # Zabbix minimal supported version of libmbedtls: 10518 minimal_mbedtls_version_major=1 10519 minimal_mbedtls_version_minor=3 10520 minimal_mbedtls_version_patch=9 10521 10522 # get version 10523 found_mbedtls_version_major=`cat /usr/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MAJOR | $AWK '{print $3;}'` 10524 found_mbedtls_version_minor=`cat /usr/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MINOR | $AWK '{print $3;}'` 10525 found_mbedtls_version_patch=`cat /usr/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_PATCH | $AWK '{print $3;}'` 10526 10527 if test $((found_mbedtls_version_major)) -gt $((minimal_mbedtls_version_major)); then 10528 accept_mbedtls_version="yes" 10529 elif test $((found_mbedtls_version_major)) -lt $((minimal_mbedtls_version_major)); then 10530 accept_mbedtls_version="no" 10531 elif test $((found_mbedtls_version_minor)) -gt $((minimal_mbedtls_version_minor)); then 10532 accept_mbedtls_version="yes" 10533 elif test $((found_mbedtls_version_minor)) -lt $((minimal_mbedtls_version_minor)); then 10534 accept_mbedtls_version="no" 10535 elif test $((found_mbedtls_version_patch)) -ge $((minimal_mbedtls_version_patch)); then 10536 accept_mbedtls_version="yes" 10537 else 10538 accept_mbedtls_version="no" 10539 fi; 10540 10541 else # libraries are not found in default directories 10542 found_mbedtls="no" 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10544$as_echo "no" >&6; } 10545 fi 10546 else 10547 if test -f $_libmbedtls_dir/include/polarssl/version.h; then 10548 MBEDTLS_CFLAGS=-I$_libmbedtls_dir/include 10549 MBEDTLS_LDFLAGS=-L$_libmbedtls_dir/lib 10550 MBEDTLS_LIBS="-lpolarssl" 10551 found_mbedtls="yes" 10552 10553 # Zabbix minimal supported version of libmbedtls: 10554 minimal_mbedtls_version_major=1 10555 minimal_mbedtls_version_minor=3 10556 minimal_mbedtls_version_patch=9 10557 10558 # get version 10559 found_mbedtls_version_major=`cat $_libmbedtls_dir/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MAJOR | $AWK '{print $3;}'` 10560 found_mbedtls_version_minor=`cat $_libmbedtls_dir/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MINOR | $AWK '{print $3;}'` 10561 found_mbedtls_version_patch=`cat $_libmbedtls_dir/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_PATCH | $AWK '{print $3;}'` 10562 10563 if test $((found_mbedtls_version_major)) -gt $((minimal_mbedtls_version_major)); then 10564 accept_mbedtls_version="yes" 10565 elif test $((found_mbedtls_version_major)) -lt $((minimal_mbedtls_version_major)); then 10566 accept_mbedtls_version="no" 10567 elif test $((found_mbedtls_version_minor)) -gt $((minimal_mbedtls_version_minor)); then 10568 accept_mbedtls_version="yes" 10569 elif test $((found_mbedtls_version_minor)) -lt $((minimal_mbedtls_version_minor)); then 10570 accept_mbedtls_version="no" 10571 elif test $((found_mbedtls_version_patch)) -ge $((minimal_mbedtls_version_patch)); then 10572 accept_mbedtls_version="yes" 10573 else 10574 accept_mbedtls_version="no" 10575 fi; 10576 10577 else 10578 found_mbedtls="no" 10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10580$as_echo "no" >&6; } 10581 fi 10582 fi 10583 fi 10584 10585 if test "x$found_mbedtls" = "xyes"; then 10586 am_save_cflags="$CFLAGS" 10587 am_save_ldflags="$LDFLAGS" 10588 am_save_libs="$LIBS" 10589 10590 CFLAGS="$CFLAGS $MBEDTLS_CFLAGS" 10591 LDFLAGS="$LDFLAGS $MBEDTLS_LDFLAGS" 10592 LIBS="$LIBS $MBEDTLS_LIBS" 10593 10594 found_mbedtls="no" 10595 10596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10597/* end confdefs.h. */ 10598 10599#include <polarssl/ssl.h> 10600 10601int 10602main () 10603{ 10604 10605 ssl_context ssl; 10606 10607 ssl_init(&ssl); 10608 10609 ; 10610 return 0; 10611} 10612_ACEOF 10613if ac_fn_c_try_link "$LINENO"; then : 10614 found_mbedtls="yes" 10615fi 10616rm -f core conftest.err conftest.$ac_objext \ 10617 conftest$ac_exeext conftest.$ac_ext 10618 10619 10620 CFLAGS="$am_save_cflags" 10621 LDFLAGS="$am_save_ldflags" 10622 LIBS="$am_save_libs" 10623 10624 if test "x$found_mbedtls" = "xyes"; then 10625 10626$as_echo "#define HAVE_POLARSSL 1" >>confdefs.h 10627 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10629$as_echo "yes" >&6; } 10630 else 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10632$as_echo "no" >&6; } 10633 MBEDTLS_CFLAGS="" 10634 MBEDTLS_LDFLAGS="" 10635 MBEDTLS_LIBS="" 10636 fi 10637 fi 10638 10639 10640 10641 10642 10643 10644if test "x$want_mbedtls" = "xyes"; then 10645 if test "x$have_tls" != "xno"; then 10646 as_fn_error $? "You can configure for only one TLS library (--with-mbedtls, --with-gnutls or --with-openssl)." "$LINENO" 5 10647 fi 10648 10649 if test "x$found_mbedtls" != "xyes"; then 10650 as_fn_error $? "mbed TLS (PolarSSL) library libpolarssl not found" "$LINENO" 5 10651 elif test "x$accept_mbedtls_version" != "xyes"; then 10652 as_fn_error $? "mbed TLS (PolarSSL) library version requirement not met (>= 1.3.9)" "$LINENO" 5 10653 else 10654 have_tls="mbed TLS" 10655 fi 10656 TLS_CFLAGS="$MBEDTLS_CFLAGS" 10657 TLS_LDFLAGS="$MBEDTLS_LDFLAGS" 10658 TLS_LIBS="$MBEDTLS_LIBS" 10659fi 10660 10661 10662 10663# Check whether --with-gnutls was given. 10664if test "${with_gnutls+set}" = set; then : 10665 withval=$with_gnutls; 10666 if test "$withval" = "no"; then 10667 want_gnutls="no" 10668 _libgnutls_dir="no" 10669 elif test "$withval" = "yes"; then 10670 want_gnutls="yes" 10671 _libgnutls_dir="no" 10672 else 10673 want_gnutls="yes" 10674 _libgnutls_dir=$withval 10675 fi 10676 accept_gnutls_version="no" 10677 10678else 10679 want_gnutls=no 10680 10681fi 10682 10683 10684 if test "x$want_gnutls" = "xyes"; then 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS support" >&5 10686$as_echo_n "checking for GnuTLS support... " >&6; } 10687 if test "x$_libgnutls_dir" = "xno"; then 10688 if test -f /usr/local/include/gnutls/gnutls.h; then 10689 GNUTLS_CFLAGS=-I/usr/local/include 10690 GNUTLS_LDFLAGS=-L/usr/local/lib 10691 GNUTLS_LIBS="-lgnutls" 10692 found_gnutls="yes" 10693 10694 # Zabbix minimal supported version of libgnutls: 10695 minimal_gnutls_version_major=3 10696 minimal_gnutls_version_minor=1 10697 minimal_gnutls_version_patch=18 10698 10699 # get version 10700 found_gnutls_version_major=`cat /usr/local/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MAJOR | $AWK '{print $3;}'` 10701 found_gnutls_version_minor=`cat /usr/local/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MINOR | $AWK '{print $3;}'` 10702 found_gnutls_version_patch=`cat /usr/local/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_PATCH | $AWK '{print $3;}'` 10703 10704 if test $((found_gnutls_version_major)) -gt $((minimal_gnutls_version_major)); then 10705 accept_gnutls_version="yes" 10706 elif test $((found_gnutls_version_major)) -lt $((minimal_gnutls_version_major)); then 10707 accept_gnutls_version="no" 10708 elif test $((found_gnutls_version_minor)) -gt $((minimal_gnutls_version_minor)); then 10709 accept_gnutls_version="yes" 10710 elif test $((found_gnutls_version_minor)) -lt $((minimal_gnutls_version_minor)); then 10711 accept_gnutls_version="no" 10712 elif test $((found_gnutls_version_patch)) -ge $((minimal_gnutls_version_patch)); then 10713 accept_gnutls_version="yes" 10714 else 10715 accept_gnutls_version="no" 10716 fi; 10717 10718 elif test -f /usr/include/gnutls/gnutls.h; then 10719 GNUTLS_CFLAGS=-I/usr/include 10720 GNUTLS_LDFLAGS=-L/usr/lib 10721 GNUTLS_LIBS="-lgnutls" 10722 found_gnutls="yes" 10723 10724 # Zabbix minimal supported version of libgnutls: 10725 minimal_gnutls_version_major=3 10726 minimal_gnutls_version_minor=1 10727 minimal_gnutls_version_patch=18 10728 10729 # get version 10730 found_gnutls_version_major=`cat /usr/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MAJOR | $AWK '{print $3;}'` 10731 found_gnutls_version_minor=`cat /usr/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MINOR | $AWK '{print $3;}'` 10732 found_gnutls_version_patch=`cat /usr/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_PATCH | $AWK '{print $3;}'` 10733 10734 if test $((found_gnutls_version_major)) -gt $((minimal_gnutls_version_major)); then 10735 accept_gnutls_version="yes" 10736 elif test $((found_gnutls_version_major)) -lt $((minimal_gnutls_version_major)); then 10737 accept_gnutls_version="no" 10738 elif test $((found_gnutls_version_minor)) -gt $((minimal_gnutls_version_minor)); then 10739 accept_gnutls_version="yes" 10740 elif test $((found_gnutls_version_minor)) -lt $((minimal_gnutls_version_minor)); then 10741 accept_gnutls_version="no" 10742 elif test $((found_gnutls_version_patch)) -ge $((minimal_gnutls_version_patch)); then 10743 accept_gnutls_version="yes" 10744 else 10745 accept_gnutls_version="no" 10746 fi; 10747 10748 else #libraries are not found in default directories 10749 found_gnutls="no" 10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10751$as_echo "no" >&6; } 10752 fi 10753 else 10754 if test -f $_libgnutls_dir/include/gnutls/gnutls.h; then 10755 GNUTLS_CFLAGS=-I$_libgnutls_dir/include 10756 GNUTLS_LDFLAGS=-L$_libgnutls_dir/lib 10757 GNUTLS_LIBS="-lgnutls" 10758 found_gnutls="yes" 10759 10760 # Zabbix minimal supported version of libgnutls: 10761 minimal_gnutls_version_major=3 10762 minimal_gnutls_version_minor=1 10763 minimal_gnutls_version_patch=18 10764 10765 # get version 10766 found_gnutls_version_major=`cat $_libgnutls_dir/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MAJOR | $AWK '{print $3;}'` 10767 found_gnutls_version_minor=`cat $_libgnutls_dir/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MINOR | $AWK '{print $3;}'` 10768 found_gnutls_version_patch=`cat $_libgnutls_dir/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_PATCH | $AWK '{print $3;}'` 10769 10770 if test $((found_gnutls_version_major)) -gt $((minimal_gnutls_version_major)); then 10771 accept_gnutls_version="yes" 10772 elif test $((found_gnutls_version_major)) -lt $((minimal_gnutls_version_major)); then 10773 accept_gnutls_version="no" 10774 elif test $((found_gnutls_version_minor)) -gt $((minimal_gnutls_version_minor)); then 10775 accept_gnutls_version="yes" 10776 elif test $((found_gnutls_version_minor)) -lt $((minimal_gnutls_version_minor)); then 10777 accept_gnutls_version="no" 10778 elif test $((found_gnutls_version_patch)) -ge $((minimal_gnutls_version_patch)); then 10779 accept_gnutls_version="yes" 10780 else 10781 accept_gnutls_version="no" 10782 fi; 10783 10784 else 10785 found_gnutls="no" 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10787$as_echo "no" >&6; } 10788 fi 10789 fi 10790 fi 10791 10792 if test "x$found_gnutls" = "xyes"; then 10793 am_save_cflags="$CFLAGS" 10794 am_save_ldflags="$LDFLAGS" 10795 am_save_libs="$LIBS" 10796 10797 CFLAGS="$CFLAGS $GNUTLS_CFLAGS" 10798 LDFLAGS="$LDFLAGS $GNUTLS_LDFLAGS" 10799 LIBS="$LIBS $GNUTLS_LIBS" 10800 10801 found_gnutls="no" 10802 10803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10804/* end confdefs.h. */ 10805 10806#include <gnutls/gnutls.h> 10807 10808int 10809main () 10810{ 10811 10812 gnutls_global_init(); 10813 10814 ; 10815 return 0; 10816} 10817_ACEOF 10818if ac_fn_c_try_link "$LINENO"; then : 10819 found_gnutls="yes" 10820fi 10821rm -f core conftest.err conftest.$ac_objext \ 10822 conftest$ac_exeext conftest.$ac_ext 10823 10824 10825 CFLAGS="$am_save_cflags" 10826 LDFLAGS="$am_save_ldflags" 10827 LIBS="$am_save_libs" 10828 10829 if test "x$found_gnutls" = "xyes"; then 10830 10831$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h 10832 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10834$as_echo "yes" >&6; } 10835 else 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10837$as_echo "no" >&6; } 10838 GNUTLS_CFLAGS="" 10839 GNUTLS_LDFLAGS="" 10840 GNUTLS_LIBS="" 10841 fi 10842 fi 10843 10844 10845 10846 10847 10848 10849if test "x$want_gnutls" = "xyes"; then 10850 if test "x$have_tls" != "xno"; then 10851 as_fn_error $? "You can configure for only one TLS library (--with-mbedtls, --with-gnutls or --with-openssl)." "$LINENO" 5 10852 fi 10853 10854 if test "x$found_gnutls" != "xyes"; then 10855 as_fn_error $? "GnuTLS library libgnutls not found" "$LINENO" 5 10856 elif test "x$accept_gnutls_version" != "xyes"; then 10857 as_fn_error $? "GnuTLS library version requirement not met (>= 3.1.18)" "$LINENO" 5 10858 else 10859 have_tls="GnuTLS" 10860 fi 10861 TLS_CFLAGS="$GNUTLS_CFLAGS" 10862 TLS_LDFLAGS="$GNUTLS_LDFLAGS" 10863 TLS_LIBS="$GNUTLS_LIBS" 10864fi 10865 10866 10867 10868# Check whether --with-openssl was given. 10869if test "${with_openssl+set}" = set; then : 10870 withval=$with_openssl; 10871 if test "$withval" = "no"; then 10872 want_openssl="no" 10873 _libopenssl_dir="no" 10874 elif test "$withval" = "yes"; then 10875 want_openssl="yes" 10876 _libopenssl_dir="no" 10877 else 10878 want_openssl="yes" 10879 _libopenssl_dir=$withval 10880 fi 10881 accept_openssl_version="no" 10882 10883else 10884 want_openssl=no 10885 10886fi 10887 10888 10889 if test "x$want_openssl" = "xyes"; then 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5 10891$as_echo_n "checking for OpenSSL support... " >&6; } 10892 if test "x$_libopenssl_dir" = "xno"; then # if OpenSSL directory is not specified 10893 if test -f /usr/local/include/openssl/ssl.h -a -f /usr/local/include/openssl/crypto.h; then 10894 OPENSSL_CFLAGS=-I/usr/local/include 10895 OPENSSL_LDFLAGS=-L/usr/local/lib 10896 OPENSSL_LIBS="-lssl -lcrypto" 10897 found_openssl="yes" 10898 10899 # Zabbix minimal supported version of OpenSSL. 10900 # Version numbering scheme is described in /usr/include/openssl/opensslv.h. Specify version number without the 10901 # last byte (status). E.g., version 1.0.1 is 0x1000100f, but without the last byte it is 0x1000100. 10902 minimal_openssl_version=0x1000100 10903 10904 # get version 10905 found_openssl_version=`grep OPENSSL_VERSION_NUMBER "/usr/local/include/openssl/opensslv.h"` 10906 found_openssl_version=`expr "$found_openssl_version" : '.*\(0x[0-f][0-f][0-f][0-f][0-f][0-f][0-f]\).*'` 10907 10908 # compare versions lexicographically 10909 openssl_version_check=`expr $found_openssl_version \>\= $minimal_openssl_version` 10910 if test "$openssl_version_check" = "1"; then 10911 accept_openssl_version="yes" 10912 else 10913 accept_openssl_version="no" 10914 fi; 10915 10916 elif test -f /usr/include/openssl/ssl.h -a -f /usr/include/openssl/crypto.h; then 10917 OPENSSL_CFLAGS=-I/usr/include 10918 OPENSSL_LDFLAGS=-L/usr/lib 10919 OPENSSL_LIBS="-lssl -lcrypto" 10920 found_openssl="yes" 10921 10922 # Zabbix minimal supported version of OpenSSL. 10923 # Version numbering scheme is described in /usr/include/openssl/opensslv.h. Specify version number without the 10924 # last byte (status). E.g., version 1.0.1 is 0x1000100f, but without the last byte it is 0x1000100. 10925 minimal_openssl_version=0x1000100 10926 10927 # get version 10928 found_openssl_version=`grep OPENSSL_VERSION_NUMBER "/usr/include/openssl/opensslv.h"` 10929 found_openssl_version=`expr "$found_openssl_version" : '.*\(0x[0-f][0-f][0-f][0-f][0-f][0-f][0-f]\).*'` 10930 10931 # compare versions lexicographically 10932 openssl_version_check=`expr $found_openssl_version \>\= $minimal_openssl_version` 10933 if test "$openssl_version_check" = "1"; then 10934 accept_openssl_version="yes" 10935 else 10936 accept_openssl_version="no" 10937 fi; 10938 10939 else # libraries are not found in default directories 10940 found_openssl="no" 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10942$as_echo "no" >&6; } 10943 fi 10944 else # search in the specified OpenSSL directory 10945 if test -f $_libopenssl_dir/include/openssl/ssl.h -a -f $_libopenssl_dir/include/openssl/crypto.h; then 10946 OPENSSL_CFLAGS=-I$_libopenssl_dir/include 10947 OPENSSL_LDFLAGS=-L$_libopenssl_dir/lib 10948 OPENSSL_LIBS="-lssl -lcrypto" 10949 found_openssl="yes" 10950 10951 # Zabbix minimal supported version of OpenSSL. 10952 # Version numbering scheme is described in /usr/include/openssl/opensslv.h. Specify version number without the 10953 # last byte (status). E.g., version 1.0.1 is 0x1000100f, but without the last byte it is 0x1000100. 10954 minimal_openssl_version=0x1000100 10955 10956 # get version 10957 found_openssl_version=`grep OPENSSL_VERSION_NUMBER "$_libopenssl_dir/include/openssl/opensslv.h"` 10958 found_openssl_version=`expr "$found_openssl_version" : '.*\(0x[0-f][0-f][0-f][0-f][0-f][0-f][0-f]\).*'` 10959 10960 # compare versions lexicographically 10961 openssl_version_check=`expr $found_openssl_version \>\= $minimal_openssl_version` 10962 if test "$openssl_version_check" = "1"; then 10963 accept_openssl_version="yes" 10964 else 10965 accept_openssl_version="no" 10966 fi; 10967 10968 else # libraries are not found in specified directories 10969 found_openssl="no" 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10971$as_echo "no" >&6; } 10972 fi 10973 fi 10974 fi 10975 10976 if test "x$found_openssl" = "xyes"; then 10977 am_save_cflags="$CFLAGS" 10978 am_save_ldflags="$LDFLAGS" 10979 am_save_libs="$LIBS" 10980 10981 CFLAGS="$CFLAGS $OPENSSL_CFLAGS" 10982 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 10983 LIBS="$LIBS $OPENSSL_LIBS" 10984 10985 found_openssl="no" 10986 10987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10988/* end confdefs.h. */ 10989 10990#include <openssl/ssl.h> 10991#include <openssl/bio.h> 10992 10993int 10994main () 10995{ 10996 10997 /* check that both libssl and libcrypto are available */ 10998 10999 SSL *ssl = NULL; 11000 11001 SSL_connect(ssl); /* a function from libssl, present in both OpenSSL 1.0.1 and 1.1.0 */ 11002 BIO_new(BIO_s_mem()); /* a function from libcrypto */ 11003 11004 ; 11005 return 0; 11006} 11007_ACEOF 11008if ac_fn_c_try_link "$LINENO"; then : 11009 found_openssl="yes" 11010fi 11011rm -f core conftest.err conftest.$ac_objext \ 11012 conftest$ac_exeext conftest.$ac_ext 11013 11014 11015 if test "x$found_openssl" = "xyes"; then 11016 11017$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 11018 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11020$as_echo "yes" >&6; } 11021 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL supports PSK" >&5 11023$as_echo_n "checking if OpenSSL supports PSK... " >&6; } 11024 found_openssl_with_psk="no" 11025 11026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11027/* end confdefs.h. */ 11028 11029#include <openssl/ssl.h> 11030 11031int 11032main () 11033{ 11034 11035 /* check if OPENSSL_NO_PSK is defined */ 11036#ifdef OPENSSL_NO_PSK 11037# error "OPENSSL_NO_PSK is defined. PSK support will not be available." 11038#endif 11039 11040 ; 11041 return 0; 11042} 11043_ACEOF 11044if ac_fn_c_try_link "$LINENO"; then : 11045 found_openssl_with_psk="yes" 11046fi 11047rm -f core conftest.err conftest.$ac_objext \ 11048 conftest$ac_exeext conftest.$ac_ext 11049 11050 if test "x$found_openssl_with_psk" = "xyes"; then 11051 11052$as_echo "#define HAVE_OPENSSL_WITH_PSK 1" >>confdefs.h 11053 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11055$as_echo "yes" >&6; } 11056 found_openssl="OpenSSL" 11057 else 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11059$as_echo "no" >&6; } 11060 found_openssl="OpenSSL (PSK not supported)" 11061 fi 11062 11063 else 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11065$as_echo "no" >&6; } 11066 OPENSSL_CFLAGS="" 11067 OPENSSL_LDFLAGS="" 11068 OPENSSL_LIBS="" 11069 fi 11070 11071 CFLAGS="$am_save_cflags" 11072 LDFLAGS="$am_save_ldflags" 11073 LIBS="$am_save_libs" 11074 fi 11075 11076 11077 11078 11079 11080 11081if test "x$want_openssl" = "xyes"; then 11082 if test "x$have_tls" != "xno"; then 11083 as_fn_error $? "You can configure for only one TLS library (--with-mbedtls, --with-gnutls or --with-openssl)." "$LINENO" 5 11084 fi 11085 11086 if test "x$found_openssl" != "xOpenSSL" -a "x$found_openssl" != "xOpenSSL (PSK not supported)"; then 11087 as_fn_error $? "OpenSSL library libssl or libcrypto not found" "$LINENO" 5 11088 elif test "x$accept_openssl_version" != "xyes"; then 11089 as_fn_error $? "OpenSSL library version requirement not met (>= 1.0.1)" "$LINENO" 5 11090 else 11091 have_tls=$found_openssl 11092 fi 11093 TLS_CFLAGS="$OPENSSL_CFLAGS" 11094 TLS_LDFLAGS="$OPENSSL_LDFLAGS" 11095 TLS_LIBS="$OPENSSL_LIBS" 11096fi 11097 11098 11099SERVER_LDFLAGS="$SERVER_LDFLAGS $TLS_LDFLAGS" 11100SERVER_LIBS="$SERVER_LIBS $TLS_LIBS" 11101 11102PROXY_LDFLAGS="$PROXY_LDFLAGS $TLS_LDFLAGS" 11103PROXY_LIBS="$PROXY_LIBS $TLS_LIBS" 11104 11105AGENT_LDFLAGS="$AGENT_LDFLAGS $TLS_LDFLAGS" 11106AGENT_LIBS="$AGENT_LIBS $TLS_LIBS" 11107 11108ZBXGET_LDFLAGS="$ZBXGET_LDFLAGS $TLS_LDFLAGS" 11109ZBXGET_LIBS="$ZBXGET_LIBS $TLS_LIBS" 11110 11111SENDER_LDFLAGS="$SENDER_LDFLAGS $TLS_LDFLAGS" 11112SENDER_LIBS="$SENDER_LIBS $TLS_LIBS" 11113 11114if test "x$java" = "xyes"; then 11115 for ac_prog in javac 11116do 11117 # Extract the first word of "$ac_prog", so it can be a program name with args. 11118set dummy $ac_prog; ac_word=$2 11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11120$as_echo_n "checking for $ac_word... " >&6; } 11121if ${ac_cv_prog_JAVAC+:} false; then : 11122 $as_echo_n "(cached) " >&6 11123else 11124 if test -n "$JAVAC"; then 11125 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. 11126else 11127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11128for as_dir in $PATH 11129do 11130 IFS=$as_save_IFS 11131 test -z "$as_dir" && as_dir=. 11132 for ac_exec_ext in '' $ac_executable_extensions; do 11133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11134 ac_cv_prog_JAVAC="$ac_prog" 11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11136 break 2 11137 fi 11138done 11139 done 11140IFS=$as_save_IFS 11141 11142fi 11143fi 11144JAVAC=$ac_cv_prog_JAVAC 11145if test -n "$JAVAC"; then 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 11147$as_echo "$JAVAC" >&6; } 11148else 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11150$as_echo "no" >&6; } 11151fi 11152 11153 11154 test -n "$JAVAC" && break 11155done 11156test -n "$JAVAC" || JAVAC="no" 11157 11158 if test "x$JAVAC" = "xno"; then 11159 as_fn_error $? "Unable to find \"javac\" executable in path" "$LINENO" 5 11160 fi 11161 for ac_prog in jar 11162do 11163 # Extract the first word of "$ac_prog", so it can be a program name with args. 11164set dummy $ac_prog; ac_word=$2 11165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11166$as_echo_n "checking for $ac_word... " >&6; } 11167if ${ac_cv_prog_JAR+:} false; then : 11168 $as_echo_n "(cached) " >&6 11169else 11170 if test -n "$JAR"; then 11171 ac_cv_prog_JAR="$JAR" # Let the user override the test. 11172else 11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11174for as_dir in $PATH 11175do 11176 IFS=$as_save_IFS 11177 test -z "$as_dir" && as_dir=. 11178 for ac_exec_ext in '' $ac_executable_extensions; do 11179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11180 ac_cv_prog_JAR="$ac_prog" 11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11182 break 2 11183 fi 11184done 11185 done 11186IFS=$as_save_IFS 11187 11188fi 11189fi 11190JAR=$ac_cv_prog_JAR 11191if test -n "$JAR"; then 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 11193$as_echo "$JAR" >&6; } 11194else 11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11196$as_echo "no" >&6; } 11197fi 11198 11199 11200 test -n "$JAR" && break 11201done 11202test -n "$JAR" || JAR="no" 11203 11204 if test "x$JAR" = "xno"; then 11205 as_fn_error $? "Unable to find \"jar\" executable in path" "$LINENO" 5 11206 fi 11207fi 11208 11209found_ldap="no" 11210 11211 11212# Check whether --with-ldap was given. 11213if test "${with_ldap+set}" = set; then : 11214 withval=$with_ldap; if test "$withval" = "no"; then 11215 want_ldap="no" 11216 _libldap_with="no" 11217 elif test "$withval" = "yes"; then 11218 want_ldap="yes" 11219 _libldap_with="yes" 11220 else 11221 want_ldap="yes" 11222 _libldap_with=$withval 11223 fi 11224 11225else 11226 _libldap_with=no 11227fi 11228 11229 11230 if test "x$_libldap_with" != x"no"; then 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5 11232$as_echo_n "checking for LDAP support... " >&6; } 11233 11234 if test "$_libldap_with" = "yes"; then 11235 if test -f /usr/local/openldap/include/ldap.h; then 11236 LDAP_INCDIR=/usr/local/openldap/include/ 11237 LDAP_LIBDIR=/usr/local/openldap/lib/ 11238 found_ldap="yes" 11239 elif test -f /usr/include/ldap.h; then 11240 LDAP_INCDIR=/usr/include 11241 LDAP_LIBDIR=/usr/lib 11242 found_ldap="yes" 11243 elif test -f /usr/local/include/ldap.h; then 11244 LDAP_INCDIR=/usr/local/include 11245 LDAP_LIBDIR=/usr/local/lib 11246 found_ldap="yes" 11247 else 11248 found_ldap="no" 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11250$as_echo "no" >&6; } 11251 fi 11252 else 11253 if test -f $_libldap_with/include/ldap.h; then 11254 LDAP_INCDIR=$_libldap_with/include 11255 LDAP_LIBDIR=$_libldap_with/lib 11256 found_ldap="yes" 11257 else 11258 found_ldap="no" 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11260$as_echo "no" >&6; } 11261 fi 11262 fi 11263 11264 if test "x$found_ldap" != "xno"; then 11265 if test "x$enable_static" = "xyes"; then 11266 LDAP_LIBS=" -lgnutls -lpthread -lsasl2 $LDAP_LIBS" 11267 fi 11268 11269 LDAP_CPPFLAGS="-I$LDAP_INCDIR" 11270 LDAP_LDFLAGS="-L$LDAP_LIBDIR" 11271 LDAP_LIBS="-lldap -llber $LDAP_LIBS" 11272 11273 found_ldap="yes" 11274 11275$as_echo "#define HAVE_LDAP 1" >>confdefs.h 11276 11277 11278$as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h 11279 11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11281$as_echo "yes" >&6; } 11282 11283 if test "x$enable_static" = "xyes"; then 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgnutls" >&5 11285$as_echo_n "checking for main in -lgnutls... " >&6; } 11286if ${ac_cv_lib_gnutls_main+:} false; then : 11287 $as_echo_n "(cached) " >&6 11288else 11289 ac_check_lib_save_LIBS=$LIBS 11290LIBS="-lgnutls $LIBS" 11291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11292/* end confdefs.h. */ 11293 11294 11295int 11296main () 11297{ 11298return main (); 11299 ; 11300 return 0; 11301} 11302_ACEOF 11303if ac_fn_c_try_link "$LINENO"; then : 11304 ac_cv_lib_gnutls_main=yes 11305else 11306 ac_cv_lib_gnutls_main=no 11307fi 11308rm -f core conftest.err conftest.$ac_objext \ 11309 conftest$ac_exeext conftest.$ac_ext 11310LIBS=$ac_check_lib_save_LIBS 11311fi 11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_main" >&5 11313$as_echo "$ac_cv_lib_gnutls_main" >&6; } 11314if test "x$ac_cv_lib_gnutls_main" = xyes; then : 11315 cat >>confdefs.h <<_ACEOF 11316#define HAVE_LIBGNUTLS 1 11317_ACEOF 11318 11319 LIBS="-lgnutls $LIBS" 11320 11321else 11322 as_fn_error $? "Not found GnuTLS library" "$LINENO" 5 11323fi 11324 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 11326$as_echo_n "checking for main in -lpthread... " >&6; } 11327if ${ac_cv_lib_pthread_main+:} false; then : 11328 $as_echo_n "(cached) " >&6 11329else 11330 ac_check_lib_save_LIBS=$LIBS 11331LIBS="-lpthread $LIBS" 11332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11333/* end confdefs.h. */ 11334 11335 11336int 11337main () 11338{ 11339return main (); 11340 ; 11341 return 0; 11342} 11343_ACEOF 11344if ac_fn_c_try_link "$LINENO"; then : 11345 ac_cv_lib_pthread_main=yes 11346else 11347 ac_cv_lib_pthread_main=no 11348fi 11349rm -f core conftest.err conftest.$ac_objext \ 11350 conftest$ac_exeext conftest.$ac_ext 11351LIBS=$ac_check_lib_save_LIBS 11352fi 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5 11354$as_echo "$ac_cv_lib_pthread_main" >&6; } 11355if test "x$ac_cv_lib_pthread_main" = xyes; then : 11356 cat >>confdefs.h <<_ACEOF 11357#define HAVE_LIBPTHREAD 1 11358_ACEOF 11359 11360 LIBS="-lpthread $LIBS" 11361 11362else 11363 as_fn_error $? "Not found Pthread library" "$LINENO" 5 11364fi 11365 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsasl2" >&5 11367$as_echo_n "checking for main in -lsasl2... " >&6; } 11368if ${ac_cv_lib_sasl2_main+:} false; then : 11369 $as_echo_n "(cached) " >&6 11370else 11371 ac_check_lib_save_LIBS=$LIBS 11372LIBS="-lsasl2 $LIBS" 11373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11374/* end confdefs.h. */ 11375 11376 11377int 11378main () 11379{ 11380return main (); 11381 ; 11382 return 0; 11383} 11384_ACEOF 11385if ac_fn_c_try_link "$LINENO"; then : 11386 ac_cv_lib_sasl2_main=yes 11387else 11388 ac_cv_lib_sasl2_main=no 11389fi 11390rm -f core conftest.err conftest.$ac_objext \ 11391 conftest$ac_exeext conftest.$ac_ext 11392LIBS=$ac_check_lib_save_LIBS 11393fi 11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_main" >&5 11395$as_echo "$ac_cv_lib_sasl2_main" >&6; } 11396if test "x$ac_cv_lib_sasl2_main" = xyes; then : 11397 cat >>confdefs.h <<_ACEOF 11398#define HAVE_LIBSASL2 1 11399_ACEOF 11400 11401 LIBS="-lsasl2 $LIBS" 11402 11403else 11404 as_fn_error $? "Not found SASL2 library" "$LINENO" 5 11405fi 11406 11407 fi 11408 11409 fi 11410 fi 11411 11412 11413 11414 11415 11416 unset _libldap_with 11417 11418if test "x$want_ldap" = "xyes"; then 11419 if test "x$found_ldap" != "xyes"; then 11420 as_fn_error $? "Invalid LDAP directory - unable to find ldap.h" "$LINENO" 5 11421 fi 11422fi 11423SERVER_LDFLAGS="$SERVER_LDFLAGS $LDAP_LDFLAGS" 11424SERVER_LIBS="$SERVER_LIBS $LDAP_LIBS" 11425 11426PROXY_LDFLAGS="$PROXY_LDFLAGS $LDAP_LDFLAGS" 11427PROXY_LIBS="$PROXY_LIBS $LDAP_LIBS" 11428 11429AGENT_LDFLAGS="$AGENT_LDFLAGS $LDAP_LDFLAGS" 11430AGENT_LIBS="$AGENT_LIBS $LDAP_LIBS" 11431 11432 11433 11434found_curl="no" 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 _libcurl_config="no" 11456 11457 11458# Check whether --with-libcurl was given. 11459if test "${with_libcurl+set}" = set; then : 11460 withval=$with_libcurl; 11461 if test "x$withval" = "xno"; then 11462 want_curl="no" 11463 elif test "x$withval" = "xyes"; then 11464 want_curl="yes" 11465 else 11466 want_curl="yes" 11467 _libcurl_config=$withval 11468 fi 11469 11470else 11471 want_curl=no 11472fi 11473 11474 11475 if test "x$want_curl" != "xno"; then 11476 11477 for ac_prog in gawk mawk nawk awk 11478do 11479 # Extract the first word of "$ac_prog", so it can be a program name with args. 11480set dummy $ac_prog; ac_word=$2 11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11482$as_echo_n "checking for $ac_word... " >&6; } 11483if ${ac_cv_prog_AWK+:} false; then : 11484 $as_echo_n "(cached) " >&6 11485else 11486 if test -n "$AWK"; then 11487 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11488else 11489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11490for as_dir in $PATH 11491do 11492 IFS=$as_save_IFS 11493 test -z "$as_dir" && as_dir=. 11494 for ac_exec_ext in '' $ac_executable_extensions; do 11495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11496 ac_cv_prog_AWK="$ac_prog" 11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11498 break 2 11499 fi 11500done 11501 done 11502IFS=$as_save_IFS 11503 11504fi 11505fi 11506AWK=$ac_cv_prog_AWK 11507if test -n "$AWK"; then 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11509$as_echo "$AWK" >&6; } 11510else 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11512$as_echo "no" >&6; } 11513fi 11514 11515 11516 test -n "$AWK" && break 11517done 11518 11519 11520 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" 11521 11522 _libcurl_try_link=no 11523 11524 # Extract the first word of "curl-config", so it can be a program name with args. 11525set dummy curl-config; ac_word=$2 11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11527$as_echo_n "checking for $ac_word... " >&6; } 11528if ${ac_cv_path__libcurl_config+:} false; then : 11529 $as_echo_n "(cached) " >&6 11530else 11531 case $_libcurl_config in 11532 [\\/]* | ?:[\\/]*) 11533 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. 11534 ;; 11535 *) 11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11537for as_dir in $PATH 11538do 11539 IFS=$as_save_IFS 11540 test -z "$as_dir" && as_dir=. 11541 for ac_exec_ext in '' $ac_executable_extensions; do 11542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11543 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" 11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11545 break 2 11546 fi 11547done 11548 done 11549IFS=$as_save_IFS 11550 11551 ;; 11552esac 11553fi 11554_libcurl_config=$ac_cv_path__libcurl_config 11555if test -n "$_libcurl_config"; then 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 11557$as_echo "$_libcurl_config" >&6; } 11558else 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11560$as_echo "no" >&6; } 11561fi 11562 11563 11564 11565 if test -x "$_libcurl_config"; then 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 11567$as_echo_n "checking for the version of libcurl... " >&6; } 11568if ${libcurl_cv_lib_curl_version+:} false; then : 11569 $as_echo_n "(cached) " >&6 11570else 11571 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` 11572fi 11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 11574$as_echo "$libcurl_cv_lib_curl_version" >&6; } 11575 11576 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` 11577 _libcurl_wanted=`echo 7.13.1 | $_libcurl_version_parse` 11578 11579 if test $_libcurl_wanted -gt 0; then 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.13.1" >&5 11581$as_echo_n "checking for libcurl >= version 7.13.1... " >&6; } 11582if ${libcurl_cv_lib_version_ok+:} false; then : 11583 $as_echo_n "(cached) " >&6 11584else 11585 11586 if test $_libcurl_version -ge $_libcurl_wanted; then 11587 libcurl_cv_lib_version_ok=yes 11588 else 11589 libcurl_cv_lib_version_ok=no 11590 fi 11591 11592fi 11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 11594$as_echo "$libcurl_cv_lib_version_ok" >&6; } 11595 fi 11596 11597 if test $_libcurl_wanted -eq 0 || test "x$libcurl_cv_lib_version_ok" = "xyes"; then 11598 if test "x$LIBCURL_CFLAGS" = "x"; then 11599 LIBCURL_CFLAGS=`$_libcurl_config --cflags` 11600 fi 11601 if test "x$LIBCURL_LIBS" = "x"; then 11602 _full_libcurl_libs=`$_libcurl_config --libs` 11603 for i in $_full_libcurl_libs; do 11604 case $i in 11605 -L*) 11606 LIBCURL_LDFLAGS="$LIBCURL_LDFLAGS $i" 11607 ;; 11608 -l*) 11609 LIBCURL_LIBS="$LIBCURL_LIBS $i" 11610 ;; 11611 esac 11612 done 11613 11614 if test "x$enable_static" = "xyes"; then 11615 _full_libcurl_libs=`$_libcurl_config --static-libs` 11616 for i in $_full_libcurl_libs; do 11617 case $i in 11618 -lcurl) 11619 ;; 11620 -l*) 11621 _lib_name=`echo "$i" | cut -b3-` 11622 as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name ''_main" | $as_tr_sh` 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name " >&5 11624$as_echo_n "checking for main in -l$_lib_name ... " >&6; } 11625if eval \${$as_ac_Lib+:} false; then : 11626 $as_echo_n "(cached) " >&6 11627else 11628 ac_check_lib_save_LIBS=$LIBS 11629LIBS="-l$_lib_name $LIBS" 11630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11631/* end confdefs.h. */ 11632 11633 11634int 11635main () 11636{ 11637return main (); 11638 ; 11639 return 0; 11640} 11641_ACEOF 11642if ac_fn_c_try_link "$LINENO"; then : 11643 eval "$as_ac_Lib=yes" 11644else 11645 eval "$as_ac_Lib=no" 11646fi 11647rm -f core conftest.err conftest.$ac_objext \ 11648 conftest$ac_exeext conftest.$ac_ext 11649LIBS=$ac_check_lib_save_LIBS 11650fi 11651eval ac_res=\$$as_ac_Lib 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11653$as_echo "$ac_res" >&6; } 11654if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11655 11656 LIBCURL_LIBS="$LIBCURL_LIBS $i" 11657 11658else 11659 11660 as_fn_error $? "static library $_lib_name required for linking libcurl not found" "$LINENO" 5 11661 11662fi 11663 11664 11665 ;; 11666 esac 11667 done 11668 fi 11669 11670 _save_curl_cflags="$CFLAGS" 11671 _save_curl_ldflags="$LDFLAGS" 11672 _save_curl_libs="$LIBS" 11673 CFLAGS="$CFLAGS $LIBCURL_CFLAGS" 11674 LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS" 11675 LIBS="$LIBS $LIBCURL_LIBS" 11676 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurl" >&5 11678$as_echo_n "checking for main in -lcurl... " >&6; } 11679if ${ac_cv_lib_curl_main+:} false; then : 11680 $as_echo_n "(cached) " >&6 11681else 11682 ac_check_lib_save_LIBS=$LIBS 11683LIBS="-lcurl $LIBS" 11684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11685/* end confdefs.h. */ 11686 11687 11688int 11689main () 11690{ 11691return main (); 11692 ; 11693 return 0; 11694} 11695_ACEOF 11696if ac_fn_c_try_link "$LINENO"; then : 11697 ac_cv_lib_curl_main=yes 11698else 11699 ac_cv_lib_curl_main=no 11700fi 11701rm -f core conftest.err conftest.$ac_objext \ 11702 conftest$ac_exeext conftest.$ac_ext 11703LIBS=$ac_check_lib_save_LIBS 11704fi 11705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_main" >&5 11706$as_echo "$ac_cv_lib_curl_main" >&6; } 11707if test "x$ac_cv_lib_curl_main" = xyes; then : 11708 cat >>confdefs.h <<_ACEOF 11709#define HAVE_LIBCURL 1 11710_ACEOF 11711 11712 LIBS="-lcurl $LIBS" 11713 11714else 11715 as_fn_error $? "libcurl library not found" "$LINENO" 5 11716fi 11717 11718 11719 CFLAGS="$_save_curl_cflags" 11720 LDFLAGS="$_save_curl_ldflags" 11721 LIBS="$_save_curl_libs" 11722 unset _save_curl_cflags 11723 unset _save_curl_ldflags 11724 unset _save_curl_libs 11725 11726 # This is so silly, but Apple actually has a bug in their 11727 # curl-config script. Fixed in Tiger, but there are still 11728 # lots of Panther installs around. 11729 case "${host}" in 11730 powerpc-apple-darwin7*) 11731 LIBCURL_LIBS=`echo $LIBCURL_LIBS | sed -e 's|-arch i386||g'` 11732 ;; 11733 esac 11734 fi 11735 11736 # All curl-config scripts support --feature 11737 _libcurl_features=`$_libcurl_config --feature` 11738 11739 # Is it modern enough to have --protocols? (7.12.4) 11740 if test $_libcurl_version -ge 461828; then 11741 _libcurl_protocols=`$_libcurl_config --protocols` 11742 fi 11743 11744 _libcurl_try_link=yes 11745 fi 11746 11747 unset _libcurl_wanted 11748 fi 11749 if test "x$_libcurl_try_link" = "xyes"; then 11750 # we didn't find curl-config, so let's see if the user-supplied 11751 # link line (or failing that, "-lcurl") is enough. 11752 LIBCURL_LIBS=${LIBCURL_LIBS-"$_libcurl_libs -lcurl"} 11753 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 11755$as_echo_n "checking whether libcurl is usable... " >&6; } 11756if ${libcurl_cv_lib_curl_usable+:} false; then : 11757 $as_echo_n "(cached) " >&6 11758else 11759 11760 _save_curl_libs="${LIBS}" 11761 _save_curl_ldflags="${LDFLAGS}" 11762 _save_curl_cflags="${CFLAGS}" 11763 LIBS="${LIBS} ${LIBCURL_LIBS}" 11764 LDFLAGS="${LDFLAGS} ${LIBCURL_LDFLAGS}" 11765 CFLAGS="${CFLAGS} ${LIBCURL_CFLAGS}" 11766 11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11768/* end confdefs.h. */ 11769#include <curl/curl.h> 11770#ifndef NULL 11771#define NULL (void *)0 11772#endif 11773int 11774main () 11775{ 11776 11777/* Try and use a few common options to force a failure if we are 11778 missing symbols or can't link. */ 11779int x; 11780curl_easy_setopt(NULL,CURLOPT_URL,NULL); 11781x=CURL_ERROR_SIZE; 11782x=CURLOPT_WRITEFUNCTION; 11783x=CURLOPT_FILE; 11784x=CURLOPT_ERRORBUFFER; 11785x=CURLOPT_STDERR; 11786x=CURLOPT_VERBOSE; 11787 11788 ; 11789 return 0; 11790} 11791_ACEOF 11792if ac_fn_c_try_link "$LINENO"; then : 11793 libcurl_cv_lib_curl_usable=yes 11794else 11795 libcurl_cv_lib_curl_usable=no 11796fi 11797rm -f core conftest.err conftest.$ac_objext \ 11798 conftest$ac_exeext conftest.$ac_ext 11799 11800 LIBS="${_save_curl_libs}" 11801 LDFLAGS="${_save_curl_ldflags}" 11802 CFLAGS="${_save_curl_cflags}" 11803 unset _save_curl_libs 11804 unset _save_curl_ldflags 11805 unset _save_curl_cflags 11806 11807fi 11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 11809$as_echo "$libcurl_cv_lib_curl_usable" >&6; } 11810 11811 if test "x$libcurl_cv_lib_curl_usable" = "xno"; then 11812 link_mode="dynamic" 11813 if test "x$enable_static" = "xyes"; then 11814 link_mode="static" 11815 fi 11816 as_fn_error $? "libcurl is not available for ${link_mode} linking" "$LINENO" 5 11817 fi 11818 11819 # Does curl_free() exist in this version of libcurl? 11820 # If not, fake it with free() 11821 11822 _save_curl_libs="${LIBS}" 11823 _save_curl_ldflags="${LDFLAGS}" 11824 _save_curl_cflags="${CFLAGS}" 11825 LIBS="${LIBS} ${LIBCURL_LIBS}" 11826 LDFLAGS="${LDFLAGS} ${LIBCURL_LDFLAGS}" 11827 CFLAGS="${CFLAGS} ${LIBCURL_CFLAGS}" 11828 11829 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free" 11830if test "x$ac_cv_func_curl_free" = xyes; then : 11831 11832else 11833 11834$as_echo "#define curl_free free" >>confdefs.h 11835 11836fi 11837 11838 11839 ac_fn_c_check_func "$LINENO" "curl_easy_escape" "ac_cv_func_curl_easy_escape" 11840if test "x$ac_cv_func_curl_easy_escape" = xyes; then : 11841 11842$as_echo "#define HAVE_FUNCTION_CURL_EASY_ESCAPE 1" >>confdefs.h 11843 11844fi 11845 11846 11847 LIBS="${_save_curl_libs}" 11848 LDFLAGS="${_save_curl_ldflags}" 11849 CFLAGS="${_save_curl_cflags}" 11850 unset _save_curl_libs 11851 unset _save_curl_ldflags 11852 unset _save_curl_cflags 11853 11854 11855$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h 11856 11857 11858 11859 11860 found_curl="yes" 11861 11862 for _libcurl_feature in $_libcurl_features ; do 11863 cat >>confdefs.h <<_ACEOF 11864#define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 11865_ACEOF 11866 11867 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes 11868 done 11869 11870 if test "x$_libcurl_protocols" = "x"; then 11871 # We don't have --protocols, so just assume that all 11872 # protocols are available 11873 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT" 11874 11875 if test "x$libcurl_feature_SSL" = "xyes"; then 11876 _libcurl_protocols="$_libcurl_protocols HTTPS" 11877 11878 # FTPS wasn't standards-compliant until version 11879 # 7.11.0 11880 if test $_libcurl_version -ge 461568; then 11881 _libcurl_protocols="$_libcurl_protocols FTPS" 11882 fi 11883 fi 11884 fi 11885 11886 for _libcurl_protocol in $_libcurl_protocols ; do 11887 cat >>confdefs.h <<_ACEOF 11888#define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 11889_ACEOF 11890 11891 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes 11892 done 11893 else 11894 unset LIBCURL_LIBS 11895 unset LIBCURL_CFLAGS 11896 fi 11897 11898 unset _libcurl_try_link 11899 unset _libcurl_version_parse 11900 unset _libcurl_config 11901 unset _libcurl_feature 11902 unset _libcurl_features 11903 unset _libcurl_protocol 11904 unset _libcurl_protocols 11905 unset _libcurl_version 11906 unset _libcurl_libs 11907 fi 11908 11909 if test "x$want_curl" = "xno" || test "x$libcurl_cv_lib_curl_usable" != "xyes"; then 11910 # This is the IF-NO path 11911 : 11912 else 11913 # This is the IF-YES path 11914 : 11915 fi 11916 11917 11918if test "x$want_curl" = "xyes"; then 11919 if test "x$found_curl" != "xyes"; then 11920 as_fn_error $? "Curl library not found" "$LINENO" 5 11921 fi 11922fi 11923if test "x$found_curl" = "xyes"; then 11924 have_web_monitoring="cURL" 11925fi 11926CFLAGS="$LIBCURL_CFLAGS $CFLAGS" 11927 11928SERVER_LDFLAGS="$SERVER_LDFLAGS $LIBCURL_LDFLAGS" 11929SERVER_LIBS="$SERVER_LIBS $LIBCURL_LIBS" 11930 11931PROXY_LDFLAGS="$PROXY_LDFLAGS $LIBCURL_LDFLAGS" 11932PROXY_LIBS="$PROXY_LIBS $LIBCURL_LIBS" 11933 11934AGENT_LDFLAGS="$AGENT_LDFLAGS $LIBCURL_LDFLAGS" 11935AGENT_LIBS="$AGENT_LIBS $LIBCURL_LIBS" 11936 11937found_iconv="no" 11938 11939 11940# Check whether --with-iconv was given. 11941if test "${with_iconv+set}" = set; then : 11942 withval=$with_iconv; 11943 ICONV_CFLAGS="-I/$withval/include" 11944 ICONV_LDFLAGS="-L/$withval/lib" 11945 _iconv_dir_set="yes" 11946 11947 11948fi 11949 11950 11951 11952# Check whether --with-iconv-include was given. 11953if test "${with_iconv_include+set}" = set; then : 11954 withval=$with_iconv_include; 11955 ICONV_CFLAGS="-I/$withval" 11956 _iconv_dir_set="yes" 11957 11958 11959fi 11960 11961 11962 11963# Check whether --with-iconv-lib was given. 11964if test "${with_iconv_lib+set}" = set; then : 11965 withval=$with_iconv_lib; 11966 ICONV_LDFLAGS="-L/$withval" 11967 _iconv_dir_set="yes" 11968 11969 11970fi 11971 11972 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICONV support" >&5 11974$as_echo_n "checking for ICONV support... " >&6; } 11975 11976 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 11977if test "x$ac_cv_header_iconv_h" = xyes; then : 11978 found_iconv=yes 11979fi 11980 11981 11982 if test -n "$_iconv_dir_set" -o "x$found_iconv" = xyes; then 11983 found_iconv="yes" 11984 elif test -f /usr/local/include/iconv.h; then 11985 ICONV_CFLAGS="-I/usr/local/include" 11986 ICONV_LDFLAGS="-L/usr/local/lib" 11987 found_iconv="yes" 11988 else 11989 found_iconv="no" 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11991$as_echo "no" >&6; } 11992 fi 11993 11994 if test "x$found_iconv" = "xyes"; then 11995 am_save_CFLAGS="$CFLAGS" 11996 am_save_LDFLAGS="$LDFLAGS" 11997 11998 CFLAGS="$CFLAGS $ICONV_CFLAGS" 11999 LDFLAGS="$LDFLAGS $ICONV_LDFLAGS" 12000 12001 found_iconv="no" 12002 12003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12004/* end confdefs.h. */ 12005 12006#include <stdlib.h> 12007#include <iconv.h> 12008 12009int 12010main () 12011{ 12012 12013 iconv_t cd = iconv_open("",""); 12014 iconv(cd, NULL, NULL, NULL, NULL); 12015 iconv_close(cd); 12016 12017 ; 12018 return 0; 12019} 12020_ACEOF 12021if ac_fn_c_try_link "$LINENO"; then : 12022 found_iconv="yes" 12023fi 12024rm -f core conftest.err conftest.$ac_objext \ 12025 conftest$ac_exeext conftest.$ac_ext 12026 12027 12028 if test "x$found_iconv" = "xno"; then 12029 am_save_LIBS="$LIBS" 12030 LIBS="$LIBS -liconv" 12031 12032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12033/* end confdefs.h. */ 12034 12035#include <stdlib.h> 12036#include <iconv.h> 12037 12038int 12039main () 12040{ 12041 12042 iconv_t cd = iconv_open("",""); 12043 iconv(cd, NULL, NULL, NULL, NULL); 12044 iconv_close(cd); 12045 12046 ; 12047 return 0; 12048} 12049_ACEOF 12050if ac_fn_c_try_link "$LINENO"; then : 12051 found_iconv="yes" 12052fi 12053rm -f core conftest.err conftest.$ac_objext \ 12054 conftest$ac_exeext conftest.$ac_ext 12055 12056 LIBS="$am_save_LIBS" 12057 12058 if test "x$found_iconv" = "xyes"; then 12059 ICONV_LIBS="-liconv" 12060 fi 12061 fi 12062 12063 CFLAGS="$am_save_CFLAGS" 12064 LDFLAGS="$am_save_LDFLAGS" 12065 fi 12066 12067 if test "x$found_iconv" = "xyes"; then 12068 12069$as_echo "#define HAVE_ICONV 1" >>confdefs.h 12070 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12072$as_echo "yes" >&6; } 12073 else 12074 ICONV_CFLAGS="" 12075 ICONV_LDFLAGS="" 12076 fi 12077 12078 12079 12080 12081if test "x$found_iconv" != "xyes"; then 12082 as_fn_error $? "Unable to use iconv (libiconv check failed)" "$LINENO" 5 12083fi 12084LDFLAGS="$LDFLAGS $ICONV_LDFLAGS" 12085LIBS="$LIBS $ICONV_LIBS" 12086 12087 12088 12089RANLIB="ranlib" 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkdir -p candidate" >&5 12109$as_echo_n "checking for mkdir -p candidate... " >&6; } 12110if test "x${MKDIR_P}" = "x"; then 12111 if test "x${mkdir_p}" = "x"; then 12112 as_fn_error $? "No suitable \"mkdir -p\" candidate found." "$LINENO" 5 12113 fi 12114 MKDIR_P=${mkdir_p} 12115 12116fi 12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${MKDIR_P})" >&5 12118$as_echo "ok (${MKDIR_P})" >&6; } 12119 12120case "x$ARCH" in 12121 xlinux|xsolaris) 12122 12123$as_echo "#define ZBX_PROCSTAT_COLLECTOR 1 " >>confdefs.h 12124 12125 ;; 12126esac 12127 12128 12129 12130ac_config_files="$ac_config_files Makefile database/Makefile misc/Makefile src/Makefile src/libs/Makefile src/libs/zbxlog/Makefile src/libs/zbxalgo/Makefile src/libs/zbxmemory/Makefile src/libs/zbxcrypto/Makefile src/libs/zbxconf/Makefile src/libs/zbxdbcache/Makefile src/libs/zbxdbhigh/Makefile src/libs/zbxmedia/Makefile src/libs/zbxsysinfo/Makefile src/libs/zbxcommon/Makefile src/libs/zbxsysinfo/agent/Makefile src/libs/zbxsysinfo/common/Makefile src/libs/zbxsysinfo/simple/Makefile src/libs/zbxsysinfo/linux/Makefile src/libs/zbxsysinfo/aix/Makefile src/libs/zbxsysinfo/freebsd/Makefile src/libs/zbxsysinfo/hpux/Makefile src/libs/zbxsysinfo/openbsd/Makefile src/libs/zbxsysinfo/osx/Makefile src/libs/zbxsysinfo/solaris/Makefile src/libs/zbxsysinfo/osf/Makefile src/libs/zbxsysinfo/netbsd/Makefile src/libs/zbxsysinfo/unknown/Makefile src/libs/zbxnix/Makefile src/libs/zbxsys/Makefile src/libs/zbxcomms/Makefile src/libs/zbxcommshigh/Makefile src/libs/zbxdb/Makefile src/libs/zbxdbupgrade/Makefile src/libs/zbxjson/Makefile src/libs/zbxserver/Makefile src/libs/zbxicmpping/Makefile src/libs/zbxexec/Makefile src/libs/zbxself/Makefile src/libs/zbxmodules/Makefile src/libs/zbxregexp/Makefile src/zabbix_agent/Makefile src/zabbix_get/Makefile src/zabbix_sender/Makefile src/zabbix_server/Makefile src/zabbix_server/alerter/Makefile src/zabbix_server/dbsyncer/Makefile src/zabbix_server/dbconfig/Makefile src/zabbix_server/discoverer/Makefile src/zabbix_server/housekeeper/Makefile src/zabbix_server/httppoller/Makefile src/zabbix_server/pinger/Makefile src/zabbix_server/poller/Makefile src/zabbix_server/snmptrapper/Makefile src/zabbix_server/timer/Makefile src/zabbix_server/trapper/Makefile src/zabbix_server/watchdog/Makefile src/zabbix_server/escalator/Makefile src/zabbix_server/proxypoller/Makefile src/zabbix_server/selfmon/Makefile src/zabbix_server/vmware/Makefile src/zabbix_proxy/Makefile src/zabbix_proxy/heart/Makefile src/zabbix_proxy/housekeeper/Makefile src/zabbix_proxy/proxyconfig/Makefile src/zabbix_proxy/datasender/Makefile src/zabbix_java/Makefile upgrades/Makefile man/Makefile" 12131 12132cat >confcache <<\_ACEOF 12133# This file is a shell script that caches the results of configure 12134# tests run on this system so they can be shared between configure 12135# scripts and configure runs, see configure's option --config-cache. 12136# It is not useful on other systems. If it contains results you don't 12137# want to keep, you may remove or edit it. 12138# 12139# config.status only pays attention to the cache file if you give it 12140# the --recheck option to rerun configure. 12141# 12142# `ac_cv_env_foo' variables (set or unset) will be overridden when 12143# loading this file, other *unset* `ac_cv_foo' will be assigned the 12144# following values. 12145 12146_ACEOF 12147 12148# The following way of writing the cache mishandles newlines in values, 12149# but we know of no workaround that is simple, portable, and efficient. 12150# So, we kill variables containing newlines. 12151# Ultrix sh set writes to stderr and can't be redirected directly, 12152# and sets the high bit in the cache file unless we assign to the vars. 12153( 12154 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12155 eval ac_val=\$$ac_var 12156 case $ac_val in #( 12157 *${as_nl}*) 12158 case $ac_var in #( 12159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12160$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12161 esac 12162 case $ac_var in #( 12163 _ | IFS | as_nl) ;; #( 12164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12165 *) { eval $ac_var=; unset $ac_var;} ;; 12166 esac ;; 12167 esac 12168 done 12169 12170 (set) 2>&1 | 12171 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12172 *${as_nl}ac_space=\ *) 12173 # `set' does not quote correctly, so add quotes: double-quote 12174 # substitution turns \\\\ into \\, and sed turns \\ into \. 12175 sed -n \ 12176 "s/'/'\\\\''/g; 12177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12178 ;; #( 12179 *) 12180 # `set' quotes correctly as required by POSIX, so do not add quotes. 12181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12182 ;; 12183 esac | 12184 sort 12185) | 12186 sed ' 12187 /^ac_cv_env_/b end 12188 t clear 12189 :clear 12190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12191 t end 12192 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12193 :end' >>confcache 12194if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12195 if test -w "$cache_file"; then 12196 if test "x$cache_file" != "x/dev/null"; then 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12198$as_echo "$as_me: updating cache $cache_file" >&6;} 12199 if test ! -f "$cache_file" || test -h "$cache_file"; then 12200 cat confcache >"$cache_file" 12201 else 12202 case $cache_file in #( 12203 */* | ?:*) 12204 mv -f confcache "$cache_file"$$ && 12205 mv -f "$cache_file"$$ "$cache_file" ;; #( 12206 *) 12207 mv -f confcache "$cache_file" ;; 12208 esac 12209 fi 12210 fi 12211 else 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12213$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12214 fi 12215fi 12216rm -f confcache 12217 12218test "x$prefix" = xNONE && prefix=$ac_default_prefix 12219# Let make expand exec_prefix. 12220test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12221 12222DEFS=-DHAVE_CONFIG_H 12223 12224ac_libobjs= 12225ac_ltlibobjs= 12226for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12227 # 1. Remove the extension, and $U if already installed. 12228 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12229 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12230 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12231 # will be set to the directory where LIBOBJS objects are built. 12232 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12233 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12234done 12235LIBOBJS=$ac_libobjs 12236 12237LTLIBOBJS=$ac_ltlibobjs 12238 12239 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12241$as_echo_n "checking that generated files are newer than configure... " >&6; } 12242 if test -n "$am_sleep_pid"; then 12243 # Hide warnings about reused PIDs. 12244 wait $am_sleep_pid 2>/dev/null 12245 fi 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12247$as_echo "done" >&6; } 12248 if test -n "$EXEEXT"; then 12249 am__EXEEXT_TRUE= 12250 am__EXEEXT_FALSE='#' 12251else 12252 am__EXEEXT_TRUE='#' 12253 am__EXEEXT_FALSE= 12254fi 12255 12256if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12257 as_fn_error $? "conditional \"AMDEP\" was never defined. 12258Usually this means the macro was only invoked conditionally." "$LINENO" 5 12259fi 12260if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12261 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12262Usually this means the macro was only invoked conditionally." "$LINENO" 5 12263fi 12264if test -z "${SERVER_TRUE}" && test -z "${SERVER_FALSE}"; then 12265 as_fn_error $? "conditional \"SERVER\" was never defined. 12266Usually this means the macro was only invoked conditionally." "$LINENO" 5 12267fi 12268if test -z "${PROXY_TRUE}" && test -z "${PROXY_FALSE}"; then 12269 as_fn_error $? "conditional \"PROXY\" was never defined. 12270Usually this means the macro was only invoked conditionally." "$LINENO" 5 12271fi 12272if test -z "${AGENT_TRUE}" && test -z "${AGENT_FALSE}"; then 12273 as_fn_error $? "conditional \"AGENT\" was never defined. 12274Usually this means the macro was only invoked conditionally." "$LINENO" 5 12275fi 12276if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then 12277 as_fn_error $? "conditional \"JAVA\" was never defined. 12278Usually this means the macro was only invoked conditionally." "$LINENO" 5 12279fi 12280 12281: "${CONFIG_STATUS=./config.status}" 12282ac_write_fail=0 12283ac_clean_files_save=$ac_clean_files 12284ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12286$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12287as_write_fail=0 12288cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12289#! $SHELL 12290# Generated by $as_me. 12291# Run this file to recreate the current configuration. 12292# Compiler output produced by configure, useful for debugging 12293# configure, is in config.log if it exists. 12294 12295debug=false 12296ac_cs_recheck=false 12297ac_cs_silent=false 12298 12299SHELL=\${CONFIG_SHELL-$SHELL} 12300export SHELL 12301_ASEOF 12302cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12303## -------------------- ## 12304## M4sh Initialization. ## 12305## -------------------- ## 12306 12307# Be more Bourne compatible 12308DUALCASE=1; export DUALCASE # for MKS sh 12309if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12310 emulate sh 12311 NULLCMD=: 12312 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12313 # is contrary to our usage. Disable this feature. 12314 alias -g '${1+"$@"}'='"$@"' 12315 setopt NO_GLOB_SUBST 12316else 12317 case `(set -o) 2>/dev/null` in #( 12318 *posix*) : 12319 set -o posix ;; #( 12320 *) : 12321 ;; 12322esac 12323fi 12324 12325 12326as_nl=' 12327' 12328export as_nl 12329# Printing a long string crashes Solaris 7 /usr/bin/printf. 12330as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12331as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12332as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12333# Prefer a ksh shell builtin over an external printf program on Solaris, 12334# but without wasting forks for bash or zsh. 12335if test -z "$BASH_VERSION$ZSH_VERSION" \ 12336 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12337 as_echo='print -r --' 12338 as_echo_n='print -rn --' 12339elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12340 as_echo='printf %s\n' 12341 as_echo_n='printf %s' 12342else 12343 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12344 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12345 as_echo_n='/usr/ucb/echo -n' 12346 else 12347 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12348 as_echo_n_body='eval 12349 arg=$1; 12350 case $arg in #( 12351 *"$as_nl"*) 12352 expr "X$arg" : "X\\(.*\\)$as_nl"; 12353 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12354 esac; 12355 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12356 ' 12357 export as_echo_n_body 12358 as_echo_n='sh -c $as_echo_n_body as_echo' 12359 fi 12360 export as_echo_body 12361 as_echo='sh -c $as_echo_body as_echo' 12362fi 12363 12364# The user is always right. 12365if test "${PATH_SEPARATOR+set}" != set; then 12366 PATH_SEPARATOR=: 12367 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12368 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12369 PATH_SEPARATOR=';' 12370 } 12371fi 12372 12373 12374# IFS 12375# We need space, tab and new line, in precisely that order. Quoting is 12376# there to prevent editors from complaining about space-tab. 12377# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12378# splitting by setting IFS to empty value.) 12379IFS=" "" $as_nl" 12380 12381# Find who we are. Look in the path if we contain no directory separator. 12382as_myself= 12383case $0 in #(( 12384 *[\\/]* ) as_myself=$0 ;; 12385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12386for as_dir in $PATH 12387do 12388 IFS=$as_save_IFS 12389 test -z "$as_dir" && as_dir=. 12390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12391 done 12392IFS=$as_save_IFS 12393 12394 ;; 12395esac 12396# We did not find ourselves, most probably we were run as `sh COMMAND' 12397# in which case we are not to be found in the path. 12398if test "x$as_myself" = x; then 12399 as_myself=$0 12400fi 12401if test ! -f "$as_myself"; then 12402 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12403 exit 1 12404fi 12405 12406# Unset variables that we do not need and which cause bugs (e.g. in 12407# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12408# suppresses any "Segmentation fault" message there. '((' could 12409# trigger a bug in pdksh 5.2.14. 12410for as_var in BASH_ENV ENV MAIL MAILPATH 12411do eval test x\${$as_var+set} = xset \ 12412 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12413done 12414PS1='$ ' 12415PS2='> ' 12416PS4='+ ' 12417 12418# NLS nuisances. 12419LC_ALL=C 12420export LC_ALL 12421LANGUAGE=C 12422export LANGUAGE 12423 12424# CDPATH. 12425(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12426 12427 12428# as_fn_error STATUS ERROR [LINENO LOG_FD] 12429# ---------------------------------------- 12430# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12431# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12432# script with STATUS, using 1 if that was 0. 12433as_fn_error () 12434{ 12435 as_status=$1; test $as_status -eq 0 && as_status=1 12436 if test "$4"; then 12437 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12438 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12439 fi 12440 $as_echo "$as_me: error: $2" >&2 12441 as_fn_exit $as_status 12442} # as_fn_error 12443 12444 12445# as_fn_set_status STATUS 12446# ----------------------- 12447# Set $? to STATUS, without forking. 12448as_fn_set_status () 12449{ 12450 return $1 12451} # as_fn_set_status 12452 12453# as_fn_exit STATUS 12454# ----------------- 12455# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12456as_fn_exit () 12457{ 12458 set +e 12459 as_fn_set_status $1 12460 exit $1 12461} # as_fn_exit 12462 12463# as_fn_unset VAR 12464# --------------- 12465# Portably unset VAR. 12466as_fn_unset () 12467{ 12468 { eval $1=; unset $1;} 12469} 12470as_unset=as_fn_unset 12471# as_fn_append VAR VALUE 12472# ---------------------- 12473# Append the text in VALUE to the end of the definition contained in VAR. Take 12474# advantage of any shell optimizations that allow amortized linear growth over 12475# repeated appends, instead of the typical quadratic growth present in naive 12476# implementations. 12477if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12478 eval 'as_fn_append () 12479 { 12480 eval $1+=\$2 12481 }' 12482else 12483 as_fn_append () 12484 { 12485 eval $1=\$$1\$2 12486 } 12487fi # as_fn_append 12488 12489# as_fn_arith ARG... 12490# ------------------ 12491# Perform arithmetic evaluation on the ARGs, and store the result in the 12492# global $as_val. Take advantage of shells that can avoid forks. The arguments 12493# must be portable across $(()) and expr. 12494if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12495 eval 'as_fn_arith () 12496 { 12497 as_val=$(( $* )) 12498 }' 12499else 12500 as_fn_arith () 12501 { 12502 as_val=`expr "$@" || test $? -eq 1` 12503 } 12504fi # as_fn_arith 12505 12506 12507if expr a : '\(a\)' >/dev/null 2>&1 && 12508 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12509 as_expr=expr 12510else 12511 as_expr=false 12512fi 12513 12514if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12515 as_basename=basename 12516else 12517 as_basename=false 12518fi 12519 12520if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12521 as_dirname=dirname 12522else 12523 as_dirname=false 12524fi 12525 12526as_me=`$as_basename -- "$0" || 12527$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12528 X"$0" : 'X\(//\)$' \| \ 12529 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12530$as_echo X/"$0" | 12531 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12532 s//\1/ 12533 q 12534 } 12535 /^X\/\(\/\/\)$/{ 12536 s//\1/ 12537 q 12538 } 12539 /^X\/\(\/\).*/{ 12540 s//\1/ 12541 q 12542 } 12543 s/.*/./; q'` 12544 12545# Avoid depending upon Character Ranges. 12546as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12547as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12548as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12549as_cr_digits='0123456789' 12550as_cr_alnum=$as_cr_Letters$as_cr_digits 12551 12552ECHO_C= ECHO_N= ECHO_T= 12553case `echo -n x` in #((((( 12554-n*) 12555 case `echo 'xy\c'` in 12556 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12557 xy) ECHO_C='\c';; 12558 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12559 ECHO_T=' ';; 12560 esac;; 12561*) 12562 ECHO_N='-n';; 12563esac 12564 12565rm -f conf$$ conf$$.exe conf$$.file 12566if test -d conf$$.dir; then 12567 rm -f conf$$.dir/conf$$.file 12568else 12569 rm -f conf$$.dir 12570 mkdir conf$$.dir 2>/dev/null 12571fi 12572if (echo >conf$$.file) 2>/dev/null; then 12573 if ln -s conf$$.file conf$$ 2>/dev/null; then 12574 as_ln_s='ln -s' 12575 # ... but there are two gotchas: 12576 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12577 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12578 # In both cases, we have to default to `cp -pR'. 12579 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12580 as_ln_s='cp -pR' 12581 elif ln conf$$.file conf$$ 2>/dev/null; then 12582 as_ln_s=ln 12583 else 12584 as_ln_s='cp -pR' 12585 fi 12586else 12587 as_ln_s='cp -pR' 12588fi 12589rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12590rmdir conf$$.dir 2>/dev/null 12591 12592 12593# as_fn_mkdir_p 12594# ------------- 12595# Create "$as_dir" as a directory, including parents if necessary. 12596as_fn_mkdir_p () 12597{ 12598 12599 case $as_dir in #( 12600 -*) as_dir=./$as_dir;; 12601 esac 12602 test -d "$as_dir" || eval $as_mkdir_p || { 12603 as_dirs= 12604 while :; do 12605 case $as_dir in #( 12606 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12607 *) as_qdir=$as_dir;; 12608 esac 12609 as_dirs="'$as_qdir' $as_dirs" 12610 as_dir=`$as_dirname -- "$as_dir" || 12611$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12612 X"$as_dir" : 'X\(//\)[^/]' \| \ 12613 X"$as_dir" : 'X\(//\)$' \| \ 12614 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12615$as_echo X"$as_dir" | 12616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12617 s//\1/ 12618 q 12619 } 12620 /^X\(\/\/\)[^/].*/{ 12621 s//\1/ 12622 q 12623 } 12624 /^X\(\/\/\)$/{ 12625 s//\1/ 12626 q 12627 } 12628 /^X\(\/\).*/{ 12629 s//\1/ 12630 q 12631 } 12632 s/.*/./; q'` 12633 test -d "$as_dir" && break 12634 done 12635 test -z "$as_dirs" || eval "mkdir $as_dirs" 12636 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12637 12638 12639} # as_fn_mkdir_p 12640if mkdir -p . 2>/dev/null; then 12641 as_mkdir_p='mkdir -p "$as_dir"' 12642else 12643 test -d ./-p && rmdir ./-p 12644 as_mkdir_p=false 12645fi 12646 12647 12648# as_fn_executable_p FILE 12649# ----------------------- 12650# Test if FILE is an executable regular file. 12651as_fn_executable_p () 12652{ 12653 test -f "$1" && test -x "$1" 12654} # as_fn_executable_p 12655as_test_x='test -x' 12656as_executable_p=as_fn_executable_p 12657 12658# Sed expression to map a string onto a valid CPP name. 12659as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12660 12661# Sed expression to map a string onto a valid variable name. 12662as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12663 12664 12665exec 6>&1 12666## ----------------------------------- ## 12667## Main body of $CONFIG_STATUS script. ## 12668## ----------------------------------- ## 12669_ASEOF 12670test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12671 12672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12673# Save the log message, to keep $0 and so on meaningful, and to 12674# report actual input values of CONFIG_FILES etc. instead of their 12675# values after options handling. 12676ac_log=" 12677This file was extended by Zabbix $as_me 3.0.32, which was 12678generated by GNU Autoconf 2.69. Invocation command line was 12679 12680 CONFIG_FILES = $CONFIG_FILES 12681 CONFIG_HEADERS = $CONFIG_HEADERS 12682 CONFIG_LINKS = $CONFIG_LINKS 12683 CONFIG_COMMANDS = $CONFIG_COMMANDS 12684 $ $0 $@ 12685 12686on `(hostname || uname -n) 2>/dev/null | sed 1q` 12687" 12688 12689_ACEOF 12690 12691case $ac_config_files in *" 12692"*) set x $ac_config_files; shift; ac_config_files=$*;; 12693esac 12694 12695case $ac_config_headers in *" 12696"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12697esac 12698 12699 12700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12701# Files that config.status was made for. 12702config_files="$ac_config_files" 12703config_headers="$ac_config_headers" 12704config_commands="$ac_config_commands" 12705 12706_ACEOF 12707 12708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12709ac_cs_usage="\ 12710\`$as_me' instantiates files and other configuration actions 12711from templates according to the current configuration. Unless the files 12712and actions are specified as TAGs, all are instantiated by default. 12713 12714Usage: $0 [OPTION]... [TAG]... 12715 12716 -h, --help print this help, then exit 12717 -V, --version print version number and configuration settings, then exit 12718 --config print configuration, then exit 12719 -q, --quiet, --silent 12720 do not print progress messages 12721 -d, --debug don't remove temporary files 12722 --recheck update $as_me by reconfiguring in the same conditions 12723 --file=FILE[:TEMPLATE] 12724 instantiate the configuration file FILE 12725 --header=FILE[:TEMPLATE] 12726 instantiate the configuration header FILE 12727 12728Configuration files: 12729$config_files 12730 12731Configuration headers: 12732$config_headers 12733 12734Configuration commands: 12735$config_commands 12736 12737Report bugs to the package provider." 12738 12739_ACEOF 12740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12741ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12742ac_cs_version="\\ 12743Zabbix config.status 3.0.32 12744configured by $0, generated by GNU Autoconf 2.69, 12745 with options \\"\$ac_cs_config\\" 12746 12747Copyright (C) 2012 Free Software Foundation, Inc. 12748This config.status script is free software; the Free Software Foundation 12749gives unlimited permission to copy, distribute and modify it." 12750 12751ac_pwd='$ac_pwd' 12752srcdir='$srcdir' 12753INSTALL='$INSTALL' 12754MKDIR_P='$MKDIR_P' 12755AWK='$AWK' 12756test -n "\$AWK" || AWK=awk 12757_ACEOF 12758 12759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12760# The default lists apply if the user does not specify any file. 12761ac_need_defaults=: 12762while test $# != 0 12763do 12764 case $1 in 12765 --*=?*) 12766 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12767 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12768 ac_shift=: 12769 ;; 12770 --*=) 12771 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12772 ac_optarg= 12773 ac_shift=: 12774 ;; 12775 *) 12776 ac_option=$1 12777 ac_optarg=$2 12778 ac_shift=shift 12779 ;; 12780 esac 12781 12782 case $ac_option in 12783 # Handling of the options. 12784 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12785 ac_cs_recheck=: ;; 12786 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12787 $as_echo "$ac_cs_version"; exit ;; 12788 --config | --confi | --conf | --con | --co | --c ) 12789 $as_echo "$ac_cs_config"; exit ;; 12790 --debug | --debu | --deb | --de | --d | -d ) 12791 debug=: ;; 12792 --file | --fil | --fi | --f ) 12793 $ac_shift 12794 case $ac_optarg in 12795 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12796 '') as_fn_error $? "missing file argument" ;; 12797 esac 12798 as_fn_append CONFIG_FILES " '$ac_optarg'" 12799 ac_need_defaults=false;; 12800 --header | --heade | --head | --hea ) 12801 $ac_shift 12802 case $ac_optarg in 12803 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12804 esac 12805 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12806 ac_need_defaults=false;; 12807 --he | --h) 12808 # Conflict between --help and --header 12809 as_fn_error $? "ambiguous option: \`$1' 12810Try \`$0 --help' for more information.";; 12811 --help | --hel | -h ) 12812 $as_echo "$ac_cs_usage"; exit ;; 12813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12814 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12815 ac_cs_silent=: ;; 12816 12817 # This is an error. 12818 -*) as_fn_error $? "unrecognized option: \`$1' 12819Try \`$0 --help' for more information." ;; 12820 12821 *) as_fn_append ac_config_targets " $1" 12822 ac_need_defaults=false ;; 12823 12824 esac 12825 shift 12826done 12827 12828ac_configure_extra_args= 12829 12830if $ac_cs_silent; then 12831 exec 6>/dev/null 12832 ac_configure_extra_args="$ac_configure_extra_args --silent" 12833fi 12834 12835_ACEOF 12836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12837if \$ac_cs_recheck; then 12838 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12839 shift 12840 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12841 CONFIG_SHELL='$SHELL' 12842 export CONFIG_SHELL 12843 exec "\$@" 12844fi 12845 12846_ACEOF 12847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12848exec 5>>config.log 12849{ 12850 echo 12851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12852## Running $as_me. ## 12853_ASBOX 12854 $as_echo "$ac_log" 12855} >&5 12856 12857_ACEOF 12858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12859# 12860# INIT-COMMANDS 12861# 12862AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12863 12864_ACEOF 12865 12866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12867 12868# Handling of arguments. 12869for ac_config_target in $ac_config_targets 12870do 12871 case $ac_config_target in 12872 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 12873 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12874 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12875 "database/Makefile") CONFIG_FILES="$CONFIG_FILES database/Makefile" ;; 12876 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; 12877 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12878 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;; 12879 "src/libs/zbxlog/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxlog/Makefile" ;; 12880 "src/libs/zbxalgo/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxalgo/Makefile" ;; 12881 "src/libs/zbxmemory/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxmemory/Makefile" ;; 12882 "src/libs/zbxcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcrypto/Makefile" ;; 12883 "src/libs/zbxconf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxconf/Makefile" ;; 12884 "src/libs/zbxdbcache/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdbcache/Makefile" ;; 12885 "src/libs/zbxdbhigh/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdbhigh/Makefile" ;; 12886 "src/libs/zbxmedia/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxmedia/Makefile" ;; 12887 "src/libs/zbxsysinfo/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/Makefile" ;; 12888 "src/libs/zbxcommon/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcommon/Makefile" ;; 12889 "src/libs/zbxsysinfo/agent/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/agent/Makefile" ;; 12890 "src/libs/zbxsysinfo/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/common/Makefile" ;; 12891 "src/libs/zbxsysinfo/simple/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/simple/Makefile" ;; 12892 "src/libs/zbxsysinfo/linux/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/linux/Makefile" ;; 12893 "src/libs/zbxsysinfo/aix/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/aix/Makefile" ;; 12894 "src/libs/zbxsysinfo/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/freebsd/Makefile" ;; 12895 "src/libs/zbxsysinfo/hpux/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/hpux/Makefile" ;; 12896 "src/libs/zbxsysinfo/openbsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/openbsd/Makefile" ;; 12897 "src/libs/zbxsysinfo/osx/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/osx/Makefile" ;; 12898 "src/libs/zbxsysinfo/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/solaris/Makefile" ;; 12899 "src/libs/zbxsysinfo/osf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/osf/Makefile" ;; 12900 "src/libs/zbxsysinfo/netbsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/netbsd/Makefile" ;; 12901 "src/libs/zbxsysinfo/unknown/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/unknown/Makefile" ;; 12902 "src/libs/zbxnix/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxnix/Makefile" ;; 12903 "src/libs/zbxsys/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsys/Makefile" ;; 12904 "src/libs/zbxcomms/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcomms/Makefile" ;; 12905 "src/libs/zbxcommshigh/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcommshigh/Makefile" ;; 12906 "src/libs/zbxdb/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdb/Makefile" ;; 12907 "src/libs/zbxdbupgrade/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdbupgrade/Makefile" ;; 12908 "src/libs/zbxjson/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxjson/Makefile" ;; 12909 "src/libs/zbxserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxserver/Makefile" ;; 12910 "src/libs/zbxicmpping/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxicmpping/Makefile" ;; 12911 "src/libs/zbxexec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxexec/Makefile" ;; 12912 "src/libs/zbxself/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxself/Makefile" ;; 12913 "src/libs/zbxmodules/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxmodules/Makefile" ;; 12914 "src/libs/zbxregexp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxregexp/Makefile" ;; 12915 "src/zabbix_agent/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_agent/Makefile" ;; 12916 "src/zabbix_get/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_get/Makefile" ;; 12917 "src/zabbix_sender/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_sender/Makefile" ;; 12918 "src/zabbix_server/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/Makefile" ;; 12919 "src/zabbix_server/alerter/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/alerter/Makefile" ;; 12920 "src/zabbix_server/dbsyncer/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/dbsyncer/Makefile" ;; 12921 "src/zabbix_server/dbconfig/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/dbconfig/Makefile" ;; 12922 "src/zabbix_server/discoverer/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/discoverer/Makefile" ;; 12923 "src/zabbix_server/housekeeper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/housekeeper/Makefile" ;; 12924 "src/zabbix_server/httppoller/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/httppoller/Makefile" ;; 12925 "src/zabbix_server/pinger/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/pinger/Makefile" ;; 12926 "src/zabbix_server/poller/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/poller/Makefile" ;; 12927 "src/zabbix_server/snmptrapper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/snmptrapper/Makefile" ;; 12928 "src/zabbix_server/timer/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/timer/Makefile" ;; 12929 "src/zabbix_server/trapper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/trapper/Makefile" ;; 12930 "src/zabbix_server/watchdog/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/watchdog/Makefile" ;; 12931 "src/zabbix_server/escalator/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/escalator/Makefile" ;; 12932 "src/zabbix_server/proxypoller/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/proxypoller/Makefile" ;; 12933 "src/zabbix_server/selfmon/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/selfmon/Makefile" ;; 12934 "src/zabbix_server/vmware/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/vmware/Makefile" ;; 12935 "src/zabbix_proxy/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/Makefile" ;; 12936 "src/zabbix_proxy/heart/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/heart/Makefile" ;; 12937 "src/zabbix_proxy/housekeeper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/housekeeper/Makefile" ;; 12938 "src/zabbix_proxy/proxyconfig/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/proxyconfig/Makefile" ;; 12939 "src/zabbix_proxy/datasender/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/datasender/Makefile" ;; 12940 "src/zabbix_java/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_java/Makefile" ;; 12941 "upgrades/Makefile") CONFIG_FILES="$CONFIG_FILES upgrades/Makefile" ;; 12942 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12943 12944 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12945 esac 12946done 12947 12948 12949# If the user did not use the arguments to specify the items to instantiate, 12950# then the envvar interface is used. Set only those that are not. 12951# We use the long form for the default assignment because of an extremely 12952# bizarre bug on SunOS 4.1.3. 12953if $ac_need_defaults; then 12954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12955 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12956 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12957fi 12958 12959# Have a temporary directory for convenience. Make it in the build tree 12960# simply because there is no reason against having it here, and in addition, 12961# creating and moving files from /tmp can sometimes cause problems. 12962# Hook for its removal unless debugging. 12963# Note that there is a small window in which the directory will not be cleaned: 12964# after its creation but before its name has been assigned to `$tmp'. 12965$debug || 12966{ 12967 tmp= ac_tmp= 12968 trap 'exit_status=$? 12969 : "${ac_tmp:=$tmp}" 12970 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12971' 0 12972 trap 'as_fn_exit 1' 1 2 13 15 12973} 12974# Create a (secure) tmp directory for tmp files. 12975 12976{ 12977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12978 test -d "$tmp" 12979} || 12980{ 12981 tmp=./conf$$-$RANDOM 12982 (umask 077 && mkdir "$tmp") 12983} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12984ac_tmp=$tmp 12985 12986# Set up the scripts for CONFIG_FILES section. 12987# No need to generate them if there are no CONFIG_FILES. 12988# This happens for instance with `./config.status config.h'. 12989if test -n "$CONFIG_FILES"; then 12990 12991 12992ac_cr=`echo X | tr X '\015'` 12993# On cygwin, bash can eat \r inside `` if the user requested igncr. 12994# But we know of no other shell where ac_cr would be empty at this 12995# point, so we can use a bashism as a fallback. 12996if test "x$ac_cr" = x; then 12997 eval ac_cr=\$\'\\r\' 12998fi 12999ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13000if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13001 ac_cs_awk_cr='\\r' 13002else 13003 ac_cs_awk_cr=$ac_cr 13004fi 13005 13006echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13007_ACEOF 13008 13009 13010{ 13011 echo "cat >conf$$subs.awk <<_ACEOF" && 13012 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13013 echo "_ACEOF" 13014} >conf$$subs.sh || 13015 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13016ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13017ac_delim='%!_!# ' 13018for ac_last_try in false false false false false :; do 13019 . ./conf$$subs.sh || 13020 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13021 13022 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13023 if test $ac_delim_n = $ac_delim_num; then 13024 break 13025 elif $ac_last_try; then 13026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13027 else 13028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13029 fi 13030done 13031rm -f conf$$subs.sh 13032 13033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13034cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13035_ACEOF 13036sed -n ' 13037h 13038s/^/S["/; s/!.*/"]=/ 13039p 13040g 13041s/^[^!]*!// 13042:repl 13043t repl 13044s/'"$ac_delim"'$// 13045t delim 13046:nl 13047h 13048s/\(.\{148\}\)..*/\1/ 13049t more1 13050s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13051p 13052n 13053b repl 13054:more1 13055s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13056p 13057g 13058s/.\{148\}// 13059t nl 13060:delim 13061h 13062s/\(.\{148\}\)..*/\1/ 13063t more2 13064s/["\\]/\\&/g; s/^/"/; s/$/"/ 13065p 13066b 13067:more2 13068s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13069p 13070g 13071s/.\{148\}// 13072t delim 13073' <conf$$subs.awk | sed ' 13074/^[^""]/{ 13075 N 13076 s/\n// 13077} 13078' >>$CONFIG_STATUS || ac_write_fail=1 13079rm -f conf$$subs.awk 13080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13081_ACAWK 13082cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13083 for (key in S) S_is_set[key] = 1 13084 FS = "" 13085 13086} 13087{ 13088 line = $ 0 13089 nfields = split(line, field, "@") 13090 substed = 0 13091 len = length(field[1]) 13092 for (i = 2; i < nfields; i++) { 13093 key = field[i] 13094 keylen = length(key) 13095 if (S_is_set[key]) { 13096 value = S[key] 13097 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13098 len += length(value) + length(field[++i]) 13099 substed = 1 13100 } else 13101 len += 1 + keylen 13102 } 13103 13104 print line 13105} 13106 13107_ACAWK 13108_ACEOF 13109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13110if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13111 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13112else 13113 cat 13114fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13115 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13116_ACEOF 13117 13118# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13119# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13120# trailing colons and then remove the whole line if VPATH becomes empty 13121# (actually we leave an empty line to preserve line numbers). 13122if test "x$srcdir" = x.; then 13123 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13124h 13125s/// 13126s/^/:/ 13127s/[ ]*$/:/ 13128s/:\$(srcdir):/:/g 13129s/:\${srcdir}:/:/g 13130s/:@srcdir@:/:/g 13131s/^:*// 13132s/:*$// 13133x 13134s/\(=[ ]*\).*/\1/ 13135G 13136s/\n// 13137s/^[^=]*=[ ]*$// 13138}' 13139fi 13140 13141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13142fi # test -n "$CONFIG_FILES" 13143 13144# Set up the scripts for CONFIG_HEADERS section. 13145# No need to generate them if there are no CONFIG_HEADERS. 13146# This happens for instance with `./config.status Makefile'. 13147if test -n "$CONFIG_HEADERS"; then 13148cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13149BEGIN { 13150_ACEOF 13151 13152# Transform confdefs.h into an awk script `defines.awk', embedded as 13153# here-document in config.status, that substitutes the proper values into 13154# config.h.in to produce config.h. 13155 13156# Create a delimiter string that does not exist in confdefs.h, to ease 13157# handling of long lines. 13158ac_delim='%!_!# ' 13159for ac_last_try in false false :; do 13160 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13161 if test -z "$ac_tt"; then 13162 break 13163 elif $ac_last_try; then 13164 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13165 else 13166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13167 fi 13168done 13169 13170# For the awk script, D is an array of macro values keyed by name, 13171# likewise P contains macro parameters if any. Preserve backslash 13172# newline sequences. 13173 13174ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13175sed -n ' 13176s/.\{148\}/&'"$ac_delim"'/g 13177t rset 13178:rset 13179s/^[ ]*#[ ]*define[ ][ ]*/ / 13180t def 13181d 13182:def 13183s/\\$// 13184t bsnl 13185s/["\\]/\\&/g 13186s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13187D["\1"]=" \3"/p 13188s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13189d 13190:bsnl 13191s/["\\]/\\&/g 13192s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13193D["\1"]=" \3\\\\\\n"\\/p 13194t cont 13195s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13196t cont 13197d 13198:cont 13199n 13200s/.\{148\}/&'"$ac_delim"'/g 13201t clear 13202:clear 13203s/\\$// 13204t bsnlc 13205s/["\\]/\\&/g; s/^/"/; s/$/"/p 13206d 13207:bsnlc 13208s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13209b cont 13210' <confdefs.h | sed ' 13211s/'"$ac_delim"'/"\\\ 13212"/g' >>$CONFIG_STATUS || ac_write_fail=1 13213 13214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13215 for (key in D) D_is_set[key] = 1 13216 FS = "" 13217} 13218/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13219 line = \$ 0 13220 split(line, arg, " ") 13221 if (arg[1] == "#") { 13222 defundef = arg[2] 13223 mac1 = arg[3] 13224 } else { 13225 defundef = substr(arg[1], 2) 13226 mac1 = arg[2] 13227 } 13228 split(mac1, mac2, "(") #) 13229 macro = mac2[1] 13230 prefix = substr(line, 1, index(line, defundef) - 1) 13231 if (D_is_set[macro]) { 13232 # Preserve the white space surrounding the "#". 13233 print prefix "define", macro P[macro] D[macro] 13234 next 13235 } else { 13236 # Replace #undef with comments. This is necessary, for example, 13237 # in the case of _POSIX_SOURCE, which is predefined and required 13238 # on some systems where configure will not decide to define it. 13239 if (defundef == "undef") { 13240 print "/*", prefix defundef, macro, "*/" 13241 next 13242 } 13243 } 13244} 13245{ print } 13246_ACAWK 13247_ACEOF 13248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13249 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13250fi # test -n "$CONFIG_HEADERS" 13251 13252 13253eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13254shift 13255for ac_tag 13256do 13257 case $ac_tag in 13258 :[FHLC]) ac_mode=$ac_tag; continue;; 13259 esac 13260 case $ac_mode$ac_tag in 13261 :[FHL]*:*);; 13262 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13263 :[FH]-) ac_tag=-:-;; 13264 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13265 esac 13266 ac_save_IFS=$IFS 13267 IFS=: 13268 set x $ac_tag 13269 IFS=$ac_save_IFS 13270 shift 13271 ac_file=$1 13272 shift 13273 13274 case $ac_mode in 13275 :L) ac_source=$1;; 13276 :[FH]) 13277 ac_file_inputs= 13278 for ac_f 13279 do 13280 case $ac_f in 13281 -) ac_f="$ac_tmp/stdin";; 13282 *) # Look for the file first in the build tree, then in the source tree 13283 # (if the path is not absolute). The absolute path cannot be DOS-style, 13284 # because $ac_f cannot contain `:'. 13285 test -f "$ac_f" || 13286 case $ac_f in 13287 [\\/$]*) false;; 13288 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13289 esac || 13290 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13291 esac 13292 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13293 as_fn_append ac_file_inputs " '$ac_f'" 13294 done 13295 13296 # Let's still pretend it is `configure' which instantiates (i.e., don't 13297 # use $as_me), people would be surprised to read: 13298 # /* config.h. Generated by config.status. */ 13299 configure_input='Generated from '` 13300 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13301 `' by configure.' 13302 if test x"$ac_file" != x-; then 13303 configure_input="$ac_file. $configure_input" 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13305$as_echo "$as_me: creating $ac_file" >&6;} 13306 fi 13307 # Neutralize special characters interpreted by sed in replacement strings. 13308 case $configure_input in #( 13309 *\&* | *\|* | *\\* ) 13310 ac_sed_conf_input=`$as_echo "$configure_input" | 13311 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13312 *) ac_sed_conf_input=$configure_input;; 13313 esac 13314 13315 case $ac_tag in 13316 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13318 esac 13319 ;; 13320 esac 13321 13322 ac_dir=`$as_dirname -- "$ac_file" || 13323$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13324 X"$ac_file" : 'X\(//\)[^/]' \| \ 13325 X"$ac_file" : 'X\(//\)$' \| \ 13326 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13327$as_echo X"$ac_file" | 13328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13329 s//\1/ 13330 q 13331 } 13332 /^X\(\/\/\)[^/].*/{ 13333 s//\1/ 13334 q 13335 } 13336 /^X\(\/\/\)$/{ 13337 s//\1/ 13338 q 13339 } 13340 /^X\(\/\).*/{ 13341 s//\1/ 13342 q 13343 } 13344 s/.*/./; q'` 13345 as_dir="$ac_dir"; as_fn_mkdir_p 13346 ac_builddir=. 13347 13348case "$ac_dir" in 13349.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13350*) 13351 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13352 # A ".." for each directory in $ac_dir_suffix. 13353 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13354 case $ac_top_builddir_sub in 13355 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13356 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13357 esac ;; 13358esac 13359ac_abs_top_builddir=$ac_pwd 13360ac_abs_builddir=$ac_pwd$ac_dir_suffix 13361# for backward compatibility: 13362ac_top_builddir=$ac_top_build_prefix 13363 13364case $srcdir in 13365 .) # We are building in place. 13366 ac_srcdir=. 13367 ac_top_srcdir=$ac_top_builddir_sub 13368 ac_abs_top_srcdir=$ac_pwd ;; 13369 [\\/]* | ?:[\\/]* ) # Absolute name. 13370 ac_srcdir=$srcdir$ac_dir_suffix; 13371 ac_top_srcdir=$srcdir 13372 ac_abs_top_srcdir=$srcdir ;; 13373 *) # Relative name. 13374 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13375 ac_top_srcdir=$ac_top_build_prefix$srcdir 13376 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13377esac 13378ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13379 13380 13381 case $ac_mode in 13382 :F) 13383 # 13384 # CONFIG_FILE 13385 # 13386 13387 case $INSTALL in 13388 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13389 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13390 esac 13391 ac_MKDIR_P=$MKDIR_P 13392 case $MKDIR_P in 13393 [\\/$]* | ?:[\\/]* ) ;; 13394 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13395 esac 13396_ACEOF 13397 13398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13399# If the template does not know about datarootdir, expand it. 13400# FIXME: This hack should be removed a few years after 2.60. 13401ac_datarootdir_hack=; ac_datarootdir_seen= 13402ac_sed_dataroot=' 13403/datarootdir/ { 13404 p 13405 q 13406} 13407/@datadir@/p 13408/@docdir@/p 13409/@infodir@/p 13410/@localedir@/p 13411/@mandir@/p' 13412case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13413*datarootdir*) ac_datarootdir_seen=yes;; 13414*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13416$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13417_ACEOF 13418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13419 ac_datarootdir_hack=' 13420 s&@datadir@&$datadir&g 13421 s&@docdir@&$docdir&g 13422 s&@infodir@&$infodir&g 13423 s&@localedir@&$localedir&g 13424 s&@mandir@&$mandir&g 13425 s&\\\${datarootdir}&$datarootdir&g' ;; 13426esac 13427_ACEOF 13428 13429# Neutralize VPATH when `$srcdir' = `.'. 13430# Shell code in configure.ac might set extrasub. 13431# FIXME: do we really want to maintain this feature? 13432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13433ac_sed_extra="$ac_vpsub 13434$extrasub 13435_ACEOF 13436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13437:t 13438/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13439s|@configure_input@|$ac_sed_conf_input|;t t 13440s&@top_builddir@&$ac_top_builddir_sub&;t t 13441s&@top_build_prefix@&$ac_top_build_prefix&;t t 13442s&@srcdir@&$ac_srcdir&;t t 13443s&@abs_srcdir@&$ac_abs_srcdir&;t t 13444s&@top_srcdir@&$ac_top_srcdir&;t t 13445s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13446s&@builddir@&$ac_builddir&;t t 13447s&@abs_builddir@&$ac_abs_builddir&;t t 13448s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13449s&@INSTALL@&$ac_INSTALL&;t t 13450s&@MKDIR_P@&$ac_MKDIR_P&;t t 13451$ac_datarootdir_hack 13452" 13453eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13454 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13455 13456test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13457 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13458 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13459 "$ac_tmp/out"`; test -z "$ac_out"; } && 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13461which seems to be undefined. Please make sure it is defined" >&5 13462$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13463which seems to be undefined. Please make sure it is defined" >&2;} 13464 13465 rm -f "$ac_tmp/stdin" 13466 case $ac_file in 13467 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13468 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13469 esac \ 13470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13471 ;; 13472 :H) 13473 # 13474 # CONFIG_HEADER 13475 # 13476 if test x"$ac_file" != x-; then 13477 { 13478 $as_echo "/* $configure_input */" \ 13479 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13480 } >"$ac_tmp/config.h" \ 13481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13482 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13484$as_echo "$as_me: $ac_file is unchanged" >&6;} 13485 else 13486 rm -f "$ac_file" 13487 mv "$ac_tmp/config.h" "$ac_file" \ 13488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13489 fi 13490 else 13491 $as_echo "/* $configure_input */" \ 13492 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13493 || as_fn_error $? "could not create -" "$LINENO" 5 13494 fi 13495# Compute "$ac_file"'s index in $config_headers. 13496_am_arg="$ac_file" 13497_am_stamp_count=1 13498for _am_header in $config_headers :; do 13499 case $_am_header in 13500 $_am_arg | $_am_arg:* ) 13501 break ;; 13502 * ) 13503 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13504 esac 13505done 13506echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13507$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13508 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13509 X"$_am_arg" : 'X\(//\)$' \| \ 13510 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13511$as_echo X"$_am_arg" | 13512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13513 s//\1/ 13514 q 13515 } 13516 /^X\(\/\/\)[^/].*/{ 13517 s//\1/ 13518 q 13519 } 13520 /^X\(\/\/\)$/{ 13521 s//\1/ 13522 q 13523 } 13524 /^X\(\/\).*/{ 13525 s//\1/ 13526 q 13527 } 13528 s/.*/./; q'`/stamp-h$_am_stamp_count 13529 ;; 13530 13531 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13532$as_echo "$as_me: executing $ac_file commands" >&6;} 13533 ;; 13534 esac 13535 13536 13537 case $ac_file$ac_mode in 13538 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13539 # Older Autoconf quotes --file arguments for eval, but not when files 13540 # are listed without --file. Let's play safe and only enable the eval 13541 # if we detect the quoting. 13542 case $CONFIG_FILES in 13543 *\'*) eval set x "$CONFIG_FILES" ;; 13544 *) set x $CONFIG_FILES ;; 13545 esac 13546 shift 13547 for mf 13548 do 13549 # Strip MF so we end up with the name of the file. 13550 mf=`echo "$mf" | sed -e 's/:.*$//'` 13551 # Check whether this is an Automake generated Makefile or not. 13552 # We used to match only the files named 'Makefile.in', but 13553 # some people rename them; so instead we look at the file content. 13554 # Grep'ing the first line is not enough: some people post-process 13555 # each Makefile.in and add a new line on top of each file to say so. 13556 # Grep'ing the whole file is not good either: AIX grep has a line 13557 # limit of 2048, but all sed's we know have understand at least 4000. 13558 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13559 dirpart=`$as_dirname -- "$mf" || 13560$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13561 X"$mf" : 'X\(//\)[^/]' \| \ 13562 X"$mf" : 'X\(//\)$' \| \ 13563 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13564$as_echo X"$mf" | 13565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13566 s//\1/ 13567 q 13568 } 13569 /^X\(\/\/\)[^/].*/{ 13570 s//\1/ 13571 q 13572 } 13573 /^X\(\/\/\)$/{ 13574 s//\1/ 13575 q 13576 } 13577 /^X\(\/\).*/{ 13578 s//\1/ 13579 q 13580 } 13581 s/.*/./; q'` 13582 else 13583 continue 13584 fi 13585 # Extract the definition of DEPDIR, am__include, and am__quote 13586 # from the Makefile without running 'make'. 13587 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13588 test -z "$DEPDIR" && continue 13589 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13590 test -z "$am__include" && continue 13591 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13592 # Find all dependency output files, they are included files with 13593 # $(DEPDIR) in their names. We invoke sed twice because it is the 13594 # simplest approach to changing $(DEPDIR) to its actual value in the 13595 # expansion. 13596 for file in `sed -n " 13597 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13598 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 13599 # Make sure the directory exists. 13600 test -f "$dirpart/$file" && continue 13601 fdir=`$as_dirname -- "$file" || 13602$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13603 X"$file" : 'X\(//\)[^/]' \| \ 13604 X"$file" : 'X\(//\)$' \| \ 13605 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13606$as_echo X"$file" | 13607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13608 s//\1/ 13609 q 13610 } 13611 /^X\(\/\/\)[^/].*/{ 13612 s//\1/ 13613 q 13614 } 13615 /^X\(\/\/\)$/{ 13616 s//\1/ 13617 q 13618 } 13619 /^X\(\/\).*/{ 13620 s//\1/ 13621 q 13622 } 13623 s/.*/./; q'` 13624 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13625 # echo "creating $dirpart/$file" 13626 echo '# dummy' > "$dirpart/$file" 13627 done 13628 done 13629} 13630 ;; 13631 13632 esac 13633done # for ac_tag 13634 13635 13636as_fn_exit 0 13637_ACEOF 13638ac_clean_files=$ac_clean_files_save 13639 13640test $ac_write_fail = 0 || 13641 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13642 13643 13644# configure is writing to config.log, and then calls config.status. 13645# config.status does its own redirection, appending to config.log. 13646# Unfortunately, on DOS this fails, as config.log is still kept open 13647# by configure, so config.status won't be able to write to it; its 13648# output is simply discarded. So we exec the FD to /dev/null, 13649# effectively closing config.log, so it can be properly (re)opened and 13650# appended to by config.status. When coming back to configure, we 13651# need to make the FD available again. 13652if test "$no_create" != yes; then 13653 ac_cs_success=: 13654 ac_config_status_args= 13655 test "$silent" = yes && 13656 ac_config_status_args="$ac_config_status_args --quiet" 13657 exec 5>/dev/null 13658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13659 exec 5>>config.log 13660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13661 # would make configure fail if this is the last instruction. 13662 $ac_cs_success || as_fn_exit 1 13663fi 13664if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13666$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13667fi 13668 13669 13670echo " 13671 13672Configuration: 13673 13674 Detected OS: ${host_os} 13675 Install path: ${prefix} 13676 Compilation arch: ${ARCH} 13677 13678 Compiler: ${CC} 13679 Compiler flags: ${CFLAGS} 13680 13681 Library-specific flags:" 13682 13683if test "x$DB_CFLAGS" != "x"; then 13684 echo " database: ${DB_CFLAGS}" 13685fi 13686 13687if test "x$JABBER_CPPFLAGS" != "x"; then 13688 echo " Jabber: ${JABBER_CPPFLAGS}" 13689fi 13690 13691if test "x$LIBXML2_CFLAGS" != "x"; then 13692 echo " libXML2: ${LIBXML2_CFLAGS}" 13693fi 13694 13695if test "x$UNIXODBC_CFLAGS" != "x"; then 13696 echo " unixODBC: ${UNIXODBC_CFLAGS}" 13697fi 13698 13699if test "x$SNMP_CFLAGS" != "x"; then 13700 echo " Net-SNMP: ${SNMP_CFLAGS}" 13701fi 13702 13703if test "x$OPENIPMI_CFLAGS" != "x"; then 13704 echo " OpenIPMI: ${OPENIPMI_CFLAGS}" 13705fi 13706 13707if test "x$SSH2_CFLAGS" != "x"; then 13708 echo " libssh2: ${SSH2_CFLAGS}" 13709fi 13710 13711if test "x$TLS_CFLAGS" != "x"; then 13712 echo " TLS: ${TLS_CFLAGS}" 13713fi 13714 13715if test "x$LDAP_CPPFLAGS" != "x"; then 13716 echo " LDAP: ${LDAP_CPPFLAGS}" 13717fi 13718 13719if test "x$ICONV_CFLAGS" != "x"; then 13720 echo " iconv: ${ICONV_CFLAGS}" 13721fi 13722 13723echo " 13724 Enable server: ${server}" 13725 13726if test "x$server" != "xno"; then 13727 13728echo " Server details: 13729 With database: ${have_db} 13730 WEB Monitoring: ${have_web_monitoring} 13731 Native Jabber: ${have_jabber} 13732 SNMP: ${have_snmp} 13733 IPMI: ${have_ipmi} 13734 SSH: ${have_ssh2} 13735 TLS: ${have_tls} 13736 ODBC: ${have_unixodbc} 13737 Linker flags: ${SERVER_LDFLAGS} ${LDFLAGS} 13738 Libraries: ${SERVER_LIBS} ${LIBS}" 13739 13740fi 13741 13742echo " 13743 Enable proxy: ${proxy}" 13744 13745if test "x$proxy" != "xno"; then 13746 13747echo " Proxy details: 13748 With database: ${have_db} 13749 WEB Monitoring: ${have_web_monitoring} 13750 SNMP: ${have_snmp} 13751 IPMI: ${have_ipmi} 13752 SSH: ${have_ssh2} 13753 TLS: ${have_tls} 13754 ODBC: ${have_unixodbc} 13755 Linker flags: ${PROXY_LDFLAGS} ${LDFLAGS} 13756 Libraries: ${PROXY_LIBS} ${LIBS}" 13757 13758fi 13759 13760echo " 13761 Enable agent: ${agent}" 13762 13763if test "x$agent" != "xno"; then 13764 13765echo " Agent details: 13766 TLS: ${have_tls} 13767 Linker flags: ${AGENT_LDFLAGS} ${LDFLAGS} 13768 Libraries: ${AGENT_LIBS} ${LIBS}" 13769 13770fi 13771 13772echo " 13773 Enable Java gateway: ${java}" 13774 13775if test "x$java" != "xno"; then 13776 13777echo " Java gateway details: 13778 Java compiler: ${JAVAC} 13779 Java archiver: ${JAR}" 13780 13781fi 13782 13783echo " 13784 LDAP support: ${found_ldap} 13785 IPv6 support: ${have_ipv6}" 13786 13787echo 13788echo "***********************************************************" 13789echo "* Now run '${am_make} install' *" 13790echo "* *" 13791echo "* Thank you for using Zabbix! *" 13792echo "* <http://www.zabbix.com> *" 13793echo "***********************************************************" 13794echo 13795