1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for SIPp see-include/version.h. 4@%:@ 5@%:@ Report bugs to <sipp-users@lists.sourceforge.net>. 6@%:@ 7@%:@ 8@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9@%:@ 10@%:@ 11@%:@ This configure script is free software; the Free Software Foundation 12@%:@ gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in @%:@( 28 *posix*) : 29 set -o posix ;; @%:@( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in @%:@( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in @%:@(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in @%:@ (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in @%:@( 172 *posix*) : 173 set -o posix ;; @%:@( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in @%:@( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in @%:@ (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: sipp-users@lists.sourceforge.net about your system, 271$0: including any error possibly output before this 272$0: message. Then install a modern shell, or manually run 273$0: the script under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288@%:@ as_fn_unset VAR 289@%:@ --------------- 290@%:@ Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297@%:@ as_fn_set_status STATUS 298@%:@ ----------------------- 299@%:@ Set @S|@? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} @%:@ as_fn_set_status 304 305@%:@ as_fn_exit STATUS 306@%:@ ----------------- 307@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} @%:@ as_fn_exit 314 315@%:@ as_fn_mkdir_p 316@%:@ ------------- 317@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} @%:@ as_fn_mkdir_p 362 363@%:@ as_fn_executable_p FILE 364@%:@ ----------------------- 365@%:@ Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} @%:@ as_fn_executable_p 370@%:@ as_fn_append VAR VALUE 371@%:@ ---------------------- 372@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 373@%:@ advantage of any shell optimizations that allow amortized linear growth over 374@%:@ repeated appends, instead of the typical quadratic growth present in naive 375@%:@ implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388@%:@ as_fn_arith ARG... 389@%:@ ------------------ 390@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 391@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 392@%:@ must be portable across @S|@(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 407@%:@ ---------------------------------------- 408@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410@%:@ script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} @%:@ as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in @%:@((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIB@&t@OBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='SIPp' 582PACKAGE_TARNAME='sipp' 583PACKAGE_VERSION='see-include/version.h' 584PACKAGE_STRING='SIPp see-include/version.h' 585PACKAGE_BUGREPORT='sipp-users@lists.sourceforge.net' 586PACKAGE_URL='' 587 588ac_unique_file="src/sipp.cpp" 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_subst_vars='am__EXEEXT_FALSE 626am__EXEEXT_TRUE 627LTLIBOBJS 628LIB@&t@OBJS 629ALLOCA 630HAVE_EPOLL_FALSE 631HAVE_EPOLL_TRUE 632HAVE_GSL_FALSE 633HAVE_GSL_TRUE 634GSL_LIBS 635GSL_CXXFLAGS 636GSL_CFLAGS 637HAVE_RTP_FALSE 638HAVE_RTP_TRUE 639HAVE_PCAP_FALSE 640HAVE_PCAP_TRUE 641HAVE_SCTP_FALSE 642HAVE_SCTP_TRUE 643HAVE_OPENSSL_FALSE 644HAVE_OPENSSL_TRUE 645HAVE_CXX11 646EGREP 647GREP 648CPP 649am__fastdepCXX_FALSE 650am__fastdepCXX_TRUE 651CXXDEPMODE 652ac_ct_CXX 653CXXFLAGS 654CXX 655am__fastdepCC_FALSE 656am__fastdepCC_TRUE 657CCDEPMODE 658am__nodep 659AMDEPBACKSLASH 660AMDEP_FALSE 661AMDEP_TRUE 662am__quote 663am__include 664DEPDIR 665OBJEXT 666EXEEXT 667ac_ct_CC 668CPPFLAGS 669LDFLAGS 670CFLAGS 671CC 672HAVE_HELP2MAN_FALSE 673HAVE_HELP2MAN_TRUE 674HELP2MAN 675AM_BACKSLASH 676AM_DEFAULT_VERBOSITY 677AM_DEFAULT_V 678AM_V 679am__untar 680am__tar 681AMTAR 682am__leading_dot 683SET_MAKE 684AWK 685mkdir_p 686MKDIR_P 687INSTALL_STRIP_PROGRAM 688STRIP 689install_sh 690MAKEINFO 691AUTOHEADER 692AUTOMAKE 693AUTOCONF 694ACLOCAL 695VERSION 696PACKAGE 697CYGPATH_W 698am__isrc 699INSTALL_DATA 700INSTALL_SCRIPT 701INSTALL_PROGRAM 702target_os 703target_vendor 704target_cpu 705target 706host_os 707host_vendor 708host_cpu 709host 710build_os 711build_vendor 712build_cpu 713build 714target_alias 715host_alias 716build_alias 717LIBS 718ECHO_T 719ECHO_N 720ECHO_C 721DEFS 722mandir 723localedir 724libdir 725psdir 726pdfdir 727dvidir 728htmldir 729infodir 730docdir 731oldincludedir 732includedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_URL 745PACKAGE_BUGREPORT 746PACKAGE_STRING 747PACKAGE_VERSION 748PACKAGE_TARNAME 749PACKAGE_NAME 750PATH_SEPARATOR 751SHELL' 752ac_subst_files='AM_GIT_VERSION' 753ac_user_opts=' 754enable_option_checking 755enable_silent_rules 756with_openssl 757with_pcap 758with_sctp 759with_gsl 760with_rtpstream 761enable_epoll 762enable_dependency_tracking 763' 764 ac_precious_vars='build_alias 765host_alias 766target_alias 767CC 768CFLAGS 769LDFLAGS 770LIBS 771CPPFLAGS 772CXX 773CXXFLAGS 774CCC 775CPP' 776 777 778# Initialize some variables set by options. 779ac_init_help= 780ac_init_version=false 781ac_unrecognized_opts= 782ac_unrecognized_sep= 783# The variables have the same names as the options, with 784# dashes changed to underlines. 785cache_file=/dev/null 786exec_prefix=NONE 787no_create= 788no_recursion= 789prefix=NONE 790program_prefix=NONE 791program_suffix=NONE 792program_transform_name=s,x,x, 793silent= 794site= 795srcdir= 796verbose= 797x_includes=NONE 798x_libraries=NONE 799 800# Installation directory options. 801# These are left unexpanded so users can "make install exec_prefix=/foo" 802# and all the variables that are supposed to be based on exec_prefix 803# by default will actually change. 804# Use braces instead of parens because sh, perl, etc. also accept them. 805# (The list follows the same order as the GNU Coding Standards.) 806bindir='${exec_prefix}/bin' 807sbindir='${exec_prefix}/sbin' 808libexecdir='${exec_prefix}/libexec' 809datarootdir='${prefix}/share' 810datadir='${datarootdir}' 811sysconfdir='${prefix}/etc' 812sharedstatedir='${prefix}/com' 813localstatedir='${prefix}/var' 814includedir='${prefix}/include' 815oldincludedir='/usr/include' 816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 817infodir='${datarootdir}/info' 818htmldir='${docdir}' 819dvidir='${docdir}' 820pdfdir='${docdir}' 821psdir='${docdir}' 822libdir='${exec_prefix}/lib' 823localedir='${datarootdir}/locale' 824mandir='${datarootdir}/man' 825 826ac_prev= 827ac_dashdash= 828for ac_option 829do 830 # If the previous option needs an argument, assign it. 831 if test -n "$ac_prev"; then 832 eval $ac_prev=\$ac_option 833 ac_prev= 834 continue 835 fi 836 837 case $ac_option in 838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 839 *=) ac_optarg= ;; 840 *) ac_optarg=yes ;; 841 esac 842 843 # Accept the important Cygnus configure options, so we can diagnose typos. 844 845 case $ac_dashdash$ac_option in 846 --) 847 ac_dashdash=yes ;; 848 849 -bindir | --bindir | --bindi | --bind | --bin | --bi) 850 ac_prev=bindir ;; 851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 852 bindir=$ac_optarg ;; 853 854 -build | --build | --buil | --bui | --bu) 855 ac_prev=build_alias ;; 856 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 857 build_alias=$ac_optarg ;; 858 859 -cache-file | --cache-file | --cache-fil | --cache-fi \ 860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 861 ac_prev=cache_file ;; 862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 864 cache_file=$ac_optarg ;; 865 866 --config-cache | -C) 867 cache_file=config.cache ;; 868 869 -datadir | --datadir | --datadi | --datad) 870 ac_prev=datadir ;; 871 -datadir=* | --datadir=* | --datadi=* | --datad=*) 872 datadir=$ac_optarg ;; 873 874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 875 | --dataroo | --dataro | --datar) 876 ac_prev=datarootdir ;; 877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 879 datarootdir=$ac_optarg ;; 880 881 -disable-* | --disable-*) 882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 885 as_fn_error $? "invalid feature name: $ac_useropt" 886 ac_useropt_orig=$ac_useropt 887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 888 case $ac_user_opts in 889 *" 890"enable_$ac_useropt" 891"*) ;; 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 893 ac_unrecognized_sep=', ';; 894 esac 895 eval enable_$ac_useropt=no ;; 896 897 -docdir | --docdir | --docdi | --doc | --do) 898 ac_prev=docdir ;; 899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 900 docdir=$ac_optarg ;; 901 902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 903 ac_prev=dvidir ;; 904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 905 dvidir=$ac_optarg ;; 906 907 -enable-* | --enable-*) 908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 909 # Reject names that are not valid shell variable names. 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 911 as_fn_error $? "invalid feature name: $ac_useropt" 912 ac_useropt_orig=$ac_useropt 913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 914 case $ac_user_opts in 915 *" 916"enable_$ac_useropt" 917"*) ;; 918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 919 ac_unrecognized_sep=', ';; 920 esac 921 eval enable_$ac_useropt=\$ac_optarg ;; 922 923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 925 | --exec | --exe | --ex) 926 ac_prev=exec_prefix ;; 927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 929 | --exec=* | --exe=* | --ex=*) 930 exec_prefix=$ac_optarg ;; 931 932 -gas | --gas | --ga | --g) 933 # Obsolete; use --with-gas. 934 with_gas=yes ;; 935 936 -help | --help | --hel | --he | -h) 937 ac_init_help=long ;; 938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 939 ac_init_help=recursive ;; 940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 941 ac_init_help=short ;; 942 943 -host | --host | --hos | --ho) 944 ac_prev=host_alias ;; 945 -host=* | --host=* | --hos=* | --ho=*) 946 host_alias=$ac_optarg ;; 947 948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 949 ac_prev=htmldir ;; 950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 951 | --ht=*) 952 htmldir=$ac_optarg ;; 953 954 -includedir | --includedir | --includedi | --included | --include \ 955 | --includ | --inclu | --incl | --inc) 956 ac_prev=includedir ;; 957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 958 | --includ=* | --inclu=* | --incl=* | --inc=*) 959 includedir=$ac_optarg ;; 960 961 -infodir | --infodir | --infodi | --infod | --info | --inf) 962 ac_prev=infodir ;; 963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 964 infodir=$ac_optarg ;; 965 966 -libdir | --libdir | --libdi | --libd) 967 ac_prev=libdir ;; 968 -libdir=* | --libdir=* | --libdi=* | --libd=*) 969 libdir=$ac_optarg ;; 970 971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 972 | --libexe | --libex | --libe) 973 ac_prev=libexecdir ;; 974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 975 | --libexe=* | --libex=* | --libe=*) 976 libexecdir=$ac_optarg ;; 977 978 -localedir | --localedir | --localedi | --localed | --locale) 979 ac_prev=localedir ;; 980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 981 localedir=$ac_optarg ;; 982 983 -localstatedir | --localstatedir | --localstatedi | --localstated \ 984 | --localstate | --localstat | --localsta | --localst | --locals) 985 ac_prev=localstatedir ;; 986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 988 localstatedir=$ac_optarg ;; 989 990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 991 ac_prev=mandir ;; 992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 993 mandir=$ac_optarg ;; 994 995 -nfp | --nfp | --nf) 996 # Obsolete; use --without-fp. 997 with_fp=no ;; 998 999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1000 | --no-cr | --no-c | -n) 1001 no_create=yes ;; 1002 1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1005 no_recursion=yes ;; 1006 1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1009 | --oldin | --oldi | --old | --ol | --o) 1010 ac_prev=oldincludedir ;; 1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1014 oldincludedir=$ac_optarg ;; 1015 1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1017 ac_prev=prefix ;; 1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1019 prefix=$ac_optarg ;; 1020 1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1022 | --program-pre | --program-pr | --program-p) 1023 ac_prev=program_prefix ;; 1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1026 program_prefix=$ac_optarg ;; 1027 1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1029 | --program-suf | --program-su | --program-s) 1030 ac_prev=program_suffix ;; 1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1033 program_suffix=$ac_optarg ;; 1034 1035 -program-transform-name | --program-transform-name \ 1036 | --program-transform-nam | --program-transform-na \ 1037 | --program-transform-n | --program-transform- \ 1038 | --program-transform | --program-transfor \ 1039 | --program-transfo | --program-transf \ 1040 | --program-trans | --program-tran \ 1041 | --progr-tra | --program-tr | --program-t) 1042 ac_prev=program_transform_name ;; 1043 -program-transform-name=* | --program-transform-name=* \ 1044 | --program-transform-nam=* | --program-transform-na=* \ 1045 | --program-transform-n=* | --program-transform-=* \ 1046 | --program-transform=* | --program-transfor=* \ 1047 | --program-transfo=* | --program-transf=* \ 1048 | --program-trans=* | --program-tran=* \ 1049 | --progr-tra=* | --program-tr=* | --program-t=*) 1050 program_transform_name=$ac_optarg ;; 1051 1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1053 ac_prev=pdfdir ;; 1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1055 pdfdir=$ac_optarg ;; 1056 1057 -psdir | --psdir | --psdi | --psd | --ps) 1058 ac_prev=psdir ;; 1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1060 psdir=$ac_optarg ;; 1061 1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1063 | -silent | --silent | --silen | --sile | --sil) 1064 silent=yes ;; 1065 1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1067 ac_prev=sbindir ;; 1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1069 | --sbi=* | --sb=*) 1070 sbindir=$ac_optarg ;; 1071 1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1074 | --sharedst | --shareds | --shared | --share | --shar \ 1075 | --sha | --sh) 1076 ac_prev=sharedstatedir ;; 1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1080 | --sha=* | --sh=*) 1081 sharedstatedir=$ac_optarg ;; 1082 1083 -site | --site | --sit) 1084 ac_prev=site ;; 1085 -site=* | --site=* | --sit=*) 1086 site=$ac_optarg ;; 1087 1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1089 ac_prev=srcdir ;; 1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1091 srcdir=$ac_optarg ;; 1092 1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1094 | --syscon | --sysco | --sysc | --sys | --sy) 1095 ac_prev=sysconfdir ;; 1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1098 sysconfdir=$ac_optarg ;; 1099 1100 -target | --target | --targe | --targ | --tar | --ta | --t) 1101 ac_prev=target_alias ;; 1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1103 target_alias=$ac_optarg ;; 1104 1105 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1106 verbose=yes ;; 1107 1108 -version | --version | --versio | --versi | --vers | -V) 1109 ac_init_version=: ;; 1110 1111 -with-* | --with-*) 1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1113 # Reject names that are not valid shell variable names. 1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1115 as_fn_error $? "invalid package name: $ac_useropt" 1116 ac_useropt_orig=$ac_useropt 1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1118 case $ac_user_opts in 1119 *" 1120"with_$ac_useropt" 1121"*) ;; 1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1123 ac_unrecognized_sep=', ';; 1124 esac 1125 eval with_$ac_useropt=\$ac_optarg ;; 1126 1127 -without-* | --without-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid package name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"with_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=no ;; 1142 1143 --x) 1144 # Obsolete; use --with-x. 1145 with_x=yes ;; 1146 1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1148 | --x-incl | --x-inc | --x-in | --x-i) 1149 ac_prev=x_includes ;; 1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1152 x_includes=$ac_optarg ;; 1153 1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1156 ac_prev=x_libraries ;; 1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1159 x_libraries=$ac_optarg ;; 1160 1161 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1162Try \`$0 --help' for more information" 1163 ;; 1164 1165 *=*) 1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1167 # Reject names that are not valid shell variable names. 1168 case $ac_envvar in #( 1169 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1171 esac 1172 eval $ac_envvar=\$ac_optarg 1173 export $ac_envvar ;; 1174 1175 *) 1176 # FIXME: should be removed in autoconf 3.0. 1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1181 ;; 1182 1183 esac 1184done 1185 1186if test -n "$ac_prev"; then 1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1188 as_fn_error $? "missing argument to $ac_option" 1189fi 1190 1191if test -n "$ac_unrecognized_opts"; then 1192 case $enable_option_checking in 1193 no) ;; 1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1196 esac 1197fi 1198 1199# Check all directory arguments for consistency. 1200for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1201 datadir sysconfdir sharedstatedir localstatedir includedir \ 1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1203 libdir localedir mandir 1204do 1205 eval ac_val=\$$ac_var 1206 # Remove trailing slashes. 1207 case $ac_val in 1208 */ ) 1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1210 eval $ac_var=\$ac_val;; 1211 esac 1212 # Be sure to have absolute directory names. 1213 case $ac_val in 1214 [\\/$]* | ?:[\\/]* ) continue;; 1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1216 esac 1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1218done 1219 1220# There might be people who depend on the old broken behavior: `$host' 1221# used to hold the argument of --host etc. 1222# FIXME: To remove some day. 1223build=$build_alias 1224host=$host_alias 1225target=$target_alias 1226 1227# FIXME: To remove some day. 1228if test "x$host_alias" != x; then 1229 if test "x$build_alias" = x; then 1230 cross_compiling=maybe 1231 elif test "x$build_alias" != "x$host_alias"; then 1232 cross_compiling=yes 1233 fi 1234fi 1235 1236ac_tool_prefix= 1237test -n "$host_alias" && ac_tool_prefix=$host_alias- 1238 1239test "$silent" = yes && exec 6>/dev/null 1240 1241 1242ac_pwd=`pwd` && test -n "$ac_pwd" && 1243ac_ls_di=`ls -di .` && 1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1245 as_fn_error $? "working directory cannot be determined" 1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1247 as_fn_error $? "pwd does not report name of working directory" 1248 1249 1250# Find the source files, if location was not specified. 1251if test -z "$srcdir"; then 1252 ac_srcdir_defaulted=yes 1253 # Try the directory containing this script, then the parent directory. 1254 ac_confdir=`$as_dirname -- "$as_myself" || 1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1256 X"$as_myself" : 'X\(//\)[^/]' \| \ 1257 X"$as_myself" : 'X\(//\)$' \| \ 1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1259$as_echo X"$as_myself" | 1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)[^/].*/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\).*/{ 1273 s//\1/ 1274 q 1275 } 1276 s/.*/./; q'` 1277 srcdir=$ac_confdir 1278 if test ! -r "$srcdir/$ac_unique_file"; then 1279 srcdir=.. 1280 fi 1281else 1282 ac_srcdir_defaulted=no 1283fi 1284if test ! -r "$srcdir/$ac_unique_file"; then 1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1287fi 1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1289ac_abs_confdir=`( 1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1291 pwd)` 1292# When building in place, set srcdir=. 1293if test "$ac_abs_confdir" = "$ac_pwd"; then 1294 srcdir=. 1295fi 1296# Remove unnecessary trailing slashes from srcdir. 1297# Double slashes in file names in object file debugging info 1298# mess up M-x gdb in Emacs. 1299case $srcdir in 1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1301esac 1302for ac_var in $ac_precious_vars; do 1303 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1304 eval ac_env_${ac_var}_value=\$${ac_var} 1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1307done 1308 1309# 1310# Report the --help message. 1311# 1312if test "$ac_init_help" = "long"; then 1313 # Omit some internal or obsolete options to make the list less imposing. 1314 # This message is too long to be a string in the A/UX 3.1 sh. 1315 cat <<_ACEOF 1316\`configure' configures SIPp see-include/version.h to adapt to many kinds of systems. 1317 1318Usage: $0 [OPTION]... [VAR=VALUE]... 1319 1320To assign environment variables (e.g., CC, CFLAGS...), specify them as 1321VAR=VALUE. See below for descriptions of some of the useful variables. 1322 1323Defaults for the options are specified in brackets. 1324 1325Configuration: 1326 -h, --help display this help and exit 1327 --help=short display options specific to this package 1328 --help=recursive display the short help of all the included packages 1329 -V, --version display version information and exit 1330 -q, --quiet, --silent do not print \`checking ...' messages 1331 --cache-file=FILE cache test results in FILE [disabled] 1332 -C, --config-cache alias for \`--cache-file=config.cache' 1333 -n, --no-create do not create output files 1334 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1335 1336Installation directories: 1337 --prefix=PREFIX install architecture-independent files in PREFIX 1338 @<:@@S|@ac_default_prefix@:>@ 1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1340 @<:@PREFIX@:>@ 1341 1342By default, \`make install' will install all the files in 1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1344an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1345for instance \`--prefix=\$HOME'. 1346 1347For better control, use the options below. 1348 1349Fine tuning of the installation directories: 1350 --bindir=DIR user executables [EPREFIX/bin] 1351 --sbindir=DIR system admin executables [EPREFIX/sbin] 1352 --libexecdir=DIR program executables [EPREFIX/libexec] 1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1356 --libdir=DIR object code libraries [EPREFIX/lib] 1357 --includedir=DIR C header files [PREFIX/include] 1358 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1361 --infodir=DIR info documentation [DATAROOTDIR/info] 1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1363 --mandir=DIR man documentation [DATAROOTDIR/man] 1364 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/sipp@:>@ 1365 --htmldir=DIR html documentation [DOCDIR] 1366 --dvidir=DIR dvi documentation [DOCDIR] 1367 --pdfdir=DIR pdf documentation [DOCDIR] 1368 --psdir=DIR ps documentation [DOCDIR] 1369_ACEOF 1370 1371 cat <<\_ACEOF 1372 1373Program names: 1374 --program-prefix=PREFIX prepend PREFIX to installed program names 1375 --program-suffix=SUFFIX append SUFFIX to installed program names 1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1377 1378System types: 1379 --build=BUILD configure for building on BUILD [guessed] 1380 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1381 --target=TARGET configure for building compilers for TARGET [HOST] 1382_ACEOF 1383fi 1384 1385if test -n "$ac_init_help"; then 1386 case $ac_init_help in 1387 short | recursive ) echo "Configuration of SIPp see-include/version.h:";; 1388 esac 1389 cat <<\_ACEOF 1390 1391Optional Features: 1392 --disable-option-checking ignore unrecognized --enable/--with options 1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1395 --enable-silent-rules less verbose build output (undo: "make V=1") 1396 --disable-silent-rules verbose build output (undo: "make V=0") 1397 --enable-epoll build with epoll backend 1398 --enable-dependency-tracking 1399 do not reject slow dependency extractors 1400 --disable-dependency-tracking 1401 speeds up one-time build 1402 --enable-epoll This platform supports epoll(7) 1403 1404Optional Packages: 1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1407 --with-openssl build with OpenSSL support 1408 --with-pcap build with pcap support 1409 --with-sctp build with SCTP support 1410 --with-gsl build with GSL (GNU Scientific Library) support 1411 --without-rtpstream build without RTP streaming support 1412 1413Some influential environment variables: 1414 CC C compiler command 1415 CFLAGS C compiler flags 1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1417 nonstandard directory <lib dir> 1418 LIBS libraries to pass to the linker, e.g. -l<library> 1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1420 you have headers in a nonstandard directory <include dir> 1421 CXX C++ compiler command 1422 CXXFLAGS C++ compiler flags 1423 CPP C preprocessor 1424 1425Use these variables to override the choices made by `configure' or to help 1426it to find libraries and programs with nonstandard names/locations. 1427 1428Report bugs to <sipp-users@lists.sourceforge.net>. 1429_ACEOF 1430ac_status=$? 1431fi 1432 1433if test "$ac_init_help" = "recursive"; then 1434 # If there are subdirs, report their specific --help. 1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1436 test -d "$ac_dir" || 1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1438 continue 1439 ac_builddir=. 1440 1441case "$ac_dir" in 1442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1443*) 1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1445 # A ".." for each directory in $ac_dir_suffix. 1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1447 case $ac_top_builddir_sub in 1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1450 esac ;; 1451esac 1452ac_abs_top_builddir=$ac_pwd 1453ac_abs_builddir=$ac_pwd$ac_dir_suffix 1454# for backward compatibility: 1455ac_top_builddir=$ac_top_build_prefix 1456 1457case $srcdir in 1458 .) # We are building in place. 1459 ac_srcdir=. 1460 ac_top_srcdir=$ac_top_builddir_sub 1461 ac_abs_top_srcdir=$ac_pwd ;; 1462 [\\/]* | ?:[\\/]* ) # Absolute name. 1463 ac_srcdir=$srcdir$ac_dir_suffix; 1464 ac_top_srcdir=$srcdir 1465 ac_abs_top_srcdir=$srcdir ;; 1466 *) # Relative name. 1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1468 ac_top_srcdir=$ac_top_build_prefix$srcdir 1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1470esac 1471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1472 1473 cd "$ac_dir" || { ac_status=$?; continue; } 1474 # Check for guested configure. 1475 if test -f "$ac_srcdir/configure.gnu"; then 1476 echo && 1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1478 elif test -f "$ac_srcdir/configure"; then 1479 echo && 1480 $SHELL "$ac_srcdir/configure" --help=recursive 1481 else 1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1483 fi || ac_status=$? 1484 cd "$ac_pwd" || { ac_status=$?; break; } 1485 done 1486fi 1487 1488test -n "$ac_init_help" && exit $ac_status 1489if $ac_init_version; then 1490 cat <<\_ACEOF 1491SIPp configure see-include/version.h 1492generated by GNU Autoconf 2.69 1493 1494Copyright (C) 2012 Free Software Foundation, Inc. 1495This configure script is free software; the Free Software Foundation 1496gives unlimited permission to copy, distribute and modify it. 1497_ACEOF 1498 exit 1499fi 1500 1501## ------------------------ ## 1502## Autoconf initialization. ## 1503## ------------------------ ## 1504 1505@%:@ ac_fn_c_try_compile LINENO 1506@%:@ -------------------------- 1507@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1508ac_fn_c_try_compile () 1509{ 1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1511 rm -f conftest.$ac_objext 1512 if { { ac_try="$ac_compile" 1513case "(($ac_try" in 1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1515 *) ac_try_echo=$ac_try;; 1516esac 1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1518$as_echo "$ac_try_echo"; } >&5 1519 (eval "$ac_compile") 2>conftest.err 1520 ac_status=$? 1521 if test -s conftest.err; then 1522 grep -v '^ *+' conftest.err >conftest.er1 1523 cat conftest.er1 >&5 1524 mv -f conftest.er1 conftest.err 1525 fi 1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1527 test $ac_status = 0; } && { 1528 test -z "$ac_c_werror_flag" || 1529 test ! -s conftest.err 1530 } && test -s conftest.$ac_objext; then : 1531 ac_retval=0 1532else 1533 $as_echo "$as_me: failed program was:" >&5 1534sed 's/^/| /' conftest.$ac_ext >&5 1535 1536 ac_retval=1 1537fi 1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1539 as_fn_set_status $ac_retval 1540 1541} @%:@ ac_fn_c_try_compile 1542 1543@%:@ ac_fn_cxx_try_compile LINENO 1544@%:@ ---------------------------- 1545@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1546ac_fn_cxx_try_compile () 1547{ 1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1549 rm -f conftest.$ac_objext 1550 if { { ac_try="$ac_compile" 1551case "(($ac_try" in 1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1553 *) ac_try_echo=$ac_try;; 1554esac 1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1556$as_echo "$ac_try_echo"; } >&5 1557 (eval "$ac_compile") 2>conftest.err 1558 ac_status=$? 1559 if test -s conftest.err; then 1560 grep -v '^ *+' conftest.err >conftest.er1 1561 cat conftest.er1 >&5 1562 mv -f conftest.er1 conftest.err 1563 fi 1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1565 test $ac_status = 0; } && { 1566 test -z "$ac_cxx_werror_flag" || 1567 test ! -s conftest.err 1568 } && test -s conftest.$ac_objext; then : 1569 ac_retval=0 1570else 1571 $as_echo "$as_me: failed program was:" >&5 1572sed 's/^/| /' conftest.$ac_ext >&5 1573 1574 ac_retval=1 1575fi 1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1577 as_fn_set_status $ac_retval 1578 1579} @%:@ ac_fn_cxx_try_compile 1580 1581@%:@ ac_fn_c_try_cpp LINENO 1582@%:@ ---------------------- 1583@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1584ac_fn_c_try_cpp () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 if { { ac_try="$ac_cpp conftest.$ac_ext" 1588case "(($ac_try" in 1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1590 *) ac_try_echo=$ac_try;; 1591esac 1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1593$as_echo "$ac_try_echo"; } >&5 1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1595 ac_status=$? 1596 if test -s conftest.err; then 1597 grep -v '^ *+' conftest.err >conftest.er1 1598 cat conftest.er1 >&5 1599 mv -f conftest.er1 conftest.err 1600 fi 1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1602 test $ac_status = 0; } > conftest.i && { 1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1604 test ! -s conftest.err 1605 }; then : 1606 ac_retval=0 1607else 1608 $as_echo "$as_me: failed program was:" >&5 1609sed 's/^/| /' conftest.$ac_ext >&5 1610 1611 ac_retval=1 1612fi 1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1614 as_fn_set_status $ac_retval 1615 1616} @%:@ ac_fn_c_try_cpp 1617 1618@%:@ ac_fn_c_try_run LINENO 1619@%:@ ---------------------- 1620@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 1621@%:@ that executables *can* be run. 1622ac_fn_c_try_run () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if { { ac_try="$ac_link" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_link") 2>&5 1633 ac_status=$? 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1636 { { case "(($ac_try" in 1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1638 *) ac_try_echo=$ac_try;; 1639esac 1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1641$as_echo "$ac_try_echo"; } >&5 1642 (eval "$ac_try") 2>&5 1643 ac_status=$? 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; }; }; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: program exited with status $ac_status" >&5 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=$ac_status 1653fi 1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} @%:@ ac_fn_c_try_run 1659 1660@%:@ ac_fn_c_try_link LINENO 1661@%:@ ----------------------- 1662@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1663ac_fn_c_try_link () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 1695fi 1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1698 # interfere with the next link command; also delete a directory that is 1699 # left behind by Apple's compiler. We do this before executing the actions. 1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702 as_fn_set_status $ac_retval 1703 1704} @%:@ ac_fn_c_try_link 1705 1706@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1707@%:@ ------------------------------------------------------- 1708@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using 1709@%:@ the include files in INCLUDES and setting the cache variable VAR 1710@%:@ accordingly. 1711ac_fn_c_check_header_mongrel () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if eval \${$3+:} false; then : 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716$as_echo_n "checking for $2... " >&6; } 1717if eval \${$3+:} false; then : 1718 $as_echo_n "(cached) " >&6 1719fi 1720eval ac_res=\$$3 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1722$as_echo "$ac_res" >&6; } 1723else 1724 # Is the header compilable? 1725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1726$as_echo_n "checking $2 usability... " >&6; } 1727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729$4 1730@%:@include <$2> 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO"; then : 1733 ac_header_compiler=yes 1734else 1735 ac_header_compiler=no 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1739$as_echo "$ac_header_compiler" >&6; } 1740 1741# Is the header present? 1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1743$as_echo_n "checking $2 presence... " >&6; } 1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746@%:@include <$2> 1747_ACEOF 1748if ac_fn_c_try_cpp "$LINENO"; then : 1749 ac_header_preproc=yes 1750else 1751 ac_header_preproc=no 1752fi 1753rm -f conftest.err conftest.i conftest.$ac_ext 1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1755$as_echo "$ac_header_preproc" >&6; } 1756 1757# So? What about this header? 1758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1759 yes:no: ) 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1761$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1763$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1764 ;; 1765 no:yes:* ) 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1767$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1769$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1771$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1773$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1775$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1776( $as_echo "## ----------------------------------------------- ## 1777## Report this to sipp-users@lists.sourceforge.net ## 1778## ----------------------------------------------- ##" 1779 ) | sed "s/^/$as_me: WARNING: /" >&2 1780 ;; 1781esac 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1783$as_echo_n "checking for $2... " >&6; } 1784if eval \${$3+:} false; then : 1785 $as_echo_n "(cached) " >&6 1786else 1787 eval "$3=\$ac_header_compiler" 1788fi 1789eval ac_res=\$$3 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1791$as_echo "$ac_res" >&6; } 1792fi 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794 1795} @%:@ ac_fn_c_check_header_mongrel 1796 1797@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1798@%:@ ------------------------------------------------------- 1799@%:@ Tests whether HEADER exists and can be compiled using the include files in 1800@%:@ INCLUDES, setting the cache variable VAR accordingly. 1801ac_fn_c_check_header_compile () 1802{ 1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1805$as_echo_n "checking for $2... " >&6; } 1806if eval \${$3+:} false; then : 1807 $as_echo_n "(cached) " >&6 1808else 1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810/* end confdefs.h. */ 1811$4 1812@%:@include <$2> 1813_ACEOF 1814if ac_fn_c_try_compile "$LINENO"; then : 1815 eval "$3=yes" 1816else 1817 eval "$3=no" 1818fi 1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1820fi 1821eval ac_res=\$$3 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1823$as_echo "$ac_res" >&6; } 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1825 1826} @%:@ ac_fn_c_check_header_compile 1827 1828@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1829@%:@ ------------------------------------------- 1830@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache 1831@%:@ variable VAR accordingly. 1832ac_fn_c_check_type () 1833{ 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1836$as_echo_n "checking for $2... " >&6; } 1837if eval \${$3+:} false; then : 1838 $as_echo_n "(cached) " >&6 1839else 1840 eval "$3=no" 1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843$4 1844int 1845main () 1846{ 1847if (sizeof ($2)) 1848 return 0; 1849 ; 1850 return 0; 1851} 1852_ACEOF 1853if ac_fn_c_try_compile "$LINENO"; then : 1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1855/* end confdefs.h. */ 1856$4 1857int 1858main () 1859{ 1860if (sizeof (($2))) 1861 return 0; 1862 ; 1863 return 0; 1864} 1865_ACEOF 1866if ac_fn_c_try_compile "$LINENO"; then : 1867 1868else 1869 eval "$3=yes" 1870fi 1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1872fi 1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1874fi 1875eval ac_res=\$$3 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1877$as_echo "$ac_res" >&6; } 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1879 1880} @%:@ ac_fn_c_check_type 1881 1882@%:@ ac_fn_c_check_func LINENO FUNC VAR 1883@%:@ ---------------------------------- 1884@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1885ac_fn_c_check_func () 1886{ 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1889$as_echo_n "checking for $2... " >&6; } 1890if eval \${$3+:} false; then : 1891 $as_echo_n "(cached) " >&6 1892else 1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1894/* end confdefs.h. */ 1895/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1897#define $2 innocuous_$2 1898 1899/* System header to define __stub macros and hopefully few prototypes, 1900 which can conflict with char $2 (); below. 1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1902 <limits.h> exists even on freestanding compilers. */ 1903 1904#ifdef __STDC__ 1905# include <limits.h> 1906#else 1907# include <assert.h> 1908#endif 1909 1910#undef $2 1911 1912/* Override any GCC internal prototype to avoid an error. 1913 Use char because int might match the return type of a GCC 1914 builtin and then its argument prototype would still apply. */ 1915#ifdef __cplusplus 1916extern "C" 1917#endif 1918char $2 (); 1919/* The GNU C library defines this for functions which it implements 1920 to always fail with ENOSYS. Some functions are actually named 1921 something starting with __ and the normal name is an alias. */ 1922#if defined __stub_$2 || defined __stub___$2 1923choke me 1924#endif 1925 1926int 1927main () 1928{ 1929return $2 (); 1930 ; 1931 return 0; 1932} 1933_ACEOF 1934if ac_fn_c_try_link "$LINENO"; then : 1935 eval "$3=yes" 1936else 1937 eval "$3=no" 1938fi 1939rm -f core conftest.err conftest.$ac_objext \ 1940 conftest$ac_exeext conftest.$ac_ext 1941fi 1942eval ac_res=\$$3 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1944$as_echo "$ac_res" >&6; } 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 1947} @%:@ ac_fn_c_check_func 1948cat >config.log <<_ACEOF 1949This file contains any messages produced by compilers while 1950running configure, to aid debugging if configure makes a mistake. 1951 1952It was created by SIPp $as_me see-include/version.h, which was 1953generated by GNU Autoconf 2.69. Invocation command line was 1954 1955 $ $0 $@ 1956 1957_ACEOF 1958exec 5>>config.log 1959{ 1960cat <<_ASUNAME 1961## --------- ## 1962## Platform. ## 1963## --------- ## 1964 1965hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1966uname -m = `(uname -m) 2>/dev/null || echo unknown` 1967uname -r = `(uname -r) 2>/dev/null || echo unknown` 1968uname -s = `(uname -s) 2>/dev/null || echo unknown` 1969uname -v = `(uname -v) 2>/dev/null || echo unknown` 1970 1971/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1972/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1973 1974/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1975/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1976/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1977/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1978/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1979/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1980/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1981 1982_ASUNAME 1983 1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1985for as_dir in $PATH 1986do 1987 IFS=$as_save_IFS 1988 test -z "$as_dir" && as_dir=. 1989 $as_echo "PATH: $as_dir" 1990 done 1991IFS=$as_save_IFS 1992 1993} >&5 1994 1995cat >&5 <<_ACEOF 1996 1997 1998## ----------- ## 1999## Core tests. ## 2000## ----------- ## 2001 2002_ACEOF 2003 2004 2005# Keep a trace of the command line. 2006# Strip out --no-create and --no-recursion so they do not pile up. 2007# Strip out --silent because we don't want to record it for future runs. 2008# Also quote any args containing shell meta-characters. 2009# Make two passes to allow for proper duplicate-argument suppression. 2010ac_configure_args= 2011ac_configure_args0= 2012ac_configure_args1= 2013ac_must_keep_next=false 2014for ac_pass in 1 2 2015do 2016 for ac_arg 2017 do 2018 case $ac_arg in 2019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2021 | -silent | --silent | --silen | --sile | --sil) 2022 continue ;; 2023 *\'*) 2024 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2025 esac 2026 case $ac_pass in 2027 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2028 2) 2029 as_fn_append ac_configure_args1 " '$ac_arg'" 2030 if test $ac_must_keep_next = true; then 2031 ac_must_keep_next=false # Got value, back to normal. 2032 else 2033 case $ac_arg in 2034 *=* | --config-cache | -C | -disable-* | --disable-* \ 2035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2037 | -with-* | --with-* | -without-* | --without-* | --x) 2038 case "$ac_configure_args0 " in 2039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2040 esac 2041 ;; 2042 -* ) ac_must_keep_next=true ;; 2043 esac 2044 fi 2045 as_fn_append ac_configure_args " '$ac_arg'" 2046 ;; 2047 esac 2048 done 2049done 2050{ ac_configure_args0=; unset ac_configure_args0;} 2051{ ac_configure_args1=; unset ac_configure_args1;} 2052 2053# When interrupted or exit'd, cleanup temporary files, and complete 2054# config.log. We remove comments because anyway the quotes in there 2055# would cause problems or look ugly. 2056# WARNING: Use '\'' to represent an apostrophe within the trap. 2057# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2058trap 'exit_status=$? 2059 # Save into config.log some information that might help in debugging. 2060 { 2061 echo 2062 2063 $as_echo "## ---------------- ## 2064## Cache variables. ## 2065## ---------------- ##" 2066 echo 2067 # The following way of writing the cache mishandles newlines in values, 2068( 2069 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2070 eval ac_val=\$$ac_var 2071 case $ac_val in #( 2072 *${as_nl}*) 2073 case $ac_var in #( 2074 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2075$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2076 esac 2077 case $ac_var in #( 2078 _ | IFS | as_nl) ;; #( 2079 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2080 *) { eval $ac_var=; unset $ac_var;} ;; 2081 esac ;; 2082 esac 2083 done 2084 (set) 2>&1 | 2085 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2086 *${as_nl}ac_space=\ *) 2087 sed -n \ 2088 "s/'\''/'\''\\\\'\'''\''/g; 2089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2090 ;; #( 2091 *) 2092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2093 ;; 2094 esac | 2095 sort 2096) 2097 echo 2098 2099 $as_echo "## ----------------- ## 2100## Output variables. ## 2101## ----------------- ##" 2102 echo 2103 for ac_var in $ac_subst_vars 2104 do 2105 eval ac_val=\$$ac_var 2106 case $ac_val in 2107 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2108 esac 2109 $as_echo "$ac_var='\''$ac_val'\''" 2110 done | sort 2111 echo 2112 2113 if test -n "$ac_subst_files"; then 2114 $as_echo "## ------------------- ## 2115## File substitutions. ## 2116## ------------------- ##" 2117 echo 2118 for ac_var in $ac_subst_files 2119 do 2120 eval ac_val=\$$ac_var 2121 case $ac_val in 2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2123 esac 2124 $as_echo "$ac_var='\''$ac_val'\''" 2125 done | sort 2126 echo 2127 fi 2128 2129 if test -s confdefs.h; then 2130 $as_echo "## ----------- ## 2131## confdefs.h. ## 2132## ----------- ##" 2133 echo 2134 cat confdefs.h 2135 echo 2136 fi 2137 test "$ac_signal" != 0 && 2138 $as_echo "$as_me: caught signal $ac_signal" 2139 $as_echo "$as_me: exit $exit_status" 2140 } >&5 2141 rm -f core *.core core.conftest.* && 2142 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2143 exit $exit_status 2144' 0 2145for ac_signal in 1 2 13 15; do 2146 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2147done 2148ac_signal=0 2149 2150# confdefs.h avoids OS command line length limits that DEFS can exceed. 2151rm -f -r conftest* confdefs.h 2152 2153$as_echo "/* confdefs.h */" > confdefs.h 2154 2155# Predefined preprocessor variables. 2156 2157cat >>confdefs.h <<_ACEOF 2158@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2159_ACEOF 2160 2161cat >>confdefs.h <<_ACEOF 2162@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2163_ACEOF 2164 2165cat >>confdefs.h <<_ACEOF 2166@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2167_ACEOF 2168 2169cat >>confdefs.h <<_ACEOF 2170@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2171_ACEOF 2172 2173cat >>confdefs.h <<_ACEOF 2174@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2175_ACEOF 2176 2177cat >>confdefs.h <<_ACEOF 2178@%:@define PACKAGE_URL "$PACKAGE_URL" 2179_ACEOF 2180 2181 2182# Let the site file select an alternate cache file if it wants to. 2183# Prefer an explicitly selected file to automatically selected ones. 2184ac_site_file1=NONE 2185ac_site_file2=NONE 2186if test -n "$CONFIG_SITE"; then 2187 # We do not want a PATH search for config.site. 2188 case $CONFIG_SITE in @%:@(( 2189 -*) ac_site_file1=./$CONFIG_SITE;; 2190 */*) ac_site_file1=$CONFIG_SITE;; 2191 *) ac_site_file1=./$CONFIG_SITE;; 2192 esac 2193elif test "x$prefix" != xNONE; then 2194 ac_site_file1=$prefix/share/config.site 2195 ac_site_file2=$prefix/etc/config.site 2196else 2197 ac_site_file1=$ac_default_prefix/share/config.site 2198 ac_site_file2=$ac_default_prefix/etc/config.site 2199fi 2200for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2201do 2202 test "x$ac_site_file" = xNONE && continue 2203 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2205$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2206 sed 's/^/| /' "$ac_site_file" >&5 2207 . "$ac_site_file" \ 2208 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2210as_fn_error $? "failed to load site script $ac_site_file 2211See \`config.log' for more details" "$LINENO" 5; } 2212 fi 2213done 2214 2215if test -r "$cache_file"; then 2216 # Some versions of bash will fail to source /dev/null (special files 2217 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2220$as_echo "$as_me: loading cache $cache_file" >&6;} 2221 case $cache_file in 2222 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2223 *) . "./$cache_file";; 2224 esac 2225 fi 2226else 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2228$as_echo "$as_me: creating cache $cache_file" >&6;} 2229 >$cache_file 2230fi 2231 2232# Check that the precious variables saved in the cache have kept the same 2233# value. 2234ac_cache_corrupted=false 2235for ac_var in $ac_precious_vars; do 2236 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2237 eval ac_new_set=\$ac_env_${ac_var}_set 2238 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2239 eval ac_new_val=\$ac_env_${ac_var}_value 2240 case $ac_old_set,$ac_new_set in 2241 set,) 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2243$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2244 ac_cache_corrupted=: ;; 2245 ,set) 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2247$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2248 ac_cache_corrupted=: ;; 2249 ,);; 2250 *) 2251 if test "x$ac_old_val" != "x$ac_new_val"; then 2252 # differences in whitespace do not lead to failure. 2253 ac_old_val_w=`echo x $ac_old_val` 2254 ac_new_val_w=`echo x $ac_new_val` 2255 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2257$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2258 ac_cache_corrupted=: 2259 else 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2261$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2262 eval $ac_var=\$ac_old_val 2263 fi 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2265$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2267$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2268 fi;; 2269 esac 2270 # Pass precious variables to config.status. 2271 if test "$ac_new_set" = set; then 2272 case $ac_new_val in 2273 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2274 *) ac_arg=$ac_var=$ac_new_val ;; 2275 esac 2276 case " $ac_configure_args " in 2277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2278 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2279 esac 2280 fi 2281done 2282if $ac_cache_corrupted; then 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2286$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2287 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2288fi 2289## -------------------- ## 2290## Main body of script. ## 2291## -------------------- ## 2292 2293ac_ext=c 2294ac_cpp='$CPP $CPPFLAGS' 2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2297ac_compiler_gnu=$ac_cv_c_compiler_gnu 2298 2299 2300 2301# Load non-standard m4 files from ./m4/*.m4. 2302# AC_CONFIG_MACRO_DIR([m4]) does not work on pre-1.13 aclocal, so we 2303# have to include all files by hand. 2304 2305AM_GIT_VERSION=$srcdir/m4/am_git_version.mh 2306 2307# =========================================================================== 2308# http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html 2309# =========================================================================== 2310# 2311# SYNOPSIS 2312# 2313# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT]) 2314# 2315# DESCRIPTION 2316# 2317# Check whether the given FLAG works with the current language's compiler 2318# or gives an error. (Warnings, however, are ignored) 2319# 2320# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on 2321# success/failure. 2322# 2323# If EXTRA-FLAGS is defined, it is added to the current language's default 2324# flags (e.g. CFLAGS) when the check is done. The check is thus made with 2325# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to 2326# force the compiler to issue an error when a bad flag is given. 2327# 2328# INPUT gives an alternative input source to AC_COMPILE_IFELSE. 2329# 2330# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this 2331# macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG. 2332# 2333# LICENSE 2334# 2335# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de> 2336# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com> 2337# 2338# This program is free software: you can redistribute it and/or modify it 2339# under the terms of the GNU General Public License as published by the 2340# Free Software Foundation, either version 3 of the License, or (at your 2341# option) any later version. 2342# 2343# This program is distributed in the hope that it will be useful, but 2344# WITHOUT ANY WARRANTY; without even the implied warranty of 2345# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 2346# Public License for more details. 2347# 2348# You should have received a copy of the GNU General Public License along 2349# with this program. If not, see <http://www.gnu.org/licenses/>. 2350# 2351# As a special exception, the respective Autoconf Macro's copyright owner 2352# gives unlimited permission to copy, distribute and modify the configure 2353# scripts that are the output of Autoconf when processing the Macro. You 2354# need not follow the terms of the GNU General Public License when using 2355# or distributing such scripts, even though portions of the text of the 2356# Macro appear in them. The GNU General Public License (GPL) does govern 2357# all other use of the material that constitutes the Autoconf Macro. 2358# 2359# This special exception to the GPL applies to versions of the Autoconf 2360# Macro released by the Autoconf Archive. When you make and distribute a 2361# modified version of the Autoconf Macro, you may extend this special 2362# exception to the GPL to apply to your modified version as well. 2363 2364#serial 4 2365 2366 2367# =========================================================================== 2368# http://www.gnu.org/software/autoconf-archive/ax_config_feature.html 2369# =========================================================================== 2370# 2371# SYNOPSIS 2372# 2373# AX_CONFIG_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION, DEFINE, DEFINE-DESCRIPTION, [ACTION-IF-ENABLED [, ACTION-IF-NOT-ENABLED]]) 2374# 2375# DESCRIPTION 2376# 2377# AX_CONFIG_FEATURE is a simple wrapper for AC_ARG_ENABLE, it enables the 2378# feature FEATURE-NAME and AC_DEFINEs the passed DEFINE, depending on the 2379# user choice. DESCRIPTION will be used for AC_DEFINEs. ACTION-IF-ENABLED 2380# and ACTION-IF-NOT-ENABLED are the actions that will be run. A feature is 2381# enabled by default, in order to change this behaviour use the 2382# AX_CONFIG_FEATURE_DEFAULT_ENABLED and AX_CONFIG_FEATURE_DEFAULT_DISABLED 2383# macros. 2384# 2385# A simple example: 2386# 2387# AX_CONFIG_FEATURE_DEFAULT_ENABLED 2388# AX_CONFIG_FEATURE(feature_xxxxx, [turns on/off XXXXX support], 2389# HAVE_XXXXX, [Define if you want XXXXX support]) 2390# 2391# ... 2392# 2393# AX_CONFIG_FEATURE_DEFAULT_DISABLED 2394# AX_CONFIG_FEATURE(feature_yyyyy, [turns on/off YYYYY support], 2395# HAVE_YYYYY, [Define if you want YYYYY support], 2396# [enable_yyyyy="yes"], [enable_yyyyy="no"]) 2397# AM_CONDITIONAL(YYYYY, [test "$enable_yyyyy" = "yes"]) 2398# 2399# AX_CONFIG_FEATURE_DEFAULT_ENABLED 2400# AX_CONFIG_FEATURE(...) 2401# 2402# ... 2403# 2404# If you have lot of features and you want a verbose dumping of each user 2405# selection use AX_CONFIG_FEATURE_VERBOSE. Use AX_CONFIG_FEATURE_SILENT in 2406# order to remove a previously AX_CONFIG_FEATURE_VERBOSE. By default 2407# features are silent. 2408# 2409# Use AX_CONFIG_FEATURE_ENABLE or AX_CONFIG_FEATURE_DISABLE in order to 2410# enable or disable a specific feature. 2411# 2412# Another simple example: 2413# 2414# AS_IF([some_test_here],[AX_CONFIG_FEATURE_ENABLE(feature_xxxxx)],[]) 2415# 2416# AX_CONFIG_FEATURE(feature_xxxxx, [turns on/off XXXXX support], 2417# HAVE_XXXXX, [Define if you want XXXXX support]) 2418# AX_CONFIG_FEATURE(feature_yyyyy, [turns on/off YYYYY support], 2419# HAVE_YYYYY, [Define if you want YYYYY support], 2420# [enable_yyyyy="yes"], [enable_yyyyy="no"]) 2421# 2422# ... 2423# 2424# NOTE: AX_CONFIG_FEATURE_ENABLE() must be placed first of the relative 2425# AX_CONFIG_FEATURE() macro ... 2426# 2427# LICENSE 2428# 2429# Copyright (c) 2008 Francesco Salvestrini <salvestrini@users.sourceforge.net> 2430# 2431# This program is free software; you can redistribute it and/or modify it 2432# under the terms of the GNU General Public License as published by the 2433# Free Software Foundation; either version 2 of the License, or (at your 2434# option) any later version. 2435# 2436# This program is distributed in the hope that it will be useful, but 2437# WITHOUT ANY WARRANTY; without even the implied warranty of 2438# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 2439# Public License for more details. 2440# 2441# You should have received a copy of the GNU General Public License along 2442# with this program. If not, see <http://www.gnu.org/licenses/>. 2443# 2444# As a special exception, the respective Autoconf Macro's copyright owner 2445# gives unlimited permission to copy, distribute and modify the configure 2446# scripts that are the output of Autoconf when processing the Macro. You 2447# need not follow the terms of the GNU General Public License when using 2448# or distributing such scripts, even though portions of the text of the 2449# Macro appear in them. The GNU General Public License (GPL) does govern 2450# all other use of the material that constitutes the Autoconf Macro. 2451# 2452# This special exception to the GPL applies to versions of the Autoconf 2453# Macro released by the Autoconf Archive. When you make and distribute a 2454# modified version of the Autoconf Macro, you may extend this special 2455# exception to the GPL to apply to your modified version as well. 2456 2457#serial 10 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473# ============================================================================ 2474# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html 2475# ============================================================================ 2476# 2477# SYNOPSIS 2478# 2479# AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional]) 2480# 2481# DESCRIPTION 2482# 2483# Check for baseline language coverage in the compiler for the C++11 2484# standard; if necessary, add switches to CXXFLAGS to enable support. 2485# 2486# The first argument, if specified, indicates whether you insist on an 2487# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. 2488# -std=c++11). If neither is specified, you get whatever works, with 2489# preference for an extended mode. 2490# 2491# The second argument, if specified 'mandatory' or if left unspecified, 2492# indicates that baseline C++11 support is required and that the macro 2493# should error out if no mode with that support is found. If specified 2494# 'optional', then configuration proceeds regardless, after defining 2495# HAVE_CXX11 if and only if a supporting mode is found. 2496# 2497# LICENSE 2498# 2499# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com> 2500# Copyright (c) 2012 Zack Weinberg <zackw@panix.com> 2501# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu> 2502# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com> 2503# Copyright (c) 2015 Paul Norman <penorman@mac.com> 2504# 2505# Copying and distribution of this file, with or without modification, are 2506# permitted in any medium without royalty provided the copyright notice 2507# and this notice are preserved. This file is offered as-is, without any 2508# warranty. 2509 2510#serial 12 2511 2512 2513 2514 2515 2516# =========================================================================== 2517# http://www.gnu.org/software/autoconf-archive/ax_have_epoll.html 2518# =========================================================================== 2519# 2520# SYNOPSIS 2521# 2522# AX_HAVE_EPOLL([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2523# AX_HAVE_EPOLL_PWAIT([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2524# 2525# DESCRIPTION 2526# 2527# This macro determines whether the system supports the epoll I/O event 2528# interface. A neat usage example would be: 2529# 2530# AX_HAVE_EPOLL( 2531# [AX_CONFIG_FEATURE_ENABLE(epoll)], 2532# [AX_CONFIG_FEATURE_DISABLE(epoll)]) 2533# AX_CONFIG_FEATURE( 2534# [epoll], [This platform supports epoll(7)], 2535# [HAVE_EPOLL], [This platform supports epoll(7).]) 2536# 2537# The epoll interface was added to the Linux kernel in version 2.5.45, and 2538# the macro verifies that a kernel newer than this is installed. This 2539# check is somewhat unreliable if <linux/version.h> doesn't match the 2540# running kernel, but it is necessary regardless, because glibc comes with 2541# stubs for the epoll_create(), epoll_wait(), etc. that allow programs to 2542# compile and link even if the kernel is too old; the problem would then 2543# be detected only at runtime. 2544# 2545# Linux kernel version 2.6.19 adds the epoll_pwait() call in addition to 2546# epoll_wait(). The availability of that function can be tested with the 2547# second macro. Generally speaking, it is safe to assume that 2548# AX_HAVE_EPOLL would succeed if AX_HAVE_EPOLL_PWAIT has, but not the 2549# other way round. 2550# 2551# LICENSE 2552# 2553# Copyright (c) 2008 Peter Simons <simons@cryp.to> 2554# 2555# Copying and distribution of this file, with or without modification, are 2556# permitted in any medium without royalty provided the copyright notice 2557# and this notice are preserved. This file is offered as-is, without any 2558# warranty. 2559 2560#serial 10 2561 2562 2563 2564 2565 2566ac_aux_dir= 2567for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2568 if test -f "$ac_dir/install-sh"; then 2569 ac_aux_dir=$ac_dir 2570 ac_install_sh="$ac_aux_dir/install-sh -c" 2571 break 2572 elif test -f "$ac_dir/install.sh"; then 2573 ac_aux_dir=$ac_dir 2574 ac_install_sh="$ac_aux_dir/install.sh -c" 2575 break 2576 elif test -f "$ac_dir/shtool"; then 2577 ac_aux_dir=$ac_dir 2578 ac_install_sh="$ac_aux_dir/shtool install -c" 2579 break 2580 fi 2581done 2582if test -z "$ac_aux_dir"; then 2583 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2584fi 2585 2586# These three variables are undocumented and unsupported, 2587# and are intended to be withdrawn in a future Autoconf release. 2588# They can cause serious problems if a builder's source tree is in a directory 2589# whose full name contains unusual characters. 2590ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2591ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2592ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2593 2594 2595# Make sure we can run config.sub. 2596$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2597 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2598 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2600$as_echo_n "checking build system type... " >&6; } 2601if ${ac_cv_build+:} false; then : 2602 $as_echo_n "(cached) " >&6 2603else 2604 ac_build_alias=$build_alias 2605test "x$ac_build_alias" = x && 2606 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2607test "x$ac_build_alias" = x && 2608 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2609ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2610 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2611 2612fi 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2614$as_echo "$ac_cv_build" >&6; } 2615case $ac_cv_build in 2616*-*-*) ;; 2617*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2618esac 2619build=$ac_cv_build 2620ac_save_IFS=$IFS; IFS='-' 2621set x $ac_cv_build 2622shift 2623build_cpu=$1 2624build_vendor=$2 2625shift; shift 2626# Remember, the first character of IFS is used to create $*, 2627# except with old shells: 2628build_os=$* 2629IFS=$ac_save_IFS 2630case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2631 2632 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2634$as_echo_n "checking host system type... " >&6; } 2635if ${ac_cv_host+:} false; then : 2636 $as_echo_n "(cached) " >&6 2637else 2638 if test "x$host_alias" = x; then 2639 ac_cv_host=$ac_cv_build 2640else 2641 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2642 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2643fi 2644 2645fi 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2647$as_echo "$ac_cv_host" >&6; } 2648case $ac_cv_host in 2649*-*-*) ;; 2650*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2651esac 2652host=$ac_cv_host 2653ac_save_IFS=$IFS; IFS='-' 2654set x $ac_cv_host 2655shift 2656host_cpu=$1 2657host_vendor=$2 2658shift; shift 2659# Remember, the first character of IFS is used to create $*, 2660# except with old shells: 2661host_os=$* 2662IFS=$ac_save_IFS 2663case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2664 2665 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2667$as_echo_n "checking target system type... " >&6; } 2668if ${ac_cv_target+:} false; then : 2669 $as_echo_n "(cached) " >&6 2670else 2671 if test "x$target_alias" = x; then 2672 ac_cv_target=$ac_cv_host 2673else 2674 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2676fi 2677 2678fi 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2680$as_echo "$ac_cv_target" >&6; } 2681case $ac_cv_target in 2682*-*-*) ;; 2683*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2684esac 2685target=$ac_cv_target 2686ac_save_IFS=$IFS; IFS='-' 2687set x $ac_cv_target 2688shift 2689target_cpu=$1 2690target_vendor=$2 2691shift; shift 2692# Remember, the first character of IFS is used to create $*, 2693# except with old shells: 2694target_os=$* 2695IFS=$ac_save_IFS 2696case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2697 2698 2699# The aliases save the names the user supplied, while $host etc. 2700# will get canonicalized. 2701test -n "$target_alias" && 2702 test "$program_prefix$program_suffix$program_transform_name" = \ 2703 NONENONEs,x,x, && 2704 program_prefix=${target_alias}- 2705 2706 2707ac_config_headers="$ac_config_headers include/config.h" 2708 2709am__api_version='1.13' 2710 2711# Find a good install program. We prefer a C program (faster), 2712# so one script is as good as another. But avoid the broken or 2713# incompatible versions: 2714# SysV /etc/install, /usr/sbin/install 2715# SunOS /usr/etc/install 2716# IRIX /sbin/install 2717# AIX /bin/install 2718# AmigaOS /C/install, which installs bootblocks on floppy discs 2719# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2720# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2721# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2722# OS/2's system install, which has a completely different semantic 2723# ./install, which can be erroneously created by make from ./install.sh. 2724# Reject install programs that cannot install multiple files. 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2726$as_echo_n "checking for a BSD-compatible install... " >&6; } 2727if test -z "$INSTALL"; then 2728if ${ac_cv_path_install+:} false; then : 2729 $as_echo_n "(cached) " >&6 2730else 2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 # Account for people who put trailing slashes in PATH elements. 2737case $as_dir/ in @%:@(( 2738 ./ | .// | /[cC]/* | \ 2739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2740 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2741 /usr/ucb/* ) ;; 2742 *) 2743 # OSF1 and SCO ODT 3.0 have their own names for install. 2744 # Don't use installbsd from OSF since it installs stuff as root 2745 # by default. 2746 for ac_prog in ginstall scoinst install; do 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2749 if test $ac_prog = install && 2750 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2751 # AIX install. It has an incompatible calling convention. 2752 : 2753 elif test $ac_prog = install && 2754 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2755 # program-specific install script used by HP pwplus--don't use. 2756 : 2757 else 2758 rm -rf conftest.one conftest.two conftest.dir 2759 echo one > conftest.one 2760 echo two > conftest.two 2761 mkdir conftest.dir 2762 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2763 test -s conftest.one && test -s conftest.two && 2764 test -s conftest.dir/conftest.one && 2765 test -s conftest.dir/conftest.two 2766 then 2767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2768 break 3 2769 fi 2770 fi 2771 fi 2772 done 2773 done 2774 ;; 2775esac 2776 2777 done 2778IFS=$as_save_IFS 2779 2780rm -rf conftest.one conftest.two conftest.dir 2781 2782fi 2783 if test "${ac_cv_path_install+set}" = set; then 2784 INSTALL=$ac_cv_path_install 2785 else 2786 # As a last resort, use the slow shell script. Don't cache a 2787 # value for INSTALL within a source directory, because that will 2788 # break other packages using the cache if that directory is 2789 # removed, or if the value is a relative name. 2790 INSTALL=$ac_install_sh 2791 fi 2792fi 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2794$as_echo "$INSTALL" >&6; } 2795 2796# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2797# It thinks the first close brace ends the variable substitution. 2798test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2799 2800test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2801 2802test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2803 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2805$as_echo_n "checking whether build environment is sane... " >&6; } 2806# Reject unsafe characters in $srcdir or the absolute working directory 2807# name. Accept space and tab only in the latter. 2808am_lf=' 2809' 2810case `pwd` in 2811 *[\\\"\#\$\&\'\`$am_lf]*) 2812 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2813esac 2814case $srcdir in 2815 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2816 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2817esac 2818 2819# Do 'set' in a subshell so we don't clobber the current shell's 2820# arguments. Must try -L first in case configure is actually a 2821# symlink; some systems play weird games with the mod time of symlinks 2822# (eg FreeBSD returns the mod time of the symlink's containing 2823# directory). 2824if ( 2825 am_has_slept=no 2826 for am_try in 1 2; do 2827 echo "timestamp, slept: $am_has_slept" > conftest.file 2828 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2829 if test "$*" = "X"; then 2830 # -L didn't work. 2831 set X `ls -t "$srcdir/configure" conftest.file` 2832 fi 2833 if test "$*" != "X $srcdir/configure conftest.file" \ 2834 && test "$*" != "X conftest.file $srcdir/configure"; then 2835 2836 # If neither matched, then we have a broken ls. This can happen 2837 # if, for instance, CONFIG_SHELL is bash and it inherits a 2838 # broken ls alias from the environment. This has actually 2839 # happened. Such a system could not be considered "sane". 2840 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2841 alias in your environment" "$LINENO" 5 2842 fi 2843 if test "$2" = conftest.file || test $am_try -eq 2; then 2844 break 2845 fi 2846 # Just in case. 2847 sleep 1 2848 am_has_slept=yes 2849 done 2850 test "$2" = conftest.file 2851 ) 2852then 2853 # Ok. 2854 : 2855else 2856 as_fn_error $? "newly created file is older than distributed files! 2857Check your system clock" "$LINENO" 5 2858fi 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2860$as_echo "yes" >&6; } 2861# If we didn't sleep, we still need to ensure time stamps of config.status and 2862# generated files are strictly newer. 2863am_sleep_pid= 2864if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2865 ( sleep 1 ) & 2866 am_sleep_pid=$! 2867fi 2868 2869rm -f conftest.file 2870 2871test "$program_prefix" != NONE && 2872 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2873# Use a double $ so make ignores it. 2874test "$program_suffix" != NONE && 2875 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2876# Double any \ or $. 2877# By default was `s,x,x', remove it if useless. 2878ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2879program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2880 2881# expand $ac_aux_dir to an absolute path 2882am_aux_dir=`cd $ac_aux_dir && pwd` 2883 2884if test x"${MISSING+set}" != xset; then 2885 case $am_aux_dir in 2886 *\ * | *\ *) 2887 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2888 *) 2889 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2890 esac 2891fi 2892# Use eval to expand $SHELL 2893if eval "$MISSING --is-lightweight"; then 2894 am_missing_run="$MISSING " 2895else 2896 am_missing_run= 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2898$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2899fi 2900 2901if test x"${install_sh}" != xset; then 2902 case $am_aux_dir in 2903 *\ * | *\ *) 2904 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2905 *) 2906 install_sh="\${SHELL} $am_aux_dir/install-sh" 2907 esac 2908fi 2909 2910# Installed binaries are usually stripped using 'strip' when the user 2911# run "make install-strip". However 'strip' might not be the right 2912# tool to use in cross-compilation environments, therefore Automake 2913# will honor the 'STRIP' environment variable to overrule this program. 2914if test "$cross_compiling" != no; then 2915 if test -n "$ac_tool_prefix"; then 2916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2917set dummy ${ac_tool_prefix}strip; ac_word=$2 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2919$as_echo_n "checking for $ac_word... " >&6; } 2920if ${ac_cv_prog_STRIP+:} false; then : 2921 $as_echo_n "(cached) " >&6 2922else 2923 if test -n "$STRIP"; then 2924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2925else 2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH 2928do 2929 IFS=$as_save_IFS 2930 test -z "$as_dir" && as_dir=. 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2933 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938 done 2939IFS=$as_save_IFS 2940 2941fi 2942fi 2943STRIP=$ac_cv_prog_STRIP 2944if test -n "$STRIP"; then 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2946$as_echo "$STRIP" >&6; } 2947else 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949$as_echo "no" >&6; } 2950fi 2951 2952 2953fi 2954if test -z "$ac_cv_prog_STRIP"; then 2955 ac_ct_STRIP=$STRIP 2956 # Extract the first word of "strip", so it can be a program name with args. 2957set dummy strip; ac_word=$2 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2959$as_echo_n "checking for $ac_word... " >&6; } 2960if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2961 $as_echo_n "(cached) " >&6 2962else 2963 if test -n "$ac_ct_STRIP"; then 2964 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2965else 2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2967for as_dir in $PATH 2968do 2969 IFS=$as_save_IFS 2970 test -z "$as_dir" && as_dir=. 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2973 ac_cv_prog_ac_ct_STRIP="strip" 2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2975 break 2 2976 fi 2977done 2978 done 2979IFS=$as_save_IFS 2980 2981fi 2982fi 2983ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2984if test -n "$ac_ct_STRIP"; then 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2986$as_echo "$ac_ct_STRIP" >&6; } 2987else 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989$as_echo "no" >&6; } 2990fi 2991 2992 if test "x$ac_ct_STRIP" = x; then 2993 STRIP=":" 2994 else 2995 case $cross_compiling:$ac_tool_warned in 2996yes:) 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2999ac_tool_warned=yes ;; 3000esac 3001 STRIP=$ac_ct_STRIP 3002 fi 3003else 3004 STRIP="$ac_cv_prog_STRIP" 3005fi 3006 3007fi 3008INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3009 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3011$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3012if test -z "$MKDIR_P"; then 3013 if ${ac_cv_path_mkdir+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3017for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3018do 3019 IFS=$as_save_IFS 3020 test -z "$as_dir" && as_dir=. 3021 for ac_prog in mkdir gmkdir; do 3022 for ac_exec_ext in '' $ac_executable_extensions; do 3023 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3024 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3025 'mkdir (GNU coreutils) '* | \ 3026 'mkdir (coreutils) '* | \ 3027 'mkdir (fileutils) '4.1*) 3028 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3029 break 3;; 3030 esac 3031 done 3032 done 3033 done 3034IFS=$as_save_IFS 3035 3036fi 3037 3038 test -d ./--version && rmdir ./--version 3039 if test "${ac_cv_path_mkdir+set}" = set; then 3040 MKDIR_P="$ac_cv_path_mkdir -p" 3041 else 3042 # As a last resort, use the slow shell script. Don't cache a 3043 # value for MKDIR_P within a source directory, because that will 3044 # break other packages using the cache if that directory is 3045 # removed, or if the value is a relative name. 3046 MKDIR_P="$ac_install_sh -d" 3047 fi 3048fi 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3050$as_echo "$MKDIR_P" >&6; } 3051 3052for ac_prog in gawk mawk nawk awk 3053do 3054 # Extract the first word of "$ac_prog", so it can be a program name with args. 3055set dummy $ac_prog; ac_word=$2 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057$as_echo_n "checking for $ac_word... " >&6; } 3058if ${ac_cv_prog_AWK+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060else 3061 if test -n "$AWK"; then 3062 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3063else 3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065for as_dir in $PATH 3066do 3067 IFS=$as_save_IFS 3068 test -z "$as_dir" && as_dir=. 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3071 ac_cv_prog_AWK="$ac_prog" 3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075done 3076 done 3077IFS=$as_save_IFS 3078 3079fi 3080fi 3081AWK=$ac_cv_prog_AWK 3082if test -n "$AWK"; then 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3084$as_echo "$AWK" >&6; } 3085else 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3087$as_echo "no" >&6; } 3088fi 3089 3090 3091 test -n "$AWK" && break 3092done 3093 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3095$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3096set x ${MAKE-make} 3097ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3098if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 cat >conftest.make <<\_ACEOF 3102SHELL = /bin/sh 3103all: 3104 @echo '@@@%%%=$(MAKE)=@@@%%%' 3105_ACEOF 3106# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3107case `${MAKE-make} -f conftest.make 2>/dev/null` in 3108 *@@@%%%=?*=@@@%%%*) 3109 eval ac_cv_prog_make_${ac_make}_set=yes;; 3110 *) 3111 eval ac_cv_prog_make_${ac_make}_set=no;; 3112esac 3113rm -f conftest.make 3114fi 3115if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3117$as_echo "yes" >&6; } 3118 SET_MAKE= 3119else 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121$as_echo "no" >&6; } 3122 SET_MAKE="MAKE=${MAKE-make}" 3123fi 3124 3125rm -rf .tst 2>/dev/null 3126mkdir .tst 2>/dev/null 3127if test -d .tst; then 3128 am__leading_dot=. 3129else 3130 am__leading_dot=_ 3131fi 3132rmdir .tst 2>/dev/null 3133 3134@%:@ Check whether --enable-silent-rules was given. 3135if test "${enable_silent_rules+set}" = set; then : 3136 enableval=$enable_silent_rules; 3137fi 3138 3139case $enable_silent_rules in @%:@ ((( 3140 yes) AM_DEFAULT_VERBOSITY=0;; 3141 no) AM_DEFAULT_VERBOSITY=1;; 3142 *) AM_DEFAULT_VERBOSITY=1;; 3143esac 3144am_make=${MAKE-make} 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3146$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3147if ${am_cv_make_support_nested_variables+:} false; then : 3148 $as_echo_n "(cached) " >&6 3149else 3150 if $as_echo 'TRUE=$(BAR$(V)) 3151BAR0=false 3152BAR1=true 3153V=1 3154am__doit: 3155 @$(TRUE) 3156.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3157 am_cv_make_support_nested_variables=yes 3158else 3159 am_cv_make_support_nested_variables=no 3160fi 3161fi 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3163$as_echo "$am_cv_make_support_nested_variables" >&6; } 3164if test $am_cv_make_support_nested_variables = yes; then 3165 AM_V='$(V)' 3166 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3167else 3168 AM_V=$AM_DEFAULT_VERBOSITY 3169 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3170fi 3171AM_BACKSLASH='\' 3172 3173if test "`cd $srcdir && pwd`" != "`pwd`"; then 3174 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3175 # is not polluted with repeated "-I." 3176 am__isrc=' -I$(srcdir)' 3177 # test to see if srcdir already configured 3178 if test -f $srcdir/config.status; then 3179 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3180 fi 3181fi 3182 3183# test whether we have cygpath 3184if test -z "$CYGPATH_W"; then 3185 if (cygpath --version) >/dev/null 2>/dev/null; then 3186 CYGPATH_W='cygpath -w' 3187 else 3188 CYGPATH_W=echo 3189 fi 3190fi 3191 3192 3193# Define the identity of the package. 3194 PACKAGE='sipp' 3195 VERSION='see-include/version.h' 3196 3197 3198cat >>confdefs.h <<_ACEOF 3199@%:@define PACKAGE "$PACKAGE" 3200_ACEOF 3201 3202 3203cat >>confdefs.h <<_ACEOF 3204@%:@define VERSION "$VERSION" 3205_ACEOF 3206 3207# Some tools Automake needs. 3208 3209ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3210 3211 3212AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3213 3214 3215AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3216 3217 3218AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3219 3220 3221MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3222 3223# For better backward compatibility. To be removed once Automake 1.9.x 3224# dies out for good. For more background, see: 3225# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3226# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3227mkdir_p='$(MKDIR_P)' 3228 3229# We need awk for the "check" target. The system "awk" is bad on 3230# some platforms. 3231# Always define AMTAR for backward compatibility. Yes, it's still used 3232# in the wild :-( We should find a proper way to deprecate it ... 3233AMTAR='$${TAR-tar}' 3234 3235 3236# We'll loop over all known methods to create a tar archive until one works. 3237_am_tools='gnutar pax cpio none' 3238 3239am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3240 3241 3242 3243 3244 3245 3246 3247 3248@%:@ Check whether --with-openssl was given. 3249if test "${with_openssl+set}" = set; then : 3250 withval=$with_openssl; openssl="$withval" 3251else 3252 openssl="no" 3253fi 3254 3255 3256@%:@ Check whether --with-pcap was given. 3257if test "${with_pcap+set}" = set; then : 3258 withval=$with_pcap; pcap="$withval" 3259else 3260 pcap="no" 3261fi 3262 3263 3264@%:@ Check whether --with-sctp was given. 3265if test "${with_sctp+set}" = set; then : 3266 withval=$with_sctp; sctp="$withval" 3267else 3268 sctp="no" 3269fi 3270 3271 3272@%:@ Check whether --with-gsl was given. 3273if test "${with_gsl+set}" = set; then : 3274 withval=$with_gsl; gsl="$withval" 3275else 3276 gsl="no" 3277fi 3278 3279 3280@%:@ Check whether --with-rtpstream was given. 3281if test "${with_rtpstream+set}" = set; then : 3282 withval=$with_rtpstream; rtp="$withval" 3283else 3284 rtp="yes" 3285fi 3286 3287 3288@%:@ Check whether --enable-epoll was given. 3289if test "${enable_epoll+set}" = set; then : 3290 enableval=$enable_epoll; case "$enableval" in 3291 yes | no) epoll="$enableval" ;; 3292 *) as_fn_error $? "bad value $enableval for --enable-epoll" "$LINENO" 5 ;; 3293 esac 3294else 3295 epoll="yes" 3296fi 3297 3298 3299# Extract the first word of "help2man", so it can be a program name with args. 3300set dummy help2man; ac_word=$2 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3302$as_echo_n "checking for $ac_word... " >&6; } 3303if ${ac_cv_path_HELP2MAN+:} false; then : 3304 $as_echo_n "(cached) " >&6 3305else 3306 case $HELP2MAN in 3307 [\\/]* | ?:[\\/]*) 3308 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path. 3309 ;; 3310 *) 3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3312for as_dir in $PATH 3313do 3314 IFS=$as_save_IFS 3315 test -z "$as_dir" && as_dir=. 3316 for ac_exec_ext in '' $ac_executable_extensions; do 3317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3318 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext" 3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3320 break 2 3321 fi 3322done 3323 done 3324IFS=$as_save_IFS 3325 3326 ;; 3327esac 3328fi 3329HELP2MAN=$ac_cv_path_HELP2MAN 3330if test -n "$HELP2MAN"; then 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5 3332$as_echo "$HELP2MAN" >&6; } 3333else 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3335$as_echo "no" >&6; } 3336fi 3337 3338 3339 if test -n "$HELP2MAN"; then 3340 HAVE_HELP2MAN_TRUE= 3341 HAVE_HELP2MAN_FALSE='#' 3342else 3343 HAVE_HELP2MAN_TRUE='#' 3344 HAVE_HELP2MAN_FALSE= 3345fi 3346 3347if test x"$HELP2MAN" = x; then 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find help2man, you will not be able to generate manpages" >&5 3349$as_echo "$as_me: WARNING: cannot find help2man, you will not be able to generate manpages" >&2;} 3350fi 3351 3352# ==================== basic compiler settings ========================== 3353 3354ac_ext=c 3355ac_cpp='$CPP $CPPFLAGS' 3356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3358ac_compiler_gnu=$ac_cv_c_compiler_gnu 3359if test -n "$ac_tool_prefix"; then 3360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3361set dummy ${ac_tool_prefix}gcc; ac_word=$2 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3363$as_echo_n "checking for $ac_word... " >&6; } 3364if ${ac_cv_prog_CC+:} false; then : 3365 $as_echo_n "(cached) " >&6 3366else 3367 if test -n "$CC"; then 3368 ac_cv_prog_CC="$CC" # Let the user override the test. 3369else 3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3371for as_dir in $PATH 3372do 3373 IFS=$as_save_IFS 3374 test -z "$as_dir" && as_dir=. 3375 for ac_exec_ext in '' $ac_executable_extensions; do 3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3377 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3379 break 2 3380 fi 3381done 3382 done 3383IFS=$as_save_IFS 3384 3385fi 3386fi 3387CC=$ac_cv_prog_CC 3388if test -n "$CC"; then 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3390$as_echo "$CC" >&6; } 3391else 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3393$as_echo "no" >&6; } 3394fi 3395 3396 3397fi 3398if test -z "$ac_cv_prog_CC"; then 3399 ac_ct_CC=$CC 3400 # Extract the first word of "gcc", so it can be a program name with args. 3401set dummy gcc; ac_word=$2 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3403$as_echo_n "checking for $ac_word... " >&6; } 3404if ${ac_cv_prog_ac_ct_CC+:} false; then : 3405 $as_echo_n "(cached) " >&6 3406else 3407 if test -n "$ac_ct_CC"; then 3408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3409else 3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3411for as_dir in $PATH 3412do 3413 IFS=$as_save_IFS 3414 test -z "$as_dir" && as_dir=. 3415 for ac_exec_ext in '' $ac_executable_extensions; do 3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3417 ac_cv_prog_ac_ct_CC="gcc" 3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3419 break 2 3420 fi 3421done 3422 done 3423IFS=$as_save_IFS 3424 3425fi 3426fi 3427ac_ct_CC=$ac_cv_prog_ac_ct_CC 3428if test -n "$ac_ct_CC"; then 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3430$as_echo "$ac_ct_CC" >&6; } 3431else 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3433$as_echo "no" >&6; } 3434fi 3435 3436 if test "x$ac_ct_CC" = x; then 3437 CC="" 3438 else 3439 case $cross_compiling:$ac_tool_warned in 3440yes:) 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3443ac_tool_warned=yes ;; 3444esac 3445 CC=$ac_ct_CC 3446 fi 3447else 3448 CC="$ac_cv_prog_CC" 3449fi 3450 3451if test -z "$CC"; then 3452 if test -n "$ac_tool_prefix"; then 3453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3454set dummy ${ac_tool_prefix}cc; ac_word=$2 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3456$as_echo_n "checking for $ac_word... " >&6; } 3457if ${ac_cv_prog_CC+:} false; then : 3458 $as_echo_n "(cached) " >&6 3459else 3460 if test -n "$CC"; then 3461 ac_cv_prog_CC="$CC" # Let the user override the test. 3462else 3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3464for as_dir in $PATH 3465do 3466 IFS=$as_save_IFS 3467 test -z "$as_dir" && as_dir=. 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3470 ac_cv_prog_CC="${ac_tool_prefix}cc" 3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478fi 3479fi 3480CC=$ac_cv_prog_CC 3481if test -n "$CC"; then 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3483$as_echo "$CC" >&6; } 3484else 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486$as_echo "no" >&6; } 3487fi 3488 3489 3490 fi 3491fi 3492if test -z "$CC"; then 3493 # Extract the first word of "cc", so it can be a program name with args. 3494set dummy cc; ac_word=$2 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3496$as_echo_n "checking for $ac_word... " >&6; } 3497if ${ac_cv_prog_CC+:} false; then : 3498 $as_echo_n "(cached) " >&6 3499else 3500 if test -n "$CC"; then 3501 ac_cv_prog_CC="$CC" # Let the user override the test. 3502else 3503 ac_prog_rejected=no 3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3505for as_dir in $PATH 3506do 3507 IFS=$as_save_IFS 3508 test -z "$as_dir" && as_dir=. 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3512 ac_prog_rejected=yes 3513 continue 3514 fi 3515 ac_cv_prog_CC="cc" 3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519done 3520 done 3521IFS=$as_save_IFS 3522 3523if test $ac_prog_rejected = yes; then 3524 # We found a bogon in the path, so make sure we never use it. 3525 set dummy $ac_cv_prog_CC 3526 shift 3527 if test $@%:@ != 0; then 3528 # We chose a different compiler from the bogus one. 3529 # However, it has the same basename, so the bogon will be chosen 3530 # first if we set CC to just the basename; use the full file name. 3531 shift 3532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3533 fi 3534fi 3535fi 3536fi 3537CC=$ac_cv_prog_CC 3538if test -n "$CC"; then 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3540$as_echo "$CC" >&6; } 3541else 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3543$as_echo "no" >&6; } 3544fi 3545 3546 3547fi 3548if test -z "$CC"; then 3549 if test -n "$ac_tool_prefix"; then 3550 for ac_prog in cl.exe 3551 do 3552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3553set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3555$as_echo_n "checking for $ac_word... " >&6; } 3556if ${ac_cv_prog_CC+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 if test -n "$CC"; then 3560 ac_cv_prog_CC="$CC" # Let the user override the test. 3561else 3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3563for as_dir in $PATH 3564do 3565 IFS=$as_save_IFS 3566 test -z "$as_dir" && as_dir=. 3567 for ac_exec_ext in '' $ac_executable_extensions; do 3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3571 break 2 3572 fi 3573done 3574 done 3575IFS=$as_save_IFS 3576 3577fi 3578fi 3579CC=$ac_cv_prog_CC 3580if test -n "$CC"; then 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3582$as_echo "$CC" >&6; } 3583else 3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3585$as_echo "no" >&6; } 3586fi 3587 3588 3589 test -n "$CC" && break 3590 done 3591fi 3592if test -z "$CC"; then 3593 ac_ct_CC=$CC 3594 for ac_prog in cl.exe 3595do 3596 # Extract the first word of "$ac_prog", so it can be a program name with args. 3597set dummy $ac_prog; ac_word=$2 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3599$as_echo_n "checking for $ac_word... " >&6; } 3600if ${ac_cv_prog_ac_ct_CC+:} false; then : 3601 $as_echo_n "(cached) " >&6 3602else 3603 if test -n "$ac_ct_CC"; then 3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3605else 3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3607for as_dir in $PATH 3608do 3609 IFS=$as_save_IFS 3610 test -z "$as_dir" && as_dir=. 3611 for ac_exec_ext in '' $ac_executable_extensions; do 3612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3613 ac_cv_prog_ac_ct_CC="$ac_prog" 3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3615 break 2 3616 fi 3617done 3618 done 3619IFS=$as_save_IFS 3620 3621fi 3622fi 3623ac_ct_CC=$ac_cv_prog_ac_ct_CC 3624if test -n "$ac_ct_CC"; then 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3626$as_echo "$ac_ct_CC" >&6; } 3627else 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3629$as_echo "no" >&6; } 3630fi 3631 3632 3633 test -n "$ac_ct_CC" && break 3634done 3635 3636 if test "x$ac_ct_CC" = x; then 3637 CC="" 3638 else 3639 case $cross_compiling:$ac_tool_warned in 3640yes:) 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3643ac_tool_warned=yes ;; 3644esac 3645 CC=$ac_ct_CC 3646 fi 3647fi 3648 3649fi 3650 3651 3652test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3654as_fn_error $? "no acceptable C compiler found in \$PATH 3655See \`config.log' for more details" "$LINENO" 5; } 3656 3657# Provide some information about the compiler. 3658$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3659set X $ac_compile 3660ac_compiler=$2 3661for ac_option in --version -v -V -qversion; do 3662 { { ac_try="$ac_compiler $ac_option >&5" 3663case "(($ac_try" in 3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3665 *) ac_try_echo=$ac_try;; 3666esac 3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3668$as_echo "$ac_try_echo"; } >&5 3669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3670 ac_status=$? 3671 if test -s conftest.err; then 3672 sed '10a\ 3673... rest of stderr output deleted ... 3674 10q' conftest.err >conftest.er1 3675 cat conftest.er1 >&5 3676 fi 3677 rm -f conftest.er1 conftest.err 3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3679 test $ac_status = 0; } 3680done 3681 3682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683/* end confdefs.h. */ 3684 3685int 3686main () 3687{ 3688 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693ac_clean_files_save=$ac_clean_files 3694ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3695# Try to create an executable without -o first, disregard a.out. 3696# It will help us diagnose broken compilers, and finding out an intuition 3697# of exeext. 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3699$as_echo_n "checking whether the C compiler works... " >&6; } 3700ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3701 3702# The possible output files: 3703ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3704 3705ac_rmfiles= 3706for ac_file in $ac_files 3707do 3708 case $ac_file in 3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3710 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3711 esac 3712done 3713rm -f $ac_rmfiles 3714 3715if { { ac_try="$ac_link_default" 3716case "(($ac_try" in 3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3718 *) ac_try_echo=$ac_try;; 3719esac 3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3721$as_echo "$ac_try_echo"; } >&5 3722 (eval "$ac_link_default") 2>&5 3723 ac_status=$? 3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3725 test $ac_status = 0; }; then : 3726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3727# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3728# in a Makefile. We should not override ac_cv_exeext if it was cached, 3729# so that the user can short-circuit this test for compilers unknown to 3730# Autoconf. 3731for ac_file in $ac_files '' 3732do 3733 test -f "$ac_file" || continue 3734 case $ac_file in 3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3736 ;; 3737 [ab].out ) 3738 # We found the default executable, but exeext='' is most 3739 # certainly right. 3740 break;; 3741 *.* ) 3742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3743 then :; else 3744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3745 fi 3746 # We set ac_cv_exeext here because the later test for it is not 3747 # safe: cross compilers may not add the suffix if given an `-o' 3748 # argument, so we may need to know it at that point already. 3749 # Even if this section looks crufty: it has the advantage of 3750 # actually working. 3751 break;; 3752 * ) 3753 break;; 3754 esac 3755done 3756test "$ac_cv_exeext" = no && ac_cv_exeext= 3757 3758else 3759 ac_file='' 3760fi 3761if test -z "$ac_file"; then : 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3763$as_echo "no" >&6; } 3764$as_echo "$as_me: failed program was:" >&5 3765sed 's/^/| /' conftest.$ac_ext >&5 3766 3767{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3769as_fn_error 77 "C compiler cannot create executables 3770See \`config.log' for more details" "$LINENO" 5; } 3771else 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3773$as_echo "yes" >&6; } 3774fi 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3776$as_echo_n "checking for C compiler default output file name... " >&6; } 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3778$as_echo "$ac_file" >&6; } 3779ac_exeext=$ac_cv_exeext 3780 3781rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3782ac_clean_files=$ac_clean_files_save 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3784$as_echo_n "checking for suffix of executables... " >&6; } 3785if { { ac_try="$ac_link" 3786case "(($ac_try" in 3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3788 *) ac_try_echo=$ac_try;; 3789esac 3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3791$as_echo "$ac_try_echo"; } >&5 3792 (eval "$ac_link") 2>&5 3793 ac_status=$? 3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3795 test $ac_status = 0; }; then : 3796 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3797# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3798# work properly (i.e., refer to `conftest.exe'), while it won't with 3799# `rm'. 3800for ac_file in conftest.exe conftest conftest.*; do 3801 test -f "$ac_file" || continue 3802 case $ac_file in 3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3805 break;; 3806 * ) break;; 3807 esac 3808done 3809else 3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3812as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3813See \`config.log' for more details" "$LINENO" 5; } 3814fi 3815rm -f conftest conftest$ac_cv_exeext 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3817$as_echo "$ac_cv_exeext" >&6; } 3818 3819rm -f conftest.$ac_ext 3820EXEEXT=$ac_cv_exeext 3821ac_exeext=$EXEEXT 3822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823/* end confdefs.h. */ 3824@%:@include <stdio.h> 3825int 3826main () 3827{ 3828FILE *f = fopen ("conftest.out", "w"); 3829 return ferror (f) || fclose (f) != 0; 3830 3831 ; 3832 return 0; 3833} 3834_ACEOF 3835ac_clean_files="$ac_clean_files conftest.out" 3836# Check that the compiler produces executables we can run. If not, either 3837# the compiler is broken, or we cross compile. 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3839$as_echo_n "checking whether we are cross compiling... " >&6; } 3840if test "$cross_compiling" != yes; then 3841 { { ac_try="$ac_link" 3842case "(($ac_try" in 3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3844 *) ac_try_echo=$ac_try;; 3845esac 3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3847$as_echo "$ac_try_echo"; } >&5 3848 (eval "$ac_link") 2>&5 3849 ac_status=$? 3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3851 test $ac_status = 0; } 3852 if { ac_try='./conftest$ac_cv_exeext' 3853 { { case "(($ac_try" in 3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3855 *) ac_try_echo=$ac_try;; 3856esac 3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3858$as_echo "$ac_try_echo"; } >&5 3859 (eval "$ac_try") 2>&5 3860 ac_status=$? 3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3862 test $ac_status = 0; }; }; then 3863 cross_compiling=no 3864 else 3865 if test "$cross_compiling" = maybe; then 3866 cross_compiling=yes 3867 else 3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3870as_fn_error $? "cannot run C compiled programs. 3871If you meant to cross compile, use \`--host'. 3872See \`config.log' for more details" "$LINENO" 5; } 3873 fi 3874 fi 3875fi 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3877$as_echo "$cross_compiling" >&6; } 3878 3879rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3880ac_clean_files=$ac_clean_files_save 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3882$as_echo_n "checking for suffix of object files... " >&6; } 3883if ${ac_cv_objext+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887/* end confdefs.h. */ 3888 3889int 3890main () 3891{ 3892 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897rm -f conftest.o conftest.obj 3898if { { ac_try="$ac_compile" 3899case "(($ac_try" in 3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3901 *) ac_try_echo=$ac_try;; 3902esac 3903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3904$as_echo "$ac_try_echo"; } >&5 3905 (eval "$ac_compile") 2>&5 3906 ac_status=$? 3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3908 test $ac_status = 0; }; then : 3909 for ac_file in conftest.o conftest.obj conftest.*; do 3910 test -f "$ac_file" || continue; 3911 case $ac_file in 3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3914 break;; 3915 esac 3916done 3917else 3918 $as_echo "$as_me: failed program was:" >&5 3919sed 's/^/| /' conftest.$ac_ext >&5 3920 3921{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3923as_fn_error $? "cannot compute suffix of object files: cannot compile 3924See \`config.log' for more details" "$LINENO" 5; } 3925fi 3926rm -f conftest.$ac_cv_objext conftest.$ac_ext 3927fi 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3929$as_echo "$ac_cv_objext" >&6; } 3930OBJEXT=$ac_cv_objext 3931ac_objext=$OBJEXT 3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3933$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3934if ${ac_cv_c_compiler_gnu+:} false; then : 3935 $as_echo_n "(cached) " >&6 3936else 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939 3940int 3941main () 3942{ 3943#ifndef __GNUC__ 3944 choke me 3945#endif 3946 3947 ; 3948 return 0; 3949} 3950_ACEOF 3951if ac_fn_c_try_compile "$LINENO"; then : 3952 ac_compiler_gnu=yes 3953else 3954 ac_compiler_gnu=no 3955fi 3956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3957ac_cv_c_compiler_gnu=$ac_compiler_gnu 3958 3959fi 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3961$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3962if test $ac_compiler_gnu = yes; then 3963 GCC=yes 3964else 3965 GCC= 3966fi 3967ac_test_CFLAGS=${CFLAGS+set} 3968ac_save_CFLAGS=$CFLAGS 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3970$as_echo_n "checking whether $CC accepts -g... " >&6; } 3971if ${ac_cv_prog_cc_g+:} false; then : 3972 $as_echo_n "(cached) " >&6 3973else 3974 ac_save_c_werror_flag=$ac_c_werror_flag 3975 ac_c_werror_flag=yes 3976 ac_cv_prog_cc_g=no 3977 CFLAGS="-g" 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980 3981int 3982main () 3983{ 3984 3985 ; 3986 return 0; 3987} 3988_ACEOF 3989if ac_fn_c_try_compile "$LINENO"; then : 3990 ac_cv_prog_cc_g=yes 3991else 3992 CFLAGS="" 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995 3996int 3997main () 3998{ 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004if ac_fn_c_try_compile "$LINENO"; then : 4005 4006else 4007 ac_c_werror_flag=$ac_save_c_werror_flag 4008 CFLAGS="-g" 4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4010/* end confdefs.h. */ 4011 4012int 4013main () 4014{ 4015 4016 ; 4017 return 0; 4018} 4019_ACEOF 4020if ac_fn_c_try_compile "$LINENO"; then : 4021 ac_cv_prog_cc_g=yes 4022fi 4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4024fi 4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4026fi 4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4028 ac_c_werror_flag=$ac_save_c_werror_flag 4029fi 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4031$as_echo "$ac_cv_prog_cc_g" >&6; } 4032if test "$ac_test_CFLAGS" = set; then 4033 CFLAGS=$ac_save_CFLAGS 4034elif test $ac_cv_prog_cc_g = yes; then 4035 if test "$GCC" = yes; then 4036 CFLAGS="-g -O2" 4037 else 4038 CFLAGS="-g" 4039 fi 4040else 4041 if test "$GCC" = yes; then 4042 CFLAGS="-O2" 4043 else 4044 CFLAGS= 4045 fi 4046fi 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4048$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4049if ${ac_cv_prog_cc_c89+:} false; then : 4050 $as_echo_n "(cached) " >&6 4051else 4052 ac_cv_prog_cc_c89=no 4053ac_save_CC=$CC 4054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056#include <stdarg.h> 4057#include <stdio.h> 4058struct stat; 4059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4060struct buf { int x; }; 4061FILE * (*rcsopen) (struct buf *, struct stat *, int); 4062static char *e (p, i) 4063 char **p; 4064 int i; 4065{ 4066 return p[i]; 4067} 4068static char *f (char * (*g) (char **, int), char **p, ...) 4069{ 4070 char *s; 4071 va_list v; 4072 va_start (v,p); 4073 s = g (p, va_arg (v,int)); 4074 va_end (v); 4075 return s; 4076} 4077 4078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4079 function prototypes and stuff, but not '\xHH' hex character constants. 4080 These don't provoke an error unfortunately, instead are silently treated 4081 as 'x'. The following induces an error, until -std is added to get 4082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4083 array size at least. It's necessary to write '\x00'==0 to get something 4084 that's true only with -std. */ 4085int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4086 4087/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4088 inside strings and character constants. */ 4089#define FOO(x) 'x' 4090int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4091 4092int test (int i, double x); 4093struct s1 {int (*f) (int a);}; 4094struct s2 {int (*f) (double a);}; 4095int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4096int argc; 4097char **argv; 4098int 4099main () 4100{ 4101return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4102 ; 4103 return 0; 4104} 4105_ACEOF 4106for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4108do 4109 CC="$ac_save_CC $ac_arg" 4110 if ac_fn_c_try_compile "$LINENO"; then : 4111 ac_cv_prog_cc_c89=$ac_arg 4112fi 4113rm -f core conftest.err conftest.$ac_objext 4114 test "x$ac_cv_prog_cc_c89" != "xno" && break 4115done 4116rm -f conftest.$ac_ext 4117CC=$ac_save_CC 4118 4119fi 4120# AC_CACHE_VAL 4121case "x$ac_cv_prog_cc_c89" in 4122 x) 4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4124$as_echo "none needed" >&6; } ;; 4125 xno) 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4127$as_echo "unsupported" >&6; } ;; 4128 *) 4129 CC="$CC $ac_cv_prog_cc_c89" 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4131$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4132esac 4133if test "x$ac_cv_prog_cc_c89" != xno; then : 4134 4135fi 4136 4137ac_ext=c 4138ac_cpp='$CPP $CPPFLAGS' 4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4141ac_compiler_gnu=$ac_cv_c_compiler_gnu 4142DEPDIR="${am__leading_dot}deps" 4143 4144ac_config_commands="$ac_config_commands depfiles" 4145 4146 4147am_make=${MAKE-make} 4148cat > confinc << 'END' 4149am__doit: 4150 @echo this is the am__doit target 4151.PHONY: am__doit 4152END 4153# If we don't find an include directive, just comment out the code. 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4155$as_echo_n "checking for style of include used by $am_make... " >&6; } 4156am__include="#" 4157am__quote= 4158_am_result=none 4159# First try GNU make style include. 4160echo "include confinc" > confmf 4161# Ignore all kinds of additional output from 'make'. 4162case `$am_make -s -f confmf 2> /dev/null` in #( 4163*the\ am__doit\ target*) 4164 am__include=include 4165 am__quote= 4166 _am_result=GNU 4167 ;; 4168esac 4169# Now try BSD make style include. 4170if test "$am__include" = "#"; then 4171 echo '.include "confinc"' > confmf 4172 case `$am_make -s -f confmf 2> /dev/null` in #( 4173 *the\ am__doit\ target*) 4174 am__include=.include 4175 am__quote="\"" 4176 _am_result=BSD 4177 ;; 4178 esac 4179fi 4180 4181 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4183$as_echo "$_am_result" >&6; } 4184rm -f confinc confmf 4185 4186@%:@ Check whether --enable-dependency-tracking was given. 4187if test "${enable_dependency_tracking+set}" = set; then : 4188 enableval=$enable_dependency_tracking; 4189fi 4190 4191if test "x$enable_dependency_tracking" != xno; then 4192 am_depcomp="$ac_aux_dir/depcomp" 4193 AMDEPBACKSLASH='\' 4194 am__nodep='_no' 4195fi 4196 if test "x$enable_dependency_tracking" != xno; then 4197 AMDEP_TRUE= 4198 AMDEP_FALSE='#' 4199else 4200 AMDEP_TRUE='#' 4201 AMDEP_FALSE= 4202fi 4203 4204 4205 4206depcc="$CC" am_compiler_list= 4207 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4209$as_echo_n "checking dependency style of $depcc... " >&6; } 4210if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4211 $as_echo_n "(cached) " >&6 4212else 4213 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4214 # We make a subdir and do the tests there. Otherwise we can end up 4215 # making bogus files that we don't know about and never remove. For 4216 # instance it was reported that on HP-UX the gcc test will end up 4217 # making a dummy file named 'D' -- because '-MD' means "put the output 4218 # in D". 4219 rm -rf conftest.dir 4220 mkdir conftest.dir 4221 # Copy depcomp to subdir because otherwise we won't find it if we're 4222 # using a relative directory. 4223 cp "$am_depcomp" conftest.dir 4224 cd conftest.dir 4225 # We will build objects and dependencies in a subdirectory because 4226 # it helps to detect inapplicable dependency modes. For instance 4227 # both Tru64's cc and ICC support -MD to output dependencies as a 4228 # side effect of compilation, but ICC will put the dependencies in 4229 # the current directory while Tru64 will put them in the object 4230 # directory. 4231 mkdir sub 4232 4233 am_cv_CC_dependencies_compiler_type=none 4234 if test "$am_compiler_list" = ""; then 4235 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4236 fi 4237 am__universal=false 4238 case " $depcc " in #( 4239 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4240 esac 4241 4242 for depmode in $am_compiler_list; do 4243 # Setup a source with many dependencies, because some compilers 4244 # like to wrap large dependency lists on column 80 (with \), and 4245 # we should not choose a depcomp mode which is confused by this. 4246 # 4247 # We need to recreate these files for each test, as the compiler may 4248 # overwrite some of them when testing with obscure command lines. 4249 # This happens at least with the AIX C compiler. 4250 : > sub/conftest.c 4251 for i in 1 2 3 4 5 6; do 4252 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4253 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4254 # Solaris 10 /bin/sh. 4255 echo '/* dummy */' > sub/conftst$i.h 4256 done 4257 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4258 4259 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4260 # mode. It turns out that the SunPro C++ compiler does not properly 4261 # handle '-M -o', and we need to detect this. Also, some Intel 4262 # versions had trouble with output in subdirs. 4263 am__obj=sub/conftest.${OBJEXT-o} 4264 am__minus_obj="-o $am__obj" 4265 case $depmode in 4266 gcc) 4267 # This depmode causes a compiler race in universal mode. 4268 test "$am__universal" = false || continue 4269 ;; 4270 nosideeffect) 4271 # After this tag, mechanisms are not by side-effect, so they'll 4272 # only be used when explicitly requested. 4273 if test "x$enable_dependency_tracking" = xyes; then 4274 continue 4275 else 4276 break 4277 fi 4278 ;; 4279 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4280 # This compiler won't grok '-c -o', but also, the minuso test has 4281 # not run yet. These depmodes are late enough in the game, and 4282 # so weak that their functioning should not be impacted. 4283 am__obj=conftest.${OBJEXT-o} 4284 am__minus_obj= 4285 ;; 4286 none) break ;; 4287 esac 4288 if depmode=$depmode \ 4289 source=sub/conftest.c object=$am__obj \ 4290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4291 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4292 >/dev/null 2>conftest.err && 4293 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4294 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4295 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4296 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4297 # icc doesn't choke on unknown options, it will just issue warnings 4298 # or remarks (even with -Werror). So we grep stderr for any message 4299 # that says an option was ignored or not supported. 4300 # When given -MP, icc 7.0 and 7.1 complain thusly: 4301 # icc: Command line warning: ignoring option '-M'; no argument required 4302 # The diagnosis changed in icc 8.0: 4303 # icc: Command line remark: option '-MP' not supported 4304 if (grep 'ignoring option' conftest.err || 4305 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4306 am_cv_CC_dependencies_compiler_type=$depmode 4307 break 4308 fi 4309 fi 4310 done 4311 4312 cd .. 4313 rm -rf conftest.dir 4314else 4315 am_cv_CC_dependencies_compiler_type=none 4316fi 4317 4318fi 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4320$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4321CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4322 4323 if 4324 test "x$enable_dependency_tracking" != xno \ 4325 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4326 am__fastdepCC_TRUE= 4327 am__fastdepCC_FALSE='#' 4328else 4329 am__fastdepCC_TRUE='#' 4330 am__fastdepCC_FALSE= 4331fi 4332 4333 4334ac_ext=cpp 4335ac_cpp='$CXXCPP $CPPFLAGS' 4336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4339if test -z "$CXX"; then 4340 if test -n "$CCC"; then 4341 CXX=$CCC 4342 else 4343 if test -n "$ac_tool_prefix"; then 4344 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4345 do 4346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4347set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4349$as_echo_n "checking for $ac_word... " >&6; } 4350if ${ac_cv_prog_CXX+:} false; then : 4351 $as_echo_n "(cached) " >&6 4352else 4353 if test -n "$CXX"; then 4354 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4355else 4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4357for as_dir in $PATH 4358do 4359 IFS=$as_save_IFS 4360 test -z "$as_dir" && as_dir=. 4361 for ac_exec_ext in '' $ac_executable_extensions; do 4362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4363 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4365 break 2 4366 fi 4367done 4368 done 4369IFS=$as_save_IFS 4370 4371fi 4372fi 4373CXX=$ac_cv_prog_CXX 4374if test -n "$CXX"; then 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4376$as_echo "$CXX" >&6; } 4377else 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4379$as_echo "no" >&6; } 4380fi 4381 4382 4383 test -n "$CXX" && break 4384 done 4385fi 4386if test -z "$CXX"; then 4387 ac_ct_CXX=$CXX 4388 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4389do 4390 # Extract the first word of "$ac_prog", so it can be a program name with args. 4391set dummy $ac_prog; ac_word=$2 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4393$as_echo_n "checking for $ac_word... " >&6; } 4394if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 if test -n "$ac_ct_CXX"; then 4398 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4399else 4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4401for as_dir in $PATH 4402do 4403 IFS=$as_save_IFS 4404 test -z "$as_dir" && as_dir=. 4405 for ac_exec_ext in '' $ac_executable_extensions; do 4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4407 ac_cv_prog_ac_ct_CXX="$ac_prog" 4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4409 break 2 4410 fi 4411done 4412 done 4413IFS=$as_save_IFS 4414 4415fi 4416fi 4417ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4418if test -n "$ac_ct_CXX"; then 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4420$as_echo "$ac_ct_CXX" >&6; } 4421else 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4423$as_echo "no" >&6; } 4424fi 4425 4426 4427 test -n "$ac_ct_CXX" && break 4428done 4429 4430 if test "x$ac_ct_CXX" = x; then 4431 CXX="g++" 4432 else 4433 case $cross_compiling:$ac_tool_warned in 4434yes:) 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4437ac_tool_warned=yes ;; 4438esac 4439 CXX=$ac_ct_CXX 4440 fi 4441fi 4442 4443 fi 4444fi 4445# Provide some information about the compiler. 4446$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4447set X $ac_compile 4448ac_compiler=$2 4449for ac_option in --version -v -V -qversion; do 4450 { { ac_try="$ac_compiler $ac_option >&5" 4451case "(($ac_try" in 4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4453 *) ac_try_echo=$ac_try;; 4454esac 4455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4456$as_echo "$ac_try_echo"; } >&5 4457 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4458 ac_status=$? 4459 if test -s conftest.err; then 4460 sed '10a\ 4461... rest of stderr output deleted ... 4462 10q' conftest.err >conftest.er1 4463 cat conftest.er1 >&5 4464 fi 4465 rm -f conftest.er1 conftest.err 4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4467 test $ac_status = 0; } 4468done 4469 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4471$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4472if ${ac_cv_cxx_compiler_gnu+:} false; then : 4473 $as_echo_n "(cached) " >&6 4474else 4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476/* end confdefs.h. */ 4477 4478int 4479main () 4480{ 4481#ifndef __GNUC__ 4482 choke me 4483#endif 4484 4485 ; 4486 return 0; 4487} 4488_ACEOF 4489if ac_fn_cxx_try_compile "$LINENO"; then : 4490 ac_compiler_gnu=yes 4491else 4492 ac_compiler_gnu=no 4493fi 4494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4495ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4496 4497fi 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4499$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4500if test $ac_compiler_gnu = yes; then 4501 GXX=yes 4502else 4503 GXX= 4504fi 4505ac_test_CXXFLAGS=${CXXFLAGS+set} 4506ac_save_CXXFLAGS=$CXXFLAGS 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4508$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4509if ${ac_cv_prog_cxx_g+:} false; then : 4510 $as_echo_n "(cached) " >&6 4511else 4512 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4513 ac_cxx_werror_flag=yes 4514 ac_cv_prog_cxx_g=no 4515 CXXFLAGS="-g" 4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4517/* end confdefs.h. */ 4518 4519int 4520main () 4521{ 4522 4523 ; 4524 return 0; 4525} 4526_ACEOF 4527if ac_fn_cxx_try_compile "$LINENO"; then : 4528 ac_cv_prog_cxx_g=yes 4529else 4530 CXXFLAGS="" 4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4532/* end confdefs.h. */ 4533 4534int 4535main () 4536{ 4537 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542if ac_fn_cxx_try_compile "$LINENO"; then : 4543 4544else 4545 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4546 CXXFLAGS="-g" 4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4548/* end confdefs.h. */ 4549 4550int 4551main () 4552{ 4553 4554 ; 4555 return 0; 4556} 4557_ACEOF 4558if ac_fn_cxx_try_compile "$LINENO"; then : 4559 ac_cv_prog_cxx_g=yes 4560fi 4561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4562fi 4563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4564fi 4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4566 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4567fi 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4569$as_echo "$ac_cv_prog_cxx_g" >&6; } 4570if test "$ac_test_CXXFLAGS" = set; then 4571 CXXFLAGS=$ac_save_CXXFLAGS 4572elif test $ac_cv_prog_cxx_g = yes; then 4573 if test "$GXX" = yes; then 4574 CXXFLAGS="-g -O2" 4575 else 4576 CXXFLAGS="-g" 4577 fi 4578else 4579 if test "$GXX" = yes; then 4580 CXXFLAGS="-O2" 4581 else 4582 CXXFLAGS= 4583 fi 4584fi 4585ac_ext=c 4586ac_cpp='$CPP $CPPFLAGS' 4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4589ac_compiler_gnu=$ac_cv_c_compiler_gnu 4590 4591depcc="$CXX" am_compiler_list= 4592 4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4594$as_echo_n "checking dependency style of $depcc... " >&6; } 4595if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4596 $as_echo_n "(cached) " >&6 4597else 4598 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4599 # We make a subdir and do the tests there. Otherwise we can end up 4600 # making bogus files that we don't know about and never remove. For 4601 # instance it was reported that on HP-UX the gcc test will end up 4602 # making a dummy file named 'D' -- because '-MD' means "put the output 4603 # in D". 4604 rm -rf conftest.dir 4605 mkdir conftest.dir 4606 # Copy depcomp to subdir because otherwise we won't find it if we're 4607 # using a relative directory. 4608 cp "$am_depcomp" conftest.dir 4609 cd conftest.dir 4610 # We will build objects and dependencies in a subdirectory because 4611 # it helps to detect inapplicable dependency modes. For instance 4612 # both Tru64's cc and ICC support -MD to output dependencies as a 4613 # side effect of compilation, but ICC will put the dependencies in 4614 # the current directory while Tru64 will put them in the object 4615 # directory. 4616 mkdir sub 4617 4618 am_cv_CXX_dependencies_compiler_type=none 4619 if test "$am_compiler_list" = ""; then 4620 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4621 fi 4622 am__universal=false 4623 case " $depcc " in #( 4624 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4625 esac 4626 4627 for depmode in $am_compiler_list; do 4628 # Setup a source with many dependencies, because some compilers 4629 # like to wrap large dependency lists on column 80 (with \), and 4630 # we should not choose a depcomp mode which is confused by this. 4631 # 4632 # We need to recreate these files for each test, as the compiler may 4633 # overwrite some of them when testing with obscure command lines. 4634 # This happens at least with the AIX C compiler. 4635 : > sub/conftest.c 4636 for i in 1 2 3 4 5 6; do 4637 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4638 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4639 # Solaris 10 /bin/sh. 4640 echo '/* dummy */' > sub/conftst$i.h 4641 done 4642 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4643 4644 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4645 # mode. It turns out that the SunPro C++ compiler does not properly 4646 # handle '-M -o', and we need to detect this. Also, some Intel 4647 # versions had trouble with output in subdirs. 4648 am__obj=sub/conftest.${OBJEXT-o} 4649 am__minus_obj="-o $am__obj" 4650 case $depmode in 4651 gcc) 4652 # This depmode causes a compiler race in universal mode. 4653 test "$am__universal" = false || continue 4654 ;; 4655 nosideeffect) 4656 # After this tag, mechanisms are not by side-effect, so they'll 4657 # only be used when explicitly requested. 4658 if test "x$enable_dependency_tracking" = xyes; then 4659 continue 4660 else 4661 break 4662 fi 4663 ;; 4664 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4665 # This compiler won't grok '-c -o', but also, the minuso test has 4666 # not run yet. These depmodes are late enough in the game, and 4667 # so weak that their functioning should not be impacted. 4668 am__obj=conftest.${OBJEXT-o} 4669 am__minus_obj= 4670 ;; 4671 none) break ;; 4672 esac 4673 if depmode=$depmode \ 4674 source=sub/conftest.c object=$am__obj \ 4675 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4676 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4677 >/dev/null 2>conftest.err && 4678 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4679 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4680 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4681 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4682 # icc doesn't choke on unknown options, it will just issue warnings 4683 # or remarks (even with -Werror). So we grep stderr for any message 4684 # that says an option was ignored or not supported. 4685 # When given -MP, icc 7.0 and 7.1 complain thusly: 4686 # icc: Command line warning: ignoring option '-M'; no argument required 4687 # The diagnosis changed in icc 8.0: 4688 # icc: Command line remark: option '-MP' not supported 4689 if (grep 'ignoring option' conftest.err || 4690 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4691 am_cv_CXX_dependencies_compiler_type=$depmode 4692 break 4693 fi 4694 fi 4695 done 4696 4697 cd .. 4698 rm -rf conftest.dir 4699else 4700 am_cv_CXX_dependencies_compiler_type=none 4701fi 4702 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4705$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4706CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4707 4708 if 4709 test "x$enable_dependency_tracking" != xno \ 4710 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4711 am__fastdepCXX_TRUE= 4712 am__fastdepCXX_FALSE='#' 4713else 4714 am__fastdepCXX_TRUE='#' 4715 am__fastdepCXX_FALSE= 4716fi 4717 4718 4719 4720ac_ext=c 4721ac_cpp='$CPP $CPPFLAGS' 4722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4724ac_compiler_gnu=$ac_cv_c_compiler_gnu 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4726$as_echo_n "checking how to run the C preprocessor... " >&6; } 4727# On Suns, sometimes $CPP names a directory. 4728if test -n "$CPP" && test -d "$CPP"; then 4729 CPP= 4730fi 4731if test -z "$CPP"; then 4732 if ${ac_cv_prog_CPP+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 # Double quotes because CPP needs to be expanded 4736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4737 do 4738 ac_preproc_ok=false 4739for ac_c_preproc_warn_flag in '' yes 4740do 4741 # Use a header file that comes with gcc, so configuring glibc 4742 # with a fresh cross-compiler works. 4743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4744 # <limits.h> exists even on freestanding compilers. 4745 # On the NeXT, cc -E runs the code through the compiler's parser, 4746 # not just through cpp. "Syntax error" is here to catch this case. 4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748/* end confdefs.h. */ 4749@%:@ifdef __STDC__ 4750@%:@ include <limits.h> 4751@%:@else 4752@%:@ include <assert.h> 4753@%:@endif 4754 Syntax error 4755_ACEOF 4756if ac_fn_c_try_cpp "$LINENO"; then : 4757 4758else 4759 # Broken: fails on valid input. 4760continue 4761fi 4762rm -f conftest.err conftest.i conftest.$ac_ext 4763 4764 # OK, works on sane cases. Now check whether nonexistent headers 4765 # can be detected and how. 4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4767/* end confdefs.h. */ 4768@%:@include <ac_nonexistent.h> 4769_ACEOF 4770if ac_fn_c_try_cpp "$LINENO"; then : 4771 # Broken: success on invalid input. 4772continue 4773else 4774 # Passes both tests. 4775ac_preproc_ok=: 4776break 4777fi 4778rm -f conftest.err conftest.i conftest.$ac_ext 4779 4780done 4781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4782rm -f conftest.i conftest.err conftest.$ac_ext 4783if $ac_preproc_ok; then : 4784 break 4785fi 4786 4787 done 4788 ac_cv_prog_CPP=$CPP 4789 4790fi 4791 CPP=$ac_cv_prog_CPP 4792else 4793 ac_cv_prog_CPP=$CPP 4794fi 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4796$as_echo "$CPP" >&6; } 4797ac_preproc_ok=false 4798for ac_c_preproc_warn_flag in '' yes 4799do 4800 # Use a header file that comes with gcc, so configuring glibc 4801 # with a fresh cross-compiler works. 4802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4803 # <limits.h> exists even on freestanding compilers. 4804 # On the NeXT, cc -E runs the code through the compiler's parser, 4805 # not just through cpp. "Syntax error" is here to catch this case. 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808@%:@ifdef __STDC__ 4809@%:@ include <limits.h> 4810@%:@else 4811@%:@ include <assert.h> 4812@%:@endif 4813 Syntax error 4814_ACEOF 4815if ac_fn_c_try_cpp "$LINENO"; then : 4816 4817else 4818 # Broken: fails on valid input. 4819continue 4820fi 4821rm -f conftest.err conftest.i conftest.$ac_ext 4822 4823 # OK, works on sane cases. Now check whether nonexistent headers 4824 # can be detected and how. 4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4826/* end confdefs.h. */ 4827@%:@include <ac_nonexistent.h> 4828_ACEOF 4829if ac_fn_c_try_cpp "$LINENO"; then : 4830 # Broken: success on invalid input. 4831continue 4832else 4833 # Passes both tests. 4834ac_preproc_ok=: 4835break 4836fi 4837rm -f conftest.err conftest.i conftest.$ac_ext 4838 4839done 4840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4841rm -f conftest.i conftest.err conftest.$ac_ext 4842if $ac_preproc_ok; then : 4843 4844else 4845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4847as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4848See \`config.log' for more details" "$LINENO" 5; } 4849fi 4850 4851ac_ext=c 4852ac_cpp='$CPP $CPPFLAGS' 4853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4855ac_compiler_gnu=$ac_cv_c_compiler_gnu 4856 4857 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4859$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4860if ${ac_cv_path_GREP+:} false; then : 4861 $as_echo_n "(cached) " >&6 4862else 4863 if test -z "$GREP"; then 4864 ac_path_GREP_found=false 4865 # Loop through the user's path and test for each of PROGNAME-LIST 4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4867for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4868do 4869 IFS=$as_save_IFS 4870 test -z "$as_dir" && as_dir=. 4871 for ac_prog in grep ggrep; do 4872 for ac_exec_ext in '' $ac_executable_extensions; do 4873 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4874 as_fn_executable_p "$ac_path_GREP" || continue 4875# Check for GNU ac_path_GREP and select it if it is found. 4876 # Check for GNU $ac_path_GREP 4877case `"$ac_path_GREP" --version 2>&1` in 4878*GNU*) 4879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4880*) 4881 ac_count=0 4882 $as_echo_n 0123456789 >"conftest.in" 4883 while : 4884 do 4885 cat "conftest.in" "conftest.in" >"conftest.tmp" 4886 mv "conftest.tmp" "conftest.in" 4887 cp "conftest.in" "conftest.nl" 4888 $as_echo 'GREP' >> "conftest.nl" 4889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4891 as_fn_arith $ac_count + 1 && ac_count=$as_val 4892 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4893 # Best one so far, save it but keep looking for a better one 4894 ac_cv_path_GREP="$ac_path_GREP" 4895 ac_path_GREP_max=$ac_count 4896 fi 4897 # 10*(2^10) chars as input seems more than enough 4898 test $ac_count -gt 10 && break 4899 done 4900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4901esac 4902 4903 $ac_path_GREP_found && break 3 4904 done 4905 done 4906 done 4907IFS=$as_save_IFS 4908 if test -z "$ac_cv_path_GREP"; then 4909 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4910 fi 4911else 4912 ac_cv_path_GREP=$GREP 4913fi 4914 4915fi 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4917$as_echo "$ac_cv_path_GREP" >&6; } 4918 GREP="$ac_cv_path_GREP" 4919 4920 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4922$as_echo_n "checking for egrep... " >&6; } 4923if ${ac_cv_path_EGREP+:} false; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4927 then ac_cv_path_EGREP="$GREP -E" 4928 else 4929 if test -z "$EGREP"; then 4930 ac_path_EGREP_found=false 4931 # Loop through the user's path and test for each of PROGNAME-LIST 4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4933for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4934do 4935 IFS=$as_save_IFS 4936 test -z "$as_dir" && as_dir=. 4937 for ac_prog in egrep; do 4938 for ac_exec_ext in '' $ac_executable_extensions; do 4939 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4940 as_fn_executable_p "$ac_path_EGREP" || continue 4941# Check for GNU ac_path_EGREP and select it if it is found. 4942 # Check for GNU $ac_path_EGREP 4943case `"$ac_path_EGREP" --version 2>&1` in 4944*GNU*) 4945 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4946*) 4947 ac_count=0 4948 $as_echo_n 0123456789 >"conftest.in" 4949 while : 4950 do 4951 cat "conftest.in" "conftest.in" >"conftest.tmp" 4952 mv "conftest.tmp" "conftest.in" 4953 cp "conftest.in" "conftest.nl" 4954 $as_echo 'EGREP' >> "conftest.nl" 4955 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4957 as_fn_arith $ac_count + 1 && ac_count=$as_val 4958 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4959 # Best one so far, save it but keep looking for a better one 4960 ac_cv_path_EGREP="$ac_path_EGREP" 4961 ac_path_EGREP_max=$ac_count 4962 fi 4963 # 10*(2^10) chars as input seems more than enough 4964 test $ac_count -gt 10 && break 4965 done 4966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4967esac 4968 4969 $ac_path_EGREP_found && break 3 4970 done 4971 done 4972 done 4973IFS=$as_save_IFS 4974 if test -z "$ac_cv_path_EGREP"; then 4975 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4976 fi 4977else 4978 ac_cv_path_EGREP=$EGREP 4979fi 4980 4981 fi 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4984$as_echo "$ac_cv_path_EGREP" >&6; } 4985 EGREP="$ac_cv_path_EGREP" 4986 4987 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4989$as_echo_n "checking for ANSI C header files... " >&6; } 4990if ${ac_cv_header_stdc+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995#include <stdlib.h> 4996#include <stdarg.h> 4997#include <string.h> 4998#include <float.h> 4999 5000int 5001main () 5002{ 5003 5004 ; 5005 return 0; 5006} 5007_ACEOF 5008if ac_fn_c_try_compile "$LINENO"; then : 5009 ac_cv_header_stdc=yes 5010else 5011 ac_cv_header_stdc=no 5012fi 5013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5014 5015if test $ac_cv_header_stdc = yes; then 5016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5018/* end confdefs.h. */ 5019#include <string.h> 5020 5021_ACEOF 5022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5023 $EGREP "memchr" >/dev/null 2>&1; then : 5024 5025else 5026 ac_cv_header_stdc=no 5027fi 5028rm -f conftest* 5029 5030fi 5031 5032if test $ac_cv_header_stdc = yes; then 5033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5035/* end confdefs.h. */ 5036#include <stdlib.h> 5037 5038_ACEOF 5039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5040 $EGREP "free" >/dev/null 2>&1; then : 5041 5042else 5043 ac_cv_header_stdc=no 5044fi 5045rm -f conftest* 5046 5047fi 5048 5049if test $ac_cv_header_stdc = yes; then 5050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5051 if test "$cross_compiling" = yes; then : 5052 : 5053else 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5055/* end confdefs.h. */ 5056#include <ctype.h> 5057#include <stdlib.h> 5058#if ((' ' & 0x0FF) == 0x020) 5059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5061#else 5062# define ISLOWER(c) \ 5063 (('a' <= (c) && (c) <= 'i') \ 5064 || ('j' <= (c) && (c) <= 'r') \ 5065 || ('s' <= (c) && (c) <= 'z')) 5066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5067#endif 5068 5069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5070int 5071main () 5072{ 5073 int i; 5074 for (i = 0; i < 256; i++) 5075 if (XOR (islower (i), ISLOWER (i)) 5076 || toupper (i) != TOUPPER (i)) 5077 return 2; 5078 return 0; 5079} 5080_ACEOF 5081if ac_fn_c_try_run "$LINENO"; then : 5082 5083else 5084 ac_cv_header_stdc=no 5085fi 5086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5087 conftest.$ac_objext conftest.beam conftest.$ac_ext 5088fi 5089 5090fi 5091fi 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5093$as_echo "$ac_cv_header_stdc" >&6; } 5094if test $ac_cv_header_stdc = yes; then 5095 5096$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 5097 5098fi 5099 5100 5101# Prefer ext (gnu++11) over noext (c++11) because on some platforms the 5102# noext (stricter) mode disables non-posix features like stdio fileno(). 5103 5104 ax_cxx_compile_cxx11_required=false 5105 ac_ext=cpp 5106ac_cpp='$CXXCPP $CPPFLAGS' 5107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5110 ac_success=no 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 5112$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 5113if ${ax_cv_cxx_compile_cxx11+:} false; then : 5114 $as_echo_n "(cached) " >&6 5115else 5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5117/* end confdefs.h. */ 5118 5119 template <typename T> 5120 struct check 5121 { 5122 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5123 }; 5124 5125 struct Base { 5126 virtual void f() {} 5127 }; 5128 struct Child : public Base { 5129 virtual void f() override {} 5130 }; 5131 5132 typedef check<check<bool>> right_angle_brackets; 5133 5134 int a; 5135 decltype(a) b; 5136 5137 typedef check<int> check_type; 5138 check_type c; 5139 check_type&& cr = static_cast<check_type&&>(c); 5140 5141 auto d = a; 5142 auto l = [](){}; 5143 // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable] 5144 struct use_l { use_l() { l(); } }; 5145 5146 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5147 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this 5148 namespace test_template_alias_sfinae { 5149 struct foo {}; 5150 5151 template<typename T> 5152 using member = typename T::member_type; 5153 5154 template<typename T> 5155 void func(...) {} 5156 5157 template<typename T> 5158 void func(member<T>*) {} 5159 5160 void test(); 5161 5162 void test() { 5163 func<foo>(0); 5164 } 5165 } 5166 5167 // Check for C++11 attribute support 5168 void noret [[noreturn]] () { throw 0; } 5169 5170_ACEOF 5171if ac_fn_cxx_try_compile "$LINENO"; then : 5172 ax_cv_cxx_compile_cxx11=yes 5173else 5174 ax_cv_cxx_compile_cxx11=no 5175fi 5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5177fi 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 5179$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 5180 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 5181 ac_success=yes 5182 fi 5183 5184 if test x$ac_success = xno; then 5185 for switch in -std=gnu++11 -std=gnu++0x; do 5186 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 5188$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 5189if eval \${$cachevar+:} false; then : 5190 $as_echo_n "(cached) " >&6 5191else 5192 ac_save_CXXFLAGS="$CXXFLAGS" 5193 CXXFLAGS="$CXXFLAGS $switch" 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5195/* end confdefs.h. */ 5196 5197 template <typename T> 5198 struct check 5199 { 5200 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5201 }; 5202 5203 struct Base { 5204 virtual void f() {} 5205 }; 5206 struct Child : public Base { 5207 virtual void f() override {} 5208 }; 5209 5210 typedef check<check<bool>> right_angle_brackets; 5211 5212 int a; 5213 decltype(a) b; 5214 5215 typedef check<int> check_type; 5216 check_type c; 5217 check_type&& cr = static_cast<check_type&&>(c); 5218 5219 auto d = a; 5220 auto l = [](){}; 5221 // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable] 5222 struct use_l { use_l() { l(); } }; 5223 5224 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5225 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this 5226 namespace test_template_alias_sfinae { 5227 struct foo {}; 5228 5229 template<typename T> 5230 using member = typename T::member_type; 5231 5232 template<typename T> 5233 void func(...) {} 5234 5235 template<typename T> 5236 void func(member<T>*) {} 5237 5238 void test(); 5239 5240 void test() { 5241 func<foo>(0); 5242 } 5243 } 5244 5245 // Check for C++11 attribute support 5246 void noret [[noreturn]] () { throw 0; } 5247 5248_ACEOF 5249if ac_fn_cxx_try_compile "$LINENO"; then : 5250 eval $cachevar=yes 5251else 5252 eval $cachevar=no 5253fi 5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5255 CXXFLAGS="$ac_save_CXXFLAGS" 5256fi 5257eval ac_res=\$$cachevar 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5259$as_echo "$ac_res" >&6; } 5260 if eval test x\$$cachevar = xyes; then 5261 CXXFLAGS="$CXXFLAGS $switch" 5262 ac_success=yes 5263 break 5264 fi 5265 done 5266 fi 5267 5268 5269 ac_ext=c 5270ac_cpp='$CPP $CPPFLAGS' 5271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5273ac_compiler_gnu=$ac_cv_c_compiler_gnu 5274 5275 if test x$ax_cxx_compile_cxx11_required = xtrue; then 5276 if test x$ac_success = xno; then 5277 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 5278 fi 5279 else 5280 if test x$ac_success = xno; then 5281 HAVE_CXX11=0 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 5283$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 5284 else 5285 HAVE_CXX11=1 5286 5287$as_echo "@%:@define HAVE_CXX11 1" >>confdefs.h 5288 5289 fi 5290 5291 5292 fi 5293 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu11" >&5 5295$as_echo_n "checking whether C compiler accepts -std=gnu11... " >&6; } 5296if ${ax_cv_check_cflags___std_gnu11+:} false; then : 5297 $as_echo_n "(cached) " >&6 5298else 5299 5300 ax_check_save_flags=$CFLAGS 5301 CFLAGS="$CFLAGS -std=gnu11" 5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5303/* end confdefs.h. */ 5304 5305int 5306main () 5307{ 5308 5309 ; 5310 return 0; 5311} 5312_ACEOF 5313if ac_fn_c_try_compile "$LINENO"; then : 5314 ax_cv_check_cflags___std_gnu11=yes 5315else 5316 ax_cv_check_cflags___std_gnu11=no 5317fi 5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5319 CFLAGS=$ax_check_save_flags 5320fi 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu11" >&5 5322$as_echo "$ax_cv_check_cflags___std_gnu11" >&6; } 5323if test "x$ax_cv_check_cflags___std_gnu11" = xyes; then : 5324 CFLAGS+=" -std=gnu11" 5325else 5326 : 5327fi 5328 5329 5330case "$host" in 5331 *-linux*) 5332 CFLAGS="$CFLAGS -D__LINUX" 5333 CPPFLAGS="$CPPFLAGS -D__LINUX" 5334 ;; 5335 *-darwin*) 5336 CFLAGS="$CFLAGS -D__DARWIN" 5337 CPPFLAGS="$CPPFLAGS -D__DARWIN" 5338 ;; 5339 *-hpux*) 5340 CFLAGS="$CFLAGS -D__HPUX" 5341 CPPFLAGS="$CPPFLAGS -D__HPUX" 5342 ;; 5343 *-freebsd*) 5344 CFLAGS="$CFLAGS -D__LINUX -I/usr/local/include" 5345 CPPFLAGS="$CPPFLAGS -D__LINUX -I/usr/local/include" 5346 LDFLAGS="$LDFLAGS -L/usr/local/lib" 5347 ;; 5348 *-sunos*) 5349 CFLAGS="$CFLAGS -D__SUNOS" 5350 CPPFLAGS="$CPPFLAGS -D__SUNOS" 5351 ;; 5352 *-cygwin*) 5353 CFLAGS="$CFLAGS -D__CYGWIN -I /usr/include/ncurses -I /usr/lib/WpdPack/Include -I /usr/include/SctpDrv" 5354 CPPFLAGS="$CPPFLAGS -D__CYGWIN -I /usr/include/ncurses -I /usr/lib/WpdPack/Include -I /usr/include/SctpDrv" 5355 LDFLAGS="$LDFLAGS -L /usr/lib/WpdPack/Lib -L /usr/lib/SctpDrv" 5356 ;; 5357 *-tru64*) 5358 CFLAGS="$CFLAGS -D__OSF1" 5359 CPPFLAGS="$CPPFLAGS -D__OSF1" 5360 ;; 5361esac 5362 5363# ==================== checks for libraries ============================= 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5 5365$as_echo_n "checking for initscr in -lcurses... " >&6; } 5366if ${ac_cv_lib_curses_initscr+:} false; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 ac_check_lib_save_LIBS=$LIBS 5370LIBS="-lcurses $LIBS" 5371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373 5374/* Override any GCC internal prototype to avoid an error. 5375 Use char because int might match the return type of a GCC 5376 builtin and then its argument prototype would still apply. */ 5377#ifdef __cplusplus 5378extern "C" 5379#endif 5380char initscr (); 5381int 5382main () 5383{ 5384return initscr (); 5385 ; 5386 return 0; 5387} 5388_ACEOF 5389if ac_fn_c_try_link "$LINENO"; then : 5390 ac_cv_lib_curses_initscr=yes 5391else 5392 ac_cv_lib_curses_initscr=no 5393fi 5394rm -f core conftest.err conftest.$ac_objext \ 5395 conftest$ac_exeext conftest.$ac_ext 5396LIBS=$ac_check_lib_save_LIBS 5397fi 5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5 5399$as_echo "$ac_cv_lib_curses_initscr" >&6; } 5400if test "x$ac_cv_lib_curses_initscr" = xyes; then : 5401 cat >>confdefs.h <<_ACEOF 5402@%:@define HAVE_LIBCURSES 1 5403_ACEOF 5404 5405 LIBS="-lcurses $LIBS" 5406 5407else 5408 as_fn_error $? "ncurses library missing" "$LINENO" 5 5409fi 5410 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 5412$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 5413if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 ac_check_lib_save_LIBS=$LIBS 5417LIBS="-lpthread $LIBS" 5418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420 5421/* Override any GCC internal prototype to avoid an error. 5422 Use char because int might match the return type of a GCC 5423 builtin and then its argument prototype would still apply. */ 5424#ifdef __cplusplus 5425extern "C" 5426#endif 5427char pthread_mutex_init (); 5428int 5429main () 5430{ 5431return pthread_mutex_init (); 5432 ; 5433 return 0; 5434} 5435_ACEOF 5436if ac_fn_c_try_link "$LINENO"; then : 5437 ac_cv_lib_pthread_pthread_mutex_init=yes 5438else 5439 ac_cv_lib_pthread_pthread_mutex_init=no 5440fi 5441rm -f core conftest.err conftest.$ac_objext \ 5442 conftest$ac_exeext conftest.$ac_ext 5443LIBS=$ac_check_lib_save_LIBS 5444fi 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 5446$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 5447if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : 5448 THREAD_LIBS="-lpthread" 5449else 5450 as_fn_error $? "pthread library needed!" "$LINENO" 5 5451fi 5452 5453 5454# For Linux and SunOS 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 5456$as_echo_n "checking for library containing dlopen... " >&6; } 5457if ${ac_cv_search_dlopen+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 ac_func_search_save_LIBS=$LIBS 5461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463 5464/* Override any GCC internal prototype to avoid an error. 5465 Use char because int might match the return type of a GCC 5466 builtin and then its argument prototype would still apply. */ 5467#ifdef __cplusplus 5468extern "C" 5469#endif 5470char dlopen (); 5471int 5472main () 5473{ 5474return dlopen (); 5475 ; 5476 return 0; 5477} 5478_ACEOF 5479for ac_lib in '' dl; do 5480 if test -z "$ac_lib"; then 5481 ac_res="none required" 5482 else 5483 ac_res=-l$ac_lib 5484 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5485 fi 5486 if ac_fn_c_try_link "$LINENO"; then : 5487 ac_cv_search_dlopen=$ac_res 5488fi 5489rm -f core conftest.err conftest.$ac_objext \ 5490 conftest$ac_exeext 5491 if ${ac_cv_search_dlopen+:} false; then : 5492 break 5493fi 5494done 5495if ${ac_cv_search_dlopen+:} false; then : 5496 5497else 5498 ac_cv_search_dlopen=no 5499fi 5500rm conftest.$ac_ext 5501LIBS=$ac_func_search_save_LIBS 5502fi 5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 5504$as_echo "$ac_cv_search_dlopen" >&6; } 5505ac_res=$ac_cv_search_dlopen 5506if test "$ac_res" != no; then : 5507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5508 5509fi 5510 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlerror" >&5 5512$as_echo_n "checking for library containing dlerror... " >&6; } 5513if ${ac_cv_search_dlerror+:} false; then : 5514 $as_echo_n "(cached) " >&6 5515else 5516 ac_func_search_save_LIBS=$LIBS 5517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5518/* end confdefs.h. */ 5519 5520/* Override any GCC internal prototype to avoid an error. 5521 Use char because int might match the return type of a GCC 5522 builtin and then its argument prototype would still apply. */ 5523#ifdef __cplusplus 5524extern "C" 5525#endif 5526char dlerror (); 5527int 5528main () 5529{ 5530return dlerror (); 5531 ; 5532 return 0; 5533} 5534_ACEOF 5535for ac_lib in '' dl; do 5536 if test -z "$ac_lib"; then 5537 ac_res="none required" 5538 else 5539 ac_res=-l$ac_lib 5540 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5541 fi 5542 if ac_fn_c_try_link "$LINENO"; then : 5543 ac_cv_search_dlerror=$ac_res 5544fi 5545rm -f core conftest.err conftest.$ac_objext \ 5546 conftest$ac_exeext 5547 if ${ac_cv_search_dlerror+:} false; then : 5548 break 5549fi 5550done 5551if ${ac_cv_search_dlerror+:} false; then : 5552 5553else 5554 ac_cv_search_dlerror=no 5555fi 5556rm conftest.$ac_ext 5557LIBS=$ac_func_search_save_LIBS 5558fi 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlerror" >&5 5560$as_echo "$ac_cv_search_dlerror" >&6; } 5561ac_res=$ac_cv_search_dlerror 5562if test "$ac_res" != no; then : 5563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5564 5565fi 5566 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 5568$as_echo_n "checking for library containing dlsym... " >&6; } 5569if ${ac_cv_search_dlsym+:} false; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 ac_func_search_save_LIBS=$LIBS 5573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574/* end confdefs.h. */ 5575 5576/* Override any GCC internal prototype to avoid an error. 5577 Use char because int might match the return type of a GCC 5578 builtin and then its argument prototype would still apply. */ 5579#ifdef __cplusplus 5580extern "C" 5581#endif 5582char dlsym (); 5583int 5584main () 5585{ 5586return dlsym (); 5587 ; 5588 return 0; 5589} 5590_ACEOF 5591for ac_lib in '' dl; do 5592 if test -z "$ac_lib"; then 5593 ac_res="none required" 5594 else 5595 ac_res=-l$ac_lib 5596 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5597 fi 5598 if ac_fn_c_try_link "$LINENO"; then : 5599 ac_cv_search_dlsym=$ac_res 5600fi 5601rm -f core conftest.err conftest.$ac_objext \ 5602 conftest$ac_exeext 5603 if ${ac_cv_search_dlsym+:} false; then : 5604 break 5605fi 5606done 5607if ${ac_cv_search_dlsym+:} false; then : 5608 5609else 5610 ac_cv_search_dlsym=no 5611fi 5612rm conftest.$ac_ext 5613LIBS=$ac_func_search_save_LIBS 5614fi 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 5616$as_echo "$ac_cv_search_dlsym" >&6; } 5617ac_res=$ac_cv_search_dlsym 5618if test "$ac_res" != no; then : 5619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5620 5621fi 5622 5623 5624# For glibc pre-2.17 we need -rt 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 5626$as_echo_n "checking for library containing clock_gettime... " >&6; } 5627if ${ac_cv_search_clock_gettime+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 ac_func_search_save_LIBS=$LIBS 5631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5632/* end confdefs.h. */ 5633 5634/* Override any GCC internal prototype to avoid an error. 5635 Use char because int might match the return type of a GCC 5636 builtin and then its argument prototype would still apply. */ 5637#ifdef __cplusplus 5638extern "C" 5639#endif 5640char clock_gettime (); 5641int 5642main () 5643{ 5644return clock_gettime (); 5645 ; 5646 return 0; 5647} 5648_ACEOF 5649for ac_lib in '' rt; do 5650 if test -z "$ac_lib"; then 5651 ac_res="none required" 5652 else 5653 ac_res=-l$ac_lib 5654 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5655 fi 5656 if ac_fn_c_try_link "$LINENO"; then : 5657 ac_cv_search_clock_gettime=$ac_res 5658fi 5659rm -f core conftest.err conftest.$ac_objext \ 5660 conftest$ac_exeext 5661 if ${ac_cv_search_clock_gettime+:} false; then : 5662 break 5663fi 5664done 5665if ${ac_cv_search_clock_gettime+:} false; then : 5666 5667else 5668 ac_cv_search_clock_gettime=no 5669fi 5670rm conftest.$ac_ext 5671LIBS=$ac_func_search_save_LIBS 5672fi 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 5674$as_echo "$ac_cv_search_clock_gettime" >&6; } 5675ac_res=$ac_cv_search_clock_gettime 5676if test "$ac_res" != no; then : 5677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5678 5679fi 5680 5681 5682# For SunOS 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 5684$as_echo_n "checking for library containing inet_addr... " >&6; } 5685if ${ac_cv_search_inet_addr+:} false; then : 5686 $as_echo_n "(cached) " >&6 5687else 5688 ac_func_search_save_LIBS=$LIBS 5689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690/* end confdefs.h. */ 5691 5692/* Override any GCC internal prototype to avoid an error. 5693 Use char because int might match the return type of a GCC 5694 builtin and then its argument prototype would still apply. */ 5695#ifdef __cplusplus 5696extern "C" 5697#endif 5698char inet_addr (); 5699int 5700main () 5701{ 5702return inet_addr (); 5703 ; 5704 return 0; 5705} 5706_ACEOF 5707for ac_lib in '' nsl; do 5708 if test -z "$ac_lib"; then 5709 ac_res="none required" 5710 else 5711 ac_res=-l$ac_lib 5712 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5713 fi 5714 if ac_fn_c_try_link "$LINENO"; then : 5715 ac_cv_search_inet_addr=$ac_res 5716fi 5717rm -f core conftest.err conftest.$ac_objext \ 5718 conftest$ac_exeext 5719 if ${ac_cv_search_inet_addr+:} false; then : 5720 break 5721fi 5722done 5723if ${ac_cv_search_inet_addr+:} false; then : 5724 5725else 5726 ac_cv_search_inet_addr=no 5727fi 5728rm conftest.$ac_ext 5729LIBS=$ac_func_search_save_LIBS 5730fi 5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 5732$as_echo "$ac_cv_search_inet_addr" >&6; } 5733ac_res=$ac_cv_search_inet_addr 5734if test "$ac_res" != no; then : 5735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5736 5737fi 5738 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 5740$as_echo_n "checking for library containing inet_ntoa... " >&6; } 5741if ${ac_cv_search_inet_ntoa+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 ac_func_search_save_LIBS=$LIBS 5745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747 5748/* Override any GCC internal prototype to avoid an error. 5749 Use char because int might match the return type of a GCC 5750 builtin and then its argument prototype would still apply. */ 5751#ifdef __cplusplus 5752extern "C" 5753#endif 5754char inet_ntoa (); 5755int 5756main () 5757{ 5758return inet_ntoa (); 5759 ; 5760 return 0; 5761} 5762_ACEOF 5763for ac_lib in '' nsl; do 5764 if test -z "$ac_lib"; then 5765 ac_res="none required" 5766 else 5767 ac_res=-l$ac_lib 5768 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5769 fi 5770 if ac_fn_c_try_link "$LINENO"; then : 5771 ac_cv_search_inet_ntoa=$ac_res 5772fi 5773rm -f core conftest.err conftest.$ac_objext \ 5774 conftest$ac_exeext 5775 if ${ac_cv_search_inet_ntoa+:} false; then : 5776 break 5777fi 5778done 5779if ${ac_cv_search_inet_ntoa+:} false; then : 5780 5781else 5782 ac_cv_search_inet_ntoa=no 5783fi 5784rm conftest.$ac_ext 5785LIBS=$ac_func_search_save_LIBS 5786fi 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 5788$as_echo "$ac_cv_search_inet_ntoa" >&6; } 5789ac_res=$ac_cv_search_inet_ntoa 5790if test "$ac_res" != no; then : 5791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5792 5793fi 5794 5795 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_init" >&5 5797$as_echo_n "checking for library containing pthread_mutex_init... " >&6; } 5798if ${ac_cv_search_pthread_mutex_init+:} false; then : 5799 $as_echo_n "(cached) " >&6 5800else 5801 ac_func_search_save_LIBS=$LIBS 5802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5803/* end confdefs.h. */ 5804 5805/* Override any GCC internal prototype to avoid an error. 5806 Use char because int might match the return type of a GCC 5807 builtin and then its argument prototype would still apply. */ 5808#ifdef __cplusplus 5809extern "C" 5810#endif 5811char pthread_mutex_init (); 5812int 5813main () 5814{ 5815return pthread_mutex_init (); 5816 ; 5817 return 0; 5818} 5819_ACEOF 5820for ac_lib in '' pthread; do 5821 if test -z "$ac_lib"; then 5822 ac_res="none required" 5823 else 5824 ac_res=-l$ac_lib 5825 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5826 fi 5827 if ac_fn_c_try_link "$LINENO"; then : 5828 ac_cv_search_pthread_mutex_init=$ac_res 5829fi 5830rm -f core conftest.err conftest.$ac_objext \ 5831 conftest$ac_exeext 5832 if ${ac_cv_search_pthread_mutex_init+:} false; then : 5833 break 5834fi 5835done 5836if ${ac_cv_search_pthread_mutex_init+:} false; then : 5837 5838else 5839 ac_cv_search_pthread_mutex_init=no 5840fi 5841rm conftest.$ac_ext 5842LIBS=$ac_func_search_save_LIBS 5843fi 5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_init" >&5 5845$as_echo "$ac_cv_search_pthread_mutex_init" >&6; } 5846ac_res=$ac_cv_search_pthread_mutex_init 5847if test "$ac_res" != no; then : 5848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5849 5850fi 5851 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5 5853$as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; } 5854if ${ac_cv_search_pthread_mutex_destroy+:} false; then : 5855 $as_echo_n "(cached) " >&6 5856else 5857 ac_func_search_save_LIBS=$LIBS 5858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5859/* end confdefs.h. */ 5860 5861/* Override any GCC internal prototype to avoid an error. 5862 Use char because int might match the return type of a GCC 5863 builtin and then its argument prototype would still apply. */ 5864#ifdef __cplusplus 5865extern "C" 5866#endif 5867char pthread_mutex_destroy (); 5868int 5869main () 5870{ 5871return pthread_mutex_destroy (); 5872 ; 5873 return 0; 5874} 5875_ACEOF 5876for ac_lib in '' pthread; do 5877 if test -z "$ac_lib"; then 5878 ac_res="none required" 5879 else 5880 ac_res=-l$ac_lib 5881 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5882 fi 5883 if ac_fn_c_try_link "$LINENO"; then : 5884 ac_cv_search_pthread_mutex_destroy=$ac_res 5885fi 5886rm -f core conftest.err conftest.$ac_objext \ 5887 conftest$ac_exeext 5888 if ${ac_cv_search_pthread_mutex_destroy+:} false; then : 5889 break 5890fi 5891done 5892if ${ac_cv_search_pthread_mutex_destroy+:} false; then : 5893 5894else 5895 ac_cv_search_pthread_mutex_destroy=no 5896fi 5897rm conftest.$ac_ext 5898LIBS=$ac_func_search_save_LIBS 5899fi 5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5 5901$as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; } 5902ac_res=$ac_cv_search_pthread_mutex_destroy 5903if test "$ac_res" != no; then : 5904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5905 5906fi 5907 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5 5909$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } 5910if ${ac_cv_search_pthread_mutex_lock+:} false; then : 5911 $as_echo_n "(cached) " >&6 5912else 5913 ac_func_search_save_LIBS=$LIBS 5914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5915/* end confdefs.h. */ 5916 5917/* Override any GCC internal prototype to avoid an error. 5918 Use char because int might match the return type of a GCC 5919 builtin and then its argument prototype would still apply. */ 5920#ifdef __cplusplus 5921extern "C" 5922#endif 5923char pthread_mutex_lock (); 5924int 5925main () 5926{ 5927return pthread_mutex_lock (); 5928 ; 5929 return 0; 5930} 5931_ACEOF 5932for ac_lib in '' pthread; do 5933 if test -z "$ac_lib"; then 5934 ac_res="none required" 5935 else 5936 ac_res=-l$ac_lib 5937 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5938 fi 5939 if ac_fn_c_try_link "$LINENO"; then : 5940 ac_cv_search_pthread_mutex_lock=$ac_res 5941fi 5942rm -f core conftest.err conftest.$ac_objext \ 5943 conftest$ac_exeext 5944 if ${ac_cv_search_pthread_mutex_lock+:} false; then : 5945 break 5946fi 5947done 5948if ${ac_cv_search_pthread_mutex_lock+:} false; then : 5949 5950else 5951 ac_cv_search_pthread_mutex_lock=no 5952fi 5953rm conftest.$ac_ext 5954LIBS=$ac_func_search_save_LIBS 5955fi 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5 5957$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } 5958ac_res=$ac_cv_search_pthread_mutex_lock 5959if test "$ac_res" != no; then : 5960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5961 5962fi 5963 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_unlock" >&5 5965$as_echo_n "checking for library containing pthread_mutex_unlock... " >&6; } 5966if ${ac_cv_search_pthread_mutex_unlock+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 ac_func_search_save_LIBS=$LIBS 5970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5971/* end confdefs.h. */ 5972 5973/* Override any GCC internal prototype to avoid an error. 5974 Use char because int might match the return type of a GCC 5975 builtin and then its argument prototype would still apply. */ 5976#ifdef __cplusplus 5977extern "C" 5978#endif 5979char pthread_mutex_unlock (); 5980int 5981main () 5982{ 5983return pthread_mutex_unlock (); 5984 ; 5985 return 0; 5986} 5987_ACEOF 5988for ac_lib in '' pthread; do 5989 if test -z "$ac_lib"; then 5990 ac_res="none required" 5991 else 5992 ac_res=-l$ac_lib 5993 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5994 fi 5995 if ac_fn_c_try_link "$LINENO"; then : 5996 ac_cv_search_pthread_mutex_unlock=$ac_res 5997fi 5998rm -f core conftest.err conftest.$ac_objext \ 5999 conftest$ac_exeext 6000 if ${ac_cv_search_pthread_mutex_unlock+:} false; then : 6001 break 6002fi 6003done 6004if ${ac_cv_search_pthread_mutex_unlock+:} false; then : 6005 6006else 6007 ac_cv_search_pthread_mutex_unlock=no 6008fi 6009rm conftest.$ac_ext 6010LIBS=$ac_func_search_save_LIBS 6011fi 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_unlock" >&5 6013$as_echo "$ac_cv_search_pthread_mutex_unlock" >&6; } 6014ac_res=$ac_cv_search_pthread_mutex_unlock 6015if test "$ac_res" != no; then : 6016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6017 6018fi 6019 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_self" >&5 6021$as_echo_n "checking for library containing pthread_self... " >&6; } 6022if ${ac_cv_search_pthread_self+:} false; then : 6023 $as_echo_n "(cached) " >&6 6024else 6025 ac_func_search_save_LIBS=$LIBS 6026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6027/* end confdefs.h. */ 6028 6029/* Override any GCC internal prototype to avoid an error. 6030 Use char because int might match the return type of a GCC 6031 builtin and then its argument prototype would still apply. */ 6032#ifdef __cplusplus 6033extern "C" 6034#endif 6035char pthread_self (); 6036int 6037main () 6038{ 6039return pthread_self (); 6040 ; 6041 return 0; 6042} 6043_ACEOF 6044for ac_lib in '' pthread; do 6045 if test -z "$ac_lib"; then 6046 ac_res="none required" 6047 else 6048 ac_res=-l$ac_lib 6049 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6050 fi 6051 if ac_fn_c_try_link "$LINENO"; then : 6052 ac_cv_search_pthread_self=$ac_res 6053fi 6054rm -f core conftest.err conftest.$ac_objext \ 6055 conftest$ac_exeext 6056 if ${ac_cv_search_pthread_self+:} false; then : 6057 break 6058fi 6059done 6060if ${ac_cv_search_pthread_self+:} false; then : 6061 6062else 6063 ac_cv_search_pthread_self=no 6064fi 6065rm conftest.$ac_ext 6066LIBS=$ac_func_search_save_LIBS 6067fi 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_self" >&5 6069$as_echo "$ac_cv_search_pthread_self" >&6; } 6070ac_res=$ac_cv_search_pthread_self 6071if test "$ac_res" != no; then : 6072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6073 6074fi 6075 6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_cancel" >&5 6077$as_echo_n "checking for library containing pthread_cancel... " >&6; } 6078if ${ac_cv_search_pthread_cancel+:} false; then : 6079 $as_echo_n "(cached) " >&6 6080else 6081 ac_func_search_save_LIBS=$LIBS 6082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084 6085/* Override any GCC internal prototype to avoid an error. 6086 Use char because int might match the return type of a GCC 6087 builtin and then its argument prototype would still apply. */ 6088#ifdef __cplusplus 6089extern "C" 6090#endif 6091char pthread_cancel (); 6092int 6093main () 6094{ 6095return pthread_cancel (); 6096 ; 6097 return 0; 6098} 6099_ACEOF 6100for ac_lib in '' pthread; do 6101 if test -z "$ac_lib"; then 6102 ac_res="none required" 6103 else 6104 ac_res=-l$ac_lib 6105 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6106 fi 6107 if ac_fn_c_try_link "$LINENO"; then : 6108 ac_cv_search_pthread_cancel=$ac_res 6109fi 6110rm -f core conftest.err conftest.$ac_objext \ 6111 conftest$ac_exeext 6112 if ${ac_cv_search_pthread_cancel+:} false; then : 6113 break 6114fi 6115done 6116if ${ac_cv_search_pthread_cancel+:} false; then : 6117 6118else 6119 ac_cv_search_pthread_cancel=no 6120fi 6121rm conftest.$ac_ext 6122LIBS=$ac_func_search_save_LIBS 6123fi 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_cancel" >&5 6125$as_echo "$ac_cv_search_pthread_cancel" >&6; } 6126ac_res=$ac_cv_search_pthread_cancel 6127if test "$ac_res" != no; then : 6128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6129 6130fi 6131 6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_join" >&5 6133$as_echo_n "checking for library containing pthread_join... " >&6; } 6134if ${ac_cv_search_pthread_join+:} false; then : 6135 $as_echo_n "(cached) " >&6 6136else 6137 ac_func_search_save_LIBS=$LIBS 6138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6139/* end confdefs.h. */ 6140 6141/* Override any GCC internal prototype to avoid an error. 6142 Use char because int might match the return type of a GCC 6143 builtin and then its argument prototype would still apply. */ 6144#ifdef __cplusplus 6145extern "C" 6146#endif 6147char pthread_join (); 6148int 6149main () 6150{ 6151return pthread_join (); 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156for ac_lib in '' pthread; do 6157 if test -z "$ac_lib"; then 6158 ac_res="none required" 6159 else 6160 ac_res=-l$ac_lib 6161 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6162 fi 6163 if ac_fn_c_try_link "$LINENO"; then : 6164 ac_cv_search_pthread_join=$ac_res 6165fi 6166rm -f core conftest.err conftest.$ac_objext \ 6167 conftest$ac_exeext 6168 if ${ac_cv_search_pthread_join+:} false; then : 6169 break 6170fi 6171done 6172if ${ac_cv_search_pthread_join+:} false; then : 6173 6174else 6175 ac_cv_search_pthread_join=no 6176fi 6177rm conftest.$ac_ext 6178LIBS=$ac_func_search_save_LIBS 6179fi 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_join" >&5 6181$as_echo "$ac_cv_search_pthread_join" >&6; } 6182ac_res=$ac_cv_search_pthread_join 6183if test "$ac_res" != no; then : 6184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6185 6186fi 6187 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_attr_init" >&5 6189$as_echo_n "checking for library containing pthread_attr_init... " >&6; } 6190if ${ac_cv_search_pthread_attr_init+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192else 6193 ac_func_search_save_LIBS=$LIBS 6194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6195/* end confdefs.h. */ 6196 6197/* Override any GCC internal prototype to avoid an error. 6198 Use char because int might match the return type of a GCC 6199 builtin and then its argument prototype would still apply. */ 6200#ifdef __cplusplus 6201extern "C" 6202#endif 6203char pthread_attr_init (); 6204int 6205main () 6206{ 6207return pthread_attr_init (); 6208 ; 6209 return 0; 6210} 6211_ACEOF 6212for ac_lib in '' pthread; do 6213 if test -z "$ac_lib"; then 6214 ac_res="none required" 6215 else 6216 ac_res=-l$ac_lib 6217 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6218 fi 6219 if ac_fn_c_try_link "$LINENO"; then : 6220 ac_cv_search_pthread_attr_init=$ac_res 6221fi 6222rm -f core conftest.err conftest.$ac_objext \ 6223 conftest$ac_exeext 6224 if ${ac_cv_search_pthread_attr_init+:} false; then : 6225 break 6226fi 6227done 6228if ${ac_cv_search_pthread_attr_init+:} false; then : 6229 6230else 6231 ac_cv_search_pthread_attr_init=no 6232fi 6233rm conftest.$ac_ext 6234LIBS=$ac_func_search_save_LIBS 6235fi 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_attr_init" >&5 6237$as_echo "$ac_cv_search_pthread_attr_init" >&6; } 6238ac_res=$ac_cv_search_pthread_attr_init 6239if test "$ac_res" != no; then : 6240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6241 6242fi 6243 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_attr_setstacksize" >&5 6245$as_echo_n "checking for library containing pthread_attr_setstacksize... " >&6; } 6246if ${ac_cv_search_pthread_attr_setstacksize+:} false; then : 6247 $as_echo_n "(cached) " >&6 6248else 6249 ac_func_search_save_LIBS=$LIBS 6250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6251/* end confdefs.h. */ 6252 6253/* Override any GCC internal prototype to avoid an error. 6254 Use char because int might match the return type of a GCC 6255 builtin and then its argument prototype would still apply. */ 6256#ifdef __cplusplus 6257extern "C" 6258#endif 6259char pthread_attr_setstacksize (); 6260int 6261main () 6262{ 6263return pthread_attr_setstacksize (); 6264 ; 6265 return 0; 6266} 6267_ACEOF 6268for ac_lib in '' pthread; do 6269 if test -z "$ac_lib"; then 6270 ac_res="none required" 6271 else 6272 ac_res=-l$ac_lib 6273 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6274 fi 6275 if ac_fn_c_try_link "$LINENO"; then : 6276 ac_cv_search_pthread_attr_setstacksize=$ac_res 6277fi 6278rm -f core conftest.err conftest.$ac_objext \ 6279 conftest$ac_exeext 6280 if ${ac_cv_search_pthread_attr_setstacksize+:} false; then : 6281 break 6282fi 6283done 6284if ${ac_cv_search_pthread_attr_setstacksize+:} false; then : 6285 6286else 6287 ac_cv_search_pthread_attr_setstacksize=no 6288fi 6289rm conftest.$ac_ext 6290LIBS=$ac_func_search_save_LIBS 6291fi 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_attr_setstacksize" >&5 6293$as_echo "$ac_cv_search_pthread_attr_setstacksize" >&6; } 6294ac_res=$ac_cv_search_pthread_attr_setstacksize 6295if test "$ac_res" != no; then : 6296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6297 6298fi 6299 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 6301$as_echo_n "checking for library containing pthread_create... " >&6; } 6302if ${ac_cv_search_pthread_create+:} false; then : 6303 $as_echo_n "(cached) " >&6 6304else 6305 ac_func_search_save_LIBS=$LIBS 6306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307/* end confdefs.h. */ 6308 6309/* Override any GCC internal prototype to avoid an error. 6310 Use char because int might match the return type of a GCC 6311 builtin and then its argument prototype would still apply. */ 6312#ifdef __cplusplus 6313extern "C" 6314#endif 6315char pthread_create (); 6316int 6317main () 6318{ 6319return pthread_create (); 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324for ac_lib in '' pthread; do 6325 if test -z "$ac_lib"; then 6326 ac_res="none required" 6327 else 6328 ac_res=-l$ac_lib 6329 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6330 fi 6331 if ac_fn_c_try_link "$LINENO"; then : 6332 ac_cv_search_pthread_create=$ac_res 6333fi 6334rm -f core conftest.err conftest.$ac_objext \ 6335 conftest$ac_exeext 6336 if ${ac_cv_search_pthread_create+:} false; then : 6337 break 6338fi 6339done 6340if ${ac_cv_search_pthread_create+:} false; then : 6341 6342else 6343 ac_cv_search_pthread_create=no 6344fi 6345rm conftest.$ac_ext 6346LIBS=$ac_func_search_save_LIBS 6347fi 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 6349$as_echo "$ac_cv_search_pthread_create" >&6; } 6350ac_res=$ac_cv_search_pthread_create 6351if test "$ac_res" != no; then : 6352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6353 6354fi 6355 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_attr_destroy" >&5 6357$as_echo_n "checking for library containing pthread_attr_destroy... " >&6; } 6358if ${ac_cv_search_pthread_attr_destroy+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360else 6361 ac_func_search_save_LIBS=$LIBS 6362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364 6365/* Override any GCC internal prototype to avoid an error. 6366 Use char because int might match the return type of a GCC 6367 builtin and then its argument prototype would still apply. */ 6368#ifdef __cplusplus 6369extern "C" 6370#endif 6371char pthread_attr_destroy (); 6372int 6373main () 6374{ 6375return pthread_attr_destroy (); 6376 ; 6377 return 0; 6378} 6379_ACEOF 6380for ac_lib in '' pthread; do 6381 if test -z "$ac_lib"; then 6382 ac_res="none required" 6383 else 6384 ac_res=-l$ac_lib 6385 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6386 fi 6387 if ac_fn_c_try_link "$LINENO"; then : 6388 ac_cv_search_pthread_attr_destroy=$ac_res 6389fi 6390rm -f core conftest.err conftest.$ac_objext \ 6391 conftest$ac_exeext 6392 if ${ac_cv_search_pthread_attr_destroy+:} false; then : 6393 break 6394fi 6395done 6396if ${ac_cv_search_pthread_attr_destroy+:} false; then : 6397 6398else 6399 ac_cv_search_pthread_attr_destroy=no 6400fi 6401rm conftest.$ac_ext 6402LIBS=$ac_func_search_save_LIBS 6403fi 6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_attr_destroy" >&5 6405$as_echo "$ac_cv_search_pthread_attr_destroy" >&6; } 6406ac_res=$ac_cv_search_pthread_attr_destroy 6407if test "$ac_res" != no; then : 6408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6409 6410fi 6411 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_setschedparam" >&5 6413$as_echo_n "checking for library containing pthread_setschedparam... " >&6; } 6414if ${ac_cv_search_pthread_setschedparam+:} false; then : 6415 $as_echo_n "(cached) " >&6 6416else 6417 ac_func_search_save_LIBS=$LIBS 6418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6419/* end confdefs.h. */ 6420 6421/* Override any GCC internal prototype to avoid an error. 6422 Use char because int might match the return type of a GCC 6423 builtin and then its argument prototype would still apply. */ 6424#ifdef __cplusplus 6425extern "C" 6426#endif 6427char pthread_setschedparam (); 6428int 6429main () 6430{ 6431return pthread_setschedparam (); 6432 ; 6433 return 0; 6434} 6435_ACEOF 6436for ac_lib in '' pthread; do 6437 if test -z "$ac_lib"; then 6438 ac_res="none required" 6439 else 6440 ac_res=-l$ac_lib 6441 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6442 fi 6443 if ac_fn_c_try_link "$LINENO"; then : 6444 ac_cv_search_pthread_setschedparam=$ac_res 6445fi 6446rm -f core conftest.err conftest.$ac_objext \ 6447 conftest$ac_exeext 6448 if ${ac_cv_search_pthread_setschedparam+:} false; then : 6449 break 6450fi 6451done 6452if ${ac_cv_search_pthread_setschedparam+:} false; then : 6453 6454else 6455 ac_cv_search_pthread_setschedparam=no 6456fi 6457rm conftest.$ac_ext 6458LIBS=$ac_func_search_save_LIBS 6459fi 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_setschedparam" >&5 6461$as_echo "$ac_cv_search_pthread_setschedparam" >&6; } 6462ac_res=$ac_cv_search_pthread_setschedparam 6463if test "$ac_res" != no; then : 6464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6465 6466fi 6467 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_setcancelstate" >&5 6469$as_echo_n "checking for library containing pthread_setcancelstate... " >&6; } 6470if ${ac_cv_search_pthread_setcancelstate+:} false; then : 6471 $as_echo_n "(cached) " >&6 6472else 6473 ac_func_search_save_LIBS=$LIBS 6474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475/* end confdefs.h. */ 6476 6477/* Override any GCC internal prototype to avoid an error. 6478 Use char because int might match the return type of a GCC 6479 builtin and then its argument prototype would still apply. */ 6480#ifdef __cplusplus 6481extern "C" 6482#endif 6483char pthread_setcancelstate (); 6484int 6485main () 6486{ 6487return pthread_setcancelstate (); 6488 ; 6489 return 0; 6490} 6491_ACEOF 6492for ac_lib in '' pthread; do 6493 if test -z "$ac_lib"; then 6494 ac_res="none required" 6495 else 6496 ac_res=-l$ac_lib 6497 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6498 fi 6499 if ac_fn_c_try_link "$LINENO"; then : 6500 ac_cv_search_pthread_setcancelstate=$ac_res 6501fi 6502rm -f core conftest.err conftest.$ac_objext \ 6503 conftest$ac_exeext 6504 if ${ac_cv_search_pthread_setcancelstate+:} false; then : 6505 break 6506fi 6507done 6508if ${ac_cv_search_pthread_setcancelstate+:} false; then : 6509 6510else 6511 ac_cv_search_pthread_setcancelstate=no 6512fi 6513rm conftest.$ac_ext 6514LIBS=$ac_func_search_save_LIBS 6515fi 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_setcancelstate" >&5 6517$as_echo "$ac_cv_search_pthread_setcancelstate" >&6; } 6518ac_res=$ac_cv_search_pthread_setcancelstate 6519if test "$ac_res" != no; then : 6520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6521 6522fi 6523 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_setcanceltype" >&5 6525$as_echo_n "checking for library containing pthread_setcanceltype... " >&6; } 6526if ${ac_cv_search_pthread_setcanceltype+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 ac_func_search_save_LIBS=$LIBS 6530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6531/* end confdefs.h. */ 6532 6533/* Override any GCC internal prototype to avoid an error. 6534 Use char because int might match the return type of a GCC 6535 builtin and then its argument prototype would still apply. */ 6536#ifdef __cplusplus 6537extern "C" 6538#endif 6539char pthread_setcanceltype (); 6540int 6541main () 6542{ 6543return pthread_setcanceltype (); 6544 ; 6545 return 0; 6546} 6547_ACEOF 6548for ac_lib in '' pthread; do 6549 if test -z "$ac_lib"; then 6550 ac_res="none required" 6551 else 6552 ac_res=-l$ac_lib 6553 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6554 fi 6555 if ac_fn_c_try_link "$LINENO"; then : 6556 ac_cv_search_pthread_setcanceltype=$ac_res 6557fi 6558rm -f core conftest.err conftest.$ac_objext \ 6559 conftest$ac_exeext 6560 if ${ac_cv_search_pthread_setcanceltype+:} false; then : 6561 break 6562fi 6563done 6564if ${ac_cv_search_pthread_setcanceltype+:} false; then : 6565 6566else 6567 ac_cv_search_pthread_setcanceltype=no 6568fi 6569rm conftest.$ac_ext 6570LIBS=$ac_func_search_save_LIBS 6571fi 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_setcanceltype" >&5 6573$as_echo "$ac_cv_search_pthread_setcanceltype" >&6; } 6574ac_res=$ac_cv_search_pthread_setcanceltype 6575if test "$ac_res" != no; then : 6576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6577 6578fi 6579 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_exit" >&5 6581$as_echo_n "checking for library containing pthread_exit... " >&6; } 6582if ${ac_cv_search_pthread_exit+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 ac_func_search_save_LIBS=$LIBS 6586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587/* end confdefs.h. */ 6588 6589/* Override any GCC internal prototype to avoid an error. 6590 Use char because int might match the return type of a GCC 6591 builtin and then its argument prototype would still apply. */ 6592#ifdef __cplusplus 6593extern "C" 6594#endif 6595char pthread_exit (); 6596int 6597main () 6598{ 6599return pthread_exit (); 6600 ; 6601 return 0; 6602} 6603_ACEOF 6604for ac_lib in '' pthread; do 6605 if test -z "$ac_lib"; then 6606 ac_res="none required" 6607 else 6608 ac_res=-l$ac_lib 6609 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6610 fi 6611 if ac_fn_c_try_link "$LINENO"; then : 6612 ac_cv_search_pthread_exit=$ac_res 6613fi 6614rm -f core conftest.err conftest.$ac_objext \ 6615 conftest$ac_exeext 6616 if ${ac_cv_search_pthread_exit+:} false; then : 6617 break 6618fi 6619done 6620if ${ac_cv_search_pthread_exit+:} false; then : 6621 6622else 6623 ac_cv_search_pthread_exit=no 6624fi 6625rm conftest.$ac_ext 6626LIBS=$ac_func_search_save_LIBS 6627fi 6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_exit" >&5 6629$as_echo "$ac_cv_search_pthread_exit" >&6; } 6630ac_res=$ac_cv_search_pthread_exit 6631if test "$ac_res" != no; then : 6632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6633 6634fi 6635 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_sigmask" >&5 6637$as_echo_n "checking for library containing pthread_sigmask... " >&6; } 6638if ${ac_cv_search_pthread_sigmask+:} false; then : 6639 $as_echo_n "(cached) " >&6 6640else 6641 ac_func_search_save_LIBS=$LIBS 6642cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643/* end confdefs.h. */ 6644 6645/* Override any GCC internal prototype to avoid an error. 6646 Use char because int might match the return type of a GCC 6647 builtin and then its argument prototype would still apply. */ 6648#ifdef __cplusplus 6649extern "C" 6650#endif 6651char pthread_sigmask (); 6652int 6653main () 6654{ 6655return pthread_sigmask (); 6656 ; 6657 return 0; 6658} 6659_ACEOF 6660for ac_lib in '' pthread; do 6661 if test -z "$ac_lib"; then 6662 ac_res="none required" 6663 else 6664 ac_res=-l$ac_lib 6665 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6666 fi 6667 if ac_fn_c_try_link "$LINENO"; then : 6668 ac_cv_search_pthread_sigmask=$ac_res 6669fi 6670rm -f core conftest.err conftest.$ac_objext \ 6671 conftest$ac_exeext 6672 if ${ac_cv_search_pthread_sigmask+:} false; then : 6673 break 6674fi 6675done 6676if ${ac_cv_search_pthread_sigmask+:} false; then : 6677 6678else 6679 ac_cv_search_pthread_sigmask=no 6680fi 6681rm conftest.$ac_ext 6682LIBS=$ac_func_search_save_LIBS 6683fi 6684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_sigmask" >&5 6685$as_echo "$ac_cv_search_pthread_sigmask" >&6; } 6686ac_res=$ac_cv_search_pthread_sigmask 6687if test "$ac_res" != no; then : 6688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6689 6690fi 6691 6692#AC_SEARCH_LIBS([pthread_cleanup_push], [pthread]) <- macro 6693#AC_SEARCH_LIBS([pthread_cleanup_pop], [pthread]) <- macro 6694 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 6696$as_echo_n "checking for library containing floor... " >&6; } 6697if ${ac_cv_search_floor+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 ac_func_search_save_LIBS=$LIBS 6701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702/* end confdefs.h. */ 6703 6704/* Override any GCC internal prototype to avoid an error. 6705 Use char because int might match the return type of a GCC 6706 builtin and then its argument prototype would still apply. */ 6707#ifdef __cplusplus 6708extern "C" 6709#endif 6710char floor (); 6711int 6712main () 6713{ 6714return floor (); 6715 ; 6716 return 0; 6717} 6718_ACEOF 6719for ac_lib in '' m; do 6720 if test -z "$ac_lib"; then 6721 ac_res="none required" 6722 else 6723 ac_res=-l$ac_lib 6724 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6725 fi 6726 if ac_fn_c_try_link "$LINENO"; then : 6727 ac_cv_search_floor=$ac_res 6728fi 6729rm -f core conftest.err conftest.$ac_objext \ 6730 conftest$ac_exeext 6731 if ${ac_cv_search_floor+:} false; then : 6732 break 6733fi 6734done 6735if ${ac_cv_search_floor+:} false; then : 6736 6737else 6738 ac_cv_search_floor=no 6739fi 6740rm conftest.$ac_ext 6741LIBS=$ac_func_search_save_LIBS 6742fi 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 6744$as_echo "$ac_cv_search_floor" >&6; } 6745ac_res=$ac_cv_search_floor 6746if test "$ac_res" != no; then : 6747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6748 6749fi 6750 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5 6752$as_echo_n "checking for library containing pow... " >&6; } 6753if ${ac_cv_search_pow+:} false; then : 6754 $as_echo_n "(cached) " >&6 6755else 6756 ac_func_search_save_LIBS=$LIBS 6757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6758/* end confdefs.h. */ 6759 6760/* Override any GCC internal prototype to avoid an error. 6761 Use char because int might match the return type of a GCC 6762 builtin and then its argument prototype would still apply. */ 6763#ifdef __cplusplus 6764extern "C" 6765#endif 6766char pow (); 6767int 6768main () 6769{ 6770return pow (); 6771 ; 6772 return 0; 6773} 6774_ACEOF 6775for ac_lib in '' m; do 6776 if test -z "$ac_lib"; then 6777 ac_res="none required" 6778 else 6779 ac_res=-l$ac_lib 6780 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6781 fi 6782 if ac_fn_c_try_link "$LINENO"; then : 6783 ac_cv_search_pow=$ac_res 6784fi 6785rm -f core conftest.err conftest.$ac_objext \ 6786 conftest$ac_exeext 6787 if ${ac_cv_search_pow+:} false; then : 6788 break 6789fi 6790done 6791if ${ac_cv_search_pow+:} false; then : 6792 6793else 6794 ac_cv_search_pow=no 6795fi 6796rm conftest.$ac_ext 6797LIBS=$ac_func_search_save_LIBS 6798fi 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5 6800$as_echo "$ac_cv_search_pow" >&6; } 6801ac_res=$ac_cv_search_pow 6802if test "$ac_res" != no; then : 6803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6804 6805fi 6806 6807 6808# For SunOS 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing htons" >&5 6810$as_echo_n "checking for library containing htons... " >&6; } 6811if ${ac_cv_search_htons+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 ac_func_search_save_LIBS=$LIBS 6815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6816/* end confdefs.h. */ 6817 6818/* Override any GCC internal prototype to avoid an error. 6819 Use char because int might match the return type of a GCC 6820 builtin and then its argument prototype would still apply. */ 6821#ifdef __cplusplus 6822extern "C" 6823#endif 6824char htons (); 6825int 6826main () 6827{ 6828return htons (); 6829 ; 6830 return 0; 6831} 6832_ACEOF 6833for ac_lib in '' socket; do 6834 if test -z "$ac_lib"; then 6835 ac_res="none required" 6836 else 6837 ac_res=-l$ac_lib 6838 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6839 fi 6840 if ac_fn_c_try_link "$LINENO"; then : 6841 ac_cv_search_htons=$ac_res 6842fi 6843rm -f core conftest.err conftest.$ac_objext \ 6844 conftest$ac_exeext 6845 if ${ac_cv_search_htons+:} false; then : 6846 break 6847fi 6848done 6849if ${ac_cv_search_htons+:} false; then : 6850 6851else 6852 ac_cv_search_htons=no 6853fi 6854rm conftest.$ac_ext 6855LIBS=$ac_func_search_save_LIBS 6856fi 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_htons" >&5 6858$as_echo "$ac_cv_search_htons" >&6; } 6859ac_res=$ac_cv_search_htons 6860if test "$ac_res" != no; then : 6861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6862 6863fi 6864 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ntohs" >&5 6866$as_echo_n "checking for library containing ntohs... " >&6; } 6867if ${ac_cv_search_ntohs+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869else 6870 ac_func_search_save_LIBS=$LIBS 6871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873 6874/* Override any GCC internal prototype to avoid an error. 6875 Use char because int might match the return type of a GCC 6876 builtin and then its argument prototype would still apply. */ 6877#ifdef __cplusplus 6878extern "C" 6879#endif 6880char ntohs (); 6881int 6882main () 6883{ 6884return ntohs (); 6885 ; 6886 return 0; 6887} 6888_ACEOF 6889for ac_lib in '' socket; do 6890 if test -z "$ac_lib"; then 6891 ac_res="none required" 6892 else 6893 ac_res=-l$ac_lib 6894 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6895 fi 6896 if ac_fn_c_try_link "$LINENO"; then : 6897 ac_cv_search_ntohs=$ac_res 6898fi 6899rm -f core conftest.err conftest.$ac_objext \ 6900 conftest$ac_exeext 6901 if ${ac_cv_search_ntohs+:} false; then : 6902 break 6903fi 6904done 6905if ${ac_cv_search_ntohs+:} false; then : 6906 6907else 6908 ac_cv_search_ntohs=no 6909fi 6910rm conftest.$ac_ext 6911LIBS=$ac_func_search_save_LIBS 6912fi 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ntohs" >&5 6914$as_echo "$ac_cv_search_ntohs" >&6; } 6915ac_res=$ac_cv_search_ntohs 6916if test "$ac_res" != no; then : 6917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6918 6919fi 6920 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5 6922$as_echo_n "checking for library containing bind... " >&6; } 6923if ${ac_cv_search_bind+:} false; then : 6924 $as_echo_n "(cached) " >&6 6925else 6926 ac_func_search_save_LIBS=$LIBS 6927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6928/* end confdefs.h. */ 6929 6930/* Override any GCC internal prototype to avoid an error. 6931 Use char because int might match the return type of a GCC 6932 builtin and then its argument prototype would still apply. */ 6933#ifdef __cplusplus 6934extern "C" 6935#endif 6936char bind (); 6937int 6938main () 6939{ 6940return bind (); 6941 ; 6942 return 0; 6943} 6944_ACEOF 6945for ac_lib in '' socket; do 6946 if test -z "$ac_lib"; then 6947 ac_res="none required" 6948 else 6949 ac_res=-l$ac_lib 6950 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6951 fi 6952 if ac_fn_c_try_link "$LINENO"; then : 6953 ac_cv_search_bind=$ac_res 6954fi 6955rm -f core conftest.err conftest.$ac_objext \ 6956 conftest$ac_exeext 6957 if ${ac_cv_search_bind+:} false; then : 6958 break 6959fi 6960done 6961if ${ac_cv_search_bind+:} false; then : 6962 6963else 6964 ac_cv_search_bind=no 6965fi 6966rm conftest.$ac_ext 6967LIBS=$ac_func_search_save_LIBS 6968fi 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5 6970$as_echo "$ac_cv_search_bind" >&6; } 6971ac_res=$ac_cv_search_bind 6972if test "$ac_res" != no; then : 6973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6974 6975fi 6976 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing freeaddrinfo" >&5 6978$as_echo_n "checking for library containing freeaddrinfo... " >&6; } 6979if ${ac_cv_search_freeaddrinfo+:} false; then : 6980 $as_echo_n "(cached) " >&6 6981else 6982 ac_func_search_save_LIBS=$LIBS 6983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984/* end confdefs.h. */ 6985 6986/* Override any GCC internal prototype to avoid an error. 6987 Use char because int might match the return type of a GCC 6988 builtin and then its argument prototype would still apply. */ 6989#ifdef __cplusplus 6990extern "C" 6991#endif 6992char freeaddrinfo (); 6993int 6994main () 6995{ 6996return freeaddrinfo (); 6997 ; 6998 return 0; 6999} 7000_ACEOF 7001for ac_lib in '' socket; do 7002 if test -z "$ac_lib"; then 7003 ac_res="none required" 7004 else 7005 ac_res=-l$ac_lib 7006 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7007 fi 7008 if ac_fn_c_try_link "$LINENO"; then : 7009 ac_cv_search_freeaddrinfo=$ac_res 7010fi 7011rm -f core conftest.err conftest.$ac_objext \ 7012 conftest$ac_exeext 7013 if ${ac_cv_search_freeaddrinfo+:} false; then : 7014 break 7015fi 7016done 7017if ${ac_cv_search_freeaddrinfo+:} false; then : 7018 7019else 7020 ac_cv_search_freeaddrinfo=no 7021fi 7022rm conftest.$ac_ext 7023LIBS=$ac_func_search_save_LIBS 7024fi 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_freeaddrinfo" >&5 7026$as_echo "$ac_cv_search_freeaddrinfo" >&6; } 7027ac_res=$ac_cv_search_freeaddrinfo 7028if test "$ac_res" != no; then : 7029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7030 7031fi 7032 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 7034$as_echo_n "checking for library containing getaddrinfo... " >&6; } 7035if ${ac_cv_search_getaddrinfo+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 ac_func_search_save_LIBS=$LIBS 7039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041 7042/* Override any GCC internal prototype to avoid an error. 7043 Use char because int might match the return type of a GCC 7044 builtin and then its argument prototype would still apply. */ 7045#ifdef __cplusplus 7046extern "C" 7047#endif 7048char getaddrinfo (); 7049int 7050main () 7051{ 7052return getaddrinfo (); 7053 ; 7054 return 0; 7055} 7056_ACEOF 7057for ac_lib in '' socket; do 7058 if test -z "$ac_lib"; then 7059 ac_res="none required" 7060 else 7061 ac_res=-l$ac_lib 7062 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7063 fi 7064 if ac_fn_c_try_link "$LINENO"; then : 7065 ac_cv_search_getaddrinfo=$ac_res 7066fi 7067rm -f core conftest.err conftest.$ac_objext \ 7068 conftest$ac_exeext 7069 if ${ac_cv_search_getaddrinfo+:} false; then : 7070 break 7071fi 7072done 7073if ${ac_cv_search_getaddrinfo+:} false; then : 7074 7075else 7076 ac_cv_search_getaddrinfo=no 7077fi 7078rm conftest.$ac_ext 7079LIBS=$ac_func_search_save_LIBS 7080fi 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 7082$as_echo "$ac_cv_search_getaddrinfo" >&6; } 7083ac_res=$ac_cv_search_getaddrinfo 7084if test "$ac_res" != no; then : 7085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7086 7087fi 7088 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing listen" >&5 7090$as_echo_n "checking for library containing listen... " >&6; } 7091if ${ac_cv_search_listen+:} false; then : 7092 $as_echo_n "(cached) " >&6 7093else 7094 ac_func_search_save_LIBS=$LIBS 7095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096/* end confdefs.h. */ 7097 7098/* Override any GCC internal prototype to avoid an error. 7099 Use char because int might match the return type of a GCC 7100 builtin and then its argument prototype would still apply. */ 7101#ifdef __cplusplus 7102extern "C" 7103#endif 7104char listen (); 7105int 7106main () 7107{ 7108return listen (); 7109 ; 7110 return 0; 7111} 7112_ACEOF 7113for ac_lib in '' socket; do 7114 if test -z "$ac_lib"; then 7115 ac_res="none required" 7116 else 7117 ac_res=-l$ac_lib 7118 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7119 fi 7120 if ac_fn_c_try_link "$LINENO"; then : 7121 ac_cv_search_listen=$ac_res 7122fi 7123rm -f core conftest.err conftest.$ac_objext \ 7124 conftest$ac_exeext 7125 if ${ac_cv_search_listen+:} false; then : 7126 break 7127fi 7128done 7129if ${ac_cv_search_listen+:} false; then : 7130 7131else 7132 ac_cv_search_listen=no 7133fi 7134rm conftest.$ac_ext 7135LIBS=$ac_func_search_save_LIBS 7136fi 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_listen" >&5 7138$as_echo "$ac_cv_search_listen" >&6; } 7139ac_res=$ac_cv_search_listen 7140if test "$ac_res" != no; then : 7141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7142 7143fi 7144 7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5 7146$as_echo_n "checking for library containing recvfrom... " >&6; } 7147if ${ac_cv_search_recvfrom+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149else 7150 ac_func_search_save_LIBS=$LIBS 7151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7152/* end confdefs.h. */ 7153 7154/* Override any GCC internal prototype to avoid an error. 7155 Use char because int might match the return type of a GCC 7156 builtin and then its argument prototype would still apply. */ 7157#ifdef __cplusplus 7158extern "C" 7159#endif 7160char recvfrom (); 7161int 7162main () 7163{ 7164return recvfrom (); 7165 ; 7166 return 0; 7167} 7168_ACEOF 7169for ac_lib in '' socket; do 7170 if test -z "$ac_lib"; then 7171 ac_res="none required" 7172 else 7173 ac_res=-l$ac_lib 7174 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7175 fi 7176 if ac_fn_c_try_link "$LINENO"; then : 7177 ac_cv_search_recvfrom=$ac_res 7178fi 7179rm -f core conftest.err conftest.$ac_objext \ 7180 conftest$ac_exeext 7181 if ${ac_cv_search_recvfrom+:} false; then : 7182 break 7183fi 7184done 7185if ${ac_cv_search_recvfrom+:} false; then : 7186 7187else 7188 ac_cv_search_recvfrom=no 7189fi 7190rm conftest.$ac_ext 7191LIBS=$ac_func_search_save_LIBS 7192fi 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5 7194$as_echo "$ac_cv_search_recvfrom" >&6; } 7195ac_res=$ac_cv_search_recvfrom 7196if test "$ac_res" != no; then : 7197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7198 7199fi 7200 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shutdown" >&5 7202$as_echo_n "checking for library containing shutdown... " >&6; } 7203if ${ac_cv_search_shutdown+:} false; then : 7204 $as_echo_n "(cached) " >&6 7205else 7206 ac_func_search_save_LIBS=$LIBS 7207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7208/* end confdefs.h. */ 7209 7210/* Override any GCC internal prototype to avoid an error. 7211 Use char because int might match the return type of a GCC 7212 builtin and then its argument prototype would still apply. */ 7213#ifdef __cplusplus 7214extern "C" 7215#endif 7216char shutdown (); 7217int 7218main () 7219{ 7220return shutdown (); 7221 ; 7222 return 0; 7223} 7224_ACEOF 7225for ac_lib in '' socket; do 7226 if test -z "$ac_lib"; then 7227 ac_res="none required" 7228 else 7229 ac_res=-l$ac_lib 7230 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7231 fi 7232 if ac_fn_c_try_link "$LINENO"; then : 7233 ac_cv_search_shutdown=$ac_res 7234fi 7235rm -f core conftest.err conftest.$ac_objext \ 7236 conftest$ac_exeext 7237 if ${ac_cv_search_shutdown+:} false; then : 7238 break 7239fi 7240done 7241if ${ac_cv_search_shutdown+:} false; then : 7242 7243else 7244 ac_cv_search_shutdown=no 7245fi 7246rm conftest.$ac_ext 7247LIBS=$ac_func_search_save_LIBS 7248fi 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shutdown" >&5 7250$as_echo "$ac_cv_search_shutdown" >&6; } 7251ac_res=$ac_cv_search_shutdown 7252if test "$ac_res" != no; then : 7253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7254 7255fi 7256 7257 7258# For Linux, SunOS and Cygwin 7259#AC_CHECK_LIB(stdc++,main,,[AC_MSG_ERROR([stdc++ library missing])]) 7260 7261# Conditional build with OpenSSL 7262if test "$openssl" = 'yes'; then 7263 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7264for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7265 inttypes.h stdint.h unistd.h 7266do : 7267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7268ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7269" 7270if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7271 cat >>confdefs.h <<_ACEOF 7272@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7273_ACEOF 7274 7275fi 7276 7277done 7278 7279 7280for ac_header in openssl/md5.h 7281do : 7282 ac_fn_c_check_header_mongrel "$LINENO" "openssl/md5.h" "ac_cv_header_openssl_md5_h" "$ac_includes_default" 7283if test "x$ac_cv_header_openssl_md5_h" = xyes; then : 7284 cat >>confdefs.h <<_ACEOF 7285@%:@define HAVE_OPENSSL_MD5_H 1 7286_ACEOF 7287 7288else 7289 as_fn_error $? "<openssl/md5.h> header missing" "$LINENO" 5 7290fi 7291 7292done 7293 7294 for ac_header in openssl/bio.h 7295do : 7296 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default" 7297if test "x$ac_cv_header_openssl_bio_h" = xyes; then : 7298 cat >>confdefs.h <<_ACEOF 7299@%:@define HAVE_OPENSSL_BIO_H 1 7300_ACEOF 7301 7302else 7303 as_fn_error $? "<openssl/bio.h> header missing" "$LINENO" 5 7304fi 7305 7306done 7307 7308 for ac_header in openssl/err.h 7309do : 7310 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default" 7311if test "x$ac_cv_header_openssl_err_h" = xyes; then : 7312 cat >>confdefs.h <<_ACEOF 7313@%:@define HAVE_OPENSSL_ERR_H 1 7314_ACEOF 7315 7316else 7317 as_fn_error $? "<openssl/err.h> header missing" "$LINENO" 5 7318fi 7319 7320done 7321 7322 for ac_header in openssl/rand.h 7323do : 7324 ac_fn_c_check_header_mongrel "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default" 7325if test "x$ac_cv_header_openssl_rand_h" = xyes; then : 7326 cat >>confdefs.h <<_ACEOF 7327@%:@define HAVE_OPENSSL_RAND_H 1 7328_ACEOF 7329 7330else 7331 as_fn_error $? "<openssl/rand.h> header missing" "$LINENO" 5 7332fi 7333 7334done 7335 7336 for ac_header in openssl/ssl.h 7337do : 7338 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 7339if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 7340 cat >>confdefs.h <<_ACEOF 7341@%:@define HAVE_OPENSSL_SSL_H 1 7342_ACEOF 7343 7344else 7345 as_fn_error $? "<openssl/ssl.h> header missing" "$LINENO" 5 7346fi 7347 7348done 7349 7350 for ac_header in openssl/x509v3.h 7351do : 7352 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509v3.h" "ac_cv_header_openssl_x509v3_h" "$ac_includes_default" 7353if test "x$ac_cv_header_openssl_x509v3_h" = xyes; then : 7354 cat >>confdefs.h <<_ACEOF 7355@%:@define HAVE_OPENSSL_X509V3_H 1 7356_ACEOF 7357 7358else 7359 as_fn_error $? "<openssl/x509v3.h> header missing" "$LINENO" 5 7360fi 7361 7362done 7363 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 7365$as_echo_n "checking for SSL_library_init in -lssl... " >&6; } 7366if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : 7367 $as_echo_n "(cached) " >&6 7368else 7369 ac_check_lib_save_LIBS=$LIBS 7370LIBS="-lssl $LIBS" 7371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7372/* end confdefs.h. */ 7373 7374/* Override any GCC internal prototype to avoid an error. 7375 Use char because int might match the return type of a GCC 7376 builtin and then its argument prototype would still apply. */ 7377#ifdef __cplusplus 7378extern "C" 7379#endif 7380char SSL_library_init (); 7381int 7382main () 7383{ 7384return SSL_library_init (); 7385 ; 7386 return 0; 7387} 7388_ACEOF 7389if ac_fn_c_try_link "$LINENO"; then : 7390 ac_cv_lib_ssl_SSL_library_init=yes 7391else 7392 ac_cv_lib_ssl_SSL_library_init=no 7393fi 7394rm -f core conftest.err conftest.$ac_objext \ 7395 conftest$ac_exeext conftest.$ac_ext 7396LIBS=$ac_check_lib_save_LIBS 7397fi 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 7399$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } 7400if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : 7401 cat >>confdefs.h <<_ACEOF 7402@%:@define HAVE_LIBSSL 1 7403_ACEOF 7404 7405 LIBS="-lssl $LIBS" 7406 7407else 7408 as_fn_error $? "ssl library missing" "$LINENO" 5 7409fi 7410 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_num_locks in -lcrypto" >&5 7412$as_echo_n "checking for CRYPTO_num_locks in -lcrypto... " >&6; } 7413if ${ac_cv_lib_crypto_CRYPTO_num_locks+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 ac_check_lib_save_LIBS=$LIBS 7417LIBS="-lcrypto $LIBS" 7418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7419/* end confdefs.h. */ 7420 7421/* Override any GCC internal prototype to avoid an error. 7422 Use char because int might match the return type of a GCC 7423 builtin and then its argument prototype would still apply. */ 7424#ifdef __cplusplus 7425extern "C" 7426#endif 7427char CRYPTO_num_locks (); 7428int 7429main () 7430{ 7431return CRYPTO_num_locks (); 7432 ; 7433 return 0; 7434} 7435_ACEOF 7436if ac_fn_c_try_link "$LINENO"; then : 7437 ac_cv_lib_crypto_CRYPTO_num_locks=yes 7438else 7439 ac_cv_lib_crypto_CRYPTO_num_locks=no 7440fi 7441rm -f core conftest.err conftest.$ac_objext \ 7442 conftest$ac_exeext conftest.$ac_ext 7443LIBS=$ac_check_lib_save_LIBS 7444fi 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_num_locks" >&5 7446$as_echo "$ac_cv_lib_crypto_CRYPTO_num_locks" >&6; } 7447if test "x$ac_cv_lib_crypto_CRYPTO_num_locks" = xyes; then : 7448 cat >>confdefs.h <<_ACEOF 7449@%:@define HAVE_LIBCRYPTO 1 7450_ACEOF 7451 7452 LIBS="-lcrypto $LIBS" 7453 7454else 7455 as_fn_error $? "crypto library missing" "$LINENO" 5 7456fi 7457 7458fi 7459# For Makefile.am 7460 if test "$openssl" = "yes"; then 7461 HAVE_OPENSSL_TRUE= 7462 HAVE_OPENSSL_FALSE='#' 7463else 7464 HAVE_OPENSSL_TRUE='#' 7465 HAVE_OPENSSL_FALSE= 7466fi 7467 7468 7469# Conditional build with SCTP 7470if test "$sctp" = 'yes'; then 7471 for ac_header in netinet/sctp.h 7472do : 7473 ac_fn_c_check_header_mongrel "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "$ac_includes_default" 7474if test "x$ac_cv_header_netinet_sctp_h" = xyes; then : 7475 cat >>confdefs.h <<_ACEOF 7476@%:@define HAVE_NETINET_SCTP_H 1 7477_ACEOF 7478 7479else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: <netinet/sctp.h> header missing, but this is acceptable on Mac OS X Lion" >&5 7481$as_echo "$as_me: WARNING: <netinet/sctp.h> header missing, but this is acceptable on Mac OS X Lion" >&2;} 7482fi 7483 7484done 7485 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_send" >&5 7487$as_echo_n "checking for library containing sctp_send... " >&6; } 7488if ${ac_cv_search_sctp_send+:} false; then : 7489 $as_echo_n "(cached) " >&6 7490else 7491 ac_func_search_save_LIBS=$LIBS 7492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7493/* end confdefs.h. */ 7494 7495/* Override any GCC internal prototype to avoid an error. 7496 Use char because int might match the return type of a GCC 7497 builtin and then its argument prototype would still apply. */ 7498#ifdef __cplusplus 7499extern "C" 7500#endif 7501char sctp_send (); 7502int 7503main () 7504{ 7505return sctp_send (); 7506 ; 7507 return 0; 7508} 7509_ACEOF 7510for ac_lib in '' sctp sctpsp; do 7511 if test -z "$ac_lib"; then 7512 ac_res="none required" 7513 else 7514 ac_res=-l$ac_lib 7515 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7516 fi 7517 if ac_fn_c_try_link "$LINENO"; then : 7518 ac_cv_search_sctp_send=$ac_res 7519fi 7520rm -f core conftest.err conftest.$ac_objext \ 7521 conftest$ac_exeext 7522 if ${ac_cv_search_sctp_send+:} false; then : 7523 break 7524fi 7525done 7526if ${ac_cv_search_sctp_send+:} false; then : 7527 7528else 7529 ac_cv_search_sctp_send=no 7530fi 7531rm conftest.$ac_ext 7532LIBS=$ac_func_search_save_LIBS 7533fi 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_send" >&5 7535$as_echo "$ac_cv_search_sctp_send" >&6; } 7536ac_res=$ac_cv_search_sctp_send 7537if test "$ac_res" != no; then : 7538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7539 7540else 7541 as_fn_error $? "SCTP library missing" "$LINENO" 5 7542fi 7543 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_freepaddrs" >&5 7545$as_echo_n "checking for library containing sctp_freepaddrs... " >&6; } 7546if ${ac_cv_search_sctp_freepaddrs+:} false; then : 7547 $as_echo_n "(cached) " >&6 7548else 7549 ac_func_search_save_LIBS=$LIBS 7550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551/* end confdefs.h. */ 7552 7553/* Override any GCC internal prototype to avoid an error. 7554 Use char because int might match the return type of a GCC 7555 builtin and then its argument prototype would still apply. */ 7556#ifdef __cplusplus 7557extern "C" 7558#endif 7559char sctp_freepaddrs (); 7560int 7561main () 7562{ 7563return sctp_freepaddrs (); 7564 ; 7565 return 0; 7566} 7567_ACEOF 7568for ac_lib in '' sctp sctpsp; do 7569 if test -z "$ac_lib"; then 7570 ac_res="none required" 7571 else 7572 ac_res=-l$ac_lib 7573 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7574 fi 7575 if ac_fn_c_try_link "$LINENO"; then : 7576 ac_cv_search_sctp_freepaddrs=$ac_res 7577fi 7578rm -f core conftest.err conftest.$ac_objext \ 7579 conftest$ac_exeext 7580 if ${ac_cv_search_sctp_freepaddrs+:} false; then : 7581 break 7582fi 7583done 7584if ${ac_cv_search_sctp_freepaddrs+:} false; then : 7585 7586else 7587 ac_cv_search_sctp_freepaddrs=no 7588fi 7589rm conftest.$ac_ext 7590LIBS=$ac_func_search_save_LIBS 7591fi 7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_freepaddrs" >&5 7593$as_echo "$ac_cv_search_sctp_freepaddrs" >&6; } 7594ac_res=$ac_cv_search_sctp_freepaddrs 7595if test "$ac_res" != no; then : 7596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7597 7598else 7599 as_fn_error $? "SCTP library missing" "$LINENO" 5 7600fi 7601 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5 7603$as_echo_n "checking for library containing sctp_bindx... " >&6; } 7604if ${ac_cv_search_sctp_bindx+:} false; then : 7605 $as_echo_n "(cached) " >&6 7606else 7607 ac_func_search_save_LIBS=$LIBS 7608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610 7611/* Override any GCC internal prototype to avoid an error. 7612 Use char because int might match the return type of a GCC 7613 builtin and then its argument prototype would still apply. */ 7614#ifdef __cplusplus 7615extern "C" 7616#endif 7617char sctp_bindx (); 7618int 7619main () 7620{ 7621return sctp_bindx (); 7622 ; 7623 return 0; 7624} 7625_ACEOF 7626for ac_lib in '' sctp sctpsp; do 7627 if test -z "$ac_lib"; then 7628 ac_res="none required" 7629 else 7630 ac_res=-l$ac_lib 7631 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7632 fi 7633 if ac_fn_c_try_link "$LINENO"; then : 7634 ac_cv_search_sctp_bindx=$ac_res 7635fi 7636rm -f core conftest.err conftest.$ac_objext \ 7637 conftest$ac_exeext 7638 if ${ac_cv_search_sctp_bindx+:} false; then : 7639 break 7640fi 7641done 7642if ${ac_cv_search_sctp_bindx+:} false; then : 7643 7644else 7645 ac_cv_search_sctp_bindx=no 7646fi 7647rm conftest.$ac_ext 7648LIBS=$ac_func_search_save_LIBS 7649fi 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5 7651$as_echo "$ac_cv_search_sctp_bindx" >&6; } 7652ac_res=$ac_cv_search_sctp_bindx 7653if test "$ac_res" != no; then : 7654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7655 7656else 7657 as_fn_error $? "SCTP library missing" "$LINENO" 5 7658fi 7659 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_recvmsg" >&5 7661$as_echo_n "checking for library containing sctp_recvmsg... " >&6; } 7662if ${ac_cv_search_sctp_recvmsg+:} false; then : 7663 $as_echo_n "(cached) " >&6 7664else 7665 ac_func_search_save_LIBS=$LIBS 7666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668 7669/* Override any GCC internal prototype to avoid an error. 7670 Use char because int might match the return type of a GCC 7671 builtin and then its argument prototype would still apply. */ 7672#ifdef __cplusplus 7673extern "C" 7674#endif 7675char sctp_recvmsg (); 7676int 7677main () 7678{ 7679return sctp_recvmsg (); 7680 ; 7681 return 0; 7682} 7683_ACEOF 7684for ac_lib in '' sctp sctpsp; do 7685 if test -z "$ac_lib"; then 7686 ac_res="none required" 7687 else 7688 ac_res=-l$ac_lib 7689 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7690 fi 7691 if ac_fn_c_try_link "$LINENO"; then : 7692 ac_cv_search_sctp_recvmsg=$ac_res 7693fi 7694rm -f core conftest.err conftest.$ac_objext \ 7695 conftest$ac_exeext 7696 if ${ac_cv_search_sctp_recvmsg+:} false; then : 7697 break 7698fi 7699done 7700if ${ac_cv_search_sctp_recvmsg+:} false; then : 7701 7702else 7703 ac_cv_search_sctp_recvmsg=no 7704fi 7705rm conftest.$ac_ext 7706LIBS=$ac_func_search_save_LIBS 7707fi 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_recvmsg" >&5 7709$as_echo "$ac_cv_search_sctp_recvmsg" >&6; } 7710ac_res=$ac_cv_search_sctp_recvmsg 7711if test "$ac_res" != no; then : 7712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7713 7714else 7715 as_fn_error $? "SCTP library missing" "$LINENO" 5 7716fi 7717 7718fi 7719# For Makefile.am 7720 if test "$sctp" = "yes"; then 7721 HAVE_SCTP_TRUE= 7722 HAVE_SCTP_FALSE='#' 7723else 7724 HAVE_SCTP_TRUE='#' 7725 HAVE_SCTP_FALSE= 7726fi 7727 7728 7729# Conditional build with pcap 7730if test "$pcap" = 'yes'; then 7731 for ac_header in pcap.h 7732do : 7733 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default" 7734if test "x$ac_cv_header_pcap_h" = xyes; then : 7735 cat >>confdefs.h <<_ACEOF 7736@%:@define HAVE_PCAP_H 1 7737_ACEOF 7738 7739else 7740 as_fn_error $? "<pcap.h> header missing" "$LINENO" 5 7741fi 7742 7743done 7744 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_open_offline" >&5 7746$as_echo_n "checking for library containing pcap_open_offline... " >&6; } 7747if ${ac_cv_search_pcap_open_offline+:} false; then : 7748 $as_echo_n "(cached) " >&6 7749else 7750 ac_func_search_save_LIBS=$LIBS 7751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7752/* end confdefs.h. */ 7753 7754/* Override any GCC internal prototype to avoid an error. 7755 Use char because int might match the return type of a GCC 7756 builtin and then its argument prototype would still apply. */ 7757#ifdef __cplusplus 7758extern "C" 7759#endif 7760char pcap_open_offline (); 7761int 7762main () 7763{ 7764return pcap_open_offline (); 7765 ; 7766 return 0; 7767} 7768_ACEOF 7769for ac_lib in '' pcap wpcap; do 7770 if test -z "$ac_lib"; then 7771 ac_res="none required" 7772 else 7773 ac_res=-l$ac_lib 7774 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7775 fi 7776 if ac_fn_c_try_link "$LINENO"; then : 7777 ac_cv_search_pcap_open_offline=$ac_res 7778fi 7779rm -f core conftest.err conftest.$ac_objext \ 7780 conftest$ac_exeext 7781 if ${ac_cv_search_pcap_open_offline+:} false; then : 7782 break 7783fi 7784done 7785if ${ac_cv_search_pcap_open_offline+:} false; then : 7786 7787else 7788 ac_cv_search_pcap_open_offline=no 7789fi 7790rm conftest.$ac_ext 7791LIBS=$ac_func_search_save_LIBS 7792fi 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_open_offline" >&5 7794$as_echo "$ac_cv_search_pcap_open_offline" >&6; } 7795ac_res=$ac_cv_search_pcap_open_offline 7796if test "$ac_res" != no; then : 7797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7798 7799else 7800 as_fn_error $? "pcap library missing" "$LINENO" 5 7801fi 7802 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_next" >&5 7804$as_echo_n "checking for library containing pcap_next... " >&6; } 7805if ${ac_cv_search_pcap_next+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 ac_func_search_save_LIBS=$LIBS 7809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810/* end confdefs.h. */ 7811 7812/* Override any GCC internal prototype to avoid an error. 7813 Use char because int might match the return type of a GCC 7814 builtin and then its argument prototype would still apply. */ 7815#ifdef __cplusplus 7816extern "C" 7817#endif 7818char pcap_next (); 7819int 7820main () 7821{ 7822return pcap_next (); 7823 ; 7824 return 0; 7825} 7826_ACEOF 7827for ac_lib in '' pcap wpcap; do 7828 if test -z "$ac_lib"; then 7829 ac_res="none required" 7830 else 7831 ac_res=-l$ac_lib 7832 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7833 fi 7834 if ac_fn_c_try_link "$LINENO"; then : 7835 ac_cv_search_pcap_next=$ac_res 7836fi 7837rm -f core conftest.err conftest.$ac_objext \ 7838 conftest$ac_exeext 7839 if ${ac_cv_search_pcap_next+:} false; then : 7840 break 7841fi 7842done 7843if ${ac_cv_search_pcap_next+:} false; then : 7844 7845else 7846 ac_cv_search_pcap_next=no 7847fi 7848rm conftest.$ac_ext 7849LIBS=$ac_func_search_save_LIBS 7850fi 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_next" >&5 7852$as_echo "$ac_cv_search_pcap_next" >&6; } 7853ac_res=$ac_cv_search_pcap_next 7854if test "$ac_res" != no; then : 7855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7856 7857else 7858 as_fn_error $? "pcap library missing" "$LINENO" 5 7859fi 7860 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5 7862$as_echo_n "checking for library containing pcap_close... " >&6; } 7863if ${ac_cv_search_pcap_close+:} false; then : 7864 $as_echo_n "(cached) " >&6 7865else 7866 ac_func_search_save_LIBS=$LIBS 7867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7868/* end confdefs.h. */ 7869 7870/* Override any GCC internal prototype to avoid an error. 7871 Use char because int might match the return type of a GCC 7872 builtin and then its argument prototype would still apply. */ 7873#ifdef __cplusplus 7874extern "C" 7875#endif 7876char pcap_close (); 7877int 7878main () 7879{ 7880return pcap_close (); 7881 ; 7882 return 0; 7883} 7884_ACEOF 7885for ac_lib in '' pcap wpcap; do 7886 if test -z "$ac_lib"; then 7887 ac_res="none required" 7888 else 7889 ac_res=-l$ac_lib 7890 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7891 fi 7892 if ac_fn_c_try_link "$LINENO"; then : 7893 ac_cv_search_pcap_close=$ac_res 7894fi 7895rm -f core conftest.err conftest.$ac_objext \ 7896 conftest$ac_exeext 7897 if ${ac_cv_search_pcap_close+:} false; then : 7898 break 7899fi 7900done 7901if ${ac_cv_search_pcap_close+:} false; then : 7902 7903else 7904 ac_cv_search_pcap_close=no 7905fi 7906rm conftest.$ac_ext 7907LIBS=$ac_func_search_save_LIBS 7908fi 7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5 7910$as_echo "$ac_cv_search_pcap_close" >&6; } 7911ac_res=$ac_cv_search_pcap_close 7912if test "$ac_res" != no; then : 7913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7914 7915else 7916 as_fn_error $? "pcap library missing" "$LINENO" 5 7917fi 7918 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_next_ex in -lpcap" >&5 7920$as_echo_n "checking for pcap_next_ex in -lpcap... " >&6; } 7921if ${ac_cv_lib_pcap_pcap_next_ex+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 ac_check_lib_save_LIBS=$LIBS 7925LIBS="-lpcap $LIBS" 7926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7927/* end confdefs.h. */ 7928 7929/* Override any GCC internal prototype to avoid an error. 7930 Use char because int might match the return type of a GCC 7931 builtin and then its argument prototype would still apply. */ 7932#ifdef __cplusplus 7933extern "C" 7934#endif 7935char pcap_next_ex (); 7936int 7937main () 7938{ 7939return pcap_next_ex (); 7940 ; 7941 return 0; 7942} 7943_ACEOF 7944if ac_fn_c_try_link "$LINENO"; then : 7945 ac_cv_lib_pcap_pcap_next_ex=yes 7946else 7947 ac_cv_lib_pcap_pcap_next_ex=no 7948fi 7949rm -f core conftest.err conftest.$ac_objext \ 7950 conftest$ac_exeext conftest.$ac_ext 7951LIBS=$ac_check_lib_save_LIBS 7952fi 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_next_ex" >&5 7954$as_echo "$ac_cv_lib_pcap_pcap_next_ex" >&6; } 7955if test "x$ac_cv_lib_pcap_pcap_next_ex" = xyes; then : 7956 7957$as_echo "@%:@define HAVE_PCAP_NEXT_EX 1" >>confdefs.h 7958 7959fi 7960 7961fi 7962# For Makefile.am 7963 if test "$pcap" = "yes"; then 7964 HAVE_PCAP_TRUE= 7965 HAVE_PCAP_FALSE='#' 7966else 7967 HAVE_PCAP_TRUE='#' 7968 HAVE_PCAP_FALSE= 7969fi 7970 7971 7972 if test "$rtp" = "yes"; then 7973 HAVE_RTP_TRUE= 7974 HAVE_RTP_FALSE='#' 7975else 7976 HAVE_RTP_TRUE='#' 7977 HAVE_RTP_FALSE= 7978fi 7979 7980 7981# Conditional build with pcap 7982if test "$gsl" = 'yes'; then 7983 for ac_header in gsl/gsl_randist.h 7984do : 7985 ac_fn_c_check_header_mongrel "$LINENO" "gsl/gsl_randist.h" "ac_cv_header_gsl_gsl_randist_h" "$ac_includes_default" 7986if test "x$ac_cv_header_gsl_gsl_randist_h" = xyes; then : 7987 cat >>confdefs.h <<_ACEOF 7988@%:@define HAVE_GSL_GSL_RANDIST_H 1 7989_ACEOF 7990 7991else 7992 as_fn_error $? "<gsl/gsl_randist.h> header missing" "$LINENO" 5 7993fi 7994 7995done 7996 7997 for ac_header in gsl/gsl_rng.h 7998do : 7999 ac_fn_c_check_header_mongrel "$LINENO" "gsl/gsl_rng.h" "ac_cv_header_gsl_gsl_rng_h" "$ac_includes_default" 8000if test "x$ac_cv_header_gsl_gsl_rng_h" = xyes; then : 8001 cat >>confdefs.h <<_ACEOF 8002@%:@define HAVE_GSL_GSL_RNG_H 1 8003_ACEOF 8004 8005else 8006 as_fn_error $? "<gsl/gsl_rng.h> header missing" "$LINENO" 5 8007fi 8008 8009done 8010 8011 for ac_header in gsl/gsl_cdf.h 8012do : 8013 ac_fn_c_check_header_mongrel "$LINENO" "gsl/gsl_cdf.h" "ac_cv_header_gsl_gsl_cdf_h" "$ac_includes_default" 8014if test "x$ac_cv_header_gsl_gsl_cdf_h" = xyes; then : 8015 cat >>confdefs.h <<_ACEOF 8016@%:@define HAVE_GSL_GSL_CDF_H 1 8017_ACEOF 8018 8019else 8020 as_fn_error $? "<gsl/gsl_cdf.h> header missing" "$LINENO" 5 8021fi 8022 8023done 8024 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 8026$as_echo_n "checking for cos in -lm... " >&6; } 8027if ${ac_cv_lib_m_cos+:} false; then : 8028 $as_echo_n "(cached) " >&6 8029else 8030 ac_check_lib_save_LIBS=$LIBS 8031LIBS="-lm $LIBS" 8032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8033/* end confdefs.h. */ 8034 8035/* Override any GCC internal prototype to avoid an error. 8036 Use char because int might match the return type of a GCC 8037 builtin and then its argument prototype would still apply. */ 8038#ifdef __cplusplus 8039extern "C" 8040#endif 8041char cos (); 8042int 8043main () 8044{ 8045return cos (); 8046 ; 8047 return 0; 8048} 8049_ACEOF 8050if ac_fn_c_try_link "$LINENO"; then : 8051 ac_cv_lib_m_cos=yes 8052else 8053 ac_cv_lib_m_cos=no 8054fi 8055rm -f core conftest.err conftest.$ac_objext \ 8056 conftest$ac_exeext conftest.$ac_ext 8057LIBS=$ac_check_lib_save_LIBS 8058fi 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 8060$as_echo "$ac_cv_lib_m_cos" >&6; } 8061if test "x$ac_cv_lib_m_cos" = xyes; then : 8062 cat >>confdefs.h <<_ACEOF 8063@%:@define HAVE_LIBM 1 8064_ACEOF 8065 8066 LIBS="-lm $LIBS" 8067 8068fi 8069 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lgslcblas" >&5 8071$as_echo_n "checking for cblas_dgemm in -lgslcblas... " >&6; } 8072if ${ac_cv_lib_gslcblas_cblas_dgemm+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 ac_check_lib_save_LIBS=$LIBS 8076LIBS="-lgslcblas $LIBS" 8077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079 8080/* Override any GCC internal prototype to avoid an error. 8081 Use char because int might match the return type of a GCC 8082 builtin and then its argument prototype would still apply. */ 8083#ifdef __cplusplus 8084extern "C" 8085#endif 8086char cblas_dgemm (); 8087int 8088main () 8089{ 8090return cblas_dgemm (); 8091 ; 8092 return 0; 8093} 8094_ACEOF 8095if ac_fn_c_try_link "$LINENO"; then : 8096 ac_cv_lib_gslcblas_cblas_dgemm=yes 8097else 8098 ac_cv_lib_gslcblas_cblas_dgemm=no 8099fi 8100rm -f core conftest.err conftest.$ac_objext \ 8101 conftest$ac_exeext conftest.$ac_ext 8102LIBS=$ac_check_lib_save_LIBS 8103fi 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_cblas_dgemm" >&5 8105$as_echo "$ac_cv_lib_gslcblas_cblas_dgemm" >&6; } 8106if test "x$ac_cv_lib_gslcblas_cblas_dgemm" = xyes; then : 8107 cat >>confdefs.h <<_ACEOF 8108@%:@define HAVE_LIBGSLCBLAS 1 8109_ACEOF 8110 8111 LIBS="-lgslcblas $LIBS" 8112 8113fi 8114 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsl_rng_alloc in -lgsl" >&5 8116$as_echo_n "checking for gsl_rng_alloc in -lgsl... " >&6; } 8117if ${ac_cv_lib_gsl_gsl_rng_alloc+:} false; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 ac_check_lib_save_LIBS=$LIBS 8121LIBS="-lgsl $LIBS" 8122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8123/* end confdefs.h. */ 8124 8125/* Override any GCC internal prototype to avoid an error. 8126 Use char because int might match the return type of a GCC 8127 builtin and then its argument prototype would still apply. */ 8128#ifdef __cplusplus 8129extern "C" 8130#endif 8131char gsl_rng_alloc (); 8132int 8133main () 8134{ 8135return gsl_rng_alloc (); 8136 ; 8137 return 0; 8138} 8139_ACEOF 8140if ac_fn_c_try_link "$LINENO"; then : 8141 ac_cv_lib_gsl_gsl_rng_alloc=yes 8142else 8143 ac_cv_lib_gsl_gsl_rng_alloc=no 8144fi 8145rm -f core conftest.err conftest.$ac_objext \ 8146 conftest$ac_exeext conftest.$ac_ext 8147LIBS=$ac_check_lib_save_LIBS 8148fi 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_rng_alloc" >&5 8150$as_echo "$ac_cv_lib_gsl_gsl_rng_alloc" >&6; } 8151if test "x$ac_cv_lib_gsl_gsl_rng_alloc" = xyes; then : 8152 8153 GSL_CFLAGS=`pkg-config gsl --cflags` 8154 GSL_CXXFLAGS=`pkg-config gsl --cflags` 8155 GSL_LIBS=`pkg-config gsl --libs` 8156 8157 8158 8159 8160 8161else 8162 as_fn_error $? "gsl library missing" "$LINENO" 5 8163fi 8164 8165fi 8166# For Makefile.am 8167 if test "$gsl" = "yes"; then 8168 HAVE_GSL_TRUE= 8169 HAVE_GSL_FALSE='#' 8170else 8171 HAVE_GSL_TRUE='#' 8172 HAVE_GSL_FALSE= 8173fi 8174 8175 8176if test "$epoll" = 'yes'; then 8177 ax_have_epoll_cppflags="${CPPFLAGS}" 8178 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default" 8179if test "x$ac_cv_header_linux_version_h" = xyes; then : 8180 CPPFLAGS="${CPPFLAGS} -DHAVE_LINUX_VERSION_H" 8181fi 8182 8183 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux epoll(7) interface" >&5 8185$as_echo_n "checking for Linux epoll(7) interface... " >&6; } 8186 if ${ax_cv_have_epoll+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188else 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191 #include <sys/epoll.h> 8192#ifdef HAVE_LINUX_VERSION_H 8193# include <linux/version.h> 8194# if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45) 8195# error linux kernel version is too old to have epoll 8196# endif 8197#endif 8198 8199int 8200main () 8201{ 8202int fd, rc; 8203struct epoll_event ev; 8204fd = epoll_create(128); 8205rc = epoll_wait(fd, &ev, 1, 0); 8206 ; 8207 return 0; 8208} 8209_ACEOF 8210if ac_fn_c_try_link "$LINENO"; then : 8211 ax_cv_have_epoll=yes 8212else 8213 ax_cv_have_epoll=no 8214fi 8215rm -f core conftest.err conftest.$ac_objext \ 8216 conftest$ac_exeext conftest.$ac_ext 8217fi 8218 8219 CPPFLAGS="${ax_have_epoll_cppflags}" 8220 if test "${ax_cv_have_epoll}" = "yes"; then : 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8222$as_echo "yes" >&6; } 8223 ax_config_feature_epoll=yes 8224 8225else 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8227$as_echo "no" >&6; } 8228 ax_config_feature_epoll=no 8229 8230fi 8231 8232 8233@%:@ Check whether --enable-epoll was given. 8234if test "${enable_epoll+set}" = set; then : 8235 enableval=$enable_epoll; 8236case "${enableval}" in 8237 yes) 8238 ax_config_feature_epoll="yes" 8239 ;; 8240 no) 8241 ax_config_feature_epoll="no" 8242 ;; 8243 *) 8244 as_fn_error $? "bad value ${enableval} for feature --epoll" "$LINENO" 5 8245 ;; 8246esac 8247 8248fi 8249 8250 8251if test "$ax_config_feature_epoll" = yes; then : 8252 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h 8253 8254 epoll="yes" 8255 if test "$ax_config_feature_verbose" = yes; then : 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: Feature epoll is enabled" >&5 8257$as_echo "$as_me: Feature epoll is enabled" >&6;} 8258 8259fi 8260 8261else 8262 epoll="no" 8263 if test "$ax_config_feature_verbose" = yes; then : 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: Feature epoll is disabled" >&5 8265$as_echo "$as_me: Feature epoll is disabled" >&6;} 8266 8267fi 8268 8269fi 8270 8271 8272 8273 8274fi 8275 8276 if test "$epoll" = "yes"; then 8277 HAVE_EPOLL_TRUE= 8278 HAVE_EPOLL_FALSE='#' 8279else 8280 HAVE_EPOLL_TRUE='#' 8281 HAVE_EPOLL_FALSE= 8282fi 8283 8284# ==================== checks for header files ========================== 8285 8286ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8287if test "x$ac_cv_type_size_t" = xyes; then : 8288 8289else 8290 8291cat >>confdefs.h <<_ACEOF 8292@%:@define size_t unsigned int 8293_ACEOF 8294 8295fi 8296 8297# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8298# for constant arguments. Useless! 8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8300$as_echo_n "checking for working alloca.h... " >&6; } 8301if ${ac_cv_working_alloca_h+:} false; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305/* end confdefs.h. */ 8306@%:@include <alloca.h> 8307int 8308main () 8309{ 8310char *p = (char *) alloca (2 * sizeof (int)); 8311 if (p) return 0; 8312 ; 8313 return 0; 8314} 8315_ACEOF 8316if ac_fn_c_try_link "$LINENO"; then : 8317 ac_cv_working_alloca_h=yes 8318else 8319 ac_cv_working_alloca_h=no 8320fi 8321rm -f core conftest.err conftest.$ac_objext \ 8322 conftest$ac_exeext conftest.$ac_ext 8323fi 8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8325$as_echo "$ac_cv_working_alloca_h" >&6; } 8326if test $ac_cv_working_alloca_h = yes; then 8327 8328$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h 8329 8330fi 8331 8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8333$as_echo_n "checking for alloca... " >&6; } 8334if ${ac_cv_func_alloca_works+:} false; then : 8335 $as_echo_n "(cached) " >&6 8336else 8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8338/* end confdefs.h. */ 8339#ifdef __GNUC__ 8340# define alloca __builtin_alloca 8341#else 8342# ifdef _MSC_VER 8343# include <malloc.h> 8344# define alloca _alloca 8345# else 8346# ifdef HAVE_ALLOCA_H 8347# include <alloca.h> 8348# else 8349# ifdef _AIX 8350 #pragma alloca 8351# else 8352# ifndef alloca /* predefined by HP cc +Olibcalls */ 8353void *alloca (size_t); 8354# endif 8355# endif 8356# endif 8357# endif 8358#endif 8359 8360int 8361main () 8362{ 8363char *p = (char *) alloca (1); 8364 if (p) return 0; 8365 ; 8366 return 0; 8367} 8368_ACEOF 8369if ac_fn_c_try_link "$LINENO"; then : 8370 ac_cv_func_alloca_works=yes 8371else 8372 ac_cv_func_alloca_works=no 8373fi 8374rm -f core conftest.err conftest.$ac_objext \ 8375 conftest$ac_exeext conftest.$ac_ext 8376fi 8377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8378$as_echo "$ac_cv_func_alloca_works" >&6; } 8379 8380if test $ac_cv_func_alloca_works = yes; then 8381 8382$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h 8383 8384else 8385 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8386# that cause trouble. Some versions do not even contain alloca or 8387# contain a buggy version. If you still want to use their alloca, 8388# use ar to extract alloca.o from them instead of compiling alloca.c. 8389 8390ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8391 8392$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h 8393 8394 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 8396$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 8397if ${ac_cv_os_cray+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399else 8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8401/* end confdefs.h. */ 8402#if defined CRAY && ! defined CRAY2 8403webecray 8404#else 8405wenotbecray 8406#endif 8407 8408_ACEOF 8409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8410 $EGREP "webecray" >/dev/null 2>&1; then : 8411 ac_cv_os_cray=yes 8412else 8413 ac_cv_os_cray=no 8414fi 8415rm -f conftest* 8416 8417fi 8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8419$as_echo "$ac_cv_os_cray" >&6; } 8420if test $ac_cv_os_cray = yes; then 8421 for ac_func in _getb67 GETB67 getb67; do 8422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8423ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8424if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8425 8426cat >>confdefs.h <<_ACEOF 8427@%:@define CRAY_STACKSEG_END $ac_func 8428_ACEOF 8429 8430 break 8431fi 8432 8433 done 8434fi 8435 8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8437$as_echo_n "checking stack direction for C alloca... " >&6; } 8438if ${ac_cv_c_stack_direction+:} false; then : 8439 $as_echo_n "(cached) " >&6 8440else 8441 if test "$cross_compiling" = yes; then : 8442 ac_cv_c_stack_direction=0 8443else 8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8445/* end confdefs.h. */ 8446$ac_includes_default 8447int 8448find_stack_direction (int *addr, int depth) 8449{ 8450 int dir, dummy = 0; 8451 if (! addr) 8452 addr = &dummy; 8453 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 8454 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 8455 return dir + dummy; 8456} 8457 8458int 8459main (int argc, char **argv) 8460{ 8461 return find_stack_direction (0, argc + !argv + 20) < 0; 8462} 8463_ACEOF 8464if ac_fn_c_try_run "$LINENO"; then : 8465 ac_cv_c_stack_direction=1 8466else 8467 ac_cv_c_stack_direction=-1 8468fi 8469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8470 conftest.$ac_objext conftest.beam conftest.$ac_ext 8471fi 8472 8473fi 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8475$as_echo "$ac_cv_c_stack_direction" >&6; } 8476cat >>confdefs.h <<_ACEOF 8477@%:@define STACK_DIRECTION $ac_cv_c_stack_direction 8478_ACEOF 8479 8480 8481fi 8482 8483for ac_header in arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h 8484do : 8485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8486ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8487if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8488 cat >>confdefs.h <<_ACEOF 8489@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8490_ACEOF 8491 8492fi 8493 8494done 8495 8496 8497# ===== checks for typedefs, structures and compiler characteristics ==== 8498 8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 8500$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 8501if ${ac_cv_header_stdbool_h+:} false; then : 8502 $as_echo_n "(cached) " >&6 8503else 8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8505/* end confdefs.h. */ 8506 8507 #include <stdbool.h> 8508 #ifndef bool 8509 "error: bool is not defined" 8510 #endif 8511 #ifndef false 8512 "error: false is not defined" 8513 #endif 8514 #if false 8515 "error: false is not 0" 8516 #endif 8517 #ifndef true 8518 "error: true is not defined" 8519 #endif 8520 #if true != 1 8521 "error: true is not 1" 8522 #endif 8523 #ifndef __bool_true_false_are_defined 8524 "error: __bool_true_false_are_defined is not defined" 8525 #endif 8526 8527 struct s { _Bool s: 1; _Bool t; } s; 8528 8529 char a[true == 1 ? 1 : -1]; 8530 char b[false == 0 ? 1 : -1]; 8531 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 8532 char d[(bool) 0.5 == true ? 1 : -1]; 8533 /* See body of main program for 'e'. */ 8534 char f[(_Bool) 0.0 == false ? 1 : -1]; 8535 char g[true]; 8536 char h[sizeof (_Bool)]; 8537 char i[sizeof s.t]; 8538 enum { j = false, k = true, l = false * true, m = true * 256 }; 8539 /* The following fails for 8540 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 8541 _Bool n[m]; 8542 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 8543 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 8544 /* Catch a bug in an HP-UX C compiler. See 8545 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 8546 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 8547 */ 8548 _Bool q = true; 8549 _Bool *pq = &q; 8550 8551int 8552main () 8553{ 8554 8555 bool e = &s; 8556 *pq |= q; 8557 *pq |= ! q; 8558 /* Refer to every declared value, to avoid compiler optimizations. */ 8559 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 8560 + !m + !n + !o + !p + !q + !pq); 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566if ac_fn_c_try_compile "$LINENO"; then : 8567 ac_cv_header_stdbool_h=yes 8568else 8569 ac_cv_header_stdbool_h=no 8570fi 8571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8572fi 8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 8574$as_echo "$ac_cv_header_stdbool_h" >&6; } 8575 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 8576if test "x$ac_cv_type__Bool" = xyes; then : 8577 8578cat >>confdefs.h <<_ACEOF 8579@%:@define HAVE__BOOL 1 8580_ACEOF 8581 8582 8583fi 8584 8585 8586if test $ac_cv_header_stdbool_h = yes; then 8587 8588$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h 8589 8590fi 8591 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 8593$as_echo_n "checking for inline... " >&6; } 8594if ${ac_cv_c_inline+:} false; then : 8595 $as_echo_n "(cached) " >&6 8596else 8597 ac_cv_c_inline=no 8598for ac_kw in inline __inline__ __inline; do 8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8600/* end confdefs.h. */ 8601#ifndef __cplusplus 8602typedef int foo_t; 8603static $ac_kw foo_t static_foo () {return 0; } 8604$ac_kw foo_t foo () {return 0; } 8605#endif 8606 8607_ACEOF 8608if ac_fn_c_try_compile "$LINENO"; then : 8609 ac_cv_c_inline=$ac_kw 8610fi 8611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8612 test "$ac_cv_c_inline" != no && break 8613done 8614 8615fi 8616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 8617$as_echo "$ac_cv_c_inline" >&6; } 8618 8619case $ac_cv_c_inline in 8620 inline | yes) ;; 8621 *) 8622 case $ac_cv_c_inline in 8623 no) ac_val=;; 8624 *) ac_val=$ac_cv_c_inline;; 8625 esac 8626 cat >>confdefs.h <<_ACEOF 8627#ifndef __cplusplus 8628#define inline $ac_val 8629#endif 8630_ACEOF 8631 ;; 8632esac 8633 8634ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8635if test "x$ac_cv_type_pid_t" = xyes; then : 8636 8637else 8638 8639cat >>confdefs.h <<_ACEOF 8640@%:@define pid_t int 8641_ACEOF 8642 8643fi 8644 8645ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8646if test "x$ac_cv_type_size_t" = xyes; then : 8647 8648else 8649 8650cat >>confdefs.h <<_ACEOF 8651@%:@define size_t unsigned int 8652_ACEOF 8653 8654fi 8655 8656ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 8657if test "x$ac_cv_type_ssize_t" = xyes; then : 8658 8659else 8660 8661cat >>confdefs.h <<_ACEOF 8662@%:@define ssize_t int 8663_ACEOF 8664 8665fi 8666 8667# These conflict with netinet/in.h typedefs. 8668#AC_TYPE_UINT16_T 8669#AC_TYPE_UINT32_T 8670#AC_TYPE_UINT8_T 8671 8672# ==================== checks for library functions ===================== 8673 8674for ac_header in vfork.h 8675do : 8676 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 8677if test "x$ac_cv_header_vfork_h" = xyes; then : 8678 cat >>confdefs.h <<_ACEOF 8679@%:@define HAVE_VFORK_H 1 8680_ACEOF 8681 8682fi 8683 8684done 8685 8686for ac_func in fork vfork 8687do : 8688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8689ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8690if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8691 cat >>confdefs.h <<_ACEOF 8692@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8693_ACEOF 8694 8695fi 8696done 8697 8698if test "x$ac_cv_func_fork" = xyes; then 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 8700$as_echo_n "checking for working fork... " >&6; } 8701if ${ac_cv_func_fork_works+:} false; then : 8702 $as_echo_n "(cached) " >&6 8703else 8704 if test "$cross_compiling" = yes; then : 8705 ac_cv_func_fork_works=cross 8706else 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708/* end confdefs.h. */ 8709$ac_includes_default 8710int 8711main () 8712{ 8713 8714 /* By Ruediger Kuhlmann. */ 8715 return fork () < 0; 8716 8717 ; 8718 return 0; 8719} 8720_ACEOF 8721if ac_fn_c_try_run "$LINENO"; then : 8722 ac_cv_func_fork_works=yes 8723else 8724 ac_cv_func_fork_works=no 8725fi 8726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8727 conftest.$ac_objext conftest.beam conftest.$ac_ext 8728fi 8729 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 8732$as_echo "$ac_cv_func_fork_works" >&6; } 8733 8734else 8735 ac_cv_func_fork_works=$ac_cv_func_fork 8736fi 8737if test "x$ac_cv_func_fork_works" = xcross; then 8738 case $host in 8739 *-*-amigaos* | *-*-msdosdjgpp*) 8740 # Override, as these systems have only a dummy fork() stub 8741 ac_cv_func_fork_works=no 8742 ;; 8743 *) 8744 ac_cv_func_fork_works=yes 8745 ;; 8746 esac 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8748$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8749fi 8750ac_cv_func_vfork_works=$ac_cv_func_vfork 8751if test "x$ac_cv_func_vfork" = xyes; then 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8753$as_echo_n "checking for working vfork... " >&6; } 8754if ${ac_cv_func_vfork_works+:} false; then : 8755 $as_echo_n "(cached) " >&6 8756else 8757 if test "$cross_compiling" = yes; then : 8758 ac_cv_func_vfork_works=cross 8759else 8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8761/* end confdefs.h. */ 8762/* Thanks to Paul Eggert for this test. */ 8763$ac_includes_default 8764#include <sys/wait.h> 8765#ifdef HAVE_VFORK_H 8766# include <vfork.h> 8767#endif 8768/* On some sparc systems, changes by the child to local and incoming 8769 argument registers are propagated back to the parent. The compiler 8770 is told about this with #include <vfork.h>, but some compilers 8771 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8772 static variable whose address is put into a register that is 8773 clobbered by the vfork. */ 8774static void 8775#ifdef __cplusplus 8776sparc_address_test (int arg) 8777# else 8778sparc_address_test (arg) int arg; 8779#endif 8780{ 8781 static pid_t child; 8782 if (!child) { 8783 child = vfork (); 8784 if (child < 0) { 8785 perror ("vfork"); 8786 _exit(2); 8787 } 8788 if (!child) { 8789 arg = getpid(); 8790 write(-1, "", 0); 8791 _exit (arg); 8792 } 8793 } 8794} 8795 8796int 8797main () 8798{ 8799 pid_t parent = getpid (); 8800 pid_t child; 8801 8802 sparc_address_test (0); 8803 8804 child = vfork (); 8805 8806 if (child == 0) { 8807 /* Here is another test for sparc vfork register problems. This 8808 test uses lots of local variables, at least as many local 8809 variables as main has allocated so far including compiler 8810 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8811 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8812 reuse the register of parent for one of the local variables, 8813 since it will think that parent can't possibly be used any more 8814 in this routine. Assigning to the local variable will thus 8815 munge parent in the parent process. */ 8816 pid_t 8817 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8818 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8819 /* Convince the compiler that p..p7 are live; otherwise, it might 8820 use the same hardware register for all 8 local variables. */ 8821 if (p != p1 || p != p2 || p != p3 || p != p4 8822 || p != p5 || p != p6 || p != p7) 8823 _exit(1); 8824 8825 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8826 from child file descriptors. If the child closes a descriptor 8827 before it execs or exits, this munges the parent's descriptor 8828 as well. Test for this by closing stdout in the child. */ 8829 _exit(close(fileno(stdout)) != 0); 8830 } else { 8831 int status; 8832 struct stat st; 8833 8834 while (wait(&status) != child) 8835 ; 8836 return ( 8837 /* Was there some problem with vforking? */ 8838 child < 0 8839 8840 /* Did the child fail? (This shouldn't happen.) */ 8841 || status 8842 8843 /* Did the vfork/compiler bug occur? */ 8844 || parent != getpid() 8845 8846 /* Did the file descriptor bug occur? */ 8847 || fstat(fileno(stdout), &st) != 0 8848 ); 8849 } 8850} 8851_ACEOF 8852if ac_fn_c_try_run "$LINENO"; then : 8853 ac_cv_func_vfork_works=yes 8854else 8855 ac_cv_func_vfork_works=no 8856fi 8857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8858 conftest.$ac_objext conftest.beam conftest.$ac_ext 8859fi 8860 8861fi 8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 8863$as_echo "$ac_cv_func_vfork_works" >&6; } 8864 8865fi; 8866if test "x$ac_cv_func_fork_works" = xcross; then 8867 ac_cv_func_vfork_works=$ac_cv_func_vfork 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8869$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8870fi 8871 8872if test "x$ac_cv_func_vfork_works" = xyes; then 8873 8874$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h 8875 8876else 8877 8878$as_echo "@%:@define vfork fork" >>confdefs.h 8879 8880fi 8881if test "x$ac_cv_func_fork_works" = xyes; then 8882 8883$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h 8884 8885fi 8886 8887#AC_FUNC_MALLOC 8888#AC_FUNC_REALLOC 8889#AC_FUNC_STRTOD 8890for ac_func in alarm dup2 floor gethostname gettimeofday inet_ntoa memmove memset pow regcomp socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strrchr strstr strtol strtoul strtoull 8891do : 8892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8893ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8894if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8895 cat >>confdefs.h <<_ACEOF 8896@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8897_ACEOF 8898 8899fi 8900done 8901 8902 8903# ==================== check for clang/gmock workaround ================= 8904 8905# clang++ falls over the use of is_default_constructible, suggesting 8906# is_nothrow_constructible instead. 8907# 8908# ./gmock/include/gmock/gmock-actions.h:107:19: error: no template named 8909# 'is_default_constructible' in namespace 'std'; did you mean 8910# 'is_nothrow_constructible'? 8911# T, ::std::is_default_constructible<T>::value>::Get(); 8912# ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 8913# is_nothrow_constructible 8914# /usr/include/c++/4.6/type_traits:705:12: note: 8915# 'is_nothrow_constructible' declared here 8916# 8917 8918 ac_ext=cpp 8919ac_cpp='$CXXCPP $CPPFLAGS' 8920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8923 ac_success=no 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports is_default_constructible (used by gmock)" >&5 8925$as_echo_n "checking whether $CXX supports is_default_constructible (used by gmock)... " >&6; } 8926if ${ax_cv_cxx_has_is_default_constructible+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931 8932#include <type_traits> 8933template <class T> 8934void test_is_default_constructible() { 8935 static_assert(std::is_default_constructible<T>::value, ""); 8936} 8937int main() { 8938 test_is_default_constructible<int>(); 8939 return 0; 8940} 8941 8942_ACEOF 8943if ac_fn_cxx_try_compile "$LINENO"; then : 8944 ax_cv_cxx_has_is_default_constructible=yes 8945else 8946 ax_cv_cxx_has_is_default_constructible=no 8947fi 8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8949fi 8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_has_is_default_constructible" >&5 8951$as_echo "$ax_cv_cxx_has_is_default_constructible" >&6; } 8952 if test x$ax_cv_cxx_has_is_default_constructible = xno; then 8953 CPPFLAGS="$CPPFLAGS -Dis_default_constructible=is_nothrow_constructible" 8954 fi 8955 ac_ext=c 8956ac_cpp='$CPP $CPPFLAGS' 8957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8959ac_compiler_gnu=$ac_cv_c_compiler_gnu 8960 8961 8962 8963# ==================== generate files =================================== 8964 8965ac_config_files="$ac_config_files Makefile" 8966 8967cat >confcache <<\_ACEOF 8968# This file is a shell script that caches the results of configure 8969# tests run on this system so they can be shared between configure 8970# scripts and configure runs, see configure's option --config-cache. 8971# It is not useful on other systems. If it contains results you don't 8972# want to keep, you may remove or edit it. 8973# 8974# config.status only pays attention to the cache file if you give it 8975# the --recheck option to rerun configure. 8976# 8977# `ac_cv_env_foo' variables (set or unset) will be overridden when 8978# loading this file, other *unset* `ac_cv_foo' will be assigned the 8979# following values. 8980 8981_ACEOF 8982 8983# The following way of writing the cache mishandles newlines in values, 8984# but we know of no workaround that is simple, portable, and efficient. 8985# So, we kill variables containing newlines. 8986# Ultrix sh set writes to stderr and can't be redirected directly, 8987# and sets the high bit in the cache file unless we assign to the vars. 8988( 8989 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8990 eval ac_val=\$$ac_var 8991 case $ac_val in #( 8992 *${as_nl}*) 8993 case $ac_var in #( 8994 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8995$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8996 esac 8997 case $ac_var in #( 8998 _ | IFS | as_nl) ;; #( 8999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9000 *) { eval $ac_var=; unset $ac_var;} ;; 9001 esac ;; 9002 esac 9003 done 9004 9005 (set) 2>&1 | 9006 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9007 *${as_nl}ac_space=\ *) 9008 # `set' does not quote correctly, so add quotes: double-quote 9009 # substitution turns \\\\ into \\, and sed turns \\ into \. 9010 sed -n \ 9011 "s/'/'\\\\''/g; 9012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9013 ;; #( 9014 *) 9015 # `set' quotes correctly as required by POSIX, so do not add quotes. 9016 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9017 ;; 9018 esac | 9019 sort 9020) | 9021 sed ' 9022 /^ac_cv_env_/b end 9023 t clear 9024 :clear 9025 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9026 t end 9027 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9028 :end' >>confcache 9029if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9030 if test -w "$cache_file"; then 9031 if test "x$cache_file" != "x/dev/null"; then 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9033$as_echo "$as_me: updating cache $cache_file" >&6;} 9034 if test ! -f "$cache_file" || test -h "$cache_file"; then 9035 cat confcache >"$cache_file" 9036 else 9037 case $cache_file in #( 9038 */* | ?:*) 9039 mv -f confcache "$cache_file"$$ && 9040 mv -f "$cache_file"$$ "$cache_file" ;; #( 9041 *) 9042 mv -f confcache "$cache_file" ;; 9043 esac 9044 fi 9045 fi 9046 else 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9048$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9049 fi 9050fi 9051rm -f confcache 9052 9053test "x$prefix" = xNONE && prefix=$ac_default_prefix 9054# Let make expand exec_prefix. 9055test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9056 9057DEFS=-DHAVE_CONFIG_H 9058 9059ac_libobjs= 9060ac_ltlibobjs= 9061U= 9062for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 9063 # 1. Remove the extension, and $U if already installed. 9064 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9065 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9066 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9067 # will be set to the directory where LIBOBJS objects are built. 9068 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9069 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9070done 9071LIB@&t@OBJS=$ac_libobjs 9072 9073LTLIBOBJS=$ac_ltlibobjs 9074 9075 9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 9077$as_echo_n "checking that generated files are newer than configure... " >&6; } 9078 if test -n "$am_sleep_pid"; then 9079 # Hide warnings about reused PIDs. 9080 wait $am_sleep_pid 2>/dev/null 9081 fi 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 9083$as_echo "done" >&6; } 9084 if test -n "$EXEEXT"; then 9085 am__EXEEXT_TRUE= 9086 am__EXEEXT_FALSE='#' 9087else 9088 am__EXEEXT_TRUE='#' 9089 am__EXEEXT_FALSE= 9090fi 9091 9092if test -z "${HAVE_HELP2MAN_TRUE}" && test -z "${HAVE_HELP2MAN_FALSE}"; then 9093 as_fn_error $? "conditional \"HAVE_HELP2MAN\" was never defined. 9094Usually this means the macro was only invoked conditionally." "$LINENO" 5 9095fi 9096if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 9097 as_fn_error $? "conditional \"AMDEP\" was never defined. 9098Usually this means the macro was only invoked conditionally." "$LINENO" 5 9099fi 9100if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 9101 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 9102Usually this means the macro was only invoked conditionally." "$LINENO" 5 9103fi 9104if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 9105 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 9106Usually this means the macro was only invoked conditionally." "$LINENO" 5 9107fi 9108if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then 9109 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined. 9110Usually this means the macro was only invoked conditionally." "$LINENO" 5 9111fi 9112if test -z "${HAVE_SCTP_TRUE}" && test -z "${HAVE_SCTP_FALSE}"; then 9113 as_fn_error $? "conditional \"HAVE_SCTP\" was never defined. 9114Usually this means the macro was only invoked conditionally." "$LINENO" 5 9115fi 9116if test -z "${HAVE_PCAP_TRUE}" && test -z "${HAVE_PCAP_FALSE}"; then 9117 as_fn_error $? "conditional \"HAVE_PCAP\" was never defined. 9118Usually this means the macro was only invoked conditionally." "$LINENO" 5 9119fi 9120if test -z "${HAVE_RTP_TRUE}" && test -z "${HAVE_RTP_FALSE}"; then 9121 as_fn_error $? "conditional \"HAVE_RTP\" was never defined. 9122Usually this means the macro was only invoked conditionally." "$LINENO" 5 9123fi 9124if test -z "${HAVE_GSL_TRUE}" && test -z "${HAVE_GSL_FALSE}"; then 9125 as_fn_error $? "conditional \"HAVE_GSL\" was never defined. 9126Usually this means the macro was only invoked conditionally." "$LINENO" 5 9127fi 9128if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then 9129 as_fn_error $? "conditional \"HAVE_EPOLL\" was never defined. 9130Usually this means the macro was only invoked conditionally." "$LINENO" 5 9131fi 9132 9133: "${CONFIG_STATUS=./config.status}" 9134ac_write_fail=0 9135ac_clean_files_save=$ac_clean_files 9136ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9137{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9138$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9139as_write_fail=0 9140cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9141#! $SHELL 9142# Generated by $as_me. 9143# Run this file to recreate the current configuration. 9144# Compiler output produced by configure, useful for debugging 9145# configure, is in config.log if it exists. 9146 9147debug=false 9148ac_cs_recheck=false 9149ac_cs_silent=false 9150 9151SHELL=\${CONFIG_SHELL-$SHELL} 9152export SHELL 9153_ASEOF 9154cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9155## -------------------- ## 9156## M4sh Initialization. ## 9157## -------------------- ## 9158 9159# Be more Bourne compatible 9160DUALCASE=1; export DUALCASE # for MKS sh 9161if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9162 emulate sh 9163 NULLCMD=: 9164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9165 # is contrary to our usage. Disable this feature. 9166 alias -g '${1+"$@"}'='"$@"' 9167 setopt NO_GLOB_SUBST 9168else 9169 case `(set -o) 2>/dev/null` in @%:@( 9170 *posix*) : 9171 set -o posix ;; @%:@( 9172 *) : 9173 ;; 9174esac 9175fi 9176 9177 9178as_nl=' 9179' 9180export as_nl 9181# Printing a long string crashes Solaris 7 /usr/bin/printf. 9182as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9184as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9185# Prefer a ksh shell builtin over an external printf program on Solaris, 9186# but without wasting forks for bash or zsh. 9187if test -z "$BASH_VERSION$ZSH_VERSION" \ 9188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9189 as_echo='print -r --' 9190 as_echo_n='print -rn --' 9191elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9192 as_echo='printf %s\n' 9193 as_echo_n='printf %s' 9194else 9195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9197 as_echo_n='/usr/ucb/echo -n' 9198 else 9199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9200 as_echo_n_body='eval 9201 arg=$1; 9202 case $arg in @%:@( 9203 *"$as_nl"*) 9204 expr "X$arg" : "X\\(.*\\)$as_nl"; 9205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9206 esac; 9207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9208 ' 9209 export as_echo_n_body 9210 as_echo_n='sh -c $as_echo_n_body as_echo' 9211 fi 9212 export as_echo_body 9213 as_echo='sh -c $as_echo_body as_echo' 9214fi 9215 9216# The user is always right. 9217if test "${PATH_SEPARATOR+set}" != set; then 9218 PATH_SEPARATOR=: 9219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9221 PATH_SEPARATOR=';' 9222 } 9223fi 9224 9225 9226# IFS 9227# We need space, tab and new line, in precisely that order. Quoting is 9228# there to prevent editors from complaining about space-tab. 9229# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9230# splitting by setting IFS to empty value.) 9231IFS=" "" $as_nl" 9232 9233# Find who we are. Look in the path if we contain no directory separator. 9234as_myself= 9235case $0 in @%:@(( 9236 *[\\/]* ) as_myself=$0 ;; 9237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9238for as_dir in $PATH 9239do 9240 IFS=$as_save_IFS 9241 test -z "$as_dir" && as_dir=. 9242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9243 done 9244IFS=$as_save_IFS 9245 9246 ;; 9247esac 9248# We did not find ourselves, most probably we were run as `sh COMMAND' 9249# in which case we are not to be found in the path. 9250if test "x$as_myself" = x; then 9251 as_myself=$0 9252fi 9253if test ! -f "$as_myself"; then 9254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9255 exit 1 9256fi 9257 9258# Unset variables that we do not need and which cause bugs (e.g. in 9259# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9260# suppresses any "Segmentation fault" message there. '((' could 9261# trigger a bug in pdksh 5.2.14. 9262for as_var in BASH_ENV ENV MAIL MAILPATH 9263do eval test x\${$as_var+set} = xset \ 9264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9265done 9266PS1='$ ' 9267PS2='> ' 9268PS4='+ ' 9269 9270# NLS nuisances. 9271LC_ALL=C 9272export LC_ALL 9273LANGUAGE=C 9274export LANGUAGE 9275 9276# CDPATH. 9277(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9278 9279 9280@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 9281@%:@ ---------------------------------------- 9282@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9283@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9284@%:@ script with STATUS, using 1 if that was 0. 9285as_fn_error () 9286{ 9287 as_status=$1; test $as_status -eq 0 && as_status=1 9288 if test "$4"; then 9289 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9291 fi 9292 $as_echo "$as_me: error: $2" >&2 9293 as_fn_exit $as_status 9294} @%:@ as_fn_error 9295 9296 9297@%:@ as_fn_set_status STATUS 9298@%:@ ----------------------- 9299@%:@ Set @S|@? to STATUS, without forking. 9300as_fn_set_status () 9301{ 9302 return $1 9303} @%:@ as_fn_set_status 9304 9305@%:@ as_fn_exit STATUS 9306@%:@ ----------------- 9307@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9308as_fn_exit () 9309{ 9310 set +e 9311 as_fn_set_status $1 9312 exit $1 9313} @%:@ as_fn_exit 9314 9315@%:@ as_fn_unset VAR 9316@%:@ --------------- 9317@%:@ Portably unset VAR. 9318as_fn_unset () 9319{ 9320 { eval $1=; unset $1;} 9321} 9322as_unset=as_fn_unset 9323@%:@ as_fn_append VAR VALUE 9324@%:@ ---------------------- 9325@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 9326@%:@ advantage of any shell optimizations that allow amortized linear growth over 9327@%:@ repeated appends, instead of the typical quadratic growth present in naive 9328@%:@ implementations. 9329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9330 eval 'as_fn_append () 9331 { 9332 eval $1+=\$2 9333 }' 9334else 9335 as_fn_append () 9336 { 9337 eval $1=\$$1\$2 9338 } 9339fi # as_fn_append 9340 9341@%:@ as_fn_arith ARG... 9342@%:@ ------------------ 9343@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 9344@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 9345@%:@ must be portable across @S|@(()) and expr. 9346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9347 eval 'as_fn_arith () 9348 { 9349 as_val=$(( $* )) 9350 }' 9351else 9352 as_fn_arith () 9353 { 9354 as_val=`expr "$@" || test $? -eq 1` 9355 } 9356fi # as_fn_arith 9357 9358 9359if expr a : '\(a\)' >/dev/null 2>&1 && 9360 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9361 as_expr=expr 9362else 9363 as_expr=false 9364fi 9365 9366if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9367 as_basename=basename 9368else 9369 as_basename=false 9370fi 9371 9372if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9373 as_dirname=dirname 9374else 9375 as_dirname=false 9376fi 9377 9378as_me=`$as_basename -- "$0" || 9379$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9380 X"$0" : 'X\(//\)$' \| \ 9381 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9382$as_echo X/"$0" | 9383 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9384 s//\1/ 9385 q 9386 } 9387 /^X\/\(\/\/\)$/{ 9388 s//\1/ 9389 q 9390 } 9391 /^X\/\(\/\).*/{ 9392 s//\1/ 9393 q 9394 } 9395 s/.*/./; q'` 9396 9397# Avoid depending upon Character Ranges. 9398as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9400as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9401as_cr_digits='0123456789' 9402as_cr_alnum=$as_cr_Letters$as_cr_digits 9403 9404ECHO_C= ECHO_N= ECHO_T= 9405case `echo -n x` in @%:@((((( 9406-n*) 9407 case `echo 'xy\c'` in 9408 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9409 xy) ECHO_C='\c';; 9410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9411 ECHO_T=' ';; 9412 esac;; 9413*) 9414 ECHO_N='-n';; 9415esac 9416 9417rm -f conf$$ conf$$.exe conf$$.file 9418if test -d conf$$.dir; then 9419 rm -f conf$$.dir/conf$$.file 9420else 9421 rm -f conf$$.dir 9422 mkdir conf$$.dir 2>/dev/null 9423fi 9424if (echo >conf$$.file) 2>/dev/null; then 9425 if ln -s conf$$.file conf$$ 2>/dev/null; then 9426 as_ln_s='ln -s' 9427 # ... but there are two gotchas: 9428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9430 # In both cases, we have to default to `cp -pR'. 9431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9432 as_ln_s='cp -pR' 9433 elif ln conf$$.file conf$$ 2>/dev/null; then 9434 as_ln_s=ln 9435 else 9436 as_ln_s='cp -pR' 9437 fi 9438else 9439 as_ln_s='cp -pR' 9440fi 9441rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9442rmdir conf$$.dir 2>/dev/null 9443 9444 9445@%:@ as_fn_mkdir_p 9446@%:@ ------------- 9447@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 9448as_fn_mkdir_p () 9449{ 9450 9451 case $as_dir in #( 9452 -*) as_dir=./$as_dir;; 9453 esac 9454 test -d "$as_dir" || eval $as_mkdir_p || { 9455 as_dirs= 9456 while :; do 9457 case $as_dir in #( 9458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9459 *) as_qdir=$as_dir;; 9460 esac 9461 as_dirs="'$as_qdir' $as_dirs" 9462 as_dir=`$as_dirname -- "$as_dir" || 9463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9464 X"$as_dir" : 'X\(//\)[^/]' \| \ 9465 X"$as_dir" : 'X\(//\)$' \| \ 9466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9467$as_echo X"$as_dir" | 9468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9469 s//\1/ 9470 q 9471 } 9472 /^X\(\/\/\)[^/].*/{ 9473 s//\1/ 9474 q 9475 } 9476 /^X\(\/\/\)$/{ 9477 s//\1/ 9478 q 9479 } 9480 /^X\(\/\).*/{ 9481 s//\1/ 9482 q 9483 } 9484 s/.*/./; q'` 9485 test -d "$as_dir" && break 9486 done 9487 test -z "$as_dirs" || eval "mkdir $as_dirs" 9488 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9489 9490 9491} @%:@ as_fn_mkdir_p 9492if mkdir -p . 2>/dev/null; then 9493 as_mkdir_p='mkdir -p "$as_dir"' 9494else 9495 test -d ./-p && rmdir ./-p 9496 as_mkdir_p=false 9497fi 9498 9499 9500@%:@ as_fn_executable_p FILE 9501@%:@ ----------------------- 9502@%:@ Test if FILE is an executable regular file. 9503as_fn_executable_p () 9504{ 9505 test -f "$1" && test -x "$1" 9506} @%:@ as_fn_executable_p 9507as_test_x='test -x' 9508as_executable_p=as_fn_executable_p 9509 9510# Sed expression to map a string onto a valid CPP name. 9511as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9512 9513# Sed expression to map a string onto a valid variable name. 9514as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9515 9516 9517exec 6>&1 9518## ----------------------------------- ## 9519## Main body of $CONFIG_STATUS script. ## 9520## ----------------------------------- ## 9521_ASEOF 9522test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9523 9524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9525# Save the log message, to keep $0 and so on meaningful, and to 9526# report actual input values of CONFIG_FILES etc. instead of their 9527# values after options handling. 9528ac_log=" 9529This file was extended by SIPp $as_me see-include/version.h, which was 9530generated by GNU Autoconf 2.69. Invocation command line was 9531 9532 CONFIG_FILES = $CONFIG_FILES 9533 CONFIG_HEADERS = $CONFIG_HEADERS 9534 CONFIG_LINKS = $CONFIG_LINKS 9535 CONFIG_COMMANDS = $CONFIG_COMMANDS 9536 $ $0 $@ 9537 9538on `(hostname || uname -n) 2>/dev/null | sed 1q` 9539" 9540 9541_ACEOF 9542 9543case $ac_config_files in *" 9544"*) set x $ac_config_files; shift; ac_config_files=$*;; 9545esac 9546 9547case $ac_config_headers in *" 9548"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 9549esac 9550 9551 9552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9553# Files that config.status was made for. 9554config_files="$ac_config_files" 9555config_headers="$ac_config_headers" 9556config_commands="$ac_config_commands" 9557 9558_ACEOF 9559 9560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9561ac_cs_usage="\ 9562\`$as_me' instantiates files and other configuration actions 9563from templates according to the current configuration. Unless the files 9564and actions are specified as TAGs, all are instantiated by default. 9565 9566Usage: $0 [OPTION]... [TAG]... 9567 9568 -h, --help print this help, then exit 9569 -V, --version print version number and configuration settings, then exit 9570 --config print configuration, then exit 9571 -q, --quiet, --silent 9572 do not print progress messages 9573 -d, --debug don't remove temporary files 9574 --recheck update $as_me by reconfiguring in the same conditions 9575 --file=FILE[:TEMPLATE] 9576 instantiate the configuration file FILE 9577 --header=FILE[:TEMPLATE] 9578 instantiate the configuration header FILE 9579 9580Configuration files: 9581$config_files 9582 9583Configuration headers: 9584$config_headers 9585 9586Configuration commands: 9587$config_commands 9588 9589Report bugs to <sipp-users@lists.sourceforge.net>." 9590 9591_ACEOF 9592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9593ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9594ac_cs_version="\\ 9595SIPp config.status see-include/version.h 9596configured by $0, generated by GNU Autoconf 2.69, 9597 with options \\"\$ac_cs_config\\" 9598 9599Copyright (C) 2012 Free Software Foundation, Inc. 9600This config.status script is free software; the Free Software Foundation 9601gives unlimited permission to copy, distribute and modify it." 9602 9603ac_pwd='$ac_pwd' 9604srcdir='$srcdir' 9605INSTALL='$INSTALL' 9606MKDIR_P='$MKDIR_P' 9607AWK='$AWK' 9608test -n "\$AWK" || AWK=awk 9609_ACEOF 9610 9611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9612# The default lists apply if the user does not specify any file. 9613ac_need_defaults=: 9614while test $# != 0 9615do 9616 case $1 in 9617 --*=?*) 9618 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9619 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9620 ac_shift=: 9621 ;; 9622 --*=) 9623 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9624 ac_optarg= 9625 ac_shift=: 9626 ;; 9627 *) 9628 ac_option=$1 9629 ac_optarg=$2 9630 ac_shift=shift 9631 ;; 9632 esac 9633 9634 case $ac_option in 9635 # Handling of the options. 9636 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9637 ac_cs_recheck=: ;; 9638 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9639 $as_echo "$ac_cs_version"; exit ;; 9640 --config | --confi | --conf | --con | --co | --c ) 9641 $as_echo "$ac_cs_config"; exit ;; 9642 --debug | --debu | --deb | --de | --d | -d ) 9643 debug=: ;; 9644 --file | --fil | --fi | --f ) 9645 $ac_shift 9646 case $ac_optarg in 9647 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9648 '') as_fn_error $? "missing file argument" ;; 9649 esac 9650 as_fn_append CONFIG_FILES " '$ac_optarg'" 9651 ac_need_defaults=false;; 9652 --header | --heade | --head | --hea ) 9653 $ac_shift 9654 case $ac_optarg in 9655 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9656 esac 9657 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 9658 ac_need_defaults=false;; 9659 --he | --h) 9660 # Conflict between --help and --header 9661 as_fn_error $? "ambiguous option: \`$1' 9662Try \`$0 --help' for more information.";; 9663 --help | --hel | -h ) 9664 $as_echo "$ac_cs_usage"; exit ;; 9665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9666 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9667 ac_cs_silent=: ;; 9668 9669 # This is an error. 9670 -*) as_fn_error $? "unrecognized option: \`$1' 9671Try \`$0 --help' for more information." ;; 9672 9673 *) as_fn_append ac_config_targets " $1" 9674 ac_need_defaults=false ;; 9675 9676 esac 9677 shift 9678done 9679 9680ac_configure_extra_args= 9681 9682if $ac_cs_silent; then 9683 exec 6>/dev/null 9684 ac_configure_extra_args="$ac_configure_extra_args --silent" 9685fi 9686 9687_ACEOF 9688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9689if \$ac_cs_recheck; then 9690 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9691 shift 9692 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9693 CONFIG_SHELL='$SHELL' 9694 export CONFIG_SHELL 9695 exec "\$@" 9696fi 9697 9698_ACEOF 9699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9700exec 5>>config.log 9701{ 9702 echo 9703 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 9704@%:@@%:@ Running $as_me. @%:@@%:@ 9705_ASBOX 9706 $as_echo "$ac_log" 9707} >&5 9708 9709_ACEOF 9710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9711# 9712# INIT-COMMANDS 9713# 9714AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 9715 9716_ACEOF 9717 9718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9719 9720# Handling of arguments. 9721for ac_config_target in $ac_config_targets 9722do 9723 case $ac_config_target in 9724 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 9725 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 9726 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9727 9728 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9729 esac 9730done 9731 9732 9733# If the user did not use the arguments to specify the items to instantiate, 9734# then the envvar interface is used. Set only those that are not. 9735# We use the long form for the default assignment because of an extremely 9736# bizarre bug on SunOS 4.1.3. 9737if $ac_need_defaults; then 9738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9741fi 9742 9743# Have a temporary directory for convenience. Make it in the build tree 9744# simply because there is no reason against having it here, and in addition, 9745# creating and moving files from /tmp can sometimes cause problems. 9746# Hook for its removal unless debugging. 9747# Note that there is a small window in which the directory will not be cleaned: 9748# after its creation but before its name has been assigned to `$tmp'. 9749$debug || 9750{ 9751 tmp= ac_tmp= 9752 trap 'exit_status=$? 9753 : "${ac_tmp:=$tmp}" 9754 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 9755' 0 9756 trap 'as_fn_exit 1' 1 2 13 15 9757} 9758# Create a (secure) tmp directory for tmp files. 9759 9760{ 9761 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9762 test -d "$tmp" 9763} || 9764{ 9765 tmp=./conf$$-$RANDOM 9766 (umask 077 && mkdir "$tmp") 9767} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9768ac_tmp=$tmp 9769 9770# Set up the scripts for CONFIG_FILES section. 9771# No need to generate them if there are no CONFIG_FILES. 9772# This happens for instance with `./config.status config.h'. 9773if test -n "$CONFIG_FILES"; then 9774 9775if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 9776 ac_cs_awk_getline=: 9777 ac_cs_awk_pipe_init= 9778 ac_cs_awk_read_file=' 9779 while ((getline aline < (F[key])) > 0) 9780 print(aline) 9781 close(F[key])' 9782 ac_cs_awk_pipe_fini= 9783else 9784 ac_cs_awk_getline=false 9785 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 9786 ac_cs_awk_read_file=' 9787 print "|#_!!_#|" 9788 print "cat " F[key] " &&" 9789 '$ac_cs_awk_pipe_init 9790 # The final `:' finishes the AND list. 9791 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 9792fi 9793ac_cr=`echo X | tr X '\015'` 9794# On cygwin, bash can eat \r inside `` if the user requested igncr. 9795# But we know of no other shell where ac_cr would be empty at this 9796# point, so we can use a bashism as a fallback. 9797if test "x$ac_cr" = x; then 9798 eval ac_cr=\$\'\\r\' 9799fi 9800ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9801if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9802 ac_cs_awk_cr='\\r' 9803else 9804 ac_cs_awk_cr=$ac_cr 9805fi 9806 9807echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 9808_ACEOF 9809 9810# Create commands to substitute file output variables. 9811{ 9812 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 9813 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 9814 echo "$ac_subst_files" | sed 's/.*/F@<:@"&"@:>@="$&"/' && 9815 echo "_ACAWK" && 9816 echo "_ACEOF" 9817} >conf$$files.sh && 9818. ./conf$$files.sh || 9819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9820rm -f conf$$files.sh 9821 9822{ 9823 echo "cat >conf$$subs.awk <<_ACEOF" && 9824 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9825 echo "_ACEOF" 9826} >conf$$subs.sh || 9827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9828ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9829ac_delim='%!_!# ' 9830for ac_last_try in false false false false false :; do 9831 . ./conf$$subs.sh || 9832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9833 9834 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9835 if test $ac_delim_n = $ac_delim_num; then 9836 break 9837 elif $ac_last_try; then 9838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9839 else 9840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9841 fi 9842done 9843rm -f conf$$subs.sh 9844 9845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9846cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9847_ACEOF 9848sed -n ' 9849h 9850s/^/S["/; s/!.*/"]=/ 9851p 9852g 9853s/^[^!]*!// 9854:repl 9855t repl 9856s/'"$ac_delim"'$// 9857t delim 9858:nl 9859h 9860s/\(.\{148\}\)..*/\1/ 9861t more1 9862s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9863p 9864n 9865b repl 9866:more1 9867s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9868p 9869g 9870s/.\{148\}// 9871t nl 9872:delim 9873h 9874s/\(.\{148\}\)..*/\1/ 9875t more2 9876s/["\\]/\\&/g; s/^/"/; s/$/"/ 9877p 9878b 9879:more2 9880s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9881p 9882g 9883s/.\{148\}// 9884t delim 9885' <conf$$subs.awk | sed ' 9886/^[^""]/{ 9887 N 9888 s/\n// 9889} 9890' >>$CONFIG_STATUS || ac_write_fail=1 9891rm -f conf$$subs.awk 9892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9893_ACAWK 9894cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9895 for (key in S) S_is_set[key] = 1 9896 FS = "" 9897 \$ac_cs_awk_pipe_init 9898} 9899{ 9900 line = $ 0 9901 nfields = split(line, field, "@") 9902 substed = 0 9903 len = length(field[1]) 9904 for (i = 2; i < nfields; i++) { 9905 key = field[i] 9906 keylen = length(key) 9907 if (S_is_set[key]) { 9908 value = S[key] 9909 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9910 len += length(value) + length(field[++i]) 9911 substed = 1 9912 } else 9913 len += 1 + keylen 9914 } 9915 if (nfields == 3 && !substed) { 9916 key = field[2] 9917 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 9918 \$ac_cs_awk_read_file 9919 next 9920 } 9921 } 9922 print line 9923} 9924\$ac_cs_awk_pipe_fini 9925_ACAWK 9926_ACEOF 9927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9928if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9929 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9930else 9931 cat 9932fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9933 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9934_ACEOF 9935 9936# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9937# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9938# trailing colons and then remove the whole line if VPATH becomes empty 9939# (actually we leave an empty line to preserve line numbers). 9940if test "x$srcdir" = x.; then 9941 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9942h 9943s/// 9944s/^/:/ 9945s/[ ]*$/:/ 9946s/:\$(srcdir):/:/g 9947s/:\${srcdir}:/:/g 9948s/:@srcdir@:/:/g 9949s/^:*// 9950s/:*$// 9951x 9952s/\(=[ ]*\).*/\1/ 9953G 9954s/\n// 9955s/^[^=]*=[ ]*$// 9956}' 9957fi 9958 9959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9960fi # test -n "$CONFIG_FILES" 9961 9962# Set up the scripts for CONFIG_HEADERS section. 9963# No need to generate them if there are no CONFIG_HEADERS. 9964# This happens for instance with `./config.status Makefile'. 9965if test -n "$CONFIG_HEADERS"; then 9966cat >"$ac_tmp/defines.awk" <<\_ACAWK || 9967BEGIN { 9968_ACEOF 9969 9970# Transform confdefs.h into an awk script `defines.awk', embedded as 9971# here-document in config.status, that substitutes the proper values into 9972# config.h.in to produce config.h. 9973 9974# Create a delimiter string that does not exist in confdefs.h, to ease 9975# handling of long lines. 9976ac_delim='%!_!# ' 9977for ac_last_try in false false :; do 9978 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 9979 if test -z "$ac_tt"; then 9980 break 9981 elif $ac_last_try; then 9982 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 9983 else 9984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9985 fi 9986done 9987 9988# For the awk script, D is an array of macro values keyed by name, 9989# likewise P contains macro parameters if any. Preserve backslash 9990# newline sequences. 9991 9992ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9993sed -n ' 9994s/.\{148\}/&'"$ac_delim"'/g 9995t rset 9996:rset 9997s/^[ ]*#[ ]*define[ ][ ]*/ / 9998t def 9999d 10000:def 10001s/\\$// 10002t bsnl 10003s/["\\]/\\&/g 10004s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10005D["\1"]=" \3"/p 10006s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10007d 10008:bsnl 10009s/["\\]/\\&/g 10010s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10011D["\1"]=" \3\\\\\\n"\\/p 10012t cont 10013s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10014t cont 10015d 10016:cont 10017n 10018s/.\{148\}/&'"$ac_delim"'/g 10019t clear 10020:clear 10021s/\\$// 10022t bsnlc 10023s/["\\]/\\&/g; s/^/"/; s/$/"/p 10024d 10025:bsnlc 10026s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10027b cont 10028' <confdefs.h | sed ' 10029s/'"$ac_delim"'/"\\\ 10030"/g' >>$CONFIG_STATUS || ac_write_fail=1 10031 10032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10033 for (key in D) D_is_set[key] = 1 10034 FS = "" 10035} 10036/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10037 line = \$ 0 10038 split(line, arg, " ") 10039 if (arg[1] == "#") { 10040 defundef = arg[2] 10041 mac1 = arg[3] 10042 } else { 10043 defundef = substr(arg[1], 2) 10044 mac1 = arg[2] 10045 } 10046 split(mac1, mac2, "(") #) 10047 macro = mac2[1] 10048 prefix = substr(line, 1, index(line, defundef) - 1) 10049 if (D_is_set[macro]) { 10050 # Preserve the white space surrounding the "#". 10051 print prefix "define", macro P[macro] D[macro] 10052 next 10053 } else { 10054 # Replace #undef with comments. This is necessary, for example, 10055 # in the case of _POSIX_SOURCE, which is predefined and required 10056 # on some systems where configure will not decide to define it. 10057 if (defundef == "undef") { 10058 print "/*", prefix defundef, macro, "*/" 10059 next 10060 } 10061 } 10062} 10063{ print } 10064_ACAWK 10065_ACEOF 10066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10067 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10068fi # test -n "$CONFIG_HEADERS" 10069 10070 10071eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10072shift 10073for ac_tag 10074do 10075 case $ac_tag in 10076 :[FHLC]) ac_mode=$ac_tag; continue;; 10077 esac 10078 case $ac_mode$ac_tag in 10079 :[FHL]*:*);; 10080 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10081 :[FH]-) ac_tag=-:-;; 10082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10083 esac 10084 ac_save_IFS=$IFS 10085 IFS=: 10086 set x $ac_tag 10087 IFS=$ac_save_IFS 10088 shift 10089 ac_file=$1 10090 shift 10091 10092 case $ac_mode in 10093 :L) ac_source=$1;; 10094 :[FH]) 10095 ac_file_inputs= 10096 for ac_f 10097 do 10098 case $ac_f in 10099 -) ac_f="$ac_tmp/stdin";; 10100 *) # Look for the file first in the build tree, then in the source tree 10101 # (if the path is not absolute). The absolute path cannot be DOS-style, 10102 # because $ac_f cannot contain `:'. 10103 test -f "$ac_f" || 10104 case $ac_f in 10105 [\\/$]*) false;; 10106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10107 esac || 10108 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10109 esac 10110 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10111 as_fn_append ac_file_inputs " '$ac_f'" 10112 done 10113 10114 # Let's still pretend it is `configure' which instantiates (i.e., don't 10115 # use $as_me), people would be surprised to read: 10116 # /* config.h. Generated by config.status. */ 10117 configure_input='Generated from '` 10118 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10119 `' by configure.' 10120 if test x"$ac_file" != x-; then 10121 configure_input="$ac_file. $configure_input" 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10123$as_echo "$as_me: creating $ac_file" >&6;} 10124 fi 10125 # Neutralize special characters interpreted by sed in replacement strings. 10126 case $configure_input in #( 10127 *\&* | *\|* | *\\* ) 10128 ac_sed_conf_input=`$as_echo "$configure_input" | 10129 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10130 *) ac_sed_conf_input=$configure_input;; 10131 esac 10132 10133 case $ac_tag in 10134 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10136 esac 10137 ;; 10138 esac 10139 10140 ac_dir=`$as_dirname -- "$ac_file" || 10141$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10142 X"$ac_file" : 'X\(//\)[^/]' \| \ 10143 X"$ac_file" : 'X\(//\)$' \| \ 10144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10145$as_echo X"$ac_file" | 10146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10147 s//\1/ 10148 q 10149 } 10150 /^X\(\/\/\)[^/].*/{ 10151 s//\1/ 10152 q 10153 } 10154 /^X\(\/\/\)$/{ 10155 s//\1/ 10156 q 10157 } 10158 /^X\(\/\).*/{ 10159 s//\1/ 10160 q 10161 } 10162 s/.*/./; q'` 10163 as_dir="$ac_dir"; as_fn_mkdir_p 10164 ac_builddir=. 10165 10166case "$ac_dir" in 10167.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10168*) 10169 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10170 # A ".." for each directory in $ac_dir_suffix. 10171 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10172 case $ac_top_builddir_sub in 10173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10175 esac ;; 10176esac 10177ac_abs_top_builddir=$ac_pwd 10178ac_abs_builddir=$ac_pwd$ac_dir_suffix 10179# for backward compatibility: 10180ac_top_builddir=$ac_top_build_prefix 10181 10182case $srcdir in 10183 .) # We are building in place. 10184 ac_srcdir=. 10185 ac_top_srcdir=$ac_top_builddir_sub 10186 ac_abs_top_srcdir=$ac_pwd ;; 10187 [\\/]* | ?:[\\/]* ) # Absolute name. 10188 ac_srcdir=$srcdir$ac_dir_suffix; 10189 ac_top_srcdir=$srcdir 10190 ac_abs_top_srcdir=$srcdir ;; 10191 *) # Relative name. 10192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10193 ac_top_srcdir=$ac_top_build_prefix$srcdir 10194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10195esac 10196ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10197 10198 10199 case $ac_mode in 10200 :F) 10201 # 10202 # CONFIG_FILE 10203 # 10204 10205 case $INSTALL in 10206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10207 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10208 esac 10209 ac_MKDIR_P=$MKDIR_P 10210 case $MKDIR_P in 10211 [\\/$]* | ?:[\\/]* ) ;; 10212 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 10213 esac 10214_ACEOF 10215 10216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10217# If the template does not know about datarootdir, expand it. 10218# FIXME: This hack should be removed a few years after 2.60. 10219ac_datarootdir_hack=; ac_datarootdir_seen= 10220ac_sed_dataroot=' 10221/datarootdir/ { 10222 p 10223 q 10224} 10225/@datadir@/p 10226/@docdir@/p 10227/@infodir@/p 10228/@localedir@/p 10229/@mandir@/p' 10230case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10231*datarootdir*) ac_datarootdir_seen=yes;; 10232*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10234$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10235_ACEOF 10236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10237 ac_datarootdir_hack=' 10238 s&@datadir@&$datadir&g 10239 s&@docdir@&$docdir&g 10240 s&@infodir@&$infodir&g 10241 s&@localedir@&$localedir&g 10242 s&@mandir@&$mandir&g 10243 s&\\\${datarootdir}&$datarootdir&g' ;; 10244esac 10245_ACEOF 10246 10247# Neutralize VPATH when `$srcdir' = `.'. 10248# Shell code in configure.ac might set extrasub. 10249# FIXME: do we really want to maintain this feature? 10250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10251ac_sed_extra="$ac_vpsub 10252$extrasub 10253_ACEOF 10254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10255:t 10256/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10257s|@configure_input@|$ac_sed_conf_input|;t t 10258s&@top_builddir@&$ac_top_builddir_sub&;t t 10259s&@top_build_prefix@&$ac_top_build_prefix&;t t 10260s&@srcdir@&$ac_srcdir&;t t 10261s&@abs_srcdir@&$ac_abs_srcdir&;t t 10262s&@top_srcdir@&$ac_top_srcdir&;t t 10263s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10264s&@builddir@&$ac_builddir&;t t 10265s&@abs_builddir@&$ac_abs_builddir&;t t 10266s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10267s&@INSTALL@&$ac_INSTALL&;t t 10268s&@MKDIR_P@&$ac_MKDIR_P&;t t 10269$ac_datarootdir_hack 10270" 10271eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 10272if $ac_cs_awk_getline; then 10273 $AWK -f "$ac_tmp/subs.awk" 10274else 10275 $AWK -f "$ac_tmp/subs.awk" | $SHELL 10276fi \ 10277 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10278 10279test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10280 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10282 "$ac_tmp/out"`; test -z "$ac_out"; } && 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10284which seems to be undefined. Please make sure it is defined" >&5 10285$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10286which seems to be undefined. Please make sure it is defined" >&2;} 10287 10288 rm -f "$ac_tmp/stdin" 10289 case $ac_file in 10290 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10291 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 10292 esac \ 10293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10294 ;; 10295 :H) 10296 # 10297 # CONFIG_HEADER 10298 # 10299 if test x"$ac_file" != x-; then 10300 { 10301 $as_echo "/* $configure_input */" \ 10302 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 10303 } >"$ac_tmp/config.h" \ 10304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10305 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 10306 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 10307$as_echo "$as_me: $ac_file is unchanged" >&6;} 10308 else 10309 rm -f "$ac_file" 10310 mv "$ac_tmp/config.h" "$ac_file" \ 10311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10312 fi 10313 else 10314 $as_echo "/* $configure_input */" \ 10315 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 10316 || as_fn_error $? "could not create -" "$LINENO" 5 10317 fi 10318# Compute "$ac_file"'s index in $config_headers. 10319_am_arg="$ac_file" 10320_am_stamp_count=1 10321for _am_header in $config_headers :; do 10322 case $_am_header in 10323 $_am_arg | $_am_arg:* ) 10324 break ;; 10325 * ) 10326 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 10327 esac 10328done 10329echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 10330$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10331 X"$_am_arg" : 'X\(//\)[^/]' \| \ 10332 X"$_am_arg" : 'X\(//\)$' \| \ 10333 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 10334$as_echo X"$_am_arg" | 10335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10336 s//\1/ 10337 q 10338 } 10339 /^X\(\/\/\)[^/].*/{ 10340 s//\1/ 10341 q 10342 } 10343 /^X\(\/\/\)$/{ 10344 s//\1/ 10345 q 10346 } 10347 /^X\(\/\).*/{ 10348 s//\1/ 10349 q 10350 } 10351 s/.*/./; q'`/stamp-h$_am_stamp_count 10352 ;; 10353 10354 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 10355$as_echo "$as_me: executing $ac_file commands" >&6;} 10356 ;; 10357 esac 10358 10359 10360 case $ac_file$ac_mode in 10361 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 10362 # Older Autoconf quotes --file arguments for eval, but not when files 10363 # are listed without --file. Let's play safe and only enable the eval 10364 # if we detect the quoting. 10365 case $CONFIG_FILES in 10366 *\'*) eval set x "$CONFIG_FILES" ;; 10367 *) set x $CONFIG_FILES ;; 10368 esac 10369 shift 10370 for mf 10371 do 10372 # Strip MF so we end up with the name of the file. 10373 mf=`echo "$mf" | sed -e 's/:.*$//'` 10374 # Check whether this is an Automake generated Makefile or not. 10375 # We used to match only the files named 'Makefile.in', but 10376 # some people rename them; so instead we look at the file content. 10377 # Grep'ing the first line is not enough: some people post-process 10378 # each Makefile.in and add a new line on top of each file to say so. 10379 # Grep'ing the whole file is not good either: AIX grep has a line 10380 # limit of 2048, but all sed's we know have understand at least 4000. 10381 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 10382 dirpart=`$as_dirname -- "$mf" || 10383$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10384 X"$mf" : 'X\(//\)[^/]' \| \ 10385 X"$mf" : 'X\(//\)$' \| \ 10386 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 10387$as_echo X"$mf" | 10388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10389 s//\1/ 10390 q 10391 } 10392 /^X\(\/\/\)[^/].*/{ 10393 s//\1/ 10394 q 10395 } 10396 /^X\(\/\/\)$/{ 10397 s//\1/ 10398 q 10399 } 10400 /^X\(\/\).*/{ 10401 s//\1/ 10402 q 10403 } 10404 s/.*/./; q'` 10405 else 10406 continue 10407 fi 10408 # Extract the definition of DEPDIR, am__include, and am__quote 10409 # from the Makefile without running 'make'. 10410 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 10411 test -z "$DEPDIR" && continue 10412 am__include=`sed -n 's/^am__include = //p' < "$mf"` 10413 test -z "$am__include" && continue 10414 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 10415 # Find all dependency output files, they are included files with 10416 # $(DEPDIR) in their names. We invoke sed twice because it is the 10417 # simplest approach to changing $(DEPDIR) to its actual value in the 10418 # expansion. 10419 for file in `sed -n " 10420 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 10421 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 10422 # Make sure the directory exists. 10423 test -f "$dirpart/$file" && continue 10424 fdir=`$as_dirname -- "$file" || 10425$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10426 X"$file" : 'X\(//\)[^/]' \| \ 10427 X"$file" : 'X\(//\)$' \| \ 10428 X"$file" : 'X\(/\)' \| . 2>/dev/null || 10429$as_echo X"$file" | 10430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10431 s//\1/ 10432 q 10433 } 10434 /^X\(\/\/\)[^/].*/{ 10435 s//\1/ 10436 q 10437 } 10438 /^X\(\/\/\)$/{ 10439 s//\1/ 10440 q 10441 } 10442 /^X\(\/\).*/{ 10443 s//\1/ 10444 q 10445 } 10446 s/.*/./; q'` 10447 as_dir=$dirpart/$fdir; as_fn_mkdir_p 10448 # echo "creating $dirpart/$file" 10449 echo '# dummy' > "$dirpart/$file" 10450 done 10451 done 10452} 10453 ;; 10454 10455 esac 10456done # for ac_tag 10457 10458 10459as_fn_exit 0 10460_ACEOF 10461ac_clean_files=$ac_clean_files_save 10462 10463test $ac_write_fail = 0 || 10464 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 10465 10466 10467# configure is writing to config.log, and then calls config.status. 10468# config.status does its own redirection, appending to config.log. 10469# Unfortunately, on DOS this fails, as config.log is still kept open 10470# by configure, so config.status won't be able to write to it; its 10471# output is simply discarded. So we exec the FD to /dev/null, 10472# effectively closing config.log, so it can be properly (re)opened and 10473# appended to by config.status. When coming back to configure, we 10474# need to make the FD available again. 10475if test "$no_create" != yes; then 10476 ac_cs_success=: 10477 ac_config_status_args= 10478 test "$silent" = yes && 10479 ac_config_status_args="$ac_config_status_args --quiet" 10480 exec 5>/dev/null 10481 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10482 exec 5>>config.log 10483 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10484 # would make configure fail if this is the last instruction. 10485 $ac_cs_success || as_fn_exit 1 10486fi 10487if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10489$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10490fi 10491 10492