bm_rec

configure

Nov 10th, 2017
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 389.32 KB | None | 0 0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for Zabbix 3.4.3.
  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
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if 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
  24. else
  25.   case `(set -o) 2>/dev/null` in #(
  26.   *posix*) :
  27.     set -o posix ;; #(
  28.   *) :
  29.      ;;
  30. esac
  31. fi
  32.  
  33.  
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_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.
  43. if 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 --'
  47. elif (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'
  50. else
  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'
  70. fi
  71.  
  72. # The user is always right.
  73. if 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.   }
  79. fi
  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.)
  87. IFS=" ""    $as_nl"
  88.  
  89. # Find who we are.  Look in the path if we contain no directory separator.
  90. as_myself=
  91. case $0 in #((
  92.   *[\\/]* ) as_myself=$0 ;;
  93.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  94. for as_dir in $PATH
  95. do
  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
  100. IFS=$as_save_IFS
  101.  
  102.      ;;
  103. esac
  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.
  106. if test "x$as_myself" = x; then
  107.   as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  111.   exit 1
  112. fi
  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.
  118. for as_var in BASH_ENV ENV MAIL MAILPATH
  119. do eval test x\${$as_var+set} = xset \
  120.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  121. done
  122. PS1='$ '
  123. PS2='> '
  124. PS4='+ '
  125.  
  126. # NLS nuisances.
  127. LC_ALL=C
  128. export LC_ALL
  129. LANGUAGE=C
  130. export 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.
  143. BASH_ENV=/dev/null
  144. ENV=/dev/null
  145. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  146. case $- in # ((((
  147.   *v*x* | *x*v* ) as_opts=-vx ;;
  148.   *v* ) as_opts=-v ;;
  149.   *x* ) as_opts=-x ;;
  150.   * ) as_opts= ;;
  151. esac
  152. exec $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
  156. as_fn_exit 255
  157.   fi
  158.   # We don't want this to propagate to other subprocesses.
  159.           { _as_can_reexec=; unset _as_can_reexec;}
  160. if 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
  168. else
  169.  case \`(set -o) 2>/dev/null\` in #(
  170.  *posix*) :
  171.    set -o posix ;; #(
  172.  *) :
  173.     ;;
  174. esac
  175. fi
  176. "
  177.   as_required="as_fn_return () { (exit \$1); }
  178. as_fn_success () { as_fn_return 0; }
  179. as_fn_failure () { as_fn_return 1; }
  180. as_fn_ret_success () { return 0; }
  181. as_fn_ret_failure () { return 1; }
  182.  
  183. exitcode=0
  184. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  185. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  186. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  187. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  188. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  189.  
  190. else
  191.  exitcode=1; echo positional parameters were not saved.
  192. fi
  193. test x\$exitcode = x0 || exit 1
  194. test -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
  199. test \$(( 1 + 1 )) = 2 || exit 1"
  200.   if (eval "$as_required") 2>/dev/null; then :
  201.   as_have_required=yes
  202. else
  203.   as_have_required=no
  204. fi
  205.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  206.  
  207. else
  208.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  209. as_found=false
  210. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  211. do
  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
  225. fi
  226. fi
  227.        done;;
  228.        esac
  229.   as_found=false
  230. done
  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
  234. fi; }
  235. IFS=$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.
  244. BASH_ENV=/dev/null
  245. ENV=/dev/null
  246. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  247. case $- in # ((((
  248.   *v*x* | *x*v* ) as_opts=-vx ;;
  249.   *v* ) as_opts=-v ;;
  250.   *x* ) as_opts=-x ;;
  251.   * ) as_opts= ;;
  252. esac
  253. exec $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
  257. exit 255
  258. fi
  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
  273. fi
  274. fi
  275. fi
  276. SHELL=${CONFIG_SHELL-/bin/sh}
  277. export SHELL
  278. # Unset more variables known to interfere with behavior of common tools.
  279. CLICOLOR_FORCE= GREP_OPTIONS=
  280. unset CLICOLOR_FORCE GREP_OPTIONS
  281.  
  282. ## --------------------- ##
  283. ## M4sh Shell Functions. ##
  284. ## --------------------- ##
  285. # as_fn_unset VAR
  286. # ---------------
  287. # Portably unset VAR.
  288. as_fn_unset ()
  289. {
  290.   { eval $1=; unset $1;}
  291. }
  292. as_unset=as_fn_unset
  293.  
  294. # as_fn_set_status STATUS
  295. # -----------------------
  296. # Set $? to STATUS, without forking.
  297. as_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.
  305. as_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.
  315. as_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.
  363. as_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.
  373. if (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.  }'
  378. else
  379.   as_fn_append ()
  380.   {
  381.     eval $1=\$$1\$2
  382.   }
  383. fi # 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.
  390. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  391.   eval 'as_fn_arith ()
  392.  {
  393.    as_val=$(( $* ))
  394.  }'
  395. else
  396.   as_fn_arith ()
  397.   {
  398.     as_val=`expr "$@" || test $? -eq 1`
  399.   }
  400. fi # 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.
  408. as_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.  
  419. if expr a : '\(a\)' >/dev/null 2>&1 &&
  420.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  421.   as_expr=expr
  422. else
  423.   as_expr=false
  424. fi
  425.  
  426. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  427.   as_basename=basename
  428. else
  429.   as_basename=false
  430. fi
  431.  
  432. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  433.   as_dirname=dirname
  434. else
  435.   as_dirname=false
  436. fi
  437.  
  438. as_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.
  458. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  459. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  460. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  461. as_cr_digits='0123456789'
  462. as_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.  
  500. ECHO_C= ECHO_N= ECHO_T=
  501. case `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';;
  511. esac
  512.  
  513. rm -f conf$$ conf$$.exe conf$$.file
  514. if test -d conf$$.dir; then
  515.   rm -f conf$$.dir/conf$$.file
  516. else
  517.   rm -f conf$$.dir
  518.   mkdir conf$$.dir 2>/dev/null
  519. fi
  520. if (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
  534. else
  535.   as_ln_s='cp -pR'
  536. fi
  537. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  538. rmdir conf$$.dir 2>/dev/null
  539.  
  540. if mkdir -p . 2>/dev/null; then
  541.   as_mkdir_p='mkdir -p "$as_dir"'
  542. else
  543.   test -d ./-p && rmdir ./-p
  544.   as_mkdir_p=false
  545. fi
  546.  
  547. as_test_x='test -x'
  548. as_executable_p=as_fn_executable_p
  549.  
  550. # Sed expression to map a string onto a valid CPP name.
  551. as_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.
  554. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  555.  
  556.  
  557. test -n "$DJDIR" || exec 7<&0 </dev/null
  558. exec 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.
  563. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  564.  
  565. #
  566. # Initializations.
  567. #
  568. ac_default_prefix=/usr/local
  569. ac_clean_files=
  570. ac_config_libobj_dir=.
  571. LIBOBJS=
  572. cross_compiling=no
  573. subdirs=
  574. MFLAGS=
  575. MAKEFLAGS=
  576.  
  577. # Identity of this package.
  578. PACKAGE_NAME='Zabbix'
  579. PACKAGE_TARNAME='zabbix'
  580. PACKAGE_VERSION='3.4.3'
  581. PACKAGE_STRING='Zabbix 3.4.3'
  582. PACKAGE_BUGREPORT=''
  583. PACKAGE_URL=''
  584.  
  585. ac_unique_file="src/zabbix_server/server.c"
  586. # Factoring default headers for most tests.
  587. ac_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.  
  622. ac_subst_vars='am__EXEEXT_FALSE
  623. am__EXEEXT_TRUE
  624. LTLIBOBJS
  625. SENDER_LIBS
  626. SENDER_LDFLAGS
  627. ZBXGET_LIBS
  628. ZBXGET_LDFLAGS
  629. AGENT_LIBS
  630. AGENT_LDFLAGS
  631. PROXY_LIBS
  632. PROXY_LDFLAGS
  633. SERVER_LIBS
  634. SERVER_LDFLAGS
  635. RANLIB
  636. ICONV_LDFLAGS
  637. ICONV_CFLAGS
  638. LIBCURL_LIBS
  639. LIBCURL_LDFLAGS
  640. LIBCURL_CFLAGS
  641. _libcurl_config
  642. LDAP_LIBS
  643. LDAP_LDFLAGS
  644. LDAP_CPPFLAGS
  645. JAR
  646. JAVAC
  647. TLS_CFLAGS
  648. OPENSSL_LIBS
  649. OPENSSL_LDFLAGS
  650. OPENSSL_CFLAGS
  651. GNUTLS_LIBS
  652. GNUTLS_LDFLAGS
  653. GNUTLS_CFLAGS
  654. MBEDTLS_LIBS
  655. MBEDTLS_LDFLAGS
  656. MBEDTLS_CFLAGS
  657. LIBPCRE_LIBS
  658. LIBPCRE_LDFLAGS
  659. LIBPCRE_CFLAGS
  660. LIBEVENT_LIBS
  661. LIBEVENT_LDFLAGS
  662. LIBEVENT_CFLAGS
  663. PROXY_IPCSERVICE_FALSE
  664. PROXY_IPCSERVICE_TRUE
  665. OPENIPMI_LIBS
  666. OPENIPMI_LDFLAGS
  667. OPENIPMI_CFLAGS
  668. SSH2_LIBS
  669. SSH2_LDFLAGS
  670. SSH2_CFLAGS
  671. SNMP_LIBS
  672. SNMP_LDFLAGS
  673. SNMP_CFLAGS
  674. _libnetsnmp_config
  675. UNIXODBC_LIBS
  676. UNIXODBC_CFLAGS
  677. UNIXODBC_LDFLAGS
  678. ODBC_CONFIG
  679. LIBXML2_LIBS
  680. LIBXML2_LDFLAGS
  681. LIBXML2_CFLAGS
  682. LIBXML2_VERSION
  683. LIBXML2_CONFIG
  684. JABBER_LIBS
  685. JABBER_LDFLAGS
  686. JABBER_CPPFLAGS
  687. IKSEMEL_LIBS
  688. IKSEMEL_CFLAGS
  689. PKG_CONFIG_LIBDIR
  690. PKG_CONFIG_PATH
  691. PKG_CONFIG
  692. DB_LIBS
  693. DB_LDFLAGS
  694. DB_CFLAGS
  695. SQLITE3_VERSION
  696. SQLITE3_LIBS
  697. SQLITE3_LDFLAGS
  698. SQLITE3_CPPFLAGS
  699. POSTGRESQL_VERSION
  700. POSTGRESQL_LIBS
  701. POSTGRESQL_LDFLAGS
  702. POSTGRESQL_CFLAGS
  703. PG_CONFIG
  704. ORACLE_OCI_LIBS
  705. ORACLE_OCI_LDFLAGS
  706. ORACLE_OCI_CFLAGS
  707. ORACLE_OCI_VERSION
  708. MYSQL_LIBS
  709. MYSQL_LDFLAGS
  710. MYSQL_CFLAGS
  711. MYSQL_VERSION
  712. MYSQL_CONFIG
  713. ZBXCUNIT_FALSE
  714. ZBXCUNIT_TRUE
  715. JAVA_FALSE
  716. JAVA_TRUE
  717. AGENT_FALSE
  718. AGENT_TRUE
  719. PROXY_FALSE
  720. PROXY_TRUE
  721. SERVER_FALSE
  722. SERVER_TRUE
  723. ARCH
  724. LIBOBJS
  725. RESOLV_LIBS
  726. EGREP
  727. GREP
  728. CPP
  729. am__fastdepCC_FALSE
  730. am__fastdepCC_TRUE
  731. CCDEPMODE
  732. am__nodep
  733. AMDEPBACKSLASH
  734. AMDEP_FALSE
  735. AMDEP_TRUE
  736. am__quote
  737. am__include
  738. DEPDIR
  739. OBJEXT
  740. EXEEXT
  741. ac_ct_CC
  742. CPPFLAGS
  743. LDFLAGS
  744. CFLAGS
  745. CC
  746. host_os
  747. host_vendor
  748. host_cpu
  749. host
  750. build_os
  751. build_vendor
  752. build_cpu
  753. build
  754. AM_BACKSLASH
  755. AM_DEFAULT_VERBOSITY
  756. AM_DEFAULT_V
  757. AM_V
  758. am__untar
  759. am__tar
  760. AMTAR
  761. am__leading_dot
  762. SET_MAKE
  763. AWK
  764. mkdir_p
  765. MKDIR_P
  766. INSTALL_STRIP_PROGRAM
  767. STRIP
  768. install_sh
  769. MAKEINFO
  770. AUTOHEADER
  771. AUTOMAKE
  772. AUTOCONF
  773. ACLOCAL
  774. VERSION
  775. PACKAGE
  776. CYGPATH_W
  777. am__isrc
  778. INSTALL_DATA
  779. INSTALL_SCRIPT
  780. INSTALL_PROGRAM
  781. target_alias
  782. host_alias
  783. build_alias
  784. LIBS
  785. ECHO_T
  786. ECHO_N
  787. ECHO_C
  788. DEFS
  789. mandir
  790. localedir
  791. libdir
  792. psdir
  793. pdfdir
  794. dvidir
  795. htmldir
  796. infodir
  797. docdir
  798. oldincludedir
  799. includedir
  800. localstatedir
  801. sharedstatedir
  802. sysconfdir
  803. datadir
  804. datarootdir
  805. libexecdir
  806. sbindir
  807. bindir
  808. program_transform_name
  809. prefix
  810. exec_prefix
  811. PACKAGE_URL
  812. PACKAGE_BUGREPORT
  813. PACKAGE_STRING
  814. PACKAGE_VERSION
  815. PACKAGE_TARNAME
  816. PACKAGE_NAME
  817. PATH_SEPARATOR
  818. SHELL'
  819. ac_subst_files=''
  820. ac_user_opts='
  821. enable_option_checking
  822. enable_silent_rules
  823. enable_dependency_tracking
  824. enable_largefile
  825. enable_static
  826. enable_server
  827. enable_proxy
  828. enable_agent
  829. enable_java
  830. enable_ipv6
  831. with_ibm_db2
  832. with_ibm_db2_include
  833. with_ibm_db2_lib
  834. with_mysql
  835. with_oracle
  836. with_oracle_include
  837. with_oracle_lib
  838. with_postgresql
  839. with_sqlite3
  840. with_jabber
  841. with_libxml2
  842. with_unixodbc
  843. with_net_snmp
  844. with_ssh2
  845. with_openipmi
  846. with_libevent
  847. with_libevent_include
  848. with_libevent_lib
  849. with_libpcre
  850. with_libpcre_include
  851. with_mbedtls
  852. with_gnutls
  853. with_openssl
  854. with_ldap
  855. with_libcurl
  856. with_iconv
  857. with_iconv_include
  858. with_iconv_lib
  859. '
  860.       ac_precious_vars='build_alias
  861. host_alias
  862. target_alias
  863. CC
  864. CFLAGS
  865. LDFLAGS
  866. LIBS
  867. CPPFLAGS
  868. CPP
  869. PKG_CONFIG
  870. PKG_CONFIG_PATH
  871. PKG_CONFIG_LIBDIR
  872. IKSEMEL_CFLAGS
  873. IKSEMEL_LIBS'
  874.  
  875.  
  876. # Initialize some variables set by options.
  877. ac_init_help=
  878. ac_init_version=false
  879. ac_unrecognized_opts=
  880. ac_unrecognized_sep=
  881. # The variables have the same names as the options, with
  882. # dashes changed to underlines.
  883. cache_file=/dev/null
  884. exec_prefix=NONE
  885. no_create=
  886. no_recursion=
  887. prefix=NONE
  888. program_prefix=NONE
  889. program_suffix=NONE
  890. program_transform_name=s,x,x,
  891. silent=
  892. site=
  893. srcdir=
  894. verbose=
  895. x_includes=NONE
  896. x_libraries=NONE
  897.  
  898. # Installation directory options.
  899. # These are left unexpanded so users can "make install exec_prefix=/foo"
  900. # and all the variables that are supposed to be based on exec_prefix
  901. # by default will actually change.
  902. # Use braces instead of parens because sh, perl, etc. also accept them.
  903. # (The list follows the same order as the GNU Coding Standards.)
  904. bindir='${exec_prefix}/bin'
  905. sbindir='${exec_prefix}/sbin'
  906. libexecdir='${exec_prefix}/libexec'
  907. datarootdir='${prefix}/share'
  908. datadir='${datarootdir}'
  909. sysconfdir='${prefix}/etc'
  910. sharedstatedir='${prefix}/com'
  911. localstatedir='${prefix}/var'
  912. includedir='${prefix}/include'
  913. oldincludedir='/usr/include'
  914. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  915. infodir='${datarootdir}/info'
  916. htmldir='${docdir}'
  917. dvidir='${docdir}'
  918. pdfdir='${docdir}'
  919. psdir='${docdir}'
  920. libdir='${exec_prefix}/lib'
  921. localedir='${datarootdir}/locale'
  922. mandir='${datarootdir}/man'
  923.  
  924. ac_prev=
  925. ac_dashdash=
  926. for ac_option
  927. do
  928.   # If the previous option needs an argument, assign it.
  929.   if test -n "$ac_prev"; then
  930.     eval $ac_prev=\$ac_option
  931.     ac_prev=
  932.     continue
  933.   fi
  934.  
  935.   case $ac_option in
  936.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  937.   *=)   ac_optarg= ;;
  938.   *)    ac_optarg=yes ;;
  939.   esac
  940.  
  941.   # Accept the important Cygnus configure options, so we can diagnose typos.
  942.  
  943.   case $ac_dashdash$ac_option in
  944.   --)
  945.     ac_dashdash=yes ;;
  946.  
  947.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  948.     ac_prev=bindir ;;
  949.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  950.     bindir=$ac_optarg ;;
  951.  
  952.   -build | --build | --buil | --bui | --bu)
  953.     ac_prev=build_alias ;;
  954.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  955.     build_alias=$ac_optarg ;;
  956.  
  957.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  958.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  959.     ac_prev=cache_file ;;
  960.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  961.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  962.     cache_file=$ac_optarg ;;
  963.  
  964.   --config-cache | -C)
  965.     cache_file=config.cache ;;
  966.  
  967.   -datadir | --datadir | --datadi | --datad)
  968.     ac_prev=datadir ;;
  969.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  970.     datadir=$ac_optarg ;;
  971.  
  972.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  973.   | --dataroo | --dataro | --datar)
  974.     ac_prev=datarootdir ;;
  975.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  976.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  977.     datarootdir=$ac_optarg ;;
  978.  
  979.   -disable-* | --disable-*)
  980.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  981.     # Reject names that are not valid shell variable names.
  982.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  983.       as_fn_error $? "invalid feature name: $ac_useropt"
  984.     ac_useropt_orig=$ac_useropt
  985.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  986.     case $ac_user_opts in
  987.       *"
  988. "enable_$ac_useropt"
  989. "*) ;;
  990.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  991.      ac_unrecognized_sep=', ';;
  992.     esac
  993.     eval enable_$ac_useropt=no ;;
  994.  
  995.   -docdir | --docdir | --docdi | --doc | --do)
  996.     ac_prev=docdir ;;
  997.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  998.     docdir=$ac_optarg ;;
  999.  
  1000.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1001.     ac_prev=dvidir ;;
  1002.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1003.     dvidir=$ac_optarg ;;
  1004.  
  1005.   -enable-* | --enable-*)
  1006.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1007.     # Reject names that are not valid shell variable names.
  1008.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009.       as_fn_error $? "invalid feature name: $ac_useropt"
  1010.     ac_useropt_orig=$ac_useropt
  1011.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012.     case $ac_user_opts in
  1013.       *"
  1014. "enable_$ac_useropt"
  1015. "*) ;;
  1016.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1017.      ac_unrecognized_sep=', ';;
  1018.     esac
  1019.     eval enable_$ac_useropt=\$ac_optarg ;;
  1020.  
  1021.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1022.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1023.   | --exec | --exe | --ex)
  1024.     ac_prev=exec_prefix ;;
  1025.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1026.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1027.   | --exec=* | --exe=* | --ex=*)
  1028.     exec_prefix=$ac_optarg ;;
  1029.  
  1030.   -gas | --gas | --ga | --g)
  1031.     # Obsolete; use --with-gas.
  1032.     with_gas=yes ;;
  1033.  
  1034.   -help | --help | --hel | --he | -h)
  1035.     ac_init_help=long ;;
  1036.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1037.     ac_init_help=recursive ;;
  1038.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1039.     ac_init_help=short ;;
  1040.  
  1041.   -host | --host | --hos | --ho)
  1042.     ac_prev=host_alias ;;
  1043.   -host=* | --host=* | --hos=* | --ho=*)
  1044.     host_alias=$ac_optarg ;;
  1045.  
  1046.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1047.     ac_prev=htmldir ;;
  1048.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1049.   | --ht=*)
  1050.     htmldir=$ac_optarg ;;
  1051.  
  1052.   -includedir | --includedir | --includedi | --included | --include \
  1053.   | --includ | --inclu | --incl | --inc)
  1054.     ac_prev=includedir ;;
  1055.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1056.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1057.     includedir=$ac_optarg ;;
  1058.  
  1059.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1060.     ac_prev=infodir ;;
  1061.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1062.     infodir=$ac_optarg ;;
  1063.  
  1064.   -libdir | --libdir | --libdi | --libd)
  1065.     ac_prev=libdir ;;
  1066.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1067.     libdir=$ac_optarg ;;
  1068.  
  1069.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1070.   | --libexe | --libex | --libe)
  1071.     ac_prev=libexecdir ;;
  1072.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1073.   | --libexe=* | --libex=* | --libe=*)
  1074.     libexecdir=$ac_optarg ;;
  1075.  
  1076.   -localedir | --localedir | --localedi | --localed | --locale)
  1077.     ac_prev=localedir ;;
  1078.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1079.     localedir=$ac_optarg ;;
  1080.  
  1081.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1082.   | --localstate | --localstat | --localsta | --localst | --locals)
  1083.     ac_prev=localstatedir ;;
  1084.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1085.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1086.     localstatedir=$ac_optarg ;;
  1087.  
  1088.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1089.     ac_prev=mandir ;;
  1090.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1091.     mandir=$ac_optarg ;;
  1092.  
  1093.   -nfp | --nfp | --nf)
  1094.     # Obsolete; use --without-fp.
  1095.     with_fp=no ;;
  1096.  
  1097.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1098.   | --no-cr | --no-c | -n)
  1099.     no_create=yes ;;
  1100.  
  1101.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1102.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1103.     no_recursion=yes ;;
  1104.  
  1105.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1106.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1107.   | --oldin | --oldi | --old | --ol | --o)
  1108.     ac_prev=oldincludedir ;;
  1109.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1110.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1111.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1112.     oldincludedir=$ac_optarg ;;
  1113.  
  1114.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1115.     ac_prev=prefix ;;
  1116.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1117.     prefix=$ac_optarg ;;
  1118.  
  1119.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1120.   | --program-pre | --program-pr | --program-p)
  1121.     ac_prev=program_prefix ;;
  1122.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1123.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1124.     program_prefix=$ac_optarg ;;
  1125.  
  1126.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1127.   | --program-suf | --program-su | --program-s)
  1128.     ac_prev=program_suffix ;;
  1129.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1130.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1131.     program_suffix=$ac_optarg ;;
  1132.  
  1133.   -program-transform-name | --program-transform-name \
  1134.   | --program-transform-nam | --program-transform-na \
  1135.   | --program-transform-n | --program-transform- \
  1136.   | --program-transform | --program-transfor \
  1137.   | --program-transfo | --program-transf \
  1138.   | --program-trans | --program-tran \
  1139.   | --progr-tra | --program-tr | --program-t)
  1140.     ac_prev=program_transform_name ;;
  1141.   -program-transform-name=* | --program-transform-name=* \
  1142.   | --program-transform-nam=* | --program-transform-na=* \
  1143.   | --program-transform-n=* | --program-transform-=* \
  1144.   | --program-transform=* | --program-transfor=* \
  1145.   | --program-transfo=* | --program-transf=* \
  1146.   | --program-trans=* | --program-tran=* \
  1147.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1148.     program_transform_name=$ac_optarg ;;
  1149.  
  1150.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1151.     ac_prev=pdfdir ;;
  1152.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1153.     pdfdir=$ac_optarg ;;
  1154.  
  1155.   -psdir | --psdir | --psdi | --psd | --ps)
  1156.     ac_prev=psdir ;;
  1157.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1158.     psdir=$ac_optarg ;;
  1159.  
  1160.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1161.   | -silent | --silent | --silen | --sile | --sil)
  1162.     silent=yes ;;
  1163.  
  1164.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1165.     ac_prev=sbindir ;;
  1166.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1167.   | --sbi=* | --sb=*)
  1168.     sbindir=$ac_optarg ;;
  1169.  
  1170.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1171.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1172.   | --sharedst | --shareds | --shared | --share | --shar \
  1173.   | --sha | --sh)
  1174.     ac_prev=sharedstatedir ;;
  1175.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1176.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1177.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1178.   | --sha=* | --sh=*)
  1179.     sharedstatedir=$ac_optarg ;;
  1180.  
  1181.   -site | --site | --sit)
  1182.     ac_prev=site ;;
  1183.   -site=* | --site=* | --sit=*)
  1184.     site=$ac_optarg ;;
  1185.  
  1186.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1187.     ac_prev=srcdir ;;
  1188.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1189.     srcdir=$ac_optarg ;;
  1190.  
  1191.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1192.   | --syscon | --sysco | --sysc | --sys | --sy)
  1193.     ac_prev=sysconfdir ;;
  1194.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1195.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1196.     sysconfdir=$ac_optarg ;;
  1197.  
  1198.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1199.     ac_prev=target_alias ;;
  1200.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1201.     target_alias=$ac_optarg ;;
  1202.  
  1203.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1204.     verbose=yes ;;
  1205.  
  1206.   -version | --version | --versio | --versi | --vers | -V)
  1207.     ac_init_version=: ;;
  1208.  
  1209.   -with-* | --with-*)
  1210.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1211.     # Reject names that are not valid shell variable names.
  1212.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1213.       as_fn_error $? "invalid package name: $ac_useropt"
  1214.     ac_useropt_orig=$ac_useropt
  1215.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1216.     case $ac_user_opts in
  1217.       *"
  1218. "with_$ac_useropt"
  1219. "*) ;;
  1220.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1221.      ac_unrecognized_sep=', ';;
  1222.     esac
  1223.     eval with_$ac_useropt=\$ac_optarg ;;
  1224.  
  1225.   -without-* | --without-*)
  1226.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1227.     # Reject names that are not valid shell variable names.
  1228.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1229.       as_fn_error $? "invalid package name: $ac_useropt"
  1230.     ac_useropt_orig=$ac_useropt
  1231.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1232.     case $ac_user_opts in
  1233.       *"
  1234. "with_$ac_useropt"
  1235. "*) ;;
  1236.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1237.      ac_unrecognized_sep=', ';;
  1238.     esac
  1239.     eval with_$ac_useropt=no ;;
  1240.  
  1241.   --x)
  1242.     # Obsolete; use --with-x.
  1243.     with_x=yes ;;
  1244.  
  1245.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1246.   | --x-incl | --x-inc | --x-in | --x-i)
  1247.     ac_prev=x_includes ;;
  1248.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1249.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1250.     x_includes=$ac_optarg ;;
  1251.  
  1252.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1253.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1254.     ac_prev=x_libraries ;;
  1255.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1256.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1257.     x_libraries=$ac_optarg ;;
  1258.  
  1259.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1260. Try \`$0 --help' for more information"
  1261.     ;;
  1262.  
  1263.   *=*)
  1264.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1265.     # Reject names that are not valid shell variable names.
  1266.     case $ac_envvar in #(
  1267.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1268.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1269.    esac
  1270.    eval $ac_envvar=\$ac_optarg
  1271.    export $ac_envvar ;;
  1272.  
  1273.  *)
  1274.    # FIXME: should be removed in autoconf 3.0.
  1275.    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1276.    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1277.      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1278.    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1279.    ;;
  1280.  
  1281.  esac
  1282. done
  1283.  
  1284. if test -n "$ac_prev"; then
  1285.  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1286.  as_fn_error $? "missing argument to $ac_option"
  1287. fi
  1288.  
  1289. if test -n "$ac_unrecognized_opts"; then
  1290.  case $enable_option_checking in
  1291.    no) ;;
  1292.    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1293.    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1294.  esac
  1295. fi
  1296.  
  1297. # Check all directory arguments for consistency.
  1298. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1299.         datadir sysconfdir sharedstatedir localstatedir includedir \
  1300.         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1301.         libdir localedir mandir
  1302. do
  1303.  eval ac_val=\$$ac_var
  1304.  # Remove trailing slashes.
  1305.  case $ac_val in
  1306.    */ )
  1307.      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1308.      eval $ac_var=\$ac_val;;
  1309.  esac
  1310.  # Be sure to have absolute directory names.
  1311.  case $ac_val in
  1312.    [\\/$]* | ?:[\\/]* )  continue;;
  1313.    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1314.  esac
  1315.  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1316. done
  1317.  
  1318. # There might be people who depend on the old broken behavior: `$host'
  1319. # used to hold the argument of --host etc.
  1320. # FIXME: To remove some day.
  1321. build=$build_alias
  1322. host=$host_alias
  1323. target=$target_alias
  1324.  
  1325. # FIXME: To remove some day.
  1326. if test "x$host_alias" != x; then
  1327.  if test "x$build_alias" = x; then
  1328.    cross_compiling=maybe
  1329.  elif test "x$build_alias" != "x$host_alias"; then
  1330.    cross_compiling=yes
  1331.  fi
  1332. fi
  1333.  
  1334. ac_tool_prefix=
  1335. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1336.  
  1337. test "$silent" = yes && exec 6>/dev/null
  1338.  
  1339.  
  1340. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1341. ac_ls_di=`ls -di .` &&
  1342. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1343.  as_fn_error $? "working directory cannot be determined"
  1344. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1345.  as_fn_error $? "pwd does not report name of working directory"
  1346.  
  1347.  
  1348. # Find the source files, if location was not specified.
  1349. if test -z "$srcdir"; then
  1350.  ac_srcdir_defaulted=yes
  1351.  # Try the directory containing this script, then the parent directory.
  1352.  ac_confdir=`$as_dirname -- "$as_myself" ||
  1353. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1354.      X"$as_myself" : 'X\(//\)[^/]' \| \
  1355.      X"$as_myself" : 'X\(//\)$' \| \
  1356.      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1357. $as_echo X"$as_myself" |
  1358.    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1359.         s//\1/
  1360.         q
  1361.       }
  1362.       /^X\(\/\/\)[^/].*/{
  1363.         s//\1/
  1364.         q
  1365.       }
  1366.       /^X\(\/\/\)$/{
  1367.         s//\1/
  1368.         q
  1369.       }
  1370.       /^X\(\/\).*/{
  1371.         s//\1/
  1372.         q
  1373.       }
  1374.       s/.*/./; q'`
  1375.  srcdir=$ac_confdir
  1376.  if test ! -r "$srcdir/$ac_unique_file"; then
  1377.    srcdir=..
  1378.  fi
  1379. else
  1380.  ac_srcdir_defaulted=no
  1381. fi
  1382. if test ! -r "$srcdir/$ac_unique_file"; then
  1383.  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1384.  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1385. fi
  1386. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1387. ac_abs_confdir=`(
  1388.     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1389.     pwd)`
  1390. # When building in place, set srcdir=.
  1391. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1392.  srcdir=.
  1393. fi
  1394. # Remove unnecessary trailing slashes from srcdir.
  1395. # Double slashes in file names in object file debugging info
  1396. # mess up M-x gdb in Emacs.
  1397. case $srcdir in
  1398. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1399. esac
  1400. for ac_var in $ac_precious_vars; do
  1401.  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1402.  eval ac_env_${ac_var}_value=\$${ac_var}
  1403.  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1404.  eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1405. done
  1406.  
  1407. #
  1408. # Report the --help message.
  1409. #
  1410. if test "$ac_init_help" = "long"; then
  1411.  # Omit some internal or obsolete options to make the list less imposing.
  1412.  # This message is too long to be a string in the A/UX 3.1 sh.
  1413.  cat <<_ACEOF
  1414. \`configure' configures Zabbix 3.4.3 to adapt to many kinds of systems.
  1415.  
  1416. Usage: $0 [OPTION]... [VAR=VALUE]...
  1417.  
  1418. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1419. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1420.  
  1421. Defaults for the options are specified in brackets.
  1422.  
  1423. Configuration:
  1424.   -h, --help              display this help and exit
  1425.       --help=short        display options specific to this package
  1426.       --help=recursive    display the short help of all the included packages
  1427.   -V, --version           display version information and exit
  1428.   -q, --quiet, --silent   do not print \`checking ...' messages
  1429.      --cache-file=FILE   cache test results in FILE [disabled]
  1430.  -C, --config-cache      alias for \`--cache-file=config.cache'
  1431.   -n, --no-create         do not create output files
  1432.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1433.  
  1434. Installation directories:
  1435.  --prefix=PREFIX         install architecture-independent files in PREFIX
  1436.                          [$ac_default_prefix]
  1437.  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1438.                          [PREFIX]
  1439.  
  1440. By default, \`make install' will install all the files in
  1441. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1442. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1443. for instance \`--prefix=\$HOME'.
  1444.  
  1445. For better control, use the options below.
  1446.  
  1447. Fine tuning of the installation directories:
  1448.  --bindir=DIR            user executables [EPREFIX/bin]
  1449.  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1450.  --libexecdir=DIR        program executables [EPREFIX/libexec]
  1451.  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1452.  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1453.  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1454.  --libdir=DIR            object code libraries [EPREFIX/lib]
  1455.  --includedir=DIR        C header files [PREFIX/include]
  1456.  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1457.  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1458.  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1459.  --infodir=DIR           info documentation [DATAROOTDIR/info]
  1460.  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1461.  --mandir=DIR            man documentation [DATAROOTDIR/man]
  1462.  --docdir=DIR            documentation root [DATAROOTDIR/doc/zabbix]
  1463.  --htmldir=DIR           html documentation [DOCDIR]
  1464.  --dvidir=DIR            dvi documentation [DOCDIR]
  1465.  --pdfdir=DIR            pdf documentation [DOCDIR]
  1466.  --psdir=DIR             ps documentation [DOCDIR]
  1467. _ACEOF
  1468.  
  1469.  cat <<\_ACEOF
  1470.  
  1471. Program names:
  1472.  --program-prefix=PREFIX            prepend PREFIX to installed program names
  1473.  --program-suffix=SUFFIX            append SUFFIX to installed program names
  1474.  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1475.  
  1476. System types:
  1477.  --build=BUILD     configure for building on BUILD [guessed]
  1478.  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1479. _ACEOF
  1480. fi
  1481.  
  1482. if test -n "$ac_init_help"; then
  1483.  case $ac_init_help in
  1484.     short | recursive ) echo "Configuration of Zabbix 3.4.3:";;
  1485.   esac
  1486.  cat <<\_ACEOF
  1487.  
  1488. Optional Features:
  1489.  --disable-option-checking  ignore unrecognized --enable/--with options
  1490.  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1491.  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1492.  --enable-silent-rules   less verbose build output (undo: "make V=1")
  1493.  --disable-silent-rules  verbose build output (undo: "make V=0")
  1494.  --enable-dependency-tracking
  1495.                          do not reject slow dependency extractors
  1496.  --disable-dependency-tracking
  1497.                          speeds up one-time build
  1498.  --disable-largefile     omit support for large files
  1499.  --enable-static         Build statically linked binaries
  1500.  --enable-server         Turn on build of Zabbix server
  1501.  --enable-proxy          Turn on build of Zabbix proxy
  1502.  --enable-agent          Turn on build of Zabbix agent and client utilities
  1503.  --enable-java           Turn on build of Zabbix Java gateway
  1504.  --enable-ipv6           Turn on support of IPv6
  1505.  
  1506. Optional Packages:
  1507.  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1508.  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1509.  --with-ibm-db2=[ARG]    use IBM DB2 CLI from given sqllib directory
  1510.                          (ARG=path); use /home/db2inst1/sqllib (ARG=yes);
  1511.                          disable IBM DB2 support (ARG=no)
  1512.  --with-ibm-db2-include=[DIR]
  1513.                          use IBM DB2 CLI headers from given path
  1514.  --with-ibm-db2-lib=[DIR]
  1515.                          use IBM DB2 CLI libraries from given path
  1516.  --with-mysql[=ARG]      use MySQL client library [default=no], optionally
  1517.                          specify path to mysql_config
  1518.  --with-oracle=[ARG]     use Oracle OCI API from given Oracle home
  1519.                          (ARG=path); use existing ORACLE_HOME (ARG=yes);
  1520.                          disable Oracle OCI support (ARG=no)
  1521.  --with-oracle-include=[DIR]
  1522.                          use Oracle OCI API headers from given path
  1523.  --with-oracle-lib=[DIR] use Oracle OCI API libraries from given path
  1524.  --with-postgresql[=ARG] use PostgreSQL library [default=no], optionally
  1525.                          specify path to pg_config
  1526.  --with-sqlite3[=ARG]    use SQLite 3 library [default=no], optionally
  1527.                          specify the prefix for sqlite3 library
  1528.  
  1529. If you want to use Jabber protocol for messaging:
  1530.  --with-jabber[=DIR]     Include Jabber support [default=no]. DIR is the
  1531.                          iksemel library install directory.
  1532.  
  1533. If you want to use XML library:
  1534.  --with-libxml2[=ARG]    use libxml2 client library [default=no], optionally
  1535.                          specify path to xml2-config
  1536.  
  1537. If you want to use unixODBC library:
  1538.  --with-unixodbc[=ARG]   use ODBC driver against unixODBC package
  1539.                          [default=no], optionally specify full path to
  1540.                          odbc_config binary.
  1541.  
  1542. If you want to use Net-SNMP library:
  1543.  --with-net-snmp[=ARG]   use Net-SNMP package [default=no], optionally
  1544.                          specify path to net-snmp-config
  1545.  
  1546. If you want to use SSH2 based checks:
  1547.  --with-ssh2[=DIR]       use SSH2 package [default=no], DIR is the SSH2
  1548.                          library install directory.
  1549.  
  1550. If you want to check IPMI devices:
  1551.  --with-openipmi[=DIR]   Include OPENIPMI support [default=no]. DIR is the
  1552.                          OPENIPMI base install directory, default is to
  1553.                          search through a number of common places for the
  1554.                          OPENIPMI files.
  1555.  
  1556. If you want to specify libevent installation directories:
  1557.  --with-libevent[=DIR]   use libevent from given base install directory
  1558.                          (DIR), default is to search through a number of
  1559.                          common places for the libevent files.
  1560.  --with-libevent-include[=DIR]
  1561.                          use libevent include headers from given path.
  1562.  --with-libevent-lib[=DIR]
  1563.                          use libevent libraries from given path.
  1564.  
  1565. If you want to specify libpcre installation directories:
  1566.  --with-libpcre=[DIR]    use libpcre from given base install directory (DIR),
  1567.                          default is to search through a number of common
  1568.                          places for the libpcre files.
  1569.  --with-libpcre-include=[DIR]
  1570.                          use libpcre include headers from given path.
  1571.  
  1572. If you want to use encryption provided by mbed TLS (PolarSSL) library:
  1573.  --with-mbedtls[=DIR]    use mbed TLS (PolarSSL) package [default=no], DIR is
  1574.                          the libpolarssl install directory.
  1575.  
  1576. If you want to use encryption provided by GnuTLS library:
  1577.  --with-gnutls[=DIR]     use GnuTLS package [default=no], DIR is the
  1578.                          libgnutls install directory.
  1579.  
  1580. If you want to use encryption provided by OpenSSL library:
  1581.  --with-openssl[=DIR]    use OpenSSL package [default=no], DIR is the libssl
  1582.                          and libcrypto install directory.
  1583.  
  1584. If you want to check LDAP servers:
  1585.  --with-ldap[=DIR]       Include LDAP support [default=no]. DIR is the LDAP
  1586.                          base install directory, default is to search through
  1587.                          a number of common places for the LDAP files.
  1588.  
  1589. If you want to use cURL library:
  1590.  --with-libcurl[=DIR]    use cURL package [default=no], optionally specify
  1591.                          path to curl-config
  1592.  
  1593. If you want to specify iconv installation directories:
  1594.  --with-iconv[=DIR]      use iconv from given base install directory (DIR),
  1595.                          default is to search through a number of common
  1596.                          places for the iconv files.
  1597.  --with-iconv-include[=DIR]
  1598.                          use iconv include headers from given path.
  1599.  --with-iconv-lib[=DIR]  use iconv libraries from given path.
  1600.  
  1601. Some influential environment variables:
  1602.  CC          C compiler command
  1603.  CFLAGS      C compiler flags
  1604.  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1605.              nonstandard directory <lib dir>
  1606.  LIBS        libraries to pass to the linker, e.g. -l<library>
  1607.  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1608.              you have headers in a nonstandard directory <include dir>
  1609.  CPP         C preprocessor
  1610.  PKG_CONFIG  path to pkg-config utility
  1611.  PKG_CONFIG_PATH
  1612.              directories to add to pkg-config's search path
  1613.   PKG_CONFIG_LIBDIR
  1614.               path overriding pkg-config's built-in search path
  1615.  IKSEMEL_CFLAGS
  1616.              C compiler flags for IKSEMEL, overriding pkg-config
  1617.  IKSEMEL_LIBS
  1618.              linker flags for IKSEMEL, overriding pkg-config
  1619.  
  1620. Use these variables to override the choices made by `configure' or to help
  1621. it to find libraries and programs with nonstandard names/locations.
  1622.  
  1623. Report bugs to the package provider.
  1624. _ACEOF
  1625. ac_status=$?
  1626. fi
  1627.  
  1628. if test "$ac_init_help" = "recursive"; then
  1629.   # If there are subdirs, report their specific --help.
  1630.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1631.     test -d "$ac_dir" ||
  1632.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1633.       continue
  1634.     ac_builddir=.
  1635.  
  1636. case "$ac_dir" in
  1637. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1638. *)
  1639.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1640.   # A ".." for each directory in $ac_dir_suffix.
  1641.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1642.   case $ac_top_builddir_sub in
  1643.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1644.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1645.   esac ;;
  1646. esac
  1647. ac_abs_top_builddir=$ac_pwd
  1648. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1649. # for backward compatibility:
  1650. ac_top_builddir=$ac_top_build_prefix
  1651.  
  1652. case $srcdir in
  1653.   .)  # We are building in place.
  1654.     ac_srcdir=.
  1655.     ac_top_srcdir=$ac_top_builddir_sub
  1656.     ac_abs_top_srcdir=$ac_pwd ;;
  1657.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1658.     ac_srcdir=$srcdir$ac_dir_suffix;
  1659.     ac_top_srcdir=$srcdir
  1660.     ac_abs_top_srcdir=$srcdir ;;
  1661.   *) # Relative name.
  1662.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1663.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1664.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1665. esac
  1666. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1667.  
  1668.     cd "$ac_dir" || { ac_status=$?; continue; }
  1669.     # Check for guested configure.
  1670.     if test -f "$ac_srcdir/configure.gnu"; then
  1671.       echo &&
  1672.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1673.     elif test -f "$ac_srcdir/configure"; then
  1674.       echo &&
  1675.       $SHELL "$ac_srcdir/configure" --help=recursive
  1676.     else
  1677.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1678.     fi || ac_status=$?
  1679.     cd "$ac_pwd" || { ac_status=$?; break; }
  1680.   done
  1681. fi
  1682.  
  1683. test -n "$ac_init_help" && exit $ac_status
  1684. if $ac_init_version; then
  1685.   cat <<\_ACEOF
  1686. Zabbix configure 3.4.3
  1687. generated by GNU Autoconf 2.69
  1688.  
  1689. Copyright (C) 2012 Free Software Foundation, Inc.
  1690. This configure script is free software; the Free Software Foundation
  1691. gives unlimited permission to copy, distribute and modify it.
  1692. _ACEOF
  1693.   exit
  1694. fi
  1695.  
  1696. ## ------------------------ ##
  1697. ## Autoconf initialization. ##
  1698. ## ------------------------ ##
  1699.  
  1700. # ac_fn_c_try_compile LINENO
  1701. # --------------------------
  1702. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1703. ac_fn_c_try_compile ()
  1704. {
  1705.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706.   rm -f conftest.$ac_objext
  1707.   if { { ac_try="$ac_compile"
  1708. case "(($ac_try" in
  1709.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1710.   *) ac_try_echo=$ac_try;;
  1711. esac
  1712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1713. $as_echo "$ac_try_echo"; } >&5
  1714.   (eval "$ac_compile") 2>conftest.err
  1715.   ac_status=$?
  1716.   if test -s conftest.err; then
  1717.     grep -v '^ *+' conftest.err >conftest.er1
  1718.     cat conftest.er1 >&5
  1719.     mv -f conftest.er1 conftest.err
  1720.   fi
  1721.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1722.   test $ac_status = 0; } && {
  1723.      test -z "$ac_c_werror_flag" ||
  1724.      test ! -s conftest.err
  1725.        } && test -s conftest.$ac_objext; then :
  1726.   ac_retval=0
  1727. else
  1728.   $as_echo "$as_me: failed program was:" >&5
  1729. sed 's/^/| /' conftest.$ac_ext >&5
  1730.  
  1731.     ac_retval=1
  1732. fi
  1733.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734.   as_fn_set_status $ac_retval
  1735.  
  1736. } # ac_fn_c_try_compile
  1737.  
  1738. # ac_fn_c_try_cpp LINENO
  1739. # ----------------------
  1740. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1741. ac_fn_c_try_cpp ()
  1742. {
  1743.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1744.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1745. case "(($ac_try" in
  1746.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747.   *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo"; } >&5
  1751.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1752.   ac_status=$?
  1753.   if test -s conftest.err; then
  1754.     grep -v '^ *+' conftest.err >conftest.er1
  1755.     cat conftest.er1 >&5
  1756.     mv -f conftest.er1 conftest.err
  1757.   fi
  1758.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759.   test $ac_status = 0; } > conftest.i && {
  1760.      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1761.      test ! -s conftest.err
  1762.        }; then :
  1763.   ac_retval=0
  1764. else
  1765.   $as_echo "$as_me: failed program was:" >&5
  1766. sed 's/^/| /' conftest.$ac_ext >&5
  1767.  
  1768.     ac_retval=1
  1769. fi
  1770.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771.   as_fn_set_status $ac_retval
  1772.  
  1773. } # ac_fn_c_try_cpp
  1774.  
  1775. # ac_fn_c_try_run LINENO
  1776. # ----------------------
  1777. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1778. # that executables *can* be run.
  1779. ac_fn_c_try_run ()
  1780. {
  1781.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782.   if { { ac_try="$ac_link"
  1783. case "(($ac_try" in
  1784.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1785.   *) ac_try_echo=$ac_try;;
  1786. esac
  1787. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1788. $as_echo "$ac_try_echo"; } >&5
  1789.   (eval "$ac_link") 2>&5
  1790.   ac_status=$?
  1791.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1792.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1793.   { { case "(($ac_try" in
  1794.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1795.   *) ac_try_echo=$ac_try;;
  1796. esac
  1797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1798. $as_echo "$ac_try_echo"; } >&5
  1799.   (eval "$ac_try") 2>&5
  1800.   ac_status=$?
  1801.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1802.   test $ac_status = 0; }; }; then :
  1803.   ac_retval=0
  1804. else
  1805.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1806.        $as_echo "$as_me: failed program was:" >&5
  1807. sed 's/^/| /' conftest.$ac_ext >&5
  1808.  
  1809.        ac_retval=$ac_status
  1810. fi
  1811.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1812.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1813.   as_fn_set_status $ac_retval
  1814.  
  1815. } # ac_fn_c_try_run
  1816.  
  1817. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1818. # -------------------------------------------------------
  1819. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1820. # the include files in INCLUDES and setting the cache variable VAR
  1821. # accordingly.
  1822. ac_fn_c_check_header_mongrel ()
  1823. {
  1824.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825.   if eval \${$3+:} false; then :
  1826.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1827. $as_echo_n "checking for $2... " >&6; }
  1828. if eval \${$3+:} false; then :
  1829.   $as_echo_n "(cached) " >&6
  1830. fi
  1831. eval ac_res=\$$3
  1832.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1833. $as_echo "$ac_res" >&6; }
  1834. else
  1835.   # Is the header compilable?
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1837. $as_echo_n "checking $2 usability... " >&6; }
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h.  */
  1840. $4
  1841. #include <$2>
  1842. _ACEOF
  1843. if ac_fn_c_try_compile "$LINENO"; then :
  1844.   ac_header_compiler=yes
  1845. else
  1846.   ac_header_compiler=no
  1847. fi
  1848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1850. $as_echo "$ac_header_compiler" >&6; }
  1851.  
  1852. # Is the header present?
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1854. $as_echo_n "checking $2 presence... " >&6; }
  1855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1856. /* end confdefs.h.  */
  1857. #include <$2>
  1858. _ACEOF
  1859. if ac_fn_c_try_cpp "$LINENO"; then :
  1860.   ac_header_preproc=yes
  1861. else
  1862.   ac_header_preproc=no
  1863. fi
  1864. rm -f conftest.err conftest.i conftest.$ac_ext
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1866. $as_echo "$ac_header_preproc" >&6; }
  1867.  
  1868. # So?  What about this header?
  1869. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1870.   yes:no: )
  1871.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1872. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1873.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1874. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1875.     ;;
  1876.   no:yes:* )
  1877.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1878. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1879.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1880. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1881.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1882. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1883.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1884. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1885.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1886. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1887.     ;;
  1888. esac
  1889.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1890. $as_echo_n "checking for $2... " >&6; }
  1891. if eval \${$3+:} false; then :
  1892.   $as_echo_n "(cached) " >&6
  1893. else
  1894.   eval "$3=\$ac_header_compiler"
  1895. fi
  1896. eval ac_res=\$$3
  1897.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1898. $as_echo "$ac_res" >&6; }
  1899. fi
  1900.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1901.  
  1902. } # ac_fn_c_check_header_mongrel
  1903.  
  1904. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1905. # -------------------------------------------------------
  1906. # Tests whether HEADER exists and can be compiled using the include files in
  1907. # INCLUDES, setting the cache variable VAR accordingly.
  1908. ac_fn_c_check_header_compile ()
  1909. {
  1910.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1912. $as_echo_n "checking for $2... " >&6; }
  1913. if eval \${$3+:} false; then :
  1914.   $as_echo_n "(cached) " >&6
  1915. else
  1916.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1917. /* end confdefs.h.  */
  1918. $4
  1919. #include <$2>
  1920. _ACEOF
  1921. if ac_fn_c_try_compile "$LINENO"; then :
  1922.   eval "$3=yes"
  1923. else
  1924.   eval "$3=no"
  1925. fi
  1926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1927. fi
  1928. eval ac_res=\$$3
  1929.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1930. $as_echo "$ac_res" >&6; }
  1931.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1932.  
  1933. } # ac_fn_c_check_header_compile
  1934.  
  1935. # ac_fn_c_try_link LINENO
  1936. # -----------------------
  1937. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1938. ac_fn_c_try_link ()
  1939. {
  1940.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1941.   rm -f conftest.$ac_objext conftest$ac_exeext
  1942.   if { { ac_try="$ac_link"
  1943. case "(($ac_try" in
  1944.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1945.   *) ac_try_echo=$ac_try;;
  1946. esac
  1947. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1948. $as_echo "$ac_try_echo"; } >&5
  1949.   (eval "$ac_link") 2>conftest.err
  1950.   ac_status=$?
  1951.   if test -s conftest.err; then
  1952.     grep -v '^ *+' conftest.err >conftest.er1
  1953.     cat conftest.er1 >&5
  1954.     mv -f conftest.er1 conftest.err
  1955.   fi
  1956.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1957.   test $ac_status = 0; } && {
  1958.      test -z "$ac_c_werror_flag" ||
  1959.      test ! -s conftest.err
  1960.        } && test -s conftest$ac_exeext && {
  1961.      test "$cross_compiling" = yes ||
  1962.      test -x conftest$ac_exeext
  1963.        }; then :
  1964.   ac_retval=0
  1965. else
  1966.   $as_echo "$as_me: failed program was:" >&5
  1967. sed 's/^/| /' conftest.$ac_ext >&5
  1968.  
  1969.     ac_retval=1
  1970. fi
  1971.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1972.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1973.   # interfere with the next link command; also delete a directory that is
  1974.   # left behind by Apple's compiler.  We do this before executing the actions.
  1975.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1976.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1977.   as_fn_set_status $ac_retval
  1978.  
  1979. } # ac_fn_c_try_link
  1980.  
  1981. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1982. # -------------------------------------------
  1983. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1984. # variable VAR accordingly.
  1985. ac_fn_c_check_type ()
  1986. {
  1987.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1988.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1989. $as_echo_n "checking for $2... " >&6; }
  1990. if eval \${$3+:} false; then :
  1991.   $as_echo_n "(cached) " >&6
  1992. else
  1993.   eval "$3=no"
  1994.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1995. /* end confdefs.h.  */
  1996. $4
  1997. int
  1998. main ()
  1999. {
  2000. if (sizeof ($2))
  2001.      return 0;
  2002.   ;
  2003.   return 0;
  2004. }
  2005. _ACEOF
  2006. if ac_fn_c_try_compile "$LINENO"; then :
  2007.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h.  */
  2009. $4
  2010. int
  2011. main ()
  2012. {
  2013. if (sizeof (($2)))
  2014.         return 0;
  2015.   ;
  2016.   return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_c_try_compile "$LINENO"; then :
  2020.  
  2021. else
  2022.   eval "$3=yes"
  2023. fi
  2024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2025. fi
  2026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2027. fi
  2028. eval ac_res=\$$3
  2029.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2030. $as_echo "$ac_res" >&6; }
  2031.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2032.  
  2033. } # ac_fn_c_check_type
  2034.  
  2035. # ac_fn_c_check_func LINENO FUNC VAR
  2036. # ----------------------------------
  2037. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2038. ac_fn_c_check_func ()
  2039. {
  2040.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2041.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2042. $as_echo_n "checking for $2... " >&6; }
  2043. if eval \${$3+:} false; then :
  2044.   $as_echo_n "(cached) " >&6
  2045. else
  2046.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2047. /* end confdefs.h.  */
  2048. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2049.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  2050. #define $2 innocuous_$2
  2051.  
  2052. /* System header to define __stub macros and hopefully few prototypes,
  2053.     which can conflict with char $2 (); below.
  2054.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2055.     <limits.h> exists even on freestanding compilers.  */
  2056.  
  2057. #ifdef __STDC__
  2058. # include <limits.h>
  2059. #else
  2060. # include <assert.h>
  2061. #endif
  2062.  
  2063. #undef $2
  2064.  
  2065. /* Override any GCC internal prototype to avoid an error.
  2066.    Use char because int might match the return type of a GCC
  2067.    builtin and then its argument prototype would still apply.  */
  2068. #ifdef __cplusplus
  2069. extern "C"
  2070. #endif
  2071. char $2 ();
  2072. /* The GNU C library defines this for functions which it implements
  2073.     to always fail with ENOSYS.  Some functions are actually named
  2074.     something starting with __ and the normal name is an alias.  */
  2075. #if defined __stub_$2 || defined __stub___$2
  2076. choke me
  2077. #endif
  2078.  
  2079. int
  2080. main ()
  2081. {
  2082. return $2 ();
  2083.   ;
  2084.   return 0;
  2085. }
  2086. _ACEOF
  2087. if ac_fn_c_try_link "$LINENO"; then :
  2088.   eval "$3=yes"
  2089. else
  2090.   eval "$3=no"
  2091. fi
  2092. rm -f core conftest.err conftest.$ac_objext \
  2093.     conftest$ac_exeext conftest.$ac_ext
  2094. fi
  2095. eval ac_res=\$$3
  2096.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2097. $as_echo "$ac_res" >&6; }
  2098.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2099.  
  2100. } # ac_fn_c_check_func
  2101.  
  2102. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2103. # --------------------------------------------
  2104. # Tries to find the compile-time value of EXPR in a program that includes
  2105. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2106. # computed
  2107. ac_fn_c_compute_int ()
  2108. {
  2109.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2110.   if test "$cross_compiling" = yes; then
  2111.     # Depending upon the size, compute the lo and hi bounds.
  2112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2113. /* end confdefs.h.  */
  2114. $4
  2115. int
  2116. main ()
  2117. {
  2118. static int test_array [1 - 2 * !(($2) >= 0)];
  2119. test_array [0] = 0;
  2120. return test_array [0];
  2121.  
  2122.   ;
  2123.   return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_compile "$LINENO"; then :
  2127.   ac_lo=0 ac_mid=0
  2128.   while :; do
  2129.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2130. /* end confdefs.h.  */
  2131. $4
  2132. int
  2133. main ()
  2134. {
  2135. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2136. test_array [0] = 0;
  2137. return test_array [0];
  2138.  
  2139.   ;
  2140.   return 0;
  2141. }
  2142. _ACEOF
  2143. if ac_fn_c_try_compile "$LINENO"; then :
  2144.   ac_hi=$ac_mid; break
  2145. else
  2146.   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2147.             if test $ac_lo -le $ac_mid; then
  2148.               ac_lo= ac_hi=
  2149.               break
  2150.             fi
  2151.             as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2152. fi
  2153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2154.   done
  2155. else
  2156.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2157. /* end confdefs.h.  */
  2158. $4
  2159. int
  2160. main ()
  2161. {
  2162. static int test_array [1 - 2 * !(($2) < 0)];
  2163. test_array [0] = 0;
  2164. return test_array [0];
  2165.  
  2166.   ;
  2167.   return 0;
  2168. }
  2169. _ACEOF
  2170. if ac_fn_c_try_compile "$LINENO"; then :
  2171.   ac_hi=-1 ac_mid=-1
  2172.   while :; do
  2173.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2174. /* end confdefs.h.  */
  2175. $4
  2176. int
  2177. main ()
  2178. {
  2179. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2180. test_array [0] = 0;
  2181. return test_array [0];
  2182.  
  2183.   ;
  2184.   return 0;
  2185. }
  2186. _ACEOF
  2187. if ac_fn_c_try_compile "$LINENO"; then :
  2188.   ac_lo=$ac_mid; break
  2189. else
  2190.   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2191.             if test $ac_mid -le $ac_hi; then
  2192.               ac_lo= ac_hi=
  2193.               break
  2194.             fi
  2195.             as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2196. fi
  2197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2198.   done
  2199. else
  2200.   ac_lo= ac_hi=
  2201. fi
  2202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2203. fi
  2204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2205. # Binary search between lo and hi bounds.
  2206. while test "x$ac_lo" != "x$ac_hi"; do
  2207.   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2208.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2209. /* end confdefs.h.  */
  2210. $4
  2211. int
  2212. main ()
  2213. {
  2214. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2215. test_array [0] = 0;
  2216. return test_array [0];
  2217.  
  2218.   ;
  2219.   return 0;
  2220. }
  2221. _ACEOF
  2222. if ac_fn_c_try_compile "$LINENO"; then :
  2223.   ac_hi=$ac_mid
  2224. else
  2225.   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2226. fi
  2227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2228. done
  2229. case $ac_lo in #((
  2230. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2231. '') ac_retval=1 ;;
  2232. esac
  2233.   else
  2234.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2235. /* end confdefs.h.  */
  2236. $4
  2237. static long int longval () { return $2; }
  2238. static unsigned long int ulongval () { return $2; }
  2239. #include <stdio.h>
  2240. #include <stdlib.h>
  2241. int
  2242. main ()
  2243. {
  2244.  
  2245.   FILE *f = fopen ("conftest.val", "w");
  2246.   if (! f)
  2247.     return 1;
  2248.   if (($2) < 0)
  2249.     {
  2250.       long int i = longval ();
  2251.       if (i != ($2))
  2252.     return 1;
  2253.       fprintf (f, "%ld", i);
  2254.     }
  2255.   else
  2256.     {
  2257.       unsigned long int i = ulongval ();
  2258.       if (i != ($2))
  2259.     return 1;
  2260.       fprintf (f, "%lu", i);
  2261.     }
  2262.   /* Do not output a trailing newline, as this causes \r\n confusion
  2263.      on some platforms.  */
  2264.   return ferror (f) || fclose (f) != 0;
  2265.  
  2266.   ;
  2267.   return 0;
  2268. }
  2269. _ACEOF
  2270. if ac_fn_c_try_run "$LINENO"; then :
  2271.   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2272. else
  2273.   ac_retval=1
  2274. fi
  2275. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2276.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  2277. rm -f conftest.val
  2278.  
  2279.   fi
  2280.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2281.   as_fn_set_status $ac_retval
  2282.  
  2283. } # ac_fn_c_compute_int
  2284. cat >config.log <<_ACEOF
  2285. This file contains any messages produced by compilers while
  2286. running configure, to aid debugging if configure makes a mistake.
  2287.  
  2288. It was created by Zabbix $as_me 3.4.3, which was
  2289. generated by GNU Autoconf 2.69.  Invocation command line was
  2290.  
  2291.   $ $0 $@
  2292.  
  2293. _ACEOF
  2294. exec 5>>config.log
  2295. {
  2296. cat <<_ASUNAME
  2297. ## --------- ##
  2298. ## Platform. ##
  2299. ## --------- ##
  2300.  
  2301. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2302. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2303. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2304. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2305. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2306.  
  2307. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2308. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2309.  
  2310. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2311. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2312. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2313. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2314. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2315. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2316. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2317.  
  2318. _ASUNAME
  2319.  
  2320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2321. for as_dir in $PATH
  2322. do
  2323.   IFS=$as_save_IFS
  2324.   test -z "$as_dir" && as_dir=.
  2325.     $as_echo "PATH: $as_dir"
  2326.   done
  2327. IFS=$as_save_IFS
  2328.  
  2329. } >&5
  2330.  
  2331. cat >&5 <<_ACEOF
  2332.  
  2333.  
  2334. ## ----------- ##
  2335. ## Core tests. ##
  2336. ## ----------- ##
  2337.  
  2338. _ACEOF
  2339.  
  2340.  
  2341. # Keep a trace of the command line.
  2342. # Strip out --no-create and --no-recursion so they do not pile up.
  2343. # Strip out --silent because we don't want to record it for future runs.
  2344. # Also quote any args containing shell meta-characters.
  2345. # Make two passes to allow for proper duplicate-argument suppression.
  2346. ac_configure_args=
  2347. ac_configure_args0=
  2348. ac_configure_args1=
  2349. ac_must_keep_next=false
  2350. for ac_pass in 1 2
  2351. do
  2352.   for ac_arg
  2353.   do
  2354.     case $ac_arg in
  2355.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2356.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2357.     | -silent | --silent | --silen | --sile | --sil)
  2358.       continue ;;
  2359.     *\'*)
  2360.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2361.     esac
  2362.     case $ac_pass in
  2363.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2364.     2)
  2365.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2366.       if test $ac_must_keep_next = true; then
  2367.     ac_must_keep_next=false # Got value, back to normal.
  2368.       else
  2369.     case $ac_arg in
  2370.       *=* | --config-cache | -C | -disable-* | --disable-* \
  2371.       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2372.       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2373.       | -with-* | --with-* | -without-* | --without-* | --x)
  2374.         case "$ac_configure_args0 " in
  2375.           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2376.         esac
  2377.         ;;
  2378.       -* ) ac_must_keep_next=true ;;
  2379.     esac
  2380.       fi
  2381.       as_fn_append ac_configure_args " '$ac_arg'"
  2382.       ;;
  2383.     esac
  2384.   done
  2385. done
  2386. { ac_configure_args0=; unset ac_configure_args0;}
  2387. { ac_configure_args1=; unset ac_configure_args1;}
  2388.  
  2389. # When interrupted or exit'd, cleanup temporary files, and complete
  2390. # config.log.  We remove comments because anyway the quotes in there
  2391. # would cause problems or look ugly.
  2392. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2393. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2394. trap 'exit_status=$?
  2395.  # Save into config.log some information that might help in debugging.
  2396.  {
  2397.    echo
  2398.  
  2399.    $as_echo "## ---------------- ##
  2400. ## Cache variables. ##
  2401. ## ---------------- ##"
  2402.    echo
  2403.    # The following way of writing the cache mishandles newlines in values,
  2404. (
  2405.  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2406.    eval ac_val=\$$ac_var
  2407.    case $ac_val in #(
  2408.    *${as_nl}*)
  2409.      case $ac_var in #(
  2410.      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2411. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2412.      esac
  2413.      case $ac_var in #(
  2414.      _ | IFS | as_nl) ;; #(
  2415.      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2416.      *) { eval $ac_var=; unset $ac_var;} ;;
  2417.      esac ;;
  2418.    esac
  2419.  done
  2420.  (set) 2>&1 |
  2421.    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2422.    *${as_nl}ac_space=\ *)
  2423.      sed -n \
  2424.     "s/'\''/'\''\\\\'\'''\''/g;
  2425.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2426.      ;; #(
  2427.    *)
  2428.      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2429.      ;;
  2430.    esac |
  2431.    sort
  2432. )
  2433.    echo
  2434.  
  2435.    $as_echo "## ----------------- ##
  2436. ## Output variables. ##
  2437. ## ----------------- ##"
  2438.    echo
  2439.    for ac_var in $ac_subst_vars
  2440.    do
  2441.      eval ac_val=\$$ac_var
  2442.      case $ac_val in
  2443.      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2444.      esac
  2445.      $as_echo "$ac_var='\''$ac_val'\''"
  2446.    done | sort
  2447.    echo
  2448.  
  2449.    if test -n "$ac_subst_files"; then
  2450.      $as_echo "## ------------------- ##
  2451. ## File substitutions. ##
  2452. ## ------------------- ##"
  2453.      echo
  2454.      for ac_var in $ac_subst_files
  2455.      do
  2456.     eval ac_val=\$$ac_var
  2457.     case $ac_val in
  2458.     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2459.     esac
  2460.     $as_echo "$ac_var='\''$ac_val'\''"
  2461.      done | sort
  2462.      echo
  2463.    fi
  2464.  
  2465.    if test -s confdefs.h; then
  2466.      $as_echo "## ----------- ##
  2467. ## confdefs.h. ##
  2468. ## ----------- ##"
  2469.      echo
  2470.      cat confdefs.h
  2471.      echo
  2472.    fi
  2473.    test "$ac_signal" != 0 &&
  2474.      $as_echo "$as_me: caught signal $ac_signal"
  2475.    $as_echo "$as_me: exit $exit_status"
  2476.  } >&5
  2477.  rm -f core *.core core.conftest.* &&
  2478.    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2479.    exit $exit_status
  2480. ' 0
  2481. for ac_signal in 1 2 13 15; do
  2482.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2483. done
  2484. ac_signal=0
  2485.  
  2486. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2487. rm -f -r conftest* confdefs.h
  2488.  
  2489. $as_echo "/* confdefs.h */" > confdefs.h
  2490.  
  2491. # Predefined preprocessor variables.
  2492.  
  2493. cat >>confdefs.h <<_ACEOF
  2494. #define PACKAGE_NAME "$PACKAGE_NAME"
  2495. _ACEOF
  2496.  
  2497. cat >>confdefs.h <<_ACEOF
  2498. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2499. _ACEOF
  2500.  
  2501. cat >>confdefs.h <<_ACEOF
  2502. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2503. _ACEOF
  2504.  
  2505. cat >>confdefs.h <<_ACEOF
  2506. #define PACKAGE_STRING "$PACKAGE_STRING"
  2507. _ACEOF
  2508.  
  2509. cat >>confdefs.h <<_ACEOF
  2510. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2511. _ACEOF
  2512.  
  2513. cat >>confdefs.h <<_ACEOF
  2514. #define PACKAGE_URL "$PACKAGE_URL"
  2515. _ACEOF
  2516.  
  2517.  
  2518. # Let the site file select an alternate cache file if it wants to.
  2519. # Prefer an explicitly selected file to automatically selected ones.
  2520. ac_site_file1=NONE
  2521. ac_site_file2=NONE
  2522. if test -n "$CONFIG_SITE"; then
  2523.   # We do not want a PATH search for config.site.
  2524.   case $CONFIG_SITE in #((
  2525.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2526.     */*) ac_site_file1=$CONFIG_SITE;;
  2527.     *)   ac_site_file1=./$CONFIG_SITE;;
  2528.   esac
  2529. elif test "x$prefix" != xNONE; then
  2530.   ac_site_file1=$prefix/share/config.site
  2531.   ac_site_file2=$prefix/etc/config.site
  2532. else
  2533.   ac_site_file1=$ac_default_prefix/share/config.site
  2534.   ac_site_file2=$ac_default_prefix/etc/config.site
  2535. fi
  2536. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2537. do
  2538.   test "x$ac_site_file" = xNONE && continue
  2539.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2540.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2541. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2542.     sed 's/^/| /' "$ac_site_file" >&5
  2543.     . "$ac_site_file" \
  2544.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2545. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2546. as_fn_error $? "failed to load site script $ac_site_file
  2547. See \`config.log' for more details" "$LINENO" 5; }
  2548.  fi
  2549. done
  2550.  
  2551. if test -r "$cache_file"; then
  2552.  # Some versions of bash will fail to source /dev/null (special files
  2553.  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2554.  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2555.    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2556. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2557.    case $cache_file in
  2558.      [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2559.      *)                      . "./$cache_file";;
  2560.    esac
  2561.  fi
  2562. else
  2563.  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2564. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2565.  >$cache_file
  2566. fi
  2567.  
  2568. # Check that the precious variables saved in the cache have kept the same
  2569. # value.
  2570. ac_cache_corrupted=false
  2571. for ac_var in $ac_precious_vars; do
  2572.  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2573.  eval ac_new_set=\$ac_env_${ac_var}_set
  2574.  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2575.  eval ac_new_val=\$ac_env_${ac_var}_value
  2576.  case $ac_old_set,$ac_new_set in
  2577.    set,)
  2578.      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2579. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2580.      ac_cache_corrupted=: ;;
  2581.    ,set)
  2582.      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2583. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2584.      ac_cache_corrupted=: ;;
  2585.    ,);;
  2586.    *)
  2587.      if test "x$ac_old_val" != "x$ac_new_val"; then
  2588.     # differences in whitespace do not lead to failure.
  2589.     ac_old_val_w=`echo x $ac_old_val`
  2590.     ac_new_val_w=`echo x $ac_new_val`
  2591.     if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2592.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2593. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2594.       ac_cache_corrupted=:
  2595.     else
  2596.       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2597. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2598.       eval $ac_var=\$ac_old_val
  2599.     fi
  2600.     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2601. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2602.     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2603. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2604.      fi;;
  2605.  esac
  2606.  # Pass precious variables to config.status.
  2607.  if test "$ac_new_set" = set; then
  2608.    case $ac_new_val in
  2609.    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2610.    *) ac_arg=$ac_var=$ac_new_val ;;
  2611.    esac
  2612.    case " $ac_configure_args " in
  2613.      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2614.      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2615.    esac
  2616.  fi
  2617. done
  2618. if $ac_cache_corrupted; then
  2619.  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2620. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2621.  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2622. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2623.  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2624. fi
  2625. ## -------------------- ##
  2626. ## Main body of script. ##
  2627. ## -------------------- ##
  2628.  
  2629. ac_ext=c
  2630. ac_cpp='$CPP $CPPFLAGS'
  2631. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2632. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2633. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2634.  
  2635.  
  2636.  
  2637. am__api_version='1.14'
  2638.  
  2639. ac_aux_dir=
  2640. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2641.  if test -f "$ac_dir/install-sh"; then
  2642.    ac_aux_dir=$ac_dir
  2643.    ac_install_sh="$ac_aux_dir/install-sh -c"
  2644.    break
  2645.  elif test -f "$ac_dir/install.sh"; then
  2646.    ac_aux_dir=$ac_dir
  2647.    ac_install_sh="$ac_aux_dir/install.sh -c"
  2648.    break
  2649.  elif test -f "$ac_dir/shtool"; then
  2650.    ac_aux_dir=$ac_dir
  2651.    ac_install_sh="$ac_aux_dir/shtool install -c"
  2652.    break
  2653.  fi
  2654. done
  2655. if test -z "$ac_aux_dir"; then
  2656.  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2657. fi
  2658.  
  2659. # These three variables are undocumented and unsupported,
  2660. # and are intended to be withdrawn in a future Autoconf release.
  2661. # They can cause serious problems if a builder's source tree is in a directory
  2662. # whose full name contains unusual characters.
  2663. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2664. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2665. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2666.  
  2667.  
  2668. # Find a good install program.  We prefer a C program (faster),
  2669. # so one script is as good as another.  But avoid the broken or
  2670. # incompatible versions:
  2671. # SysV /etc/install, /usr/sbin/install
  2672. # SunOS /usr/etc/install
  2673. # IRIX /sbin/install
  2674. # AIX /bin/install
  2675. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2676. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2677. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2678. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2679. # OS/2's system install, which has a completely different semantic
  2680. # ./install, which can be erroneously created by make from ./install.sh.
  2681. # Reject install programs that cannot install multiple files.
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2683. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2684. if test -z "$INSTALL"; then
  2685. if ${ac_cv_path_install+:} false; then :
  2686.   $as_echo_n "(cached) " >&6
  2687. else
  2688.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2689. for as_dir in $PATH
  2690. do
  2691.   IFS=$as_save_IFS
  2692.   test -z "$as_dir" && as_dir=.
  2693.     # Account for people who put trailing slashes in PATH elements.
  2694. case $as_dir/ in #((
  2695.   ./ | .// | /[cC]/* | \
  2696.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2697.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2698.   /usr/ucb/* ) ;;
  2699.   *)
  2700.     # OSF1 and SCO ODT 3.0 have their own names for install.
  2701.     # Don't use installbsd from OSF since it installs stuff as root
  2702.     # by default.
  2703.     for ac_prog in ginstall scoinst install; do
  2704.       for ac_exec_ext in '' $ac_executable_extensions; do
  2705.     if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2706.       if test $ac_prog = install &&
  2707.         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2708.         # AIX install.  It has an incompatible calling convention.
  2709.         :
  2710.       elif test $ac_prog = install &&
  2711.         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2712.         # program-specific install script used by HP pwplus--don't use.
  2713.         :
  2714.       else
  2715.         rm -rf conftest.one conftest.two conftest.dir
  2716.         echo one > conftest.one
  2717.         echo two > conftest.two
  2718.         mkdir conftest.dir
  2719.         if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2720.           test -s conftest.one && test -s conftest.two &&
  2721.           test -s conftest.dir/conftest.one &&
  2722.           test -s conftest.dir/conftest.two
  2723.         then
  2724.           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2725.           break 3
  2726.         fi
  2727.       fi
  2728.     fi
  2729.       done
  2730.     done
  2731.     ;;
  2732. esac
  2733.  
  2734.   done
  2735. IFS=$as_save_IFS
  2736.  
  2737. rm -rf conftest.one conftest.two conftest.dir
  2738.  
  2739. fi
  2740.   if test "${ac_cv_path_install+set}" = set; then
  2741.     INSTALL=$ac_cv_path_install
  2742.   else
  2743.     # As a last resort, use the slow shell script.  Don't cache a
  2744.     # value for INSTALL within a source directory, because that will
  2745.     # break other packages using the cache if that directory is
  2746.     # removed, or if the value is a relative name.
  2747.     INSTALL=$ac_install_sh
  2748.   fi
  2749. fi
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2751. $as_echo "$INSTALL" >&6; }
  2752.  
  2753. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2754. # It thinks the first close brace ends the variable substitution.
  2755. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2756.  
  2757. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2758.  
  2759. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2760.  
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2762. $as_echo_n "checking whether build environment is sane... " >&6; }
  2763. # Reject unsafe characters in $srcdir or the absolute working directory
  2764. # name.  Accept space and tab only in the latter.
  2765. am_lf='
  2766. '
  2767. case `pwd` in
  2768.   *[\\\"\#\$\&\'\`$am_lf]*)
  2769.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2770. esac
  2771. case $srcdir in
  2772.   *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2773.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2774. esac
  2775.  
  2776. # Do 'set' in a subshell so we don't clobber the current shell's
  2777. # arguments.  Must try -L first in case configure is actually a
  2778. # symlink; some systems play weird games with the mod time of symlinks
  2779. # (eg FreeBSD returns the mod time of the symlink's containing
  2780. # directory).
  2781. if (
  2782.    am_has_slept=no
  2783.    for am_try in 1 2; do
  2784.      echo "timestamp, slept: $am_has_slept" > conftest.file
  2785.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2786.      if test "$*" = "X"; then
  2787.     # -L didn't work.
  2788.     set X `ls -t "$srcdir/configure" conftest.file`
  2789.      fi
  2790.      if test "$*" != "X $srcdir/configure conftest.file" \
  2791.     && test "$*" != "X conftest.file $srcdir/configure"; then
  2792.  
  2793.     # If neither matched, then we have a broken ls.  This can happen
  2794.     # if, for instance, CONFIG_SHELL is bash and it inherits a
  2795.     # broken ls alias from the environment.  This has actually
  2796.     # happened.  Such a system could not be considered "sane".
  2797.     as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  2798.  alias in your environment" "$LINENO" 5
  2799.      fi
  2800.      if test "$2" = conftest.file || test $am_try -eq 2; then
  2801.        break
  2802.      fi
  2803.      # Just in case.
  2804.      sleep 1
  2805.      am_has_slept=yes
  2806.    done
  2807.    test "$2" = conftest.file
  2808.    )
  2809. then
  2810.    # Ok.
  2811.    :
  2812. else
  2813.    as_fn_error $? "newly created file is older than distributed files!
  2814. Check your system clock" "$LINENO" 5
  2815. fi
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2817. $as_echo "yes" >&6; }
  2818. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2819. # generated files are strictly newer.
  2820. am_sleep_pid=
  2821. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2822.   ( sleep 1 ) &
  2823.   am_sleep_pid=$!
  2824. fi
  2825.  
  2826. rm -f conftest.file
  2827.  
  2828. test "$program_prefix" != NONE &&
  2829.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2830. # Use a double $ so make ignores it.
  2831. test "$program_suffix" != NONE &&
  2832.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2833. # Double any \ or $.
  2834. # By default was `s,x,x', remove it if useless.
  2835. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2836. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2837.  
  2838. # expand $ac_aux_dir to an absolute path
  2839. am_aux_dir=`cd $ac_aux_dir && pwd`
  2840.  
  2841. if test x"${MISSING+set}" != xset; then
  2842.   case $am_aux_dir in
  2843.   *\ * | *\ *)
  2844.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2845.   *)
  2846.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2847.   esac
  2848. fi
  2849. # Use eval to expand $SHELL
  2850. if eval "$MISSING --is-lightweight"; then
  2851.   am_missing_run="$MISSING "
  2852. else
  2853.   am_missing_run=
  2854.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2855. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2856. fi
  2857.  
  2858. if test x"${install_sh}" != xset; then
  2859.   case $am_aux_dir in
  2860.   *\ * | *\ *)
  2861.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2862.   *)
  2863.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  2864.   esac
  2865. fi
  2866.  
  2867. # Installed binaries are usually stripped using 'strip' when the user
  2868. # run "make install-strip".  However 'strip' might not be the right
  2869. # tool to use in cross-compilation environments, therefore Automake
  2870. # will honor the 'STRIP' environment variable to overrule this program.
  2871. if test "$cross_compiling" != no; then
  2872.   if test -n "$ac_tool_prefix"; then
  2873.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2874. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2876. $as_echo_n "checking for $ac_word... " >&6; }
  2877. if ${ac_cv_prog_STRIP+:} false; then :
  2878.   $as_echo_n "(cached) " >&6
  2879. else
  2880.   if test -n "$STRIP"; then
  2881.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2882. else
  2883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2884. for as_dir in $PATH
  2885. do
  2886.   IFS=$as_save_IFS
  2887.   test -z "$as_dir" && as_dir=.
  2888.     for ac_exec_ext in '' $ac_executable_extensions; do
  2889.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2890.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2891.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2892.     break 2
  2893.   fi
  2894. done
  2895.   done
  2896. IFS=$as_save_IFS
  2897.  
  2898. fi
  2899. fi
  2900. STRIP=$ac_cv_prog_STRIP
  2901. if test -n "$STRIP"; then
  2902.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2903. $as_echo "$STRIP" >&6; }
  2904. else
  2905.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2906. $as_echo "no" >&6; }
  2907. fi
  2908.  
  2909.  
  2910. fi
  2911. if test -z "$ac_cv_prog_STRIP"; then
  2912.   ac_ct_STRIP=$STRIP
  2913.   # Extract the first word of "strip", so it can be a program name with args.
  2914. set dummy strip; ac_word=$2
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2916. $as_echo_n "checking for $ac_word... " >&6; }
  2917. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2918.   $as_echo_n "(cached) " >&6
  2919. else
  2920.   if test -n "$ac_ct_STRIP"; then
  2921.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2922. else
  2923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2924. for as_dir in $PATH
  2925. do
  2926.   IFS=$as_save_IFS
  2927.   test -z "$as_dir" && as_dir=.
  2928.     for ac_exec_ext in '' $ac_executable_extensions; do
  2929.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2930.     ac_cv_prog_ac_ct_STRIP="strip"
  2931.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2932.     break 2
  2933.   fi
  2934. done
  2935.   done
  2936. IFS=$as_save_IFS
  2937.  
  2938. fi
  2939. fi
  2940. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2941. if test -n "$ac_ct_STRIP"; then
  2942.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2943. $as_echo "$ac_ct_STRIP" >&6; }
  2944. else
  2945.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2946. $as_echo "no" >&6; }
  2947. fi
  2948.  
  2949.   if test "x$ac_ct_STRIP" = x; then
  2950.     STRIP=":"
  2951.   else
  2952.     case $cross_compiling:$ac_tool_warned in
  2953. yes:)
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2956. ac_tool_warned=yes ;;
  2957. esac
  2958.     STRIP=$ac_ct_STRIP
  2959.   fi
  2960. else
  2961.   STRIP="$ac_cv_prog_STRIP"
  2962. fi
  2963.  
  2964. fi
  2965. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2966.  
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2968. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2969. if test -z "$MKDIR_P"; then
  2970.   if ${ac_cv_path_mkdir+:} false; then :
  2971.   $as_echo_n "(cached) " >&6
  2972. else
  2973.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2974. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2975. do
  2976.   IFS=$as_save_IFS
  2977.   test -z "$as_dir" && as_dir=.
  2978.     for ac_prog in mkdir gmkdir; do
  2979.      for ac_exec_ext in '' $ac_executable_extensions; do
  2980.        as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2981.        case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2982.          'mkdir (GNU coreutils) '* | \
  2983.          'mkdir (coreutils) '* | \
  2984.          'mkdir (fileutils) '4.1*)
  2985.            ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2986.            break 3;;
  2987.        esac
  2988.      done
  2989.        done
  2990.   done
  2991. IFS=$as_save_IFS
  2992.  
  2993. fi
  2994.  
  2995.   test -d ./--version && rmdir ./--version
  2996.   if test "${ac_cv_path_mkdir+set}" = set; then
  2997.     MKDIR_P="$ac_cv_path_mkdir -p"
  2998.   else
  2999.     # As a last resort, use the slow shell script.  Don't cache a
  3000.     # value for MKDIR_P within a source directory, because that will
  3001.     # break other packages using the cache if that directory is
  3002.     # removed, or if the value is a relative name.
  3003.     MKDIR_P="$ac_install_sh -d"
  3004.   fi
  3005. fi
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3007. $as_echo "$MKDIR_P" >&6; }
  3008.  
  3009. for ac_prog in gawk mawk nawk awk
  3010. do
  3011.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3012. set dummy $ac_prog; ac_word=$2
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3014. $as_echo_n "checking for $ac_word... " >&6; }
  3015. if ${ac_cv_prog_AWK+:} false; then :
  3016.   $as_echo_n "(cached) " >&6
  3017. else
  3018.   if test -n "$AWK"; then
  3019.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3020. else
  3021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3022. for as_dir in $PATH
  3023. do
  3024.   IFS=$as_save_IFS
  3025.   test -z "$as_dir" && as_dir=.
  3026.     for ac_exec_ext in '' $ac_executable_extensions; do
  3027.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3028.     ac_cv_prog_AWK="$ac_prog"
  3029.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3030.     break 2
  3031.   fi
  3032. done
  3033.   done
  3034. IFS=$as_save_IFS
  3035.  
  3036. fi
  3037. fi
  3038. AWK=$ac_cv_prog_AWK
  3039. if test -n "$AWK"; then
  3040.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3041. $as_echo "$AWK" >&6; }
  3042. else
  3043.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3044. $as_echo "no" >&6; }
  3045. fi
  3046.  
  3047.  
  3048.   test -n "$AWK" && break
  3049. done
  3050.  
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3052. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3053. set x ${MAKE-make}
  3054. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3055. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3056.   $as_echo_n "(cached) " >&6
  3057. else
  3058.   cat >conftest.make <<\_ACEOF
  3059. SHELL = /bin/sh
  3060. all:
  3061.     @echo '@@@%%%=$(MAKE)=@@@%%%'
  3062. _ACEOF
  3063. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3064. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3065.   *@@@%%%=?*=@@@%%%*)
  3066.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  3067.   *)
  3068.     eval ac_cv_prog_make_${ac_make}_set=no;;
  3069. esac
  3070. rm -f conftest.make
  3071. fi
  3072. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3073.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3074. $as_echo "yes" >&6; }
  3075.   SET_MAKE=
  3076. else
  3077.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3078. $as_echo "no" >&6; }
  3079.   SET_MAKE="MAKE=${MAKE-make}"
  3080. fi
  3081.  
  3082. rm -rf .tst 2>/dev/null
  3083. mkdir .tst 2>/dev/null
  3084. if test -d .tst; then
  3085.   am__leading_dot=.
  3086. else
  3087.   am__leading_dot=_
  3088. fi
  3089. rmdir .tst 2>/dev/null
  3090.  
  3091. # Check whether --enable-silent-rules was given.
  3092. if test "${enable_silent_rules+set}" = set; then :
  3093.   enableval=$enable_silent_rules;
  3094. fi
  3095.  
  3096. case $enable_silent_rules in # (((
  3097.   yes) AM_DEFAULT_VERBOSITY=0;;
  3098.    no) AM_DEFAULT_VERBOSITY=1;;
  3099.     *) AM_DEFAULT_VERBOSITY=1;;
  3100. esac
  3101. am_make=${MAKE-make}
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3103. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3104. if ${am_cv_make_support_nested_variables+:} false; then :
  3105.   $as_echo_n "(cached) " >&6
  3106. else
  3107.   if $as_echo 'TRUE=$(BAR$(V))
  3108. BAR0=false
  3109. BAR1=true
  3110. V=1
  3111. am__doit:
  3112.     @$(TRUE)
  3113. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3114.   am_cv_make_support_nested_variables=yes
  3115. else
  3116.   am_cv_make_support_nested_variables=no
  3117. fi
  3118. fi
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3120. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3121. if test $am_cv_make_support_nested_variables = yes; then
  3122.     AM_V='$(V)'
  3123.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3124. else
  3125.   AM_V=$AM_DEFAULT_VERBOSITY
  3126.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3127. fi
  3128. AM_BACKSLASH='\'
  3129.  
  3130. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3131.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3132.   # is not polluted with repeated "-I."
  3133.   am__isrc=' -I$(srcdir)'
  3134.   # test to see if srcdir already configured
  3135.   if test -f $srcdir/config.status; then
  3136.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3137.   fi
  3138. fi
  3139.  
  3140. # test whether we have cygpath
  3141. if test -z "$CYGPATH_W"; then
  3142.   if (cygpath --version) >/dev/null 2>/dev/null; then
  3143.     CYGPATH_W='cygpath -w'
  3144.   else
  3145.     CYGPATH_W=echo
  3146.   fi
  3147. fi
  3148.  
  3149.  
  3150. # Define the identity of the package.
  3151.  PACKAGE='zabbix'
  3152.  VERSION='3.4.3'
  3153.  
  3154.  
  3155. cat >>confdefs.h <<_ACEOF
  3156. #define PACKAGE "$PACKAGE"
  3157. _ACEOF
  3158.  
  3159.  
  3160. cat >>confdefs.h <<_ACEOF
  3161. #define VERSION "$VERSION"
  3162. _ACEOF
  3163.  
  3164. # Some tools Automake needs.
  3165.  
  3166. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3167.  
  3168.  
  3169. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3170.  
  3171.  
  3172. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3173.  
  3174.  
  3175. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3176.  
  3177.  
  3178. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3179.  
  3180. # For better backward compatibility.  To be removed once Automake 1.9.x
  3181. # dies out for good.  For more background, see:
  3182. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3183. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3184. mkdir_p='$(MKDIR_P)'
  3185.  
  3186. # We need awk for the "check" target.  The system "awk" is bad on
  3187. # some platforms.
  3188. # Always define AMTAR for backward compatibility.  Yes, it's still used
  3189. # in the wild :-(  We should find a proper way to deprecate it ...
  3190. AMTAR='$${TAR-tar}'
  3191.  
  3192.  
  3193. # We'll loop over all known methods to create a tar archive until one works.
  3194. _am_tools='gnutar  pax cpio none'
  3195.  
  3196. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3197.  
  3198.  
  3199.  
  3200.  
  3201.  
  3202.  
  3203. # POSIX will say in a future version that running "rm -f" with no argument
  3204. # is OK; and we want to be able to make that assumption in our Makefile
  3205. # recipes.  So use an aggressive probe to check that the usage we want is
  3206. # actually supported "in the wild" to an acceptable degree.
  3207. # See automake bug#10828.
  3208. # To make any issue more visible, cause the running configure to be aborted
  3209. # by default if the 'rm' program in use doesn't match our expectations; the
  3210. # user can still override this though.
  3211. if rm -f && rm -fr && rm -rf; then : OK; else
  3212.  cat >&2 <<'END'
  3213. Oops!
  3214.  
  3215. Your 'rm' program seems unable to run without file operands specified
  3216. on the command line, even when the '-f' option is present.  This is contrary
  3217. to the behaviour of most rm programs out there, and not conforming with
  3218. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3219.  
  3220. Please tell bug-automake@gnu.org about your system, including the value
  3221. of your $PATH and any error possibly output before this message.  This
  3222. can help us improve future automake versions.
  3223.  
  3224. END
  3225.  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3226.    echo 'Configuration will proceed anyway, since you have set the' >&2
  3227.    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3228.    echo >&2
  3229.  else
  3230.    cat >&2 <<'END'
  3231. Aborting the configuration process, to ensure you take notice of the issue.
  3232.  
  3233. You can download and install GNU coreutils to get an 'rm' implementation
  3234. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3235.  
  3236. If you want to complete the configuration process using your problematic
  3237. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3238. to "yes", and re-run configure.
  3239.  
  3240. END
  3241.    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3242.  fi
  3243. fi
  3244.  
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring $PACKAGE_NAME $PACKAGE_VERSION" >&5
  3246. $as_echo "$as_me: Configuring $PACKAGE_NAME $PACKAGE_VERSION" >&6;}
  3247.  
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3249. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3250. set x ${MAKE-make}
  3251. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3252. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3253.  $as_echo_n "(cached) " >&6
  3254. else
  3255.  cat >conftest.make <<\_ACEOF
  3256. SHELL = /bin/sh
  3257. all:
  3258.     @echo '@@@%%%=$(MAKE)=@@@%%%'
  3259. _ACEOF
  3260. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3261. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3262.  *@@@%%%=?*=@@@%%%*)
  3263.    eval ac_cv_prog_make_${ac_make}_set=yes;;
  3264.  *)
  3265.    eval ac_cv_prog_make_${ac_make}_set=no;;
  3266. esac
  3267. rm -f conftest.make
  3268. fi
  3269. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3270.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3271. $as_echo "yes" >&6; }
  3272.  SET_MAKE=
  3273. else
  3274.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3275. $as_echo "no" >&6; }
  3276.  SET_MAKE="MAKE=${MAKE-make}"
  3277. fi
  3278.  
  3279.  
  3280. ac_config_headers="$ac_config_headers include/config.h"
  3281.  
  3282.  
  3283. # Make sure we can run config.sub.
  3284. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3285.  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3286.  
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3288. $as_echo_n "checking build system type... " >&6; }
  3289. if ${ac_cv_build+:} false; then :
  3290.  $as_echo_n "(cached) " >&6
  3291. else
  3292.  ac_build_alias=$build_alias
  3293. test "x$ac_build_alias" = x &&
  3294.  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3295. test "x$ac_build_alias" = x &&
  3296.  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3297. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3298.  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3299.  
  3300. fi
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3302. $as_echo "$ac_cv_build" >&6; }
  3303. case $ac_cv_build in
  3304. *-*-*) ;;
  3305. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3306. esac
  3307. build=$ac_cv_build
  3308. ac_save_IFS=$IFS; IFS='-'
  3309. set x $ac_cv_build
  3310. shift
  3311. build_cpu=$1
  3312. build_vendor=$2
  3313. shift; shift
  3314. # Remember, the first character of IFS is used to create $*,
  3315. # except with old shells:
  3316. build_os=$*
  3317. IFS=$ac_save_IFS
  3318. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3319.  
  3320.  
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3322. $as_echo_n "checking host system type... " >&6; }
  3323. if ${ac_cv_host+:} false; then :
  3324.  $as_echo_n "(cached) " >&6
  3325. else
  3326.  if test "x$host_alias" = x; then
  3327.  ac_cv_host=$ac_cv_build
  3328. else
  3329.  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3330.    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3331. fi
  3332.  
  3333. fi
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3335. $as_echo "$ac_cv_host" >&6; }
  3336. case $ac_cv_host in
  3337. *-*-*) ;;
  3338. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3339. esac
  3340. host=$ac_cv_host
  3341. ac_save_IFS=$IFS; IFS='-'
  3342. set x $ac_cv_host
  3343. shift
  3344. host_cpu=$1
  3345. host_vendor=$2
  3346. shift; shift
  3347. # Remember, the first character of IFS is used to create $*,
  3348. # except with old shells:
  3349. host_os=$*
  3350. IFS=$ac_save_IFS
  3351. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3352.  
  3353.  
  3354.  
  3355.  
  3356. ac_ext=c
  3357. ac_cpp='$CPP $CPPFLAGS'
  3358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3361. if test -n "$ac_tool_prefix"; then
  3362.  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3363. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3365. $as_echo_n "checking for $ac_word... " >&6; }
  3366. if ${ac_cv_prog_CC+:} false; then :
  3367.  $as_echo_n "(cached) " >&6
  3368. else
  3369.  if test -n "$CC"; then
  3370.  ac_cv_prog_CC="$CC" # Let the user override the test.
  3371. else
  3372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3373. for as_dir in $PATH
  3374. do
  3375.  IFS=$as_save_IFS
  3376.  test -z "$as_dir" && as_dir=.
  3377.    for ac_exec_ext in '' $ac_executable_extensions; do
  3378.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3379.    ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3380.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3381.    break 2
  3382.  fi
  3383. done
  3384.  done
  3385. IFS=$as_save_IFS
  3386.  
  3387. fi
  3388. fi
  3389. CC=$ac_cv_prog_CC
  3390. if test -n "$CC"; then
  3391.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3392. $as_echo "$CC" >&6; }
  3393. else
  3394.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3395. $as_echo "no" >&6; }
  3396. fi
  3397.  
  3398.  
  3399. fi
  3400. if test -z "$ac_cv_prog_CC"; then
  3401.  ac_ct_CC=$CC
  3402.  # Extract the first word of "gcc", so it can be a program name with args.
  3403. set dummy gcc; ac_word=$2
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3405. $as_echo_n "checking for $ac_word... " >&6; }
  3406. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3407.  $as_echo_n "(cached) " >&6
  3408. else
  3409.  if test -n "$ac_ct_CC"; then
  3410.  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3411. else
  3412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3413. for as_dir in $PATH
  3414. do
  3415.  IFS=$as_save_IFS
  3416.  test -z "$as_dir" && as_dir=.
  3417.    for ac_exec_ext in '' $ac_executable_extensions; do
  3418.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3419.    ac_cv_prog_ac_ct_CC="gcc"
  3420.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3421.    break 2
  3422.  fi
  3423. done
  3424.  done
  3425. IFS=$as_save_IFS
  3426.  
  3427. fi
  3428. fi
  3429. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3430. if test -n "$ac_ct_CC"; then
  3431.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3432. $as_echo "$ac_ct_CC" >&6; }
  3433. else
  3434.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3435. $as_echo "no" >&6; }
  3436. fi
  3437.  
  3438.  if test "x$ac_ct_CC" = x; then
  3439.    CC=""
  3440.  else
  3441.    case $cross_compiling:$ac_tool_warned in
  3442. yes:)
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3444. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3445. ac_tool_warned=yes ;;
  3446. esac
  3447.    CC=$ac_ct_CC
  3448.  fi
  3449. else
  3450.  CC="$ac_cv_prog_CC"
  3451. fi
  3452.  
  3453. if test -z "$CC"; then
  3454.          if test -n "$ac_tool_prefix"; then
  3455.    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3456. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3458. $as_echo_n "checking for $ac_word... " >&6; }
  3459. if ${ac_cv_prog_CC+:} false; then :
  3460.  $as_echo_n "(cached) " >&6
  3461. else
  3462.  if test -n "$CC"; then
  3463.  ac_cv_prog_CC="$CC" # Let the user override the test.
  3464. else
  3465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3466. for as_dir in $PATH
  3467. do
  3468.  IFS=$as_save_IFS
  3469.  test -z "$as_dir" && as_dir=.
  3470.    for ac_exec_ext in '' $ac_executable_extensions; do
  3471.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3472.    ac_cv_prog_CC="${ac_tool_prefix}cc"
  3473.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3474.    break 2
  3475.  fi
  3476. done
  3477.  done
  3478. IFS=$as_save_IFS
  3479.  
  3480. fi
  3481. fi
  3482. CC=$ac_cv_prog_CC
  3483. if test -n "$CC"; then
  3484.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3485. $as_echo "$CC" >&6; }
  3486. else
  3487.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3488. $as_echo "no" >&6; }
  3489. fi
  3490.  
  3491.  
  3492.  fi
  3493. fi
  3494. if test -z "$CC"; then
  3495.  # Extract the first word of "cc", so it can be a program name with args.
  3496. set dummy cc; ac_word=$2
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3498. $as_echo_n "checking for $ac_word... " >&6; }
  3499. if ${ac_cv_prog_CC+:} false; then :
  3500.  $as_echo_n "(cached) " >&6
  3501. else
  3502.  if test -n "$CC"; then
  3503.  ac_cv_prog_CC="$CC" # Let the user override the test.
  3504. else
  3505.  ac_prog_rejected=no
  3506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3507. for as_dir in $PATH
  3508. do
  3509.  IFS=$as_save_IFS
  3510.  test -z "$as_dir" && as_dir=.
  3511.    for ac_exec_ext in '' $ac_executable_extensions; do
  3512.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3513.    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3514.       ac_prog_rejected=yes
  3515.       continue
  3516.     fi
  3517.    ac_cv_prog_CC="cc"
  3518.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3519.    break 2
  3520.  fi
  3521. done
  3522.  done
  3523. IFS=$as_save_IFS
  3524.  
  3525. if test $ac_prog_rejected = yes; then
  3526.  # We found a bogon in the path, so make sure we never use it.
  3527.  set dummy $ac_cv_prog_CC
  3528.  shift
  3529.  if test $# != 0; then
  3530.    # We chose a different compiler from the bogus one.
  3531.    # However, it has the same basename, so the bogon will be chosen
  3532.    # first if we set CC to just the basename; use the full file name.
  3533.    shift
  3534.    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3535.  fi
  3536. fi
  3537. fi
  3538. fi
  3539. CC=$ac_cv_prog_CC
  3540. if test -n "$CC"; then
  3541.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3542. $as_echo "$CC" >&6; }
  3543. else
  3544.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3545. $as_echo "no" >&6; }
  3546. fi
  3547.  
  3548.  
  3549. fi
  3550. if test -z "$CC"; then
  3551.  if test -n "$ac_tool_prefix"; then
  3552.  for ac_prog in cl.exe
  3553.  do
  3554.    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3555. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3557. $as_echo_n "checking for $ac_word... " >&6; }
  3558. if ${ac_cv_prog_CC+:} false; then :
  3559.  $as_echo_n "(cached) " >&6
  3560. else
  3561.  if test -n "$CC"; then
  3562.  ac_cv_prog_CC="$CC" # Let the user override the test.
  3563. else
  3564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3565. for as_dir in $PATH
  3566. do
  3567.  IFS=$as_save_IFS
  3568.  test -z "$as_dir" && as_dir=.
  3569.    for ac_exec_ext in '' $ac_executable_extensions; do
  3570.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3571.    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3572.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3573.    break 2
  3574.  fi
  3575. done
  3576.  done
  3577. IFS=$as_save_IFS
  3578.  
  3579. fi
  3580. fi
  3581. CC=$ac_cv_prog_CC
  3582. if test -n "$CC"; then
  3583.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3584. $as_echo "$CC" >&6; }
  3585. else
  3586.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3587. $as_echo "no" >&6; }
  3588. fi
  3589.  
  3590.  
  3591.    test -n "$CC" && break
  3592.  done
  3593. fi
  3594. if test -z "$CC"; then
  3595.  ac_ct_CC=$CC
  3596.  for ac_prog in cl.exe
  3597. do
  3598.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  3599. set dummy $ac_prog; ac_word=$2
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3601. $as_echo_n "checking for $ac_word... " >&6; }
  3602. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3603.  $as_echo_n "(cached) " >&6
  3604. else
  3605.  if test -n "$ac_ct_CC"; then
  3606.  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3607. else
  3608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3609. for as_dir in $PATH
  3610. do
  3611.  IFS=$as_save_IFS
  3612.  test -z "$as_dir" && as_dir=.
  3613.    for ac_exec_ext in '' $ac_executable_extensions; do
  3614.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3615.    ac_cv_prog_ac_ct_CC="$ac_prog"
  3616.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3617.    break 2
  3618.  fi
  3619. done
  3620.  done
  3621. IFS=$as_save_IFS
  3622.  
  3623. fi
  3624. fi
  3625. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3626. if test -n "$ac_ct_CC"; then
  3627.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3628. $as_echo "$ac_ct_CC" >&6; }
  3629. else
  3630.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3631. $as_echo "no" >&6; }
  3632. fi
  3633.  
  3634.  
  3635.  test -n "$ac_ct_CC" && break
  3636. done
  3637.  
  3638.  if test "x$ac_ct_CC" = x; then
  3639.    CC=""
  3640.  else
  3641.    case $cross_compiling:$ac_tool_warned in
  3642. yes:)
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3645. ac_tool_warned=yes ;;
  3646. esac
  3647.    CC=$ac_ct_CC
  3648.  fi
  3649. fi
  3650.  
  3651. fi
  3652.  
  3653.  
  3654. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3655. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3656. as_fn_error $? "no acceptable C compiler found in \$PATH
  3657. See \`config.log' for more details" "$LINENO" 5; }
  3658.  
  3659. # Provide some information about the compiler.
  3660. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3661. set X $ac_compile
  3662. ac_compiler=$2
  3663. for ac_option in --version -v -V -qversion; do
  3664.  { { ac_try="$ac_compiler $ac_option >&5"
  3665. case "(($ac_try" in
  3666.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3667.  *) ac_try_echo=$ac_try;;
  3668. esac
  3669. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3670. $as_echo "$ac_try_echo"; } >&5
  3671.  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3672.  ac_status=$?
  3673.  if test -s conftest.err; then
  3674.    sed '10a\
  3675. ... rest of stderr output deleted ...
  3676.          10q' conftest.err >conftest.er1
  3677.    cat conftest.er1 >&5
  3678.  fi
  3679.  rm -f conftest.er1 conftest.err
  3680.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3681.  test $ac_status = 0; }
  3682. done
  3683.  
  3684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3685. /* end confdefs.h.  */
  3686.  
  3687. int
  3688. main ()
  3689. {
  3690.  
  3691.  ;
  3692.  return 0;
  3693. }
  3694. _ACEOF
  3695. ac_clean_files_save=$ac_clean_files
  3696. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3697. # Try to create an executable without -o first, disregard a.out.
  3698. # It will help us diagnose broken compilers, and finding out an intuition
  3699. # of exeext.
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3701. $as_echo_n "checking whether the C compiler works... " >&6; }
  3702. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3703.  
  3704. # The possible output files:
  3705. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3706.  
  3707. ac_rmfiles=
  3708. for ac_file in $ac_files
  3709. do
  3710.  case $ac_file in
  3711.    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3712.    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3713.  esac
  3714. done
  3715. rm -f $ac_rmfiles
  3716.  
  3717. if { { ac_try="$ac_link_default"
  3718. case "(($ac_try" in
  3719.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3720.  *) ac_try_echo=$ac_try;;
  3721. esac
  3722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3723. $as_echo "$ac_try_echo"; } >&5
  3724.  (eval "$ac_link_default") 2>&5
  3725.  ac_status=$?
  3726.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3727.  test $ac_status = 0; }; then :
  3728.  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3729. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3730. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3731. # so that the user can short-circuit this test for compilers unknown to
  3732. # Autoconf.
  3733. for ac_file in $ac_files ''
  3734. do
  3735.   test -f "$ac_file" || continue
  3736.   case $ac_file in
  3737.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3738.     ;;
  3739.     [ab].out )
  3740.     # We found the default executable, but exeext='' is most
  3741.     # certainly right.
  3742.     break;;
  3743.     *.* )
  3744.     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3745.     then :; else
  3746.        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3747.     fi
  3748.     # We set ac_cv_exeext here because the later test for it is not
  3749.     # safe: cross compilers may not add the suffix if given an `-o'
  3750.     # argument, so we may need to know it at that point already.
  3751.     # Even if this section looks crufty: it has the advantage of
  3752.     # actually working.
  3753.     break;;
  3754.     * )
  3755.     break;;
  3756.   esac
  3757. done
  3758. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3759.  
  3760. else
  3761.   ac_file=''
  3762. fi
  3763. if test -z "$ac_file"; then :
  3764.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3765. $as_echo "no" >&6; }
  3766. $as_echo "$as_me: failed program was:" >&5
  3767. sed 's/^/| /' conftest.$ac_ext >&5
  3768.  
  3769. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3770. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3771. as_fn_error 77 "C compiler cannot create executables
  3772. See \`config.log' for more details" "$LINENO" 5; }
  3773. else
  3774.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3775. $as_echo "yes" >&6; }
  3776. fi
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3778. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3780. $as_echo "$ac_file" >&6; }
  3781. ac_exeext=$ac_cv_exeext
  3782.  
  3783. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3784. ac_clean_files=$ac_clean_files_save
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3786. $as_echo_n "checking for suffix of executables... " >&6; }
  3787. if { { ac_try="$ac_link"
  3788. case "(($ac_try" in
  3789.  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3790.  *) ac_try_echo=$ac_try;;
  3791. esac
  3792. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3793. $as_echo "$ac_try_echo"; } >&5
  3794.  (eval "$ac_link") 2>&5
  3795.  ac_status=$?
  3796.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3797.  test $ac_status = 0; }; then :
  3798.  # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3799. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3800. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3801. # `rm'.
  3802. for ac_file in conftest.exe conftest conftest.*; do
  3803.  test -f "$ac_file" || continue
  3804.  case $ac_file in
  3805.    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3806.    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3807.       break;;
  3808.    * ) break;;
  3809.  esac
  3810. done
  3811. else
  3812.  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3813. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3814. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3815. See \`config.log' for more details" "$LINENO" 5; }
  3816. fi
  3817. rm -f conftest conftest$ac_cv_exeext
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3819. $as_echo "$ac_cv_exeext" >&6; }
  3820.  
  3821. rm -f conftest.$ac_ext
  3822. EXEEXT=$ac_cv_exeext
  3823. ac_exeext=$EXEEXT
  3824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3825. /* end confdefs.h.  */
  3826. #include <stdio.h>
  3827. int
  3828. main ()
  3829. {
  3830. FILE *f = fopen ("conftest.out", "w");
  3831.  return ferror (f) || fclose (f) != 0;
  3832.  
  3833.   ;
  3834.   return 0;
  3835. }
  3836. _ACEOF
  3837. ac_clean_files="$ac_clean_files conftest.out"
  3838. # Check that the compiler produces executables we can run.  If not, either
  3839. # the compiler is broken, or we cross compile.
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3841. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3842. if test "$cross_compiling" != yes; then
  3843.   { { ac_try="$ac_link"
  3844. case "(($ac_try" in
  3845.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3846.   *) ac_try_echo=$ac_try;;
  3847. esac
  3848. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3849. $as_echo "$ac_try_echo"; } >&5
  3850.   (eval "$ac_link") 2>&5
  3851.   ac_status=$?
  3852.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3853.   test $ac_status = 0; }
  3854.   if { ac_try='./conftest$ac_cv_exeext'
  3855.   { { case "(($ac_try" in
  3856.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3857.   *) ac_try_echo=$ac_try;;
  3858. esac
  3859. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3860. $as_echo "$ac_try_echo"; } >&5
  3861.   (eval "$ac_try") 2>&5
  3862.   ac_status=$?
  3863.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3864.   test $ac_status = 0; }; }; then
  3865.     cross_compiling=no
  3866.   else
  3867.     if test "$cross_compiling" = maybe; then
  3868.     cross_compiling=yes
  3869.     else
  3870.     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3871. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3872. as_fn_error $? "cannot run C compiled programs.
  3873. If you meant to cross compile, use \`--host'.
  3874. See \`config.log' for more details" "$LINENO" 5; }
  3875.     fi
  3876.   fi
  3877. fi
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3879. $as_echo "$cross_compiling" >&6; }
  3880.  
  3881. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3882. ac_clean_files=$ac_clean_files_save
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3884. $as_echo_n "checking for suffix of object files... " >&6; }
  3885. if ${ac_cv_objext+:} false; then :
  3886.   $as_echo_n "(cached) " >&6
  3887. else
  3888.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3889. /* end confdefs.h.  */
  3890.  
  3891. int
  3892. main ()
  3893. {
  3894.  
  3895.   ;
  3896.   return 0;
  3897. }
  3898. _ACEOF
  3899. rm -f conftest.o conftest.obj
  3900. if { { ac_try="$ac_compile"
  3901. case "(($ac_try" in
  3902.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3903.   *) ac_try_echo=$ac_try;;
  3904. esac
  3905. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3906. $as_echo "$ac_try_echo"; } >&5
  3907.   (eval "$ac_compile") 2>&5
  3908.   ac_status=$?
  3909.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3910.   test $ac_status = 0; }; then :
  3911.   for ac_file in conftest.o conftest.obj conftest.*; do
  3912.   test -f "$ac_file" || continue;
  3913.   case $ac_file in
  3914.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3915.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3916.        break;;
  3917.   esac
  3918. done
  3919. else
  3920.   $as_echo "$as_me: failed program was:" >&5
  3921. sed 's/^/| /' conftest.$ac_ext >&5
  3922.  
  3923. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3924. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3925. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3926. See \`config.log' for more details" "$LINENO" 5; }
  3927. fi
  3928. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3929. fi
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3931. $as_echo "$ac_cv_objext" >&6; }
  3932. OBJEXT=$ac_cv_objext
  3933. ac_objext=$OBJEXT
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3935. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3936. if ${ac_cv_c_compiler_gnu+:} false; then :
  3937.  $as_echo_n "(cached) " >&6
  3938. else
  3939.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3940. /* end confdefs.h.  */
  3941.  
  3942. int
  3943. main ()
  3944. {
  3945. #ifndef __GNUC__
  3946.       choke me
  3947. #endif
  3948.  
  3949.  ;
  3950.  return 0;
  3951. }
  3952. _ACEOF
  3953. if ac_fn_c_try_compile "$LINENO"; then :
  3954.  ac_compiler_gnu=yes
  3955. else
  3956.  ac_compiler_gnu=no
  3957. fi
  3958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3959. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3960.  
  3961. fi
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3963. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3964. if test $ac_compiler_gnu = yes; then
  3965.  GCC=yes
  3966. else
  3967.  GCC=
  3968. fi
  3969. ac_test_CFLAGS=${CFLAGS+set}
  3970. ac_save_CFLAGS=$CFLAGS
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3972. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3973. if ${ac_cv_prog_cc_g+:} false; then :
  3974.  $as_echo_n "(cached) " >&6
  3975. else
  3976.  ac_save_c_werror_flag=$ac_c_werror_flag
  3977.   ac_c_werror_flag=yes
  3978.   ac_cv_prog_cc_g=no
  3979.   CFLAGS="-g"
  3980.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3981. /* end confdefs.h.  */
  3982.  
  3983. int
  3984. main ()
  3985. {
  3986.  
  3987.  ;
  3988.  return 0;
  3989. }
  3990. _ACEOF
  3991. if ac_fn_c_try_compile "$LINENO"; then :
  3992.  ac_cv_prog_cc_g=yes
  3993. else
  3994.  CFLAGS=""
  3995.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3996. /* end confdefs.h.  */
  3997.  
  3998. int
  3999. main ()
  4000. {
  4001.  
  4002.  ;
  4003.  return 0;
  4004. }
  4005. _ACEOF
  4006. if ac_fn_c_try_compile "$LINENO"; then :
  4007.  
  4008. else
  4009.  ac_c_werror_flag=$ac_save_c_werror_flag
  4010.      CFLAGS="-g"
  4011.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4012. /* end confdefs.h.  */
  4013.  
  4014. int
  4015. main ()
  4016. {
  4017.  
  4018.  ;
  4019.  return 0;
  4020. }
  4021. _ACEOF
  4022. if ac_fn_c_try_compile "$LINENO"; then :
  4023.  ac_cv_prog_cc_g=yes
  4024. fi
  4025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4026. fi
  4027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4028. fi
  4029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4030.   ac_c_werror_flag=$ac_save_c_werror_flag
  4031. fi
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4033. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4034. if test "$ac_test_CFLAGS" = set; then
  4035.  CFLAGS=$ac_save_CFLAGS
  4036. elif test $ac_cv_prog_cc_g = yes; then
  4037.  if test "$GCC" = yes; then
  4038.    CFLAGS="-g -O2"
  4039.  else
  4040.    CFLAGS="-g"
  4041.  fi
  4042. else
  4043.  if test "$GCC" = yes; then
  4044.    CFLAGS="-O2"
  4045.  else
  4046.    CFLAGS=
  4047.  fi
  4048. fi
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4050. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4051. if ${ac_cv_prog_cc_c89+:} false; then :
  4052.  $as_echo_n "(cached) " >&6
  4053. else
  4054.  ac_cv_prog_cc_c89=no
  4055. ac_save_CC=$CC
  4056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4057. /* end confdefs.h.  */
  4058. #include <stdarg.h>
  4059. #include <stdio.h>
  4060. struct stat;
  4061. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4062. struct buf { int x; };
  4063. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4064. static char *e (p, i)
  4065.     char **p;
  4066.     int i;
  4067. {
  4068.  return p[i];
  4069. }
  4070. static char *f (char * (*g) (char **, int), char **p, ...)
  4071. {
  4072.  char *s;
  4073.  va_list v;
  4074.  va_start (v,p);
  4075.  s = g (p, va_arg (v,int));
  4076.  va_end (v);
  4077.  return s;
  4078. }
  4079.  
  4080. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4081.   function prototypes and stuff, but not '\xHH' hex character constants.
  4082.   These don't provoke an error unfortunately, instead are silently treated
  4083.   as 'x'.  The following induces an error, until -std is added to get
  4084.   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4085.   array size at least.  It's necessary to write '\x00'==0 to get something
  4086.   that's true only with -std.  */
  4087. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4088.  
  4089. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4090.   inside strings and character constants.  */
  4091. #define FOO(x) 'x'
  4092. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4093.  
  4094. int test (int i, double x);
  4095. struct s1 {int (*f) (int a);};
  4096. struct s2 {int (*f) (double a);};
  4097. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4098. int argc;
  4099. char **argv;
  4100. int
  4101. main ()
  4102. {
  4103. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4104.  ;
  4105.  return 0;
  4106. }
  4107. _ACEOF
  4108. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4109.     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4110. do
  4111.  CC="$ac_save_CC $ac_arg"
  4112.  if ac_fn_c_try_compile "$LINENO"; then :
  4113.  ac_cv_prog_cc_c89=$ac_arg
  4114. fi
  4115. rm -f core conftest.err conftest.$ac_objext
  4116.  test "x$ac_cv_prog_cc_c89" != "xno" && break
  4117. done
  4118. rm -f conftest.$ac_ext
  4119. CC=$ac_save_CC
  4120.  
  4121. fi
  4122. # AC_CACHE_VAL
  4123. case "x$ac_cv_prog_cc_c89" in
  4124.  x)
  4125.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4126. $as_echo "none needed" >&6; } ;;
  4127.  xno)
  4128.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4129. $as_echo "unsupported" >&6; } ;;
  4130.  *)
  4131.    CC="$CC $ac_cv_prog_cc_c89"
  4132.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4133. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4134. esac
  4135. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4136.  
  4137. fi
  4138.  
  4139. ac_ext=c
  4140. ac_cpp='$CPP $CPPFLAGS'
  4141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4144.  
  4145. ac_ext=c
  4146. ac_cpp='$CPP $CPPFLAGS'
  4147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4151. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4152. if ${am_cv_prog_cc_c_o+:} false; then :
  4153.  $as_echo_n "(cached) " >&6
  4154. else
  4155.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4156. /* end confdefs.h.  */
  4157.  
  4158. int
  4159. main ()
  4160. {
  4161.  
  4162.  ;
  4163.  return 0;
  4164. }
  4165. _ACEOF
  4166.  # Make sure it works both with $CC and with simple cc.
  4167.  # Following AC_PROG_CC_C_O, we do the test twice because some
  4168.  # compilers refuse to overwrite an existing .o file with -o,
  4169.  # though they will create one.
  4170.  am_cv_prog_cc_c_o=yes
  4171.  for am_i in 1 2; do
  4172.    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4173.   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4174.   ac_status=$?
  4175.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4176.   (exit $ac_status); } \
  4177.         && test -f conftest2.$ac_objext; then
  4178.      : OK
  4179.    else
  4180.      am_cv_prog_cc_c_o=no
  4181.      break
  4182.    fi
  4183.  done
  4184.  rm -f core conftest*
  4185.  unset am_i
  4186. fi
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4188. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4189. if test "$am_cv_prog_cc_c_o" != yes; then
  4190.   # Losing compiler, so override with the script.
  4191.   # FIXME: It is wrong to rewrite CC.
  4192.   # But if we don't then we get into trouble of one sort or another.
  4193.   # A longer-term fix would be to have automake use am__CC in this case,
  4194.   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4195.   CC="$am_aux_dir/compile $CC"
  4196. fi
  4197. ac_ext=c
  4198. ac_cpp='$CPP $CPPFLAGS'
  4199. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4200. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4201. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4202.  
  4203. DEPDIR="${am__leading_dot}deps"
  4204.  
  4205. ac_config_commands="$ac_config_commands depfiles"
  4206.  
  4207.  
  4208. am_make=${MAKE-make}
  4209. cat > confinc << 'END'
  4210. am__doit:
  4211.     @echo this is the am__doit target
  4212. .PHONY: am__doit
  4213. END
  4214. # If we don't find an include directive, just comment out the code.
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4216. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4217. am__include="#"
  4218. am__quote=
  4219. _am_result=none
  4220. # First try GNU make style include.
  4221. echo "include confinc" > confmf
  4222. # Ignore all kinds of additional output from 'make'.
  4223. case `$am_make -s -f confmf 2> /dev/null` in #(
  4224. *the\ am__doit\ target*)
  4225.  am__include=include
  4226.  am__quote=
  4227.  _am_result=GNU
  4228.  ;;
  4229. esac
  4230. # Now try BSD make style include.
  4231. if test "$am__include" = "#"; then
  4232.   echo '.include "confinc"' > confmf
  4233.   case `$am_make -s -f confmf 2> /dev/null` in #(
  4234.   *the\ am__doit\ target*)
  4235.     am__include=.include
  4236.     am__quote="\""
  4237.     _am_result=BSD
  4238.     ;;
  4239.   esac
  4240. fi
  4241.  
  4242.  
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4244. $as_echo "$_am_result" >&6; }
  4245. rm -f confinc confmf
  4246.  
  4247. # Check whether --enable-dependency-tracking was given.
  4248. if test "${enable_dependency_tracking+set}" = set; then :
  4249.  enableval=$enable_dependency_tracking;
  4250. fi
  4251.  
  4252. if test "x$enable_dependency_tracking" != xno; then
  4253.  am_depcomp="$ac_aux_dir/depcomp"
  4254.  AMDEPBACKSLASH='\'
  4255.  am__nodep='_no'
  4256. fi
  4257. if test "x$enable_dependency_tracking" != xno; then
  4258.  AMDEP_TRUE=
  4259.  AMDEP_FALSE='#'
  4260. else
  4261.  AMDEP_TRUE='#'
  4262.  AMDEP_FALSE=
  4263. fi
  4264.  
  4265.  
  4266.  
  4267. depcc="$CC"   am_compiler_list=
  4268.  
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4270. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4271. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4272.  $as_echo_n "(cached) " >&6
  4273. else
  4274.  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4275.  # We make a subdir and do the tests there.  Otherwise we can end up
  4276.  # making bogus files that we don't know about and never remove.  For
  4277.  # instance it was reported that on HP-UX the gcc test will end up
  4278.  # making a dummy file named 'D' -- because '-MD' means "put the output
  4279.  # in D".
  4280.  rm -rf conftest.dir
  4281.  mkdir conftest.dir
  4282.  # Copy depcomp to subdir because otherwise we won't find it if we're
  4283.  # using a relative directory.
  4284.  cp "$am_depcomp" conftest.dir
  4285.  cd conftest.dir
  4286.  # We will build objects and dependencies in a subdirectory because
  4287.  # it helps to detect inapplicable dependency modes.  For instance
  4288.  # both Tru64's cc and ICC support -MD to output dependencies as a
  4289.  # side effect of compilation, but ICC will put the dependencies in
  4290.  # the current directory while Tru64 will put them in the object
  4291.  # directory.
  4292.  mkdir sub
  4293.  
  4294.  am_cv_CC_dependencies_compiler_type=none
  4295.  if test "$am_compiler_list" = ""; then
  4296.     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4297.  fi
  4298.  am__universal=false
  4299.  case " $depcc " in #(
  4300.     *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4301.     esac
  4302.  
  4303.  for depmode in $am_compiler_list; do
  4304.    # Setup a source with many dependencies, because some compilers
  4305.    # like to wrap large dependency lists on column 80 (with \), and
  4306.    # we should not choose a depcomp mode which is confused by this.
  4307.    #
  4308.    # We need to recreate these files for each test, as the compiler may
  4309.    # overwrite some of them when testing with obscure command lines.
  4310.    # This happens at least with the AIX C compiler.
  4311.    : > sub/conftest.c
  4312.    for i in 1 2 3 4 5 6; do
  4313.      echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4314.      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4315.      # Solaris 10 /bin/sh.
  4316.      echo '/* dummy */' > sub/conftst$i.h
  4317.    done
  4318.    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4319.  
  4320.    # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4321.    # mode.  It turns out that the SunPro C++ compiler does not properly
  4322.    # handle '-M -o', and we need to detect this.  Also, some Intel
  4323.    # versions had trouble with output in subdirs.
  4324.    am__obj=sub/conftest.${OBJEXT-o}
  4325.    am__minus_obj="-o $am__obj"
  4326.    case $depmode in
  4327.    gcc)
  4328.      # This depmode causes a compiler race in universal mode.
  4329.      test "$am__universal" = false || continue
  4330.      ;;
  4331.    nosideeffect)
  4332.      # After this tag, mechanisms are not by side-effect, so they'll
  4333.      # only be used when explicitly requested.
  4334.      if test "x$enable_dependency_tracking" = xyes; then
  4335.     continue
  4336.      else
  4337.     break
  4338.      fi
  4339.      ;;
  4340.    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4341.      # This compiler won't grok '-c -o', but also, the minuso test has
  4342.      # not run yet.  These depmodes are late enough in the game, and
  4343.      # so weak that their functioning should not be impacted.
  4344.      am__obj=conftest.${OBJEXT-o}
  4345.      am__minus_obj=
  4346.      ;;
  4347.    none) break ;;
  4348.    esac
  4349.    if depmode=$depmode \
  4350.       source=sub/conftest.c object=$am__obj \
  4351.       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4352.       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4353.         >/dev/null 2>conftest.err &&
  4354.       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4355.       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4356.       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4357.       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4358.      # icc doesn't choke on unknown options, it will just issue warnings
  4359.      # or remarks (even with -Werror).  So we grep stderr for any message
  4360.      # that says an option was ignored or not supported.
  4361.      # When given -MP, icc 7.0 and 7.1 complain thusly:
  4362.      #   icc: Command line warning: ignoring option '-M'; no argument required
  4363.      # The diagnosis changed in icc 8.0:
  4364.      #   icc: Command line remark: option '-MP' not supported
  4365.      if (grep 'ignoring option' conftest.err ||
  4366.          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4367.        am_cv_CC_dependencies_compiler_type=$depmode
  4368.        break
  4369.      fi
  4370.    fi
  4371.  done
  4372.  
  4373.  cd ..
  4374.  rm -rf conftest.dir
  4375. else
  4376.  am_cv_CC_dependencies_compiler_type=none
  4377. fi
  4378.  
  4379. fi
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4381. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4382. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4383.  
  4384. if
  4385.  test "x$enable_dependency_tracking" != xno \
  4386.  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4387.  am__fastdepCC_TRUE=
  4388.  am__fastdepCC_FALSE='#'
  4389. else
  4390.  am__fastdepCC_TRUE='#'
  4391.  am__fastdepCC_FALSE=
  4392. fi
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399. ac_ext=c
  4400. ac_cpp='$CPP $CPPFLAGS'
  4401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4405. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4406. # On Suns, sometimes $CPP names a directory.
  4407. if test -n "$CPP" && test -d "$CPP"; then
  4408.  CPP=
  4409. fi
  4410. if test -z "$CPP"; then
  4411.  if ${ac_cv_prog_CPP+:} false; then :
  4412.  $as_echo_n "(cached) " >&6
  4413. else
  4414.      # Double quotes because CPP needs to be expanded
  4415.    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4416.    do
  4417.      ac_preproc_ok=false
  4418. for ac_c_preproc_warn_flag in '' yes
  4419. do
  4420.  # Use a header file that comes with gcc, so configuring glibc
  4421.  # with a fresh cross-compiler works.
  4422.  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4423.  # <limits.h> exists even on freestanding compilers.
  4424.  # On the NeXT, cc -E runs the code through the compiler's parser,
  4425.  # not just through cpp. "Syntax error" is here to catch this case.
  4426.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4427. /* end confdefs.h.  */
  4428. #ifdef __STDC__
  4429. # include <limits.h>
  4430. #else
  4431. # include <assert.h>
  4432. #endif
  4433.              Syntax error
  4434. _ACEOF
  4435. if ac_fn_c_try_cpp "$LINENO"; then :
  4436.  
  4437. else
  4438.  # Broken: fails on valid input.
  4439. continue
  4440. fi
  4441. rm -f conftest.err conftest.i conftest.$ac_ext
  4442.  
  4443.  # OK, works on sane cases.  Now check whether nonexistent headers
  4444.  # can be detected and how.
  4445.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4446. /* end confdefs.h.  */
  4447. #include <ac_nonexistent.h>
  4448. _ACEOF
  4449. if ac_fn_c_try_cpp "$LINENO"; then :
  4450.  # Broken: success on invalid input.
  4451. continue
  4452. else
  4453.  # Passes both tests.
  4454. ac_preproc_ok=:
  4455. break
  4456. fi
  4457. rm -f conftest.err conftest.i conftest.$ac_ext
  4458.  
  4459. done
  4460. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4461. rm -f conftest.i conftest.err conftest.$ac_ext
  4462. if $ac_preproc_ok; then :
  4463.  break
  4464. fi
  4465.  
  4466.    done
  4467.    ac_cv_prog_CPP=$CPP
  4468.  
  4469. fi
  4470.  CPP=$ac_cv_prog_CPP
  4471. else
  4472.  ac_cv_prog_CPP=$CPP
  4473. fi
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4475. $as_echo "$CPP" >&6; }
  4476. ac_preproc_ok=false
  4477. for ac_c_preproc_warn_flag in '' yes
  4478. do
  4479.  # Use a header file that comes with gcc, so configuring glibc
  4480.  # with a fresh cross-compiler works.
  4481.  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4482.  # <limits.h> exists even on freestanding compilers.
  4483.  # On the NeXT, cc -E runs the code through the compiler's parser,
  4484.  # not just through cpp. "Syntax error" is here to catch this case.
  4485.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4486. /* end confdefs.h.  */
  4487. #ifdef __STDC__
  4488. # include <limits.h>
  4489. #else
  4490. # include <assert.h>
  4491. #endif
  4492.              Syntax error
  4493. _ACEOF
  4494. if ac_fn_c_try_cpp "$LINENO"; then :
  4495.  
  4496. else
  4497.  # Broken: fails on valid input.
  4498. continue
  4499. fi
  4500. rm -f conftest.err conftest.i conftest.$ac_ext
  4501.  
  4502.  # OK, works on sane cases.  Now check whether nonexistent headers
  4503.  # can be detected and how.
  4504.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4505. /* end confdefs.h.  */
  4506. #include <ac_nonexistent.h>
  4507. _ACEOF
  4508. if ac_fn_c_try_cpp "$LINENO"; then :
  4509.  # Broken: success on invalid input.
  4510. continue
  4511. else
  4512.  # Passes both tests.
  4513. ac_preproc_ok=:
  4514. break
  4515. fi
  4516. rm -f conftest.err conftest.i conftest.$ac_ext
  4517.  
  4518. done
  4519. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4520. rm -f conftest.i conftest.err conftest.$ac_ext
  4521. if $ac_preproc_ok; then :
  4522.  
  4523. else
  4524.  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4525. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4526. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4527. See \`config.log' for more details" "$LINENO" 5; }
  4528. fi
  4529.  
  4530. ac_ext=c
  4531. ac_cpp='$CPP $CPPFLAGS'
  4532. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4533. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4534. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4535.  
  4536.  
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4538. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4539. if ${ac_cv_path_GREP+:} false; then :
  4540.   $as_echo_n "(cached) " >&6
  4541. else
  4542.   if test -z "$GREP"; then
  4543.   ac_path_GREP_found=false
  4544.   # Loop through the user's path and test for each of PROGNAME-LIST
  4545.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4546. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4547. do
  4548.   IFS=$as_save_IFS
  4549.   test -z "$as_dir" && as_dir=.
  4550.     for ac_prog in grep ggrep; do
  4551.     for ac_exec_ext in '' $ac_executable_extensions; do
  4552.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4553.       as_fn_executable_p "$ac_path_GREP" || continue
  4554. # Check for GNU ac_path_GREP and select it if it is found.
  4555.   # Check for GNU $ac_path_GREP
  4556. case `"$ac_path_GREP" --version 2>&1` in
  4557. *GNU*)
  4558.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4559. *)
  4560.   ac_count=0
  4561.   $as_echo_n 0123456789 >"conftest.in"
  4562.   while :
  4563.   do
  4564.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4565.     mv "conftest.tmp" "conftest.in"
  4566.     cp "conftest.in" "conftest.nl"
  4567.     $as_echo 'GREP' >> "conftest.nl"
  4568.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4569.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4570.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4571.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4572.       # Best one so far, save it but keep looking for a better one
  4573.       ac_cv_path_GREP="$ac_path_GREP"
  4574.       ac_path_GREP_max=$ac_count
  4575.     fi
  4576.     # 10*(2^10) chars as input seems more than enough
  4577.     test $ac_count -gt 10 && break
  4578.   done
  4579.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4580. esac
  4581.  
  4582.       $ac_path_GREP_found && break 3
  4583.     done
  4584.   done
  4585.   done
  4586. IFS=$as_save_IFS
  4587.   if test -z "$ac_cv_path_GREP"; then
  4588.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4589.   fi
  4590. else
  4591.   ac_cv_path_GREP=$GREP
  4592. fi
  4593.  
  4594. fi
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4596. $as_echo "$ac_cv_path_GREP" >&6; }
  4597.  GREP="$ac_cv_path_GREP"
  4598.  
  4599.  
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4601. $as_echo_n "checking for egrep... " >&6; }
  4602. if ${ac_cv_path_EGREP+:} false; then :
  4603.   $as_echo_n "(cached) " >&6
  4604. else
  4605.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4606.    then ac_cv_path_EGREP="$GREP -E"
  4607.    else
  4608.      if test -z "$EGREP"; then
  4609.   ac_path_EGREP_found=false
  4610.   # Loop through the user's path and test for each of PROGNAME-LIST
  4611.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4612. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4613. do
  4614.   IFS=$as_save_IFS
  4615.   test -z "$as_dir" && as_dir=.
  4616.     for ac_prog in egrep; do
  4617.     for ac_exec_ext in '' $ac_executable_extensions; do
  4618.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4619.       as_fn_executable_p "$ac_path_EGREP" || continue
  4620. # Check for GNU ac_path_EGREP and select it if it is found.
  4621.   # Check for GNU $ac_path_EGREP
  4622. case `"$ac_path_EGREP" --version 2>&1` in
  4623. *GNU*)
  4624.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4625. *)
  4626.   ac_count=0
  4627.   $as_echo_n 0123456789 >"conftest.in"
  4628.   while :
  4629.   do
  4630.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4631.     mv "conftest.tmp" "conftest.in"
  4632.     cp "conftest.in" "conftest.nl"
  4633.     $as_echo 'EGREP' >> "conftest.nl"
  4634.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4635.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4636.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4637.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4638.       # Best one so far, save it but keep looking for a better one
  4639.       ac_cv_path_EGREP="$ac_path_EGREP"
  4640.       ac_path_EGREP_max=$ac_count
  4641.     fi
  4642.     # 10*(2^10) chars as input seems more than enough
  4643.     test $ac_count -gt 10 && break
  4644.   done
  4645.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4646. esac
  4647.  
  4648.       $ac_path_EGREP_found && break 3
  4649.     done
  4650.   done
  4651.   done
  4652. IFS=$as_save_IFS
  4653.   if test -z "$ac_cv_path_EGREP"; then
  4654.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4655.   fi
  4656. else
  4657.   ac_cv_path_EGREP=$EGREP
  4658. fi
  4659.  
  4660.    fi
  4661. fi
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4663. $as_echo "$ac_cv_path_EGREP" >&6; }
  4664.  EGREP="$ac_cv_path_EGREP"
  4665.  
  4666.  
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4668. $as_echo_n "checking for ANSI C header files... " >&6; }
  4669. if ${ac_cv_header_stdc+:} false; then :
  4670.   $as_echo_n "(cached) " >&6
  4671. else
  4672.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4673. /* end confdefs.h.  */
  4674. #include <stdlib.h>
  4675. #include <stdarg.h>
  4676. #include <string.h>
  4677. #include <float.h>
  4678.  
  4679. int
  4680. main ()
  4681. {
  4682.  
  4683.   ;
  4684.   return 0;
  4685. }
  4686. _ACEOF
  4687. if ac_fn_c_try_compile "$LINENO"; then :
  4688.   ac_cv_header_stdc=yes
  4689. else
  4690.   ac_cv_header_stdc=no
  4691. fi
  4692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4693.  
  4694. if test $ac_cv_header_stdc = yes; then
  4695.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4696.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4697. /* end confdefs.h.  */
  4698. #include <string.h>
  4699.  
  4700. _ACEOF
  4701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4702.   $EGREP "memchr" >/dev/null 2>&1; then :
  4703.  
  4704. else
  4705.   ac_cv_header_stdc=no
  4706. fi
  4707. rm -f conftest*
  4708.  
  4709. fi
  4710.  
  4711. if test $ac_cv_header_stdc = yes; then
  4712.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4713.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4714. /* end confdefs.h.  */
  4715. #include <stdlib.h>
  4716.  
  4717. _ACEOF
  4718. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4719.   $EGREP "free" >/dev/null 2>&1; then :
  4720.  
  4721. else
  4722.   ac_cv_header_stdc=no
  4723. fi
  4724. rm -f conftest*
  4725.  
  4726. fi
  4727.  
  4728. if test $ac_cv_header_stdc = yes; then
  4729.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4730.   if test "$cross_compiling" = yes; then :
  4731.   :
  4732. else
  4733.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4734. /* end confdefs.h.  */
  4735. #include <ctype.h>
  4736. #include <stdlib.h>
  4737. #if ((' ' & 0x0FF) == 0x020)
  4738. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4739. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4740. #else
  4741. # define ISLOWER(c) \
  4742.            (('a' <= (c) && (c) <= 'i') \
  4743.              || ('j' <= (c) && (c) <= 'r') \
  4744.              || ('s' <= (c) && (c) <= 'z'))
  4745. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4746. #endif
  4747.  
  4748. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4749. int
  4750. main ()
  4751. {
  4752.   int i;
  4753.   for (i = 0; i < 256; i++)
  4754.     if (XOR (islower (i), ISLOWER (i))
  4755.     || toupper (i) != TOUPPER (i))
  4756.       return 2;
  4757.   return 0;
  4758. }
  4759. _ACEOF
  4760. if ac_fn_c_try_run "$LINENO"; then :
  4761.  
  4762. else
  4763.   ac_cv_header_stdc=no
  4764. fi
  4765. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4766.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  4767. fi
  4768.  
  4769. fi
  4770. fi
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4772. $as_echo "$ac_cv_header_stdc" >&6; }
  4773. if test $ac_cv_header_stdc = yes; then
  4774.  
  4775. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4776.  
  4777. fi
  4778.  
  4779. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4780. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4781.           inttypes.h stdint.h unistd.h
  4782. do :
  4783.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4784. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4785. "
  4786. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4787.   cat >>confdefs.h <<_ACEOF
  4788. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4789. _ACEOF
  4790.  
  4791. fi
  4792.  
  4793. done
  4794.  
  4795.  
  4796. for ac_header in stdio.h stdlib.h string.h unistd.h netdb.h signal.h \
  4797.   syslog.h time.h errno.h sys/types.h sys/stat.h netinet/in.h \
  4798.   math.h sys/socket.h dirent.h ctype.h \
  4799.   mtent.h fcntl.h sys/param.h arpa/inet.h \
  4800.   sys/vfs.h sys/pstat.h sys/sysinfo.h sys/statvfs.h sys/statfs.h \
  4801.   sys/socket.h sys/loadavg.h arpa/inet.h \
  4802.   sys/vmmeter.h strings.h vm/vm_param.h \
  4803.   sys/time.h kstat.h sys/syscall.h sys/sysmacros.h \
  4804.   stdint.h mach/host_info.h mach/mach_host.h knlist.h pwd.h \
  4805.   sys/var.h arpa/nameser.h assert.h sys/dkstat.h sys/disk.h sys/sched.h \
  4806.   zone.h nlist.h kvm.h linux/kernel.h procinfo.h sys/dk.h \
  4807.   sys/resource.h pthread.h windows.h process.h conio.h sys/wait.h pcreposix.h \
  4808.   stdarg.h winsock2.h pdh.h psapi.h sys/sem.h sys/ipc.h sys/shm.h Winldap.h \
  4809.   Winber.h lber.h ws2tcpip.h inttypes.h sys/file.h grp.h \
  4810.   execinfo.h libperfstat.h sys/systemcfg.h sys/mnttab.h mntent.h sys/times.h \
  4811.   dlfcn.h sys/utsname.h sys/un.h event.h
  4812. do :
  4813.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4814. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4815. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4816.   cat >>confdefs.h <<_ACEOF
  4817. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4818. _ACEOF
  4819.  
  4820. fi
  4821.  
  4822. done
  4823.  
  4824. for ac_header in resolv.h
  4825. do :
  4826.   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
  4827. #ifdef HAVE_SYS_TYPES_H
  4828. #  include <sys/types.h>
  4829. #endif
  4830. #ifdef HAVE_NETINET_IN_H
  4831. #  include <netinet/in.h>
  4832. #endif
  4833. #ifdef HAVE_ARPA_NAMESER_H
  4834. #  include <arpa/nameser.h>
  4835. #endif
  4836. #ifdef HAVE_NETDB_H
  4837. #  include <netdb.h>
  4838. #endif
  4839.  
  4840. "
  4841. if test "x$ac_cv_header_resolv_h" = xyes; then :
  4842.   cat >>confdefs.h <<_ACEOF
  4843. #define HAVE_RESOLV_H 1
  4844. _ACEOF
  4845.  
  4846. fi
  4847.  
  4848. done
  4849.  
  4850. for ac_header in net/if.h net/if_mib.h
  4851. do :
  4852.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4853. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  4854. #include <stdio.h>
  4855. #ifdef STDC_HEADERS
  4856. #  include <stdlib.h>
  4857. #  include <stddef.h>
  4858. #else
  4859. #  ifdef HAVE_STDLIB_H
  4860. #    include <stdlib.h>
  4861. #  endif
  4862. #endif
  4863. #ifdef HAVE_SYS_TYPES_H
  4864. #  include <sys/types.h>
  4865. #endif
  4866. #ifdef HAVE_SYS_SOCKET_H
  4867. #  include <sys/socket.h>
  4868. #endif
  4869. /* for net/if_mib.h */
  4870. #ifdef HAVE_NET_IF_H
  4871. #  include <net/if.h>
  4872. #endif
  4873.  
  4874. "
  4875. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4876.   cat >>confdefs.h <<_ACEOF
  4877. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4878. _ACEOF
  4879.  
  4880. fi
  4881.  
  4882. done
  4883.  
  4884. for ac_header in sys/mount.h sys/proc.h sys/sysctl.h sys/user.h
  4885. do :
  4886.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4887. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  4888. #ifdef HAVE_SYS_TYPES_H
  4889. #  include <sys/types.h>
  4890. #endif
  4891. #ifdef HAVE_SYS_PARAM_H
  4892. #  include <sys/param.h>
  4893. #endif
  4894.  
  4895. "
  4896. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4897.   cat >>confdefs.h <<_ACEOF
  4898. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4899. _ACEOF
  4900.  
  4901. fi
  4902.  
  4903. done
  4904.  
  4905. for ac_header in sys/swap.h
  4906. do :
  4907.   ac_fn_c_check_header_compile "$LINENO" "sys/swap.h" "ac_cv_header_sys_swap_h" "
  4908. #ifdef HAVE_SYS_PARAM_H
  4909. #  include <sys/param.h>
  4910. #endif
  4911.  
  4912. "
  4913. if test "x$ac_cv_header_sys_swap_h" = xyes; then :
  4914.   cat >>confdefs.h <<_ACEOF
  4915. #define HAVE_SYS_SWAP_H 1
  4916. _ACEOF
  4917.  
  4918. fi
  4919.  
  4920. done
  4921.  
  4922. for ac_header in sys/ucontext.h
  4923. do :
  4924.   ac_fn_c_check_header_compile "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "
  4925. #ifdef HAVE_SIGNAL_H
  4926. #  include <signal.h>
  4927. #endif
  4928.  
  4929. "
  4930. if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
  4931.   cat >>confdefs.h <<_ACEOF
  4932. #define HAVE_SYS_UCONTEXT_H 1
  4933. _ACEOF
  4934.  
  4935. fi
  4936.  
  4937. done
  4938.  
  4939. for ac_header in devstat.h
  4940. do :
  4941.   ac_fn_c_check_header_compile "$LINENO" "devstat.h" "ac_cv_header_devstat_h" "
  4942. #ifdef HAVE_SYS_DKSTAT_H
  4943. #  include <sys/dkstat.h>
  4944. #endif
  4945.  
  4946. "
  4947. if test "x$ac_cv_header_devstat_h" = xyes; then :
  4948.   cat >>confdefs.h <<_ACEOF
  4949. #define HAVE_DEVSTAT_H 1
  4950. _ACEOF
  4951.  
  4952. fi
  4953.  
  4954. done
  4955.  
  4956. for ac_header in linux/netlink.h
  4957. do :
  4958.   ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
  4959. #ifdef HAVE_SYS_SOCKET_H
  4960. #  include <sys/socket.h>
  4961. #endif
  4962.  
  4963. "
  4964. if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
  4965.   cat >>confdefs.h <<_ACEOF
  4966. #define HAVE_LINUX_NETLINK_H 1
  4967. _ACEOF
  4968.  
  4969.     for ac_header in linux/inet_diag.h
  4970. do :
  4971.   ac_fn_c_check_header_mongrel "$LINENO" "linux/inet_diag.h" "ac_cv_header_linux_inet_diag_h" "$ac_includes_default"
  4972. if test "x$ac_cv_header_linux_inet_diag_h" = xyes; then :
  4973.   cat >>confdefs.h <<_ACEOF
  4974. #define HAVE_LINUX_INET_DIAG_H 1
  4975. _ACEOF
  4976.  
  4977.  
  4978. $as_echo "#define HAVE_INET_DIAG 1" >>confdefs.h
  4979.  
  4980.  
  4981. fi
  4982.  
  4983. done
  4984.  
  4985.  
  4986. fi
  4987.  
  4988. done
  4989.  
  4990.  
  4991.  
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  4993. $as_echo_n "checking for library containing socket... " >&6; }
  4994. if ${ac_cv_search_socket+:} false; then :
  4995.   $as_echo_n "(cached) " >&6
  4996. else
  4997.   ac_func_search_save_LIBS=$LIBS
  4998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4999. /* end confdefs.h.  */
  5000.  
  5001. /* Override any GCC internal prototype to avoid an error.
  5002.    Use char because int might match the return type of a GCC
  5003.    builtin and then its argument prototype would still apply.  */
  5004. #ifdef __cplusplus
  5005. extern "C"
  5006. #endif
  5007. char socket ();
  5008. int
  5009. main ()
  5010. {
  5011. return socket ();
  5012.   ;
  5013.   return 0;
  5014. }
  5015. _ACEOF
  5016. for ac_lib in '' socket; do
  5017.   if test -z "$ac_lib"; then
  5018.     ac_res="none required"
  5019.   else
  5020.     ac_res=-l$ac_lib
  5021.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5022.   fi
  5023.   if ac_fn_c_try_link "$LINENO"; then :
  5024.   ac_cv_search_socket=$ac_res
  5025. fi
  5026. rm -f core conftest.err conftest.$ac_objext \
  5027.     conftest$ac_exeext
  5028.   if ${ac_cv_search_socket+:} false; then :
  5029.   break
  5030. fi
  5031. done
  5032. if ${ac_cv_search_socket+:} false; then :
  5033.  
  5034. else
  5035.   ac_cv_search_socket=no
  5036. fi
  5037. rm conftest.$ac_ext
  5038. LIBS=$ac_func_search_save_LIBS
  5039. fi
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  5041. $as_echo "$ac_cv_search_socket" >&6; }
  5042. ac_res=$ac_cv_search_socket
  5043. if test "$ac_res" != no; then :
  5044.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5045.  
  5046. fi
  5047.  
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
  5049. $as_echo_n "checking for library containing kstat_open... " >&6; }
  5050. if ${ac_cv_search_kstat_open+:} false; then :
  5051.   $as_echo_n "(cached) " >&6
  5052. else
  5053.   ac_func_search_save_LIBS=$LIBS
  5054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5055. /* end confdefs.h.  */
  5056.  
  5057. /* Override any GCC internal prototype to avoid an error.
  5058.    Use char because int might match the return type of a GCC
  5059.    builtin and then its argument prototype would still apply.  */
  5060. #ifdef __cplusplus
  5061. extern "C"
  5062. #endif
  5063. char kstat_open ();
  5064. int
  5065. main ()
  5066. {
  5067. return kstat_open ();
  5068.   ;
  5069.   return 0;
  5070. }
  5071. _ACEOF
  5072. for ac_lib in '' kstat; do
  5073.   if test -z "$ac_lib"; then
  5074.     ac_res="none required"
  5075.   else
  5076.     ac_res=-l$ac_lib
  5077.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5078.   fi
  5079.   if ac_fn_c_try_link "$LINENO"; then :
  5080.   ac_cv_search_kstat_open=$ac_res
  5081. fi
  5082. rm -f core conftest.err conftest.$ac_objext \
  5083.     conftest$ac_exeext
  5084.   if ${ac_cv_search_kstat_open+:} false; then :
  5085.   break
  5086. fi
  5087. done
  5088. if ${ac_cv_search_kstat_open+:} false; then :
  5089.  
  5090. else
  5091.   ac_cv_search_kstat_open=no
  5092. fi
  5093. rm conftest.$ac_ext
  5094. LIBS=$ac_func_search_save_LIBS
  5095. fi
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
  5097. $as_echo "$ac_cv_search_kstat_open" >&6; }
  5098. ac_res=$ac_cv_search_kstat_open
  5099. if test "$ac_res" != no; then :
  5100.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5101.  
  5102. fi
  5103.  
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  5105. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  5106. if ${ac_cv_search_gethostbyname+:} false; then :
  5107.   $as_echo_n "(cached) " >&6
  5108. else
  5109.   ac_func_search_save_LIBS=$LIBS
  5110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5111. /* end confdefs.h.  */
  5112.  
  5113. /* Override any GCC internal prototype to avoid an error.
  5114.    Use char because int might match the return type of a GCC
  5115.    builtin and then its argument prototype would still apply.  */
  5116. #ifdef __cplusplus
  5117. extern "C"
  5118. #endif
  5119. char gethostbyname ();
  5120. int
  5121. main ()
  5122. {
  5123. return gethostbyname ();
  5124.   ;
  5125.   return 0;
  5126. }
  5127. _ACEOF
  5128. for ac_lib in '' nsl; do
  5129.   if test -z "$ac_lib"; then
  5130.     ac_res="none required"
  5131.   else
  5132.     ac_res=-l$ac_lib
  5133.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5134.   fi
  5135.   if ac_fn_c_try_link "$LINENO"; then :
  5136.   ac_cv_search_gethostbyname=$ac_res
  5137. fi
  5138. rm -f core conftest.err conftest.$ac_objext \
  5139.     conftest$ac_exeext
  5140.   if ${ac_cv_search_gethostbyname+:} false; then :
  5141.   break
  5142. fi
  5143. done
  5144. if ${ac_cv_search_gethostbyname+:} false; then :
  5145.  
  5146. else
  5147.   ac_cv_search_gethostbyname=no
  5148. fi
  5149. rm conftest.$ac_ext
  5150. LIBS=$ac_func_search_save_LIBS
  5151. fi
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  5153. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  5154. ac_res=$ac_cv_search_gethostbyname
  5155. if test "$ac_res" != no; then :
  5156.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5157.  
  5158. fi
  5159.  
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  5161. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  5162. if ${ac_cv_search_clock_gettime+:} false; then :
  5163.   $as_echo_n "(cached) " >&6
  5164. else
  5165.   ac_func_search_save_LIBS=$LIBS
  5166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5167. /* end confdefs.h.  */
  5168.  
  5169. /* Override any GCC internal prototype to avoid an error.
  5170.    Use char because int might match the return type of a GCC
  5171.    builtin and then its argument prototype would still apply.  */
  5172. #ifdef __cplusplus
  5173. extern "C"
  5174. #endif
  5175. char clock_gettime ();
  5176. int
  5177. main ()
  5178. {
  5179. return clock_gettime ();
  5180.   ;
  5181.   return 0;
  5182. }
  5183. _ACEOF
  5184. for ac_lib in '' rt; do
  5185.   if test -z "$ac_lib"; then
  5186.     ac_res="none required"
  5187.   else
  5188.     ac_res=-l$ac_lib
  5189.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5190.   fi
  5191.   if ac_fn_c_try_link "$LINENO"; then :
  5192.   ac_cv_search_clock_gettime=$ac_res
  5193. fi
  5194. rm -f core conftest.err conftest.$ac_objext \
  5195.     conftest$ac_exeext
  5196.   if ${ac_cv_search_clock_gettime+:} false; then :
  5197.   break
  5198. fi
  5199. done
  5200. if ${ac_cv_search_clock_gettime+:} false; then :
  5201.  
  5202. else
  5203.   ac_cv_search_clock_gettime=no
  5204. fi
  5205. rm conftest.$ac_ext
  5206. LIBS=$ac_func_search_save_LIBS
  5207. fi
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  5209. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  5210. ac_res=$ac_cv_search_clock_gettime
  5211. if test "$ac_res" != no; then :
  5212.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5213.  
  5214. fi
  5215.  
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  5217. $as_echo_n "checking for library containing dlopen... " >&6; }
  5218. if ${ac_cv_search_dlopen+:} false; then :
  5219.   $as_echo_n "(cached) " >&6
  5220. else
  5221.   ac_func_search_save_LIBS=$LIBS
  5222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5223. /* end confdefs.h.  */
  5224.  
  5225. /* Override any GCC internal prototype to avoid an error.
  5226.    Use char because int might match the return type of a GCC
  5227.    builtin and then its argument prototype would still apply.  */
  5228. #ifdef __cplusplus
  5229. extern "C"
  5230. #endif
  5231. char dlopen ();
  5232. int
  5233. main ()
  5234. {
  5235. return dlopen ();
  5236.   ;
  5237.   return 0;
  5238. }
  5239. _ACEOF
  5240. for ac_lib in '' dl; do
  5241.   if test -z "$ac_lib"; then
  5242.     ac_res="none required"
  5243.   else
  5244.     ac_res=-l$ac_lib
  5245.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5246.   fi
  5247.   if ac_fn_c_try_link "$LINENO"; then :
  5248.   ac_cv_search_dlopen=$ac_res
  5249. fi
  5250. rm -f core conftest.err conftest.$ac_objext \
  5251.     conftest$ac_exeext
  5252.   if ${ac_cv_search_dlopen+:} false; then :
  5253.   break
  5254. fi
  5255. done
  5256. if ${ac_cv_search_dlopen+:} false; then :
  5257.  
  5258. else
  5259.   ac_cv_search_dlopen=no
  5260. fi
  5261. rm conftest.$ac_ext
  5262. LIBS=$ac_func_search_save_LIBS
  5263. fi
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  5265. $as_echo "$ac_cv_search_dlopen" >&6; }
  5266. ac_res=$ac_cv_search_dlopen
  5267. if test "$ac_res" != no; then :
  5268.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5269.  
  5270. fi
  5271.  
  5272.  
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing perfstat_memory_total" >&5
  5274. $as_echo_n "checking for library containing perfstat_memory_total... " >&6; }
  5275. if ${ac_cv_search_perfstat_memory_total+:} false; then :
  5276.   $as_echo_n "(cached) " >&6
  5277. else
  5278.   ac_func_search_save_LIBS=$LIBS
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h.  */
  5281.  
  5282. /* Override any GCC internal prototype to avoid an error.
  5283.    Use char because int might match the return type of a GCC
  5284.    builtin and then its argument prototype would still apply.  */
  5285. #ifdef __cplusplus
  5286. extern "C"
  5287. #endif
  5288. char perfstat_memory_total ();
  5289. int
  5290. main ()
  5291. {
  5292. return perfstat_memory_total ();
  5293.   ;
  5294.   return 0;
  5295. }
  5296. _ACEOF
  5297. for ac_lib in '' perfstat; do
  5298.   if test -z "$ac_lib"; then
  5299.     ac_res="none required"
  5300.   else
  5301.     ac_res=-l$ac_lib
  5302.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5303.   fi
  5304.   if ac_fn_c_try_link "$LINENO"; then :
  5305.   ac_cv_search_perfstat_memory_total=$ac_res
  5306. fi
  5307. rm -f core conftest.err conftest.$ac_objext \
  5308.     conftest$ac_exeext
  5309.   if ${ac_cv_search_perfstat_memory_total+:} false; then :
  5310.   break
  5311. fi
  5312. done
  5313. if ${ac_cv_search_perfstat_memory_total+:} false; then :
  5314.  
  5315. else
  5316.   ac_cv_search_perfstat_memory_total=no
  5317. fi
  5318. rm conftest.$ac_ext
  5319. LIBS=$ac_func_search_save_LIBS
  5320. fi
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_perfstat_memory_total" >&5
  5322. $as_echo "$ac_cv_search_perfstat_memory_total" >&6; }
  5323. ac_res=$ac_cv_search_perfstat_memory_total
  5324. if test "$ac_res" != no; then :
  5325.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5326.  
  5327. $as_echo "#define HAVE_LIBPERFSTAT 1" >>confdefs.h
  5328.  
  5329. fi
  5330.  
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing devstat_getdevs" >&5
  5332. $as_echo_n "checking for library containing devstat_getdevs... " >&6; }
  5333. if ${ac_cv_search_devstat_getdevs+:} false; then :
  5334.   $as_echo_n "(cached) " >&6
  5335. else
  5336.   ac_func_search_save_LIBS=$LIBS
  5337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5338. /* end confdefs.h.  */
  5339.  
  5340. /* Override any GCC internal prototype to avoid an error.
  5341.    Use char because int might match the return type of a GCC
  5342.    builtin and then its argument prototype would still apply.  */
  5343. #ifdef __cplusplus
  5344. extern "C"
  5345. #endif
  5346. char devstat_getdevs ();
  5347. int
  5348. main ()
  5349. {
  5350. return devstat_getdevs ();
  5351.   ;
  5352.   return 0;
  5353. }
  5354. _ACEOF
  5355. for ac_lib in '' devstat; do
  5356.   if test -z "$ac_lib"; then
  5357.     ac_res="none required"
  5358.   else
  5359.     ac_res=-l$ac_lib
  5360.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5361.   fi
  5362.   if ac_fn_c_try_link "$LINENO"; then :
  5363.   ac_cv_search_devstat_getdevs=$ac_res
  5364. fi
  5365. rm -f core conftest.err conftest.$ac_objext \
  5366.     conftest$ac_exeext
  5367.   if ${ac_cv_search_devstat_getdevs+:} false; then :
  5368.   break
  5369. fi
  5370. done
  5371. if ${ac_cv_search_devstat_getdevs+:} false; then :
  5372.  
  5373. else
  5374.   ac_cv_search_devstat_getdevs=no
  5375. fi
  5376. rm conftest.$ac_ext
  5377. LIBS=$ac_func_search_save_LIBS
  5378. fi
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_devstat_getdevs" >&5
  5380. $as_echo "$ac_cv_search_devstat_getdevs" >&6; }
  5381. ac_res=$ac_cv_search_devstat_getdevs
  5382. if test "$ac_res" != no; then :
  5383.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5384.  
  5385. $as_echo "#define HAVE_LIBDEVSTAT 1" >>confdefs.h
  5386.  
  5387. fi
  5388.  
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getdevs" >&5
  5390. $as_echo_n "checking for library containing getdevs... " >&6; }
  5391. if ${ac_cv_search_getdevs+:} false; then :
  5392.   $as_echo_n "(cached) " >&6
  5393. else
  5394.   ac_func_search_save_LIBS=$LIBS
  5395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5396. /* end confdefs.h.  */
  5397.  
  5398. /* Override any GCC internal prototype to avoid an error.
  5399.    Use char because int might match the return type of a GCC
  5400.    builtin and then its argument prototype would still apply.  */
  5401. #ifdef __cplusplus
  5402. extern "C"
  5403. #endif
  5404. char getdevs ();
  5405. int
  5406. main ()
  5407. {
  5408. return getdevs ();
  5409.   ;
  5410.   return 0;
  5411. }
  5412. _ACEOF
  5413. for ac_lib in '' devstat; do
  5414.   if test -z "$ac_lib"; then
  5415.     ac_res="none required"
  5416.   else
  5417.     ac_res=-l$ac_lib
  5418.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5419.   fi
  5420.   if ac_fn_c_try_link "$LINENO"; then :
  5421.   ac_cv_search_getdevs=$ac_res
  5422. fi
  5423. rm -f core conftest.err conftest.$ac_objext \
  5424.     conftest$ac_exeext
  5425.   if ${ac_cv_search_getdevs+:} false; then :
  5426.   break
  5427. fi
  5428. done
  5429. if ${ac_cv_search_getdevs+:} false; then :
  5430.  
  5431. else
  5432.   ac_cv_search_getdevs=no
  5433. fi
  5434. rm conftest.$ac_ext
  5435. LIBS=$ac_func_search_save_LIBS
  5436. fi
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getdevs" >&5
  5438. $as_echo "$ac_cv_search_getdevs" >&6; }
  5439. ac_res=$ac_cv_search_getdevs
  5440. if test "$ac_res" != no; then :
  5441.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5442.  
  5443. $as_echo "#define HAVE_LIBDEVSTAT 1" >>confdefs.h
  5444.  
  5445. fi
  5446.  
  5447.  
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
  5449. $as_echo_n "checking for library containing backtrace_symbols... " >&6; }
  5450. if ${ac_cv_search_backtrace_symbols+:} false; then :
  5451.   $as_echo_n "(cached) " >&6
  5452. else
  5453.   ac_func_search_save_LIBS=$LIBS
  5454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5455. /* end confdefs.h.  */
  5456.  
  5457. /* Override any GCC internal prototype to avoid an error.
  5458.    Use char because int might match the return type of a GCC
  5459.    builtin and then its argument prototype would still apply.  */
  5460. #ifdef __cplusplus
  5461. extern "C"
  5462. #endif
  5463. char backtrace_symbols ();
  5464. int
  5465. main ()
  5466. {
  5467. return backtrace_symbols ();
  5468.   ;
  5469.   return 0;
  5470. }
  5471. _ACEOF
  5472. for ac_lib in '' execinfo; do
  5473.   if test -z "$ac_lib"; then
  5474.     ac_res="none required"
  5475.   else
  5476.     ac_res=-l$ac_lib
  5477.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5478.   fi
  5479.   if ac_fn_c_try_link "$LINENO"; then :
  5480.   ac_cv_search_backtrace_symbols=$ac_res
  5481. fi
  5482. rm -f core conftest.err conftest.$ac_objext \
  5483.     conftest$ac_exeext
  5484.   if ${ac_cv_search_backtrace_symbols+:} false; then :
  5485.   break
  5486. fi
  5487. done
  5488. if ${ac_cv_search_backtrace_symbols+:} false; then :
  5489.  
  5490. else
  5491.   ac_cv_search_backtrace_symbols=no
  5492. fi
  5493. rm conftest.$ac_ext
  5494. LIBS=$ac_func_search_save_LIBS
  5495. fi
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
  5497. $as_echo "$ac_cv_search_backtrace_symbols" >&6; }
  5498. ac_res=$ac_cv_search_backtrace_symbols
  5499. if test "$ac_res" != no; then :
  5500.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5501.  
  5502. $as_echo "#define HAVE_LIBEXECINFO 1" >>confdefs.h
  5503.  
  5504. fi
  5505.  
  5506.  
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
  5508. $as_echo_n "checking for main in -lm... " >&6; }
  5509. if ${ac_cv_lib_m_main+:} false; then :
  5510.   $as_echo_n "(cached) " >&6
  5511. else
  5512.   ac_check_lib_save_LIBS=$LIBS
  5513. LIBS="-lm  $LIBS"
  5514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5515. /* end confdefs.h.  */
  5516.  
  5517.  
  5518. int
  5519. main ()
  5520. {
  5521. return main ();
  5522.   ;
  5523.   return 0;
  5524. }
  5525. _ACEOF
  5526. if ac_fn_c_try_link "$LINENO"; then :
  5527.   ac_cv_lib_m_main=yes
  5528. else
  5529.   ac_cv_lib_m_main=no
  5530. fi
  5531. rm -f core conftest.err conftest.$ac_objext \
  5532.     conftest$ac_exeext conftest.$ac_ext
  5533. LIBS=$ac_check_lib_save_LIBS
  5534. fi
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
  5536. $as_echo "$ac_cv_lib_m_main" >&6; }
  5537. if test "x$ac_cv_lib_m_main" = xyes; then :
  5538.   cat >>confdefs.h <<_ACEOF
  5539. #define HAVE_LIBM 1
  5540. _ACEOF
  5541.  
  5542.   LIBS="-lm $LIBS"
  5543.  
  5544. fi
  5545.  
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
  5547. $as_echo_n "checking for main in -lkvm... " >&6; }
  5548. if ${ac_cv_lib_kvm_main+:} false; then :
  5549.   $as_echo_n "(cached) " >&6
  5550. else
  5551.   ac_check_lib_save_LIBS=$LIBS
  5552. LIBS="-lkvm  $LIBS"
  5553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5554. /* end confdefs.h.  */
  5555.  
  5556.  
  5557. int
  5558. main ()
  5559. {
  5560. return main ();
  5561.   ;
  5562.   return 0;
  5563. }
  5564. _ACEOF
  5565. if ac_fn_c_try_link "$LINENO"; then :
  5566.   ac_cv_lib_kvm_main=yes
  5567. else
  5568.   ac_cv_lib_kvm_main=no
  5569. fi
  5570. rm -f core conftest.err conftest.$ac_objext \
  5571.     conftest$ac_exeext conftest.$ac_ext
  5572. LIBS=$ac_check_lib_save_LIBS
  5573. fi
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
  5575. $as_echo "$ac_cv_lib_kvm_main" >&6; }
  5576. if test "x$ac_cv_lib_kvm_main" = xyes; then :
  5577.   cat >>confdefs.h <<_ACEOF
  5578. #define HAVE_LIBKVM 1
  5579. _ACEOF
  5580.  
  5581.   LIBS="-lkvm $LIBS"
  5582.  
  5583. fi
  5584.  
  5585.  
  5586. found_resolv="no"
  5587.  
  5588.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNS lookup functions" >&5
  5589. $as_echo_n "checking for DNS lookup functions... " >&6; }
  5590.  
  5591.  
  5592. am_save_LIBS="$LIBS"
  5593. LIBS="$LIBS "
  5594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5595. /* end confdefs.h.  */
  5596.  
  5597. #ifdef HAVE_SYS_TYPES_H
  5598. #   include <sys/types.h>
  5599. #endif
  5600. #ifdef HAVE_NETINET_IN_H
  5601. #   include <netinet/in.h>
  5602. #endif
  5603. #ifdef HAVE_ARPA_NAMESER_H
  5604. #   include <arpa/nameser.h>
  5605. #endif
  5606. #ifdef HAVE_RESOLV_H
  5607. #   include <resolv.h>
  5608. #endif
  5609. #ifndef C_IN
  5610. #   define C_IN ns_c_in
  5611. #endif  /* C_IN */
  5612. #ifndef T_SOA
  5613. #   define T_SOA    ns_t_soa
  5614. #endif  /* T_SOA */
  5615.  
  5616. int
  5617. main ()
  5618. {
  5619.  
  5620.     char    *buf;
  5621.  
  5622.     res_init();
  5623.     res_query("", C_IN, T_SOA, buf, 0);
  5624.  
  5625.   ;
  5626.   return 0;
  5627. }
  5628. _ACEOF
  5629. if ac_fn_c_try_link "$LINENO"; then :
  5630.   found_resolv="yes"
  5631. RESOLV_LIBS=""
  5632. fi
  5633. rm -f core conftest.err conftest.$ac_objext \
  5634.     conftest$ac_exeext conftest.$ac_ext
  5635. LIBS="$am_save_LIBS"
  5636.  
  5637.  
  5638.     if test "x$found_resolv" != "xyes"; then
  5639.  
  5640. am_save_LIBS="$LIBS"
  5641. LIBS="$LIBS -lresolv"
  5642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5643. /* end confdefs.h.  */
  5644.  
  5645. #ifdef HAVE_SYS_TYPES_H
  5646. #   include <sys/types.h>
  5647. #endif
  5648. #ifdef HAVE_NETINET_IN_H
  5649. #   include <netinet/in.h>
  5650. #endif
  5651. #ifdef HAVE_ARPA_NAMESER_H
  5652. #   include <arpa/nameser.h>
  5653. #endif
  5654. #ifdef HAVE_RESOLV_H
  5655. #   include <resolv.h>
  5656. #endif
  5657. #ifndef C_IN
  5658. #   define C_IN ns_c_in
  5659. #endif  /* C_IN */
  5660. #ifndef T_SOA
  5661. #   define T_SOA    ns_t_soa
  5662. #endif  /* T_SOA */
  5663.  
  5664. int
  5665. main ()
  5666. {
  5667.  
  5668.     char    *buf;
  5669.  
  5670.     res_init();
  5671.     res_query("", C_IN, T_SOA, buf, 0);
  5672.  
  5673.   ;
  5674.   return 0;
  5675. }
  5676. _ACEOF
  5677. if ac_fn_c_try_link "$LINENO"; then :
  5678.   found_resolv="yes"
  5679. RESOLV_LIBS="-lresolv"
  5680. fi
  5681. rm -f core conftest.err conftest.$ac_objext \
  5682.     conftest$ac_exeext conftest.$ac_ext
  5683. LIBS="$am_save_LIBS"
  5684.  
  5685.     fi
  5686.     if test "x$found_resolv" != "xyes"; then
  5687.  
  5688. am_save_LIBS="$LIBS"
  5689. LIBS="$LIBS -lbind"
  5690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5691. /* end confdefs.h.  */
  5692.  
  5693. #ifdef HAVE_SYS_TYPES_H
  5694. #   include <sys/types.h>
  5695. #endif
  5696. #ifdef HAVE_NETINET_IN_H
  5697. #   include <netinet/in.h>
  5698. #endif
  5699. #ifdef HAVE_ARPA_NAMESER_H
  5700. #   include <arpa/nameser.h>
  5701. #endif
  5702. #ifdef HAVE_RESOLV_H
  5703. #   include <resolv.h>
  5704. #endif
  5705. #ifndef C_IN
  5706. #   define C_IN ns_c_in
  5707. #endif  /* C_IN */
  5708. #ifndef T_SOA
  5709. #   define T_SOA    ns_t_soa
  5710. #endif  /* T_SOA */
  5711.  
  5712. int
  5713. main ()
  5714. {
  5715.  
  5716.     char    *buf;
  5717.  
  5718.     res_init();
  5719.     res_query("", C_IN, T_SOA, buf, 0);
  5720.  
  5721.   ;
  5722.   return 0;
  5723. }
  5724. _ACEOF
  5725. if ac_fn_c_try_link "$LINENO"; then :
  5726.   found_resolv="yes"
  5727. RESOLV_LIBS="-lbind"
  5728. fi
  5729. rm -f core conftest.err conftest.$ac_objext \
  5730.     conftest$ac_exeext conftest.$ac_ext
  5731. LIBS="$am_save_LIBS"
  5732.  
  5733.     fi
  5734.     if test "x$found_resolv" != "xyes"; then
  5735.  
  5736. am_save_LIBS="$LIBS"
  5737. LIBS="$LIBS -lsocket"
  5738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5739. /* end confdefs.h.  */
  5740.  
  5741. #ifdef HAVE_SYS_TYPES_H
  5742. #   include <sys/types.h>
  5743. #endif
  5744. #ifdef HAVE_NETINET_IN_H
  5745. #   include <netinet/in.h>
  5746. #endif
  5747. #ifdef HAVE_ARPA_NAMESER_H
  5748. #   include <arpa/nameser.h>
  5749. #endif
  5750. #ifdef HAVE_RESOLV_H
  5751. #   include <resolv.h>
  5752. #endif
  5753. #ifndef C_IN
  5754. #   define C_IN ns_c_in
  5755. #endif  /* C_IN */
  5756. #ifndef T_SOA
  5757. #   define T_SOA    ns_t_soa
  5758. #endif  /* T_SOA */
  5759.  
  5760. int
  5761. main ()
  5762. {
  5763.  
  5764.     char    *buf;
  5765.  
  5766.     res_init();
  5767.     res_query("", C_IN, T_SOA, buf, 0);
  5768.  
  5769.   ;
  5770.   return 0;
  5771. }
  5772. _ACEOF
  5773. if ac_fn_c_try_link "$LINENO"; then :
  5774.   found_resolv="yes"
  5775. RESOLV_LIBS="-lsocket"
  5776. fi
  5777. rm -f core conftest.err conftest.$ac_objext \
  5778.     conftest$ac_exeext conftest.$ac_ext
  5779. LIBS="$am_save_LIBS"
  5780.  
  5781.     fi
  5782.  
  5783.     if test "x$found_resolv" = "xyes"; then
  5784.  
  5785. $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
  5786.  
  5787.     else
  5788.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5789. $as_echo "no" >&6; }
  5790.     fi
  5791.  
  5792.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_resolv" >&5
  5793. $as_echo "$found_resolv" >&6; }
  5794.  
  5795.  
  5796.  
  5797. if test "x$found_resolv" != "xyes"; then
  5798.     as_fn_error $? "Unable to do DNS lookups (libresolv check failed)" "$LINENO" 5
  5799. fi
  5800. LIBS="${LIBS} ${RESOLV_LIBS}"
  5801.  
  5802.  
  5803. largefile=yes
  5804.  
  5805. case "${host_os}" in
  5806.     solaris*)
  5807.         largefile=no
  5808.         ;;
  5809. esac
  5810.  
  5811. if test "x$largefile" = "xyes"; then
  5812.     # Check whether --enable-largefile was given.
  5813. if test "${enable_largefile+set}" = set; then :
  5814.   enableval=$enable_largefile;
  5815. fi
  5816.  
  5817. if test "$enable_largefile" != no; then
  5818.  
  5819.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  5820. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  5821. if ${ac_cv_sys_largefile_CC+:} false; then :
  5822.   $as_echo_n "(cached) " >&6
  5823. else
  5824.   ac_cv_sys_largefile_CC=no
  5825.      if test "$GCC" != yes; then
  5826.        ac_save_CC=$CC
  5827.        while :; do
  5828.      # IRIX 6.2 and later do not support large files by default,
  5829.      # so use the C compiler's -n32 option if that helps.
  5830.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5831. /* end confdefs.h.  */
  5832. #include <sys/types.h>
  5833.  /* Check that off_t can represent 2**63 - 1 correctly.
  5834.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5835.    since some C++ compilers masquerading as C compilers
  5836.    incorrectly reject 9223372036854775807.  */
  5837. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5838.  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5839.                && LARGE_OFF_T % 2147483647 == 1)
  5840.               ? 1 : -1];
  5841. int
  5842. main ()
  5843. {
  5844.  
  5845.  ;
  5846.  return 0;
  5847. }
  5848. _ACEOF
  5849.      if ac_fn_c_try_compile "$LINENO"; then :
  5850.  break
  5851. fi
  5852. rm -f core conftest.err conftest.$ac_objext
  5853.      CC="$CC -n32"
  5854.      if ac_fn_c_try_compile "$LINENO"; then :
  5855.  ac_cv_sys_largefile_CC=' -n32'; break
  5856. fi
  5857. rm -f core conftest.err conftest.$ac_objext
  5858.      break
  5859.       done
  5860.       CC=$ac_save_CC
  5861.       rm -f conftest.$ac_ext
  5862.    fi
  5863. fi
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  5865. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  5866.  if test "$ac_cv_sys_largefile_CC" != no; then
  5867.    CC=$CC$ac_cv_sys_largefile_CC
  5868.  fi
  5869.  
  5870.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  5871. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  5872. if ${ac_cv_sys_file_offset_bits+:} false; then :
  5873.  $as_echo_n "(cached) " >&6
  5874. else
  5875.  while :; do
  5876.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5877. /* end confdefs.h.  */
  5878. #include <sys/types.h>
  5879. /* Check that off_t can represent 2**63 - 1 correctly.
  5880.    We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5881.     since some C++ compilers masquerading as C compilers
  5882.     incorrectly reject 9223372036854775807.  */
  5883. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5884.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5885.                && LARGE_OFF_T % 2147483647 == 1)
  5886.               ? 1 : -1];
  5887. int
  5888. main ()
  5889. {
  5890.  
  5891.   ;
  5892.   return 0;
  5893. }
  5894. _ACEOF
  5895. if ac_fn_c_try_compile "$LINENO"; then :
  5896.   ac_cv_sys_file_offset_bits=no; break
  5897. fi
  5898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5899.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5900. /* end confdefs.h.  */
  5901. #define _FILE_OFFSET_BITS 64
  5902. #include <sys/types.h>
  5903.  /* Check that off_t can represent 2**63 - 1 correctly.
  5904.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5905.    since some C++ compilers masquerading as C compilers
  5906.    incorrectly reject 9223372036854775807.  */
  5907. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5908.  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5909.                && LARGE_OFF_T % 2147483647 == 1)
  5910.               ? 1 : -1];
  5911. int
  5912. main ()
  5913. {
  5914.  
  5915.  ;
  5916.  return 0;
  5917. }
  5918. _ACEOF
  5919. if ac_fn_c_try_compile "$LINENO"; then :
  5920.  ac_cv_sys_file_offset_bits=64; break
  5921. fi
  5922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5923.  ac_cv_sys_file_offset_bits=unknown
  5924.  break
  5925. done
  5926. fi
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  5928. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  5929. case $ac_cv_sys_file_offset_bits in #(
  5930.  no | unknown) ;;
  5931.  *)
  5932. cat >>confdefs.h <<_ACEOF
  5933. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  5934. _ACEOF
  5935. ;;
  5936. esac
  5937. rm -rf conftest*
  5938.  if test $ac_cv_sys_file_offset_bits = unknown; then
  5939.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  5940. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  5941. if ${ac_cv_sys_large_files+:} false; then :
  5942.  $as_echo_n "(cached) " >&6
  5943. else
  5944.  while :; do
  5945.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5946. /* end confdefs.h.  */
  5947. #include <sys/types.h>
  5948. /* Check that off_t can represent 2**63 - 1 correctly.
  5949.    We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5950.     since some C++ compilers masquerading as C compilers
  5951.     incorrectly reject 9223372036854775807.  */
  5952. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5953.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5954.                && LARGE_OFF_T % 2147483647 == 1)
  5955.               ? 1 : -1];
  5956. int
  5957. main ()
  5958. {
  5959.  
  5960.   ;
  5961.   return 0;
  5962. }
  5963. _ACEOF
  5964. if ac_fn_c_try_compile "$LINENO"; then :
  5965.   ac_cv_sys_large_files=no; break
  5966. fi
  5967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5968.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5969. /* end confdefs.h.  */
  5970. #define _LARGE_FILES 1
  5971. #include <sys/types.h>
  5972.  /* Check that off_t can represent 2**63 - 1 correctly.
  5973.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5974.    since some C++ compilers masquerading as C compilers
  5975.    incorrectly reject 9223372036854775807.  */
  5976. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5977.  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5978.                && LARGE_OFF_T % 2147483647 == 1)
  5979.               ? 1 : -1];
  5980. int
  5981. main ()
  5982. {
  5983.  
  5984.  ;
  5985.  return 0;
  5986. }
  5987. _ACEOF
  5988. if ac_fn_c_try_compile "$LINENO"; then :
  5989.  ac_cv_sys_large_files=1; break
  5990. fi
  5991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5992.  ac_cv_sys_large_files=unknown
  5993.  break
  5994. done
  5995. fi
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  5997. $as_echo "$ac_cv_sys_large_files" >&6; }
  5998. case $ac_cv_sys_large_files in #(
  5999.  no | unknown) ;;
  6000.  *)
  6001. cat >>confdefs.h <<_ACEOF
  6002. #define _LARGE_FILES $ac_cv_sys_large_files
  6003. _ACEOF
  6004. ;;
  6005. esac
  6006. rm -rf conftest*
  6007.  fi
  6008.  
  6009.  
  6010. fi
  6011.  
  6012. fi
  6013.  
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  6015. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  6016. if ${ac_cv_c_const+:} false; then :
  6017.  $as_echo_n "(cached) " >&6
  6018. else
  6019.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6020. /* end confdefs.h.  */
  6021.  
  6022. int
  6023. main ()
  6024. {
  6025.  
  6026. #ifndef __cplusplus
  6027.  /* Ultrix mips cc rejects this sort of thing.  */
  6028.  typedef int charset[2];
  6029.  const charset cs = { 0, 0 };
  6030.  /* SunOS 4.1.1 cc rejects this.  */
  6031.  char const *const *pcpcc;
  6032.  char **ppc;
  6033.  /* NEC SVR4.0.2 mips cc rejects this.  */
  6034.  struct point {int x, y;};
  6035.  static struct point const zero = {0,0};
  6036.  /* AIX XL C 1.02.0.0 rejects this.
  6037.     It does not let you subtract one const X* pointer from another in
  6038.     an arm of an if-expression whose if-part is not a constant
  6039.     expression */
  6040.  const char *g = "string";
  6041.  pcpcc = &g + (g ? g-g : 0);
  6042.  /* HPUX 7.0 cc rejects these. */
  6043.  ++pcpcc;
  6044.  ppc = (char**) pcpcc;
  6045.  pcpcc = (char const *const *) ppc;
  6046.  { /* SCO 3.2v4 cc rejects this sort of thing.  */
  6047.    char tx;
  6048.    char *t = &tx;
  6049.    char const *s = 0 ? (char *) 0 : (char const *) 0;
  6050.  
  6051.    *t++ = 0;
  6052.    if (s) return 0;
  6053.  }
  6054.  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  6055.    int x[] = {25, 17};
  6056.    const int *foo = &x[0];
  6057.    ++foo;
  6058.  }
  6059.  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6060.    typedef const int *iptr;
  6061.    iptr p = 0;
  6062.    ++p;
  6063.  }
  6064.  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  6065.       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6066.    struct s { int j; const int *ap[3]; } bx;
  6067.    struct s *b = &bx; b->j = 5;
  6068.  }
  6069.  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6070.    const int foo = 10;
  6071.    if (!foo) return 0;
  6072.  }
  6073.  return !cs[0] && !zero.x;
  6074. #endif
  6075.  
  6076.  ;
  6077.  return 0;
  6078. }
  6079. _ACEOF
  6080. if ac_fn_c_try_compile "$LINENO"; then :
  6081.  ac_cv_c_const=yes
  6082. else
  6083.  ac_cv_c_const=no
  6084. fi
  6085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6086. fi
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  6088. $as_echo "$ac_cv_c_const" >&6; }
  6089. if test $ac_cv_c_const = no; then
  6090.  
  6091. $as_echo "#define const /**/" >>confdefs.h
  6092.  
  6093. fi
  6094.  
  6095. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6096. if test "x$ac_cv_type_pid_t" = xyes; then :
  6097.  
  6098. else
  6099.  
  6100. cat >>confdefs.h <<_ACEOF
  6101. #define pid_t int
  6102. _ACEOF
  6103.  
  6104. fi
  6105.  
  6106.  
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  6108. $as_echo_n "checking for socklen_t... " >&6; }
  6109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6110. /* end confdefs.h.  */
  6111.  
  6112. #include <sys/types.h>
  6113. #include <unistd.h>
  6114. #include <sys/socket.h>
  6115.  
  6116. int
  6117. main ()
  6118. {
  6119. socklen_t s;
  6120.  ;
  6121.  return 0;
  6122. }
  6123. _ACEOF
  6124. if ac_fn_c_try_compile "$LINENO"; then :
  6125.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6126. $as_echo "yes" >&6; }
  6127. else
  6128.  
  6129. $as_echo "#define socklen_t int" >>confdefs.h
  6130.  
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6132. $as_echo "no" >&6; }
  6133. fi
  6134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6135.  
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for actual socklen_t parameter type in socket functions" >&5
  6137. $as_echo_n "checking for actual socklen_t parameter type in socket functions... " >&6; }
  6138. zbx_socklen_t=
  6139. for arg2 in "struct sockaddr" void; do
  6140.  for arg3 in socklen_t size_t int; do
  6141.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6142. /* end confdefs.h.  */
  6143.  
  6144. #ifdef HAVE_SYS_TYPES_H
  6145. #  include <sys/types.h>
  6146. #endif
  6147. #ifdef HAVE_SYS_SOCKET_H
  6148. #  include <sys/socket.h>
  6149. #endif
  6150.      extern int getpeername(int sockfd, $arg2 *addr, $arg3 *addrlen);
  6151.  
  6152. int
  6153. main ()
  6154. {
  6155.  
  6156.      $arg3 addrlen;
  6157.      getpeername(0, 0, &addrlen);
  6158.  
  6159.  ;
  6160.  return 0;
  6161. }
  6162. _ACEOF
  6163. if ac_fn_c_try_compile "$LINENO"; then :
  6164.  
  6165.      zbx_socklen_t="$arg3"
  6166.      break 2
  6167.  
  6168. fi
  6169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6170.  done
  6171. done
  6172. if test "x$zbx_socklen_t" != "x"; then
  6173.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $zbx_socklen_t" >&5
  6174. $as_echo "$zbx_socklen_t" >&6; }
  6175.  
  6176. cat >>confdefs.h <<_ACEOF
  6177. #define ZBX_SOCKLEN_T $zbx_socklen_t
  6178. _ACEOF
  6179.  
  6180. else
  6181.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: leaving undefined" >&5
  6182. $as_echo "leaving undefined" >&6; }
  6183. fi
  6184.  
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for integer field name in union sigval of struct siginfo_t" >&5
  6186. $as_echo_n "checking for integer field name in union sigval of struct siginfo_t... " >&6; }
  6187. zbx_sival_int=
  6188. for field in sival_int sigval_int; do
  6189.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h.  */
  6191.  
  6192. #ifdef HAVE_SIGNAL_H
  6193. #  include <signal.h>
  6194. #endif
  6195.  
  6196. int
  6197. main ()
  6198. {
  6199.  
  6200.    siginfo_t siginfo;
  6201.    siginfo.si_value.$field = 0;
  6202.  
  6203.  ;
  6204.  return 0;
  6205. }
  6206. _ACEOF
  6207. if ac_fn_c_try_compile "$LINENO"; then :
  6208.  
  6209.    zbx_sival_int="$field"
  6210.    break
  6211.  
  6212. fi
  6213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6214. done
  6215. if test "x$zbx_sival_int" != "x"; then
  6216.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $zbx_sival_int" >&5
  6217. $as_echo "$zbx_sival_int" >&6; }
  6218.  
  6219. cat >>confdefs.h <<_ACEOF
  6220. #define ZBX_SIVAL_INT $zbx_sival_int
  6221. _ACEOF
  6222.  
  6223. else
  6224.  as_fn_error $? "Unable to find integer field name in union sigval of struct siginfo_t" "$LINENO" 5
  6225. fi
  6226.  
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5
  6228. $as_echo_n "checking for union semun... " >&6; }
  6229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6230. /* end confdefs.h.  */
  6231.  
  6232. #include <sys/types.h>
  6233. #include <sys/ipc.h>
  6234. #include <sys/sem.h>
  6235.  
  6236. int
  6237. main ()
  6238. {
  6239. union semun foo;
  6240.  ;
  6241.  return 0;
  6242. }
  6243. _ACEOF
  6244. if ac_fn_c_try_compile "$LINENO"; then :
  6245.  
  6246. $as_echo "#define HAVE_SEMUN 1" >>confdefs.h
  6247.  
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6249. $as_echo "yes" >&6; }
  6250. else
  6251.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6252. $as_echo "no" >&6; }
  6253. fi
  6254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6255.  
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct swaptable in sys/swap.h" >&5
  6257. $as_echo_n "checking for struct swaptable in sys/swap.h... " >&6; }
  6258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6259. /* end confdefs.h.  */
  6260.  
  6261. #include <stdlib.h>
  6262. #include <sys/types.h>
  6263. #include <sys/syscall.h>
  6264. #include <sys/swap.h>
  6265.  
  6266. #ifndef NULL
  6267. #define NULL (void *)0
  6268. #endif
  6269.  
  6270. int
  6271. main ()
  6272. {
  6273.  
  6274.    register int cnt, i;
  6275.    register int t, f;
  6276.    struct swaptable *swt;
  6277.    struct swapent *ste;
  6278.    static char path[256];
  6279.  
  6280.    /* get total number of swap entries */
  6281.    cnt = swapctl(SC_GETNSWP, 0);
  6282.  
  6283.    /* allocate enough space to hold count + n swapents */
  6284.    swt = (struct swaptable *)malloc(sizeof(int) +
  6285.             cnt * sizeof(struct swapent));
  6286.    if (swt == NULL)
  6287.    {
  6288.  return;
  6289.    }
  6290.    swt->swt_n = cnt;
  6291.  
  6292.    /* fill in ste_path pointers: we do not care about the paths, so we
  6293. point
  6294.       them all to the same buffer */
  6295.    ste = &(swt->swt_ent[0]);
  6296.    i = cnt;
  6297.    while (--i >= 0)
  6298.    {
  6299.  ste++->ste_path = path;
  6300.    }
  6301.  
  6302.    /* grab all swap info */
  6303.    swapctl(SC_LIST, swt);
  6304.  
  6305.    /* walk through the structs and sum up the fields */
  6306.    t = f = 0;
  6307.    ste = &(swt->swt_ent[0]);
  6308.    i = cnt;
  6309.    while (--i >= 0)
  6310.    {
  6311.  /* do not count slots being deleted */
  6312.  if (!(ste->ste_flags & ST_INDEL) &&
  6313.      !(ste->ste_flags & ST_DOINGDEL))
  6314.  {
  6315.      t += ste->ste_pages;
  6316.      f += ste->ste_free;
  6317.  } ste++;
  6318.    }
  6319.  
  6320.    /* fill in the results */
  6321.    free(swt);
  6322.  
  6323.  
  6324.  ;
  6325.  return 0;
  6326. }
  6327. _ACEOF
  6328. if ac_fn_c_try_compile "$LINENO"; then :
  6329.  
  6330. $as_echo "#define HAVE_SYS_SWAP_SWAPTABLE 1" >>confdefs.h
  6331.  
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6333. $as_echo "yes" >&6; }
  6334. else
  6335.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6336. $as_echo "no" >&6; }
  6337. fi
  6338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6339.  
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sensordev in sys/sensors.h" >&5
  6341. $as_echo_n "checking for struct sensordev in sys/sensors.h... " >&6; }
  6342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. /* end confdefs.h.  */
  6344.  
  6345. #include <stdlib.h>
  6346. #include <sys/queue.h>
  6347. #include <sys/sensors.h>
  6348. int
  6349. main ()
  6350. {
  6351. struct sensordev sensordev;
  6352. sensordev.xname[0]='\0';
  6353. sensordev.maxnumt[0]=0;
  6354.  
  6355.  ;
  6356.  return 0;
  6357. }
  6358. _ACEOF
  6359. if ac_fn_c_try_compile "$LINENO"; then :
  6360.  
  6361. $as_echo "#define HAVE_SENSORDEV 1" >>confdefs.h
  6362.  
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6364. $as_echo "yes" >&6; }
  6365. else
  6366.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6367. $as_echo "no" >&6; }
  6368. fi
  6369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6370.  
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statvfs64 in sys/statvfs.h" >&5
  6372. $as_echo_n "checking for struct statvfs64 in sys/statvfs.h... " >&6; }
  6373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6374. /* end confdefs.h.  */
  6375.  
  6376. #ifdef HAVE_SYS_TYPES_H
  6377. #   include <sys/types.h>
  6378. #endif
  6379. #ifdef HAVE_SYS_STATVFS_H
  6380. #   include <sys/statvfs.h>
  6381. #endif
  6382.  
  6383. int
  6384. main ()
  6385. {
  6386.  
  6387.     struct statvfs64    s;
  6388.     s.f_frsize = s.f_blocks = s.f_bfree = s.f_bavail = 0;
  6389.     statvfs64("/", &s);
  6390.  
  6391.  ;
  6392.  return 0;
  6393. }
  6394. _ACEOF
  6395. if ac_fn_c_try_compile "$LINENO"; then :
  6396.  
  6397. $as_echo "#define HAVE_SYS_STATVFS64 1" >>confdefs.h
  6398.  
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6400. $as_echo "yes" >&6; }
  6401. else
  6402.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6403. $as_echo "no" >&6; }
  6404. fi
  6405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6406.  
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs64 in sys/statfs.h" >&5
  6408. $as_echo_n "checking for struct statfs64 in sys/statfs.h... " >&6; }
  6409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6410. /* end confdefs.h.  */
  6411.  
  6412. #ifdef HAVE_SYS_TYPES_H
  6413. #   include <sys/types.h>
  6414. #endif
  6415. #ifdef HAVE_SYS_STATFS_H
  6416. #   include <sys/statfs.h>
  6417. #endif
  6418.  
  6419. int
  6420. main ()
  6421. {
  6422.  
  6423.     struct statfs64 s;
  6424.     s.f_bsize = s.f_blocks = s.f_bfree = s.f_bavail = 0;
  6425.     statfs64("/", &s);
  6426.  
  6427.  ;
  6428.  return 0;
  6429. }
  6430. _ACEOF
  6431. if ac_fn_c_try_compile "$LINENO"; then :
  6432.  
  6433. $as_echo "#define HAVE_SYS_STATFS64 1" >>confdefs.h
  6434.  
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6436. $as_echo "yes" >&6; }
  6437. else
  6438.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6439. $as_echo "no" >&6; }
  6440. fi
  6441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6442.  
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5
  6444. $as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; }
  6445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6446. /* end confdefs.h.  */
  6447. #include <sys/socket.h>
  6448. int
  6449. main ()
  6450. {
  6451. struct sockaddr_storage ss;
  6452. ss.ss_family = 0;
  6453.  
  6454.  ;
  6455.  return 0;
  6456. }
  6457. _ACEOF
  6458. if ac_fn_c_try_compile "$LINENO"; then :
  6459.  
  6460. $as_echo "#define HAVE_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h
  6461.  
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6463. $as_echo "yes" >&6; }
  6464. else
  6465.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6466. $as_echo "no" >&6; }
  6467. fi
  6468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6469.  
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field mem_unit in struct sysinfo" >&5
  6471. $as_echo_n "checking for field mem_unit in struct sysinfo... " >&6; }
  6472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6473. /* end confdefs.h.  */
  6474. #include <sys/sysinfo.h>
  6475. int
  6476. main ()
  6477. {
  6478. struct sysinfo sysinfo;
  6479. sysinfo.mem_unit=0;
  6480.  
  6481.  ;
  6482.  return 0;
  6483. }
  6484. _ACEOF
  6485. if ac_fn_c_try_compile "$LINENO"; then :
  6486.  
  6487. $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
  6488.  
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6490. $as_echo "yes" >&6; }
  6491. else
  6492.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6493. $as_echo "no" >&6; }
  6494. fi
  6495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6496.  
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field freeswap in struct sysinfo" >&5
  6498. $as_echo_n "checking for field freeswap in struct sysinfo... " >&6; }
  6499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6500. /* end confdefs.h.  */
  6501. #include <sys/sysinfo.h>
  6502. int
  6503. main ()
  6504. {
  6505. struct sysinfo sysinfo;
  6506. sysinfo.freeswap=0;
  6507.  
  6508.  ;
  6509.  return 0;
  6510. }
  6511. _ACEOF
  6512. if ac_fn_c_try_compile "$LINENO"; then :
  6513.  
  6514. $as_echo "#define HAVE_SYSINFO_FREESWAP 1" >>confdefs.h
  6515.  
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6517. $as_echo "yes" >&6; }
  6518. else
  6519.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6520. $as_echo "no" >&6; }
  6521. fi
  6522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6523.  
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field totalswap in struct sysinfo" >&5
  6525. $as_echo_n "checking for field totalswap in struct sysinfo... " >&6; }
  6526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6527. /* end confdefs.h.  */
  6528. #include <sys/sysinfo.h>
  6529. int
  6530. main ()
  6531. {
  6532. struct sysinfo sysinfo;
  6533. sysinfo.totalswap=0;
  6534.  
  6535.  ;
  6536.  return 0;
  6537. }
  6538. _ACEOF
  6539. if ac_fn_c_try_compile "$LINENO"; then :
  6540.  
  6541. $as_echo "#define HAVE_SYSINFO_TOTALSWAP 1" >>confdefs.h
  6542.  
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6544. $as_echo "yes" >&6; }
  6545. else
  6546.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6547. $as_echo "no" >&6; }
  6548. fi
  6549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6550.  
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field totalram in struct sysinfo" >&5
  6552. $as_echo_n "checking for field totalram in struct sysinfo... " >&6; }
  6553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6554. /* end confdefs.h.  */
  6555. #include <sys/sysinfo.h>
  6556. int
  6557. main ()
  6558. {
  6559. struct sysinfo sysinfo;
  6560. sysinfo.totalram=0;
  6561.  
  6562.  ;
  6563.  return 0;
  6564. }
  6565. _ACEOF
  6566. if ac_fn_c_try_compile "$LINENO"; then :
  6567.  
  6568. $as_echo "#define HAVE_SYSINFO_TOTALRAM 1" >>confdefs.h
  6569.  
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6571. $as_echo "yes" >&6; }
  6572. else
  6573.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6574. $as_echo "no" >&6; }
  6575. fi
  6576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6577.  
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sharedram in struct sysinfo" >&5
  6579. $as_echo_n "checking for field sharedram in struct sysinfo... " >&6; }
  6580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6581. /* end confdefs.h.  */
  6582. #include <sys/sysinfo.h>
  6583. int
  6584. main ()
  6585. {
  6586. struct sysinfo sysinfo;
  6587. sysinfo.sharedram=0;
  6588.  
  6589.  ;
  6590.  return 0;
  6591. }
  6592. _ACEOF
  6593. if ac_fn_c_try_compile "$LINENO"; then :
  6594.  
  6595. $as_echo "#define HAVE_SYSINFO_SHAREDRAM 1" >>confdefs.h
  6596.  
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6598. $as_echo "yes" >&6; }
  6599. else
  6600.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6601. $as_echo "no" >&6; }
  6602. fi
  6603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6604.  
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field bufferram in struct sysinfo" >&5
  6606. $as_echo_n "checking for field bufferram in struct sysinfo... " >&6; }
  6607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6608. /* end confdefs.h.  */
  6609. #include <sys/sysinfo.h>
  6610. int
  6611. main ()
  6612. {
  6613. struct sysinfo sysinfo;
  6614. sysinfo.bufferram=0;
  6615.  
  6616.  ;
  6617.  return 0;
  6618. }
  6619. _ACEOF
  6620. if ac_fn_c_try_compile "$LINENO"; then :
  6621.  
  6622. $as_echo "#define HAVE_SYSINFO_BUFFERRAM 1" >>confdefs.h
  6623.  
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6625. $as_echo "yes" >&6; }
  6626. else
  6627.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6628. $as_echo "no" >&6; }
  6629. fi
  6630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6631.  
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field freeram in struct sysinfo" >&5
  6633. $as_echo_n "checking for field freeram in struct sysinfo... " >&6; }
  6634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6635. /* end confdefs.h.  */
  6636. #include <sys/sysinfo.h>
  6637. int
  6638. main ()
  6639. {
  6640. struct sysinfo sysinfo;
  6641. sysinfo.freeram=0;
  6642.  
  6643.  ;
  6644.  return 0;
  6645. }
  6646. _ACEOF
  6647. if ac_fn_c_try_compile "$LINENO"; then :
  6648.  
  6649. $as_echo "#define HAVE_SYSINFO_FREERAM 1" >>confdefs.h
  6650.  
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6652. $as_echo "yes" >&6; }
  6653. else
  6654.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6655. $as_echo "no" >&6; }
  6656. fi
  6657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6658.  
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field uptime in struct sysinfo" >&5
  6660. $as_echo_n "checking for field uptime in struct sysinfo... " >&6; }
  6661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6662. /* end confdefs.h.  */
  6663. #include <sys/sysinfo.h>
  6664. int
  6665. main ()
  6666. {
  6667. struct sysinfo sysinfo;
  6668. sysinfo.uptime=0;
  6669.  
  6670.  ;
  6671.  return 0;
  6672. }
  6673. _ACEOF
  6674. if ac_fn_c_try_compile "$LINENO"; then :
  6675.  
  6676. $as_echo "#define HAVE_SYSINFO_UPTIME 1" >>confdefs.h
  6677.  
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6679. $as_echo "yes" >&6; }
  6680. else
  6681.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6682. $as_echo "no" >&6; }
  6683. fi
  6684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6685.  
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field procs in struct sysinfo" >&5
  6687. $as_echo_n "checking for field procs in struct sysinfo... " >&6; }
  6688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6689. /* end confdefs.h.  */
  6690. #include <sys/sysinfo.h>
  6691. int
  6692. main ()
  6693. {
  6694. struct sysinfo sysinfo;
  6695. sysinfo.procs=0;
  6696.  
  6697.  ;
  6698.  return 0;
  6699. }
  6700. _ACEOF
  6701. if ac_fn_c_try_compile "$LINENO"; then :
  6702.  
  6703. $as_echo "#define HAVE_SYSINFO_PROCS 1" >>confdefs.h
  6704.  
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6706. $as_echo "yes" >&6; }
  6707. else
  6708.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6709. $as_echo "no" >&6; }
  6710. fi
  6711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6712.  
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field tm_gmtoff in struct tm" >&5
  6714. $as_echo_n "checking for field tm_gmtoff in struct tm... " >&6; }
  6715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6716. /* end confdefs.h.  */
  6717.  
  6718. #ifdef HAVE_SYS_TIME_H
  6719. #include <sys/time.h>
  6720. #endif  /* HAVE_SYS_TIME_H */
  6721.  
  6722. #ifdef HAVE_TIME_H
  6723. #include <time.h>
  6724. #endif  /* HAVE_TIME_H */
  6725.  
  6726. int
  6727. main ()
  6728. {
  6729.  
  6730.     struct tm tm;
  6731.     tm.tm_gmtoff;
  6732.  
  6733.  ;
  6734.  return 0;
  6735. }
  6736. _ACEOF
  6737. if ac_fn_c_try_compile "$LINENO"; then :
  6738.  
  6739. $as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h
  6740.  
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6742. $as_echo "yes" >&6; }
  6743. else
  6744.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6745. $as_echo "no" >&6; }
  6746. fi
  6747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6748.  
  6749.  
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysconf() in unistd.h" >&5
  6751. $as_echo_n "checking for function sysconf() in unistd.h... " >&6; }
  6752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6753. /* end confdefs.h.  */
  6754.  
  6755. #include <unistd.h>
  6756.  
  6757. int
  6758. main ()
  6759. {
  6760.     int i;
  6761.  
  6762.     i=sysconf(_SC_PHYS_PAGES)*sysconf(_SC_PHYS_PAGES);
  6763.     i=sysconf(_SC_AVPHYS_PAGES)*sysconf(_SC_PHYS_PAGES);
  6764.  
  6765.  ;
  6766.  return 0;
  6767. }
  6768. _ACEOF
  6769. if ac_fn_c_try_compile "$LINENO"; then :
  6770.  
  6771. $as_echo "#define HAVE_UNISTD_SYSCONF 1" >>confdefs.h
  6772.  
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6774. $as_echo "yes" >&6; }
  6775. else
  6776.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6777. $as_echo "no" >&6; }
  6778. fi
  6779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6780.  
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function initgroups()" >&5
  6782. $as_echo_n "checking for function initgroups()... " >&6; }
  6783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6784. /* end confdefs.h.  */
  6785.  
  6786. #include <sys/types.h>
  6787. #include <grp.h>
  6788.  
  6789. int
  6790. main ()
  6791. {
  6792.  
  6793.     char    *user = "zabbix";
  6794.     initgroups(user, 0);
  6795.  
  6796.  ;
  6797.  return 0;
  6798. }
  6799. _ACEOF
  6800. if ac_fn_c_try_link "$LINENO"; then :
  6801.  
  6802. $as_echo "#define HAVE_FUNCTION_INITGROUPS 1" >>confdefs.h
  6803.  
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6805. $as_echo "yes" >&6; }
  6806. else
  6807.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6808. $as_echo "no" >&6; }
  6809. fi
  6810. rm -f core conftest.err conftest.$ac_objext \
  6811.    conftest$ac_exeext conftest.$ac_ext
  6812.  
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for functions seteuid() and setegid()" >&5
  6814. $as_echo_n "checking for functions seteuid() and setegid()... " >&6; }
  6815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6816. /* end confdefs.h.  */
  6817.  
  6818. #include <sys/types.h>
  6819. #include <unistd.h>
  6820.  
  6821. int
  6822. main ()
  6823. {
  6824.  
  6825.     seteuid(0);
  6826.     setegid(0);
  6827.  
  6828.  ;
  6829.  return 0;
  6830. }
  6831. _ACEOF
  6832. if ac_fn_c_try_link "$LINENO"; then :
  6833.  
  6834. $as_echo "#define HAVE_FUNCTION_SETEUID 1" >>confdefs.h
  6835.  
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6837. $as_echo "yes" >&6; }
  6838. else
  6839.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6840. $as_echo "no" >&6; }
  6841. fi
  6842. rm -f core conftest.err conftest.$ac_objext \
  6843.    conftest$ac_exeext conftest.$ac_ext
  6844.  
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function setproctitle()" >&5
  6846. $as_echo_n "checking for function setproctitle()... " >&6; }
  6847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6848. /* end confdefs.h.  */
  6849.  
  6850. #include <sys/types.h>
  6851. #include <unistd.h>
  6852.  
  6853. int
  6854. main ()
  6855. {
  6856.  
  6857.     setproctitle("Test %d", 1);
  6858.  
  6859.  ;
  6860.  return 0;
  6861. }
  6862. _ACEOF
  6863. if ac_fn_c_try_link "$LINENO"; then :
  6864.  
  6865. $as_echo "#define HAVE_FUNCTION_SETPROCTITLE 1" >>confdefs.h
  6866.  
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6868. $as_echo "yes" >&6; }
  6869. else
  6870.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6871. $as_echo "no" >&6; }
  6872. fi
  6873. rm -f core conftest.err conftest.$ac_objext \
  6874.    conftest$ac_exeext conftest.$ac_ext
  6875.  
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctlbyname()" >&5
  6877. $as_echo_n "checking for function sysctlbyname()... " >&6; }
  6878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6879. /* end confdefs.h.  */
  6880.  
  6881. #ifdef HAVE_SYS_TYPES_H
  6882. #include <sys/types.h>
  6883. #endif /* HAVE_SYS_TYPES_H */
  6884.  
  6885. #ifdef HAVE_SYS_PARAM_H
  6886. #include <sys/param.h>
  6887. #endif /* HAVE_SYS_PARAM_H */
  6888.  
  6889. #include <sys/sysctl.h>
  6890.  
  6891. int
  6892. main ()
  6893. {
  6894.  
  6895.     sysctlbyname("", 0, 0, 0, 0);
  6896.  
  6897.  ;
  6898.  return 0;
  6899. }
  6900. _ACEOF
  6901. if ac_fn_c_try_link "$LINENO"; then :
  6902.  
  6903. $as_echo "#define HAVE_FUNCTION_SYSCTLBYNAME 1" >>confdefs.h
  6904.  
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6906. $as_echo "yes" >&6; }
  6907. else
  6908.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6909. $as_echo "no" >&6; }
  6910. fi
  6911. rm -f core conftest.err conftest.$ac_objext \
  6912.    conftest$ac_exeext conftest.$ac_ext
  6913.  
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (KERN_BOOTTIME)" >&5
  6915. $as_echo_n "checking for function sysctl (KERN_BOOTTIME)... " >&6; }
  6916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6917. /* end confdefs.h.  */
  6918.  
  6919. #ifdef HAVE_SYS_TYPES_H
  6920. #include <sys/types.h>
  6921. #endif /* HAVE_SYS_TYPES_H */
  6922.  
  6923. #ifdef HAVE_SYS_PARAM_H
  6924. #include <sys/param.h>
  6925. #endif /* HAVE_SYS_PARAM_H */
  6926.  
  6927. #include <sys/sysctl.h>
  6928. #include <unistd.h>
  6929. #include <time.h>
  6930. #include <sys/time.h>
  6931.  
  6932. int
  6933. main ()
  6934. {
  6935.  
  6936.     size_t      len;
  6937.     struct timeval  uptime;
  6938.         int     mib[2];
  6939.  
  6940.        mib[0] = CTL_KERN;
  6941.        mib[1] = KERN_BOOTTIME;
  6942.  
  6943.        len = sizeof(uptime);
  6944.        sysctl(mib, 2, &uptime, &len, 0, 0);
  6945.  
  6946.  ;
  6947.  return 0;
  6948. }
  6949. _ACEOF
  6950. if ac_fn_c_try_compile "$LINENO"; then :
  6951.  
  6952. $as_echo "#define HAVE_FUNCTION_SYSCTL_KERN_BOOTTIME 1" >>confdefs.h
  6953.  
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6955. $as_echo "yes" >&6; }
  6956. else
  6957.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6958. $as_echo "no" >&6; }
  6959. fi
  6960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6961.  
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (HW_NCPU)" >&5
  6963. $as_echo_n "checking for function sysctl (HW_NCPU)... " >&6; }
  6964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6965. /* end confdefs.h.  */
  6966.  
  6967. #ifdef HAVE_SYS_TYPES_H
  6968. #include <sys/types.h>
  6969. #endif /* HAVE_SYS_TYPES_H */
  6970.  
  6971. #ifdef HAVE_SYS_PARAM_H
  6972. #include <sys/param.h>
  6973. #endif /* HAVE_SYS_PARAM_H */
  6974.  
  6975. #include <sys/sysctl.h>
  6976.  
  6977. int
  6978. main ()
  6979. {
  6980.  
  6981.     size_t  len;
  6982.     int mib[2], ncpu;
  6983.  
  6984.     mib[0] = CTL_HW;
  6985.     mib[1] = HW_NCPU;
  6986.  
  6987.     len = sizeof(ncpu);
  6988.     sysctl(mib, 2, &ncpu, &len, 0, 0);
  6989.  
  6990.  ;
  6991.  return 0;
  6992. }
  6993. _ACEOF
  6994. if ac_fn_c_try_compile "$LINENO"; then :
  6995.  
  6996. $as_echo "#define HAVE_FUNCTION_SYSCTL_HW_NCPU 1" >>confdefs.h
  6997.  
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6999. $as_echo "yes" >&6; }
  7000. else
  7001.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7002. $as_echo "no" >&6; }
  7003. fi
  7004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7005.  
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (KERN_MAXFILES)" >&5
  7007. $as_echo_n "checking for function sysctl (KERN_MAXFILES)... " >&6; }
  7008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7009. /* end confdefs.h.  */
  7010.  
  7011. #ifdef HAVE_SYS_TYPES_H
  7012. #include <sys/types.h>
  7013. #endif /* HAVE_SYS_TYPES_H */
  7014.  
  7015. #ifdef HAVE_SYS_PARAM_H
  7016. #include <sys/param.h>
  7017. #endif /* HAVE_SYS_PARAM_H */
  7018.  
  7019. #include <sys/sysctl.h>
  7020.  
  7021. int
  7022. main ()
  7023. {
  7024.  
  7025.     size_t  len;
  7026.         int mib[2], maxfiles;
  7027.  
  7028.        mib[0] = CTL_KERN;
  7029.        mib[1] = KERN_MAXFILES;
  7030.  
  7031.        len = sizeof(maxfiles);
  7032.        sysctl(mib, 2, &maxfiles, &len, 0, 0);
  7033.  
  7034.  ;
  7035.  return 0;
  7036. }
  7037. _ACEOF
  7038. if ac_fn_c_try_compile "$LINENO"; then :
  7039.  
  7040. $as_echo "#define HAVE_FUNCTION_SYSCTL_KERN_MAXFILES 1" >>confdefs.h
  7041.  
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7043. $as_echo "yes" >&6; }
  7044. else
  7045.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7046. $as_echo "no" >&6; }
  7047. fi
  7048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7049.  
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (KERN_MAXPROC)" >&5
  7051. $as_echo_n "checking for function sysctl (KERN_MAXPROC)... " >&6; }
  7052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7053. /* end confdefs.h.  */
  7054.  
  7055. #ifdef HAVE_SYS_TYPES_H
  7056. #include <sys/types.h>
  7057. #endif /* HAVE_SYS_TYPES_H */
  7058.  
  7059. #ifdef HAVE_SYS_PARAM_H
  7060. #include <sys/param.h>
  7061. #endif /* HAVE_SYS_PARAM_H */
  7062.  
  7063. #include <sys/sysctl.h>
  7064.  
  7065. int
  7066. main ()
  7067. {
  7068.  
  7069.     size_t  len;
  7070.     int mib[2], maxproc;
  7071.  
  7072.        mib[0] = CTL_KERN;
  7073.        mib[1] = KERN_MAXPROC;
  7074.  
  7075.        len = sizeof(maxproc);
  7076.        sysctl(mib, 2, &maxproc, &len, 0, 0);
  7077.  
  7078.  ;
  7079.  return 0;
  7080. }
  7081. _ACEOF
  7082. if ac_fn_c_try_compile "$LINENO"; then :
  7083.  
  7084. $as_echo "#define HAVE_FUNCTION_SYSCTL_KERN_MAXPROC 1" >>confdefs.h
  7085.  
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7087. $as_echo "yes" >&6; }
  7088. else
  7089.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7090. $as_echo "no" >&6; }
  7091. fi
  7092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7093.  
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sysctl (KERN_CPTIME,KERN_CPTIME2)" >&5
  7095. $as_echo_n "checking for function sysctl (KERN_CPTIME,KERN_CPTIME2)... " >&6; }
  7096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7097. /* end confdefs.h.  */
  7098.  
  7099. #include <sys/param.h>
  7100. #include <sys/sysctl.h>
  7101. #if defined(HAVE_SYS_DKSTAT_H)
  7102. #   include <sys/dkstat.h>
  7103. #elif defined(HAVE_SYS_SCHED_H)
  7104. #   include <sys/sched.h>
  7105. #endif
  7106.  
  7107. int
  7108. main ()
  7109. {
  7110.  
  7111. size_t  sz;
  7112. int i[] = {CP_USER, CP_NICE, CP_SYS, CP_INTR, CP_IDLE};
  7113.  
  7114. {
  7115.     long    states[CPUSTATES];
  7116.     int mib[2] = {CTL_KERN, KERN_CPTIME};
  7117.  
  7118.     sz = sizeof(states);
  7119.     sysctl(mib, 2, &states, &sz, NULL, 0);
  7120. }
  7121.  
  7122. {
  7123.     u_int64_t   states[CPUSTATES];
  7124.     int     mib[3] = {CTL_KERN, KERN_CPTIME2, 0};
  7125.  
  7126.     sz = sizeof(states);
  7127.     sysctl(mib, 3, &states, &sz, NULL, 0);
  7128. }
  7129.  
  7130.  ;
  7131.  return 0;
  7132. }
  7133. _ACEOF
  7134. if ac_fn_c_try_compile "$LINENO"; then :
  7135.  
  7136. $as_echo "#define HAVE_FUNCTION_SYSCTL_KERN_CPTIME 1" >>confdefs.h
  7137.  
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7139. $as_echo "yes" >&6; }
  7140. else
  7141.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7142. $as_echo "no" >&6; }
  7143. fi
  7144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7145.  
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function clock_gettime in time.h" >&5
  7147. $as_echo_n "checking for function clock_gettime in time.h... " >&6; }
  7148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7149. /* end confdefs.h.  */
  7150.  
  7151. #ifdef HAVE_TIME_H
  7152. #   include <time.h>
  7153. #elif HAVE_SYS_TIME_H
  7154. #   include <sys/time.h>
  7155. #endif  /* HAVE_SYS_TIME_H */
  7156.  
  7157. int
  7158. main ()
  7159. {
  7160. struct timespec tp;
  7161. clock_gettime(CLOCK_REALTIME, &tp);
  7162.  
  7163.  ;
  7164.  return 0;
  7165. }
  7166. _ACEOF
  7167. if ac_fn_c_try_link "$LINENO"; then :
  7168.  
  7169. $as_echo "#define HAVE_TIME_CLOCK_GETTIME 1" >>confdefs.h
  7170.  
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7172. $as_echo "yes" >&6; }
  7173. else
  7174.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7175. $as_echo "no" >&6; }
  7176. fi
  7177. rm -f core conftest.err conftest.$ac_objext \
  7178.    conftest$ac_exeext conftest.$ac_ext
  7179.  
  7180.  
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macro __va_copy() in stdarg.h" >&5
  7182. $as_echo_n "checking for macro __va_copy() in stdarg.h... " >&6; }
  7183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7184. /* end confdefs.h.  */
  7185.  
  7186. #include <stdarg.h>
  7187.  
  7188. int
  7189. main ()
  7190. {
  7191.  
  7192.     va_list src,dst;
  7193.  
  7194.     __va_copy(dst,src);
  7195.  
  7196.  ;
  7197.  return 0;
  7198. }
  7199. _ACEOF
  7200. if ac_fn_c_try_compile "$LINENO"; then :
  7201.  
  7202. $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
  7203.  
  7204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7205. $as_echo "yes" >&6; }
  7206. else
  7207.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7208. $as_echo "no" >&6; }
  7209. fi
  7210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7211.  
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macro __VA_ARGS__" >&5
  7213. $as_echo_n "checking for macro __VA_ARGS__... " >&6; }
  7214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7215. /* end confdefs.h.  */
  7216.  
  7217. #define ZBX_CONST_STRING(str)   str
  7218. int test(const char *fmt, ...) { return 0; }
  7219.  
  7220. int
  7221. main ()
  7222. {
  7223.  
  7224. #define TEST(fmt, ...) test(ZBX_CONST_STRING(fmt), ##__VA_ARGS__)
  7225. TEST("%s","test");
  7226. TEST("test");
  7227.  
  7228.  ;
  7229.  return 0;
  7230. }
  7231. _ACEOF
  7232. if ac_fn_c_try_compile "$LINENO"; then :
  7233.  
  7234. $as_echo "#define HAVE___VA_ARGS__ 1" >>confdefs.h
  7235.  
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7237. $as_echo "yes" >&6; }
  7238. else
  7239.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7240. $as_echo "no" >&6; }
  7241. fi
  7242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7243.  
  7244.  
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  7246. $as_echo_n "checking return type of signal handlers... " >&6; }
  7247. if ${ac_cv_type_signal+:} false; then :
  7248.  $as_echo_n "(cached) " >&6
  7249. else
  7250.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7251. /* end confdefs.h.  */
  7252. #include <sys/types.h>
  7253. #include <signal.h>
  7254.  
  7255. int
  7256. main ()
  7257. {
  7258. return *(signal (0, 0)) (0) == 1;
  7259.  ;
  7260.  return 0;
  7261. }
  7262. _ACEOF
  7263. if ac_fn_c_try_compile "$LINENO"; then :
  7264.  ac_cv_type_signal=int
  7265. else
  7266.  ac_cv_type_signal=void
  7267. fi
  7268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7269. fi
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  7271. $as_echo "$ac_cv_type_signal" >&6; }
  7272.  
  7273. cat >>confdefs.h <<_ACEOF
  7274. #define RETSIGTYPE $ac_cv_type_signal
  7275. _ACEOF
  7276.  
  7277.  
  7278. ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
  7279. if test "x$ac_cv_func_getloadavg" = xyes; then :
  7280.  $as_echo "#define HAVE_GETLOADAVG 1" >>confdefs.h
  7281.  
  7282. else
  7283.  case " $LIBOBJS " in
  7284.  *" getloadavg.$ac_objext "* ) ;;
  7285.  *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
  7286. ;;
  7287. esac
  7288.  
  7289. fi
  7290.  
  7291.  
  7292. for ac_func in hstrerror
  7293. do :
  7294.  ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  7295. if test "x$ac_cv_func_hstrerror" = xyes; then :
  7296.  cat >>confdefs.h <<_ACEOF
  7297. #define HAVE_HSTRERROR 1
  7298. _ACEOF
  7299.  
  7300. fi
  7301. done
  7302.  
  7303. for ac_func in getenv
  7304. do :
  7305.  ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  7306. if test "x$ac_cv_func_getenv" = xyes; then :
  7307.  cat >>confdefs.h <<_ACEOF
  7308. #define HAVE_GETENV 1
  7309. _ACEOF
  7310.  
  7311. fi
  7312. done
  7313.  
  7314. for ac_func in putenv
  7315. do :
  7316.  ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  7317. if test "x$ac_cv_func_putenv" = xyes; then :
  7318.  cat >>confdefs.h <<_ACEOF
  7319. #define HAVE_PUTENV 1
  7320. _ACEOF
  7321.  
  7322. fi
  7323. done
  7324.  
  7325. for ac_func in sigqueue
  7326. do :
  7327.  ac_fn_c_check_func "$LINENO" "sigqueue" "ac_cv_func_sigqueue"
  7328. if test "x$ac_cv_func_sigqueue" = xyes; then :
  7329.  cat >>confdefs.h <<_ACEOF
  7330. #define HAVE_SIGQUEUE 1
  7331. _ACEOF
  7332.  
  7333. fi
  7334. done
  7335.  
  7336.  
  7337.  
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc filesystem" >&5
  7339. $as_echo_n "checking for /proc filesystem... " >&6; }
  7340. if test -d /proc; then
  7341.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7342. $as_echo "yes" >&6; }
  7343.  
  7344. $as_echo "#define HAVE_PROC 1" >>confdefs.h
  7345.  
  7346. else
  7347.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7348. $as_echo "no" >&6; }
  7349. fi
  7350.  
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/stat" >&5
  7352. $as_echo_n "checking for file /proc/stat... " >&6; }
  7353. if test -r /proc/stat; then
  7354.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7355. $as_echo "yes" >&6; }
  7356.  
  7357. $as_echo "#define HAVE_PROC_STAT 1" >>confdefs.h
  7358.  
  7359. else
  7360.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7361. $as_echo "no" >&6; }
  7362. fi
  7363.  
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/cpuinfo" >&5
  7365. $as_echo_n "checking for file /proc/cpuinfo... " >&6; }
  7366. if test -r /proc/cpuinfo; then
  7367.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7368. $as_echo "yes" >&6; }
  7369.  
  7370. $as_echo "#define HAVE_PROC_CPUINFO 1" >>confdefs.h
  7371.  
  7372. else
  7373.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7374. $as_echo "no" >&6; }
  7375. fi
  7376.  
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/0/psinfo" >&5
  7378. $as_echo_n "checking for file /proc/0/psinfo... " >&6; }
  7379. if test -r /proc/0/psinfo; then
  7380.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7381. $as_echo "yes" >&6; }
  7382.  
  7383. $as_echo "#define HAVE_PROC_0_PSINFO 1" >>confdefs.h
  7384.  
  7385. else
  7386.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7387. $as_echo "no" >&6; }
  7388. fi
  7389.  
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/loadavg" >&5
  7391. $as_echo_n "checking for file /proc/loadavg... " >&6; }
  7392. if test -r /proc/loadavg; then
  7393.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7394. $as_echo "yes" >&6; }
  7395.  
  7396. $as_echo "#define HAVE_PROC_LOADAVG 1" >>confdefs.h
  7397.  
  7398. else
  7399.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7400. $as_echo "no" >&6; }
  7401. fi
  7402.  
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file /proc/net/dev" >&5
  7404. $as_echo_n "checking for file /proc/net/dev... " >&6; }
  7405. if test -r /proc/net/dev; then
  7406.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7407. $as_echo "yes" >&6; }
  7408.  
  7409. $as_echo "#define HAVE_PROC_NET_DEV 1" >>confdefs.h
  7410.  
  7411. else
  7412.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7413. $as_echo "no" >&6; }
  7414. fi
  7415.  
  7416.  
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long format" >&5
  7418. $as_echo_n "checking for long long format... " >&6; }
  7419. if test "$cross_compiling" = yes; then :
  7420.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7421. $as_echo "no" >&6; }
  7422. else
  7423.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7424. /* end confdefs.h.  */
  7425.  
  7426. #include <sys/types.h>
  7427. int main()
  7428. {
  7429.        uint64_t i;
  7430.  
  7431.        sscanf("200000000010020", "%qu", &i);
  7432.  
  7433.        if (i == 200000000010020) return 0;
  7434.        else return -1;
  7435. }
  7436.  
  7437. _ACEOF
  7438. if ac_fn_c_try_run "$LINENO"; then :
  7439.  
  7440. $as_echo "#define HAVE_LONG_LONG_QU 1 " >>confdefs.h
  7441.  
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7443. $as_echo "yes" >&6; }
  7444. else
  7445.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7446. $as_echo "no" >&6; }
  7447. fi
  7448. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7449.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  7450. fi
  7451.  
  7452.  
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic linking option" >&5
  7454. $as_echo_n "checking for -rdynamic linking option... " >&6; }
  7455. saved_LDFLAGS="$LDFLAGS"
  7456. LDFLAGS="-rdynamic $LDFLAGS"
  7457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7458. /* end confdefs.h.  */
  7459. #include <execinfo.h>
  7460. int
  7461. main ()
  7462. {
  7463. void *bcktrc[6];
  7464. (void)backtrace(bcktrc, 6);
  7465.  
  7466.  ;
  7467.  return 0;
  7468. }
  7469. _ACEOF
  7470. if ac_fn_c_try_link "$LINENO"; then :
  7471.  LDFLAGS="-rdynamic $saved_LDFLAGS"
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7473. $as_echo "yes" >&6; }
  7474. else
  7475.  LDFLAGS="$saved_LDFLAGS"
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7477. $as_echo "no" >&6; }
  7478. fi
  7479. rm -f core conftest.err conftest.$ac_objext \
  7480.    conftest$ac_exeext conftest.$ac_ext
  7481.  
  7482.  
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperfstat 5.2.0.40 fileset" >&5
  7484. $as_echo_n "checking for libperfstat 5.2.0.40 fileset... " >&6; }
  7485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7486. /* end confdefs.h.  */
  7487. #include <libperfstat.h>
  7488. int
  7489. main ()
  7490. {
  7491. perfstat_memory_total_t memstats;
  7492. memstats.virt_active = 0;
  7493.  
  7494.  ;
  7495.  return 0;
  7496. }
  7497. _ACEOF
  7498. if ac_fn_c_try_compile "$LINENO"; then :
  7499.  
  7500. $as_echo "#define HAVE_AIXOSLEVEL_520004 1" >>confdefs.h
  7501.  
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7503. $as_echo "yes" >&6; }
  7504. else
  7505.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7506. $as_echo "no" >&6; }
  7507. fi
  7508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7509.  
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperfstat 5.3.0.60 fileset" >&5
  7511. $as_echo_n "checking for libperfstat 5.3.0.60 fileset... " >&6; }
  7512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7513. /* end confdefs.h.  */
  7514. #include <libperfstat.h>
  7515. int
  7516. main ()
  7517. {
  7518. perfstat_partition_total_t  lparstats;
  7519. lparstats.type.b.donate_enabled = 0;
  7520. lparstats.idle_donated_purr = 0;
  7521. lparstats.busy_donated_purr = 0;
  7522. lparstats.idle_stolen_purr = 0;
  7523. lparstats.busy_stolen_purr = 0;
  7524.  
  7525.  ;
  7526.  return 0;
  7527. }
  7528. _ACEOF
  7529. if ac_fn_c_try_compile "$LINENO"; then :
  7530.  
  7531. $as_echo "#define HAVE_AIXOSLEVEL_530006 1" >>confdefs.h
  7532.  
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7534. $as_echo "yes" >&6; }
  7535. else
  7536.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7537. $as_echo "no" >&6; }
  7538. fi
  7539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7540.  
  7541. case "$host_os" in
  7542. linux*)
  7543.     ARCH="linux"
  7544.     ;;
  7545. aix*)
  7546.     ARCH="aix"
  7547.     ;;
  7548. darwin*|rhapsody*)
  7549.     ARCH="osx"
  7550.  
  7551. $as_echo "#define MAC_OS_X 1" >>confdefs.h
  7552.  
  7553.     ;;
  7554. *solaris*)
  7555.     ARCH="solaris"
  7556.     ;;
  7557. hpux*)
  7558.     ARCH="hpux"
  7559.     ;;
  7560. freebsd*)
  7561.     ARCH="freebsd"
  7562.     ;;
  7563. netbsd*)
  7564.     ARCH="netbsd"
  7565.     ;;
  7566. osf*)
  7567.     ARCH="osf"
  7568.     ;;
  7569. openbsd*)
  7570.     ARCH="openbsd"
  7571.     ;;
  7572. *)
  7573.     ARCH="unknown"
  7574.     ;;
  7575. esac
  7576.  
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5
  7578. $as_echo_n "checking for architecture... " >&6; }
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH ($host_os)" >&5
  7580. $as_echo "$ARCH ($host_os)" >&6; }
  7581.  
  7582. if test "x$ARCH" = "xlinux"; then
  7583.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the linux kernel version" >&5
  7584. $as_echo_n "checking for the linux kernel version... " >&6; }
  7585.  
  7586.     kernel=`uname -r`
  7587.  
  7588.     case "${kernel}" in
  7589.         2.6.*)
  7590.             { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
  7591. $as_echo "2.6 family (${kernel})" >&6; }
  7592.  
  7593. $as_echo "#define KERNEL_2_6 1" >>confdefs.h
  7594.  
  7595.             ;;
  7596.         2.4.*)
  7597.             { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
  7598. $as_echo "2.4 family (${kernel})" >&6; }
  7599.  
  7600. $as_echo "#define KERNEL_2_4 1" >>confdefs.h
  7601.  
  7602.             ;;
  7603.         *)
  7604.             { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown family (${kernel})" >&5
  7605. $as_echo "unknown family (${kernel})" >&6; }
  7606.             ;;
  7607.     esac
  7608. fi
  7609.  
  7610. if test "x$ARCH" = "xsolaris"; then
  7611.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -m64 compilation flag" >&5
  7612. $as_echo_n "checking for -m64 compilation flag... " >&6; }
  7613.     saved_CFLAGS="$CFLAGS"
  7614.     CFLAGS="-m64"
  7615.     if test "$cross_compiling" = yes; then :
  7616.  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7617. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7618. as_fn_error $? "cannot run test program while cross compiling
  7619. See \`config.log' for more details" "$LINENO" 5; }
  7620. else
  7621.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7622. /* end confdefs.h.  */
  7623. int main(void) {return 0;}
  7624. _ACEOF
  7625. if ac_fn_c_try_run "$LINENO"; then :
  7626.  CFLAGS="-m64 $saved_CFLAGS"
  7627.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7628. $as_echo "yes" >&6; }
  7629. else
  7630.  CFLAGS="$saved_CFLAGS"
  7631.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7632. $as_echo "no" >&6; }
  7633. fi
  7634. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7635.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  7636. fi
  7637.  
  7638. fi
  7639.  
  7640. if test "x$ARCH" = "xhpux"; then
  7641.                 hpux_version=${host_os#hpux}
  7642.     hpux_major=${hpux_version%.*}
  7643.     hpux_minor=${hpux_version#*.}
  7644.  
  7645.  
  7646. cat >>confdefs.h <<_ACEOF
  7647. #define HPUX_VERSION $hpux_major$hpux_minor
  7648. _ACEOF
  7649.  
  7650.  
  7651.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -D_HPUX_API_LEVEL=20040821 compilation flag" >&5
  7652. $as_echo_n "checking for -D_HPUX_API_LEVEL=20040821 compilation flag... " >&6; }
  7653.     saved_CFLAGS="$CFLAGS"
  7654.     CFLAGS="-D_HPUX_API_LEVEL=20040821"
  7655.     if test "$cross_compiling" = yes; then :
  7656.  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7657. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7658. as_fn_error $? "cannot run test program while cross compiling
  7659. See \`config.log' for more details" "$LINENO" 5; }
  7660. else
  7661.  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7662. /* end confdefs.h.  */
  7663.  
  7664. #ifdef HAVE_DLFCN_H
  7665. #   include <dlfcn.h>
  7666. #endif
  7667. #ifdef HAVE_SYS_UTSNAME_H
  7668. #   include <sys/utsname.h>
  7669. #endif
  7670.  
  7671. int main(void)
  7672. {
  7673.     void        *p1, *p2;
  7674.     struct utsname  name;
  7675.  
  7676.     /* check that the compiler (e.g., GCC 4.3.0 and above) supports function-level versioning */
  7677.  
  7678.     p1 = uname;
  7679.     p2 = dlsym(RTLD_DEFAULT, "uname{20040821}");
  7680.  
  7681.     if (p1 != p2)
  7682.         return 1;
  7683.  
  7684.     /* uname() fails with EFAULT on HP-UX systems that were only partially upgraded to this API level */
  7685.  
  7686.     return -1 == uname(&name) ? 1 : 0;
  7687. }
  7688.  
  7689. _ACEOF
  7690. if ac_fn_c_try_run "$LINENO"; then :
  7691.  CFLAGS="-D_HPUX_API_LEVEL=20040821 $saved_CFLAGS"
  7692.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7693. $as_echo "yes" >&6; }
  7694. else
  7695.  CFLAGS="$saved_CFLAGS"
  7696.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7697. $as_echo "no" >&6; }
  7698. fi
  7699. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7700.  conftest.$ac_objext conftest.beam conftest.$ac_ext
  7701. fi
  7702.  
  7703. fi
  7704.  
  7705.  
  7706. cat >>confdefs.h <<_ACEOF
  7707. #define ARCH "${ARCH}"
  7708. _ACEOF
  7709.  
  7710.  
  7711.  
  7712. # The cast to long int works around a bug in the HP C Compiler
  7713. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7714. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7715. # This bug is HP SR number 8606223364.
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  7717. $as_echo_n "checking size of void *... " >&6; }
  7718. if ${ac_cv_sizeof_void_p+:} false; then :
  7719.   $as_echo_n "(cached) " >&6
  7720. else
  7721.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
  7722.  
  7723. else
  7724.   if test "$ac_cv_type_void_p" = yes; then
  7725.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7726. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7727. as_fn_error 77 "cannot compute sizeof (void *)
  7728. See \`config.log' for more details" "$LINENO" 5; }
  7729.   else
  7730.     ac_cv_sizeof_void_p=0
  7731.   fi
  7732. fi
  7733.  
  7734. fi
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  7736. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  7737.  
  7738.  
  7739.  
  7740. cat >>confdefs.h <<_ACEOF
  7741. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  7742. _ACEOF
  7743.  
  7744.  
  7745.  
  7746.  
  7747. # Check whether --enable-static was given.
  7748. if test "${enable_static+set}" = set; then :
  7749.  enableval=$enable_static; case "${enableval}" in
  7750.  yes)
  7751.    LDFLAGS="${LDFLAGS} -static"
  7752.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static linking is possible" >&5
  7753. $as_echo_n "checking if static linking is possible... " >&6; }
  7754.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7755. /* end confdefs.h.  */
  7756.  
  7757. int
  7758. main ()
  7759. {
  7760.  
  7761.  ;
  7762.  return 0;
  7763. }
  7764. _ACEOF
  7765. if ac_fn_c_try_link "$LINENO"; then :
  7766.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7767. $as_echo "yes" >&6; }
  7768.        static_linking=yes
  7769. else
  7770.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7771. $as_echo "no" >&6; }
  7772.        static_linking=no
  7773. fi
  7774. rm -f core conftest.err conftest.$ac_objext \
  7775.    conftest$ac_exeext conftest.$ac_ext
  7776.      if test "x$static_linking" = "xno"; then
  7777.        as_fn_error $? "static linking is not possible on this system" "$LINENO" 5
  7778.      fi
  7779.    ;;
  7780.  no) ;;
  7781.  *) as_fn_error $? "bad value ${enableval} for --enable-static" "$LINENO" 5 ;;
  7782. esac
  7783. fi
  7784.  
  7785.  
  7786. # Check whether --enable-server was given.
  7787. if test "${enable_server+set}" = set; then :
  7788.  enableval=$enable_server; case "${enableval}" in
  7789.  yes) server=yes ;;
  7790.  no)  server=no ;;
  7791.  *) as_fn_error $? "bad value ${enableval} for --enable-server" "$LINENO" 5 ;;
  7792. esac
  7793. else
  7794.  server=no
  7795. fi
  7796.  
  7797. if test "x$server" = "xyes"; then
  7798.  SERVER_TRUE=
  7799.  SERVER_FALSE='#'
  7800. else
  7801.  SERVER_TRUE='#'
  7802.  SERVER_FALSE=
  7803. fi
  7804.  
  7805.  
  7806. # Check whether --enable-proxy was given.
  7807. if test "${enable_proxy+set}" = set; then :
  7808.  enableval=$enable_proxy; case "${enableval}" in
  7809.  yes) proxy=yes ;;
  7810.  no)  proxy=no ;;
  7811.  *) as_fn_error $? "bad value ${enableval} for --enable-proxy" "$LINENO" 5 ;;
  7812. esac
  7813. else
  7814.  proxy=no
  7815. fi
  7816.  
  7817. if test "x$proxy" = "xyes"; then
  7818.  PROXY_TRUE=
  7819.  PROXY_FALSE='#'
  7820. else
  7821.  PROXY_TRUE='#'
  7822.  PROXY_FALSE=
  7823. fi
  7824.  
  7825.  
  7826. # Check whether --enable-agent was given.
  7827. if test "${enable_agent+set}" = set; then :
  7828.  enableval=$enable_agent; case "${enableval}" in
  7829.  yes) agent=yes ;;
  7830.  no)  agent=no ;;
  7831.  *) as_fn_error $? "bad value ${enableval} for --enable-agent" "$LINENO" 5 ;;
  7832. esac
  7833. else
  7834.  agent=no
  7835. fi
  7836.  
  7837. if test "x$agent" = "xyes"; then
  7838.  AGENT_TRUE=
  7839.  AGENT_FALSE='#'
  7840. else
  7841.  AGENT_TRUE='#'
  7842.  AGENT_FALSE=
  7843. fi
  7844.  
  7845.  
  7846. # Check whether --enable-java was given.
  7847. if test "${enable_java+set}" = set; then :
  7848.  enableval=$enable_java; case "${enableval}" in
  7849.  yes) java=yes ;;
  7850.  no)  java=no ;;
  7851.  *) as_fn_error $? "bad value ${enableval} for --enable-java" "$LINENO" 5 ;;
  7852. esac
  7853. else
  7854.  java=no
  7855. fi
  7856.  
  7857. if test "x$java" = "xyes"; then
  7858.  JAVA_TRUE=
  7859.  JAVA_FALSE='#'
  7860. else
  7861.  JAVA_TRUE='#'
  7862.  JAVA_FALSE=
  7863. fi
  7864.  
  7865.  
  7866. # Check whether --enable-ipv6 was given.
  7867. if test "${enable_ipv6+set}" = set; then :
  7868.  enableval=$enable_ipv6; case "${enableval}" in
  7869.  yes) ipv6=yes ;;
  7870.  no)  ipv6=no ;;
  7871.  *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
  7872. esac
  7873. else
  7874.  ipv6=no
  7875. fi
  7876.  
  7877.  
  7878. if test -f src/libs/zbxcunit/zbxcunit.c; then
  7879.  ZBXCUNIT_TRUE=
  7880.  ZBXCUNIT_FALSE='#'
  7881. else
  7882.  ZBXCUNIT_TRUE='#'
  7883.  ZBXCUNIT_FALSE=
  7884. fi
  7885.  
  7886.  
  7887. have_db="no"
  7888. have_unixodbc="no"
  7889. have_web_monitoring="no"
  7890. have_jabber="no"
  7891. have_snmp="no"
  7892. have_ipmi="no"
  7893. have_ipv6="no"
  7894. have_ssh2="no"
  7895. have_tls="no"
  7896.  
  7897.  
  7898. if test "x$ipv6" = "xyes"; then
  7899.  
  7900. $as_echo "#define HAVE_IPV6 1" >>confdefs.h
  7901.  
  7902.     have_ipv6="yes"
  7903. fi
  7904.  
  7905. if test "x$server" = "xyes" || test "x$proxy" = "xyes"; then
  7906.  
  7907.     have_multirow_insert="no"
  7908.  
  7909.  
  7910.  
  7911. # Check whether --with-ibm-db2 was given.
  7912. if test "${with_ibm_db2+set}" = set; then :
  7913.  withval=$with_ibm_db2;
  7914.        if test "$withval" != "no"; then
  7915.            want_ibm_db2="yes"
  7916.            if test "$withval" != "yes"; then
  7917.                ibm_db2_include_dir="$withval/include"
  7918.                ibm_db2_lib_dir="$withval/lib"
  7919.            else
  7920.                ibm_db2_include_dir=/home/db2inst1/sqllib/include
  7921.                ibm_db2_lib_dir=/home/db2inst1/sqllib/lib
  7922.            fi
  7923.        fi
  7924.  
  7925.  
  7926. fi
  7927.  
  7928.  
  7929. # Check whether --with-ibm-db2-include was given.
  7930. if test "${with_ibm_db2_include+set}" = set; then :
  7931.  withval=$with_ibm_db2_include;
  7932.        if test "$withval" != "no"; then
  7933.            want_ibm_db2="yes"
  7934.            ibm_db2_include_dir="$withval"
  7935.        fi
  7936.  
  7937.  
  7938. fi
  7939.  
  7940.  
  7941. # Check whether --with-ibm-db2-lib was given.
  7942. if test "${with_ibm_db2_lib+set}" = set; then :
  7943.  withval=$with_ibm_db2_lib;
  7944.        if test "$withval" != "no"; then
  7945.            want_ibm_db2="yes"
  7946.            ibm_db2_lib_dir="$withval"
  7947.        fi
  7948.  
  7949.  
  7950. fi
  7951.  
  7952.  
  7953.    if test "x$want_ibm_db2" = "xyes"; then
  7954.        IBM_DB2_CPPFLAGS="-I$ibm_db2_include_dir"
  7955.        IBM_DB2_LDFLAGS="-L$ibm_db2_lib_dir"
  7956.        IBM_DB2_LIBS="-ldb2"
  7957.  
  7958.        saved_CPPFLAGS="$CPPFLAGS"
  7959.        saved_LDFLAGS="$LDFLAGS"
  7960.        saved_LIBS="$LIBS"
  7961.        CPPFLAGS="$CPPFLAGS $IBM_DB2_CPPFLAGS"
  7962.        LDFLAGS="$LDFLAGS $IBM_DB2_LDFLAGS"
  7963.        LIBS="$LIBS $IBM_DB2_LIBS"
  7964.  
  7965.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 CLI libraries" >&5
  7966. $as_echo_n "checking for IBM DB2 CLI libraries... " >&6; }
  7967.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7968. /* end confdefs.h.  */
  7969. #include <sqlcli1.h>
  7970. int
  7971. main ()
  7972. {
  7973. SQLHANDLE hdbc;
  7974.                SQLRETURN sqlr;
  7975.                sqlr = SQLDriverConnect(hdbc, 0, "", SQL_NTS, 0, 0, 0, SQL_DRIVER_NOPROMPT);
  7976.  
  7977.  ;
  7978.  return 0;
  7979. }
  7980. _ACEOF
  7981. if ac_fn_c_try_link "$LINENO"; then :
  7982.  
  7983. $as_echo "#define HAVE_IBM_DB2 1" >>confdefs.h
  7984.  
  7985.                found_ibm_db2="yes"
  7986.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7987. $as_echo "yes" >&6; }
  7988. else
  7989.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7990. $as_echo "no" >&6; }
  7991. fi
  7992. rm -f core conftest.err conftest.$ac_objext \
  7993.    conftest$ac_exeext conftest.$ac_ext
  7994.  
  7995.        CPPFLAGS="$saved_CPPFLAGS"
  7996.        LDFLAGS="$saved_LDFLAGS"
  7997.        LIBS="$saved_LIBS"
  7998.    fi
  7999.  
  8000.     if test "x$want_ibm_db2" = "xyes"; then
  8001.         if test "x$have_db" != "xno"; then
  8002.             as_fn_error $? "You can configure for only one database." "$LINENO" 5
  8003.         fi
  8004.  
  8005.         if test "x$found_ibm_db2" = "xyes"; then
  8006.             have_db="IBM DB2"
  8007.             have_multirow_insert="yes"
  8008.         else
  8009.             as_fn_error $? "IBM DB2 library not found" "$LINENO" 5
  8010.         fi
  8011.     fi
  8012.  
  8013.  
  8014.    MYSQL_CONFIG="no"
  8015.  
  8016.  
  8017. # Check whether --with-mysql was given.
  8018. if test "${with_mysql+set}" = set; then :
  8019.  withval=$with_mysql;
  8020.        if test "$withval" = "no"; then
  8021.            want_mysql="no"
  8022.        elif test "$withval" = "yes"; then
  8023.            want_mysql="yes"
  8024.        else
  8025.            want_mysql="yes"
  8026.            MYSQL_CONFIG="$withval"
  8027.        fi
  8028.  
  8029. else
  8030.  want_mysql="no"
  8031.  
  8032. fi
  8033.  
  8034.  
  8035.    MYSQL_CFLAGS=""
  8036.    MYSQL_LDFLAGS=""
  8037.    MYSQL_LIBS=""
  8038.    MYSQL_VERSION=""
  8039.  
  8040.  
  8041.    if test "$want_mysql" = "yes"; then
  8042.  
  8043.        # Extract the first word of "mysql_config", so it can be a program name with args.
  8044. set dummy mysql_config; ac_word=$2
  8045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8046. $as_echo_n "checking for $ac_word... " >&6; }
  8047. if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
  8048.  $as_echo_n "(cached) " >&6
  8049. else
  8050.  case $MYSQL_CONFIG in
  8051.  [\\/]* | ?:[\\/]*)
  8052.  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
  8053.  ;;
  8054.  *)
  8055.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8056. for as_dir in $PATH
  8057. do
  8058.  IFS=$as_save_IFS
  8059.  test -z "$as_dir" && as_dir=.
  8060.    for ac_exec_ext in '' $ac_executable_extensions; do
  8061.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8062.    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8063.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8064.    break 2
  8065.  fi
  8066. done
  8067.  done
  8068. IFS=$as_save_IFS
  8069.  
  8070.  ;;
  8071. esac
  8072. fi
  8073. MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
  8074. if test -n "$MYSQL_CONFIG"; then
  8075.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
  8076. $as_echo "$MYSQL_CONFIG" >&6; }
  8077. else
  8078.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8079. $as_echo "no" >&6; }
  8080. fi
  8081.  
  8082.  
  8083.  
  8084.        if test -x "$MYSQL_CONFIG"; then
  8085.  
  8086.            MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
  8087.  
  8088.            _full_libmysql_libs="`$MYSQL_CONFIG --libs`"
  8089.  
  8090.            for i in $_full_libmysql_libs; do
  8091.                case $i in
  8092.                    -lmysqlclient)
  8093.                        _client_lib_name="mysqlclient"
  8094.                ;;
  8095.                    -lperconaserverclient)
  8096.                        _client_lib_name="perconaserverclient"
  8097.  
  8098.                ;;
  8099.                    -lmariadbclient)
  8100.                        _client_lib_name="mariadbclient"
  8101.                ;;
  8102.                    -L*)
  8103.                        MYSQL_LDFLAGS="${MYSQL_LDFLAGS} $i"
  8104.                ;;
  8105.                esac
  8106.            done
  8107.  
  8108.            if test "x$enable_static" = "xyes"; then
  8109.               for i in $_full_libmysql_libs; do
  8110.                   case $i in
  8111.                   -lmysqlclient|-lperconaserverclient|-lmariadbclient)
  8112.                 ;;
  8113.                      -l*)
  8114.                 _lib_name="`echo "$i" | cut -b3-`"
  8115.                 as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name''_main" | $as_tr_sh`
  8116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name" >&5
  8117. $as_echo_n "checking for main in -l$_lib_name... " >&6; }
  8118. if eval \${$as_ac_Lib+:} false; then :
  8119.  $as_echo_n "(cached) " >&6
  8120. else
  8121.  ac_check_lib_save_LIBS=$LIBS
  8122. LIBS="-l$_lib_name  $LIBS"
  8123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8124. /* end confdefs.h.  */
  8125.  
  8126.  
  8127. int
  8128. main ()
  8129. {
  8130. return main ();
  8131.  ;
  8132.  return 0;
  8133. }
  8134. _ACEOF
  8135. if ac_fn_c_try_link "$LINENO"; then :
  8136.  eval "$as_ac_Lib=yes"
  8137. else
  8138.  eval "$as_ac_Lib=no"
  8139. fi
  8140. rm -f core conftest.err conftest.$ac_objext \
  8141.    conftest$ac_exeext conftest.$ac_ext
  8142. LIBS=$ac_check_lib_save_LIBS
  8143. fi
  8144. eval ac_res=\$$as_ac_Lib
  8145.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  8146. $as_echo "$ac_res" >&6; }
  8147. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  8148.  
  8149.                         MYSQL_LIBS="$MYSQL_LIBS $i"
  8150.  
  8151. else
  8152.  
  8153.                         as_fn_error $? "Not found $_lib_name library" "$LINENO" 5
  8154.  
  8155. fi
  8156.  
  8157.                   ;;
  8158.                   esac
  8159.               done
  8160.            fi
  8161.  
  8162.         _save_mysql_libs="${LIBS}"
  8163.         _save_mysql_ldflags="${LDFLAGS}"
  8164.         _save_mysql_cflags="${CFLAGS}"
  8165.         LIBS="${LIBS} ${MYSQL_LIBS}"
  8166.         LDFLAGS="${LDFLAGS} ${MYSQL_LDFLAGS}"
  8167.         CFLAGS="${CFLAGS} ${MYSQL_CFLAGS}"
  8168.  
  8169.         as_ac_Lib=`$as_echo "ac_cv_lib_$_client_lib_name''_main" | $as_tr_sh`
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_client_lib_name" >&5
  8171. $as_echo_n "checking for main in -l$_client_lib_name... " >&6; }
  8172. if eval \${$as_ac_Lib+:} false; then :
  8173.  $as_echo_n "(cached) " >&6
  8174. else
  8175.  ac_check_lib_save_LIBS=$LIBS
  8176. LIBS="-l$_client_lib_name  $LIBS"
  8177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8178. /* end confdefs.h.  */
  8179.  
  8180.  
  8181. int
  8182. main ()
  8183. {
  8184. return main ();
  8185.  ;
  8186.  return 0;
  8187. }
  8188. _ACEOF
  8189. if ac_fn_c_try_link "$LINENO"; then :
  8190.  eval "$as_ac_Lib=yes"
  8191. else
  8192.  eval "$as_ac_Lib=no"
  8193. fi
  8194. rm -f core conftest.err conftest.$ac_objext \
  8195.    conftest$ac_exeext conftest.$ac_ext
  8196. LIBS=$ac_check_lib_save_LIBS
  8197. fi
  8198. eval ac_res=\$$as_ac_Lib
  8199.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  8200. $as_echo "$ac_res" >&6; }
  8201. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  8202.  
  8203.             MYSQL_LIBS="-l${_client_lib_name} ${MYSQL_LIBS}"
  8204.  
  8205. else
  8206.  
  8207.             as_fn_error $? "Not found mysqlclient library" "$LINENO" 5
  8208.  
  8209. fi
  8210.  
  8211.  
  8212.         LIBS="${_save_mysql_libs}"
  8213.         LDFLAGS="${_save_mysql_ldflags}"
  8214.         CFLAGS="${_save_mysql_cflags}"
  8215.         unset _save_mysql_libs
  8216.         unset _save_mysql_ldflags
  8217.         unset _save_mysql_cflags
  8218.  
  8219.         MYSQL_VERSION=`$MYSQL_CONFIG --version`
  8220.  
  8221.  
  8222. $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
  8223.  
  8224.  
  8225.            found_mysql="yes"
  8226.        else
  8227.            found_mysql="no"
  8228.        fi
  8229.    fi
  8230.  
  8231.  
  8232.    mysql_version_req=
  8233.  
  8234.    if test "$found_mysql" = "yes" -a -n "$mysql_version_req"; then
  8235.  
  8236.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MySQL version is >= $mysql_version_req" >&5
  8237. $as_echo_n "checking if MySQL version is >= $mysql_version_req... " >&6; }
  8238.  
  8239.                        mysql_version_req_major=`expr $mysql_version_req : '\([0-9]*\)'`
  8240.        mysql_version_req_minor=`expr $mysql_version_req : '[0-9]*\.\([0-9]*\)'`
  8241.        mysql_version_req_micro=`expr $mysql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  8242.        if test "x$mysql_version_req_micro" = "x"; then
  8243.            mysql_version_req_micro="0"
  8244.        fi
  8245.  
  8246.        mysql_version_req_number=`expr $mysql_version_req_major \* 1000000 \
  8247.                                   \+ $mysql_version_req_minor \* 1000 \
  8248.                                   \+ $mysql_version_req_micro`
  8249.  
  8250.                        mysql_version_major=`expr $MYSQL_VERSION : '\([0-9]*\)'`
  8251.        mysql_version_minor=`expr $MYSQL_VERSION : '[0-9]*\.\([0-9]*\)'`
  8252.        mysql_version_micro=`expr $MYSQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  8253.        if test "x$mysql_version_micro" = "x"; then
  8254.            mysql_version_micro="0"
  8255.        fi
  8256.  
  8257.        mysql_version_number=`expr $mysql_version_major \* 1000000 \
  8258.                                   \+ $mysql_version_minor \* 1000 \
  8259.                                   \+ $mysql_version_micro`
  8260.  
  8261.        mysql_version_check=`expr $mysql_version_number \>\= $mysql_version_req_number`
  8262.        if test "$mysql_version_check" = "1"; then
  8263.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8264. $as_echo "yes" >&6; }
  8265.        else
  8266.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8267. $as_echo "no" >&6; }
  8268.        fi
  8269.    fi
  8270.  
  8271.  
  8272.  
  8273.  
  8274.  
  8275.  
  8276.     if test "x$want_mysql" = "xyes"; then
  8277.         if test "x$have_db" != "xno"; then
  8278.             as_fn_error $? "You can configure for only one database." "$LINENO" 5
  8279.         fi
  8280.  
  8281.         if test "x$found_mysql" = "xyes"; then
  8282.             have_db="MySQL"
  8283.             have_multirow_insert="yes"
  8284.         else
  8285.             as_fn_error $? "MySQL library not found" "$LINENO" 5
  8286.         fi
  8287.     fi
  8288.  
  8289.  
  8290.  
  8291. # Check whether --with-oracle was given.
  8292. if test "${with_oracle+set}" = set; then :
  8293.  withval=$with_oracle;
  8294.        if test "$withval" = "no"; then
  8295.            want_oracle_oci="no"
  8296.        elif test "$withval" = "yes"; then
  8297.            want_oracle_oci="yes"
  8298.            oracle_home_dir="$ORACLE_HOME"
  8299.        elif test -d "$withval"; then
  8300.            want_oracle_oci="yes"
  8301.            oracle_home_dir="$withval"
  8302.        else
  8303.            want_oracle_oci="yes"
  8304.            oracle_home_dir=""
  8305.        fi
  8306.  
  8307. else
  8308.  want_oracle_oci="no"
  8309.  
  8310. fi
  8311.  
  8312.  
  8313.  
  8314. # Check whether --with-oracle-include was given.
  8315. if test "${with_oracle_include+set}" = set; then :
  8316.  withval=$with_oracle_include;
  8317.        if test "$withval" != "no"; then
  8318.            want_oracle_oci="yes"
  8319.            oracle_home_include_dir="$withval"
  8320.        fi
  8321.  
  8322. else
  8323.  oracle_home_include_dir=""
  8324.  
  8325. fi
  8326.  
  8327.  
  8328. # Check whether --with-oracle-lib was given.
  8329. if test "${with_oracle_lib+set}" = set; then :
  8330.  withval=$with_oracle_lib;
  8331.        if test "$withval" != "no"; then
  8332.            want_oracle_oci="yes"
  8333.            oracle_home_lib_dir="$withval"
  8334.        fi
  8335.  
  8336. else
  8337.  oracle_home_lib_dir=""
  8338.  
  8339. fi
  8340.  
  8341.  
  8342.    ORACLE_OCI_CFLAGS=""
  8343.    ORACLE_OCI_LDFLAGS=""
  8344.    ORACLE_OCI_LIBS=""
  8345.    ORACLE_OCI_VERSION=""
  8346.  
  8347.                want_oracle_but_no_path="no"
  8348.  
  8349.    if test -n "$oracle_home_dir"; then
  8350.  
  8351.        if test "$oracle_home_dir" != "no" -a "$oracle_home_dir" != "yes"; then
  8352.  
  8353.                        oracle_include_dir="$oracle_home_dir/rdbms/public"
  8354.  
  8355.                        oracle_include_dir2="$oracle_home_dir/rdbms/demo"
  8356.  
  8357.                        oracle_lib_dir="$oracle_home_dir/lib"
  8358.        elif test "$oracle_home_dir" = "yes"; then
  8359.            want_oracle_but_no_path="yes"
  8360.        fi
  8361.  
  8362.    elif test -n "$oracle_home_include_dir" -o -n "$oracle_home_lib_dir"; then
  8363.  
  8364.        if test "$oracle_home_include_dir" != "no" -a "$oracle_home_include_dir" != "yes"; then
  8365.            oracle_include_dir="$oracle_home_include_dir"
  8366.        elif test "$oracle_home_include_dir" = "yes"; then
  8367.            want_oracle_but_no_path="yes"
  8368.        fi
  8369.  
  8370.        if test "$oracle_home_lib_dir" != "no" -a "$oracle_home_lib_dir" != "yes"; then
  8371.            oracle_lib_dir="$oracle_home_lib_dir"
  8372.        elif test "$oracle_home_lib_dir" = "yes"; then
  8373.            want_oracle_but_no_path="yes"
  8374.        fi
  8375.    fi
  8376.  
  8377.    if test "$want_oracle_but_no_path" = "yes"; then
  8378.        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oracle support is requested but no Oracle paths have been provided. \
  8379. Please, locate Oracle directories using --with-oracle or \
  8380. --with-oracle-include and --with-oracle-lib options." >&5
  8381. $as_echo "$as_me: WARNING: Oracle support is requested but no Oracle paths have been provided. \
  8382. Please, locate Oracle directories using --with-oracle or \
  8383. --with-oracle-include and --with-oracle-lib options." >&2;}
  8384.    fi
  8385.  
  8386.                if test -n "$oracle_include_dir" -a -n "$oracle_lib_dir"; then
  8387.  
  8388.        saved_CPPFLAGS="$CPPFLAGS"
  8389.        CPPFLAGS="$CPPFLAGS -I$oracle_include_dir"
  8390.  
  8391.                if test -n "$oracle_include_dir2"; then
  8392.            CPPFLAGS="$CPPFLAGS -I$oracle_include_dir2"
  8393.        fi
  8394.  
  8395.                        saved_LDFLAGS="$LDFLAGS"
  8396.        oci_ldflags="-L$oracle_lib_dir"
  8397.        LDFLAGS="$LDFLAGS $oci_ldflags"
  8398.  
  8399.        saved_LIBS="$LIBS"
  8400.        oci_libs="-lclntsh"
  8401.        LIBS="$LIBS $oci_libs"
  8402.  
  8403.                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle OCI headers in $oracle_include_dir" >&5
  8404. $as_echo_n "checking for Oracle OCI headers in $oracle_include_dir... " >&6; }
  8405.  
  8406.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8407. /* end confdefs.h.  */
  8408.  
  8409.            #include <oci.h>
  8410. int
  8411. main ()
  8412. {
  8413.  
  8414. #if defined(OCI_MAJOR_VERSION)
  8415. #if OCI_MAJOR_VERSION == 10 && OCI_MINOR_VERSION == 2
  8416. // Oracle 10.2 detected
  8417. #endif
  8418. #elif defined(OCI_V7_SYNTAX)
  8419. // OK, older Oracle detected
  8420. // TODO - mloskot: find better macro to check for older versions;
  8421. #else
  8422. #  error Oracle oci.h header not found
  8423. #endif
  8424.  
  8425.  
  8426.  ;
  8427.  return 0;
  8428. }
  8429. _ACEOF
  8430. if ac_fn_c_try_compile "$LINENO"; then :
  8431.  
  8432.            ORACLE_OCI_CFLAGS="-I$oracle_include_dir"
  8433.  
  8434.            if test -n "$oracle_include_dir2"; then
  8435.                ORACLE_OCI_CFLAGS="$ORACLE_OCI_CFLAGS -I$oracle_include_dir2"
  8436.            fi
  8437.  
  8438.            oci_header_found="yes"
  8439.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8440. $as_echo "yes" >&6; }
  8441.  
  8442. else
  8443.  
  8444.            oci_header_found="no"
  8445.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  8446. $as_echo "not found" >&6; }
  8447.  
  8448.  
  8449. fi
  8450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8451.  
  8452.                                oracle_version_req=10.0
  8453.  
  8454.        if test "$oci_header_found" = "yes"; then
  8455.  
  8456.            oracle_version_major=`cat $oracle_include_dir/oci.h \
  8457.                                 | grep '#define.*OCI_MAJOR_VERSION.*' \
  8458.                                 | sed -e 's/#define OCI_MAJOR_VERSION  *//' \
  8459.                                 | sed -e 's/  *\/\*.*\*\///'`
  8460.  
  8461.            oracle_version_minor=`cat $oracle_include_dir/oci.h \
  8462.                                 | grep '#define.*OCI_MINOR_VERSION.*' \
  8463.                                 | sed -e 's/#define OCI_MINOR_VERSION  *//' \
  8464.                                 | sed -e 's/  *\/\*.*\*\///'`
  8465.  
  8466.                        oracle_version_number=`expr $oracle_version_major \* 1000000 \
  8467.                                  \+ $oracle_version_minor \* 1000`
  8468.  
  8469.  
  8470.            if test -n "$oracle_version_req"; then
  8471.                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Oracle OCI version is >= $oracle_version_req" >&5
  8472. $as_echo_n "checking if Oracle OCI version is >= $oracle_version_req... " >&6; }
  8473.  
  8474.                if test -n "$oracle_version_major" -a -n $"oracle_version_minor"; then
  8475.  
  8476.                    ORACLE_OCI_VERSION="$oracle_version_major.$oracle_version_minor"
  8477.  
  8478.                                                            oracle_version_req_major=`expr $oracle_version_req : '\([0-9]*\)'`
  8479.                    oracle_version_req_minor=`expr $oracle_version_req : '[0-9]*\.\([0-9]*\)'`
  8480.  
  8481.                    oracle_version_req_number=`expr $oracle_version_req_major \* 1000000 \
  8482.                                               \+ $oracle_version_req_minor \* 1000`
  8483.  
  8484.                    oracle_version_check=`expr $oracle_version_number \>\= $oracle_version_req_number`
  8485.                    if test "$oracle_version_check" = "1"; then
  8486.  
  8487.                        oracle_version_checked="yes"
  8488.                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8489. $as_echo "yes" >&6; }
  8490.  
  8491.                    else
  8492.                        oracle_version_checked="no"
  8493.                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8494. $as_echo "no" >&6; }
  8495.                        as_fn_error $? "Oracle $ORACLE_OCI_VERSION found, but required version is $oracle_version_req" "$LINENO" 5
  8496.                    fi
  8497.                else
  8498.                    ORACLE_OCI_VERSION="UNKNOWN"
  8499.                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8500. $as_echo "no" >&6; }
  8501.                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oracle version unknown, probably OCI older than 10.2 is available" >&5
  8502. $as_echo "$as_me: WARNING: Oracle version unknown, probably OCI older than 10.2 is available" >&2;}
  8503.                fi
  8504.            fi
  8505.  
  8506.                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle OCI version >= 10.x to use -lnnz1x flag" >&5
  8507. $as_echo_n "checking for Oracle OCI version >= 10.x to use -lnnz1x flag... " >&6; }
  8508.            oracle_nnz1x_flag=`expr $oracle_version_number / 1000000`
  8509.            if test "$oracle_nnz1x_flag" -ge 10; then
  8510.                oci_libs="$oci_libs -lnnz$oracle_nnz1x_flag"
  8511.                LIBS="$LIBS -lnnz$oracle_nnz1x_flag"
  8512.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lnnz$oracle_nnz1x_flag" >&5
  8513. $as_echo "-lnnz$oracle_nnz1x_flag" >&6; }
  8514.            else
  8515.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8516. $as_echo "no" >&6; }
  8517.            fi
  8518.        fi
  8519.  
  8520.                                if test "$oci_header_found" = "yes"; then
  8521.  
  8522.            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle OCI libraries in $oracle_lib_dir" >&5
  8523. $as_echo_n "checking for Oracle OCI libraries in $oracle_lib_dir... " >&6; }
  8524.  
  8525.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8526. /* end confdefs.h.  */
  8527.  
  8528.                #include <oci.h>
  8529. int
  8530. main ()
  8531. {
  8532.  
  8533. OCIEnv* envh = 0;
  8534. OCIEnvNlsCreate(&envh, OCI_DEFAULT, 0, 0, 0, 0, 0, 0, 0, 0);
  8535. if (envh) OCIHandleFree(envh, OCI_HTYPE_ENV);
  8536.  
  8537.  
  8538.  ;
  8539.  return 0;
  8540. }
  8541. _ACEOF
  8542. if ac_fn_c_try_link "$LINENO"; then :
  8543.  
  8544.                ORACLE_OCI_LDFLAGS="$oci_ldflags"
  8545.                ORACLE_OCI_LIBS="$oci_libs"
  8546.                oci_lib_found="yes"
  8547.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8548. $as_echo "yes" >&6; }
  8549.  
  8550. else
  8551.  
  8552.                oci_lib_found="no"
  8553.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  8554. $as_echo "not found" >&6; }
  8555.  
  8556.  
  8557. fi
  8558. rm -f core conftest.err conftest.$ac_objext \
  8559.    conftest$ac_exeext conftest.$ac_ext
  8560.        fi
  8561.  
  8562.        CPPFLAGS="$saved_CPPFLAGS"
  8563.        LDFLAGS="$saved_LDFLAGS"
  8564.        LIBS="$saved_LIBS"
  8565.    fi
  8566.  
  8567.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle support" >&5
  8568. $as_echo_n "checking for Oracle support... " >&6; }
  8569.  
  8570.    if test "$oci_header_found" = "yes" -a "$oci_lib_found" = "yes"; then
  8571.  
  8572.  
  8573.  
  8574.  
  8575.  
  8576.  
  8577.        HAVE_ORACLE_OCI="yes"
  8578.    else
  8579.        HAVE_ORACLE_OCI="no"
  8580.    fi
  8581.  
  8582.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ORACLE_OCI" >&5
  8583. $as_echo "$HAVE_ORACLE_OCI" >&6; }
  8584.  
  8585.     if test "x$want_oracle_oci" = "xyes"; then
  8586.         if test "x$have_db" != "xno"; then
  8587.             as_fn_error $? "You can configure for only one database." "$LINENO" 5
  8588.         fi
  8589.  
  8590.         if test "x$HAVE_ORACLE_OCI" = "xyes"; then
  8591.             have_db="Oracle"
  8592.  
  8593.             ORACLE_CPPFLAGS="$ORACLE_OCI_CFLAGS"
  8594.             ORACLE_LDFLAGS="$ORACLE_OCI_LDFLAGS"
  8595.             ORACLE_LIBS="$ORACLE_OCI_LIBS"
  8596.  
  8597.  
  8598. $as_echo "#define HAVE_ORACLE 1" >>confdefs.h
  8599.  
  8600.         else
  8601.             as_fn_error $? "Oracle OCI library not found" "$LINENO" 5
  8602.         fi
  8603.     fi
  8604.  
  8605.  
  8606.    PG_CONFIG="no"
  8607.  
  8608.  
  8609. # Check whether --with-postgresql was given.
  8610. if test "${with_postgresql+set}" = set; then :
  8611.  withval=$with_postgresql;
  8612.        if test "x$withval" = "xno"; then
  8613.            want_postgresql="no"
  8614.        elif test "x$withval" = "xyes"; then
  8615.            want_postgresql="yes"
  8616.        else
  8617.            want_postgresql="yes"
  8618.            PG_CONFIG="$withval"
  8619.        fi
  8620.  
  8621. else
  8622.  want_postgresql="no"
  8623.  
  8624. fi
  8625.  
  8626.  
  8627.    POSTGRESQL_CFLAGS=""
  8628.    POSTGRESQL_LDFLAGS=""
  8629.    POSTGRESQL_LIBS=""
  8630.    POSTGRESQL_VERSION=""
  8631.  
  8632.  
  8633.    if test "x$want_postgresql" = "xyes"; then
  8634.        # Extract the first word of "pg_config", so it can be a program name with args.
  8635. set dummy pg_config; ac_word=$2
  8636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8637. $as_echo_n "checking for $ac_word... " >&6; }
  8638. if ${ac_cv_path_PG_CONFIG+:} false; then :
  8639.  $as_echo_n "(cached) " >&6
  8640. else
  8641.  case $PG_CONFIG in
  8642.  [\\/]* | ?:[\\/]*)
  8643.  ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  8644.  ;;
  8645.  *)
  8646.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8647. for as_dir in $PATH
  8648. do
  8649.  IFS=$as_save_IFS
  8650.  test -z "$as_dir" && as_dir=.
  8651.    for ac_exec_ext in '' $ac_executable_extensions; do
  8652.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8653.    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8654.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8655.    break 2
  8656.  fi
  8657. done
  8658.  done
  8659. IFS=$as_save_IFS
  8660.  
  8661.  ;;
  8662. esac
  8663. fi
  8664. PG_CONFIG=$ac_cv_path_PG_CONFIG
  8665. if test -n "$PG_CONFIG"; then
  8666.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  8667. $as_echo "$PG_CONFIG" >&6; }
  8668. else
  8669.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8670. $as_echo "no" >&6; }
  8671. fi
  8672.  
  8673.  
  8674.  
  8675.        if test -x "$PG_CONFIG"; then
  8676.            POSTGRESQL_CFLAGS="`$PG_CONFIG --includedir`"
  8677.            if test -n "$POSTGRESQL_CFLAGS"; then
  8678.                POSTGRESQL_CFLAGS="-I$POSTGRESQL_CFLAGS";
  8679.            fi
  8680.            POSTGRESQL_LDFLAGS="`$PG_CONFIG --libdir`"
  8681.            if test -n "$POSTGRESQL_LDFLAGS"; then
  8682.                POSTGRESQL_LDFLAGS="-L$POSTGRESQL_LDFLAGS";
  8683.            fi
  8684.            POSTGRESQL_LIBS="-lpq"
  8685.  
  8686.            _save_postgresql_cflags="${CFLAGS}"
  8687.            _save_postgresql_ldflags="${LDFLAGS}"
  8688.            _save_postgresql_libs="${LIBS}"
  8689.            CFLAGS="${CFLAGS} ${POSTGRESQL_CFLAGS}"
  8690.            LDFLAGS="${LDFLAGS} ${POSTGRESQL_LDFLAGS}"
  8691.            LIBS="${LIBS} ${POSTGRESQL_LIBS}"
  8692.  
  8693.            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries" >&5
  8694. $as_echo_n "checking for PostgreSQL libraries... " >&6; }
  8695.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8696. /* end confdefs.h.  */
  8697.  
  8698. #include <libpq-fe.h>
  8699.  
  8700. int
  8701. main ()
  8702. {
  8703.  
  8704. PGconn  *conn;
  8705. conn = PQsetdbLogin(NULL, NULL, NULL, NULL, NULL, NULL, NULL);
  8706.  
  8707.  ;
  8708.  return 0;
  8709. }
  8710. _ACEOF
  8711. if ac_fn_c_try_link "$LINENO"; then :
  8712.  
  8713. $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
  8714.  
  8715.            found_postgresql="yes"
  8716.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8717. $as_echo "yes" >&6; }
  8718. else
  8719.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8720. $as_echo "no" >&6; }
  8721. fi
  8722. rm -f core conftest.err conftest.$ac_objext \
  8723.    conftest$ac_exeext conftest.$ac_ext
  8724.  
  8725.            CFLAGS="${_save_postgresql_cflags}"
  8726.            LDFLAGS="${_save_postgresql_ldflags}"
  8727.            LIBS="${_save_postgresql_libs}"
  8728.            unset _save_postgresql_cflags
  8729.            unset _save_postgresql_ldflags
  8730.            unset _save_postgresql_libs
  8731.  
  8732.            if test "x$found_postgresql" = "xyes"; then
  8733.                POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'`
  8734.            fi
  8735.        fi
  8736.    fi
  8737.  
  8738.  
  8739.    postgresql_version_req="8.1"
  8740.  
  8741.    if test "x$found_postgresql" = "xyes" -a -n "$postgresql_version_req"; then
  8742.  
  8743.                        postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([0-9]*\)'`
  8744.        postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[0-9]*\.\([0-9]*\)'`
  8745.        postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  8746.        if test "x$postgresql_version_minor" = "x"; then
  8747.            postgresql_version_minor="0"
  8748.        fi
  8749.        if test "x$postgresql_version_micro" = "x"; then
  8750.            postgresql_version_micro="0"
  8751.        fi
  8752.  
  8753.        postgresql_version_number=`expr $postgresql_version_major \* 1000000 \
  8754.                                   \+ $postgresql_version_minor \* 1000 \
  8755.                                   \+ $postgresql_version_micro`
  8756.  
  8757.        if test -n "$postgresql_version_req"; then
  8758.  
  8759.            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PostgreSQL version is >= $postgresql_version_req" >&5
  8760. $as_echo_n "checking if PostgreSQL version is >= $postgresql_version_req... " >&6; }
  8761.  
  8762.                                    postgresql_version_req_major=`expr $postgresql_version_req : '\([0-9]*\)'`
  8763.            postgresql_version_req_minor=`expr $postgresql_version_req : '[0-9]*\.\([0-9]*\)'`
  8764.            postgresql_version_req_micro=`expr $postgresql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  8765.            if test "x$postgresql_version_req_micro" = "x"; then
  8766.                postgresql_version_req_micro="0"
  8767.            fi
  8768.  
  8769.            postgresql_version_req_number=`expr $postgresql_version_req_major \* 1000000 \
  8770.                                       \+ $postgresql_version_req_minor \* 1000 \
  8771.                                       \+ $postgresql_version_req_micro`
  8772.  
  8773.            postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number`
  8774.            if test "$postgresql_version_check" = "1"; then
  8775.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8776. $as_echo "yes" >&6; }
  8777.            else
  8778.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8779. $as_echo "no" >&6; }
  8780.            fi
  8781.  
  8782.     fi
  8783.  
  8784.    fi
  8785.  
  8786.  
  8787.  
  8788.  
  8789.  
  8790.  
  8791.     if test "x$want_postgresql" = "xyes"; then
  8792.         if test "x$have_db" != "xno"; then
  8793.             as_fn_error $? "You can configure for only one database." "$LINENO" 5
  8794.         fi
  8795.  
  8796.         if test "x$found_postgresql" = "xyes"; then
  8797.             if test "$postgresql_version_check" != "1"; then
  8798.                 as_fn_error $? "PostgreSQL version mismatch" "$LINENO" 5
  8799.             fi
  8800.  
  8801.             have_db="PostgreSQL"
  8802.  
  8803.             if test "$postgresql_version_number" -ge 8002000; then
  8804.                 have_multirow_insert="yes"
  8805.             fi
  8806.  
  8807.         else
  8808.             as_fn_error $? "PostgreSQL library not found" "$LINENO" 5
  8809.         fi
  8810.     fi
  8811.  
  8812.  
  8813.  
  8814. # Check whether --with-sqlite3 was given.
  8815. if test "${with_sqlite3+set}" = set; then :
  8816.  withval=$with_sqlite3;
  8817.        if test "$withval" = "no"; then
  8818.            want_sqlite3="no"
  8819.        elif test "$withval" = "yes"; then
  8820.            want_sqlite3="yes"
  8821.            ac_sqlite3_path=""
  8822.        else
  8823.            want_sqlite3="yes"
  8824.            ac_sqlite3_path="$withval"
  8825.        fi
  8826.  
  8827. else
  8828.  want_sqlite3="no"
  8829.  
  8830. fi
  8831.  
  8832.  
  8833.    SQLITE3_CFLAGS=""
  8834.    SQLITE3_LDFLAGS=""
  8835.    SQLITE3_LIBS=""
  8836.    SQLITE3_VERSION=""
  8837.  
  8838.    if test "x$want_sqlite3" = "xyes"; then
  8839.  
  8840.        ac_sqlite3_header="sqlite3.h"
  8841.  
  8842.        sqlite3_version_req=3.0.0
  8843.        sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
  8844.        sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
  8845.        sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
  8846.        sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  8847.        if test "x$sqlite3_version_req_micro" = "x" ; then
  8848.            sqlite3_version_req_micro="0"
  8849.        fi
  8850.  
  8851.        sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
  8852.                                   \+ $sqlite3_version_req_minor \* 1000 \
  8853.                                   \+ $sqlite3_version_req_micro`
  8854.  
  8855.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
  8856. $as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
  8857.  
  8858.        if test "$ac_sqlite3_path" != ""; then
  8859.            ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
  8860.            ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
  8861.        else
  8862.            for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
  8863.                if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
  8864.                    && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
  8865.                    ac_sqlite3_path=$ac_sqlite3_path_tmp
  8866.                    ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
  8867.                    ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
  8868.                    break;
  8869.                fi
  8870.            done
  8871.        fi
  8872.  
  8873.        saved_CPPFLAGS="$CPPFLAGS"
  8874.        CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
  8875.  
  8876.        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8877. /* end confdefs.h.  */
  8878.  
  8879.            #include <sqlite3.h>
  8880. int
  8881. main ()
  8882. {
  8883.  
  8884. #if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
  8885. // Everything is okay
  8886. #else
  8887. #  error SQLite version is too old
  8888. #endif
  8889.  
  8890.  
  8891.  ;
  8892.  return 0;
  8893. }
  8894.  
  8895. _ACEOF
  8896. if ac_fn_c_try_compile "$LINENO"; then :
  8897.  
  8898.            found_sqlite3="yes"
  8899.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8900. $as_echo "yes" >&6; }
  8901.  
  8902. else
  8903.  
  8904.            found_sqlite3="no"
  8905.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8906. $as_echo "no" >&6; }
  8907.  
  8908.  
  8909. fi
  8910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8911.  
  8912.        CPPFLAGS="$saved_CPPFLAGS"
  8913.  
  8914.        if test "$found_sqlite3" = "yes"; then
  8915.  
  8916.            SQLITE3_CPPFLAGS="$ac_sqlite3_cppflags"
  8917.            SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
  8918.            SQLITE3_LIBS="-lsqlite3"
  8919.  
  8920.            ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
  8921.  
  8922.                        if test "x$ac_sqlite3_header_path" != "x"; then
  8923.                ac_sqlite3_version=`cat $ac_sqlite3_header_path \
  8924.                    | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
  8925.                        | sed -e 's/"//'`
  8926.                if test $ac_sqlite3_version != ""; then
  8927.                    SQLITE3_VERSION=$ac_sqlite3_version
  8928.                else
  8929.                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
  8930. $as_echo "$as_me: WARNING: Can not find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
  8931.                fi
  8932.            fi
  8933.  
  8934.  
  8935.  
  8936.  
  8937.  
  8938.  
  8939. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  8940.  
  8941.        fi
  8942.    fi
  8943.  
  8944.     if test "x$want_sqlite3" = "xyes"; then
  8945.         if test "x$server" = "xyes"; then
  8946.             as_fn_error $? "SQLite is not supported as a main Zabbix database backend." "$LINENO" 5
  8947.         fi
  8948.  
  8949.         if test "x$have_db" != "xno"; then
  8950.             as_fn_error $? "You can configure for only one database." "$LINENO" 5
  8951.         fi
  8952.  
  8953.         if test "x$found_sqlite3" = "xyes"; then
  8954.             have_db="SQLite v3.x"
  8955.  
  8956.             saved_CPPFLAGS="$CPPFLAGS"
  8957.             saved_LDFLAGS="$LDFLAGS"
  8958.  
  8959.             CPPFLAGS="$CPPFLAGS $SQLITE3_CPPFLAGS"
  8960.             LDFLAGS="$LDFLAGS $SQLITE3_LDFLAGS $SQLITE3_LIBS"
  8961.  
  8962.             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function sqlite3_open_v2() in sqlite3.h" >&5
  8963. $as_echo_n "checking for function sqlite3_open_v2() in sqlite3.h... " >&6; }
  8964.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8965. /* end confdefs.h.  */
  8966. #include <sqlite3.h>
  8967. int
  8968. main ()
  8969. {
  8970. sqlite3 *conn = 0;
  8971.                 sqlite3_open_v2("dbname", &conn, SQLITE_OPEN_READWRITE, 0);
  8972.  
  8973.  ;
  8974.  return 0;
  8975. }
  8976. _ACEOF
  8977. if ac_fn_c_try_link "$LINENO"; then :
  8978.  
  8979. $as_echo "#define HAVE_FUNCTION_SQLITE3_OPEN_V2 1" >>confdefs.h
  8980.  
  8981.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8982. $as_echo "yes" >&6; }
  8983. else
  8984.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8985. $as_echo "no" >&6; }
  8986. fi
  8987. rm -f core conftest.err conftest.$ac_objext \
  8988.    conftest$ac_exeext conftest.$ac_ext
  8989.  
  8990.             CPPFLAGS="$saved_CPPFLAGS"
  8991.             LDFLAGS="$saved_LDFLAGS"
  8992.         else
  8993.             as_fn_error $? "SQLite3 library not found" "$LINENO" 5
  8994.         fi
  8995.     fi
  8996.  
  8997.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zabbix server/proxy database selection" >&5
  8998. $as_echo_n "checking for Zabbix server/proxy database selection... " >&6; }
  8999.     if test "x$have_db" = "xno"; then
  9000.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
  9001. $as_echo "error" >&6; }
  9002.         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
  9003.     else
  9004.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  9005. $as_echo "ok" >&6; }
  9006.     fi
  9007.  
  9008.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multirow insert statements" >&5
  9009. $as_echo_n "checking for multirow insert statements... " >&6; }
  9010.     if test "x$have_multirow_insert" = "xyes"; then
  9011.  
  9012. $as_echo "#define HAVE_MULTIROW_INSERT 1" >>confdefs.h
  9013.  
  9014.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9015. $as_echo "yes" >&6; }
  9016.     else
  9017.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9018. $as_echo "no" >&6; }
  9019.     fi
  9020.  
  9021.     DB_CFLAGS="$IBM_DB2_CPPFLAGS $MYSQL_CFLAGS $ORACLE_CPPFLAGS $POSTGRESQL_CFLAGS $SQLITE3_CPPFLAGS"
  9022.     DB_LDFLAGS="$IBM_DB2_LDFLAGS $MYSQL_LDFLAGS $ORACLE_LDFLAGS $POSTGRESQL_LDFLAGS $SQLITE3_LDFLAGS"
  9023.     DB_LIBS="$IBM_DB2_LIBS $MYSQL_LIBS $ORACLE_LIBS $POSTGRESQL_LIBS $SQLITE3_LIBS"
  9024.  
  9025.  
  9026.  
  9027.  
  9028.  
  9029.     SERVER_LDFLAGS="${SERVER_LDFLAGS} ${DB_LDFLAGS}"
  9030.     SERVER_LIBS="${SERVER_LIBS} ${DB_LIBS}"
  9031.  
  9032.     PROXY_LDFLAGS="${PROXY_LDFLAGS} ${DB_LDFLAGS}"
  9033.     PROXY_LIBS="${PROXY_LIBS} ${DB_LIBS}"
  9034.  
  9035.  
  9036.  
  9037.  
  9038.  
  9039.  
  9040.  
  9041.  
  9042. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  9043.     if test -n "$ac_tool_prefix"; then
  9044.  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  9045. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9047. $as_echo_n "checking for $ac_word... " >&6; }
  9048. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  9049.  $as_echo_n "(cached) " >&6
  9050. else
  9051.  case $PKG_CONFIG in
  9052.  [\\/]* | ?:[\\/]*)
  9053.  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9054.  ;;
  9055.  *)
  9056.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9057. for as_dir in $PATH
  9058. do
  9059.  IFS=$as_save_IFS
  9060.  test -z "$as_dir" && as_dir=.
  9061.    for ac_exec_ext in '' $ac_executable_extensions; do
  9062.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9063.    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9064.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9065.    break 2
  9066.  fi
  9067. done
  9068.  done
  9069. IFS=$as_save_IFS
  9070.  
  9071.  ;;
  9072. esac
  9073. fi
  9074. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9075. if test -n "$PKG_CONFIG"; then
  9076.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9077. $as_echo "$PKG_CONFIG" >&6; }
  9078. else
  9079.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9080. $as_echo "no" >&6; }
  9081. fi
  9082.  
  9083.  
  9084. fi
  9085. if test -z "$ac_cv_path_PKG_CONFIG"; then
  9086.  ac_pt_PKG_CONFIG=$PKG_CONFIG
  9087.  # Extract the first word of "pkg-config", so it can be a program name with args.
  9088. set dummy pkg-config; ac_word=$2
  9089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9090. $as_echo_n "checking for $ac_word... " >&6; }
  9091. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  9092.  $as_echo_n "(cached) " >&6
  9093. else
  9094.  case $ac_pt_PKG_CONFIG in
  9095.  [\\/]* | ?:[\\/]*)
  9096.  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  9097.  ;;
  9098.  *)
  9099.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9100. for as_dir in $PATH
  9101. do
  9102.  IFS=$as_save_IFS
  9103.  test -z "$as_dir" && as_dir=.
  9104.    for ac_exec_ext in '' $ac_executable_extensions; do
  9105.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9106.    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9107.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9108.    break 2
  9109.  fi
  9110. done
  9111.  done
  9112. IFS=$as_save_IFS
  9113.  
  9114.  ;;
  9115. esac
  9116. fi
  9117. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  9118. if test -n "$ac_pt_PKG_CONFIG"; then
  9119.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  9120. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  9121. else
  9122.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9123. $as_echo "no" >&6; }
  9124. fi
  9125.  
  9126.  if test "x$ac_pt_PKG_CONFIG" = x; then
  9127.    PKG_CONFIG=""
  9128.  else
  9129.    case $cross_compiling:$ac_tool_warned in
  9130. yes:)
  9131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9132. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9133. ac_tool_warned=yes ;;
  9134. esac
  9135.    PKG_CONFIG=$ac_pt_PKG_CONFIG
  9136.  fi
  9137. else
  9138.  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  9139. fi
  9140.  
  9141. fi
  9142. if test -n "$PKG_CONFIG"; then
  9143.     _pkg_min_version=0.9.0
  9144.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  9145. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  9146.     if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  9147.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9148. $as_echo "yes" >&6; }
  9149.     else
  9150.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9151. $as_echo "no" >&6; }
  9152.         PKG_CONFIG=""
  9153.     fi
  9154. fi
  9155.  
  9156.  
  9157. # Check whether --with-jabber was given.
  9158. if test "${with_jabber+set}" = set; then :
  9159.  withval=$with_jabber;
  9160.     if test "$withval" = "no"; then
  9161.            want_jabber="no"
  9162.            _libiksemel_with="no"
  9163.        elif test "$withval" = "yes"; then
  9164.            want_jabber="yes"
  9165.            _libiksemel_with="yes"
  9166.        else
  9167.            want_jabber="yes"
  9168.            _libiksemel_with=$withval
  9169.        fi
  9170.  
  9171. else
  9172.  _libiksemel_with=no
  9173. fi
  9174.  
  9175.  
  9176.  if test "x$_libiksemel_with" != x"no"; then
  9177.       if test "$_libiksemel_with" = "yes"; then
  9178.  
  9179. pkg_failed=no
  9180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IKSEMEL" >&5
  9181. $as_echo_n "checking for IKSEMEL... " >&6; }
  9182.  
  9183. if test -n "$IKSEMEL_CFLAGS"; then
  9184.    pkg_cv_IKSEMEL_CFLAGS="$IKSEMEL_CFLAGS"
  9185. elif test -n "$PKG_CONFIG"; then
  9186.    if test -n "$PKG_CONFIG" && \
  9187.    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iksemel\""; } >&5
  9188.  ($PKG_CONFIG --exists --print-errors "iksemel") 2>&5
  9189.  ac_status=$?
  9190.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9191.  test $ac_status = 0; }; then
  9192.  pkg_cv_IKSEMEL_CFLAGS=`$PKG_CONFIG --cflags "iksemel" 2>/dev/null`
  9193.               test "x$?" != "x0" && pkg_failed=yes
  9194. else
  9195.  pkg_failed=yes
  9196. fi
  9197. else
  9198.    pkg_failed=untried
  9199. fi
  9200. if test -n "$IKSEMEL_LIBS"; then
  9201.    pkg_cv_IKSEMEL_LIBS="$IKSEMEL_LIBS"
  9202. elif test -n "$PKG_CONFIG"; then
  9203.    if test -n "$PKG_CONFIG" && \
  9204.    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iksemel\""; } >&5
  9205.  ($PKG_CONFIG --exists --print-errors "iksemel") 2>&5
  9206.  ac_status=$?
  9207.  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9208.  test $ac_status = 0; }; then
  9209.  pkg_cv_IKSEMEL_LIBS=`$PKG_CONFIG --libs "iksemel" 2>/dev/null`
  9210.               test "x$?" != "x0" && pkg_failed=yes
  9211. else
  9212.  pkg_failed=yes
  9213. fi
  9214. else
  9215.    pkg_failed=untried
  9216. fi
  9217.  
  9218.  
  9219.  
  9220. if test $pkg_failed = yes; then
  9221.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9222. $as_echo "no" >&6; }
  9223.  
  9224. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9225.        _pkg_short_errors_supported=yes
  9226. else
  9227.        _pkg_short_errors_supported=no
  9228. fi
  9229.        if test $_pkg_short_errors_supported = yes; then
  9230.             IKSEMEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "iksemel" 2>&1`
  9231.        else
  9232.             IKSEMEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "iksemel" 2>&1`
  9233.        fi
  9234.     # Put the nasty error message in config.log where it belongs
  9235.     echo "$IKSEMEL_PKG_ERRORS" >&5
  9236.  
  9237.  
  9238.              found_iksemel="no"
  9239.              found_jabber="no"
  9240.  
  9241. elif test $pkg_failed = untried; then
  9242.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9243. $as_echo "no" >&6; }
  9244.  
  9245.              found_iksemel="no"
  9246.              found_jabber="no"
  9247.  
  9248. else
  9249.     IKSEMEL_CFLAGS=$pkg_cv_IKSEMEL_CFLAGS
  9250.     IKSEMEL_LIBS=$pkg_cv_IKSEMEL_LIBS
  9251.        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9252. $as_echo "yes" >&6; }
  9253.  
  9254.              JABBER_INCDIR="$IKSEMEL_CPPFLAGS"
  9255.              JABBER_LIBDIR="$IKSEMEL_LDFLAGS"
  9256.              JABBER_LIBS="-liksemel"
  9257.  
  9258. fi
  9259.       else
  9260.            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iksemel support" >&5
  9261. $as_echo_n "checking for iksemel support... " >&6; }
  9262.  
  9263.               if test -f $_libiksemel_with/include/iksemel.h; then
  9264.                       JABBER_INCDIR="-I$_libiksemel_with/include"
  9265.                       JABBER_LIBDIR="-L$_libiksemel_with/lib"
  9266.                       JABBER_LIBS="-liksemel"
  9267.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9268. $as_echo "yes" >&6; }
  9269.               else
  9270.                       found_iksemel="no"
  9271.                       found_jabber="no"
  9272.                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9273. $as_echo "no" >&6; }
  9274.               fi
  9275.       fi
  9276.  
  9277.       if test "x$found_iksemel" != "xno" ; then
  9278.  
  9279.               for ac_func in getaddrinfo
  9280. do :
  9281.  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  9282. if test "x$ac_cv_func_getaddrinfo" = xyes; then :
  9283.  cat >>confdefs.h <<_ACEOF
  9284. #define HAVE_GETADDRINFO 1
  9285. _ACEOF
  9286.  
  9287. fi
  9288. done
  9289.  
  9290.  
  9291.               JABBER_CPPFLAGS=$JABBER_INCDIR
  9292.               JABBER_LDFLAGS="$JABBER_LIBDIR"
  9293.  
  9294.         if test "x$enable_static" = "xyes"; then
  9295.             for i in -liksemel -lgnutls -ltasn1 -lgcrypt -lgpg-error; do
  9296.                 case $i in
  9297.                     -liksemel)
  9298.                 ;;
  9299.                     -l*)
  9300.                         _lib_name=`echo "$i" | cut -b3-`
  9301.                         as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name ''_main" | $as_tr_sh`
  9302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name " >&5
  9303. $as_echo_n "checking for main in -l$_lib_name ... " >&6; }
  9304. if eval \${$as_ac_Lib+:} false; then :
  9305.  $as_echo_n "(cached) " >&6
  9306. else
  9307.  ac_check_lib_save_LIBS=$LIBS
  9308. LIBS="-l$_lib_name   $LIBS"
  9309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9310. /* end confdefs.h.  */
  9311.  
  9312.  
  9313. int
  9314. main ()
  9315. {
  9316. return main ();
  9317.  ;
  9318.  return 0;
  9319. }
  9320. _ACEOF
  9321. if ac_fn_c_try_link "$LINENO"; then :
  9322.  eval "$as_ac_Lib=yes"
  9323. else
  9324.  eval "$as_ac_Lib=no"
  9325. fi
  9326. rm -f core conftest.err conftest.$ac_objext \
  9327.    conftest$ac_exeext conftest.$ac_ext
  9328. LIBS=$ac_check_lib_save_LIBS
  9329. fi
  9330. eval ac_res=\$$as_ac_Lib
  9331.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9332. $as_echo "$ac_res" >&6; }
  9333. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  9334.  
  9335.                             JABBER_LIBS="$JABBER_LIBS $i"
  9336.  
  9337. else
  9338.  
  9339.                             as_fn_error $? "Not found $_lib_name library" "$LINENO" 5
  9340.  
  9341. fi
  9342.  
  9343.                 ;;
  9344.                 esac
  9345.             done
  9346.         fi
  9347.  
  9348.               found_iksemel="yes"
  9349.               found_jabber="yes"
  9350.  
  9351. $as_echo "#define HAVE_IKSEMEL 1" >>confdefs.h
  9352.  
  9353.  
  9354. $as_echo "#define HAVE_JABBER 1" >>confdefs.h
  9355.  
  9356.       fi
  9357.  fi
  9358.  
  9359.  
  9360.  
  9361.  
  9362.  
  9363.  unset _libiksemel_with
  9364.  
  9365.     if test "x$want_jabber" = "xyes"; then
  9366.         if test "x$found_jabber" != "xyes"; then
  9367.             as_fn_error $? "Jabber library not found" "$LINENO" 5
  9368.         else
  9369.             have_jabber="yes"
  9370.         fi
  9371.     fi
  9372.     SERVER_LDFLAGS="$SERVER_LDFLAGS $JABBER_LDFLAGS"
  9373.     SERVER_LIBS="$SERVER_LIBS $JABBER_LIBS"
  9374.  
  9375.  
  9376.  
  9377.  
  9378.    LIBXML2_CONFIG="no"
  9379.  
  9380.  
  9381. # Check whether --with-libxml2 was given.
  9382. if test "${with_libxml2+set}" = set; then :
  9383.  withval=$with_libxml2;
  9384.        if test "$withval" = "no"; then
  9385.            want_libxml2="no"
  9386.        elif test "$withval" = "yes"; then
  9387.            want_libxml2="yes"
  9388.        else
  9389.            want_libxml2="yes"
  9390.            LIBXML2_CONFIG="$withval"
  9391.        fi
  9392.  
  9393. else
  9394.  want_libxml2="no"
  9395.  
  9396. fi
  9397.  
  9398.  
  9399.    LIBXML2_CFLAGS=""
  9400.    LIBXML2_LDFLAGS=""
  9401.    LIBXML2_LIBS=""
  9402.    LIBXML2_VERSION=""
  9403.  
  9404.  
  9405.    if test "$want_libxml2" = "yes"; then
  9406.  
  9407.        # Extract the first word of "xml2-config", so it can be a program name with args.
  9408. set dummy xml2-config; ac_word=$2
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9410. $as_echo_n "checking for $ac_word... " >&6; }
  9411. if ${ac_cv_path_LIBXML2_CONFIG+:} false; then :
  9412.  $as_echo_n "(cached) " >&6
  9413. else
  9414.  case $LIBXML2_CONFIG in
  9415.  [\\/]* | ?:[\\/]*)
  9416.  ac_cv_path_LIBXML2_CONFIG="$LIBXML2_CONFIG" # Let the user override the test with a path.
  9417.  ;;
  9418.  *)
  9419.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9420. for as_dir in $PATH
  9421. do
  9422.  IFS=$as_save_IFS
  9423.  test -z "$as_dir" && as_dir=.
  9424.    for ac_exec_ext in '' $ac_executable_extensions; do
  9425.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9426.    ac_cv_path_LIBXML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9427.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9428.    break 2
  9429.  fi
  9430. done
  9431.  done
  9432. IFS=$as_save_IFS
  9433.  
  9434.  ;;
  9435. esac
  9436. fi
  9437. LIBXML2_CONFIG=$ac_cv_path_LIBXML2_CONFIG
  9438. if test -n "$LIBXML2_CONFIG"; then
  9439.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CONFIG" >&5
  9440. $as_echo "$LIBXML2_CONFIG" >&6; }
  9441. else
  9442.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9443. $as_echo "no" >&6; }
  9444. fi
  9445.  
  9446.  
  9447.  
  9448.        if test -x "$LIBXML2_CONFIG"; then
  9449.  
  9450.            LIBXML2_CFLAGS="`$LIBXML2_CONFIG --cflags`"
  9451.  
  9452.            _full_libxml2_libs="`$LIBXML2_CONFIG --libs`"
  9453.  
  9454.            for i in $_full_libxml2_libs; do
  9455.                case $i in
  9456.                   -lxml2)
  9457.                        ;;
  9458.                   -L*)
  9459.                        LIBXML2_LDFLAGS="${LIBXML2_LDFLAGS} $i"
  9460.                        ;;
  9461.                esac
  9462.            done
  9463.  
  9464.            if test "x$enable_static" = "xyes"; then
  9465.                for i in $_full_libxml2_libs; do
  9466.                    case $i in
  9467.                        -lxml2)
  9468.                            ;;
  9469.                        -l*)
  9470.                            _lib_name="`echo "$i" | cut -b3-`"
  9471.                            as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name''_main" | $as_tr_sh`
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name" >&5
  9473. $as_echo_n "checking for main in -l$_lib_name... " >&6; }
  9474. if eval \${$as_ac_Lib+:} false; then :
  9475.  $as_echo_n "(cached) " >&6
  9476. else
  9477.  ac_check_lib_save_LIBS=$LIBS
  9478. LIBS="-l$_lib_name  $LIBS"
  9479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9480. /* end confdefs.h.  */
  9481.  
  9482.  
  9483. int
  9484. main ()
  9485. {
  9486. return main ();
  9487.  ;
  9488.  return 0;
  9489. }
  9490. _ACEOF
  9491. if ac_fn_c_try_link "$LINENO"; then :
  9492.  eval "$as_ac_Lib=yes"
  9493. else
  9494.  eval "$as_ac_Lib=no"
  9495. fi
  9496. rm -f core conftest.err conftest.$ac_objext \
  9497.    conftest$ac_exeext conftest.$ac_ext
  9498. LIBS=$ac_check_lib_save_LIBS
  9499. fi
  9500. eval ac_res=\$$as_ac_Lib
  9501.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9502. $as_echo "$ac_res" >&6; }
  9503. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  9504.  
  9505.                                    LIBXML2_LIBS="$LIBXML2_LIBS $i"
  9506.  
  9507. else
  9508.  
  9509.                                    as_fn_error $? "Not found $_lib_name library" "$LINENO" 5
  9510.  
  9511. fi
  9512.  
  9513.                            ;;
  9514.                    esac
  9515.                done
  9516.            fi
  9517.  
  9518.            _save_libxml2_libs="${LIBS}"
  9519.            _save_libxml2_ldflags="${LDFLAGS}"
  9520.            _save_libxml2_cflags="${CFLAGS}"
  9521.            LIBS="${LIBS} ${LIBXML2_LIBS}"
  9522.            LDFLAGS="${LDFLAGS} ${LIBXML2_LDFLAGS}"
  9523.            CFLAGS="${CFLAGS} ${LIBXML2_CFLAGS}"
  9524.  
  9525.            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
  9526. $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
  9527. if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
  9528.  $as_echo_n "(cached) " >&6
  9529. else
  9530.  ac_check_lib_save_LIBS=$LIBS
  9531. LIBS="-lxml2  $LIBS"
  9532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9533. /* end confdefs.h.  */
  9534.  
  9535. /* Override any GCC internal prototype to avoid an error.
  9536.   Use char because int might match the return type of a GCC
  9537.   builtin and then its argument prototype would still apply.  */
  9538. #ifdef __cplusplus
  9539. extern "C"
  9540. #endif
  9541. char xmlReadMemory ();
  9542. int
  9543. main ()
  9544. {
  9545. return xmlReadMemory ();
  9546.  ;
  9547.  return 0;
  9548. }
  9549. _ACEOF
  9550. if ac_fn_c_try_link "$LINENO"; then :
  9551.  ac_cv_lib_xml2_xmlReadMemory=yes
  9552. else
  9553.  ac_cv_lib_xml2_xmlReadMemory=no
  9554. fi
  9555. rm -f core conftest.err conftest.$ac_objext \
  9556.    conftest$ac_exeext conftest.$ac_ext
  9557. LIBS=$ac_check_lib_save_LIBS
  9558. fi
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
  9560. $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
  9561. if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
  9562.  
  9563.                    LIBXML2_LIBS="-lxml2 ${LIBXML2_LIBS}"
  9564.  
  9565. else
  9566.  
  9567.                    as_fn_error $? "Not found libxml2 library" "$LINENO" 5
  9568.  
  9569. fi
  9570.  
  9571.  
  9572.            LIBS="${_save_libxml2_libs}"
  9573.            LDFLAGS="${_save_libxml2_ldflags}"
  9574.            CFLAGS="${_save_libxml2_cflags}"
  9575.            unset _save_libxml2_libs
  9576.            unset _save_libxml2_ldflags
  9577.            unset _save_libxml2_cflags
  9578.  
  9579.            LIBXML2_VERSION=`$LIBXML2_CONFIG --version`
  9580.  
  9581.  
  9582. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  9583.  
  9584.  
  9585.            found_libxml2="yes"
  9586.        else
  9587.            found_libxml2="no"
  9588.        fi
  9589.    fi
  9590.  
  9591.  
  9592.  
  9593.  
  9594.  
  9595.  
  9596.     if test "x$want_libxml2" = "xyes"; then
  9597.         if test "x$found_libxml2" != "xyes"; then
  9598.             as_fn_error $? "LIBXML2 library not found" "$LINENO" 5
  9599.         else
  9600.             have_libxml2="yes"
  9601.         fi
  9602.     fi
  9603.     SERVER_LDFLAGS="$SERVER_LDFLAGS $LIBXML2_LDFLAGS"
  9604.     SERVER_LIBS="$SERVER_LIBS $LIBXML2_LIBS"
  9605.  
  9606.     PROXY_LDFLAGS="$PROXY_LDFLAGS $LIBXML2_LDFLAGS"
  9607.     PROXY_LIBS="$PROXY_LIBS $LIBXML2_LIBS"
  9608.  
  9609.  
  9610.  
  9611.  
  9612.  
  9613. # Check whether --with-unixodbc was given.
  9614. if test "${with_unixodbc+set}" = set; then :
  9615.  withval=$with_unixodbc;  if test "x$withval" = "xno"; then
  9616.            want_unixodbc="no"
  9617.        elif test "x$withval" = "xyes"; then
  9618.            want_unixodbc="yes"
  9619.        else
  9620.            want_unixodbc="yes"
  9621.            specified_unixodbc="yes"
  9622.            ODBC_CONFIG=$withval
  9623.        fi
  9624.  
  9625. else
  9626.  want_unixodbc=no
  9627. fi
  9628.  
  9629.  
  9630.  if test "x$want_unixodbc" != "xno"; then
  9631.     # Extract the first word of "odbc_config", so it can be a program name with args.
  9632. set dummy odbc_config; ac_word=$2
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9634. $as_echo_n "checking for $ac_word... " >&6; }
  9635. if ${ac_cv_path_ODBC_CONFIG+:} false; then :
  9636.  $as_echo_n "(cached) " >&6
  9637. else
  9638.  case $ODBC_CONFIG in
  9639.  [\\/]* | ?:[\\/]*)
  9640.  ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
  9641.  ;;
  9642.  *)
  9643.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9644. for as_dir in $PATH
  9645. do
  9646.  IFS=$as_save_IFS
  9647.  test -z "$as_dir" && as_dir=.
  9648.    for ac_exec_ext in '' $ac_executable_extensions; do
  9649.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9650.    ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9651.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9652.    break 2
  9653.  fi
  9654. done
  9655.  done
  9656. IFS=$as_save_IFS
  9657.  
  9658.  ;;
  9659. esac
  9660. fi
  9661. ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
  9662. if test -n "$ODBC_CONFIG"; then
  9663.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5
  9664. $as_echo "$ODBC_CONFIG" >&6; }
  9665. else
  9666.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9667. $as_echo "no" >&6; }
  9668. fi
  9669.  
  9670.  
  9671.  
  9672.     unixodbc_error=""
  9673.  
  9674.     UNIXODBC_LIBS="-lodbc"
  9675.  
  9676.     if test -x "$ODBC_CONFIG"; then
  9677.         UNIXODBC_CFLAGS="-I`$ODBC_CONFIG --include-prefix`"
  9678.         UNIXODBC_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`"
  9679.     elif test "x$specified_unixodbc" = "xyes"; then
  9680.         unixodbc_error="file $ODBC_CONFIG not found or not executable"
  9681.     fi
  9682.  
  9683.     if test "x$unixodbc_error" = "x"; then
  9684.         _save_unixodbc_cflags="${CFLAGS}"
  9685.         _save_unixodbc_ldflags="${LDFLAGS}"
  9686.         _save_unixodbc_libs="${LIBS}"
  9687.         CFLAGS="${CFLAGS} ${UNIXODBC_CFLAGS}"
  9688.         LDFLAGS="${LDFLAGS} ${UNIXODBC_LDFLAGS}"
  9689.         LIBS="${LIBS} ${UNIXODBC_LIBS}"
  9690.  
  9691.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5
  9692. $as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; }
  9693. if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then :
  9694.  $as_echo_n "(cached) " >&6
  9695. else
  9696.  ac_check_lib_save_LIBS=$LIBS
  9697. LIBS="-lodbc  $LIBS"
  9698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9699. /* end confdefs.h.  */
  9700.  
  9701. /* Override any GCC internal prototype to avoid an error.
  9702.   Use char because int might match the return type of a GCC
  9703.   builtin and then its argument prototype would still apply.  */
  9704. #ifdef __cplusplus
  9705. extern "C"
  9706. #endif
  9707. char SQLAllocHandle ();
  9708. int
  9709. main ()
  9710. {
  9711. return SQLAllocHandle ();
  9712.  ;
  9713.  return 0;
  9714. }
  9715. _ACEOF
  9716. if ac_fn_c_try_link "$LINENO"; then :
  9717.  ac_cv_lib_odbc_SQLAllocHandle=yes
  9718. else
  9719.  ac_cv_lib_odbc_SQLAllocHandle=no
  9720. fi
  9721. rm -f core conftest.err conftest.$ac_objext \
  9722.    conftest$ac_exeext conftest.$ac_ext
  9723. LIBS=$ac_check_lib_save_LIBS
  9724. fi
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5
  9726. $as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; }
  9727. if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then :
  9728.  cat >>confdefs.h <<_ACEOF
  9729. #define HAVE_LIBODBC 1
  9730. _ACEOF
  9731.  
  9732.  LIBS="-lodbc $LIBS"
  9733.  
  9734. else
  9735.  unixodbc_error="unixODBC library not found"
  9736. fi
  9737.  
  9738.  
  9739.         if test "x$unixodbc_error" = "x"; then
  9740.  
  9741. $as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h
  9742.  
  9743.         fi
  9744.  
  9745.         CFLAGS="${_save_unixodbc_cflags}"
  9746.         LDFLAGS="${_save_unixodbc_ldflags}"
  9747.         LIBS="${_save_unixodbc_libs}"
  9748.     fi
  9749.  fi
  9750.  
  9751.  
  9752.  
  9753.  
  9754.  
  9755.  
  9756.     if test "x$want_unixodbc" = "xyes"; then
  9757.         if test "x$unixodbc_error" != "x"; then
  9758.             as_fn_error $? "$unixodbc_error" "$LINENO" 5
  9759.         fi
  9760.         have_unixodbc="yes"
  9761.     fi
  9762.     SERVER_LDFLAGS="$SERVER_LDFLAGS $UNIXODBC_LDFLAGS"
  9763.     SERVER_LIBS="$SERVER_LIBS $UNIXODBC_LIBS"
  9764.  
  9765.     PROXY_LDFLAGS="$PROXY_LDFLAGS $UNIXODBC_LDFLAGS"
  9766.     PROXY_LIBS="$PROXY_LIBS $UNIXODBC_LIBS"
  9767.  
  9768.  
  9769.  
  9770.  
  9771.  _libnetsnmp_config="no"
  9772.  
  9773.  
  9774. # Check whether --with-net-snmp was given.
  9775. if test "${with_net_snmp+set}" = set; then :
  9776.  withval=$with_net_snmp;  if test "$withval" = "no"; then
  9777.            want_netsnmp="no"
  9778.        elif test "$withval" = "yes"; then
  9779.            want_netsnmp="yes"
  9780.        else
  9781.            want_netsnmp="yes"
  9782.            _libnetsnmp_config=$withval
  9783.        fi
  9784.  
  9785. else
  9786.  want_netsnmp=no
  9787. fi
  9788.  
  9789.  
  9790.  SNMP_CFLAGS=""
  9791.  SNMP_LDFLAGS=""
  9792.  SNMP_LIBS=""
  9793.  
  9794.  if test "x$want_netsnmp" != "xno"; then
  9795.  
  9796.        # Extract the first word of "net-snmp-config", so it can be a program name with args.
  9797. set dummy net-snmp-config; ac_word=$2
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9799. $as_echo_n "checking for $ac_word... " >&6; }
  9800. if ${ac_cv_path__libnetsnmp_config+:} false; then :
  9801.  $as_echo_n "(cached) " >&6
  9802. else
  9803.  case $_libnetsnmp_config in
  9804.  [\\/]* | ?:[\\/]*)
  9805.  ac_cv_path__libnetsnmp_config="$_libnetsnmp_config" # Let the user override the test with a path.
  9806.  ;;
  9807.  *)
  9808.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9809. for as_dir in $PATH
  9810. do
  9811.  IFS=$as_save_IFS
  9812.  test -z "$as_dir" && as_dir=.
  9813.    for ac_exec_ext in '' $ac_executable_extensions; do
  9814.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9815.    ac_cv_path__libnetsnmp_config="$as_dir/$ac_word$ac_exec_ext"
  9816.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9817.    break 2
  9818.  fi
  9819. done
  9820.  done
  9821. IFS=$as_save_IFS
  9822.  
  9823.  ;;
  9824. esac
  9825. fi
  9826. _libnetsnmp_config=$ac_cv_path__libnetsnmp_config
  9827. if test -n "$_libnetsnmp_config"; then
  9828.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libnetsnmp_config" >&5
  9829. $as_echo "$_libnetsnmp_config" >&6; }
  9830. else
  9831.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9832. $as_echo "no" >&6; }
  9833. fi
  9834.  
  9835.  
  9836.  
  9837.     if test -x "$_libnetsnmp_config"; then
  9838.  
  9839.         _full_libnetsnmp_cflags="`$_libnetsnmp_config --cflags`"
  9840.         for i in $_full_libnetsnmp_cflags; do
  9841.             case $i in
  9842.                 -I*)
  9843.                     SNMP_CFLAGS="$SNMP_CFLAGS $i"
  9844.  
  9845.             ;;
  9846.             esac
  9847.         done
  9848.  
  9849.         _full_libnetsnmp_libs="`$_libnetsnmp_config --netsnmp-libs`"
  9850.         for i in $_full_libnetsnmp_libs; do
  9851.             case $i in
  9852.                 -L*)
  9853.                     SNMP_LDFLAGS="${SNMP_LDFLAGS} $i"
  9854.             ;;
  9855.                 -l*)
  9856.                     SNMP_LIBS="${SNMP_LIBS} $i"
  9857.             ;;
  9858.             esac
  9859.         done
  9860.  
  9861.         if test "x$enable_static" = "xyes"; then
  9862.             _full_libnetsnmp_libs="`$_libnetsnmp_config --libs`"
  9863.             for i in $_full_libnetsnmp_libs; do
  9864.                 case $i in
  9865.                     -lnetsnmp)
  9866.                 ;;
  9867.                     -l*)
  9868.                         _lib_name="`echo "$i" | cut -b3-`"
  9869.                         as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name''_main" | $as_tr_sh`
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name" >&5
  9871. $as_echo_n "checking for main in -l$_lib_name... " >&6; }
  9872. if eval \${$as_ac_Lib+:} false; then :
  9873.  $as_echo_n "(cached) " >&6
  9874. else
  9875.  ac_check_lib_save_LIBS=$LIBS
  9876. LIBS="-l$_lib_name  $LIBS"
  9877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9878. /* end confdefs.h.  */
  9879.  
  9880.  
  9881. int
  9882. main ()
  9883. {
  9884. return main ();
  9885.  ;
  9886.  return 0;
  9887. }
  9888. _ACEOF
  9889. if ac_fn_c_try_link "$LINENO"; then :
  9890.  eval "$as_ac_Lib=yes"
  9891. else
  9892.  eval "$as_ac_Lib=no"
  9893. fi
  9894. rm -f core conftest.err conftest.$ac_objext \
  9895.    conftest$ac_exeext conftest.$ac_ext
  9896. LIBS=$ac_check_lib_save_LIBS
  9897. fi
  9898. eval ac_res=\$$as_ac_Lib
  9899.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9900. $as_echo "$ac_res" >&6; }
  9901. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  9902.  
  9903.                                 SNMP_LIBS="$SNMP_LIBS $i"
  9904.  
  9905. else
  9906.  
  9907.                                 as_fn_error $? "Not found $_lib_name library" "$LINENO" 5
  9908.  
  9909. fi
  9910.  
  9911.  
  9912.                 ;;
  9913.                 esac
  9914.             done
  9915.         fi
  9916.  
  9917.         _save_netsnmp_cflags="$CFLAGS"
  9918.         _save_netsnmp_ldflags="$LDFLAGS"
  9919.         _save_netsnmp_libs="$LIBS"
  9920.         CFLAGS="$CFLAGS $SNMP_CFLAGS"
  9921.         LDFLAGS="$LDFLAGS $SNMP_LDFLAGS"
  9922.         LIBS="$LIBS $SNMP_LIBS"
  9923.  
  9924.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnetsnmp" >&5
  9925. $as_echo_n "checking for main in -lnetsnmp... " >&6; }
  9926. if ${ac_cv_lib_netsnmp_main+:} false; then :
  9927.  $as_echo_n "(cached) " >&6
  9928. else
  9929.  ac_check_lib_save_LIBS=$LIBS
  9930. LIBS="-lnetsnmp  $LIBS"
  9931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9932. /* end confdefs.h.  */
  9933.  
  9934.  
  9935. int
  9936. main ()
  9937. {
  9938. return main ();
  9939.  ;
  9940.  return 0;
  9941. }
  9942. _ACEOF
  9943. if ac_fn_c_try_link "$LINENO"; then :
  9944.  ac_cv_lib_netsnmp_main=yes
  9945. else
  9946.  ac_cv_lib_netsnmp_main=no
  9947. fi
  9948. rm -f core conftest.err conftest.$ac_objext \
  9949.    conftest$ac_exeext conftest.$ac_ext
  9950. LIBS=$ac_check_lib_save_LIBS
  9951. fi
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_main" >&5
  9953. $as_echo "$ac_cv_lib_netsnmp_main" >&6; }
  9954. if test "x$ac_cv_lib_netsnmp_main" = xyes; then :
  9955.  cat >>confdefs.h <<_ACEOF
  9956. #define HAVE_LIBNETSNMP 1
  9957. _ACEOF
  9958.  
  9959.  LIBS="-lnetsnmp $LIBS"
  9960.  
  9961. else
  9962.  as_fn_error $? "Not found Net-SNMP library" "$LINENO" 5
  9963. fi
  9964.  
  9965.  
  9966.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for localname in struct snmp_session" >&5
  9967. $as_echo_n "checking for localname in struct snmp_session... " >&6; }
  9968.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9969. /* end confdefs.h.  */
  9970.  
  9971. #include <net-snmp/net-snmp-config.h>
  9972. #include <net-snmp/net-snmp-includes.h>
  9973. int
  9974. main ()
  9975. {
  9976.  
  9977. struct snmp_session session;
  9978. session.localname = "";
  9979.  
  9980.  ;
  9981.  return 0;
  9982. }
  9983. _ACEOF
  9984. if ac_fn_c_try_compile "$LINENO"; then :
  9985.  
  9986. $as_echo "#define HAVE_NETSNMP_SESSION_LOCALNAME 1" >>confdefs.h
  9987.  
  9988.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9989. $as_echo "yes" >&6; }
  9990. else
  9991.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9992. $as_echo "no" >&6; }
  9993. fi
  9994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9995.  
  9996.         CFLAGS="$_save_netsnmp_cflags"
  9997.         LDFLAGS="$_save_netsnmp_ldflags"
  9998.         LIBS="$_save_netsnmp_libs"
  9999.         unset _save_netsnmp_cflags
  10000.         unset _save_netsnmp_ldflags
  10001.         unset _save_netsnmp_libs
  10002.  
  10003.  
  10004. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  10005.  
  10006.  
  10007.         found_netsnmp="yes"
  10008.     else
  10009.         found_netsnmp="no"
  10010.     fi
  10011.  fi
  10012.  
  10013.  
  10014.  
  10015.  
  10016.  
  10017.     if test "x$want_netsnmp" = "xyes"; then
  10018.         if test "x$found_netsnmp" != "xyes"; then
  10019.             as_fn_error $? "Invalid Net-SNMP directory - unable to find net-snmp-config" "$LINENO" 5
  10020.         else
  10021.             have_snmp="yes"
  10022.         fi
  10023.     fi
  10024.     SERVER_LDFLAGS="$SERVER_LDFLAGS $SNMP_LDFLAGS"
  10025.     SERVER_LIBS="$SERVER_LIBS $SNMP_LIBS"
  10026.  
  10027.     PROXY_LDFLAGS="$PROXY_LDFLAGS $SNMP_LDFLAGS"
  10028.     PROXY_LIBS="$PROXY_LIBS $SNMP_LIBS"
  10029.  
  10030.  
  10031.  
  10032.  
  10033.  
  10034. # Check whether --with-ssh2 was given.
  10035. if test "${with_ssh2+set}" = set; then :
  10036.  withval=$with_ssh2;
  10037.     if test "$withval" = "no"; then
  10038.         want_ssh2="no"
  10039.         _libssh2_dir="no"
  10040.     elif test "$withval" = "yes"; then
  10041.         want_ssh2="yes"
  10042.         _libssh2_dir="no"
  10043.     else
  10044.         want_ssh2="yes"
  10045.         _libssh2_dir=$withval
  10046.     fi
  10047.     accept_ssh2_version="no"
  10048.  
  10049. else
  10050.  want_ssh2=no
  10051.  
  10052. fi
  10053.  
  10054.  
  10055.  if test "x$want_ssh2" = "xyes"; then
  10056.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSH2 support" >&5
  10057. $as_echo_n "checking for SSH2 support... " >&6; }
  10058.     if test "x$_libssh2_dir" = "xno"; then
  10059.       if test -f /usr/include/libssh2.h; then
  10060.         SSH2_CFLAGS=-I/usr/include
  10061.         SSH2_LDFLAGS=-L/usr/lib
  10062.         SSH2_LIBS="-lssh2"
  10063.         found_ssh2="yes"
  10064.  
  10065.     # Zabbix minimal major supported version of libssh2:
  10066.     minimal_libssh2_major_version=1
  10067.  
  10068.     # get the major version
  10069.     found_ssh2_version_major=`cat /usr/include/libssh2.h | $EGREP \#define.*LIBSSH2_VERSION_MAJOR | $AWK '{print $3;}'`
  10070.  
  10071.     accept_ssh2_version="no"
  10072.  
  10073.     if test $found_ssh2_version_major -ge $minimal_libssh2_major_version; then
  10074.         accept_ssh2_version="yes"
  10075.     fi;
  10076.  
  10077.       elif test -f /usr/local/include/libssh2.h; then
  10078.         SSH2_CFLAGS=-I/usr/local/include
  10079.         SSH2_LDFLAGS=-L/usr/local/lib
  10080.         SSH2_LIBS="-lssh2"
  10081.         found_ssh2="yes"
  10082.  
  10083.     # Zabbix minimal major supported version of libssh2:
  10084.     minimal_libssh2_major_version=1
  10085.  
  10086.     # get the major version
  10087.     found_ssh2_version_major=`cat /usr/local/include/libssh2.h | $EGREP \#define.*LIBSSH2_VERSION_MAJOR | $AWK '{print $3;}'`
  10088.  
  10089.     accept_ssh2_version="no"
  10090.  
  10091.     if test $found_ssh2_version_major -ge $minimal_libssh2_major_version; then
  10092.         accept_ssh2_version="yes"
  10093.     fi;
  10094.  
  10095.       else #libraries are not found in default directories
  10096.         found_ssh2="no"
  10097.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10098. $as_echo "no" >&6; }
  10099.       fi # test -f /usr/include/libssh2.h; then
  10100.     else # test "x$_libssh2_dir" = "xno"; then
  10101.       if test -f $_libssh2_dir/include/libssh2.h; then
  10102.      SSH2_CFLAGS=-I$_libssh2_dir/include
  10103.         SSH2_LDFLAGS=-L$_libssh2_dir/lib
  10104.         SSH2_LIBS="-lssh2"
  10105.         found_ssh2="yes"
  10106.  
  10107.     # Zabbix minimal major supported version of libssh2:
  10108.     minimal_libssh2_major_version=1
  10109.  
  10110.     # get the major version
  10111.     found_ssh2_version_major=`cat $_libssh2_dir/include/libssh2.h | $EGREP \#define.*LIBSSH2_VERSION_MAJOR | $AWK '{print $3;}'`
  10112.  
  10113.     accept_ssh2_version="no"
  10114.  
  10115.     if test $found_ssh2_version_major -ge $minimal_libssh2_major_version; then
  10116.         accept_ssh2_version="yes"
  10117.     fi;
  10118.  
  10119.       else #if test -f $_libssh2_dir/include/libssh2.h; then
  10120.         found_ssh2="no"
  10121.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10122. $as_echo "no" >&6; }
  10123.       fi #test -f $_libssh2_dir/include/libssh2.h; then
  10124.     fi #if test "x$_libssh2_dir" = "xno"; then
  10125.  fi # if test "x$want_ssh2" != "xno"; then
  10126.  
  10127.  if test "x$found_ssh2" = "xyes"; then
  10128.    am_save_cflags="$CFLAGS"
  10129.    am_save_ldflags="$LDFLAGS"
  10130.    am_save_libs="$LIBS"
  10131.  
  10132.    CFLAGS="$CFLAGS $SSH2_CFLAGS"
  10133.    LDFLAGS="$LDFLAGS $SSH2_LDFLAGS"
  10134.    LIBS="$LIBS $SSH2_LIBS"
  10135.  
  10136.    found_ssh2="no"
  10137.  
  10138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10139. /* end confdefs.h.  */
  10140.  
  10141. #include <libssh2.h>
  10142.  
  10143. int
  10144. main ()
  10145. {
  10146.  
  10147.     LIBSSH2_SESSION *session;
  10148.     session = libssh2_session_init();
  10149.  
  10150.  ;
  10151.  return 0;
  10152. }
  10153. _ACEOF
  10154. if ac_fn_c_try_link "$LINENO"; then :
  10155.  found_ssh2="yes"
  10156. fi
  10157. rm -f core conftest.err conftest.$ac_objext \
  10158.    conftest$ac_exeext conftest.$ac_ext
  10159.  
  10160.  
  10161.    CFLAGS="$am_save_cflags"
  10162.    LDFLAGS="$am_save_ldflags"
  10163.    LIBS="$am_save_libs"
  10164.  
  10165.    if test "x$found_ssh2" = "xyes"; then
  10166.  
  10167. $as_echo "#define HAVE_SSH2 1" >>confdefs.h
  10168.  
  10169.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10170. $as_echo "yes" >&6; }
  10171.    else
  10172.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10173. $as_echo "no" >&6; }
  10174.      SSH2_CFLAGS=""
  10175.      SSH2_LDFLAGS=""
  10176.      SSH2_LIBS=""
  10177.    fi
  10178.  fi
  10179.  
  10180.  
  10181.  
  10182.  
  10183.  
  10184.  
  10185.     if test "x$want_ssh2" = "xyes"; then
  10186.         if test "x$found_ssh2" != "xyes"; then
  10187.             as_fn_error $? "SSH2 library not found" "$LINENO" 5
  10188.         elif test "x$accept_ssh2_version" != "xyes"; then
  10189.             as_fn_error $? "SSH2 library version requirement not met (>= 1.0.0)" "$LINENO" 5
  10190.         else
  10191.             have_ssh2="yes"
  10192.         fi
  10193.     fi
  10194.     SERVER_LDFLAGS="$SERVER_LDFLAGS $SSH2_LDFLAGS"
  10195.     SERVER_LIBS="$SERVER_LIBS $SSH2_LIBS"
  10196.  
  10197.     PROXY_LDFLAGS="$PROXY_LDFLAGS $SSH2_LDFLAGS"
  10198.     PROXY_LIBS="$PROXY_LIBS $SSH2_LIBS"
  10199.  
  10200.  
  10201.  
  10202.     found_openipmi="no"
  10203.  
  10204.  
  10205. # Check whether --with-openipmi was given.
  10206. if test "${with_openipmi+set}" = set; then :
  10207.  withval=$with_openipmi;  if test "$withval" = "no"; then
  10208.            want_openipmi="no"
  10209.            _libopenipmi_with="no"
  10210.        elif test "$withval" = "yes"; then
  10211.            want_openipmi="yes"
  10212.            _libopenipmi_with="yes"
  10213.        else
  10214.            want_openipmi="yes"
  10215.            _libopenipmi_with=$withval
  10216.        fi
  10217.  
  10218. else
  10219.  _libopenipmi_with=no
  10220. fi
  10221.  
  10222.  
  10223.  if test "x$_libopenipmi_with" != x"no"; then
  10224.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENIPMI support" >&5
  10225. $as_echo_n "checking for OPENIPMI support... " >&6; }
  10226.  
  10227.       if test "$_libopenipmi_with" = "yes"; then
  10228.               if test -f /usr/local/include/OpenIPMI/ipmiif.h; then
  10229.                       OPENIPMI_INCDIR=/usr/local/include
  10230.                       OPENIPMI_LIBDIR=/usr/local/lib
  10231.                found_openipmi="yes"
  10232.               elif test -f /usr/include/OpenIPMI/ipmiif.h; then
  10233.                       OPENIPMI_INCDIR=/usr/include
  10234.                       OPENIPMI_LIBDIR=/usr/lib
  10235.                found_openipmi="yes"
  10236.               else
  10237.                       found_openipmi="no"
  10238.                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10239. $as_echo "no" >&6; }
  10240.               fi
  10241.       else
  10242.               if test -f $_libopenipmi_with/include/OpenIPMI/ipmiif.h; then
  10243.                       OPENIPMI_INCDIR=$_libopenipmi_with/include
  10244.                       OPENIPMI_LIBDIR=$_libopenipmi_with/lib
  10245.                found_openipmi="yes"
  10246.               else
  10247.                       found_openipmi="no"
  10248.                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10249. $as_echo "no" >&6; }
  10250.               fi
  10251.       fi
  10252.  
  10253.       if test "x$found_openipmi" != "xno" ; then
  10254.               OPENIPMI_CFLAGS="-I$OPENIPMI_INCDIR"
  10255.               OPENIPMI_LDFLAGS="-L$OPENIPMI_LIBDIR"
  10256.               OPENIPMI_LIBS="-lOpenIPMI -lOpenIPMIposix"
  10257.  
  10258.               found_openipmi="yes"
  10259.  
  10260. $as_echo "#define HAVE_OPENIPMI 1" >>confdefs.h
  10261.  
  10262.  
  10263. $as_echo "#define OPENIPMI_DEPRECATED 1" >>confdefs.h
  10264.  
  10265.               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10266. $as_echo "yes" >&6; }
  10267.     fi
  10268.  fi
  10269.  
  10270.  
  10271.  
  10272.  
  10273.  
  10274.  unset _libopenipmi_with
  10275.  
  10276.     if test "x$want_openipmi" = "xyes"; then
  10277.         if test "x$found_openipmi" != "xyes"; then
  10278.             as_fn_error $? "Invalid OPENIPMI directory - unable to find ipmiif.h" "$LINENO" 5
  10279.         else
  10280.             have_ipmi="yes"
  10281.         fi
  10282.     fi
  10283.  
  10284.     SERVER_LDFLAGS="$SERVER_LDFLAGS $OPENIPMI_LDFLAGS"
  10285.     SERVER_LIBS="$SERVER_LIBS $OPENIPMI_LIBS"
  10286.  
  10287.     PROXY_LDFLAGS="$PROXY_LDFLAGS $OPENIPMI_LDFLAGS"
  10288.     PROXY_LIBS="$PROXY_LIBS $OPENIPMI_LIBS"
  10289.  
  10290.  
  10291. fi
  10292.  
  10293. have_ipcservice="no"
  10294. if test "x$have_ipmi" = "xyes"; then
  10295.     have_ipcservice="yes"
  10296. fi
  10297.  
  10298. if test "x$server" = "xyes"; then
  10299.     have_ipcservice="yes"
  10300. fi
  10301.  
  10302. if test "x$have_ipmi" = "xyes"; then
  10303.  PROXY_IPCSERVICE_TRUE=
  10304.  PROXY_IPCSERVICE_FALSE='#'
  10305. else
  10306.  PROXY_IPCSERVICE_TRUE='#'
  10307.  PROXY_IPCSERVICE_FALSE=
  10308. fi
  10309.  
  10310.  
  10311. if test "x$have_ipcservice" = "xyes"; then
  10312.  
  10313. $as_echo "#define HAVE_IPCSERVICE 1" >>confdefs.h
  10314.  
  10315.  
  10316.  
  10317.  
  10318. # Check whether --with-libevent was given.
  10319. if test "${with_libevent+set}" = set; then :
  10320.  withval=$with_libevent;
  10321.             LIBEVENT_CFLAGS="-I$withval/include"
  10322.             LIBEVENT_LDFLAGS="-L$withval/lib"
  10323.             _libevent_dir_set="yes"
  10324.  
  10325.  
  10326. fi
  10327.  
  10328.  
  10329.  
  10330. # Check whether --with-libevent-include was given.
  10331. if test "${with_libevent_include+set}" = set; then :
  10332.  withval=$with_libevent_include;
  10333.             LIBEVENT_CFLAGS="-I$withval"
  10334.             _libevent_dir_set="yes"
  10335.  
  10336.  
  10337. fi
  10338.  
  10339.  
  10340.  
  10341. # Check whether --with-libevent-lib was given.
  10342. if test "${with_libevent_lib+set}" = set; then :
  10343.  withval=$with_libevent_lib;
  10344.             LIBEVENT_LDFLAGS="-L$withval"
  10345.             _libevent_dir_set="yes"
  10346.  
  10347.  
  10348. fi
  10349.  
  10350.  
  10351.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent support" >&5
  10352. $as_echo_n "checking for libevent support... " >&6; }
  10353.  
  10354.     LIBEVENT_LIBS="-levent"
  10355.  
  10356.     if test -n "$_libevent_dir_set" -o -f /usr/include/event.h; then
  10357.         found_libevent="yes"
  10358.     elif test -f /usr/local/include/event.h; then
  10359.         LIBEVENT_CFLAGS="-I/usr/local/include"
  10360.         LIBEVENT_LDFLAGS="-L/usr/local/lib"
  10361.         found_libevent="yes"
  10362.     else
  10363.         found_libevent="no"
  10364.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10365. $as_echo "no" >&6; }
  10366.     fi
  10367.  
  10368.     if test "x$found_libevent" = "xyes"; then
  10369.         am_save_CFLAGS="$CFLAGS"
  10370.         am_save_LDFLAGS="$LDFLAGS"
  10371.         am_save_LIBS="$LIBS"
  10372.  
  10373.         CFLAGS="$CFLAGS $LIBEVENT_CFLAGS"
  10374.         LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS"
  10375.         LIBS="$LIBS $LIBEVENT_LIBS"
  10376.  
  10377.         found_libevent="no"
  10378.  
  10379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10380. /* end confdefs.h.  */
  10381.  
  10382. #include <stdlib.h>
  10383. #include <event.h>
  10384.  
  10385. int
  10386. main ()
  10387. {
  10388.  
  10389.     event_init();
  10390.  
  10391.  ;
  10392.  return 0;
  10393. }
  10394. _ACEOF
  10395. if ac_fn_c_try_link "$LINENO"; then :
  10396.  found_libevent="yes"
  10397. fi
  10398. rm -f core conftest.err conftest.$ac_objext \
  10399.    conftest$ac_exeext conftest.$ac_ext
  10400.  
  10401.  
  10402.         CFLAGS="$am_save_CFLAGS"
  10403.         LDFLAGS="$am_save_LDFLAGS"
  10404.         LIBS="$am_save_LIBS"
  10405.     fi
  10406.  
  10407.     if test "x$found_libevent" = "xyes"; then
  10408.  
  10409. $as_echo "#define HAVE_LIBEVENT 1" >>confdefs.h
  10410.  
  10411.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10412. $as_echo "yes" >&6; }
  10413.     else
  10414.         LIBEVENT_CFLAGS=""
  10415.         LIBEVENT_LDFLAGS=""
  10416.         LIBEVENT_LIBS=""
  10417.     fi
  10418.  
  10419.  
  10420.  
  10421.  
  10422.  
  10423.     if test "x$found_libevent" != "xyes"; then
  10424.         as_fn_error $? "Unable to use libevent (libevent check failed)" "$LINENO" 5
  10425.     fi
  10426.  
  10427.     SERVER_LDFLAGS="$SERVER_LDFLAGS $LIBEVENT_LDFLAGS"
  10428.     SERVER_LIBS="$SERVER_LIBS $LIBEVENT_LIBS"
  10429.  
  10430.     if test "x$have_ipmi" = "xyes"; then
  10431.         PROXY_LDFLAGS="$PROXY_LDFLAGS $LIBEVENT_LDFLAGS"
  10432.         PROXY_LIBS="$PROXY_LIBS $LIBEVENT_LIBS"
  10433.     fi
  10434. fi
  10435.  
  10436.  
  10437.  
  10438. # Check whether --with-libpcre was given.
  10439. if test "${with_libpcre+set}" = set; then :
  10440.  withval=$with_libpcre;
  10441.             LIBPCRE_CFLAGS="-I$withval/include"
  10442.             LIBPCRE_LDFLAGS="-L$withval/lib"
  10443.             _libpcre_dir_set="yes"
  10444.  
  10445.  
  10446. fi
  10447.  
  10448.  
  10449.  
  10450. # Check whether --with-libpcre-include was given.
  10451. if test "${with_libpcre_include+set}" = set; then :
  10452.  withval=$with_libpcre_include;
  10453.             LIBPCRE_CFLAGS="-I$withval"
  10454.             _libpcre_dir_set="yes"
  10455.  
  10456.  
  10457. fi
  10458.  
  10459.  
  10460.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre support" >&5
  10461. $as_echo_n "checking for libpcre support... " >&6; }
  10462.  
  10463.     LIBPCRE_LIBS="-lpcreposix -lpcre"
  10464.  
  10465.     if test "x$enable_static" = "xyes"; then
  10466.         LIBPCRE_LIBS=" $LIBPCRE_LIBS -lpthread"
  10467.     fi
  10468.  
  10469.     if test -n "$_libpcre_dir_set" -o -f /usr/include/pcreposix.h; then
  10470.         found_libpcre="yes"
  10471.     elif test -f /usr/local/include/pcreposix.h; then
  10472.         LIBPCRE_CFLAGS="-I/usr/local/include"
  10473.         LIBPCRE_LDFLAGS="-L/usr/local/lib"
  10474.         found_libpcre="yes"
  10475.     elif test -f /usr/pkg/include/pcreposix.h; then
  10476.         LIBPCRE_CFLAGS="-I/usr/pkg/include"
  10477.         LIBPCRE_LDFLAGS="-L/usr/pkg/lib"
  10478.         found_libpcre="yes"
  10479.     else
  10480.         found_libpcre="no"
  10481.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10482. $as_echo "no" >&6; }
  10483.     fi
  10484.  
  10485.     if test "x$found_libpcre" = "xyes"; then
  10486.         am_save_CFLAGS="$CFLAGS"
  10487.         am_save_LDFLAGS="$LDFLAGS"
  10488.         am_save_LIBS="$LIBS"
  10489.  
  10490.         CFLAGS="$CFLAGS $LIBPCRE_CFLAGS"
  10491.         LDFLAGS="$LDFLAGS $LIBPCRE_LDFLAGS"
  10492.         LIBS="$LIBS $LIBPCRE_LIBS"
  10493.  
  10494.         found_libpcre="no"
  10495.  
  10496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10497. /* end confdefs.h.  */
  10498.  
  10499. #include <pcreposix.h>
  10500.  
  10501. int
  10502. main ()
  10503. {
  10504.  
  10505.     regex_t re = {0};
  10506.  
  10507.     regcomp(&re, "test", 0);
  10508.     regfree(&re);
  10509.  
  10510.  ;
  10511.  return 0;
  10512. }
  10513. _ACEOF
  10514. if ac_fn_c_try_link "$LINENO"; then :
  10515.  found_libpcre="yes"
  10516. fi
  10517. rm -f core conftest.err conftest.$ac_objext \
  10518.    conftest$ac_exeext conftest.$ac_ext
  10519.  
  10520.  
  10521.         CFLAGS="$am_save_CFLAGS"
  10522.         LDFLAGS="$am_save_LDFLAGS"
  10523.         LIBS="$am_save_LIBS"
  10524.     fi
  10525.  
  10526.     if test "x$found_libpcre" = "xyes"; then
  10527.  
  10528. $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
  10529.  
  10530.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10531. $as_echo "yes" >&6; }
  10532.     else
  10533.         LIBPCRE_CFLAGS=""
  10534.         LIBPCRE_LDFLAGS=""
  10535.         LIBPCRE_LIBS=""
  10536.     fi
  10537.  
  10538.  
  10539.  
  10540.  
  10541.  
  10542. if test "x$found_libpcre" != "xyes"; then
  10543.     as_fn_error $? "Unable to use libpcre (libpcre check failed)" "$LINENO" 5
  10544. fi
  10545. CFLAGS="$CFLAGS $LIBPCRE_CFLAGS"
  10546. LDFLAGS="$LDFLAGS $LIBPCRE_LDFLAGS"
  10547. LIBS="$LIBS $LIBPCRE_LIBS"
  10548.  
  10549.  
  10550.  
  10551.  
  10552.  
  10553. # Check whether --with-mbedtls was given.
  10554. if test "${with_mbedtls+set}" = set; then :
  10555.  withval=$with_mbedtls;
  10556.     if test "$withval" = "no"; then
  10557.         want_mbedtls="no"
  10558.         _libmbedtls_dir="no"
  10559.     elif test "$withval" = "yes"; then
  10560.         want_mbedtls="yes"
  10561.         _libmbedtls_dir="no"
  10562.     else
  10563.         want_mbedtls="yes"
  10564.         _libmbedtls_dir=$withval
  10565.     fi
  10566.     accept_mbedtls_version="no"
  10567.  
  10568. else
  10569.  want_mbedtls=no
  10570.  
  10571. fi
  10572.  
  10573.  
  10574.  if test "x$want_mbedtls" = "xyes"; then
  10575.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbed TLS (PolarSSL) support" >&5
  10576. $as_echo_n "checking for mbed TLS (PolarSSL) support... " >&6; }
  10577.  
  10578.     if test "x$_libmbedtls_dir" = "xno"; then
  10579.       if test -f /usr/local/include/polarssl/version.h; then
  10580.         MBEDTLS_CFLAGS=-I/usr/local/include
  10581.         MBEDTLS_LDFLAGS=-L/usr/local/lib
  10582.         MBEDTLS_LIBS="-lpolarssl"
  10583.         found_mbedtls="yes"
  10584.  
  10585.     # Zabbix minimal supported version of libmbedtls:
  10586.     minimal_mbedtls_version_major=1
  10587.     minimal_mbedtls_version_minor=3
  10588.     minimal_mbedtls_version_patch=9
  10589.  
  10590.     # get version
  10591.     found_mbedtls_version_major=`cat /usr/local/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MAJOR | $AWK '{print $3;}'`
  10592.     found_mbedtls_version_minor=`cat /usr/local/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MINOR | $AWK '{print $3;}'`
  10593.     found_mbedtls_version_patch=`cat /usr/local/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_PATCH | $AWK '{print $3;}'`
  10594.  
  10595.     if test $((found_mbedtls_version_major)) -gt $((minimal_mbedtls_version_major)); then
  10596.         accept_mbedtls_version="yes"
  10597.     elif test $((found_mbedtls_version_major)) -lt $((minimal_mbedtls_version_major)); then
  10598.         accept_mbedtls_version="no"
  10599.     elif test $((found_mbedtls_version_minor)) -gt $((minimal_mbedtls_version_minor)); then
  10600.         accept_mbedtls_version="yes"
  10601.     elif test $((found_mbedtls_version_minor)) -lt $((minimal_mbedtls_version_minor)); then
  10602.         accept_mbedtls_version="no"
  10603.     elif test $((found_mbedtls_version_patch)) -ge $((minimal_mbedtls_version_patch)); then
  10604.         accept_mbedtls_version="yes"
  10605.     else
  10606.         accept_mbedtls_version="no"
  10607.     fi;
  10608.  
  10609.       elif test -f /usr/include/polarssl/version.h; then
  10610.         MBEDTLS_CFLAGS=-I/usr/include
  10611.         MBEDTLS_LDFLAGS=-L/usr/lib
  10612.         MBEDTLS_LIBS="-lpolarssl"
  10613.         found_mbedtls="yes"
  10614.  
  10615.     # Zabbix minimal supported version of libmbedtls:
  10616.     minimal_mbedtls_version_major=1
  10617.     minimal_mbedtls_version_minor=3
  10618.     minimal_mbedtls_version_patch=9
  10619.  
  10620.     # get version
  10621.     found_mbedtls_version_major=`cat /usr/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MAJOR | $AWK '{print $3;}'`
  10622.     found_mbedtls_version_minor=`cat /usr/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MINOR | $AWK '{print $3;}'`
  10623.     found_mbedtls_version_patch=`cat /usr/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_PATCH | $AWK '{print $3;}'`
  10624.  
  10625.     if test $((found_mbedtls_version_major)) -gt $((minimal_mbedtls_version_major)); then
  10626.         accept_mbedtls_version="yes"
  10627.     elif test $((found_mbedtls_version_major)) -lt $((minimal_mbedtls_version_major)); then
  10628.         accept_mbedtls_version="no"
  10629.     elif test $((found_mbedtls_version_minor)) -gt $((minimal_mbedtls_version_minor)); then
  10630.         accept_mbedtls_version="yes"
  10631.     elif test $((found_mbedtls_version_minor)) -lt $((minimal_mbedtls_version_minor)); then
  10632.         accept_mbedtls_version="no"
  10633.     elif test $((found_mbedtls_version_patch)) -ge $((minimal_mbedtls_version_patch)); then
  10634.         accept_mbedtls_version="yes"
  10635.     else
  10636.         accept_mbedtls_version="no"
  10637.     fi;
  10638.  
  10639.        else         # libraries are not found in default directories
  10640.         found_mbedtls="no"
  10641.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10642. $as_echo "no" >&6; }
  10643.       fi
  10644.     else
  10645.       if test -f $_libmbedtls_dir/include/polarssl/version.h; then
  10646.         MBEDTLS_CFLAGS=-I$_libmbedtls_dir/include
  10647.         MBEDTLS_LDFLAGS=-L$_libmbedtls_dir/lib
  10648.         MBEDTLS_LIBS="-lpolarssl"
  10649.         found_mbedtls="yes"
  10650.  
  10651.     # Zabbix minimal supported version of libmbedtls:
  10652.     minimal_mbedtls_version_major=1
  10653.     minimal_mbedtls_version_minor=3
  10654.     minimal_mbedtls_version_patch=9
  10655.  
  10656.     # get version
  10657.     found_mbedtls_version_major=`cat $_libmbedtls_dir/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MAJOR | $AWK '{print $3;}'`
  10658.     found_mbedtls_version_minor=`cat $_libmbedtls_dir/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_MINOR | $AWK '{print $3;}'`
  10659.     found_mbedtls_version_patch=`cat $_libmbedtls_dir/include/polarssl/version.h | $EGREP \#define.*POLARSSL_VERSION_PATCH | $AWK '{print $3;}'`
  10660.  
  10661.     if test $((found_mbedtls_version_major)) -gt $((minimal_mbedtls_version_major)); then
  10662.         accept_mbedtls_version="yes"
  10663.     elif test $((found_mbedtls_version_major)) -lt $((minimal_mbedtls_version_major)); then
  10664.         accept_mbedtls_version="no"
  10665.     elif test $((found_mbedtls_version_minor)) -gt $((minimal_mbedtls_version_minor)); then
  10666.         accept_mbedtls_version="yes"
  10667.     elif test $((found_mbedtls_version_minor)) -lt $((minimal_mbedtls_version_minor)); then
  10668.         accept_mbedtls_version="no"
  10669.     elif test $((found_mbedtls_version_patch)) -ge $((minimal_mbedtls_version_patch)); then
  10670.         accept_mbedtls_version="yes"
  10671.     else
  10672.         accept_mbedtls_version="no"
  10673.     fi;
  10674.  
  10675.       else
  10676.         found_mbedtls="no"
  10677.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10678. $as_echo "no" >&6; }
  10679.       fi
  10680.     fi
  10681.  fi
  10682.  
  10683.  if test "x$found_mbedtls" = "xyes"; then
  10684.    am_save_cflags="$CFLAGS"
  10685.    am_save_ldflags="$LDFLAGS"
  10686.    am_save_libs="$LIBS"
  10687.  
  10688.    CFLAGS="$CFLAGS $MBEDTLS_CFLAGS"
  10689.    LDFLAGS="$LDFLAGS $MBEDTLS_LDFLAGS"
  10690.    LIBS="$LIBS $MBEDTLS_LIBS"
  10691.  
  10692.    found_mbedtls="no"
  10693.  
  10694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10695. /* end confdefs.h.  */
  10696.  
  10697. #include <polarssl/ssl.h>
  10698.  
  10699. int
  10700. main ()
  10701. {
  10702.  
  10703.     ssl_context ssl;
  10704.  
  10705.     ssl_init(&ssl);
  10706.  
  10707.  ;
  10708.  return 0;
  10709. }
  10710. _ACEOF
  10711. if ac_fn_c_try_link "$LINENO"; then :
  10712.  found_mbedtls="yes"
  10713. fi
  10714. rm -f core conftest.err conftest.$ac_objext \
  10715.    conftest$ac_exeext conftest.$ac_ext
  10716.  
  10717.  
  10718.    CFLAGS="$am_save_cflags"
  10719.    LDFLAGS="$am_save_ldflags"
  10720.    LIBS="$am_save_libs"
  10721.  
  10722.    if test "x$found_mbedtls" = "xyes"; then
  10723.  
  10724. $as_echo "#define HAVE_POLARSSL 1" >>confdefs.h
  10725.  
  10726.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10727. $as_echo "yes" >&6; }
  10728.    else
  10729.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10730. $as_echo "no" >&6; }
  10731.      MBEDTLS_CFLAGS=""
  10732.      MBEDTLS_LDFLAGS=""
  10733.      MBEDTLS_LIBS=""
  10734.    fi
  10735.  fi
  10736.  
  10737.  
  10738.  
  10739.  
  10740.  
  10741.  
  10742. if test "x$want_mbedtls" = "xyes"; then
  10743.     if test "x$have_tls" != "xno"; then
  10744.         as_fn_error $? "You can configure for only one TLS library (--with-mbedtls, --with-gnutls or --with-openssl)." "$LINENO" 5
  10745.     fi
  10746.  
  10747.     if test "x$found_mbedtls" != "xyes"; then
  10748.         as_fn_error $? "mbed TLS (PolarSSL) library libpolarssl not found" "$LINENO" 5
  10749.     elif test "x$accept_mbedtls_version" != "xyes"; then
  10750.         as_fn_error $? "mbed TLS (PolarSSL) library version requirement not met (>= 1.3.9)" "$LINENO" 5
  10751.     else
  10752.         have_tls="mbed TLS"
  10753.     fi
  10754.     TLS_CFLAGS="$MBEDTLS_CFLAGS"
  10755.     TLS_LDFLAGS="$MBEDTLS_LDFLAGS"
  10756.     TLS_LIBS="$MBEDTLS_LIBS"
  10757. fi
  10758.  
  10759.  
  10760.  
  10761. # Check whether --with-gnutls was given.
  10762. if test "${with_gnutls+set}" = set; then :
  10763.  withval=$with_gnutls;
  10764.     if test "$withval" = "no"; then
  10765.         want_gnutls="no"
  10766.         _libgnutls_dir="no"
  10767.     elif test "$withval" = "yes"; then
  10768.         want_gnutls="yes"
  10769.         _libgnutls_dir="no"
  10770.     else
  10771.         want_gnutls="yes"
  10772.         _libgnutls_dir=$withval
  10773.     fi
  10774.     accept_gnutls_version="no"
  10775.  
  10776. else
  10777.  want_gnutls=no
  10778.  
  10779. fi
  10780.  
  10781.  
  10782.  if test "x$want_gnutls" = "xyes"; then
  10783.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS support" >&5
  10784. $as_echo_n "checking for GnuTLS support... " >&6; }
  10785.     if test "x$_libgnutls_dir" = "xno"; then
  10786.       if test -f /usr/local/include/gnutls/gnutls.h; then
  10787.         GNUTLS_CFLAGS=-I/usr/local/include
  10788.         GNUTLS_LDFLAGS=-L/usr/local/lib
  10789.         GNUTLS_LIBS="-lgnutls"
  10790.         found_gnutls="yes"
  10791.  
  10792.     # Zabbix minimal supported version of libgnutls:
  10793.     minimal_gnutls_version_major=3
  10794.     minimal_gnutls_version_minor=1
  10795.     minimal_gnutls_version_patch=18
  10796.  
  10797.     # get version
  10798.     found_gnutls_version_major=`cat /usr/local/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MAJOR | $AWK '{print $3;}'`
  10799.     found_gnutls_version_minor=`cat /usr/local/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MINOR | $AWK '{print $3;}'`
  10800.     found_gnutls_version_patch=`cat /usr/local/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_PATCH | $AWK '{print $3;}'`
  10801.  
  10802.     if test $((found_gnutls_version_major)) -gt $((minimal_gnutls_version_major)); then
  10803.         accept_gnutls_version="yes"
  10804.     elif test $((found_gnutls_version_major)) -lt $((minimal_gnutls_version_major)); then
  10805.         accept_gnutls_version="no"
  10806.     elif test $((found_gnutls_version_minor)) -gt $((minimal_gnutls_version_minor)); then
  10807.         accept_gnutls_version="yes"
  10808.     elif test $((found_gnutls_version_minor)) -lt $((minimal_gnutls_version_minor)); then
  10809.         accept_gnutls_version="no"
  10810.     elif test $((found_gnutls_version_patch)) -ge $((minimal_gnutls_version_patch)); then
  10811.         accept_gnutls_version="yes"
  10812.     else
  10813.         accept_gnutls_version="no"
  10814.     fi;
  10815.  
  10816.       elif test -f /usr/include/gnutls/gnutls.h; then
  10817.         GNUTLS_CFLAGS=-I/usr/include
  10818.         GNUTLS_LDFLAGS=-L/usr/lib
  10819.         GNUTLS_LIBS="-lgnutls"
  10820.         found_gnutls="yes"
  10821.  
  10822.     # Zabbix minimal supported version of libgnutls:
  10823.     minimal_gnutls_version_major=3
  10824.     minimal_gnutls_version_minor=1
  10825.     minimal_gnutls_version_patch=18
  10826.  
  10827.     # get version
  10828.     found_gnutls_version_major=`cat /usr/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MAJOR | $AWK '{print $3;}'`
  10829.     found_gnutls_version_minor=`cat /usr/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MINOR | $AWK '{print $3;}'`
  10830.     found_gnutls_version_patch=`cat /usr/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_PATCH | $AWK '{print $3;}'`
  10831.  
  10832.     if test $((found_gnutls_version_major)) -gt $((minimal_gnutls_version_major)); then
  10833.         accept_gnutls_version="yes"
  10834.     elif test $((found_gnutls_version_major)) -lt $((minimal_gnutls_version_major)); then
  10835.         accept_gnutls_version="no"
  10836.     elif test $((found_gnutls_version_minor)) -gt $((minimal_gnutls_version_minor)); then
  10837.         accept_gnutls_version="yes"
  10838.     elif test $((found_gnutls_version_minor)) -lt $((minimal_gnutls_version_minor)); then
  10839.         accept_gnutls_version="no"
  10840.     elif test $((found_gnutls_version_patch)) -ge $((minimal_gnutls_version_patch)); then
  10841.         accept_gnutls_version="yes"
  10842.     else
  10843.         accept_gnutls_version="no"
  10844.     fi;
  10845.  
  10846.       else #libraries are not found in default directories
  10847.         found_gnutls="no"
  10848.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10849. $as_echo "no" >&6; }
  10850.       fi
  10851.     else
  10852.       if test -f $_libgnutls_dir/include/gnutls/gnutls.h; then
  10853.         GNUTLS_CFLAGS=-I$_libgnutls_dir/include
  10854.         GNUTLS_LDFLAGS=-L$_libgnutls_dir/lib
  10855.         GNUTLS_LIBS="-lgnutls"
  10856.         found_gnutls="yes"
  10857.  
  10858.     # Zabbix minimal supported version of libgnutls:
  10859.     minimal_gnutls_version_major=3
  10860.     minimal_gnutls_version_minor=1
  10861.     minimal_gnutls_version_patch=18
  10862.  
  10863.     # get version
  10864.     found_gnutls_version_major=`cat $_libgnutls_dir/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MAJOR | $AWK '{print $3;}'`
  10865.     found_gnutls_version_minor=`cat $_libgnutls_dir/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_MINOR | $AWK '{print $3;}'`
  10866.     found_gnutls_version_patch=`cat $_libgnutls_dir/include/gnutls/gnutls.h | $EGREP \#define.*GNUTLS_VERSION_PATCH | $AWK '{print $3;}'`
  10867.  
  10868.     if test $((found_gnutls_version_major)) -gt $((minimal_gnutls_version_major)); then
  10869.         accept_gnutls_version="yes"
  10870.     elif test $((found_gnutls_version_major)) -lt $((minimal_gnutls_version_major)); then
  10871.         accept_gnutls_version="no"
  10872.     elif test $((found_gnutls_version_minor)) -gt $((minimal_gnutls_version_minor)); then
  10873.         accept_gnutls_version="yes"
  10874.     elif test $((found_gnutls_version_minor)) -lt $((minimal_gnutls_version_minor)); then
  10875.         accept_gnutls_version="no"
  10876.     elif test $((found_gnutls_version_patch)) -ge $((minimal_gnutls_version_patch)); then
  10877.         accept_gnutls_version="yes"
  10878.     else
  10879.         accept_gnutls_version="no"
  10880.     fi;
  10881.  
  10882.       else
  10883.         found_gnutls="no"
  10884.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10885. $as_echo "no" >&6; }
  10886.       fi
  10887.     fi
  10888.  fi
  10889.  
  10890.  if test "x$found_gnutls" = "xyes"; then
  10891.    am_save_cflags="$CFLAGS"
  10892.    am_save_ldflags="$LDFLAGS"
  10893.    am_save_libs="$LIBS"
  10894.  
  10895.    CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
  10896.    LDFLAGS="$LDFLAGS $GNUTLS_LDFLAGS"
  10897.    LIBS="$LIBS $GNUTLS_LIBS"
  10898.  
  10899.    found_gnutls="no"
  10900.  
  10901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10902. /* end confdefs.h.  */
  10903.  
  10904. #include <gnutls/gnutls.h>
  10905.  
  10906. int
  10907. main ()
  10908. {
  10909.  
  10910.     gnutls_global_init();
  10911.  
  10912.  ;
  10913.  return 0;
  10914. }
  10915. _ACEOF
  10916. if ac_fn_c_try_link "$LINENO"; then :
  10917.  found_gnutls="yes"
  10918. fi
  10919. rm -f core conftest.err conftest.$ac_objext \
  10920.    conftest$ac_exeext conftest.$ac_ext
  10921.  
  10922.  
  10923.    CFLAGS="$am_save_cflags"
  10924.    LDFLAGS="$am_save_ldflags"
  10925.    LIBS="$am_save_libs"
  10926.  
  10927.    if test "x$found_gnutls" = "xyes"; then
  10928.  
  10929. $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
  10930.  
  10931.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10932. $as_echo "yes" >&6; }
  10933.    else
  10934.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10935. $as_echo "no" >&6; }
  10936.      GNUTLS_CFLAGS=""
  10937.      GNUTLS_LDFLAGS=""
  10938.      GNUTLS_LIBS=""
  10939.    fi
  10940.  fi
  10941.  
  10942.  
  10943.  
  10944.  
  10945.  
  10946.  
  10947. if test "x$want_gnutls" = "xyes"; then
  10948.     if test "x$have_tls" != "xno"; then
  10949.         as_fn_error $? "You can configure for only one TLS library (--with-mbedtls, --with-gnutls or --with-openssl)." "$LINENO" 5
  10950.     fi
  10951.  
  10952.     if test "x$found_gnutls" != "xyes"; then
  10953.         as_fn_error $? "GnuTLS library libgnutls not found" "$LINENO" 5
  10954.     elif test "x$accept_gnutls_version" != "xyes"; then
  10955.         as_fn_error $? "GnuTLS library version requirement not met (>= 3.1.18)" "$LINENO" 5
  10956.     else
  10957.         have_tls="GnuTLS"
  10958.     fi
  10959.     TLS_CFLAGS="$GNUTLS_CFLAGS"
  10960.     TLS_LDFLAGS="$GNUTLS_LDFLAGS"
  10961.     TLS_LIBS="$GNUTLS_LIBS"
  10962. fi
  10963.  
  10964.  
  10965.  
  10966. # Check whether --with-openssl was given.
  10967. if test "${with_openssl+set}" = set; then :
  10968.  withval=$with_openssl;
  10969.     if test "$withval" = "no"; then
  10970.         want_openssl="no"
  10971.         _libopenssl_dir="no"
  10972.     elif test "$withval" = "yes"; then
  10973.         want_openssl="yes"
  10974.         _libopenssl_dir="no"
  10975.     else
  10976.         want_openssl="yes"
  10977.         _libopenssl_dir=$withval
  10978.     fi
  10979.     accept_openssl_version="no"
  10980.  
  10981. else
  10982.  want_openssl=no
  10983.  
  10984. fi
  10985.  
  10986.  
  10987.  if test "x$want_openssl" = "xyes"; then
  10988.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5
  10989. $as_echo_n "checking for OpenSSL support... " >&6; }
  10990.      if test "x$_libopenssl_dir" = "xno"; then      # if OpenSSL directory is not specified
  10991.       if test -f /usr/local/include/openssl/ssl.h -a -f /usr/local/include/openssl/crypto.h; then
  10992.         OPENSSL_CFLAGS=-I/usr/local/include
  10993.         OPENSSL_LDFLAGS=-L/usr/local/lib
  10994.         OPENSSL_LIBS="-lssl -lcrypto"
  10995.         found_openssl="yes"
  10996.  
  10997.     # Zabbix minimal supported version of OpenSSL.
  10998.     # Version numbering scheme is described in /usr/include/openssl/opensslv.h. Specify version number without the
  10999.     # last byte (status). E.g., version 1.0.1 is 0x1000100f, but without the last byte it is 0x1000100.
  11000.     minimal_openssl_version=0x1000100
  11001.  
  11002.     # get version
  11003.     found_openssl_version=`grep OPENSSL_VERSION_NUMBER "/usr/local/include/openssl/opensslv.h"`
  11004.     found_openssl_version=`expr "$found_openssl_version" : '.*\(0x[0-f][0-f][0-f][0-f][0-f][0-f][0-f]\).*'`
  11005.  
  11006.     # compare versions lexicographically
  11007.     openssl_version_check=`expr $found_openssl_version \>\= $minimal_openssl_version`
  11008.     if test "$openssl_version_check" = "1"; then
  11009.         accept_openssl_version="yes"
  11010.     else
  11011.         accept_openssl_version="no"
  11012.     fi;
  11013.  
  11014.       elif test -f /usr/include/openssl/ssl.h -a -f /usr/include/openssl/crypto.h; then
  11015.         OPENSSL_CFLAGS=-I/usr/include
  11016.         OPENSSL_LDFLAGS=-L/usr/lib
  11017.         OPENSSL_LIBS="-lssl -lcrypto"
  11018.         found_openssl="yes"
  11019.  
  11020.     # Zabbix minimal supported version of OpenSSL.
  11021.     # Version numbering scheme is described in /usr/include/openssl/opensslv.h. Specify version number without the
  11022.     # last byte (status). E.g., version 1.0.1 is 0x1000100f, but without the last byte it is 0x1000100.
  11023.     minimal_openssl_version=0x1000100
  11024.  
  11025.     # get version
  11026.     found_openssl_version=`grep OPENSSL_VERSION_NUMBER "/usr/include/openssl/opensslv.h"`
  11027.     found_openssl_version=`expr "$found_openssl_version" : '.*\(0x[0-f][0-f][0-f][0-f][0-f][0-f][0-f]\).*'`
  11028.  
  11029.     # compare versions lexicographically
  11030.     openssl_version_check=`expr $found_openssl_version \>\= $minimal_openssl_version`
  11031.     if test "$openssl_version_check" = "1"; then
  11032.         accept_openssl_version="yes"
  11033.     else
  11034.         accept_openssl_version="no"
  11035.     fi;
  11036.  
  11037.        else                     # libraries are not found in default directories
  11038.         found_openssl="no"
  11039.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11040. $as_echo "no" >&6; }
  11041.       fi
  11042.      else                       # search in the specified OpenSSL directory
  11043.       if test -f $_libopenssl_dir/include/openssl/ssl.h -a -f $_libopenssl_dir/include/openssl/crypto.h; then
  11044.         OPENSSL_CFLAGS=-I$_libopenssl_dir/include
  11045.         OPENSSL_LDFLAGS=-L$_libopenssl_dir/lib
  11046.         OPENSSL_LIBS="-lssl -lcrypto"
  11047.         found_openssl="yes"
  11048.  
  11049.     # Zabbix minimal supported version of OpenSSL.
  11050.     # Version numbering scheme is described in /usr/include/openssl/opensslv.h. Specify version number without the
  11051.     # last byte (status). E.g., version 1.0.1 is 0x1000100f, but without the last byte it is 0x1000100.
  11052.     minimal_openssl_version=0x1000100
  11053.  
  11054.     # get version
  11055.     found_openssl_version=`grep OPENSSL_VERSION_NUMBER "$_libopenssl_dir/include/openssl/opensslv.h"`
  11056.     found_openssl_version=`expr "$found_openssl_version" : '.*\(0x[0-f][0-f][0-f][0-f][0-f][0-f][0-f]\).*'`
  11057.  
  11058.     # compare versions lexicographically
  11059.     openssl_version_check=`expr $found_openssl_version \>\= $minimal_openssl_version`
  11060.     if test "$openssl_version_check" = "1"; then
  11061.         accept_openssl_version="yes"
  11062.     else
  11063.         accept_openssl_version="no"
  11064.     fi;
  11065.  
  11066.        else                     # libraries are not found in specified directories
  11067.         found_openssl="no"
  11068.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11069. $as_echo "no" >&6; }
  11070.       fi
  11071.     fi
  11072.  fi
  11073.  
  11074.  if test "x$found_openssl" = "xyes"; then
  11075.    am_save_cflags="$CFLAGS"
  11076.    am_save_ldflags="$LDFLAGS"
  11077.    am_save_libs="$LIBS"
  11078.  
  11079.    CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
  11080.    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
  11081.    LIBS="$LIBS $OPENSSL_LIBS"
  11082.  
  11083.    found_openssl="no"
  11084.  
  11085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11086. /* end confdefs.h.  */
  11087.  
  11088. #include <openssl/ssl.h>
  11089. #include <openssl/bio.h>
  11090.  
  11091. int
  11092. main ()
  11093. {
  11094.  
  11095.     /* check that both libssl and libcrypto are available */
  11096.  
  11097.     SSL *ssl = NULL;
  11098.  
  11099.     SSL_connect(ssl);   /* a function from libssl, present in both OpenSSL 1.0.1 and 1.1.0 */
  11100.     BIO_new(BIO_s_mem());   /* a function from libcrypto */
  11101.  
  11102.  ;
  11103.  return 0;
  11104. }
  11105. _ACEOF
  11106. if ac_fn_c_try_link "$LINENO"; then :
  11107.  found_openssl="yes"
  11108. fi
  11109. rm -f core conftest.err conftest.$ac_objext \
  11110.    conftest$ac_exeext conftest.$ac_ext
  11111.  
  11112.  
  11113.    CFLAGS="$am_save_cflags"
  11114.    LDFLAGS="$am_save_ldflags"
  11115.    LIBS="$am_save_libs"
  11116.  
  11117.    if test "x$found_openssl" = "xyes"; then
  11118.  
  11119. $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
  11120.  
  11121.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11122. $as_echo "yes" >&6; }
  11123.    else
  11124.      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11125. $as_echo "no" >&6; }
  11126.      OPENSSL_CFLAGS=""
  11127.      OPENSSL_LDFLAGS=""
  11128.      OPENSSL_LIBS=""
  11129.    fi
  11130.  fi
  11131.  
  11132.  
  11133.  
  11134.  
  11135.  
  11136.  
  11137. if test "x$want_openssl" = "xyes"; then
  11138.     if test "x$have_tls" != "xno"; then
  11139.         as_fn_error $? "You can configure for only one TLS library (--with-mbedtls, --with-gnutls or --with-openssl)." "$LINENO" 5
  11140.     fi
  11141.  
  11142.     if test "x$found_openssl" != "xyes"; then
  11143.         as_fn_error $? "OpenSSL library libssl or libcrypto not found" "$LINENO" 5
  11144.     elif test "x$accept_openssl_version" != "xyes"; then
  11145.         as_fn_error $? "OpenSSL library version requirement not met (>= 1.0.1)" "$LINENO" 5
  11146.     else
  11147.         have_tls="OpenSSL"
  11148.     fi
  11149.     TLS_CFLAGS="$OPENSSL_CFLAGS"
  11150.     TLS_LDFLAGS="$OPENSSL_LDFLAGS"
  11151.     TLS_LIBS="$OPENSSL_LIBS"
  11152. fi
  11153.  
  11154.  
  11155. SERVER_LDFLAGS="$SERVER_LDFLAGS $TLS_LDFLAGS"
  11156. SERVER_LIBS="$SERVER_LIBS $TLS_LIBS"
  11157.  
  11158. PROXY_LDFLAGS="$PROXY_LDFLAGS $TLS_LDFLAGS"
  11159. PROXY_LIBS="$PROXY_LIBS $TLS_LIBS"
  11160.  
  11161. AGENT_LDFLAGS="$AGENT_LDFLAGS $TLS_LDFLAGS"
  11162. AGENT_LIBS="$AGENT_LIBS $TLS_LIBS"
  11163.  
  11164. ZBXGET_LDFLAGS="$ZBXGET_LDFLAGS $TLS_LDFLAGS"
  11165. ZBXGET_LIBS="$ZBXGET_LIBS $TLS_LIBS"
  11166.  
  11167. SENDER_LDFLAGS="$SENDER_LDFLAGS $TLS_LDFLAGS"
  11168. SENDER_LIBS="$SENDER_LIBS $TLS_LIBS"
  11169.  
  11170. if test "x$java" = "xyes"; then
  11171.     for ac_prog in javac
  11172. do
  11173.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  11174. set dummy $ac_prog; ac_word=$2
  11175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11176. $as_echo_n "checking for $ac_word... " >&6; }
  11177. if ${ac_cv_prog_JAVAC+:} false; then :
  11178.  $as_echo_n "(cached) " >&6
  11179. else
  11180.  if test -n "$JAVAC"; then
  11181.  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
  11182. else
  11183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11184. for as_dir in $PATH
  11185. do
  11186.  IFS=$as_save_IFS
  11187.  test -z "$as_dir" && as_dir=.
  11188.    for ac_exec_ext in '' $ac_executable_extensions; do
  11189.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11190.    ac_cv_prog_JAVAC="$ac_prog"
  11191.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11192.    break 2
  11193.  fi
  11194. done
  11195.  done
  11196. IFS=$as_save_IFS
  11197.  
  11198. fi
  11199. fi
  11200. JAVAC=$ac_cv_prog_JAVAC
  11201. if test -n "$JAVAC"; then
  11202.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
  11203. $as_echo "$JAVAC" >&6; }
  11204. else
  11205.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11206. $as_echo "no" >&6; }
  11207. fi
  11208.  
  11209.  
  11210.  test -n "$JAVAC" && break
  11211. done
  11212. test -n "$JAVAC" || JAVAC="no"
  11213.  
  11214.     if test "x$JAVAC" = "xno"; then
  11215.         as_fn_error $? "Unable to find \"javac\" executable in path" "$LINENO" 5
  11216.     fi
  11217.     for ac_prog in jar
  11218. do
  11219.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  11220. set dummy $ac_prog; ac_word=$2
  11221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11222. $as_echo_n "checking for $ac_word... " >&6; }
  11223. if ${ac_cv_prog_JAR+:} false; then :
  11224.  $as_echo_n "(cached) " >&6
  11225. else
  11226.  if test -n "$JAR"; then
  11227.  ac_cv_prog_JAR="$JAR" # Let the user override the test.
  11228. else
  11229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11230. for as_dir in $PATH
  11231. do
  11232.  IFS=$as_save_IFS
  11233.  test -z "$as_dir" && as_dir=.
  11234.    for ac_exec_ext in '' $ac_executable_extensions; do
  11235.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11236.    ac_cv_prog_JAR="$ac_prog"
  11237.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11238.    break 2
  11239.  fi
  11240. done
  11241.  done
  11242. IFS=$as_save_IFS
  11243.  
  11244. fi
  11245. fi
  11246. JAR=$ac_cv_prog_JAR
  11247. if test -n "$JAR"; then
  11248.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
  11249. $as_echo "$JAR" >&6; }
  11250. else
  11251.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11252. $as_echo "no" >&6; }
  11253. fi
  11254.  
  11255.  
  11256.  test -n "$JAR" && break
  11257. done
  11258. test -n "$JAR" || JAR="no"
  11259.  
  11260.     if test "x$JAR" = "xno"; then
  11261.         as_fn_error $? "Unable to find \"jar\" executable in path" "$LINENO" 5
  11262.     fi
  11263. fi
  11264.  
  11265. found_ldap="no"
  11266.  
  11267.  
  11268. # Check whether --with-ldap was given.
  11269. if test "${with_ldap+set}" = set; then :
  11270.  withval=$with_ldap;  if test "$withval" = "no"; then
  11271.            want_ldap="no"
  11272.            _libldap_with="no"
  11273.        elif test "$withval" = "yes"; then
  11274.            want_ldap="yes"
  11275.            _libldap_with="yes"
  11276.        else
  11277.            want_ldap="yes"
  11278.            _libldap_with=$withval
  11279.        fi
  11280.  
  11281. else
  11282.  _libldap_with=no
  11283. fi
  11284.  
  11285.  
  11286.  if test "x$_libldap_with" != x"no"; then
  11287.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
  11288. $as_echo_n "checking for LDAP support... " >&6; }
  11289.  
  11290.       if test "$_libldap_with" = "yes"; then
  11291.               if test -f /usr/local/openldap/include/ldap.h; then
  11292.                       LDAP_INCDIR=/usr/local/openldap/include/
  11293.                       LDAP_LIBDIR=/usr/local/openldap/lib/
  11294.                found_ldap="yes"
  11295.               elif test -f /usr/include/ldap.h; then
  11296.                       LDAP_INCDIR=/usr/include
  11297.                       LDAP_LIBDIR=/usr/lib
  11298.                found_ldap="yes"
  11299.               elif test -f /usr/local/include/ldap.h; then
  11300.                       LDAP_INCDIR=/usr/local/include
  11301.                       LDAP_LIBDIR=/usr/local/lib
  11302.                found_ldap="yes"
  11303.               else
  11304.                       found_ldap="no"
  11305.                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11306. $as_echo "no" >&6; }
  11307.               fi
  11308.       else
  11309.               if test -f $_libldap_with/include/ldap.h; then
  11310.                       LDAP_INCDIR=$_libldap_with/include
  11311.                       LDAP_LIBDIR=$_libldap_with/lib
  11312.                found_ldap="yes"
  11313.               else
  11314.                       found_ldap="no"
  11315.                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11316. $as_echo "no" >&6; }
  11317.               fi
  11318.       fi
  11319.  
  11320.       if test "x$found_ldap" != "xno"; then
  11321.               if test "x$enable_static" = "xyes"; then
  11322.                       LDAP_LIBS=" -lgnutls -lpthread -lsasl2 $LDAP_LIBS"
  11323.               fi
  11324.  
  11325.               LDAP_CPPFLAGS="-I$LDAP_INCDIR"
  11326.               LDAP_LDFLAGS="-L$LDAP_LIBDIR"
  11327.               LDAP_LIBS="-lldap -llber $LDAP_LIBS"
  11328.  
  11329.               found_ldap="yes"
  11330.  
  11331. $as_echo "#define HAVE_LDAP 1" >>confdefs.h
  11332.  
  11333.  
  11334. $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
  11335.  
  11336.               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11337. $as_echo "yes" >&6; }
  11338.  
  11339.            if test "x$enable_static" = "xyes"; then
  11340.                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgnutls" >&5
  11341. $as_echo_n "checking for main in -lgnutls... " >&6; }
  11342. if ${ac_cv_lib_gnutls_main+:} false; then :
  11343.  $as_echo_n "(cached) " >&6
  11344. else
  11345.  ac_check_lib_save_LIBS=$LIBS
  11346. LIBS="-lgnutls  $LIBS"
  11347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11348. /* end confdefs.h.  */
  11349.  
  11350.  
  11351. int
  11352. main ()
  11353. {
  11354. return main ();
  11355.  ;
  11356.  return 0;
  11357. }
  11358. _ACEOF
  11359. if ac_fn_c_try_link "$LINENO"; then :
  11360.  ac_cv_lib_gnutls_main=yes
  11361. else
  11362.  ac_cv_lib_gnutls_main=no
  11363. fi
  11364. rm -f core conftest.err conftest.$ac_objext \
  11365.    conftest$ac_exeext conftest.$ac_ext
  11366. LIBS=$ac_check_lib_save_LIBS
  11367. fi
  11368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_main" >&5
  11369. $as_echo "$ac_cv_lib_gnutls_main" >&6; }
  11370. if test "x$ac_cv_lib_gnutls_main" = xyes; then :
  11371.  cat >>confdefs.h <<_ACEOF
  11372. #define HAVE_LIBGNUTLS 1
  11373. _ACEOF
  11374.  
  11375.  LIBS="-lgnutls $LIBS"
  11376.  
  11377. else
  11378.  as_fn_error $? "Not found GnuTLS library" "$LINENO" 5
  11379. fi
  11380.  
  11381.                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
  11382. $as_echo_n "checking for main in -lpthread... " >&6; }
  11383. if ${ac_cv_lib_pthread_main+:} false; then :
  11384.  $as_echo_n "(cached) " >&6
  11385. else
  11386.  ac_check_lib_save_LIBS=$LIBS
  11387. LIBS="-lpthread  $LIBS"
  11388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11389. /* end confdefs.h.  */
  11390.  
  11391.  
  11392. int
  11393. main ()
  11394. {
  11395. return main ();
  11396.  ;
  11397.  return 0;
  11398. }
  11399. _ACEOF
  11400. if ac_fn_c_try_link "$LINENO"; then :
  11401.  ac_cv_lib_pthread_main=yes
  11402. else
  11403.  ac_cv_lib_pthread_main=no
  11404. fi
  11405. rm -f core conftest.err conftest.$ac_objext \
  11406.    conftest$ac_exeext conftest.$ac_ext
  11407. LIBS=$ac_check_lib_save_LIBS
  11408. fi
  11409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
  11410. $as_echo "$ac_cv_lib_pthread_main" >&6; }
  11411. if test "x$ac_cv_lib_pthread_main" = xyes; then :
  11412.  cat >>confdefs.h <<_ACEOF
  11413. #define HAVE_LIBPTHREAD 1
  11414. _ACEOF
  11415.  
  11416.  LIBS="-lpthread $LIBS"
  11417.  
  11418. else
  11419.  as_fn_error $? "Not found Pthread library" "$LINENO" 5
  11420. fi
  11421.  
  11422.                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsasl2" >&5
  11423. $as_echo_n "checking for main in -lsasl2... " >&6; }
  11424. if ${ac_cv_lib_sasl2_main+:} false; then :
  11425.  $as_echo_n "(cached) " >&6
  11426. else
  11427.  ac_check_lib_save_LIBS=$LIBS
  11428. LIBS="-lsasl2  $LIBS"
  11429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11430. /* end confdefs.h.  */
  11431.  
  11432.  
  11433. int
  11434. main ()
  11435. {
  11436. return main ();
  11437.  ;
  11438.  return 0;
  11439. }
  11440. _ACEOF
  11441. if ac_fn_c_try_link "$LINENO"; then :
  11442.  ac_cv_lib_sasl2_main=yes
  11443. else
  11444.  ac_cv_lib_sasl2_main=no
  11445. fi
  11446. rm -f core conftest.err conftest.$ac_objext \
  11447.    conftest$ac_exeext conftest.$ac_ext
  11448. LIBS=$ac_check_lib_save_LIBS
  11449. fi
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_main" >&5
  11451. $as_echo "$ac_cv_lib_sasl2_main" >&6; }
  11452. if test "x$ac_cv_lib_sasl2_main" = xyes; then :
  11453.  cat >>confdefs.h <<_ACEOF
  11454. #define HAVE_LIBSASL2 1
  11455. _ACEOF
  11456.  
  11457.  LIBS="-lsasl2 $LIBS"
  11458.  
  11459. else
  11460.  as_fn_error $? "Not found SASL2 library" "$LINENO" 5
  11461. fi
  11462.  
  11463.               fi
  11464.  
  11465.       fi
  11466.  fi
  11467.  
  11468.  
  11469.  
  11470.  
  11471.  
  11472.  unset _libldap_with
  11473.  
  11474. if test "x$want_ldap" = "xyes"; then
  11475.     if test "x$found_ldap" != "xyes"; then
  11476.         as_fn_error $? "Invalid LDAP directory - unable to find ldap.h" "$LINENO" 5
  11477.     fi
  11478. fi
  11479. SERVER_LDFLAGS="$SERVER_LDFLAGS $LDAP_LDFLAGS"
  11480. SERVER_LIBS="$SERVER_LIBS $LDAP_LIBS"
  11481.  
  11482. PROXY_LDFLAGS="$PROXY_LDFLAGS $LDAP_LDFLAGS"
  11483. PROXY_LIBS="$PROXY_LIBS $LDAP_LIBS"
  11484.  
  11485. AGENT_LDFLAGS="$AGENT_LDFLAGS $LDAP_LDFLAGS"
  11486. AGENT_LIBS="$AGENT_LIBS $LDAP_LIBS"
  11487.  
  11488.  
  11489.  
  11490. found_curl="no"
  11491.  
  11492.  
  11493.  
  11494.  
  11495.  
  11496.  
  11497.  
  11498.  
  11499.  
  11500.  
  11501.  
  11502.  
  11503.  
  11504.  
  11505.  
  11506.  
  11507.  
  11508.  
  11509.  
  11510.  
  11511.  _libcurl_config="no"
  11512.  
  11513.  
  11514. # Check whether --with-libcurl was given.
  11515. if test "${with_libcurl+set}" = set; then :
  11516.  withval=$with_libcurl;
  11517.        if test "x$withval" = "xno"; then
  11518.            want_curl="no"
  11519.        elif test "x$withval" = "xyes"; then
  11520.            want_curl="yes"
  11521.        else
  11522.            want_curl="yes"
  11523.            _libcurl_config=$withval
  11524.        fi
  11525.  
  11526. else
  11527.  want_curl=no
  11528. fi
  11529.  
  11530.  
  11531.  if test "x$want_curl" != "xno"; then
  11532.  
  11533.     for ac_prog in gawk mawk nawk awk
  11534. do
  11535.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  11536. set dummy $ac_prog; ac_word=$2
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11538. $as_echo_n "checking for $ac_word... " >&6; }
  11539. if ${ac_cv_prog_AWK+:} false; then :
  11540.  $as_echo_n "(cached) " >&6
  11541. else
  11542.  if test -n "$AWK"; then
  11543.  ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11544. else
  11545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11546. for as_dir in $PATH
  11547. do
  11548.  IFS=$as_save_IFS
  11549.  test -z "$as_dir" && as_dir=.
  11550.    for ac_exec_ext in '' $ac_executable_extensions; do
  11551.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11552.    ac_cv_prog_AWK="$ac_prog"
  11553.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11554.    break 2
  11555.  fi
  11556. done
  11557.  done
  11558. IFS=$as_save_IFS
  11559.  
  11560. fi
  11561. fi
  11562. AWK=$ac_cv_prog_AWK
  11563. if test -n "$AWK"; then
  11564.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11565. $as_echo "$AWK" >&6; }
  11566. else
  11567.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11568. $as_echo "no" >&6; }
  11569. fi
  11570.  
  11571.  
  11572.  test -n "$AWK" && break
  11573. done
  11574.  
  11575.  
  11576.     _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  11577.  
  11578.     _libcurl_try_link=no
  11579.  
  11580.     # Extract the first word of "curl-config", so it can be a program name with args.
  11581. set dummy curl-config; ac_word=$2
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11583. $as_echo_n "checking for $ac_word... " >&6; }
  11584. if ${ac_cv_path__libcurl_config+:} false; then :
  11585.  $as_echo_n "(cached) " >&6
  11586. else
  11587.  case $_libcurl_config in
  11588.  [\\/]* | ?:[\\/]*)
  11589.  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  11590.  ;;
  11591.  *)
  11592.  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11593. for as_dir in $PATH
  11594. do
  11595.  IFS=$as_save_IFS
  11596.  test -z "$as_dir" && as_dir=.
  11597.    for ac_exec_ext in '' $ac_executable_extensions; do
  11598.  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11599.    ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  11600.    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11601.    break 2
  11602.  fi
  11603. done
  11604.  done
  11605. IFS=$as_save_IFS
  11606.  
  11607.  ;;
  11608. esac
  11609. fi
  11610. _libcurl_config=$ac_cv_path__libcurl_config
  11611. if test -n "$_libcurl_config"; then
  11612.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  11613. $as_echo "$_libcurl_config" >&6; }
  11614. else
  11615.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11616. $as_echo "no" >&6; }
  11617. fi
  11618.  
  11619.  
  11620.  
  11621.     if test -x "$_libcurl_config"; then
  11622.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  11623. $as_echo_n "checking for the version of libcurl... " >&6; }
  11624. if ${libcurl_cv_lib_curl_version+:} false; then :
  11625.  $as_echo_n "(cached) " >&6
  11626. else
  11627.  libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  11628. fi
  11629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  11630. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  11631.  
  11632.     _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  11633.     _libcurl_wanted=`echo 7.13.1 | $_libcurl_version_parse`
  11634.  
  11635.        if test $_libcurl_wanted -gt 0; then
  11636.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.13.1" >&5
  11637. $as_echo_n "checking for libcurl >= version 7.13.1... " >&6; }
  11638. if ${libcurl_cv_lib_version_ok+:} false; then :
  11639.  $as_echo_n "(cached) " >&6
  11640. else
  11641.  
  11642.           if test $_libcurl_version -ge $_libcurl_wanted; then
  11643.              libcurl_cv_lib_version_ok=yes
  11644.               else
  11645.              libcurl_cv_lib_version_ok=no
  11646.           fi
  11647.  
  11648. fi
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  11650. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  11651.        fi
  11652.  
  11653.     if test $_libcurl_wanted -eq 0 || test "x$libcurl_cv_lib_version_ok" = "xyes"; then
  11654.           if test "x$LIBCURL_CFLAGS" = "x"; then
  11655.              LIBCURL_CFLAGS=`$_libcurl_config --cflags`
  11656.           fi
  11657.           if test "x$LIBCURL_LIBS" = "x"; then
  11658.         _full_libcurl_libs=`$_libcurl_config --libs`
  11659.         for i in $_full_libcurl_libs; do
  11660.             case $i in
  11661.                 -L*)
  11662.                     LIBCURL_LDFLAGS="$LIBCURL_LDFLAGS $i"
  11663.             ;;
  11664.                 -l*)
  11665.                     LIBCURL_LIBS="$LIBCURL_LIBS $i"
  11666.             ;;
  11667.             esac
  11668.         done
  11669.  
  11670.         if test "x$enable_static" = "xyes"; then
  11671.             _full_libcurl_libs=`$_libcurl_config --static-libs`
  11672.             for i in $_full_libcurl_libs; do
  11673.                 case $i in
  11674.                     -lcurl)
  11675.                 ;;
  11676.                     -l*)
  11677.                         _lib_name=`echo "$i" | cut -b3-`
  11678.                         as_ac_Lib=`$as_echo "ac_cv_lib_$_lib_name ''_main" | $as_tr_sh`
  11679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$_lib_name " >&5
  11680. $as_echo_n "checking for main in -l$_lib_name ... " >&6; }
  11681. if eval \${$as_ac_Lib+:} false; then :
  11682.  $as_echo_n "(cached) " >&6
  11683. else
  11684.  ac_check_lib_save_LIBS=$LIBS
  11685. LIBS="-l$_lib_name   $LIBS"
  11686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11687. /* end confdefs.h.  */
  11688.  
  11689.  
  11690. int
  11691. main ()
  11692. {
  11693. return main ();
  11694.  ;
  11695.  return 0;
  11696. }
  11697. _ACEOF
  11698. if ac_fn_c_try_link "$LINENO"; then :
  11699.  eval "$as_ac_Lib=yes"
  11700. else
  11701.  eval "$as_ac_Lib=no"
  11702. fi
  11703. rm -f core conftest.err conftest.$ac_objext \
  11704.    conftest$ac_exeext conftest.$ac_ext
  11705. LIBS=$ac_check_lib_save_LIBS
  11706. fi
  11707. eval ac_res=\$$as_ac_Lib
  11708.            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11709. $as_echo "$ac_res" >&6; }
  11710. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  11711.  
  11712.                                 LIBCURL_LIBS="$LIBCURL_LIBS $i"
  11713.  
  11714. else
  11715.  
  11716.                                 as_fn_error $? "static library $_lib_name required for linking libcurl not found" "$LINENO" 5
  11717.  
  11718. fi
  11719.  
  11720.  
  11721.                 ;;
  11722.                 esac
  11723.             done
  11724.         fi
  11725.  
  11726.         _save_curl_cflags="$CFLAGS"
  11727.         _save_curl_ldflags="$LDFLAGS"
  11728.         _save_curl_libs="$LIBS"
  11729.         CFLAGS="$CFLAGS $LIBCURL_CFLAGS"
  11730.         LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS"
  11731.         LIBS="$LIBS $LIBCURL_LIBS"
  11732.  
  11733.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurl" >&5
  11734. $as_echo_n "checking for main in -lcurl... " >&6; }
  11735. if ${ac_cv_lib_curl_main+:} false; then :
  11736.  $as_echo_n "(cached) " >&6
  11737. else
  11738.  ac_check_lib_save_LIBS=$LIBS
  11739. LIBS="-lcurl  $LIBS"
  11740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11741. /* end confdefs.h.  */
  11742.  
  11743.  
  11744. int
  11745. main ()
  11746. {
  11747. return main ();
  11748.  ;
  11749.  return 0;
  11750. }
  11751. _ACEOF
  11752. if ac_fn_c_try_link "$LINENO"; then :
  11753.  ac_cv_lib_curl_main=yes
  11754. else
  11755.  ac_cv_lib_curl_main=no
  11756. fi
  11757. rm -f core conftest.err conftest.$ac_objext \
  11758.    conftest$ac_exeext conftest.$ac_ext
  11759. LIBS=$ac_check_lib_save_LIBS
  11760. fi
  11761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_main" >&5
  11762. $as_echo "$ac_cv_lib_curl_main" >&6; }
  11763. if test "x$ac_cv_lib_curl_main" = xyes; then :
  11764.  cat >>confdefs.h <<_ACEOF
  11765. #define HAVE_LIBCURL 1
  11766. _ACEOF
  11767.  
  11768.  LIBS="-lcurl $LIBS"
  11769.  
  11770. else
  11771.  as_fn_error $? "libcurl library not found" "$LINENO" 5
  11772. fi
  11773.  
  11774.  
  11775.         CFLAGS="$_save_curl_cflags"
  11776.         LDFLAGS="$_save_curl_ldflags"
  11777.         LIBS="$_save_curl_libs"
  11778.         unset _save_curl_cflags
  11779.         unset _save_curl_ldflags
  11780.         unset _save_curl_libs
  11781.  
  11782.              # This is so silly, but Apple actually has a bug in their
  11783.           # curl-config script.  Fixed in Tiger, but there are still
  11784.           # lots of Panther installs around.
  11785.              case "${host}" in
  11786.                 powerpc-apple-darwin7*)
  11787.                    LIBCURL_LIBS=`echo $LIBCURL_LIBS | sed -e 's|-arch i386||g'`
  11788.                 ;;
  11789.              esac
  11790.           fi
  11791.  
  11792.        # All curl-config scripts support --feature
  11793.        _libcurl_features=`$_libcurl_config --feature`
  11794.  
  11795.           # Is it modern enough to have --protocols? (7.12.4)
  11796.        if test $_libcurl_version -ge 461828; then
  11797.              _libcurl_protocols=`$_libcurl_config --protocols`
  11798.           fi
  11799.  
  11800.           _libcurl_try_link=yes
  11801.     fi
  11802.  
  11803.     unset _libcurl_wanted
  11804.     fi
  11805.     if test "x$_libcurl_try_link" = "xyes"; then
  11806.        # we didn't find curl-config, so let's see if the user-supplied
  11807.        # link line (or failing that, "-lcurl") is enough.
  11808.        LIBCURL_LIBS=${LIBCURL_LIBS-"$_libcurl_libs -lcurl"}
  11809.  
  11810.        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  11811. $as_echo_n "checking whether libcurl is usable... " >&6; }
  11812. if ${libcurl_cv_lib_curl_usable+:} false; then :
  11813.  $as_echo_n "(cached) " >&6
  11814. else
  11815.  
  11816.         _save_curl_libs="${LIBS}"
  11817.         _save_curl_ldflags="${LDFLAGS}"
  11818.         _save_curl_cflags="${CFLAGS}"
  11819.         LIBS="${LIBS} ${LIBCURL_LIBS}"
  11820.         LDFLAGS="${LDFLAGS} ${LIBCURL_LDFLAGS}"
  11821.         CFLAGS="${CFLAGS} ${LIBCURL_CFLAGS}"
  11822.  
  11823.           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h.  */
  11825. #include <curl/curl.h>
  11826. #ifndef NULL
  11827. #define NULL (void *)0
  11828. #endif
  11829. int
  11830. main ()
  11831. {
  11832.  
  11833. /* Try and use a few common options to force a failure if we are
  11834.   missing symbols or can't link. */
  11835. int x;
  11836. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  11837. x=CURL_ERROR_SIZE;
  11838. x=CURLOPT_WRITEFUNCTION;
  11839. x=CURLOPT_FILE;
  11840. x=CURLOPT_ERRORBUFFER;
  11841. x=CURLOPT_STDERR;
  11842. x=CURLOPT_VERBOSE;
  11843.  
  11844.  ;
  11845.  return 0;
  11846. }
  11847. _ACEOF
  11848. if ac_fn_c_try_link "$LINENO"; then :
  11849.  libcurl_cv_lib_curl_usable=yes
  11850. else
  11851.  libcurl_cv_lib_curl_usable=no
  11852. fi
  11853. rm -f core conftest.err conftest.$ac_objext \
  11854.    conftest$ac_exeext conftest.$ac_ext
  11855.  
  11856.         LIBS="${_save_curl_libs}"
  11857.         LDFLAGS="${_save_curl_ldflags}"
  11858.         CFLAGS="${_save_curl_cflags}"
  11859.         unset _save_curl_libs
  11860.         unset _save_curl_ldflags
  11861.         unset _save_curl_cflags
  11862.  
  11863. fi
  11864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  11865. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  11866.  
  11867.     if test "x$libcurl_cv_lib_curl_usable" = "xno"; then
  11868.         link_mode="dynamic"
  11869.         if test "x$enable_static" = "xyes"; then
  11870.             link_mode="static"
  11871.         fi
  11872.         as_fn_error $? "libcurl is not available for ${link_mode} linking" "$LINENO" 5
  11873.     fi
  11874.  
  11875.     # Does curl_free() exist in this version of libcurl?
  11876.     # If not, fake it with free()
  11877.  
  11878.     _save_curl_libs="${LIBS}"
  11879.     _save_curl_ldflags="${LDFLAGS}"
  11880.     _save_curl_cflags="${CFLAGS}"
  11881.     LIBS="${LIBS} ${LIBCURL_LIBS}"
  11882.     LDFLAGS="${LDFLAGS} ${LIBCURL_LDFLAGS}"
  11883.     CFLAGS="${CFLAGS} ${LIBCURL_CFLAGS}"
  11884.  
  11885.     ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  11886. if test "x$ac_cv_func_curl_free" = xyes; then :
  11887.  
  11888. else
  11889.  
  11890. $as_echo "#define curl_free free" >>confdefs.h
  11891.  
  11892. fi
  11893.  
  11894.  
  11895.     ac_fn_c_check_func "$LINENO" "curl_easy_escape" "ac_cv_func_curl_easy_escape"
  11896. if test "x$ac_cv_func_curl_easy_escape" = xyes; then :
  11897.  
  11898. $as_echo "#define HAVE_FUNCTION_CURL_EASY_ESCAPE 1" >>confdefs.h
  11899.  
  11900. fi
  11901.  
  11902.  
  11903.     LIBS="${_save_curl_libs}"
  11904.     LDFLAGS="${_save_curl_ldflags}"
  11905.     CFLAGS="${_save_curl_cflags}"
  11906.     unset _save_curl_libs
  11907.     unset _save_curl_ldflags
  11908.     unset _save_curl_cflags
  11909.  
  11910.  
  11911. $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
  11912.  
  11913.  
  11914.  
  11915.  
  11916.     found_curl="yes"
  11917.  
  11918.     for _libcurl_feature in $_libcurl_features ; do
  11919.         cat >>confdefs.h <<_ACEOF
  11920. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  11921. _ACEOF
  11922.  
  11923.         eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  11924.     done
  11925.  
  11926.     if test "x$_libcurl_protocols" = "x"; then
  11927.         # We don't have --protocols, so just assume that all
  11928.         # protocols are available
  11929.         _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  11930.  
  11931.         if test "x$libcurl_feature_SSL" = "xyes"; then
  11932.             _libcurl_protocols="$_libcurl_protocols HTTPS"
  11933.  
  11934.             # FTPS wasn't standards-compliant until version
  11935.             # 7.11.0
  11936.             if test $_libcurl_version -ge 461568; then
  11937.                 _libcurl_protocols="$_libcurl_protocols FTPS"
  11938.             fi
  11939.         fi
  11940.     fi
  11941.  
  11942.     for _libcurl_protocol in $_libcurl_protocols ; do
  11943.         cat >>confdefs.h <<_ACEOF
  11944. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  11945. _ACEOF
  11946.  
  11947.         eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  11948.        done
  11949.     else
  11950.        unset LIBCURL_LIBS
  11951.        unset LIBCURL_CFLAGS
  11952.     fi
  11953.  
  11954.     unset _libcurl_try_link
  11955.     unset _libcurl_version_parse
  11956.     unset _libcurl_config
  11957.     unset _libcurl_feature
  11958.     unset _libcurl_features
  11959.     unset _libcurl_protocol
  11960.     unset _libcurl_protocols
  11961.     unset _libcurl_version
  11962.     unset _libcurl_libs
  11963.  fi
  11964.  
  11965.  if test "x$want_curl" = "xno" || test "x$libcurl_cv_lib_curl_usable" != "xyes"; then
  11966.     # This is the IF-NO path
  11967.     :
  11968.  else
  11969.     # This is the IF-YES path
  11970.     :
  11971.  fi
  11972.  
  11973.  
  11974. if test "x$want_curl" = "xyes"; then
  11975.     if test "x$found_curl" != "xyes"; then
  11976.         as_fn_error $? "Curl library not found" "$LINENO" 5
  11977.     fi
  11978. fi
  11979. if test "x$found_curl" = "xyes"; then
  11980.     have_web_monitoring="cURL"
  11981. fi
  11982. CFLAGS="$LIBCURL_CFLAGS $CFLAGS"
  11983.  
  11984. SERVER_LDFLAGS="$SERVER_LDFLAGS $LIBCURL_LDFLAGS"
  11985. SERVER_LIBS="$SERVER_LIBS $LIBCURL_LIBS"
  11986.  
  11987. PROXY_LDFLAGS="$PROXY_LDFLAGS $LIBCURL_LDFLAGS"
  11988. PROXY_LIBS="$PROXY_LIBS $LIBCURL_LIBS"
  11989.  
  11990. AGENT_LDFLAGS="$AGENT_LDFLAGS $LIBCURL_LDFLAGS"
  11991. AGENT_LIBS="$AGENT_LIBS $LIBCURL_LIBS"
  11992.  
  11993. found_iconv="no"
  11994.  
  11995.  
  11996. # Check whether --with-iconv was given.
  11997. if test "${with_iconv+set}" = set; then :
  11998.  withval=$with_iconv;
  11999.             ICONV_CFLAGS="-I/$withval/include"
  12000.             ICONV_LDFLAGS="-L/$withval/lib"
  12001.             _iconv_dir_set="yes"
  12002.  
  12003.  
  12004. fi
  12005.  
  12006.  
  12007.  
  12008. # Check whether --with-iconv-include was given.
  12009. if test "${with_iconv_include+set}" = set; then :
  12010.  withval=$with_iconv_include;
  12011.             ICONV_CFLAGS="-I/$withval"
  12012.             _iconv_dir_set="yes"
  12013.  
  12014.  
  12015. fi
  12016.  
  12017.  
  12018.  
  12019. # Check whether --with-iconv-lib was given.
  12020. if test "${with_iconv_lib+set}" = set; then :
  12021.  withval=$with_iconv_lib;
  12022.             ICONV_LDFLAGS="-L/$withval"
  12023.             _iconv_dir_set="yes"
  12024.  
  12025.  
  12026. fi
  12027.  
  12028.  
  12029.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICONV support" >&5
  12030. $as_echo_n "checking for ICONV support... " >&6; }
  12031.  
  12032.     if test -n "$_iconv_dir_set" -o -f /usr/include/iconv.h; then
  12033.         found_iconv="yes"
  12034.     elif test -f /usr/local/include/iconv.h; then
  12035.         ICONV_CFLAGS="-I/usr/local/include"
  12036.         ICONV_LDFLAGS="-L/usr/local/lib"
  12037.         found_iconv="yes"
  12038.     else
  12039.         found_iconv="no"
  12040.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12041. $as_echo "no" >&6; }
  12042.     fi
  12043.  
  12044.     if test "x$found_iconv" = "xyes"; then
  12045.         am_save_CFLAGS="$CFLAGS"
  12046.         am_save_LDFLAGS="$LDFLAGS"
  12047.  
  12048.         CFLAGS="$CFLAGS $ICONV_CFLAGS"
  12049.         LDFLAGS="$LDFLAGS $ICONV_LDFLAGS"
  12050.  
  12051.         found_iconv="no"
  12052.  
  12053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12054. /* end confdefs.h.  */
  12055.  
  12056. #include <stdlib.h>
  12057. #include <iconv.h>
  12058.  
  12059. int
  12060. main ()
  12061. {
  12062.  
  12063.     iconv_t cd = iconv_open("","");
  12064.     iconv(cd, NULL, NULL, NULL, NULL);
  12065.     iconv_close(cd);
  12066.  
  12067.  ;
  12068.  return 0;
  12069. }
  12070. _ACEOF
  12071. if ac_fn_c_try_link "$LINENO"; then :
  12072.  found_iconv="yes"
  12073. fi
  12074. rm -f core conftest.err conftest.$ac_objext \
  12075.    conftest$ac_exeext conftest.$ac_ext
  12076.  
  12077.  
  12078.         if test "x$found_iconv" = "xno"; then
  12079.             am_save_LIBS="$LIBS"
  12080.             LIBS="$LIBS -liconv"
  12081.  
  12082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12083. /* end confdefs.h.  */
  12084.  
  12085. #include <stdlib.h>
  12086. #include <iconv.h>
  12087.  
  12088. int
  12089. main ()
  12090. {
  12091.  
  12092.     iconv_t cd = iconv_open("","");
  12093.     iconv(cd, NULL, NULL, NULL, NULL);
  12094.     iconv_close(cd);
  12095.  
  12096.  ;
  12097.  return 0;
  12098. }
  12099. _ACEOF
  12100. if ac_fn_c_try_link "$LINENO"; then :
  12101.  found_iconv="yes"
  12102. fi
  12103. rm -f core conftest.err conftest.$ac_objext \
  12104.    conftest$ac_exeext conftest.$ac_ext
  12105.  
  12106.             LIBS="$am_save_LIBS"
  12107.  
  12108.             if test "x$found_iconv" = "xyes"; then
  12109.                 ICONV_LIBS="-liconv"
  12110.             fi
  12111.         fi
  12112.  
  12113.         CFLAGS="$am_save_CFLAGS"
  12114.         LDFLAGS="$am_save_LDFLAGS"
  12115.     fi
  12116.  
  12117.     if test "x$found_iconv" = "xyes"; then
  12118.  
  12119. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  12120.  
  12121.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12122. $as_echo "yes" >&6; }
  12123.     else
  12124.         ICONV_CFLAGS=""
  12125.         ICONV_LDFLAGS=""
  12126.     fi
  12127.  
  12128.  
  12129.  
  12130.  
  12131. if test "x$found_iconv" != "xyes"; then
  12132.     as_fn_error $? "Unable to use iconv (libiconv check failed)" "$LINENO" 5
  12133. fi
  12134. LDFLAGS="$LDFLAGS $ICONV_LDFLAGS"
  12135. LIBS="$LIBS $ICONV_LIBS"
  12136.  
  12137.  
  12138.  
  12139. RANLIB="ranlib"
  12140.  
  12141.  
  12142.  
  12143.  
  12144.  
  12145.  
  12146.  
  12147.  
  12148.  
  12149.  
  12150.  
  12151.  
  12152.  
  12153.  
  12154.  
  12155.  
  12156.  
  12157.  
  12158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkdir -p candidate" >&5
  12159. $as_echo_n "checking for mkdir -p candidate... " >&6; }
  12160. if test "x${MKDIR_P}" = "x"; then
  12161.        if test "x${mkdir_p}" = "x"; then
  12162.                as_fn_error $? "No suitable \"mkdir -p\" candidate found." "$LINENO" 5
  12163.        fi
  12164.        MKDIR_P=${mkdir_p}
  12165.  
  12166. fi
  12167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${MKDIR_P})" >&5
  12168. $as_echo "ok (${MKDIR_P})" >&6; }
  12169.  
  12170. case "x$ARCH" in
  12171.     xlinux|xsolaris)
  12172.  
  12173. $as_echo "#define ZBX_PROCSTAT_COLLECTOR 1 " >>confdefs.h
  12174.  
  12175.         ;;
  12176. esac
  12177.  
  12178.  
  12179.  
  12180. ac_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/zbxhttp/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/libs/zbxtasks/Makefile src/libs/zbxipcservice/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/escalator/Makefile src/zabbix_server/proxypoller/Makefile src/zabbix_server/selfmon/Makefile src/zabbix_server/vmware/Makefile src/zabbix_server/taskmanager/Makefile src/zabbix_server/ipmi/Makefile src/zabbix_server/scripts/Makefile src/zabbix_server/preprocessor/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_proxy/taskmanager/Makefile src/zabbix_java/Makefile upgrades/Makefile man/Makefile"
  12181.  
  12182. cat >confcache <<\_ACEOF
  12183. # This file is a shell script that caches the results of configure
  12184. # tests run on this system so they can be shared between configure
  12185. # scripts and configure runs, see configure's option --config-cache.
  12186. # It is not useful on other systems.  If it contains results you don't
  12187. # want to keep, you may remove or edit it.
  12188. #
  12189. # config.status only pays attention to the cache file if you give it
  12190. # the --recheck option to rerun configure.
  12191. #
  12192. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12193. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12194. # following values.
  12195.  
  12196. _ACEOF
  12197.  
  12198. # The following way of writing the cache mishandles newlines in values,
  12199. # but we know of no workaround that is simple, portable, and efficient.
  12200. # So, we kill variables containing newlines.
  12201. # Ultrix sh set writes to stderr and can't be redirected directly,
  12202. # and sets the high bit in the cache file unless we assign to the vars.
  12203. (
  12204.  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12205.    eval ac_val=\$$ac_var
  12206.    case $ac_val in #(
  12207.    *${as_nl}*)
  12208.      case $ac_var in #(
  12209.      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12210. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12211.      esac
  12212.      case $ac_var in #(
  12213.      _ | IFS | as_nl) ;; #(
  12214.      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12215.      *) { eval $ac_var=; unset $ac_var;} ;;
  12216.      esac ;;
  12217.    esac
  12218.  done
  12219.  
  12220.  (set) 2>&1 |
  12221.    case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12222.    *${as_nl}ac_space=\ *)
  12223.      # `set' does not quote correctly, so add quotes: double-quote
  12224.      # substitution turns \\\\ into \\, and sed turns \\ into \.
  12225.      sed -n \
  12226.     "s/'/'\\\\''/g;
  12227.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12228.      ;; #(
  12229.    *)
  12230.      # `set' quotes correctly as required by POSIX, so do not add quotes.
  12231.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12232.       ;;
  12233.     esac |
  12234.     sort
  12235. ) |
  12236.   sed '
  12237.     /^ac_cv_env_/b end
  12238.     t clear
  12239.     :clear
  12240.     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12241.     t end
  12242.     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12243.     :end' >>confcache
  12244. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12245.   if test -w "$cache_file"; then
  12246.     if test "x$cache_file" != "x/dev/null"; then
  12247.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12248. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12249.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  12250.     cat confcache >"$cache_file"
  12251.       else
  12252.         case $cache_file in #(
  12253.         */* | ?:*)
  12254.       mv -f confcache "$cache_file"$$ &&
  12255.       mv -f "$cache_file"$$ "$cache_file" ;; #(
  12256.         *)
  12257.       mv -f confcache "$cache_file" ;;
  12258.     esac
  12259.       fi
  12260.     fi
  12261.   else
  12262.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12263. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12264.   fi
  12265. fi
  12266. rm -f confcache
  12267.  
  12268. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12269. # Let make expand exec_prefix.
  12270. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12271.  
  12272. DEFS=-DHAVE_CONFIG_H
  12273.  
  12274. ac_libobjs=
  12275. ac_ltlibobjs=
  12276. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12277.   # 1. Remove the extension, and $U if already installed.
  12278.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12279.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12280.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  12281.   #    will be set to the directory where LIBOBJS objects are built.
  12282.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12283.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12284. done
  12285. LIBOBJS=$ac_libobjs
  12286.  
  12287. LTLIBOBJS=$ac_ltlibobjs
  12288.  
  12289.  
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12291. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12292.    if test -n "$am_sleep_pid"; then
  12293.      # Hide warnings about reused PIDs.
  12294.      wait $am_sleep_pid 2>/dev/null
  12295.    fi
  12296.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12297. $as_echo "done" >&6; }
  12298.  if test -n "$EXEEXT"; then
  12299.   am__EXEEXT_TRUE=
  12300.   am__EXEEXT_FALSE='#'
  12301. else
  12302.   am__EXEEXT_TRUE='#'
  12303.   am__EXEEXT_FALSE=
  12304. fi
  12305.  
  12306. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12307.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  12308. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12309. fi
  12310. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12311.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12312. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12313. fi
  12314. if test -z "${SERVER_TRUE}" && test -z "${SERVER_FALSE}"; then
  12315.   as_fn_error $? "conditional \"SERVER\" was never defined.
  12316. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12317. fi
  12318. if test -z "${PROXY_TRUE}" && test -z "${PROXY_FALSE}"; then
  12319.   as_fn_error $? "conditional \"PROXY\" was never defined.
  12320. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12321. fi
  12322. if test -z "${AGENT_TRUE}" && test -z "${AGENT_FALSE}"; then
  12323.   as_fn_error $? "conditional \"AGENT\" was never defined.
  12324. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12325. fi
  12326. if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
  12327.   as_fn_error $? "conditional \"JAVA\" was never defined.
  12328. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12329. fi
  12330. if test -z "${ZBXCUNIT_TRUE}" && test -z "${ZBXCUNIT_FALSE}"; then
  12331.   as_fn_error $? "conditional \"ZBXCUNIT\" was never defined.
  12332. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12333. fi
  12334. if test -z "${PROXY_IPCSERVICE_TRUE}" && test -z "${PROXY_IPCSERVICE_FALSE}"; then
  12335.   as_fn_error $? "conditional \"PROXY_IPCSERVICE\" was never defined.
  12336. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12337. fi
  12338.  
  12339. : "${CONFIG_STATUS=./config.status}"
  12340. ac_write_fail=0
  12341. ac_clean_files_save=$ac_clean_files
  12342. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12344. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12345. as_write_fail=0
  12346. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12347. #! $SHELL
  12348. # Generated by $as_me.
  12349. # Run this file to recreate the current configuration.
  12350. # Compiler output produced by configure, useful for debugging
  12351. # configure, is in config.log if it exists.
  12352.  
  12353. debug=false
  12354. ac_cs_recheck=false
  12355. ac_cs_silent=false
  12356.  
  12357. SHELL=\${CONFIG_SHELL-$SHELL}
  12358. export SHELL
  12359. _ASEOF
  12360. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12361. ## -------------------- ##
  12362. ## M4sh Initialization. ##
  12363. ## -------------------- ##
  12364.  
  12365. # Be more Bourne compatible
  12366. DUALCASE=1; export DUALCASE # for MKS sh
  12367. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12368.   emulate sh
  12369.   NULLCMD=:
  12370.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12371.   # is contrary to our usage.  Disable this feature.
  12372.   alias -g '${1+"$@"}'='"$@"'
  12373.   setopt NO_GLOB_SUBST
  12374. else
  12375.   case `(set -o) 2>/dev/null` in #(
  12376.   *posix*) :
  12377.     set -o posix ;; #(
  12378.   *) :
  12379.      ;;
  12380. esac
  12381. fi
  12382.  
  12383.  
  12384. as_nl='
  12385. '
  12386. export as_nl
  12387. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12388. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12389. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12390. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12391. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12392. # but without wasting forks for bash or zsh.
  12393. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12394.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12395.   as_echo='print -r --'
  12396.   as_echo_n='print -rn --'
  12397. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12398.   as_echo='printf %s\n'
  12399.   as_echo_n='printf %s'
  12400. else
  12401.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12402.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12403.     as_echo_n='/usr/ucb/echo -n'
  12404.   else
  12405.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12406.     as_echo_n_body='eval
  12407.      arg=$1;
  12408.      case $arg in #(
  12409.      *"$as_nl"*)
  12410.     expr "X$arg" : "X\\(.*\\)$as_nl";
  12411.     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12412.      esac;
  12413.      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12414.    '
  12415.     export as_echo_n_body
  12416.     as_echo_n='sh -c $as_echo_n_body as_echo'
  12417.   fi
  12418.   export as_echo_body
  12419.   as_echo='sh -c $as_echo_body as_echo'
  12420. fi
  12421.  
  12422. # The user is always right.
  12423. if test "${PATH_SEPARATOR+set}" != set; then
  12424.   PATH_SEPARATOR=:
  12425.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12426.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12427.       PATH_SEPARATOR=';'
  12428.   }
  12429. fi
  12430.  
  12431.  
  12432. # IFS
  12433. # We need space, tab and new line, in precisely that order.  Quoting is
  12434. # there to prevent editors from complaining about space-tab.
  12435. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12436. # splitting by setting IFS to empty value.)
  12437. IFS=" ""    $as_nl"
  12438.  
  12439. # Find who we are.  Look in the path if we contain no directory separator.
  12440. as_myself=
  12441. case $0 in #((
  12442.   *[\\/]* ) as_myself=$0 ;;
  12443.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12444. for as_dir in $PATH
  12445. do
  12446.   IFS=$as_save_IFS
  12447.   test -z "$as_dir" && as_dir=.
  12448.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12449.   done
  12450. IFS=$as_save_IFS
  12451.  
  12452.      ;;
  12453. esac
  12454. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12455. # in which case we are not to be found in the path.
  12456. if test "x$as_myself" = x; then
  12457.   as_myself=$0
  12458. fi
  12459. if test ! -f "$as_myself"; then
  12460.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12461.   exit 1
  12462. fi
  12463.  
  12464. # Unset variables that we do not need and which cause bugs (e.g. in
  12465. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  12466. # suppresses any "Segmentation fault" message there.  '((' could
  12467. # trigger a bug in pdksh 5.2.14.
  12468. for as_var in BASH_ENV ENV MAIL MAILPATH
  12469. do eval test x\${$as_var+set} = xset \
  12470.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12471. done
  12472. PS1='$ '
  12473. PS2='> '
  12474. PS4='+ '
  12475.  
  12476. # NLS nuisances.
  12477. LC_ALL=C
  12478. export LC_ALL
  12479. LANGUAGE=C
  12480. export LANGUAGE
  12481.  
  12482. # CDPATH.
  12483. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12484.  
  12485.  
  12486. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12487. # ----------------------------------------
  12488. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12489. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12490. # script with STATUS, using 1 if that was 0.
  12491. as_fn_error ()
  12492. {
  12493.   as_status=$1; test $as_status -eq 0 && as_status=1
  12494.   if test "$4"; then
  12495.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12496.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12497.   fi
  12498.   $as_echo "$as_me: error: $2" >&2
  12499.   as_fn_exit $as_status
  12500. } # as_fn_error
  12501.  
  12502.  
  12503. # as_fn_set_status STATUS
  12504. # -----------------------
  12505. # Set $? to STATUS, without forking.
  12506. as_fn_set_status ()
  12507. {
  12508.   return $1
  12509. } # as_fn_set_status
  12510.  
  12511. # as_fn_exit STATUS
  12512. # -----------------
  12513. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12514. as_fn_exit ()
  12515. {
  12516.   set +e
  12517.   as_fn_set_status $1
  12518.   exit $1
  12519. } # as_fn_exit
  12520.  
  12521. # as_fn_unset VAR
  12522. # ---------------
  12523. # Portably unset VAR.
  12524. as_fn_unset ()
  12525. {
  12526.   { eval $1=; unset $1;}
  12527. }
  12528. as_unset=as_fn_unset
  12529. # as_fn_append VAR VALUE
  12530. # ----------------------
  12531. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12532. # advantage of any shell optimizations that allow amortized linear growth over
  12533. # repeated appends, instead of the typical quadratic growth present in naive
  12534. # implementations.
  12535. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12536.   eval 'as_fn_append ()
  12537.  {
  12538.    eval $1+=\$2
  12539.  }'
  12540. else
  12541.   as_fn_append ()
  12542.   {
  12543.     eval $1=\$$1\$2
  12544.   }
  12545. fi # as_fn_append
  12546.  
  12547. # as_fn_arith ARG...
  12548. # ------------------
  12549. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12550. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12551. # must be portable across $(()) and expr.
  12552. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12553.   eval 'as_fn_arith ()
  12554.  {
  12555.    as_val=$(( $* ))
  12556.  }'
  12557. else
  12558.   as_fn_arith ()
  12559.   {
  12560.     as_val=`expr "$@" || test $? -eq 1`
  12561.   }
  12562. fi # as_fn_arith
  12563.  
  12564.  
  12565. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12566.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12567.   as_expr=expr
  12568. else
  12569.   as_expr=false
  12570. fi
  12571.  
  12572. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12573.   as_basename=basename
  12574. else
  12575.   as_basename=false
  12576. fi
  12577.  
  12578. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12579.   as_dirname=dirname
  12580. else
  12581.   as_dirname=false
  12582. fi
  12583.  
  12584. as_me=`$as_basename -- "$0" ||
  12585. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12586.      X"$0" : 'X\(//\)$' \| \
  12587.      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12588. $as_echo X/"$0" |
  12589.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  12590.         s//\1/
  12591.         q
  12592.       }
  12593.       /^X\/\(\/\/\)$/{
  12594.         s//\1/
  12595.         q
  12596.       }
  12597.       /^X\/\(\/\).*/{
  12598.         s//\1/
  12599.         q
  12600.       }
  12601.       s/.*/./; q'`
  12602.  
  12603. # Avoid depending upon Character Ranges.
  12604. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12605. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12606. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12607. as_cr_digits='0123456789'
  12608. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12609.  
  12610. ECHO_C= ECHO_N= ECHO_T=
  12611. case `echo -n x` in #(((((
  12612. -n*)
  12613.   case `echo 'xy\c'` in
  12614.   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12615.   xy)  ECHO_C='\c';;
  12616.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12617.        ECHO_T=' ';;
  12618.   esac;;
  12619. *)
  12620.   ECHO_N='-n';;
  12621. esac
  12622.  
  12623. rm -f conf$$ conf$$.exe conf$$.file
  12624. if test -d conf$$.dir; then
  12625.   rm -f conf$$.dir/conf$$.file
  12626. else
  12627.   rm -f conf$$.dir
  12628.   mkdir conf$$.dir 2>/dev/null
  12629. fi
  12630. if (echo >conf$$.file) 2>/dev/null; then
  12631.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  12632.     as_ln_s='ln -s'
  12633.     # ... but there are two gotchas:
  12634.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12635.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12636.     # In both cases, we have to default to `cp -pR'.
  12637.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12638.       as_ln_s='cp -pR'
  12639.   elif ln conf$$.file conf$$ 2>/dev/null; then
  12640.     as_ln_s=ln
  12641.   else
  12642.     as_ln_s='cp -pR'
  12643.   fi
  12644. else
  12645.   as_ln_s='cp -pR'
  12646. fi
  12647. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12648. rmdir conf$$.dir 2>/dev/null
  12649.  
  12650.  
  12651. # as_fn_mkdir_p
  12652. # -------------
  12653. # Create "$as_dir" as a directory, including parents if necessary.
  12654. as_fn_mkdir_p ()
  12655. {
  12656.  
  12657.   case $as_dir in #(
  12658.   -*) as_dir=./$as_dir;;
  12659.   esac
  12660.   test -d "$as_dir" || eval $as_mkdir_p || {
  12661.     as_dirs=
  12662.     while :; do
  12663.       case $as_dir in #(
  12664.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12665.       *) as_qdir=$as_dir;;
  12666.       esac
  12667.       as_dirs="'$as_qdir' $as_dirs"
  12668.       as_dir=`$as_dirname -- "$as_dir" ||
  12669. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12670.      X"$as_dir" : 'X\(//\)[^/]' \| \
  12671.      X"$as_dir" : 'X\(//\)$' \| \
  12672.      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12673. $as_echo X"$as_dir" |
  12674.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12675.         s//\1/
  12676.         q
  12677.       }
  12678.       /^X\(\/\/\)[^/].*/{
  12679.         s//\1/
  12680.         q
  12681.       }
  12682.       /^X\(\/\/\)$/{
  12683.         s//\1/
  12684.         q
  12685.       }
  12686.       /^X\(\/\).*/{
  12687.         s//\1/
  12688.         q
  12689.       }
  12690.       s/.*/./; q'`
  12691.       test -d "$as_dir" && break
  12692.     done
  12693.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  12694.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12695.  
  12696.  
  12697. } # as_fn_mkdir_p
  12698. if mkdir -p . 2>/dev/null; then
  12699.   as_mkdir_p='mkdir -p "$as_dir"'
  12700. else
  12701.   test -d ./-p && rmdir ./-p
  12702.   as_mkdir_p=false
  12703. fi
  12704.  
  12705.  
  12706. # as_fn_executable_p FILE
  12707. # -----------------------
  12708. # Test if FILE is an executable regular file.
  12709. as_fn_executable_p ()
  12710. {
  12711.   test -f "$1" && test -x "$1"
  12712. } # as_fn_executable_p
  12713. as_test_x='test -x'
  12714. as_executable_p=as_fn_executable_p
  12715.  
  12716. # Sed expression to map a string onto a valid CPP name.
  12717. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12718.  
  12719. # Sed expression to map a string onto a valid variable name.
  12720. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12721.  
  12722.  
  12723. exec 6>&1
  12724. ## ----------------------------------- ##
  12725. ## Main body of $CONFIG_STATUS script. ##
  12726. ## ----------------------------------- ##
  12727. _ASEOF
  12728. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12729.  
  12730. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12731. # Save the log message, to keep $0 and so on meaningful, and to
  12732. # report actual input values of CONFIG_FILES etc. instead of their
  12733. # values after options handling.
  12734. ac_log="
  12735. This file was extended by Zabbix $as_me 3.4.3, which was
  12736. generated by GNU Autoconf 2.69.  Invocation command line was
  12737.  
  12738.  CONFIG_FILES    = $CONFIG_FILES
  12739.  CONFIG_HEADERS  = $CONFIG_HEADERS
  12740.  CONFIG_LINKS    = $CONFIG_LINKS
  12741.  CONFIG_COMMANDS = $CONFIG_COMMANDS
  12742.  $ $0 $@
  12743.  
  12744. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12745. "
  12746.  
  12747. _ACEOF
  12748.  
  12749. case $ac_config_files in *"
  12750. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12751. esac
  12752.  
  12753. case $ac_config_headers in *"
  12754. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12755. esac
  12756.  
  12757.  
  12758. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12759. # Files that config.status was made for.
  12760. config_files="$ac_config_files"
  12761. config_headers="$ac_config_headers"
  12762. config_commands="$ac_config_commands"
  12763.  
  12764. _ACEOF
  12765.  
  12766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12767. ac_cs_usage="\
  12768. \`$as_me' instantiates files and other configuration actions
  12769. from templates according to the current configuration.  Unless the files
  12770. and actions are specified as TAGs, all are instantiated by default.
  12771.  
  12772. Usage: $0 [OPTION]... [TAG]...
  12773.  
  12774.  -h, --help       print this help, then exit
  12775.  -V, --version    print version number and configuration settings, then exit
  12776.      --config     print configuration, then exit
  12777.  -q, --quiet, --silent
  12778.                   do not print progress messages
  12779.  -d, --debug      don't remove temporary files
  12780.      --recheck    update $as_me by reconfiguring in the same conditions
  12781.      --file=FILE[:TEMPLATE]
  12782.                   instantiate the configuration file FILE
  12783.      --header=FILE[:TEMPLATE]
  12784.                   instantiate the configuration header FILE
  12785.  
  12786. Configuration files:
  12787. $config_files
  12788.  
  12789. Configuration headers:
  12790. $config_headers
  12791.  
  12792. Configuration commands:
  12793. $config_commands
  12794.  
  12795. Report bugs to the package provider."
  12796.  
  12797. _ACEOF
  12798. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12799. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12800. ac_cs_version="\\
  12801. Zabbix config.status 3.4.3
  12802. configured by $0, generated by GNU Autoconf 2.69,
  12803.  with options \\"\$ac_cs_config\\"
  12804.  
  12805. Copyright (C) 2012 Free Software Foundation, Inc.
  12806. This config.status script is free software; the Free Software Foundation
  12807. gives unlimited permission to copy, distribute and modify it."
  12808.  
  12809. ac_pwd='$ac_pwd'
  12810. srcdir='$srcdir'
  12811. INSTALL='$INSTALL'
  12812. MKDIR_P='$MKDIR_P'
  12813. AWK='$AWK'
  12814. test -n "\$AWK" || AWK=awk
  12815. _ACEOF
  12816.  
  12817. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12818. # The default lists apply if the user does not specify any file.
  12819. ac_need_defaults=:
  12820. while test $# != 0
  12821. do
  12822.  case $1 in
  12823.  --*=?*)
  12824.    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12825.    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12826.    ac_shift=:
  12827.    ;;
  12828.  --*=)
  12829.    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12830.    ac_optarg=
  12831.    ac_shift=:
  12832.    ;;
  12833.  *)
  12834.    ac_option=$1
  12835.    ac_optarg=$2
  12836.    ac_shift=shift
  12837.    ;;
  12838.  esac
  12839.  
  12840.  case $ac_option in
  12841.  # Handling of the options.
  12842.  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12843.    ac_cs_recheck=: ;;
  12844.  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12845.    $as_echo "$ac_cs_version"; exit ;;
  12846.  --config | --confi | --conf | --con | --co | --c )
  12847.    $as_echo "$ac_cs_config"; exit ;;
  12848.  --debug | --debu | --deb | --de | --d | -d )
  12849.    debug=: ;;
  12850.  --file | --fil | --fi | --f )
  12851.    $ac_shift
  12852.    case $ac_optarg in
  12853.    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12854.     '') as_fn_error $? "missing file argument" ;;
  12855.     esac
  12856.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  12857.     ac_need_defaults=false;;
  12858.   --header | --heade | --head | --hea )
  12859.     $ac_shift
  12860.     case $ac_optarg in
  12861.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12862.     esac
  12863.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12864.     ac_need_defaults=false;;
  12865.   --he | --h)
  12866.     # Conflict between --help and --header
  12867.     as_fn_error $? "ambiguous option: \`$1'
  12868. Try \`$0 --help' for more information.";;
  12869.   --help | --hel | -h )
  12870.     $as_echo "$ac_cs_usage"; exit ;;
  12871.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12872.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12873.     ac_cs_silent=: ;;
  12874.  
  12875.   # This is an error.
  12876.   -*) as_fn_error $? "unrecognized option: \`$1'
  12877. Try \`$0 --help' for more information." ;;
  12878.  
  12879.   *) as_fn_append ac_config_targets " $1"
  12880.      ac_need_defaults=false ;;
  12881.  
  12882.   esac
  12883.   shift
  12884. done
  12885.  
  12886. ac_configure_extra_args=
  12887.  
  12888. if $ac_cs_silent; then
  12889.   exec 6>/dev/null
  12890.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  12891. fi
  12892.  
  12893. _ACEOF
  12894. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12895. if \$ac_cs_recheck; then
  12896.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12897.   shift
  12898.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12899.   CONFIG_SHELL='$SHELL'
  12900.   export CONFIG_SHELL
  12901.   exec "\$@"
  12902. fi
  12903.  
  12904. _ACEOF
  12905. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12906. exec 5>>config.log
  12907. {
  12908.   echo
  12909.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12910. ## Running $as_me. ##
  12911. _ASBOX
  12912.   $as_echo "$ac_log"
  12913. } >&5
  12914.  
  12915. _ACEOF
  12916. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12917. #
  12918. # INIT-COMMANDS
  12919. #
  12920. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12921.  
  12922. _ACEOF
  12923.  
  12924. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12925.  
  12926. # Handling of arguments.
  12927. for ac_config_target in $ac_config_targets
  12928. do
  12929.   case $ac_config_target in
  12930.     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  12931.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12932.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12933.     "database/Makefile") CONFIG_FILES="$CONFIG_FILES database/Makefile" ;;
  12934.     "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
  12935.     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12936.     "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
  12937.     "src/libs/zbxlog/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxlog/Makefile" ;;
  12938.     "src/libs/zbxalgo/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxalgo/Makefile" ;;
  12939.     "src/libs/zbxmemory/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxmemory/Makefile" ;;
  12940.     "src/libs/zbxcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcrypto/Makefile" ;;
  12941.     "src/libs/zbxconf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxconf/Makefile" ;;
  12942.     "src/libs/zbxdbcache/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdbcache/Makefile" ;;
  12943.     "src/libs/zbxdbhigh/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdbhigh/Makefile" ;;
  12944.     "src/libs/zbxmedia/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxmedia/Makefile" ;;
  12945.     "src/libs/zbxsysinfo/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/Makefile" ;;
  12946.     "src/libs/zbxcommon/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcommon/Makefile" ;;
  12947.     "src/libs/zbxsysinfo/agent/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/agent/Makefile" ;;
  12948.     "src/libs/zbxsysinfo/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/common/Makefile" ;;
  12949.     "src/libs/zbxsysinfo/simple/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/simple/Makefile" ;;
  12950.     "src/libs/zbxsysinfo/linux/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/linux/Makefile" ;;
  12951.     "src/libs/zbxsysinfo/aix/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/aix/Makefile" ;;
  12952.     "src/libs/zbxsysinfo/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/freebsd/Makefile" ;;
  12953.     "src/libs/zbxsysinfo/hpux/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/hpux/Makefile" ;;
  12954.     "src/libs/zbxsysinfo/openbsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/openbsd/Makefile" ;;
  12955.     "src/libs/zbxsysinfo/osx/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/osx/Makefile" ;;
  12956.     "src/libs/zbxsysinfo/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/solaris/Makefile" ;;
  12957.     "src/libs/zbxsysinfo/osf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/osf/Makefile" ;;
  12958.     "src/libs/zbxsysinfo/netbsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/netbsd/Makefile" ;;
  12959.     "src/libs/zbxsysinfo/unknown/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsysinfo/unknown/Makefile" ;;
  12960.     "src/libs/zbxnix/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxnix/Makefile" ;;
  12961.     "src/libs/zbxsys/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxsys/Makefile" ;;
  12962.     "src/libs/zbxcomms/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcomms/Makefile" ;;
  12963.     "src/libs/zbxcommshigh/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxcommshigh/Makefile" ;;
  12964.     "src/libs/zbxdb/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdb/Makefile" ;;
  12965.     "src/libs/zbxdbupgrade/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxdbupgrade/Makefile" ;;
  12966.     "src/libs/zbxjson/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxjson/Makefile" ;;
  12967.     "src/libs/zbxhttp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxhttp/Makefile" ;;
  12968.     "src/libs/zbxserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxserver/Makefile" ;;
  12969.     "src/libs/zbxicmpping/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxicmpping/Makefile" ;;
  12970.     "src/libs/zbxexec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxexec/Makefile" ;;
  12971.     "src/libs/zbxself/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxself/Makefile" ;;
  12972.     "src/libs/zbxmodules/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxmodules/Makefile" ;;
  12973.     "src/libs/zbxregexp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxregexp/Makefile" ;;
  12974.     "src/libs/zbxtasks/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxtasks/Makefile" ;;
  12975.     "src/libs/zbxipcservice/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/zbxipcservice/Makefile" ;;
  12976.     "src/zabbix_agent/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_agent/Makefile" ;;
  12977.     "src/zabbix_get/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_get/Makefile" ;;
  12978.     "src/zabbix_sender/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_sender/Makefile" ;;
  12979.     "src/zabbix_server/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/Makefile" ;;
  12980.     "src/zabbix_server/alerter/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/alerter/Makefile" ;;
  12981.     "src/zabbix_server/dbsyncer/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/dbsyncer/Makefile" ;;
  12982.     "src/zabbix_server/dbconfig/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/dbconfig/Makefile" ;;
  12983.     "src/zabbix_server/discoverer/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/discoverer/Makefile" ;;
  12984.     "src/zabbix_server/housekeeper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/housekeeper/Makefile" ;;
  12985.     "src/zabbix_server/httppoller/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/httppoller/Makefile" ;;
  12986.     "src/zabbix_server/pinger/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/pinger/Makefile" ;;
  12987.     "src/zabbix_server/poller/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/poller/Makefile" ;;
  12988.     "src/zabbix_server/snmptrapper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/snmptrapper/Makefile" ;;
  12989.     "src/zabbix_server/timer/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/timer/Makefile" ;;
  12990.     "src/zabbix_server/trapper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/trapper/Makefile" ;;
  12991.     "src/zabbix_server/escalator/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/escalator/Makefile" ;;
  12992.     "src/zabbix_server/proxypoller/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/proxypoller/Makefile" ;;
  12993.     "src/zabbix_server/selfmon/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/selfmon/Makefile" ;;
  12994.     "src/zabbix_server/vmware/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/vmware/Makefile" ;;
  12995.     "src/zabbix_server/taskmanager/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/taskmanager/Makefile" ;;
  12996.     "src/zabbix_server/ipmi/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/ipmi/Makefile" ;;
  12997.     "src/zabbix_server/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/scripts/Makefile" ;;
  12998.     "src/zabbix_server/preprocessor/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_server/preprocessor/Makefile" ;;
  12999.     "src/zabbix_proxy/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/Makefile" ;;
  13000.     "src/zabbix_proxy/heart/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/heart/Makefile" ;;
  13001.     "src/zabbix_proxy/housekeeper/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/housekeeper/Makefile" ;;
  13002.     "src/zabbix_proxy/proxyconfig/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/proxyconfig/Makefile" ;;
  13003.     "src/zabbix_proxy/datasender/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/datasender/Makefile" ;;
  13004.     "src/zabbix_proxy/taskmanager/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_proxy/taskmanager/Makefile" ;;
  13005.     "src/zabbix_java/Makefile") CONFIG_FILES="$CONFIG_FILES src/zabbix_java/Makefile" ;;
  13006.     "upgrades/Makefile") CONFIG_FILES="$CONFIG_FILES upgrades/Makefile" ;;
  13007.     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  13008.  
  13009.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13010.  esac
  13011. done
  13012.  
  13013.  
  13014. # If the user did not use the arguments to specify the items to instantiate,
  13015. # then the envvar interface is used.  Set only those that are not.
  13016. # We use the long form for the default assignment because of an extremely
  13017. # bizarre bug on SunOS 4.1.3.
  13018. if $ac_need_defaults; then
  13019.  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13020.  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13021.  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13022. fi
  13023.  
  13024. # Have a temporary directory for convenience.  Make it in the build tree
  13025. # simply because there is no reason against having it here, and in addition,
  13026. # creating and moving files from /tmp can sometimes cause problems.
  13027. # Hook for its removal unless debugging.
  13028. # Note that there is a small window in which the directory will not be cleaned:
  13029. # after its creation but before its name has been assigned to `$tmp'.
  13030. $debug ||
  13031. {
  13032.  tmp= ac_tmp=
  13033.  trap 'exit_status=$?
  13034.  : "${ac_tmp:=$tmp}"
  13035.  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13036. ' 0
  13037.  trap 'as_fn_exit 1' 1 2 13 15
  13038. }
  13039. # Create a (secure) tmp directory for tmp files.
  13040.  
  13041. {
  13042.  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13043.  test -d "$tmp"
  13044. }  ||
  13045. {
  13046.  tmp=./conf$$-$RANDOM
  13047.  (umask 077 && mkdir "$tmp")
  13048. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13049. ac_tmp=$tmp
  13050.  
  13051. # Set up the scripts for CONFIG_FILES section.
  13052. # No need to generate them if there are no CONFIG_FILES.
  13053. # This happens for instance with `./config.status config.h'.
  13054. if test -n "$CONFIG_FILES"; then
  13055.  
  13056.  
  13057. ac_cr=`echo X | tr X '\015'`
  13058. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13059. # But we know of no other shell where ac_cr would be empty at this
  13060. # point, so we can use a bashism as a fallback.
  13061. if test "x$ac_cr" = x; then
  13062.  eval ac_cr=\$\'\\r\'
  13063. fi
  13064. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13065. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13066.  ac_cs_awk_cr='\\r'
  13067. else
  13068.  ac_cs_awk_cr=$ac_cr
  13069. fi
  13070.  
  13071. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13072. _ACEOF
  13073.  
  13074.  
  13075. {
  13076.  echo "cat >conf$$subs.awk <<_ACEOF" &&
  13077.  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13078.  echo "_ACEOF"
  13079. } >conf$$subs.sh ||
  13080.  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13081. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13082. ac_delim='%!_!# '
  13083. for ac_last_try in false false false false false :; do
  13084.  . ./conf$$subs.sh ||
  13085.    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13086.  
  13087.  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13088.  if test $ac_delim_n = $ac_delim_num; then
  13089.    break
  13090.  elif $ac_last_try; then
  13091.    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13092.  else
  13093.    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13094.  fi
  13095. done
  13096. rm -f conf$$subs.sh
  13097.  
  13098. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13099. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13100. _ACEOF
  13101. sed -n '
  13102. h
  13103. s/^/S["/; s/!.*/"]=/
  13104. p
  13105. g
  13106. s/^[^!]*!//
  13107. :repl
  13108. t repl
  13109. s/'"$ac_delim"'$//
  13110. t delim
  13111. :nl
  13112. h
  13113. s/\(.\{148\}\)..*/\1/
  13114. t more1
  13115. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13116. p
  13117. n
  13118. b repl
  13119. :more1
  13120. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13121. p
  13122. g
  13123. s/.\{148\}//
  13124. t nl
  13125. :delim
  13126. h
  13127. s/\(.\{148\}\)..*/\1/
  13128. t more2
  13129. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13130. p
  13131. b
  13132. :more2
  13133. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13134. p
  13135. g
  13136. s/.\{148\}//
  13137. t delim
  13138. ' <conf$$subs.awk | sed '
  13139. /^[^""]/{
  13140.  N
  13141.  s/\n//
  13142. }
  13143. ' >>$CONFIG_STATUS || ac_write_fail=1
  13144. rm -f conf$$subs.awk
  13145. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13146. _ACAWK
  13147. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13148.  for (key in S) S_is_set[key] = 1
  13149.  FS = ""
  13150.  
  13151. }
  13152. {
  13153.  line = $ 0
  13154.  nfields = split(line, field, "@")
  13155.  substed = 0
  13156.  len = length(field[1])
  13157.  for (i = 2; i < nfields; i++) {
  13158.    key = field[i]
  13159.    keylen = length(key)
  13160.    if (S_is_set[key]) {
  13161.      value = S[key]
  13162.      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13163.      len += length(value) + length(field[++i])
  13164.      substed = 1
  13165.    } else
  13166.      len += 1 + keylen
  13167.  }
  13168.  
  13169.  print line
  13170. }
  13171.  
  13172. _ACAWK
  13173. _ACEOF
  13174. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13175. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13176.  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13177. else
  13178.  cat
  13179. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13180.  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13181. _ACEOF
  13182.  
  13183. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13184. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13185. # trailing colons and then remove the whole line if VPATH becomes empty
  13186. # (actually we leave an empty line to preserve line numbers).
  13187. if test "x$srcdir" = x.; then
  13188.   ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
  13189. h
  13190. s///
  13191. s/^/:/
  13192. s/[  ]*$/:/
  13193. s/:\$(srcdir):/:/g
  13194. s/:\${srcdir}:/:/g
  13195. s/:@srcdir@:/:/g
  13196. s/^:*//
  13197. s/:*$//
  13198. x
  13199. s/\(=[   ]*\).*/\1/
  13200. G
  13201. s/\n//
  13202. s/^[^=]*=[   ]*$//
  13203. }'
  13204. fi
  13205.  
  13206. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13207. fi # test -n "$CONFIG_FILES"
  13208.  
  13209. # Set up the scripts for CONFIG_HEADERS section.
  13210. # No need to generate them if there are no CONFIG_HEADERS.
  13211. # This happens for instance with `./config.status Makefile'.
  13212. if test -n "$CONFIG_HEADERS"; then
  13213. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13214. BEGIN {
  13215. _ACEOF
  13216.  
  13217. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13218. # here-document in config.status, that substitutes the proper values into
  13219. # config.h.in to produce config.h.
  13220.  
  13221. # Create a delimiter string that does not exist in confdefs.h, to ease
  13222. # handling of long lines.
  13223. ac_delim='%!_!# '
  13224. for ac_last_try in false false :; do
  13225.  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13226.  if test -z "$ac_tt"; then
  13227.    break
  13228.  elif $ac_last_try; then
  13229.    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13230.  else
  13231.    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13232.  fi
  13233. done
  13234.  
  13235. # For the awk script, D is an array of macro values keyed by name,
  13236. # likewise P contains macro parameters if any.  Preserve backslash
  13237. # newline sequences.
  13238.  
  13239. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13240. sed -n '
  13241. s/.\{148\}/&'"$ac_delim"'/g
  13242. t rset
  13243. :rset
  13244. s/^[     ]*#[    ]*define[   ][  ]*/ /
  13245. t def
  13246. d
  13247. :def
  13248. s/\\$//
  13249. t bsnl
  13250. s/["\\]/\\&/g
  13251. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  13252. D["\1"]=" \3"/p
  13253. s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
  13254. d
  13255. :bsnl
  13256. s/["\\]/\\&/g
  13257. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  13258. D["\1"]=" \3\\\\\\n"\\/p
  13259. t cont
  13260. s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13261. t cont
  13262. d
  13263. :cont
  13264. n
  13265. s/.\{148\}/&'"$ac_delim"'/g
  13266. t clear
  13267. :clear
  13268. s/\\$//
  13269. t bsnlc
  13270. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13271. d
  13272. :bsnlc
  13273. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13274. b cont
  13275. ' <confdefs.h | sed '
  13276. s/'"$ac_delim"'/"\\\
  13277. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13278.  
  13279. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13280.  for (key in D) D_is_set[key] = 1
  13281.  FS = ""
  13282. }
  13283. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13284.  line = \$ 0
  13285.  split(line, arg, " ")
  13286.  if (arg[1] == "#") {
  13287.    defundef = arg[2]
  13288.    mac1 = arg[3]
  13289.  } else {
  13290.    defundef = substr(arg[1], 2)
  13291.    mac1 = arg[2]
  13292.  }
  13293.  split(mac1, mac2, "(") #)
  13294.  macro = mac2[1]
  13295.  prefix = substr(line, 1, index(line, defundef) - 1)
  13296.  if (D_is_set[macro]) {
  13297.    # Preserve the white space surrounding the "#".
  13298.    print prefix "define", macro P[macro] D[macro]
  13299.    next
  13300.  } else {
  13301.    # Replace #undef with comments.  This is necessary, for example,
  13302.    # in the case of _POSIX_SOURCE, which is predefined and required
  13303.    # on some systems where configure will not decide to define it.
  13304.    if (defundef == "undef") {
  13305.      print "/*", prefix defundef, macro, "*/"
  13306.      next
  13307.    }
  13308.  }
  13309. }
  13310. { print }
  13311. _ACAWK
  13312. _ACEOF
  13313. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13314.  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13315. fi # test -n "$CONFIG_HEADERS"
  13316.  
  13317.  
  13318. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  13319. shift
  13320. for ac_tag
  13321. do
  13322.  case $ac_tag in
  13323.  :[FHLC]) ac_mode=$ac_tag; continue;;
  13324.  esac
  13325.  case $ac_mode$ac_tag in
  13326.  :[FHL]*:*);;
  13327.  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13328.   :[FH]-) ac_tag=-:-;;
  13329.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13330.   esac
  13331.   ac_save_IFS=$IFS
  13332.   IFS=:
  13333.   set x $ac_tag
  13334.   IFS=$ac_save_IFS
  13335.   shift
  13336.   ac_file=$1
  13337.   shift
  13338.  
  13339.   case $ac_mode in
  13340.   :L) ac_source=$1;;
  13341.   :[FH])
  13342.     ac_file_inputs=
  13343.     for ac_f
  13344.     do
  13345.       case $ac_f in
  13346.       -) ac_f="$ac_tmp/stdin";;
  13347.       *) # Look for the file first in the build tree, then in the source tree
  13348.      # (if the path is not absolute).  The absolute path cannot be DOS-style,
  13349.      # because $ac_f cannot contain `:'.
  13350.      test -f "$ac_f" ||
  13351.        case $ac_f in
  13352.        [\\/$]*) false;;
  13353.        *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13354.        esac ||
  13355.        as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13356.      esac
  13357.      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13358.      as_fn_append ac_file_inputs " '$ac_f'"
  13359.    done
  13360.  
  13361.    # Let's still pretend it is `configure' which instantiates (i.e., don't
  13362.     # use $as_me), people would be surprised to read:
  13363.     #    /* config.h.  Generated by config.status.  */
  13364.     configure_input='Generated from '`
  13365.       $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13366.     `' by configure.'
  13367.     if test x"$ac_file" != x-; then
  13368.       configure_input="$ac_file.  $configure_input"
  13369.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13370. $as_echo "$as_me: creating $ac_file" >&6;}
  13371.     fi
  13372.     # Neutralize special characters interpreted by sed in replacement strings.
  13373.     case $configure_input in #(
  13374.     *\&* | *\|* | *\\* )
  13375.        ac_sed_conf_input=`$as_echo "$configure_input" |
  13376.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13377.     *) ac_sed_conf_input=$configure_input;;
  13378.     esac
  13379.  
  13380.     case $ac_tag in
  13381.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13382.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13383.     esac
  13384.     ;;
  13385.   esac
  13386.  
  13387.   ac_dir=`$as_dirname -- "$ac_file" ||
  13388. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13389.      X"$ac_file" : 'X\(//\)[^/]' \| \
  13390.      X"$ac_file" : 'X\(//\)$' \| \
  13391.      X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13392. $as_echo X"$ac_file" |
  13393.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13394.         s//\1/
  13395.         q
  13396.       }
  13397.       /^X\(\/\/\)[^/].*/{
  13398.         s//\1/
  13399.         q
  13400.       }
  13401.       /^X\(\/\/\)$/{
  13402.         s//\1/
  13403.         q
  13404.       }
  13405.       /^X\(\/\).*/{
  13406.         s//\1/
  13407.         q
  13408.       }
  13409.       s/.*/./; q'`
  13410.   as_dir="$ac_dir"; as_fn_mkdir_p
  13411.   ac_builddir=.
  13412.  
  13413. case "$ac_dir" in
  13414. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13415. *)
  13416.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13417.   # A ".." for each directory in $ac_dir_suffix.
  13418.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13419.   case $ac_top_builddir_sub in
  13420.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13421.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13422.   esac ;;
  13423. esac
  13424. ac_abs_top_builddir=$ac_pwd
  13425. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13426. # for backward compatibility:
  13427. ac_top_builddir=$ac_top_build_prefix
  13428.  
  13429. case $srcdir in
  13430.   .)  # We are building in place.
  13431.     ac_srcdir=.
  13432.     ac_top_srcdir=$ac_top_builddir_sub
  13433.     ac_abs_top_srcdir=$ac_pwd ;;
  13434.   [\\/]* | ?:[\\/]* )  # Absolute name.
  13435.     ac_srcdir=$srcdir$ac_dir_suffix;
  13436.     ac_top_srcdir=$srcdir
  13437.     ac_abs_top_srcdir=$srcdir ;;
  13438.   *) # Relative name.
  13439.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13440.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  13441.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13442. esac
  13443. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13444.  
  13445.  
  13446.   case $ac_mode in
  13447.   :F)
  13448.   #
  13449.   # CONFIG_FILE
  13450.   #
  13451.  
  13452.   case $INSTALL in
  13453.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13454.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13455.   esac
  13456.   ac_MKDIR_P=$MKDIR_P
  13457.   case $MKDIR_P in
  13458.   [\\/$]* | ?:[\\/]* ) ;;
  13459.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13460.   esac
  13461. _ACEOF
  13462.  
  13463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13464. # If the template does not know about datarootdir, expand it.
  13465. # FIXME: This hack should be removed a few years after 2.60.
  13466. ac_datarootdir_hack=; ac_datarootdir_seen=
  13467. ac_sed_dataroot='
  13468. /datarootdir/ {
  13469.  p
  13470.  q
  13471. }
  13472. /@datadir@/p
  13473. /@docdir@/p
  13474. /@infodir@/p
  13475. /@localedir@/p
  13476. /@mandir@/p'
  13477. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13478. *datarootdir*) ac_datarootdir_seen=yes;;
  13479. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13480.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13481. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13482. _ACEOF
  13483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13484.   ac_datarootdir_hack='
  13485.  s&@datadir@&$datadir&g
  13486.  s&@docdir@&$docdir&g
  13487.  s&@infodir@&$infodir&g
  13488.  s&@localedir@&$localedir&g
  13489.  s&@mandir@&$mandir&g
  13490.  s&\\\${datarootdir}&$datarootdir&g' ;;
  13491. esac
  13492. _ACEOF
  13493.  
  13494. # Neutralize VPATH when `$srcdir' = `.'.
  13495. # Shell code in configure.ac might set extrasub.
  13496. # FIXME: do we really want to maintain this feature?
  13497. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13498. ac_sed_extra="$ac_vpsub
  13499. $extrasub
  13500. _ACEOF
  13501. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13502. :t
  13503. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13504. s|@configure_input@|$ac_sed_conf_input|;t t
  13505. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13506. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13507. s&@srcdir@&$ac_srcdir&;t t
  13508. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13509. s&@top_srcdir@&$ac_top_srcdir&;t t
  13510. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13511. s&@builddir@&$ac_builddir&;t t
  13512. s&@abs_builddir@&$ac_abs_builddir&;t t
  13513. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13514. s&@INSTALL@&$ac_INSTALL&;t t
  13515. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13516. $ac_datarootdir_hack
  13517. "
  13518. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13519.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13520.  
  13521. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13522.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13523.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  13524.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13525.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13526. which seems to be undefined.  Please make sure it is defined" >&5
  13527. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13528. which seems to be undefined.  Please make sure it is defined" >&2;}
  13529.  
  13530.   rm -f "$ac_tmp/stdin"
  13531.   case $ac_file in
  13532.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13533.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13534.   esac \
  13535.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13536.  ;;
  13537.   :H)
  13538.   #
  13539.   # CONFIG_HEADER
  13540.   #
  13541.   if test x"$ac_file" != x-; then
  13542.     {
  13543.       $as_echo "/* $configure_input  */" \
  13544.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13545.     } >"$ac_tmp/config.h" \
  13546.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13547.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13548.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13549. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13550.     else
  13551.       rm -f "$ac_file"
  13552.       mv "$ac_tmp/config.h" "$ac_file" \
  13553.     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13554.     fi
  13555.   else
  13556.     $as_echo "/* $configure_input  */" \
  13557.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13558.       || as_fn_error $? "could not create -" "$LINENO" 5
  13559.   fi
  13560. # Compute "$ac_file"'s index in $config_headers.
  13561. _am_arg="$ac_file"
  13562. _am_stamp_count=1
  13563. for _am_header in $config_headers :; do
  13564.   case $_am_header in
  13565.     $_am_arg | $_am_arg:* )
  13566.       break ;;
  13567.     * )
  13568.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13569.   esac
  13570. done
  13571. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13572. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13573.      X"$_am_arg" : 'X\(//\)[^/]' \| \
  13574.      X"$_am_arg" : 'X\(//\)$' \| \
  13575.      X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13576. $as_echo X"$_am_arg" |
  13577.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13578.         s//\1/
  13579.         q
  13580.       }
  13581.       /^X\(\/\/\)[^/].*/{
  13582.         s//\1/
  13583.         q
  13584.       }
  13585.       /^X\(\/\/\)$/{
  13586.         s//\1/
  13587.         q
  13588.       }
  13589.       /^X\(\/\).*/{
  13590.         s//\1/
  13591.         q
  13592.       }
  13593.       s/.*/./; q'`/stamp-h$_am_stamp_count
  13594.  ;;
  13595.  
  13596.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13597. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13598.  ;;
  13599.   esac
  13600.  
  13601.  
  13602.   case $ac_file$ac_mode in
  13603.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13604.   # Older Autoconf quotes --file arguments for eval, but not when files
  13605.   # are listed without --file.  Let's play safe and only enable the eval
  13606.   # if we detect the quoting.
  13607.   case $CONFIG_FILES in
  13608.   *\'*) eval set x "$CONFIG_FILES" ;;
  13609.   *)   set x $CONFIG_FILES ;;
  13610.   esac
  13611.   shift
  13612.   for mf
  13613.   do
  13614.     # Strip MF so we end up with the name of the file.
  13615.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  13616.     # Check whether this is an Automake generated Makefile or not.
  13617.     # We used to match only the files named 'Makefile.in', but
  13618.     # some people rename them; so instead we look at the file content.
  13619.     # Grep'ing the first line is not enough: some people post-process
  13620.     # each Makefile.in and add a new line on top of each file to say so.
  13621.     # Grep'ing the whole file is not good either: AIX grep has a line
  13622.     # limit of 2048, but all sed's we know have understand at least 4000.
  13623.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13624.       dirpart=`$as_dirname -- "$mf" ||
  13625. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13626.      X"$mf" : 'X\(//\)[^/]' \| \
  13627.      X"$mf" : 'X\(//\)$' \| \
  13628.      X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13629. $as_echo X"$mf" |
  13630.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13631.         s//\1/
  13632.         q
  13633.       }
  13634.       /^X\(\/\/\)[^/].*/{
  13635.         s//\1/
  13636.         q
  13637.       }
  13638.       /^X\(\/\/\)$/{
  13639.         s//\1/
  13640.         q
  13641.       }
  13642.       /^X\(\/\).*/{
  13643.         s//\1/
  13644.         q
  13645.       }
  13646.       s/.*/./; q'`
  13647.     else
  13648.       continue
  13649.     fi
  13650.     # Extract the definition of DEPDIR, am__include, and am__quote
  13651.     # from the Makefile without running 'make'.
  13652.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13653.     test -z "$DEPDIR" && continue
  13654.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13655.     test -z "$am__include" && continue
  13656.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13657.     # Find all dependency output files, they are included files with
  13658.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  13659.     # simplest approach to changing $(DEPDIR) to its actual value in the
  13660.     # expansion.
  13661.     for file in `sed -n "
  13662.      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13663.      sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13664.       # Make sure the directory exists.
  13665.       test -f "$dirpart/$file" && continue
  13666.       fdir=`$as_dirname -- "$file" ||
  13667. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13668.      X"$file" : 'X\(//\)[^/]' \| \
  13669.      X"$file" : 'X\(//\)$' \| \
  13670.      X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13671. $as_echo X"$file" |
  13672.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13673.         s//\1/
  13674.         q
  13675.       }
  13676.       /^X\(\/\/\)[^/].*/{
  13677.         s//\1/
  13678.         q
  13679.       }
  13680.       /^X\(\/\/\)$/{
  13681.         s//\1/
  13682.         q
  13683.       }
  13684.       /^X\(\/\).*/{
  13685.         s//\1/
  13686.         q
  13687.       }
  13688.       s/.*/./; q'`
  13689.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13690.       # echo "creating $dirpart/$file"
  13691.       echo '# dummy' > "$dirpart/$file"
  13692.     done
  13693.   done
  13694. }
  13695.  ;;
  13696.  
  13697.   esac
  13698. done # for ac_tag
  13699.  
  13700.  
  13701. as_fn_exit 0
  13702. _ACEOF
  13703. ac_clean_files=$ac_clean_files_save
  13704.  
  13705. test $ac_write_fail = 0 ||
  13706.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13707.  
  13708.  
  13709. # configure is writing to config.log, and then calls config.status.
  13710. # config.status does its own redirection, appending to config.log.
  13711. # Unfortunately, on DOS this fails, as config.log is still kept open
  13712. # by configure, so config.status won't be able to write to it; its
  13713. # output is simply discarded.  So we exec the FD to /dev/null,
  13714. # effectively closing config.log, so it can be properly (re)opened and
  13715. # appended to by config.status.  When coming back to configure, we
  13716. # need to make the FD available again.
  13717. if test "$no_create" != yes; then
  13718.   ac_cs_success=:
  13719.   ac_config_status_args=
  13720.   test "$silent" = yes &&
  13721.     ac_config_status_args="$ac_config_status_args --quiet"
  13722.   exec 5>/dev/null
  13723.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13724.   exec 5>>config.log
  13725.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13726.   # would make configure fail if this is the last instruction.
  13727.   $ac_cs_success || as_fn_exit 1
  13728. fi
  13729. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13730.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13731. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13732. fi
  13733.  
  13734.  
  13735. echo "
  13736.  
  13737. Configuration:
  13738.  
  13739.  Detected OS:           ${host_os}
  13740.  Install path:          ${prefix}
  13741.  Compilation arch:      ${ARCH}
  13742.  
  13743.  Compiler:              ${CC}
  13744.  Compiler flags:        ${CFLAGS}
  13745.  
  13746.  Library-specific flags:"
  13747.  
  13748. if test "x$DB_CFLAGS" != "x"; then
  13749.     echo "    database:              ${DB_CFLAGS}"
  13750. fi
  13751.  
  13752. if test "x$JABBER_CPPFLAGS" != "x"; then
  13753.     echo "    Jabber:                ${JABBER_CPPFLAGS}"
  13754. fi
  13755.  
  13756. if test "x$LIBXML2_CFLAGS" != "x"; then
  13757.     echo "    libXML2:               ${LIBXML2_CFLAGS}"
  13758. fi
  13759.  
  13760. if test "x$UNIXODBC_CFLAGS" != "x"; then
  13761.     echo "    unixODBC:              ${UNIXODBC_CFLAGS}"
  13762. fi
  13763.  
  13764. if test "x$SNMP_CFLAGS" != "x"; then
  13765.     echo "    Net-SNMP:              ${SNMP_CFLAGS}"
  13766. fi
  13767.  
  13768. if test "x$OPENIPMI_CFLAGS" != "x"; then
  13769.     echo "    OpenIPMI:              ${OPENIPMI_CFLAGS}"
  13770. fi
  13771.  
  13772. if test "x$SSH2_CFLAGS" != "x"; then
  13773.     echo "    libssh2:               ${SSH2_CFLAGS}"
  13774. fi
  13775.  
  13776. if test "x$TLS_CFLAGS" != "x"; then
  13777.     echo "    TLS:                   ${TLS_CFLAGS}"
  13778. fi
  13779.  
  13780. if test "x$LDAP_CPPFLAGS" != "x"; then
  13781.     echo "    LDAP:                  ${LDAP_CPPFLAGS}"
  13782. fi
  13783.  
  13784. if test "x$ICONV_CFLAGS" != "x"; then
  13785.     echo "    iconv:                 ${ICONV_CFLAGS}"
  13786. fi
  13787.  
  13788. echo "
  13789.  Enable server:         ${server}"
  13790.  
  13791. if test "x$server" != "xno"; then
  13792.  
  13793. echo "  Server details:
  13794.    With database:         ${have_db}
  13795.    WEB Monitoring:        ${have_web_monitoring}
  13796.    Native Jabber:         ${have_jabber}
  13797.    SNMP:                  ${have_snmp}
  13798.    IPMI:                  ${have_ipmi}
  13799.    SSH:                   ${have_ssh2}
  13800.    TLS:                   ${have_tls}
  13801.    ODBC:                  ${have_unixodbc}
  13802.    Linker flags:          ${SERVER_LDFLAGS} ${LDFLAGS}
  13803.    Libraries:             ${SERVER_LIBS} ${LIBS}"
  13804.  
  13805. fi
  13806.  
  13807. echo "
  13808.  Enable proxy:          ${proxy}"
  13809.  
  13810. if test "x$proxy" != "xno"; then
  13811.  
  13812. echo "  Proxy details:
  13813.    With database:         ${have_db}
  13814.    WEB Monitoring:        ${have_web_monitoring}
  13815.    SNMP:                  ${have_snmp}
  13816.    IPMI:                  ${have_ipmi}
  13817.    SSH:                   ${have_ssh2}
  13818.    TLS:                   ${have_tls}
  13819.    ODBC:                  ${have_unixodbc}
  13820.    Linker flags:          ${PROXY_LDFLAGS} ${LDFLAGS}
  13821.    Libraries:             ${PROXY_LIBS} ${LIBS}"
  13822.  
  13823. fi
  13824.  
  13825. echo "
  13826.  Enable agent:          ${agent}"
  13827.  
  13828. if test "x$agent" != "xno"; then
  13829.  
  13830. echo "  Agent details:
  13831.    TLS:                   ${have_tls}
  13832.    Linker flags:          ${AGENT_LDFLAGS} ${LDFLAGS}
  13833.    Libraries:             ${AGENT_LIBS} ${LIBS}"
  13834.  
  13835. fi
  13836.  
  13837. echo "
  13838.  Enable Java gateway:   ${java}"
  13839.  
  13840. if test "x$java" != "xno"; then
  13841.  
  13842. echo "  Java gateway details:
  13843.    Java compiler:         ${JAVAC}
  13844.    Java archiver:         ${JAR}"
  13845.  
  13846. fi
  13847.  
  13848. echo "
  13849.  LDAP support:          ${found_ldap}
  13850.  IPv6 support:          ${have_ipv6}"
  13851.  
  13852. echo
  13853. echo "***********************************************************"
  13854. echo "*            Now run '${am_make} install'                       *"
  13855. echo "*                                                         *"
  13856. echo "*            Thank you for using Zabbix!                  *"
  13857. echo "*              <http://www.zabbix.com>                    *"
  13858. echo "***********************************************************"
  13859. echo
Add Comment
Please, Sign In to add comment