Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
1,065
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 257.77 KB | None | 0 0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for Yate 6.1.1.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14.  
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in #(
  26. *posix*) :
  27. set -o posix ;; #(
  28. *) :
  29. ;;
  30. esac
  31. fi
  32.  
  33.  
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71.  
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80.  
  81.  
  82. # IFS
  83. # We need space, tab and new line, in precisely that order. Quoting is
  84. # there to prevent editors from complaining about space-tab.
  85. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  86. # splitting by setting IFS to empty value.)
  87. IFS=" "" $as_nl"
  88.  
  89. # Find who we are. Look in the path if we contain no directory separator.
  90. as_myself=
  91. case $0 in #((
  92. *[\\/]* ) as_myself=$0 ;;
  93. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  94. for as_dir in $PATH
  95. do
  96. IFS=$as_save_IFS
  97. test -z "$as_dir" && as_dir=.
  98. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  99. done
  100. IFS=$as_save_IFS
  101.  
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  111. exit 1
  112. fi
  113.  
  114. # Unset variables that we do not need and which cause bugs (e.g. in
  115. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  116. # suppresses any "Segmentation fault" message there. '((' could
  117. # trigger a bug in pdksh 5.2.14.
  118. for as_var in BASH_ENV ENV MAIL MAILPATH
  119. do eval test x\${$as_var+set} = xset \
  120. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  121. done
  122. PS1='$ '
  123. PS2='> '
  124. PS4='+ '
  125.  
  126. # NLS nuisances.
  127. LC_ALL=C
  128. export LC_ALL
  129. LANGUAGE=C
  130. export LANGUAGE
  131.  
  132. # CDPATH.
  133. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  134.  
  135. # Use a proper internal environment variable to ensure we don't fall
  136. # into an infinite loop, continuously re-executing ourselves.
  137. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  138. _as_can_reexec=no; export _as_can_reexec;
  139. # We cannot yet assume a decent shell, so we have to provide a
  140. # neutralization value for shells without unset; and this also
  141. # works around shells that cannot unset nonexistent variables.
  142. # Preserve -v and -x to the replacement shell.
  143. BASH_ENV=/dev/null
  144. ENV=/dev/null
  145. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  146. case $- in # ((((
  147. *v*x* | *x*v* ) as_opts=-vx ;;
  148. *v* ) as_opts=-v ;;
  149. *x* ) as_opts=-x ;;
  150. * ) as_opts= ;;
  151. esac
  152. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  153. # Admittedly, this is quite paranoid, since all the known shells bail
  154. # out after a failed `exec'.
  155. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  156. as_fn_exit 255
  157. fi
  158. # We don't want this to propagate to other subprocesses.
  159. { _as_can_reexec=; unset _as_can_reexec;}
  160. if test "x$CONFIG_SHELL" = x; then
  161. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  162. emulate sh
  163. NULLCMD=:
  164. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  165. # is contrary to our usage. Disable this feature.
  166. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  167. setopt NO_GLOB_SUBST
  168. else
  169. case \`(set -o) 2>/dev/null\` in #(
  170. *posix*) :
  171. set -o posix ;; #(
  172. *) :
  173. ;;
  174. esac
  175. fi
  176. "
  177. as_required="as_fn_return () { (exit \$1); }
  178. as_fn_success () { as_fn_return 0; }
  179. as_fn_failure () { as_fn_return 1; }
  180. as_fn_ret_success () { return 0; }
  181. as_fn_ret_failure () { return 1; }
  182.  
  183. exitcode=0
  184. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  185. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  186. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  187. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  188. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  189.  
  190. else
  191. exitcode=1; echo positional parameters were not saved.
  192. fi
  193. test x\$exitcode = x0 || exit 1
  194. test -x / || exit 1"
  195. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  196. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  197. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  198. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  199. test \$(( 1 + 1 )) = 2 || exit 1"
  200. if (eval "$as_required") 2>/dev/null; then :
  201. as_have_required=yes
  202. else
  203. as_have_required=no
  204. fi
  205. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  206.  
  207. else
  208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  209. as_found=false
  210. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  211. do
  212. IFS=$as_save_IFS
  213. test -z "$as_dir" && as_dir=.
  214. as_found=:
  215. case $as_dir in #(
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. # Try only shells that exist, to save several forks.
  219. as_shell=$as_dir/$as_base
  220. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  221. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  222. CONFIG_SHELL=$as_shell as_have_required=yes
  223. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224. break 2
  225. fi
  226. fi
  227. done;;
  228. esac
  229. as_found=false
  230. done
  231. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  232. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  233. CONFIG_SHELL=$SHELL as_have_required=yes
  234. fi; }
  235. IFS=$as_save_IFS
  236.  
  237.  
  238. if test "x$CONFIG_SHELL" != x; then :
  239. export CONFIG_SHELL
  240. # We cannot yet assume a decent shell, so we have to provide a
  241. # neutralization value for shells without unset; and this also
  242. # works around shells that cannot unset nonexistent variables.
  243. # Preserve -v and -x to the replacement shell.
  244. BASH_ENV=/dev/null
  245. ENV=/dev/null
  246. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  247. case $- in # ((((
  248. *v*x* | *x*v* ) as_opts=-vx ;;
  249. *v* ) as_opts=-v ;;
  250. *x* ) as_opts=-x ;;
  251. * ) as_opts= ;;
  252. esac
  253. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  254. # Admittedly, this is quite paranoid, since all the known shells bail
  255. # out after a failed `exec'.
  256. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  257. exit 255
  258. fi
  259.  
  260. if test x$as_have_required = xno; then :
  261. $as_echo "$0: This script requires a shell more modern than all"
  262. $as_echo "$0: the shells that I found on your system."
  263. if test x${ZSH_VERSION+set} = xset ; then
  264. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  265. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  266. else
  267. $as_echo "$0: Please tell [email protected] about your system,
  268. $0: including any error possibly output before this
  269. $0: message. Then install a modern shell, or manually run
  270. $0: the script under such a shell if you do have one."
  271. fi
  272. exit 1
  273. fi
  274. fi
  275. fi
  276. SHELL=${CONFIG_SHELL-/bin/sh}
  277. export SHELL
  278. # Unset more variables known to interfere with behavior of common tools.
  279. CLICOLOR_FORCE= GREP_OPTIONS=
  280. unset CLICOLOR_FORCE GREP_OPTIONS
  281.  
  282. ## --------------------- ##
  283. ## M4sh Shell Functions. ##
  284. ## --------------------- ##
  285. # as_fn_unset VAR
  286. # ---------------
  287. # Portably unset VAR.
  288. as_fn_unset ()
  289. {
  290. { eval $1=; unset $1;}
  291. }
  292. as_unset=as_fn_unset
  293.  
  294. # as_fn_set_status STATUS
  295. # -----------------------
  296. # Set $? to STATUS, without forking.
  297. as_fn_set_status ()
  298. {
  299. return $1
  300. } # as_fn_set_status
  301.  
  302. # as_fn_exit STATUS
  303. # -----------------
  304. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  305. as_fn_exit ()
  306. {
  307. set +e
  308. as_fn_set_status $1
  309. exit $1
  310. } # as_fn_exit
  311.  
  312. # as_fn_mkdir_p
  313. # -------------
  314. # Create "$as_dir" as a directory, including parents if necessary.
  315. as_fn_mkdir_p ()
  316. {
  317.  
  318. case $as_dir in #(
  319. -*) as_dir=./$as_dir;;
  320. esac
  321. test -d "$as_dir" || eval $as_mkdir_p || {
  322. as_dirs=
  323. while :; do
  324. case $as_dir in #(
  325. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  326. *) as_qdir=$as_dir;;
  327. esac
  328. as_dirs="'$as_qdir' $as_dirs"
  329. as_dir=`$as_dirname -- "$as_dir" ||
  330. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  331. X"$as_dir" : 'X\(//\)[^/]' \| \
  332. X"$as_dir" : 'X\(//\)$' \| \
  333. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  334. $as_echo X"$as_dir" |
  335. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\/\)[^/].*/{
  340. s//\1/
  341. q
  342. }
  343. /^X\(\/\/\)$/{
  344. s//\1/
  345. q
  346. }
  347. /^X\(\/\).*/{
  348. s//\1/
  349. q
  350. }
  351. s/.*/./; q'`
  352. test -d "$as_dir" && break
  353. done
  354. test -z "$as_dirs" || eval "mkdir $as_dirs"
  355. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  356.  
  357.  
  358. } # as_fn_mkdir_p
  359.  
  360. # as_fn_executable_p FILE
  361. # -----------------------
  362. # Test if FILE is an executable regular file.
  363. as_fn_executable_p ()
  364. {
  365. test -f "$1" && test -x "$1"
  366. } # as_fn_executable_p
  367. # as_fn_append VAR VALUE
  368. # ----------------------
  369. # Append the text in VALUE to the end of the definition contained in VAR. Take
  370. # advantage of any shell optimizations that allow amortized linear growth over
  371. # repeated appends, instead of the typical quadratic growth present in naive
  372. # implementations.
  373. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  374. eval 'as_fn_append ()
  375. {
  376. eval $1+=\$2
  377. }'
  378. else
  379. as_fn_append ()
  380. {
  381. eval $1=\$$1\$2
  382. }
  383. fi # as_fn_append
  384.  
  385. # as_fn_arith ARG...
  386. # ------------------
  387. # Perform arithmetic evaluation on the ARGs, and store the result in the
  388. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  389. # must be portable across $(()) and expr.
  390. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  391. eval 'as_fn_arith ()
  392. {
  393. as_val=$(( $* ))
  394. }'
  395. else
  396. as_fn_arith ()
  397. {
  398. as_val=`expr "$@" || test $? -eq 1`
  399. }
  400. fi # as_fn_arith
  401.  
  402.  
  403. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  404. # ----------------------------------------
  405. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  406. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  407. # script with STATUS, using 1 if that was 0.
  408. as_fn_error ()
  409. {
  410. as_status=$1; test $as_status -eq 0 && as_status=1
  411. if test "$4"; then
  412. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  413. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  414. fi
  415. $as_echo "$as_me: error: $2" >&2
  416. as_fn_exit $as_status
  417. } # as_fn_error
  418.  
  419. if expr a : '\(a\)' >/dev/null 2>&1 &&
  420. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  421. as_expr=expr
  422. else
  423. as_expr=false
  424. fi
  425.  
  426. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  427. as_basename=basename
  428. else
  429. as_basename=false
  430. fi
  431.  
  432. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  433. as_dirname=dirname
  434. else
  435. as_dirname=false
  436. fi
  437.  
  438. as_me=`$as_basename -- "$0" ||
  439. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  440. X"$0" : 'X\(//\)$' \| \
  441. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  442. $as_echo X/"$0" |
  443. sed '/^.*\/\([^/][^/]*\)\/*$/{
  444. s//\1/
  445. q
  446. }
  447. /^X\/\(\/\/\)$/{
  448. s//\1/
  449. q
  450. }
  451. /^X\/\(\/\).*/{
  452. s//\1/
  453. q
  454. }
  455. s/.*/./; q'`
  456.  
  457. # Avoid depending upon Character Ranges.
  458. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  459. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  460. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  461. as_cr_digits='0123456789'
  462. as_cr_alnum=$as_cr_Letters$as_cr_digits
  463.  
  464.  
  465. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  466. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  467. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  468. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  469. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  470. sed -n '
  471. p
  472. /[$]LINENO/=
  473. ' <$as_myself |
  474. sed '
  475. s/[$]LINENO.*/&-/
  476. t lineno
  477. b
  478. :lineno
  479. N
  480. :loop
  481. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  482. t loop
  483. s/-\n.*//
  484. ' >$as_me.lineno &&
  485. chmod +x "$as_me.lineno" ||
  486. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  487.  
  488. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  489. # already done that, so ensure we don't try to do so again and fall
  490. # in an infinite loop. This has already happened in practice.
  491. _as_can_reexec=no; export _as_can_reexec
  492. # Don't try to exec as it changes $[0], causing all sort of problems
  493. # (the dirname of $[0] is not the place where we might find the
  494. # original and so on. Autoconf is especially sensitive to this).
  495. . "./$as_me.lineno"
  496. # Exit status is that of the last command.
  497. exit
  498. }
  499.  
  500. ECHO_C= ECHO_N= ECHO_T=
  501. case `echo -n x` in #(((((
  502. -n*)
  503. case `echo 'xy\c'` in
  504. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  505. xy) ECHO_C='\c';;
  506. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  507. ECHO_T=' ';;
  508. esac;;
  509. *)
  510. ECHO_N='-n';;
  511. esac
  512.  
  513. rm -f conf$$ conf$$.exe conf$$.file
  514. if test -d conf$$.dir; then
  515. rm -f conf$$.dir/conf$$.file
  516. else
  517. rm -f conf$$.dir
  518. mkdir conf$$.dir 2>/dev/null
  519. fi
  520. if (echo >conf$$.file) 2>/dev/null; then
  521. if ln -s conf$$.file conf$$ 2>/dev/null; then
  522. as_ln_s='ln -s'
  523. # ... but there are two gotchas:
  524. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  525. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  526. # In both cases, we have to default to `cp -pR'.
  527. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  528. as_ln_s='cp -pR'
  529. elif ln conf$$.file conf$$ 2>/dev/null; then
  530. as_ln_s=ln
  531. else
  532. as_ln_s='cp -pR'
  533. fi
  534. else
  535. as_ln_s='cp -pR'
  536. fi
  537. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  538. rmdir conf$$.dir 2>/dev/null
  539.  
  540. if mkdir -p . 2>/dev/null; then
  541. as_mkdir_p='mkdir -p "$as_dir"'
  542. else
  543. test -d ./-p && rmdir ./-p
  544. as_mkdir_p=false
  545. fi
  546.  
  547. as_test_x='test -x'
  548. as_executable_p=as_fn_executable_p
  549.  
  550. # Sed expression to map a string onto a valid CPP name.
  551. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  552.  
  553. # Sed expression to map a string onto a valid variable name.
  554. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  555.  
  556.  
  557. test -n "$DJDIR" || exec 7<&0 </dev/null
  558. exec 6>&1
  559.  
  560. # Name of the host.
  561. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  562. # so uname gets run too.
  563. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  564.  
  565. #
  566. # Initializations.
  567. #
  568. ac_default_prefix=/usr/local
  569. ac_clean_files=
  570. ac_config_libobj_dir=.
  571. LIBOBJS=
  572. cross_compiling=no
  573. subdirs=
  574. MFLAGS=
  575. MAKEFLAGS=
  576.  
  577. # Identity of this package.
  578. PACKAGE_NAME='Yate'
  579. PACKAGE_TARNAME='yate'
  580. PACKAGE_VERSION='6.1.1'
  581. PACKAGE_STRING='Yate 6.1.1'
  582. PACKAGE_BUGREPORT=''
  583. PACKAGE_URL=''
  584.  
  585. ac_unique_file="README"
  586. # Factoring default headers for most tests.
  587. ac_includes_default="\
  588. #include <stdio.h>
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef STDC_HEADERS
  596. # include <stdlib.h>
  597. # include <stddef.h>
  598. #else
  599. # ifdef HAVE_STDLIB_H
  600. # include <stdlib.h>
  601. # endif
  602. #endif
  603. #ifdef HAVE_STRING_H
  604. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  605. # include <memory.h>
  606. # endif
  607. # include <string.h>
  608. #endif
  609. #ifdef HAVE_STRINGS_H
  610. # include <strings.h>
  611. #endif
  612. #ifdef HAVE_INTTYPES_H
  613. # include <inttypes.h>
  614. #endif
  615. #ifdef HAVE_STDINT_H
  616. # include <stdint.h>
  617. #endif
  618. #ifdef HAVE_UNISTD_H
  619. # include <unistd.h>
  620. #endif"
  621.  
  622. ac_subst_vars='LTLIBOBJS
  623. LIBOBJS
  624. CONFIGURE_FILES
  625. KDOC_BIN
  626. DOXYGEN_BIN
  627. SONAME_OPT
  628. MODULE_SYMBOLS
  629. MODULE_LDFLAGS
  630. MODULE_LDRELAX
  631. MODULE_CPPFLAGS
  632. MODULE_CFLAGS
  633. INSTALL_D
  634. INSTALL_L
  635. RTTI_OPT
  636. USE_RTTI
  637. COREDUMPER_LIB
  638. COREDUMPER_INC
  639. HAVE_COREDUMPER
  640. HAVE_MALLINFO
  641. QT4_STATIC_MODULES
  642. QT4_VER
  643. QT4_MOC
  644. QT4_LIB_NET
  645. QT4_INC_NET
  646. QT4_LIB
  647. QT4_INC
  648. HAVE_QT4
  649. LIBUSB_LIB
  650. LIBUSB_INC
  651. HAVE_LIBUSB
  652. ZLIB_LIB
  653. ZLIB_INC
  654. HAVE_ZLIB
  655. OPENSSL_VER
  656. OPENSSL_LIB
  657. OPENSSL_INC
  658. HAVE_OPENSSL
  659. H323_RUN
  660. H323_LIB
  661. H323_INC
  662. HAVE_H323
  663. SPANDSP_LIB
  664. SPANDSP_INC
  665. HAVE_SPANDSP
  666. AMRNB_LIB
  667. AMRNB_INC
  668. HAVE_AMRNB
  669. SPEEX_LIB
  670. SPEEX_INC
  671. HAVE_SPEEX
  672. ISAC_INC
  673. HAVE_ISAC
  674. ILBCWR_INC
  675. HAVE_ILBCWR
  676. ILBC_INC
  677. HAVE_ILBC
  678. GSM_LIB
  679. GSM_INC
  680. HAVE_GSM
  681. HAVE_COREAUDIO
  682. HAVE_ALSA
  683. HAVE_SOUNDCARD
  684. WANPIPE_FLAGS
  685. HAVE_WANPIPE_TDM
  686. HAVE_WANPIPE
  687. BUILD_TDMCARD
  688. BUILD_WPCARD
  689. ZAP_FLAGS
  690. HAVE_ZAP
  691. SQLITE_LIB
  692. SQLITE_INC
  693. HAVE_SQLITE
  694. MYSQL_VER
  695. MYSQL_LIB
  696. MYSQL_INC
  697. HAVE_MYSQL
  698. PGSQL_LIB
  699. PGSQL_INC
  700. HAVE_PGSQL
  701. OBJCFLAGS
  702. HAVE_MACOSX_SUPPORT
  703. MACOSX_INC
  704. INTERNAL_REGEX
  705. RESOLV_LIB
  706. RESOLV_INC
  707. HAVE_RESOLV
  708. SCTP_FLAGS
  709. HAVE_SCTP_NETINET
  710. HAVE_SCTP
  711. FDSIZE_HACK
  712. SSE2_OPS
  713. ATOMIC_OPS
  714. INLINE_FLAGS
  715. THREAD_KILL
  716. NETDB_FLAGS
  717. MUTEX_HACK
  718. DLOPEN_LIB
  719. THREAD_LIB
  720. HAVE_POLL
  721. HAVE_INT_TZ
  722. HAVE_GMTOFF
  723. HAVE_SOCKADDR_LEN
  724. HAVE_PRCTL
  725. HAVE_GETCWD
  726. HAVE_BLOCK_RETURN
  727. EGREP
  728. GREP
  729. CPP
  730. AWK
  731. ac_ct_CC
  732. CFLAGS
  733. CC
  734. OBJEXT
  735. EXEEXT
  736. ac_ct_CXX
  737. CPPFLAGS
  738. LDFLAGS
  739. CXXFLAGS
  740. CXX
  741. ARCHLIB
  742. PACKAGE_REVISION
  743. PACKAGE_STATUS
  744. PACKAGE_RELEASE
  745. PACKAGE_VERSION_RELEASE
  746. PACKAGE_VERSION_BUILD
  747. PACKAGE_VERSION_MINOR
  748. PACKAGE_VERSION_MAJOR
  749. target_alias
  750. host_alias
  751. build_alias
  752. LIBS
  753. ECHO_T
  754. ECHO_N
  755. ECHO_C
  756. DEFS
  757. mandir
  758. localedir
  759. libdir
  760. psdir
  761. pdfdir
  762. dvidir
  763. htmldir
  764. infodir
  765. docdir
  766. oldincludedir
  767. includedir
  768. runstatedir
  769. localstatedir
  770. sharedstatedir
  771. sysconfdir
  772. datadir
  773. datarootdir
  774. libexecdir
  775. sbindir
  776. bindir
  777. program_transform_name
  778. prefix
  779. exec_prefix
  780. PACKAGE_URL
  781. PACKAGE_BUGREPORT
  782. PACKAGE_STRING
  783. PACKAGE_VERSION
  784. PACKAGE_TARNAME
  785. PACKAGE_NAME
  786. PATH_SEPARATOR
  787. SHELL'
  788. ac_subst_files=''
  789. ac_user_opts='
  790. enable_option_checking
  791. with_status
  792. with_archlib
  793. enable_strings
  794. enable_poll
  795. enable_inline
  796. enable_atomics
  797. enable_sse2
  798. with_fdsize
  799. enable_sctp
  800. enable_resolver
  801. enable_internalregex
  802. with_libpq
  803. with_mysql
  804. with_sqlite
  805. enable_dahdi
  806. enable_zaptel
  807. enable_wpcard
  808. enable_tdmcard
  809. enable_wanpipe
  810. with_wphwec
  811. with_libgsm
  812. enable_ilbc
  813. enable_ilbc_webrtc
  814. enable_isac_float
  815. enable_isac_fixed
  816. with_libspeex
  817. with_amrnb
  818. with_spandsp
  819. with_pwlib
  820. with_openh323
  821. with_openssl
  822. with_zlib
  823. with_libusb
  824. with_libqt4
  825. with_qtstatic
  826. enable_mallinfo
  827. with_coredumper
  828. enable_rtti
  829. enable_lib_exec
  830. with_doxygen
  831. with_kdoc
  832. '
  833. ac_precious_vars='build_alias
  834. host_alias
  835. target_alias
  836. CXX
  837. CXXFLAGS
  838. LDFLAGS
  839. LIBS
  840. CPPFLAGS
  841. CCC
  842. CC
  843. CFLAGS
  844. CPP'
  845.  
  846.  
  847. # Initialize some variables set by options.
  848. ac_init_help=
  849. ac_init_version=false
  850. ac_unrecognized_opts=
  851. ac_unrecognized_sep=
  852. # The variables have the same names as the options, with
  853. # dashes changed to underlines.
  854. cache_file=/dev/null
  855. exec_prefix=NONE
  856. no_create=
  857. no_recursion=
  858. prefix=NONE
  859. program_prefix=NONE
  860. program_suffix=NONE
  861. program_transform_name=s,x,x,
  862. silent=
  863. site=
  864. srcdir=
  865. verbose=
  866. x_includes=NONE
  867. x_libraries=NONE
  868.  
  869. # Installation directory options.
  870. # These are left unexpanded so users can "make install exec_prefix=/foo"
  871. # and all the variables that are supposed to be based on exec_prefix
  872. # by default will actually change.
  873. # Use braces instead of parens because sh, perl, etc. also accept them.
  874. # (The list follows the same order as the GNU Coding Standards.)
  875. bindir='${exec_prefix}/bin'
  876. sbindir='${exec_prefix}/sbin'
  877. libexecdir='${exec_prefix}/libexec'
  878. datarootdir='${prefix}/share'
  879. datadir='${datarootdir}'
  880. sysconfdir='${prefix}/etc'
  881. sharedstatedir='${prefix}/com'
  882. localstatedir='${prefix}/var'
  883. runstatedir='${localstatedir}/run'
  884. includedir='${prefix}/include'
  885. oldincludedir='/usr/include'
  886. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  887. infodir='${datarootdir}/info'
  888. htmldir='${docdir}'
  889. dvidir='${docdir}'
  890. pdfdir='${docdir}'
  891. psdir='${docdir}'
  892. libdir='${exec_prefix}/lib'
  893. localedir='${datarootdir}/locale'
  894. mandir='${datarootdir}/man'
  895.  
  896. ac_prev=
  897. ac_dashdash=
  898. for ac_option
  899. do
  900. # If the previous option needs an argument, assign it.
  901. if test -n "$ac_prev"; then
  902. eval $ac_prev=\$ac_option
  903. ac_prev=
  904. continue
  905. fi
  906.  
  907. case $ac_option in
  908. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  909. *=) ac_optarg= ;;
  910. *) ac_optarg=yes ;;
  911. esac
  912.  
  913. # Accept the important Cygnus configure options, so we can diagnose typos.
  914.  
  915. case $ac_dashdash$ac_option in
  916. --)
  917. ac_dashdash=yes ;;
  918.  
  919. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  920. ac_prev=bindir ;;
  921. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  922. bindir=$ac_optarg ;;
  923.  
  924. -build | --build | --buil | --bui | --bu)
  925. ac_prev=build_alias ;;
  926. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  927. build_alias=$ac_optarg ;;
  928.  
  929. -cache-file | --cache-file | --cache-fil | --cache-fi \
  930. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  931. ac_prev=cache_file ;;
  932. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  933. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  934. cache_file=$ac_optarg ;;
  935.  
  936. --config-cache | -C)
  937. cache_file=config.cache ;;
  938.  
  939. -datadir | --datadir | --datadi | --datad)
  940. ac_prev=datadir ;;
  941. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  942. datadir=$ac_optarg ;;
  943.  
  944. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  945. | --dataroo | --dataro | --datar)
  946. ac_prev=datarootdir ;;
  947. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  948. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  949. datarootdir=$ac_optarg ;;
  950.  
  951. -disable-* | --disable-*)
  952. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. as_fn_error $? "invalid feature name: $ac_useropt"
  956. ac_useropt_orig=$ac_useropt
  957. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. case $ac_user_opts in
  959. *"
  960. "enable_$ac_useropt"
  961. "*) ;;
  962. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  963. ac_unrecognized_sep=', ';;
  964. esac
  965. eval enable_$ac_useropt=no ;;
  966.  
  967. -docdir | --docdir | --docdi | --doc | --do)
  968. ac_prev=docdir ;;
  969. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  970. docdir=$ac_optarg ;;
  971.  
  972. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  973. ac_prev=dvidir ;;
  974. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  975. dvidir=$ac_optarg ;;
  976.  
  977. -enable-* | --enable-*)
  978. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  979. # Reject names that are not valid shell variable names.
  980. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  981. as_fn_error $? "invalid feature name: $ac_useropt"
  982. ac_useropt_orig=$ac_useropt
  983. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  984. case $ac_user_opts in
  985. *"
  986. "enable_$ac_useropt"
  987. "*) ;;
  988. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  989. ac_unrecognized_sep=', ';;
  990. esac
  991. eval enable_$ac_useropt=\$ac_optarg ;;
  992.  
  993. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  994. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  995. | --exec | --exe | --ex)
  996. ac_prev=exec_prefix ;;
  997. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  998. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  999. | --exec=* | --exe=* | --ex=*)
  1000. exec_prefix=$ac_optarg ;;
  1001.  
  1002. -gas | --gas | --ga | --g)
  1003. # Obsolete; use --with-gas.
  1004. with_gas=yes ;;
  1005.  
  1006. -help | --help | --hel | --he | -h)
  1007. ac_init_help=long ;;
  1008. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1009. ac_init_help=recursive ;;
  1010. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1011. ac_init_help=short ;;
  1012.  
  1013. -host | --host | --hos | --ho)
  1014. ac_prev=host_alias ;;
  1015. -host=* | --host=* | --hos=* | --ho=*)
  1016. host_alias=$ac_optarg ;;
  1017.  
  1018. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1019. ac_prev=htmldir ;;
  1020. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1021. | --ht=*)
  1022. htmldir=$ac_optarg ;;
  1023.  
  1024. -includedir | --includedir | --includedi | --included | --include \
  1025. | --includ | --inclu | --incl | --inc)
  1026. ac_prev=includedir ;;
  1027. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1028. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1029. includedir=$ac_optarg ;;
  1030.  
  1031. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1032. ac_prev=infodir ;;
  1033. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1034. infodir=$ac_optarg ;;
  1035.  
  1036. -libdir | --libdir | --libdi | --libd)
  1037. ac_prev=libdir ;;
  1038. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1039. libdir=$ac_optarg ;;
  1040.  
  1041. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1042. | --libexe | --libex | --libe)
  1043. ac_prev=libexecdir ;;
  1044. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1045. | --libexe=* | --libex=* | --libe=*)
  1046. libexecdir=$ac_optarg ;;
  1047.  
  1048. -localedir | --localedir | --localedi | --localed | --locale)
  1049. ac_prev=localedir ;;
  1050. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1051. localedir=$ac_optarg ;;
  1052.  
  1053. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1054. | --localstate | --localstat | --localsta | --localst | --locals)
  1055. ac_prev=localstatedir ;;
  1056. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1057. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1058. localstatedir=$ac_optarg ;;
  1059.  
  1060. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1061. ac_prev=mandir ;;
  1062. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1063. mandir=$ac_optarg ;;
  1064.  
  1065. -nfp | --nfp | --nf)
  1066. # Obsolete; use --without-fp.
  1067. with_fp=no ;;
  1068.  
  1069. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1070. | --no-cr | --no-c | -n)
  1071. no_create=yes ;;
  1072.  
  1073. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1074. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1075. no_recursion=yes ;;
  1076.  
  1077. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1078. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1079. | --oldin | --oldi | --old | --ol | --o)
  1080. ac_prev=oldincludedir ;;
  1081. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1082. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1083. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1084. oldincludedir=$ac_optarg ;;
  1085.  
  1086. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1087. ac_prev=prefix ;;
  1088. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1089. prefix=$ac_optarg ;;
  1090.  
  1091. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1092. | --program-pre | --program-pr | --program-p)
  1093. ac_prev=program_prefix ;;
  1094. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1095. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1096. program_prefix=$ac_optarg ;;
  1097.  
  1098. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1099. | --program-suf | --program-su | --program-s)
  1100. ac_prev=program_suffix ;;
  1101. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1102. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1103. program_suffix=$ac_optarg ;;
  1104.  
  1105. -program-transform-name | --program-transform-name \
  1106. | --program-transform-nam | --program-transform-na \
  1107. | --program-transform-n | --program-transform- \
  1108. | --program-transform | --program-transfor \
  1109. | --program-transfo | --program-transf \
  1110. | --program-trans | --program-tran \
  1111. | --progr-tra | --program-tr | --program-t)
  1112. ac_prev=program_transform_name ;;
  1113. -program-transform-name=* | --program-transform-name=* \
  1114. | --program-transform-nam=* | --program-transform-na=* \
  1115. | --program-transform-n=* | --program-transform-=* \
  1116. | --program-transform=* | --program-transfor=* \
  1117. | --program-transfo=* | --program-transf=* \
  1118. | --program-trans=* | --program-tran=* \
  1119. | --progr-tra=* | --program-tr=* | --program-t=*)
  1120. program_transform_name=$ac_optarg ;;
  1121.  
  1122. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1123. ac_prev=pdfdir ;;
  1124. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1125. pdfdir=$ac_optarg ;;
  1126.  
  1127. -psdir | --psdir | --psdi | --psd | --ps)
  1128. ac_prev=psdir ;;
  1129. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1130. psdir=$ac_optarg ;;
  1131.  
  1132. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1133. | -silent | --silent | --silen | --sile | --sil)
  1134. silent=yes ;;
  1135.  
  1136. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1137. | --runstate | --runstat | --runsta | --runst | --runs \
  1138. | --run | --ru | --r)
  1139. ac_prev=runstatedir ;;
  1140. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1141. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1142. | --run=* | --ru=* | --r=*)
  1143. runstatedir=$ac_optarg ;;
  1144.  
  1145. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1146. ac_prev=sbindir ;;
  1147. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1148. | --sbi=* | --sb=*)
  1149. sbindir=$ac_optarg ;;
  1150.  
  1151. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1152. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1153. | --sharedst | --shareds | --shared | --share | --shar \
  1154. | --sha | --sh)
  1155. ac_prev=sharedstatedir ;;
  1156. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1157. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1158. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1159. | --sha=* | --sh=*)
  1160. sharedstatedir=$ac_optarg ;;
  1161.  
  1162. -site | --site | --sit)
  1163. ac_prev=site ;;
  1164. -site=* | --site=* | --sit=*)
  1165. site=$ac_optarg ;;
  1166.  
  1167. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1168. ac_prev=srcdir ;;
  1169. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1170. srcdir=$ac_optarg ;;
  1171.  
  1172. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1173. | --syscon | --sysco | --sysc | --sys | --sy)
  1174. ac_prev=sysconfdir ;;
  1175. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1176. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1177. sysconfdir=$ac_optarg ;;
  1178.  
  1179. -target | --target | --targe | --targ | --tar | --ta | --t)
  1180. ac_prev=target_alias ;;
  1181. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1182. target_alias=$ac_optarg ;;
  1183.  
  1184. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1185. verbose=yes ;;
  1186.  
  1187. -version | --version | --versio | --versi | --vers | -V)
  1188. ac_init_version=: ;;
  1189.  
  1190. -with-* | --with-*)
  1191. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1192. # Reject names that are not valid shell variable names.
  1193. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1194. as_fn_error $? "invalid package name: $ac_useropt"
  1195. ac_useropt_orig=$ac_useropt
  1196. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1197. case $ac_user_opts in
  1198. *"
  1199. "with_$ac_useropt"
  1200. "*) ;;
  1201. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1202. ac_unrecognized_sep=', ';;
  1203. esac
  1204. eval with_$ac_useropt=\$ac_optarg ;;
  1205.  
  1206. -without-* | --without-*)
  1207. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1208. # Reject names that are not valid shell variable names.
  1209. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1210. as_fn_error $? "invalid package name: $ac_useropt"
  1211. ac_useropt_orig=$ac_useropt
  1212. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1213. case $ac_user_opts in
  1214. *"
  1215. "with_$ac_useropt"
  1216. "*) ;;
  1217. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1218. ac_unrecognized_sep=', ';;
  1219. esac
  1220. eval with_$ac_useropt=no ;;
  1221.  
  1222. --x)
  1223. # Obsolete; use --with-x.
  1224. with_x=yes ;;
  1225.  
  1226. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1227. | --x-incl | --x-inc | --x-in | --x-i)
  1228. ac_prev=x_includes ;;
  1229. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1230. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1231. x_includes=$ac_optarg ;;
  1232.  
  1233. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1234. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1235. ac_prev=x_libraries ;;
  1236. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1237. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1238. x_libraries=$ac_optarg ;;
  1239.  
  1240. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1241. Try \`$0 --help' for more information"
  1242. ;;
  1243.  
  1244. *=*)
  1245. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1246. # Reject names that are not valid shell variable names.
  1247. case $ac_envvar in #(
  1248. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1249. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1250. esac
  1251. eval $ac_envvar=\$ac_optarg
  1252. export $ac_envvar ;;
  1253.  
  1254. *)
  1255. # FIXME: should be removed in autoconf 3.0.
  1256. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1257. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1258. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1259. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1260. ;;
  1261.  
  1262. esac
  1263. done
  1264.  
  1265. if test -n "$ac_prev"; then
  1266. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1267. as_fn_error $? "missing argument to $ac_option"
  1268. fi
  1269.  
  1270. if test -n "$ac_unrecognized_opts"; then
  1271. case $enable_option_checking in
  1272. no) ;;
  1273. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1274. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1275. esac
  1276. fi
  1277.  
  1278. # Check all directory arguments for consistency.
  1279. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1280. datadir sysconfdir sharedstatedir localstatedir includedir \
  1281. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1282. libdir localedir mandir runstatedir
  1283. do
  1284. eval ac_val=\$$ac_var
  1285. # Remove trailing slashes.
  1286. case $ac_val in
  1287. */ )
  1288. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1289. eval $ac_var=\$ac_val;;
  1290. esac
  1291. # Be sure to have absolute directory names.
  1292. case $ac_val in
  1293. [\\/$]* | ?:[\\/]* ) continue;;
  1294. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1295. esac
  1296. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1297. done
  1298.  
  1299. # There might be people who depend on the old broken behavior: `$host'
  1300. # used to hold the argument of --host etc.
  1301. # FIXME: To remove some day.
  1302. build=$build_alias
  1303. host=$host_alias
  1304. target=$target_alias
  1305.  
  1306. # FIXME: To remove some day.
  1307. if test "x$host_alias" != x; then
  1308. if test "x$build_alias" = x; then
  1309. cross_compiling=maybe
  1310. elif test "x$build_alias" != "x$host_alias"; then
  1311. cross_compiling=yes
  1312. fi
  1313. fi
  1314.  
  1315. ac_tool_prefix=
  1316. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1317.  
  1318. test "$silent" = yes && exec 6>/dev/null
  1319.  
  1320.  
  1321. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1322. ac_ls_di=`ls -di .` &&
  1323. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1324. as_fn_error $? "working directory cannot be determined"
  1325. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1326. as_fn_error $? "pwd does not report name of working directory"
  1327.  
  1328.  
  1329. # Find the source files, if location was not specified.
  1330. if test -z "$srcdir"; then
  1331. ac_srcdir_defaulted=yes
  1332. # Try the directory containing this script, then the parent directory.
  1333. ac_confdir=`$as_dirname -- "$as_myself" ||
  1334. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1335. X"$as_myself" : 'X\(//\)[^/]' \| \
  1336. X"$as_myself" : 'X\(//\)$' \| \
  1337. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1338. $as_echo X"$as_myself" |
  1339. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1340. s//\1/
  1341. q
  1342. }
  1343. /^X\(\/\/\)[^/].*/{
  1344. s//\1/
  1345. q
  1346. }
  1347. /^X\(\/\/\)$/{
  1348. s//\1/
  1349. q
  1350. }
  1351. /^X\(\/\).*/{
  1352. s//\1/
  1353. q
  1354. }
  1355. s/.*/./; q'`
  1356. srcdir=$ac_confdir
  1357. if test ! -r "$srcdir/$ac_unique_file"; then
  1358. srcdir=..
  1359. fi
  1360. else
  1361. ac_srcdir_defaulted=no
  1362. fi
  1363. if test ! -r "$srcdir/$ac_unique_file"; then
  1364. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1365. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1366. fi
  1367. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1368. ac_abs_confdir=`(
  1369. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1370. pwd)`
  1371. # When building in place, set srcdir=.
  1372. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1373. srcdir=.
  1374. fi
  1375. # Remove unnecessary trailing slashes from srcdir.
  1376. # Double slashes in file names in object file debugging info
  1377. # mess up M-x gdb in Emacs.
  1378. case $srcdir in
  1379. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1380. esac
  1381. for ac_var in $ac_precious_vars; do
  1382. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1383. eval ac_env_${ac_var}_value=\$${ac_var}
  1384. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1385. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1386. done
  1387.  
  1388. #
  1389. # Report the --help message.
  1390. #
  1391. if test "$ac_init_help" = "long"; then
  1392. # Omit some internal or obsolete options to make the list less imposing.
  1393. # This message is too long to be a string in the A/UX 3.1 sh.
  1394. cat <<_ACEOF
  1395. \`configure' configures Yate 6.1.1 to adapt to many kinds of systems.
  1396.  
  1397. Usage: $0 [OPTION]... [VAR=VALUE]...
  1398.  
  1399. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1400. VAR=VALUE. See below for descriptions of some of the useful variables.
  1401.  
  1402. Defaults for the options are specified in brackets.
  1403.  
  1404. Configuration:
  1405. -h, --help display this help and exit
  1406. --help=short display options specific to this package
  1407. --help=recursive display the short help of all the included packages
  1408. -V, --version display version information and exit
  1409. -q, --quiet, --silent do not print \`checking ...' messages
  1410. --cache-file=FILE cache test results in FILE [disabled]
  1411. -C, --config-cache alias for \`--cache-file=config.cache'
  1412. -n, --no-create do not create output files
  1413. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1414.  
  1415. Installation directories:
  1416. --prefix=PREFIX install architecture-independent files in PREFIX
  1417. [$ac_default_prefix]
  1418. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1419. [PREFIX]
  1420.  
  1421. By default, \`make install' will install all the files in
  1422. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1423. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1424. for instance \`--prefix=\$HOME'.
  1425.  
  1426. For better control, use the options below.
  1427.  
  1428. Fine tuning of the installation directories:
  1429. --bindir=DIR user executables [EPREFIX/bin]
  1430. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1431. --libexecdir=DIR program executables [EPREFIX/libexec]
  1432. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1433. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1434. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1435. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1436. --libdir=DIR object code libraries [EPREFIX/lib]
  1437. --includedir=DIR C header files [PREFIX/include]
  1438. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1439. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1440. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1441. --infodir=DIR info documentation [DATAROOTDIR/info]
  1442. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1443. --mandir=DIR man documentation [DATAROOTDIR/man]
  1444. --docdir=DIR documentation root [DATAROOTDIR/doc/yate]
  1445. --htmldir=DIR html documentation [DOCDIR]
  1446. --dvidir=DIR dvi documentation [DOCDIR]
  1447. --pdfdir=DIR pdf documentation [DOCDIR]
  1448. --psdir=DIR ps documentation [DOCDIR]
  1449. _ACEOF
  1450.  
  1451. cat <<\_ACEOF
  1452. _ACEOF
  1453. fi
  1454.  
  1455. if test -n "$ac_init_help"; then
  1456. case $ac_init_help in
  1457. short | recursive ) echo "Configuration of Yate 6.1.1:";;
  1458. esac
  1459. cat <<\_ACEOF
  1460.  
  1461. Optional Features:
  1462. --disable-option-checking ignore unrecognized --enable/--with options
  1463. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1464. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1465. --enable-strings Create static Strings (default: yes)
  1466. --enable-poll Use poll() on sockets (default: yes)
  1467. --enable-inline Enable inlining of functions
  1468. --enable-atomics Enable atomic integer operations (default: yes)
  1469. --enable-sse2 Enable sse2 operations (default: no)
  1470. --enable-sctp Enable SCTP sockets (default: yes)
  1471. --enable-resolver Use resolver if available (default: yes)
  1472. --enable-internalregex Use internal regexp library (default: not on Linux)
  1473. --enable-dahdi Enable Dahdi driver (default: yes)
  1474. --enable-zaptel Enable Zaptel driver (default: yes)
  1475. --enable-wpcard Enable Wanpipe card driver (default: yes)
  1476. --enable-tdmcard Enable TDMV API card driver (default: yes)
  1477. --enable-wanpipe Enable Wanpipe support (default: yes)
  1478. --enable-ilbc Enable iLBC codec (default: yes)
  1479. --enable-ilbc-webrtc Enable iLBC webrtc codec (default: yes)
  1480. --enable-isac-float Enable iSAC float codec (default: yes)
  1481. --enable-isac-fixed Enable iSAC fixed codec (default: no)
  1482. --enable-mallinfo Enable malloc info if available (default: yes)
  1483. --enable-rtti Enable RTTI support (default: like pwlib)
  1484. --enable-lib-exec Executable libraries and modules (default: auto)
  1485.  
  1486. Optional Packages:
  1487. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1488. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1489. --with-status=NAME use NAME as package status
  1490. --with-archlib=NAME use NAME as library directory name
  1491. --with-fdsize=NNNN set FD_SIZE to NNNN (default 8192)
  1492. --with-libpq=DIR use Postgress SQL from DIR (default /usr)
  1493. --with-mysql=DIR use MySQL client library from DIR
  1494. --with-sqlite=DIR use SQLite library from DIR
  1495. --with-wphwec=DIR use Wanpipe/Octasic headers from DIR
  1496. --with-libgsm use GSM codec if available (default)
  1497. --with-libspeex use Speex codec if available (default)
  1498. --with-amrnb=DIR use AMR-NB if available (default)
  1499. --with-spandsp use spandsp library if available (default)
  1500. --with-pwlib=DIR use Pwlib from DIR (default /usr)
  1501. --with-openh323=DIR use OpenH323 from DIR (default /usr)
  1502. --with-openssl use OpenSSL for secure sockets (default)
  1503. --with-zlib=DIR use zlib for data (de)compression from DIR (default
  1504. /usr)
  1505. --with-libusb=DIR use libusb DIR (default /usr)
  1506. --with-libqt4 use Qt for graphical clients (default)
  1507. --with-qtstatic=MODULES link specific modules with static Qt
  1508. --with-coredumper use Google coredumper if available (default)
  1509. --with-doxygen=EXE use doxygen to generate API docs (default: PATH)
  1510. --with-kdoc=EXE use kdoc to generate API docs (default: PATH)
  1511.  
  1512. Some influential environment variables:
  1513. CXX C++ compiler command
  1514. CXXFLAGS C++ compiler flags
  1515. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1516. nonstandard directory <lib dir>
  1517. LIBS libraries to pass to the linker, e.g. -l<library>
  1518. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1519. you have headers in a nonstandard directory <include dir>
  1520. CC C compiler command
  1521. CFLAGS C compiler flags
  1522. CPP C preprocessor
  1523.  
  1524. Use these variables to override the choices made by `configure' or to help
  1525. it to find libraries and programs with nonstandard names/locations.
  1526.  
  1527. Report bugs to the package provider.
  1528. _ACEOF
  1529. ac_status=$?
  1530. fi
  1531.  
  1532. if test "$ac_init_help" = "recursive"; then
  1533. # If there are subdirs, report their specific --help.
  1534. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1535. test -d "$ac_dir" ||
  1536. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1537. continue
  1538. ac_builddir=.
  1539.  
  1540. case "$ac_dir" in
  1541. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1542. *)
  1543. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1544. # A ".." for each directory in $ac_dir_suffix.
  1545. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1546. case $ac_top_builddir_sub in
  1547. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1548. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1549. esac ;;
  1550. esac
  1551. ac_abs_top_builddir=$ac_pwd
  1552. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1553. # for backward compatibility:
  1554. ac_top_builddir=$ac_top_build_prefix
  1555.  
  1556. case $srcdir in
  1557. .) # We are building in place.
  1558. ac_srcdir=.
  1559. ac_top_srcdir=$ac_top_builddir_sub
  1560. ac_abs_top_srcdir=$ac_pwd ;;
  1561. [\\/]* | ?:[\\/]* ) # Absolute name.
  1562. ac_srcdir=$srcdir$ac_dir_suffix;
  1563. ac_top_srcdir=$srcdir
  1564. ac_abs_top_srcdir=$srcdir ;;
  1565. *) # Relative name.
  1566. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1567. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1568. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1569. esac
  1570. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1571.  
  1572. cd "$ac_dir" || { ac_status=$?; continue; }
  1573. # Check for guested configure.
  1574. if test -f "$ac_srcdir/configure.gnu"; then
  1575. echo &&
  1576. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1577. elif test -f "$ac_srcdir/configure"; then
  1578. echo &&
  1579. $SHELL "$ac_srcdir/configure" --help=recursive
  1580. else
  1581. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1582. fi || ac_status=$?
  1583. cd "$ac_pwd" || { ac_status=$?; break; }
  1584. done
  1585. fi
  1586.  
  1587. test -n "$ac_init_help" && exit $ac_status
  1588. if $ac_init_version; then
  1589. cat <<\_ACEOF
  1590. Yate configure 6.1.1
  1591. generated by GNU Autoconf 2.69
  1592.  
  1593. Copyright (C) 2012 Free Software Foundation, Inc.
  1594. This configure script is free software; the Free Software Foundation
  1595. gives unlimited permission to copy, distribute and modify it.
  1596. _ACEOF
  1597. exit
  1598. fi
  1599.  
  1600. ## ------------------------ ##
  1601. ## Autoconf initialization. ##
  1602. ## ------------------------ ##
  1603.  
  1604. # ac_fn_cxx_try_compile LINENO
  1605. # ----------------------------
  1606. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1607. ac_fn_cxx_try_compile ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. rm -f conftest.$ac_objext
  1611. if { { ac_try="$ac_compile"
  1612. case "(($ac_try" in
  1613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1614. *) ac_try_echo=$ac_try;;
  1615. esac
  1616. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1617. $as_echo "$ac_try_echo"; } >&5
  1618. (eval "$ac_compile") 2>conftest.err
  1619. ac_status=$?
  1620. if test -s conftest.err; then
  1621. grep -v '^ *+' conftest.err >conftest.er1
  1622. cat conftest.er1 >&5
  1623. mv -f conftest.er1 conftest.err
  1624. fi
  1625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1626. test $ac_status = 0; } && {
  1627. test -z "$ac_cxx_werror_flag" ||
  1628. test ! -s conftest.err
  1629. } && test -s conftest.$ac_objext; then :
  1630. ac_retval=0
  1631. else
  1632. $as_echo "$as_me: failed program was:" >&5
  1633. sed 's/^/| /' conftest.$ac_ext >&5
  1634.  
  1635. ac_retval=1
  1636. fi
  1637. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1638. as_fn_set_status $ac_retval
  1639.  
  1640. } # ac_fn_cxx_try_compile
  1641.  
  1642. # ac_fn_c_try_compile LINENO
  1643. # --------------------------
  1644. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1645. ac_fn_c_try_compile ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. rm -f conftest.$ac_objext
  1649. if { { ac_try="$ac_compile"
  1650. case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. $as_echo "$ac_try_echo"; } >&5
  1656. (eval "$ac_compile") 2>conftest.err
  1657. ac_status=$?
  1658. if test -s conftest.err; then
  1659. grep -v '^ *+' conftest.err >conftest.er1
  1660. cat conftest.er1 >&5
  1661. mv -f conftest.er1 conftest.err
  1662. fi
  1663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; } && {
  1665. test -z "$ac_c_werror_flag" ||
  1666. test ! -s conftest.err
  1667. } && test -s conftest.$ac_objext; then :
  1668. ac_retval=0
  1669. else
  1670. $as_echo "$as_me: failed program was:" >&5
  1671. sed 's/^/| /' conftest.$ac_ext >&5
  1672.  
  1673. ac_retval=1
  1674. fi
  1675. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1676. as_fn_set_status $ac_retval
  1677.  
  1678. } # ac_fn_c_try_compile
  1679.  
  1680. # ac_fn_c_try_run LINENO
  1681. # ----------------------
  1682. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1683. # that executables *can* be run.
  1684. ac_fn_c_try_run ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. if { { ac_try="$ac_link"
  1688. case "(($ac_try" in
  1689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1690. *) ac_try_echo=$ac_try;;
  1691. esac
  1692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1693. $as_echo "$ac_try_echo"; } >&5
  1694. (eval "$ac_link") 2>&5
  1695. ac_status=$?
  1696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1697. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1698. { { case "(($ac_try" in
  1699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1700. *) ac_try_echo=$ac_try;;
  1701. esac
  1702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1703. $as_echo "$ac_try_echo"; } >&5
  1704. (eval "$ac_try") 2>&5
  1705. ac_status=$?
  1706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1707. test $ac_status = 0; }; }; then :
  1708. ac_retval=0
  1709. else
  1710. $as_echo "$as_me: program exited with status $ac_status" >&5
  1711. $as_echo "$as_me: failed program was:" >&5
  1712. sed 's/^/| /' conftest.$ac_ext >&5
  1713.  
  1714. ac_retval=$ac_status
  1715. fi
  1716. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1717. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1718. as_fn_set_status $ac_retval
  1719.  
  1720. } # ac_fn_c_try_run
  1721.  
  1722. # ac_fn_c_try_cpp LINENO
  1723. # ----------------------
  1724. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1725. ac_fn_c_try_cpp ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1729. case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1736. ac_status=$?
  1737. if test -s conftest.err; then
  1738. grep -v '^ *+' conftest.err >conftest.er1
  1739. cat conftest.er1 >&5
  1740. mv -f conftest.er1 conftest.err
  1741. fi
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; } > conftest.i && {
  1744. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1745. test ! -s conftest.err
  1746. }; then :
  1747. ac_retval=0
  1748. else
  1749. $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751.  
  1752. ac_retval=1
  1753. fi
  1754. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1755. as_fn_set_status $ac_retval
  1756.  
  1757. } # ac_fn_c_try_cpp
  1758.  
  1759. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1760. # -------------------------------------------------------
  1761. # Tests whether HEADER exists and can be compiled using the include files in
  1762. # INCLUDES, setting the cache variable VAR accordingly.
  1763. ac_fn_c_check_header_compile ()
  1764. {
  1765. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1767. $as_echo_n "checking for $2... " >&6; }
  1768. if eval \${$3+:} false; then :
  1769. $as_echo_n "(cached) " >&6
  1770. else
  1771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1772. /* end confdefs.h. */
  1773. $4
  1774. #include <$2>
  1775. _ACEOF
  1776. if ac_fn_c_try_compile "$LINENO"; then :
  1777. eval "$3=yes"
  1778. else
  1779. eval "$3=no"
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. eval ac_res=\$$3
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1785. $as_echo "$ac_res" >&6; }
  1786. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1787.  
  1788. } # ac_fn_c_check_header_compile
  1789.  
  1790. # ac_fn_c_try_link LINENO
  1791. # -----------------------
  1792. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1793. ac_fn_c_try_link ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. rm -f conftest.$ac_objext conftest$ac_exeext
  1797. if { { ac_try="$ac_link"
  1798. case "(($ac_try" in
  1799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1800. *) ac_try_echo=$ac_try;;
  1801. esac
  1802. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1803. $as_echo "$ac_try_echo"; } >&5
  1804. (eval "$ac_link") 2>conftest.err
  1805. ac_status=$?
  1806. if test -s conftest.err; then
  1807. grep -v '^ *+' conftest.err >conftest.er1
  1808. cat conftest.er1 >&5
  1809. mv -f conftest.er1 conftest.err
  1810. fi
  1811. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1812. test $ac_status = 0; } && {
  1813. test -z "$ac_c_werror_flag" ||
  1814. test ! -s conftest.err
  1815. } && test -s conftest$ac_exeext && {
  1816. test "$cross_compiling" = yes ||
  1817. test -x conftest$ac_exeext
  1818. }; then :
  1819. ac_retval=0
  1820. else
  1821. $as_echo "$as_me: failed program was:" >&5
  1822. sed 's/^/| /' conftest.$ac_ext >&5
  1823.  
  1824. ac_retval=1
  1825. fi
  1826. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1827. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1828. # interfere with the next link command; also delete a directory that is
  1829. # left behind by Apple's compiler. We do this before executing the actions.
  1830. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. as_fn_set_status $ac_retval
  1833.  
  1834. } # ac_fn_c_try_link
  1835.  
  1836. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1837. # -------------------------------------------------------
  1838. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1839. # the include files in INCLUDES and setting the cache variable VAR
  1840. # accordingly.
  1841. ac_fn_c_check_header_mongrel ()
  1842. {
  1843. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1844. if eval \${$3+:} false; then :
  1845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1846. $as_echo_n "checking for $2... " >&6; }
  1847. if eval \${$3+:} false; then :
  1848. $as_echo_n "(cached) " >&6
  1849. fi
  1850. eval ac_res=\$$3
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1852. $as_echo "$ac_res" >&6; }
  1853. else
  1854. # Is the header compilable?
  1855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1856. $as_echo_n "checking $2 usability... " >&6; }
  1857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1858. /* end confdefs.h. */
  1859. $4
  1860. #include <$2>
  1861. _ACEOF
  1862. if ac_fn_c_try_compile "$LINENO"; then :
  1863. ac_header_compiler=yes
  1864. else
  1865. ac_header_compiler=no
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1869. $as_echo "$ac_header_compiler" >&6; }
  1870.  
  1871. # Is the header present?
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1873. $as_echo_n "checking $2 presence... " >&6; }
  1874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1875. /* end confdefs.h. */
  1876. #include <$2>
  1877. _ACEOF
  1878. if ac_fn_c_try_cpp "$LINENO"; then :
  1879. ac_header_preproc=yes
  1880. else
  1881. ac_header_preproc=no
  1882. fi
  1883. rm -f conftest.err conftest.i conftest.$ac_ext
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1885. $as_echo "$ac_header_preproc" >&6; }
  1886.  
  1887. # So? What about this header?
  1888. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1889. yes:no: )
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1891. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1893. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1894. ;;
  1895. no:yes:* )
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1897. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1899. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1901. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1903. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1905. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1906. ;;
  1907. esac
  1908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1909. $as_echo_n "checking for $2... " >&6; }
  1910. if eval \${$3+:} false; then :
  1911. $as_echo_n "(cached) " >&6
  1912. else
  1913. eval "$3=\$ac_header_compiler"
  1914. fi
  1915. eval ac_res=\$$3
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1917. $as_echo "$ac_res" >&6; }
  1918. fi
  1919. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920.  
  1921. } # ac_fn_c_check_header_mongrel
  1922.  
  1923. # ac_fn_c_check_func LINENO FUNC VAR
  1924. # ----------------------------------
  1925. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1926. ac_fn_c_check_func ()
  1927. {
  1928. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1930. $as_echo_n "checking for $2... " >&6; }
  1931. if eval \${$3+:} false; then :
  1932. $as_echo_n "(cached) " >&6
  1933. else
  1934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1935. /* end confdefs.h. */
  1936. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1937. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1938. #define $2 innocuous_$2
  1939.  
  1940. /* System header to define __stub macros and hopefully few prototypes,
  1941. which can conflict with char $2 (); below.
  1942. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1943. <limits.h> exists even on freestanding compilers. */
  1944.  
  1945. #ifdef __STDC__
  1946. # include <limits.h>
  1947. #else
  1948. # include <assert.h>
  1949. #endif
  1950.  
  1951. #undef $2
  1952.  
  1953. /* Override any GCC internal prototype to avoid an error.
  1954. Use char because int might match the return type of a GCC
  1955. builtin and then its argument prototype would still apply. */
  1956. #ifdef __cplusplus
  1957. extern "C"
  1958. #endif
  1959. char $2 ();
  1960. /* The GNU C library defines this for functions which it implements
  1961. to always fail with ENOSYS. Some functions are actually named
  1962. something starting with __ and the normal name is an alias. */
  1963. #if defined __stub_$2 || defined __stub___$2
  1964. choke me
  1965. #endif
  1966.  
  1967. int
  1968. main ()
  1969. {
  1970. return $2 ();
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_c_try_link "$LINENO"; then :
  1976. eval "$3=yes"
  1977. else
  1978. eval "$3=no"
  1979. fi
  1980. rm -f core conftest.err conftest.$ac_objext \
  1981. conftest$ac_exeext conftest.$ac_ext
  1982. fi
  1983. eval ac_res=\$$3
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1985. $as_echo "$ac_res" >&6; }
  1986. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1987.  
  1988. } # ac_fn_c_check_func
  1989.  
  1990. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1991. # ---------------------------------------------
  1992. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1993. # accordingly.
  1994. ac_fn_c_check_decl ()
  1995. {
  1996. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1997. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1998. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2000. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2001. if eval \${$3+:} false; then :
  2002. $as_echo_n "(cached) " >&6
  2003. else
  2004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2005. /* end confdefs.h. */
  2006. $4
  2007. int
  2008. main ()
  2009. {
  2010. #ifndef $as_decl_name
  2011. #ifdef __cplusplus
  2012. (void) $as_decl_use;
  2013. #else
  2014. (void) $as_decl_name;
  2015. #endif
  2016. #endif
  2017.  
  2018. ;
  2019. return 0;
  2020. }
  2021. _ACEOF
  2022. if ac_fn_c_try_compile "$LINENO"; then :
  2023. eval "$3=yes"
  2024. else
  2025. eval "$3=no"
  2026. fi
  2027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2028. fi
  2029. eval ac_res=\$$3
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2031. $as_echo "$ac_res" >&6; }
  2032. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2033.  
  2034. } # ac_fn_c_check_decl
  2035. cat >config.log <<_ACEOF
  2036. This file contains any messages produced by compilers while
  2037. running configure, to aid debugging if configure makes a mistake.
  2038.  
  2039. It was created by Yate $as_me 6.1.1, which was
  2040. generated by GNU Autoconf 2.69. Invocation command line was
  2041.  
  2042. $ $0 $@
  2043.  
  2044. _ACEOF
  2045. exec 5>>config.log
  2046. {
  2047. cat <<_ASUNAME
  2048. ## --------- ##
  2049. ## Platform. ##
  2050. ## --------- ##
  2051.  
  2052. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2053. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2054. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2055. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2056. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2057.  
  2058. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2059. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2060.  
  2061. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2062. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2063. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2064. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2065. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2066. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2067. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2068.  
  2069. _ASUNAME
  2070.  
  2071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2072. for as_dir in $PATH
  2073. do
  2074. IFS=$as_save_IFS
  2075. test -z "$as_dir" && as_dir=.
  2076. $as_echo "PATH: $as_dir"
  2077. done
  2078. IFS=$as_save_IFS
  2079.  
  2080. } >&5
  2081.  
  2082. cat >&5 <<_ACEOF
  2083.  
  2084.  
  2085. ## ----------- ##
  2086. ## Core tests. ##
  2087. ## ----------- ##
  2088.  
  2089. _ACEOF
  2090.  
  2091.  
  2092. # Keep a trace of the command line.
  2093. # Strip out --no-create and --no-recursion so they do not pile up.
  2094. # Strip out --silent because we don't want to record it for future runs.
  2095. # Also quote any args containing shell meta-characters.
  2096. # Make two passes to allow for proper duplicate-argument suppression.
  2097. ac_configure_args=
  2098. ac_configure_args0=
  2099. ac_configure_args1=
  2100. ac_must_keep_next=false
  2101. for ac_pass in 1 2
  2102. do
  2103. for ac_arg
  2104. do
  2105. case $ac_arg in
  2106. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2107. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2108. | -silent | --silent | --silen | --sile | --sil)
  2109. continue ;;
  2110. *\'*)
  2111. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2112. esac
  2113. case $ac_pass in
  2114. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2115. 2)
  2116. as_fn_append ac_configure_args1 " '$ac_arg'"
  2117. if test $ac_must_keep_next = true; then
  2118. ac_must_keep_next=false # Got value, back to normal.
  2119. else
  2120. case $ac_arg in
  2121. *=* | --config-cache | -C | -disable-* | --disable-* \
  2122. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2123. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2124. | -with-* | --with-* | -without-* | --without-* | --x)
  2125. case "$ac_configure_args0 " in
  2126. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2127. esac
  2128. ;;
  2129. -* ) ac_must_keep_next=true ;;
  2130. esac
  2131. fi
  2132. as_fn_append ac_configure_args " '$ac_arg'"
  2133. ;;
  2134. esac
  2135. done
  2136. done
  2137. { ac_configure_args0=; unset ac_configure_args0;}
  2138. { ac_configure_args1=; unset ac_configure_args1;}
  2139.  
  2140. # When interrupted or exit'd, cleanup temporary files, and complete
  2141. # config.log. We remove comments because anyway the quotes in there
  2142. # would cause problems or look ugly.
  2143. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2144. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2145. trap 'exit_status=$?
  2146. # Save into config.log some information that might help in debugging.
  2147. {
  2148. echo
  2149.  
  2150. $as_echo "## ---------------- ##
  2151. ## Cache variables. ##
  2152. ## ---------------- ##"
  2153. echo
  2154. # The following way of writing the cache mishandles newlines in values,
  2155. (
  2156. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2157. eval ac_val=\$$ac_var
  2158. case $ac_val in #(
  2159. *${as_nl}*)
  2160. case $ac_var in #(
  2161. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2162. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2163. esac
  2164. case $ac_var in #(
  2165. _ | IFS | as_nl) ;; #(
  2166. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2167. *) { eval $ac_var=; unset $ac_var;} ;;
  2168. esac ;;
  2169. esac
  2170. done
  2171. (set) 2>&1 |
  2172. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2173. *${as_nl}ac_space=\ *)
  2174. sed -n \
  2175. "s/'\''/'\''\\\\'\'''\''/g;
  2176. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2177. ;; #(
  2178. *)
  2179. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2180. ;;
  2181. esac |
  2182. sort
  2183. )
  2184. echo
  2185.  
  2186. $as_echo "## ----------------- ##
  2187. ## Output variables. ##
  2188. ## ----------------- ##"
  2189. echo
  2190. for ac_var in $ac_subst_vars
  2191. do
  2192. eval ac_val=\$$ac_var
  2193. case $ac_val in
  2194. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2195. esac
  2196. $as_echo "$ac_var='\''$ac_val'\''"
  2197. done | sort
  2198. echo
  2199.  
  2200. if test -n "$ac_subst_files"; then
  2201. $as_echo "## ------------------- ##
  2202. ## File substitutions. ##
  2203. ## ------------------- ##"
  2204. echo
  2205. for ac_var in $ac_subst_files
  2206. do
  2207. eval ac_val=\$$ac_var
  2208. case $ac_val in
  2209. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2210. esac
  2211. $as_echo "$ac_var='\''$ac_val'\''"
  2212. done | sort
  2213. echo
  2214. fi
  2215.  
  2216. if test -s confdefs.h; then
  2217. $as_echo "## ----------- ##
  2218. ## confdefs.h. ##
  2219. ## ----------- ##"
  2220. echo
  2221. cat confdefs.h
  2222. echo
  2223. fi
  2224. test "$ac_signal" != 0 &&
  2225. $as_echo "$as_me: caught signal $ac_signal"
  2226. $as_echo "$as_me: exit $exit_status"
  2227. } >&5
  2228. rm -f core *.core core.conftest.* &&
  2229. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2230. exit $exit_status
  2231. ' 0
  2232. for ac_signal in 1 2 13 15; do
  2233. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2234. done
  2235. ac_signal=0
  2236.  
  2237. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2238. rm -f -r conftest* confdefs.h
  2239.  
  2240. $as_echo "/* confdefs.h */" > confdefs.h
  2241.  
  2242. # Predefined preprocessor variables.
  2243.  
  2244. cat >>confdefs.h <<_ACEOF
  2245. #define PACKAGE_NAME "$PACKAGE_NAME"
  2246. _ACEOF
  2247.  
  2248. cat >>confdefs.h <<_ACEOF
  2249. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2250. _ACEOF
  2251.  
  2252. cat >>confdefs.h <<_ACEOF
  2253. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2254. _ACEOF
  2255.  
  2256. cat >>confdefs.h <<_ACEOF
  2257. #define PACKAGE_STRING "$PACKAGE_STRING"
  2258. _ACEOF
  2259.  
  2260. cat >>confdefs.h <<_ACEOF
  2261. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2262. _ACEOF
  2263.  
  2264. cat >>confdefs.h <<_ACEOF
  2265. #define PACKAGE_URL "$PACKAGE_URL"
  2266. _ACEOF
  2267.  
  2268.  
  2269. # Let the site file select an alternate cache file if it wants to.
  2270. # Prefer an explicitly selected file to automatically selected ones.
  2271. ac_site_file1=NONE
  2272. ac_site_file2=NONE
  2273. if test -n "$CONFIG_SITE"; then
  2274. # We do not want a PATH search for config.site.
  2275. case $CONFIG_SITE in #((
  2276. -*) ac_site_file1=./$CONFIG_SITE;;
  2277. */*) ac_site_file1=$CONFIG_SITE;;
  2278. *) ac_site_file1=./$CONFIG_SITE;;
  2279. esac
  2280. elif test "x$prefix" != xNONE; then
  2281. ac_site_file1=$prefix/share/config.site
  2282. ac_site_file2=$prefix/etc/config.site
  2283. else
  2284. ac_site_file1=$ac_default_prefix/share/config.site
  2285. ac_site_file2=$ac_default_prefix/etc/config.site
  2286. fi
  2287. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2288. do
  2289. test "x$ac_site_file" = xNONE && continue
  2290. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2292. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2293. sed 's/^/| /' "$ac_site_file" >&5
  2294. . "$ac_site_file" \
  2295. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2296. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2297. as_fn_error $? "failed to load site script $ac_site_file
  2298. See \`config.log' for more details" "$LINENO" 5; }
  2299. fi
  2300. done
  2301.  
  2302. if test -r "$cache_file"; then
  2303. # Some versions of bash will fail to source /dev/null (special files
  2304. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2305. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2307. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2308. case $cache_file in
  2309. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2310. *) . "./$cache_file";;
  2311. esac
  2312. fi
  2313. else
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2315. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2316. >$cache_file
  2317. fi
  2318.  
  2319. # Check that the precious variables saved in the cache have kept the same
  2320. # value.
  2321. ac_cache_corrupted=false
  2322. for ac_var in $ac_precious_vars; do
  2323. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2324. eval ac_new_set=\$ac_env_${ac_var}_set
  2325. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2326. eval ac_new_val=\$ac_env_${ac_var}_value
  2327. case $ac_old_set,$ac_new_set in
  2328. set,)
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2330. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2331. ac_cache_corrupted=: ;;
  2332. ,set)
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2334. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2335. ac_cache_corrupted=: ;;
  2336. ,);;
  2337. *)
  2338. if test "x$ac_old_val" != "x$ac_new_val"; then
  2339. # differences in whitespace do not lead to failure.
  2340. ac_old_val_w=`echo x $ac_old_val`
  2341. ac_new_val_w=`echo x $ac_new_val`
  2342. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2344. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2345. ac_cache_corrupted=:
  2346. else
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2348. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2349. eval $ac_var=\$ac_old_val
  2350. fi
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2352. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2354. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2355. fi;;
  2356. esac
  2357. # Pass precious variables to config.status.
  2358. if test "$ac_new_set" = set; then
  2359. case $ac_new_val in
  2360. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2361. *) ac_arg=$ac_var=$ac_new_val ;;
  2362. esac
  2363. case " $ac_configure_args " in
  2364. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2365. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2366. esac
  2367. fi
  2368. done
  2369. if $ac_cache_corrupted; then
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2371. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2373. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2374. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2375. fi
  2376. ## -------------------- ##
  2377. ## Main body of script. ##
  2378. ## -------------------- ##
  2379.  
  2380. ac_ext=c
  2381. ac_cpp='$CPP $CPPFLAGS'
  2382. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2383. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2384. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2385.  
  2386.  
  2387.  
  2388.  
  2389.  
  2390. if echo "$ac_confdir/$ac_pwd" | grep -q '[[:space:]\\\$\"'\'']'; then
  2391. as_fn_error $? "Unsupported character(s) in source or current directory name" "$LINENO" 5
  2392. fi
  2393.  
  2394. PACKAGE_RELEASE="1"
  2395. PACKAGE_STATUS="devel"
  2396. PACKAGE_REVISION=`cd "$srcdir"; LANG=C LC_MESSAGES=C svn info 2>/dev/null | sed -n 's,^Last Changed Rev: *,,p'`
  2397. test -z "$PACKAGE_REVISION" && PACKAGE_REVISION=`cat "$srcdir/packing/revision.txt" 2>/dev/null`
  2398.  
  2399. # Check whether --with-status was given.
  2400. if test "${with_status+set}" = set; then :
  2401. withval=$with_status; PACKAGE_STATUS=$withval
  2402. fi
  2403.  
  2404.  
  2405. PACKAGE_VERSION_MAJOR="${PACKAGE_VERSION%%.*}"
  2406. PACKAGE_VERSION_MINOR="${PACKAGE_VERSION#*.}"
  2407. PACKAGE_VERSION_MINOR="${PACKAGE_VERSION_MINOR%.*}"
  2408. PACKAGE_VERSION_BUILD="${PACKAGE_VERSION##*.}"
  2409. PACKAGE_VERSION_RELEASE="$((0+${PACKAGE_RELEASE}))"
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418. # We may need the host OS type but avoid the overhead of AC_CANONICAL_SYSTEM
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local operating system type" >&5
  2420. $as_echo_n "checking for local operating system type... " >&6; }
  2421. uname_os=`uname -s`
  2422. test -x "$uname_os" && uname_os=Unknown
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uname_os" >&5
  2424. $as_echo "$uname_os" >&6; }
  2425.  
  2426. # Check if we should look for alternate library names
  2427.  
  2428. # Check whether --with-archlib was given.
  2429. if test "${with_archlib+set}" = set; then :
  2430. withval=$with_archlib; ac_cv_use_archlib=$withval
  2431. fi
  2432.  
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries directory name" >&5
  2434. $as_echo_n "checking for libraries directory name... " >&6; }
  2435. archname=`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null`
  2436. test -z "$archname" && archname=`uname -m 2>/dev/null`
  2437. test -z "$archname" && archname=`arch -k 2>/dev/null`
  2438. test -z "$archname" && archname=`arch 2>/dev/null`
  2439. ARCHLIB=""
  2440. case "x$archname" in
  2441. x*-*-*)
  2442. test -d "/usr/lib/$archname" && ARCHLIB="lib/$archname"
  2443. ;;
  2444. esac
  2445. if [ -z "$ARCHLIB" ]; then
  2446. case "x$archname" in
  2447. x*x86_64*|xppc64*|xaarch64)
  2448. ARCHLIB="lib64"
  2449. ;;
  2450. *)
  2451. ARCHLIB="lib"
  2452. esac
  2453. fi
  2454. case "x$ac_cv_use_archlib" in
  2455. x|xyes)
  2456. ;;
  2457. xno)
  2458. ARCHLIB="lib"
  2459. ;;
  2460. *)
  2461. ARCHLIB="$ac_cv_use_archlib"
  2462. esac
  2463. test -d "/usr/$ARCHLIB" || ARCHLIB="lib"
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHLIB" >&5
  2465. $as_echo "$ARCHLIB" >&6; }
  2466.  
  2467.  
  2468. # Checks for programs.
  2469. ac_ext=cpp
  2470. ac_cpp='$CXXCPP $CPPFLAGS'
  2471. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2472. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2473. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2474. if test -z "$CXX"; then
  2475. if test -n "$CCC"; then
  2476. CXX=$CCC
  2477. else
  2478. if test -n "$ac_tool_prefix"; then
  2479. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2480. do
  2481. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2482. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2484. $as_echo_n "checking for $ac_word... " >&6; }
  2485. if ${ac_cv_prog_CXX+:} false; then :
  2486. $as_echo_n "(cached) " >&6
  2487. else
  2488. if test -n "$CXX"; then
  2489. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2490. else
  2491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2492. for as_dir in $PATH
  2493. do
  2494. IFS=$as_save_IFS
  2495. test -z "$as_dir" && as_dir=.
  2496. for ac_exec_ext in '' $ac_executable_extensions; do
  2497. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2498. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2500. break 2
  2501. fi
  2502. done
  2503. done
  2504. IFS=$as_save_IFS
  2505.  
  2506. fi
  2507. fi
  2508. CXX=$ac_cv_prog_CXX
  2509. if test -n "$CXX"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2511. $as_echo "$CXX" >&6; }
  2512. else
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2514. $as_echo "no" >&6; }
  2515. fi
  2516.  
  2517.  
  2518. test -n "$CXX" && break
  2519. done
  2520. fi
  2521. if test -z "$CXX"; then
  2522. ac_ct_CXX=$CXX
  2523. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2524. do
  2525. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2526. set dummy $ac_prog; ac_word=$2
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2528. $as_echo_n "checking for $ac_word... " >&6; }
  2529. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2530. $as_echo_n "(cached) " >&6
  2531. else
  2532. if test -n "$ac_ct_CXX"; then
  2533. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2534. else
  2535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2536. for as_dir in $PATH
  2537. do
  2538. IFS=$as_save_IFS
  2539. test -z "$as_dir" && as_dir=.
  2540. for ac_exec_ext in '' $ac_executable_extensions; do
  2541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2542. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2544. break 2
  2545. fi
  2546. done
  2547. done
  2548. IFS=$as_save_IFS
  2549.  
  2550. fi
  2551. fi
  2552. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2553. if test -n "$ac_ct_CXX"; then
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2555. $as_echo "$ac_ct_CXX" >&6; }
  2556. else
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2558. $as_echo "no" >&6; }
  2559. fi
  2560.  
  2561.  
  2562. test -n "$ac_ct_CXX" && break
  2563. done
  2564.  
  2565. if test "x$ac_ct_CXX" = x; then
  2566. CXX="g++"
  2567. else
  2568. case $cross_compiling:$ac_tool_warned in
  2569. yes:)
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2572. ac_tool_warned=yes ;;
  2573. esac
  2574. CXX=$ac_ct_CXX
  2575. fi
  2576. fi
  2577.  
  2578. fi
  2579. fi
  2580. # Provide some information about the compiler.
  2581. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2582. set X $ac_compile
  2583. ac_compiler=$2
  2584. for ac_option in --version -v -V -qversion; do
  2585. { { ac_try="$ac_compiler $ac_option >&5"
  2586. case "(($ac_try" in
  2587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2588. *) ac_try_echo=$ac_try;;
  2589. esac
  2590. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2591. $as_echo "$ac_try_echo"; } >&5
  2592. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2593. ac_status=$?
  2594. if test -s conftest.err; then
  2595. sed '10a\
  2596. ... rest of stderr output deleted ...
  2597. 10q' conftest.err >conftest.er1
  2598. cat conftest.er1 >&5
  2599. fi
  2600. rm -f conftest.er1 conftest.err
  2601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2602. test $ac_status = 0; }
  2603. done
  2604.  
  2605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2606. /* end confdefs.h. */
  2607.  
  2608. int
  2609. main ()
  2610. {
  2611.  
  2612. ;
  2613. return 0;
  2614. }
  2615. _ACEOF
  2616. ac_clean_files_save=$ac_clean_files
  2617. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2618. # Try to create an executable without -o first, disregard a.out.
  2619. # It will help us diagnose broken compilers, and finding out an intuition
  2620. # of exeext.
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2622. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2623. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2624.  
  2625. # The possible output files:
  2626. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2627.  
  2628. ac_rmfiles=
  2629. for ac_file in $ac_files
  2630. do
  2631. case $ac_file in
  2632. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2633. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2634. esac
  2635. done
  2636. rm -f $ac_rmfiles
  2637.  
  2638. if { { ac_try="$ac_link_default"
  2639. case "(($ac_try" in
  2640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2641. *) ac_try_echo=$ac_try;;
  2642. esac
  2643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2644. $as_echo "$ac_try_echo"; } >&5
  2645. (eval "$ac_link_default") 2>&5
  2646. ac_status=$?
  2647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2648. test $ac_status = 0; }; then :
  2649. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2650. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2651. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2652. # so that the user can short-circuit this test for compilers unknown to
  2653. # Autoconf.
  2654. for ac_file in $ac_files ''
  2655. do
  2656. test -f "$ac_file" || continue
  2657. case $ac_file in
  2658. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2659. ;;
  2660. [ab].out )
  2661. # We found the default executable, but exeext='' is most
  2662. # certainly right.
  2663. break;;
  2664. *.* )
  2665. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2666. then :; else
  2667. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2668. fi
  2669. # We set ac_cv_exeext here because the later test for it is not
  2670. # safe: cross compilers may not add the suffix if given an `-o'
  2671. # argument, so we may need to know it at that point already.
  2672. # Even if this section looks crufty: it has the advantage of
  2673. # actually working.
  2674. break;;
  2675. * )
  2676. break;;
  2677. esac
  2678. done
  2679. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2680.  
  2681. else
  2682. ac_file=''
  2683. fi
  2684. if test -z "$ac_file"; then :
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. $as_echo "$as_me: failed program was:" >&5
  2688. sed 's/^/| /' conftest.$ac_ext >&5
  2689.  
  2690. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2691. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2692. as_fn_error 77 "C++ compiler cannot create executables
  2693. See \`config.log' for more details" "$LINENO" 5; }
  2694. else
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2696. $as_echo "yes" >&6; }
  2697. fi
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2699. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2701. $as_echo "$ac_file" >&6; }
  2702. ac_exeext=$ac_cv_exeext
  2703.  
  2704. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2705. ac_clean_files=$ac_clean_files_save
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2707. $as_echo_n "checking for suffix of executables... " >&6; }
  2708. if { { ac_try="$ac_link"
  2709. case "(($ac_try" in
  2710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2711. *) ac_try_echo=$ac_try;;
  2712. esac
  2713. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2714. $as_echo "$ac_try_echo"; } >&5
  2715. (eval "$ac_link") 2>&5
  2716. ac_status=$?
  2717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2718. test $ac_status = 0; }; then :
  2719. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2720. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2721. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2722. # `rm'.
  2723. for ac_file in conftest.exe conftest conftest.*; do
  2724. test -f "$ac_file" || continue
  2725. case $ac_file in
  2726. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2727. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2728. break;;
  2729. * ) break;;
  2730. esac
  2731. done
  2732. else
  2733. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2734. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2735. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2736. See \`config.log' for more details" "$LINENO" 5; }
  2737. fi
  2738. rm -f conftest conftest$ac_cv_exeext
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2740. $as_echo "$ac_cv_exeext" >&6; }
  2741.  
  2742. rm -f conftest.$ac_ext
  2743. EXEEXT=$ac_cv_exeext
  2744. ac_exeext=$EXEEXT
  2745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2746. /* end confdefs.h. */
  2747. #include <stdio.h>
  2748. int
  2749. main ()
  2750. {
  2751. FILE *f = fopen ("conftest.out", "w");
  2752. return ferror (f) || fclose (f) != 0;
  2753.  
  2754. ;
  2755. return 0;
  2756. }
  2757. _ACEOF
  2758. ac_clean_files="$ac_clean_files conftest.out"
  2759. # Check that the compiler produces executables we can run. If not, either
  2760. # the compiler is broken, or we cross compile.
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2762. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2763. if test "$cross_compiling" != yes; then
  2764. { { ac_try="$ac_link"
  2765. case "(($ac_try" in
  2766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2767. *) ac_try_echo=$ac_try;;
  2768. esac
  2769. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2770. $as_echo "$ac_try_echo"; } >&5
  2771. (eval "$ac_link") 2>&5
  2772. ac_status=$?
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2774. test $ac_status = 0; }
  2775. if { ac_try='./conftest$ac_cv_exeext'
  2776. { { case "(($ac_try" in
  2777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2778. *) ac_try_echo=$ac_try;;
  2779. esac
  2780. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2781. $as_echo "$ac_try_echo"; } >&5
  2782. (eval "$ac_try") 2>&5
  2783. ac_status=$?
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2785. test $ac_status = 0; }; }; then
  2786. cross_compiling=no
  2787. else
  2788. if test "$cross_compiling" = maybe; then
  2789. cross_compiling=yes
  2790. else
  2791. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2792. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2793. as_fn_error $? "cannot run C++ compiled programs.
  2794. If you meant to cross compile, use \`--host'.
  2795. See \`config.log' for more details" "$LINENO" 5; }
  2796. fi
  2797. fi
  2798. fi
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2800. $as_echo "$cross_compiling" >&6; }
  2801.  
  2802. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2803. ac_clean_files=$ac_clean_files_save
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2805. $as_echo_n "checking for suffix of object files... " >&6; }
  2806. if ${ac_cv_objext+:} false; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2810. /* end confdefs.h. */
  2811.  
  2812. int
  2813. main ()
  2814. {
  2815.  
  2816. ;
  2817. return 0;
  2818. }
  2819. _ACEOF
  2820. rm -f conftest.o conftest.obj
  2821. if { { ac_try="$ac_compile"
  2822. case "(($ac_try" in
  2823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2824. *) ac_try_echo=$ac_try;;
  2825. esac
  2826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2827. $as_echo "$ac_try_echo"; } >&5
  2828. (eval "$ac_compile") 2>&5
  2829. ac_status=$?
  2830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2831. test $ac_status = 0; }; then :
  2832. for ac_file in conftest.o conftest.obj conftest.*; do
  2833. test -f "$ac_file" || continue;
  2834. case $ac_file in
  2835. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2836. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2837. break;;
  2838. esac
  2839. done
  2840. else
  2841. $as_echo "$as_me: failed program was:" >&5
  2842. sed 's/^/| /' conftest.$ac_ext >&5
  2843.  
  2844. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2845. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2846. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2847. See \`config.log' for more details" "$LINENO" 5; }
  2848. fi
  2849. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2850. fi
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2852. $as_echo "$ac_cv_objext" >&6; }
  2853. OBJEXT=$ac_cv_objext
  2854. ac_objext=$OBJEXT
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2856. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2857. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2858. $as_echo_n "(cached) " >&6
  2859. else
  2860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2861. /* end confdefs.h. */
  2862.  
  2863. int
  2864. main ()
  2865. {
  2866. #ifndef __GNUC__
  2867. choke me
  2868. #endif
  2869.  
  2870. ;
  2871. return 0;
  2872. }
  2873. _ACEOF
  2874. if ac_fn_cxx_try_compile "$LINENO"; then :
  2875. ac_compiler_gnu=yes
  2876. else
  2877. ac_compiler_gnu=no
  2878. fi
  2879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2880. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2881.  
  2882. fi
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2884. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2885. if test $ac_compiler_gnu = yes; then
  2886. GXX=yes
  2887. else
  2888. GXX=
  2889. fi
  2890. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2891. ac_save_CXXFLAGS=$CXXFLAGS
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2893. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2894. if ${ac_cv_prog_cxx_g+:} false; then :
  2895. $as_echo_n "(cached) " >&6
  2896. else
  2897. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2898. ac_cxx_werror_flag=yes
  2899. ac_cv_prog_cxx_g=no
  2900. CXXFLAGS="-g"
  2901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2902. /* end confdefs.h. */
  2903.  
  2904. int
  2905. main ()
  2906. {
  2907.  
  2908. ;
  2909. return 0;
  2910. }
  2911. _ACEOF
  2912. if ac_fn_cxx_try_compile "$LINENO"; then :
  2913. ac_cv_prog_cxx_g=yes
  2914. else
  2915. CXXFLAGS=""
  2916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2917. /* end confdefs.h. */
  2918.  
  2919. int
  2920. main ()
  2921. {
  2922.  
  2923. ;
  2924. return 0;
  2925. }
  2926. _ACEOF
  2927. if ac_fn_cxx_try_compile "$LINENO"; then :
  2928.  
  2929. else
  2930. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2931. CXXFLAGS="-g"
  2932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2933. /* end confdefs.h. */
  2934.  
  2935. int
  2936. main ()
  2937. {
  2938.  
  2939. ;
  2940. return 0;
  2941. }
  2942. _ACEOF
  2943. if ac_fn_cxx_try_compile "$LINENO"; then :
  2944. ac_cv_prog_cxx_g=yes
  2945. fi
  2946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2947. fi
  2948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. fi
  2950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2951. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2952. fi
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2954. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2955. if test "$ac_test_CXXFLAGS" = set; then
  2956. CXXFLAGS=$ac_save_CXXFLAGS
  2957. elif test $ac_cv_prog_cxx_g = yes; then
  2958. if test "$GXX" = yes; then
  2959. CXXFLAGS="-g -O2"
  2960. else
  2961. CXXFLAGS="-g"
  2962. fi
  2963. else
  2964. if test "$GXX" = yes; then
  2965. CXXFLAGS="-O2"
  2966. else
  2967. CXXFLAGS=
  2968. fi
  2969. fi
  2970. ac_ext=c
  2971. ac_cpp='$CPP $CPPFLAGS'
  2972. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2973. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2974. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2975.  
  2976. ac_ext=c
  2977. ac_cpp='$CPP $CPPFLAGS'
  2978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2981. if test -n "$ac_tool_prefix"; then
  2982. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2983. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2985. $as_echo_n "checking for $ac_word... " >&6; }
  2986. if ${ac_cv_prog_CC+:} false; then :
  2987. $as_echo_n "(cached) " >&6
  2988. else
  2989. if test -n "$CC"; then
  2990. ac_cv_prog_CC="$CC" # Let the user override the test.
  2991. else
  2992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2993. for as_dir in $PATH
  2994. do
  2995. IFS=$as_save_IFS
  2996. test -z "$as_dir" && as_dir=.
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2999. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3001. break 2
  3002. fi
  3003. done
  3004. done
  3005. IFS=$as_save_IFS
  3006.  
  3007. fi
  3008. fi
  3009. CC=$ac_cv_prog_CC
  3010. if test -n "$CC"; then
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3012. $as_echo "$CC" >&6; }
  3013. else
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3015. $as_echo "no" >&6; }
  3016. fi
  3017.  
  3018.  
  3019. fi
  3020. if test -z "$ac_cv_prog_CC"; then
  3021. ac_ct_CC=$CC
  3022. # Extract the first word of "gcc", so it can be a program name with args.
  3023. set dummy gcc; ac_word=$2
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3025. $as_echo_n "checking for $ac_word... " >&6; }
  3026. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3027. $as_echo_n "(cached) " >&6
  3028. else
  3029. if test -n "$ac_ct_CC"; then
  3030. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3031. else
  3032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3033. for as_dir in $PATH
  3034. do
  3035. IFS=$as_save_IFS
  3036. test -z "$as_dir" && as_dir=.
  3037. for ac_exec_ext in '' $ac_executable_extensions; do
  3038. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3039. ac_cv_prog_ac_ct_CC="gcc"
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3041. break 2
  3042. fi
  3043. done
  3044. done
  3045. IFS=$as_save_IFS
  3046.  
  3047. fi
  3048. fi
  3049. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3050. if test -n "$ac_ct_CC"; then
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3052. $as_echo "$ac_ct_CC" >&6; }
  3053. else
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3055. $as_echo "no" >&6; }
  3056. fi
  3057.  
  3058. if test "x$ac_ct_CC" = x; then
  3059. CC=""
  3060. else
  3061. case $cross_compiling:$ac_tool_warned in
  3062. yes:)
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3065. ac_tool_warned=yes ;;
  3066. esac
  3067. CC=$ac_ct_CC
  3068. fi
  3069. else
  3070. CC="$ac_cv_prog_CC"
  3071. fi
  3072.  
  3073. if test -z "$CC"; then
  3074. if test -n "$ac_tool_prefix"; then
  3075. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3076. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3078. $as_echo_n "checking for $ac_word... " >&6; }
  3079. if ${ac_cv_prog_CC+:} false; then :
  3080. $as_echo_n "(cached) " >&6
  3081. else
  3082. if test -n "$CC"; then
  3083. ac_cv_prog_CC="$CC" # Let the user override the test.
  3084. else
  3085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3086. for as_dir in $PATH
  3087. do
  3088. IFS=$as_save_IFS
  3089. test -z "$as_dir" && as_dir=.
  3090. for ac_exec_ext in '' $ac_executable_extensions; do
  3091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3092. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3094. break 2
  3095. fi
  3096. done
  3097. done
  3098. IFS=$as_save_IFS
  3099.  
  3100. fi
  3101. fi
  3102. CC=$ac_cv_prog_CC
  3103. if test -n "$CC"; then
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3105. $as_echo "$CC" >&6; }
  3106. else
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3108. $as_echo "no" >&6; }
  3109. fi
  3110.  
  3111.  
  3112. fi
  3113. fi
  3114. if test -z "$CC"; then
  3115. # Extract the first word of "cc", so it can be a program name with args.
  3116. set dummy cc; ac_word=$2
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3118. $as_echo_n "checking for $ac_word... " >&6; }
  3119. if ${ac_cv_prog_CC+:} false; then :
  3120. $as_echo_n "(cached) " >&6
  3121. else
  3122. if test -n "$CC"; then
  3123. ac_cv_prog_CC="$CC" # Let the user override the test.
  3124. else
  3125. ac_prog_rejected=no
  3126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3127. for as_dir in $PATH
  3128. do
  3129. IFS=$as_save_IFS
  3130. test -z "$as_dir" && as_dir=.
  3131. for ac_exec_ext in '' $ac_executable_extensions; do
  3132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3133. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3134. ac_prog_rejected=yes
  3135. continue
  3136. fi
  3137. ac_cv_prog_CC="cc"
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3139. break 2
  3140. fi
  3141. done
  3142. done
  3143. IFS=$as_save_IFS
  3144.  
  3145. if test $ac_prog_rejected = yes; then
  3146. # We found a bogon in the path, so make sure we never use it.
  3147. set dummy $ac_cv_prog_CC
  3148. shift
  3149. if test $# != 0; then
  3150. # We chose a different compiler from the bogus one.
  3151. # However, it has the same basename, so the bogon will be chosen
  3152. # first if we set CC to just the basename; use the full file name.
  3153. shift
  3154. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3155. fi
  3156. fi
  3157. fi
  3158. fi
  3159. CC=$ac_cv_prog_CC
  3160. if test -n "$CC"; then
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3162. $as_echo "$CC" >&6; }
  3163. else
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3165. $as_echo "no" >&6; }
  3166. fi
  3167.  
  3168.  
  3169. fi
  3170. if test -z "$CC"; then
  3171. if test -n "$ac_tool_prefix"; then
  3172. for ac_prog in cl.exe
  3173. do
  3174. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3175. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3177. $as_echo_n "checking for $ac_word... " >&6; }
  3178. if ${ac_cv_prog_CC+:} false; then :
  3179. $as_echo_n "(cached) " >&6
  3180. else
  3181. if test -n "$CC"; then
  3182. ac_cv_prog_CC="$CC" # Let the user override the test.
  3183. else
  3184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3185. for as_dir in $PATH
  3186. do
  3187. IFS=$as_save_IFS
  3188. test -z "$as_dir" && as_dir=.
  3189. for ac_exec_ext in '' $ac_executable_extensions; do
  3190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3191. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3193. break 2
  3194. fi
  3195. done
  3196. done
  3197. IFS=$as_save_IFS
  3198.  
  3199. fi
  3200. fi
  3201. CC=$ac_cv_prog_CC
  3202. if test -n "$CC"; then
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3204. $as_echo "$CC" >&6; }
  3205. else
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3207. $as_echo "no" >&6; }
  3208. fi
  3209.  
  3210.  
  3211. test -n "$CC" && break
  3212. done
  3213. fi
  3214. if test -z "$CC"; then
  3215. ac_ct_CC=$CC
  3216. for ac_prog in cl.exe
  3217. do
  3218. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3219. set dummy $ac_prog; ac_word=$2
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3221. $as_echo_n "checking for $ac_word... " >&6; }
  3222. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3223. $as_echo_n "(cached) " >&6
  3224. else
  3225. if test -n "$ac_ct_CC"; then
  3226. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3227. else
  3228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3229. for as_dir in $PATH
  3230. do
  3231. IFS=$as_save_IFS
  3232. test -z "$as_dir" && as_dir=.
  3233. for ac_exec_ext in '' $ac_executable_extensions; do
  3234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3235. ac_cv_prog_ac_ct_CC="$ac_prog"
  3236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3237. break 2
  3238. fi
  3239. done
  3240. done
  3241. IFS=$as_save_IFS
  3242.  
  3243. fi
  3244. fi
  3245. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3246. if test -n "$ac_ct_CC"; then
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3248. $as_echo "$ac_ct_CC" >&6; }
  3249. else
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3251. $as_echo "no" >&6; }
  3252. fi
  3253.  
  3254.  
  3255. test -n "$ac_ct_CC" && break
  3256. done
  3257.  
  3258. if test "x$ac_ct_CC" = x; then
  3259. CC=""
  3260. else
  3261. case $cross_compiling:$ac_tool_warned in
  3262. yes:)
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3264. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3265. ac_tool_warned=yes ;;
  3266. esac
  3267. CC=$ac_ct_CC
  3268. fi
  3269. fi
  3270.  
  3271. fi
  3272.  
  3273.  
  3274. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3275. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3276. as_fn_error $? "no acceptable C compiler found in \$PATH
  3277. See \`config.log' for more details" "$LINENO" 5; }
  3278.  
  3279. # Provide some information about the compiler.
  3280. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3281. set X $ac_compile
  3282. ac_compiler=$2
  3283. for ac_option in --version -v -V -qversion; do
  3284. { { ac_try="$ac_compiler $ac_option >&5"
  3285. case "(($ac_try" in
  3286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3287. *) ac_try_echo=$ac_try;;
  3288. esac
  3289. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3290. $as_echo "$ac_try_echo"; } >&5
  3291. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3292. ac_status=$?
  3293. if test -s conftest.err; then
  3294. sed '10a\
  3295. ... rest of stderr output deleted ...
  3296. 10q' conftest.err >conftest.er1
  3297. cat conftest.er1 >&5
  3298. fi
  3299. rm -f conftest.er1 conftest.err
  3300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3301. test $ac_status = 0; }
  3302. done
  3303.  
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3305. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3306. if ${ac_cv_c_compiler_gnu+:} false; then :
  3307. $as_echo_n "(cached) " >&6
  3308. else
  3309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3310. /* end confdefs.h. */
  3311.  
  3312. int
  3313. main ()
  3314. {
  3315. #ifndef __GNUC__
  3316. choke me
  3317. #endif
  3318.  
  3319. ;
  3320. return 0;
  3321. }
  3322. _ACEOF
  3323. if ac_fn_c_try_compile "$LINENO"; then :
  3324. ac_compiler_gnu=yes
  3325. else
  3326. ac_compiler_gnu=no
  3327. fi
  3328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3329. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3330.  
  3331. fi
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3333. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3334. if test $ac_compiler_gnu = yes; then
  3335. GCC=yes
  3336. else
  3337. GCC=
  3338. fi
  3339. ac_test_CFLAGS=${CFLAGS+set}
  3340. ac_save_CFLAGS=$CFLAGS
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3342. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3343. if ${ac_cv_prog_cc_g+:} false; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. ac_save_c_werror_flag=$ac_c_werror_flag
  3347. ac_c_werror_flag=yes
  3348. ac_cv_prog_cc_g=no
  3349. CFLAGS="-g"
  3350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3351. /* end confdefs.h. */
  3352.  
  3353. int
  3354. main ()
  3355. {
  3356.  
  3357. ;
  3358. return 0;
  3359. }
  3360. _ACEOF
  3361. if ac_fn_c_try_compile "$LINENO"; then :
  3362. ac_cv_prog_cc_g=yes
  3363. else
  3364. CFLAGS=""
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367.  
  3368. int
  3369. main ()
  3370. {
  3371.  
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. if ac_fn_c_try_compile "$LINENO"; then :
  3377.  
  3378. else
  3379. ac_c_werror_flag=$ac_save_c_werror_flag
  3380. CFLAGS="-g"
  3381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3382. /* end confdefs.h. */
  3383.  
  3384. int
  3385. main ()
  3386. {
  3387.  
  3388. ;
  3389. return 0;
  3390. }
  3391. _ACEOF
  3392. if ac_fn_c_try_compile "$LINENO"; then :
  3393. ac_cv_prog_cc_g=yes
  3394. fi
  3395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3396. fi
  3397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3398. fi
  3399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3400. ac_c_werror_flag=$ac_save_c_werror_flag
  3401. fi
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3403. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3404. if test "$ac_test_CFLAGS" = set; then
  3405. CFLAGS=$ac_save_CFLAGS
  3406. elif test $ac_cv_prog_cc_g = yes; then
  3407. if test "$GCC" = yes; then
  3408. CFLAGS="-g -O2"
  3409. else
  3410. CFLAGS="-g"
  3411. fi
  3412. else
  3413. if test "$GCC" = yes; then
  3414. CFLAGS="-O2"
  3415. else
  3416. CFLAGS=
  3417. fi
  3418. fi
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3420. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3421. if ${ac_cv_prog_cc_c89+:} false; then :
  3422. $as_echo_n "(cached) " >&6
  3423. else
  3424. ac_cv_prog_cc_c89=no
  3425. ac_save_CC=$CC
  3426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3427. /* end confdefs.h. */
  3428. #include <stdarg.h>
  3429. #include <stdio.h>
  3430. struct stat;
  3431. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3432. struct buf { int x; };
  3433. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3434. static char *e (p, i)
  3435. char **p;
  3436. int i;
  3437. {
  3438. return p[i];
  3439. }
  3440. static char *f (char * (*g) (char **, int), char **p, ...)
  3441. {
  3442. char *s;
  3443. va_list v;
  3444. va_start (v,p);
  3445. s = g (p, va_arg (v,int));
  3446. va_end (v);
  3447. return s;
  3448. }
  3449.  
  3450. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3451. function prototypes and stuff, but not '\xHH' hex character constants.
  3452. These don't provoke an error unfortunately, instead are silently treated
  3453. as 'x'. The following induces an error, until -std is added to get
  3454. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3455. array size at least. It's necessary to write '\x00'==0 to get something
  3456. that's true only with -std. */
  3457. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3458.  
  3459. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3460. inside strings and character constants. */
  3461. #define FOO(x) 'x'
  3462. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3463.  
  3464. int test (int i, double x);
  3465. struct s1 {int (*f) (int a);};
  3466. struct s2 {int (*f) (double a);};
  3467. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3468. int argc;
  3469. char **argv;
  3470. int
  3471. main ()
  3472. {
  3473. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3474. ;
  3475. return 0;
  3476. }
  3477. _ACEOF
  3478. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3479. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3480. do
  3481. CC="$ac_save_CC $ac_arg"
  3482. if ac_fn_c_try_compile "$LINENO"; then :
  3483. ac_cv_prog_cc_c89=$ac_arg
  3484. fi
  3485. rm -f core conftest.err conftest.$ac_objext
  3486. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3487. done
  3488. rm -f conftest.$ac_ext
  3489. CC=$ac_save_CC
  3490.  
  3491. fi
  3492. # AC_CACHE_VAL
  3493. case "x$ac_cv_prog_cc_c89" in
  3494. x)
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3496. $as_echo "none needed" >&6; } ;;
  3497. xno)
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3499. $as_echo "unsupported" >&6; } ;;
  3500. *)
  3501. CC="$CC $ac_cv_prog_cc_c89"
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3503. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3504. esac
  3505. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3506.  
  3507. fi
  3508.  
  3509. ac_ext=c
  3510. ac_cpp='$CPP $CPPFLAGS'
  3511. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3512. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3513. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3514.  
  3515. for ac_prog in gawk mawk nawk awk
  3516. do
  3517. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3518. set dummy $ac_prog; ac_word=$2
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3520. $as_echo_n "checking for $ac_word... " >&6; }
  3521. if ${ac_cv_prog_AWK+:} false; then :
  3522. $as_echo_n "(cached) " >&6
  3523. else
  3524. if test -n "$AWK"; then
  3525. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3526. else
  3527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3528. for as_dir in $PATH
  3529. do
  3530. IFS=$as_save_IFS
  3531. test -z "$as_dir" && as_dir=.
  3532. for ac_exec_ext in '' $ac_executable_extensions; do
  3533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3534. ac_cv_prog_AWK="$ac_prog"
  3535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3536. break 2
  3537. fi
  3538. done
  3539. done
  3540. IFS=$as_save_IFS
  3541.  
  3542. fi
  3543. fi
  3544. AWK=$ac_cv_prog_AWK
  3545. if test -n "$AWK"; then
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3547. $as_echo "$AWK" >&6; }
  3548. else
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3550. $as_echo "no" >&6; }
  3551. fi
  3552.  
  3553.  
  3554. test -n "$AWK" && break
  3555. done
  3556.  
  3557.  
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sed command to use" >&5
  3559. $as_echo_n "checking for sed command to use... " >&6; }
  3560. # sed expression to convert version into something comparable lexicographically
  3561. csed='sed'
  3562. vsed='s/\(^\|\.\)\([0-9]\)\($\|\.\)/\10\2\3/g'
  3563. if [ -n "`echo a | sed 's/a\|b//'`" ]; then
  3564. csed='sed -E'
  3565. vsed='s/(^|\.)([0-9])($|\.)/\10\2\3/g'
  3566. fi
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $csed" >&5
  3568. $as_echo "$csed" >&6; }
  3569.  
  3570.  
  3571. ac_ext=c
  3572. ac_cpp='$CPP $CPPFLAGS'
  3573. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3574. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3575. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3577. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3578. # On Suns, sometimes $CPP names a directory.
  3579. if test -n "$CPP" && test -d "$CPP"; then
  3580. CPP=
  3581. fi
  3582. if test -z "$CPP"; then
  3583. if ${ac_cv_prog_CPP+:} false; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. # Double quotes because CPP needs to be expanded
  3587. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3588. do
  3589. ac_preproc_ok=false
  3590. for ac_c_preproc_warn_flag in '' yes
  3591. do
  3592. # Use a header file that comes with gcc, so configuring glibc
  3593. # with a fresh cross-compiler works.
  3594. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3595. # <limits.h> exists even on freestanding compilers.
  3596. # On the NeXT, cc -E runs the code through the compiler's parser,
  3597. # not just through cpp. "Syntax error" is here to catch this case.
  3598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3599. /* end confdefs.h. */
  3600. #ifdef __STDC__
  3601. # include <limits.h>
  3602. #else
  3603. # include <assert.h>
  3604. #endif
  3605. Syntax error
  3606. _ACEOF
  3607. if ac_fn_c_try_cpp "$LINENO"; then :
  3608.  
  3609. else
  3610. # Broken: fails on valid input.
  3611. continue
  3612. fi
  3613. rm -f conftest.err conftest.i conftest.$ac_ext
  3614.  
  3615. # OK, works on sane cases. Now check whether nonexistent headers
  3616. # can be detected and how.
  3617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3618. /* end confdefs.h. */
  3619. #include <ac_nonexistent.h>
  3620. _ACEOF
  3621. if ac_fn_c_try_cpp "$LINENO"; then :
  3622. # Broken: success on invalid input.
  3623. continue
  3624. else
  3625. # Passes both tests.
  3626. ac_preproc_ok=:
  3627. break
  3628. fi
  3629. rm -f conftest.err conftest.i conftest.$ac_ext
  3630.  
  3631. done
  3632. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3633. rm -f conftest.i conftest.err conftest.$ac_ext
  3634. if $ac_preproc_ok; then :
  3635. break
  3636. fi
  3637.  
  3638. done
  3639. ac_cv_prog_CPP=$CPP
  3640.  
  3641. fi
  3642. CPP=$ac_cv_prog_CPP
  3643. else
  3644. ac_cv_prog_CPP=$CPP
  3645. fi
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3647. $as_echo "$CPP" >&6; }
  3648. ac_preproc_ok=false
  3649. for ac_c_preproc_warn_flag in '' yes
  3650. do
  3651. # Use a header file that comes with gcc, so configuring glibc
  3652. # with a fresh cross-compiler works.
  3653. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3654. # <limits.h> exists even on freestanding compilers.
  3655. # On the NeXT, cc -E runs the code through the compiler's parser,
  3656. # not just through cpp. "Syntax error" is here to catch this case.
  3657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3658. /* end confdefs.h. */
  3659. #ifdef __STDC__
  3660. # include <limits.h>
  3661. #else
  3662. # include <assert.h>
  3663. #endif
  3664. Syntax error
  3665. _ACEOF
  3666. if ac_fn_c_try_cpp "$LINENO"; then :
  3667.  
  3668. else
  3669. # Broken: fails on valid input.
  3670. continue
  3671. fi
  3672. rm -f conftest.err conftest.i conftest.$ac_ext
  3673.  
  3674. # OK, works on sane cases. Now check whether nonexistent headers
  3675. # can be detected and how.
  3676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3677. /* end confdefs.h. */
  3678. #include <ac_nonexistent.h>
  3679. _ACEOF
  3680. if ac_fn_c_try_cpp "$LINENO"; then :
  3681. # Broken: success on invalid input.
  3682. continue
  3683. else
  3684. # Passes both tests.
  3685. ac_preproc_ok=:
  3686. break
  3687. fi
  3688. rm -f conftest.err conftest.i conftest.$ac_ext
  3689.  
  3690. done
  3691. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3692. rm -f conftest.i conftest.err conftest.$ac_ext
  3693. if $ac_preproc_ok; then :
  3694.  
  3695. else
  3696. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3697. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3698. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3699. See \`config.log' for more details" "$LINENO" 5; }
  3700. fi
  3701.  
  3702. ac_ext=c
  3703. ac_cpp='$CPP $CPPFLAGS'
  3704. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3705. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3706. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3707.  
  3708.  
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3710. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3711. if ${ac_cv_path_GREP+:} false; then :
  3712. $as_echo_n "(cached) " >&6
  3713. else
  3714. if test -z "$GREP"; then
  3715. ac_path_GREP_found=false
  3716. # Loop through the user's path and test for each of PROGNAME-LIST
  3717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3718. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3719. do
  3720. IFS=$as_save_IFS
  3721. test -z "$as_dir" && as_dir=.
  3722. for ac_prog in grep ggrep; do
  3723. for ac_exec_ext in '' $ac_executable_extensions; do
  3724. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3725. as_fn_executable_p "$ac_path_GREP" || continue
  3726. # Check for GNU ac_path_GREP and select it if it is found.
  3727. # Check for GNU $ac_path_GREP
  3728. case `"$ac_path_GREP" --version 2>&1` in
  3729. *GNU*)
  3730. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3731. *)
  3732. ac_count=0
  3733. $as_echo_n 0123456789 >"conftest.in"
  3734. while :
  3735. do
  3736. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3737. mv "conftest.tmp" "conftest.in"
  3738. cp "conftest.in" "conftest.nl"
  3739. $as_echo 'GREP' >> "conftest.nl"
  3740. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3741. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3742. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3743. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3744. # Best one so far, save it but keep looking for a better one
  3745. ac_cv_path_GREP="$ac_path_GREP"
  3746. ac_path_GREP_max=$ac_count
  3747. fi
  3748. # 10*(2^10) chars as input seems more than enough
  3749. test $ac_count -gt 10 && break
  3750. done
  3751. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3752. esac
  3753.  
  3754. $ac_path_GREP_found && break 3
  3755. done
  3756. done
  3757. done
  3758. IFS=$as_save_IFS
  3759. if test -z "$ac_cv_path_GREP"; then
  3760. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3761. fi
  3762. else
  3763. ac_cv_path_GREP=$GREP
  3764. fi
  3765.  
  3766. fi
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3768. $as_echo "$ac_cv_path_GREP" >&6; }
  3769. GREP="$ac_cv_path_GREP"
  3770.  
  3771.  
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3773. $as_echo_n "checking for egrep... " >&6; }
  3774. if ${ac_cv_path_EGREP+:} false; then :
  3775. $as_echo_n "(cached) " >&6
  3776. else
  3777. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3778. then ac_cv_path_EGREP="$GREP -E"
  3779. else
  3780. if test -z "$EGREP"; then
  3781. ac_path_EGREP_found=false
  3782. # Loop through the user's path and test for each of PROGNAME-LIST
  3783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3784. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3785. do
  3786. IFS=$as_save_IFS
  3787. test -z "$as_dir" && as_dir=.
  3788. for ac_prog in egrep; do
  3789. for ac_exec_ext in '' $ac_executable_extensions; do
  3790. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3791. as_fn_executable_p "$ac_path_EGREP" || continue
  3792. # Check for GNU ac_path_EGREP and select it if it is found.
  3793. # Check for GNU $ac_path_EGREP
  3794. case `"$ac_path_EGREP" --version 2>&1` in
  3795. *GNU*)
  3796. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3797. *)
  3798. ac_count=0
  3799. $as_echo_n 0123456789 >"conftest.in"
  3800. while :
  3801. do
  3802. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3803. mv "conftest.tmp" "conftest.in"
  3804. cp "conftest.in" "conftest.nl"
  3805. $as_echo 'EGREP' >> "conftest.nl"
  3806. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3807. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3808. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3809. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3810. # Best one so far, save it but keep looking for a better one
  3811. ac_cv_path_EGREP="$ac_path_EGREP"
  3812. ac_path_EGREP_max=$ac_count
  3813. fi
  3814. # 10*(2^10) chars as input seems more than enough
  3815. test $ac_count -gt 10 && break
  3816. done
  3817. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3818. esac
  3819.  
  3820. $ac_path_EGREP_found && break 3
  3821. done
  3822. done
  3823. done
  3824. IFS=$as_save_IFS
  3825. if test -z "$ac_cv_path_EGREP"; then
  3826. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3827. fi
  3828. else
  3829. ac_cv_path_EGREP=$EGREP
  3830. fi
  3831.  
  3832. fi
  3833. fi
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3835. $as_echo "$ac_cv_path_EGREP" >&6; }
  3836. EGREP="$ac_cv_path_EGREP"
  3837.  
  3838.  
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3840. $as_echo_n "checking for ANSI C header files... " >&6; }
  3841. if ${ac_cv_header_stdc+:} false; then :
  3842. $as_echo_n "(cached) " >&6
  3843. else
  3844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3845. /* end confdefs.h. */
  3846. #include <stdlib.h>
  3847. #include <stdarg.h>
  3848. #include <string.h>
  3849. #include <float.h>
  3850.  
  3851. int
  3852. main ()
  3853. {
  3854.  
  3855. ;
  3856. return 0;
  3857. }
  3858. _ACEOF
  3859. if ac_fn_c_try_compile "$LINENO"; then :
  3860. ac_cv_header_stdc=yes
  3861. else
  3862. ac_cv_header_stdc=no
  3863. fi
  3864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3865.  
  3866. if test $ac_cv_header_stdc = yes; then
  3867. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3869. /* end confdefs.h. */
  3870. #include <string.h>
  3871.  
  3872. _ACEOF
  3873. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3874. $EGREP "memchr" >/dev/null 2>&1; then :
  3875.  
  3876. else
  3877. ac_cv_header_stdc=no
  3878. fi
  3879. rm -f conftest*
  3880.  
  3881. fi
  3882.  
  3883. if test $ac_cv_header_stdc = yes; then
  3884. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3886. /* end confdefs.h. */
  3887. #include <stdlib.h>
  3888.  
  3889. _ACEOF
  3890. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3891. $EGREP "free" >/dev/null 2>&1; then :
  3892.  
  3893. else
  3894. ac_cv_header_stdc=no
  3895. fi
  3896. rm -f conftest*
  3897.  
  3898. fi
  3899.  
  3900. if test $ac_cv_header_stdc = yes; then
  3901. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3902. if test "$cross_compiling" = yes; then :
  3903. :
  3904. else
  3905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3906. /* end confdefs.h. */
  3907. #include <ctype.h>
  3908. #include <stdlib.h>
  3909. #if ((' ' & 0x0FF) == 0x020)
  3910. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3911. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3912. #else
  3913. # define ISLOWER(c) \
  3914. (('a' <= (c) && (c) <= 'i') \
  3915. || ('j' <= (c) && (c) <= 'r') \
  3916. || ('s' <= (c) && (c) <= 'z'))
  3917. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3918. #endif
  3919.  
  3920. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3921. int
  3922. main ()
  3923. {
  3924. int i;
  3925. for (i = 0; i < 256; i++)
  3926. if (XOR (islower (i), ISLOWER (i))
  3927. || toupper (i) != TOUPPER (i))
  3928. return 2;
  3929. return 0;
  3930. }
  3931. _ACEOF
  3932. if ac_fn_c_try_run "$LINENO"; then :
  3933.  
  3934. else
  3935. ac_cv_header_stdc=no
  3936. fi
  3937. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3938. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3939. fi
  3940.  
  3941. fi
  3942. fi
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3944. $as_echo "$ac_cv_header_stdc" >&6; }
  3945. if test $ac_cv_header_stdc = yes; then
  3946.  
  3947. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3948.  
  3949. fi
  3950.  
  3951. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3952. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3953. inttypes.h stdint.h unistd.h
  3954. do :
  3955. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3956. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3957. "
  3958. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3959. cat >>confdefs.h <<_ACEOF
  3960. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3961. _ACEOF
  3962.  
  3963. fi
  3964.  
  3965. done
  3966.  
  3967.  
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  3969. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  3970. if ${ac_cv_c_bigendian+:} false; then :
  3971. $as_echo_n "(cached) " >&6
  3972. else
  3973. ac_cv_c_bigendian=unknown
  3974. # See if we're dealing with a universal compiler.
  3975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3976. /* end confdefs.h. */
  3977. #ifndef __APPLE_CC__
  3978. not a universal capable compiler
  3979. #endif
  3980. typedef int dummy;
  3981.  
  3982. _ACEOF
  3983. if ac_fn_c_try_compile "$LINENO"; then :
  3984.  
  3985. # Check for potential -arch flags. It is not universal unless
  3986. # there are at least two -arch flags with different values.
  3987. ac_arch=
  3988. ac_prev=
  3989. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  3990. if test -n "$ac_prev"; then
  3991. case $ac_word in
  3992. i?86 | x86_64 | ppc | ppc64)
  3993. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  3994. ac_arch=$ac_word
  3995. else
  3996. ac_cv_c_bigendian=universal
  3997. break
  3998. fi
  3999. ;;
  4000. esac
  4001. ac_prev=
  4002. elif test "x$ac_word" = "x-arch"; then
  4003. ac_prev=arch
  4004. fi
  4005. done
  4006. fi
  4007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4008. if test $ac_cv_c_bigendian = unknown; then
  4009. # See if sys/param.h defines the BYTE_ORDER macro.
  4010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4011. /* end confdefs.h. */
  4012. #include <sys/types.h>
  4013. #include <sys/param.h>
  4014.  
  4015. int
  4016. main ()
  4017. {
  4018. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4019. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4020. && LITTLE_ENDIAN)
  4021. bogus endian macros
  4022. #endif
  4023.  
  4024. ;
  4025. return 0;
  4026. }
  4027. _ACEOF
  4028. if ac_fn_c_try_compile "$LINENO"; then :
  4029. # It does; now see whether it defined to BIG_ENDIAN or not.
  4030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4031. /* end confdefs.h. */
  4032. #include <sys/types.h>
  4033. #include <sys/param.h>
  4034.  
  4035. int
  4036. main ()
  4037. {
  4038. #if BYTE_ORDER != BIG_ENDIAN
  4039. not big endian
  4040. #endif
  4041.  
  4042. ;
  4043. return 0;
  4044. }
  4045. _ACEOF
  4046. if ac_fn_c_try_compile "$LINENO"; then :
  4047. ac_cv_c_bigendian=yes
  4048. else
  4049. ac_cv_c_bigendian=no
  4050. fi
  4051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4052. fi
  4053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4054. fi
  4055. if test $ac_cv_c_bigendian = unknown; then
  4056. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4058. /* end confdefs.h. */
  4059. #include <limits.h>
  4060.  
  4061. int
  4062. main ()
  4063. {
  4064. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4065. bogus endian macros
  4066. #endif
  4067.  
  4068. ;
  4069. return 0;
  4070. }
  4071. _ACEOF
  4072. if ac_fn_c_try_compile "$LINENO"; then :
  4073. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4075. /* end confdefs.h. */
  4076. #include <limits.h>
  4077.  
  4078. int
  4079. main ()
  4080. {
  4081. #ifndef _BIG_ENDIAN
  4082. not big endian
  4083. #endif
  4084.  
  4085. ;
  4086. return 0;
  4087. }
  4088. _ACEOF
  4089. if ac_fn_c_try_compile "$LINENO"; then :
  4090. ac_cv_c_bigendian=yes
  4091. else
  4092. ac_cv_c_bigendian=no
  4093. fi
  4094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4095. fi
  4096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4097. fi
  4098. if test $ac_cv_c_bigendian = unknown; then
  4099. # Compile a test program.
  4100. if test "$cross_compiling" = yes; then :
  4101. # Try to guess by grepping values from an object file.
  4102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4103. /* end confdefs.h. */
  4104. short int ascii_mm[] =
  4105. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4106. short int ascii_ii[] =
  4107. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4108. int use_ascii (int i) {
  4109. return ascii_mm[i] + ascii_ii[i];
  4110. }
  4111. short int ebcdic_ii[] =
  4112. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4113. short int ebcdic_mm[] =
  4114. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4115. int use_ebcdic (int i) {
  4116. return ebcdic_mm[i] + ebcdic_ii[i];
  4117. }
  4118. extern int foo;
  4119.  
  4120. int
  4121. main ()
  4122. {
  4123. return use_ascii (foo) == use_ebcdic (foo);
  4124. ;
  4125. return 0;
  4126. }
  4127. _ACEOF
  4128. if ac_fn_c_try_compile "$LINENO"; then :
  4129. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4130. ac_cv_c_bigendian=yes
  4131. fi
  4132. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4133. if test "$ac_cv_c_bigendian" = unknown; then
  4134. ac_cv_c_bigendian=no
  4135. else
  4136. # finding both strings is unlikely to happen, but who knows?
  4137. ac_cv_c_bigendian=unknown
  4138. fi
  4139. fi
  4140. fi
  4141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4142. else
  4143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4144. /* end confdefs.h. */
  4145. $ac_includes_default
  4146. int
  4147. main ()
  4148. {
  4149.  
  4150. /* Are we little or big endian? From Harbison&Steele. */
  4151. union
  4152. {
  4153. long int l;
  4154. char c[sizeof (long int)];
  4155. } u;
  4156. u.l = 1;
  4157. return u.c[sizeof (long int) - 1] == 1;
  4158.  
  4159. ;
  4160. return 0;
  4161. }
  4162. _ACEOF
  4163. if ac_fn_c_try_run "$LINENO"; then :
  4164. ac_cv_c_bigendian=no
  4165. else
  4166. ac_cv_c_bigendian=yes
  4167. fi
  4168. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4169. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4170. fi
  4171.  
  4172. fi
  4173. fi
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4175. $as_echo "$ac_cv_c_bigendian" >&6; }
  4176. case $ac_cv_c_bigendian in #(
  4177. yes)
  4178. CFLAGS="$CFLAGS -DBIGENDIAN";; #(
  4179. no)
  4180. ;; #(
  4181. universal)
  4182.  
  4183. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4184.  
  4185. ;; #(
  4186. *)
  4187. as_fn_error $? "unknown endianness
  4188. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4189. esac
  4190.  
  4191.  
  4192. # Check if gcc style printf argument check is supported
  4193. HAVE_GCC_FORMAT_CHECK=""
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc printf format typechecks" >&5
  4195. $as_echo_n "checking for gcc printf format typechecks... " >&6; }
  4196. SAVE_CFLAGS="$CFLAGS"
  4197. CFLAGS="$CFLAGS -Wall -Werror"
  4198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4199. /* end confdefs.h. */
  4200.  
  4201. int
  4202. main ()
  4203. {
  4204. void f(void*x,const char*f,...) __attribute__((format(printf,2,3)));
  4205. ;
  4206. return 0;
  4207. }
  4208. _ACEOF
  4209. if ac_fn_c_try_compile "$LINENO"; then :
  4210. ac_cv_format_checks=yes
  4211. else
  4212. ac_cv_format_checks=no
  4213. fi
  4214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4215. CFLAGS="$SAVE_CFLAGS"
  4216. if [ "x$ac_cv_format_checks" = "xyes" ]; then
  4217. HAVE_GCC_FORMAT_CHECK="-DHAVE_GCC_FORMAT_CHECK"
  4218. fi
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_format_checks" >&5
  4220. $as_echo "$ac_cv_format_checks" >&6; }
  4221.  
  4222. # Check if disabling warnings for overloaded virtual functions is available
  4223. HAVE_NO_OVERLOAD_VIRT_WARN=""
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-overloaded-virtual flag" >&5
  4225. $as_echo_n "checking for -Wno-overloaded-virtual flag... " >&6; }
  4226. SAVE_CFLAGS="$CFLAGS"
  4227. CFLAGS="-Wno-overloaded-virtual -Werror"
  4228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end confdefs.h. */
  4230.  
  4231. int
  4232. main ()
  4233. {
  4234.  
  4235. ;
  4236. return 0;
  4237. }
  4238. _ACEOF
  4239. if ac_fn_c_try_compile "$LINENO"; then :
  4240. ac_cv_no_overload_virt=yes
  4241. else
  4242. ac_cv_no_overload_virt=no
  4243. fi
  4244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4245. CFLAGS="$SAVE_CFLAGS"
  4246. if [ "x$ac_cv_no_overload_virt" = "xyes" ]; then
  4247. HAVE_NO_OVERLOAD_VIRT_WARN="-Wno-overloaded-virtual"
  4248. fi
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_overload_virt" >&5
  4250. $as_echo "$ac_cv_no_overload_virt" >&6; }
  4251.  
  4252. GCC_UNRESOLVED_SYMBOLS="-Wl,--unresolved-symbols=ignore-in-shared-libs"
  4253. ld_unresolved_symbols=no
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld supports reporting unresolved symbols" >&5
  4255. $as_echo_n "checking if ld supports reporting unresolved symbols... " >&6; }
  4256. SAVE_CFLAGS="$CFLAGS"
  4257. CFLAGS="$CFLAGS -Wall -Werror $GCC_UNRESOLVED_SYMBOLS"
  4258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4259. /* end confdefs.h. */
  4260.  
  4261. int
  4262. main ()
  4263. {
  4264.  
  4265. ;
  4266. return 0;
  4267. }
  4268. _ACEOF
  4269. if ac_fn_c_try_link "$LINENO"; then :
  4270. ld_unresolved_symbols=yes
  4271. else
  4272. GCC_UNRESOLVED_SYMBOLS=""
  4273. fi
  4274. rm -f core conftest.err conftest.$ac_objext \
  4275. conftest$ac_exeext conftest.$ac_ext
  4276. CFLAGS="$SAVE_CFLAGS"
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_unresolved_symbols" >&5
  4278. $as_echo "$ld_unresolved_symbols" >&6; }
  4279.  
  4280. # Check if { instruction } blocks can return a value
  4281. HAVE_BLOCK_RETURN=no
  4282. # Check whether --enable-strings was given.
  4283. if test "${enable_strings+set}" = set; then :
  4284. enableval=$enable_strings; want_strings=$enableval
  4285. else
  4286. want_strings=yes
  4287. fi
  4288.  
  4289. if [ "x$want_strings" = "xyes" ]; then
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if instruction blocks return values" >&5
  4291. $as_echo_n "checking if instruction blocks return values... " >&6; }
  4292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4293. /* end confdefs.h. */
  4294.  
  4295. int
  4296. main ()
  4297. {
  4298. return ({static int ret = 1; ret;});
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. if ac_fn_c_try_compile "$LINENO"; then :
  4304. HAVE_BLOCK_RETURN="yes"
  4305. fi
  4306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_BLOCK_RETURN" >&5
  4308. $as_echo "$HAVE_BLOCK_RETURN" >&6; }
  4309. fi
  4310. if [ "x$HAVE_BLOCK_RETURN" = "xyes" ]; then
  4311. HAVE_BLOCK_RETURN="-DHAVE_BLOCK_RETURN"
  4312. else
  4313. HAVE_BLOCK_RETURN=""
  4314. fi
  4315.  
  4316.  
  4317. # Checks for header files.
  4318. ac_header_dirent=no
  4319. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4320. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4322. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4323. if eval \${$as_ac_Header+:} false; then :
  4324. $as_echo_n "(cached) " >&6
  4325. else
  4326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4327. /* end confdefs.h. */
  4328. #include <sys/types.h>
  4329. #include <$ac_hdr>
  4330.  
  4331. int
  4332. main ()
  4333. {
  4334. if ((DIR *) 0)
  4335. return 0;
  4336. ;
  4337. return 0;
  4338. }
  4339. _ACEOF
  4340. if ac_fn_c_try_compile "$LINENO"; then :
  4341. eval "$as_ac_Header=yes"
  4342. else
  4343. eval "$as_ac_Header=no"
  4344. fi
  4345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4346. fi
  4347. eval ac_res=\$$as_ac_Header
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4349. $as_echo "$ac_res" >&6; }
  4350. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4351. cat >>confdefs.h <<_ACEOF
  4352. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4353. _ACEOF
  4354.  
  4355. ac_header_dirent=$ac_hdr; break
  4356. fi
  4357.  
  4358. done
  4359. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4360. if test $ac_header_dirent = dirent.h; then
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4362. $as_echo_n "checking for library containing opendir... " >&6; }
  4363. if ${ac_cv_search_opendir+:} false; then :
  4364. $as_echo_n "(cached) " >&6
  4365. else
  4366. ac_func_search_save_LIBS=$LIBS
  4367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4368. /* end confdefs.h. */
  4369.  
  4370. /* Override any GCC internal prototype to avoid an error.
  4371. Use char because int might match the return type of a GCC
  4372. builtin and then its argument prototype would still apply. */
  4373. #ifdef __cplusplus
  4374. extern "C"
  4375. #endif
  4376. char opendir ();
  4377. int
  4378. main ()
  4379. {
  4380. return opendir ();
  4381. ;
  4382. return 0;
  4383. }
  4384. _ACEOF
  4385. for ac_lib in '' dir; do
  4386. if test -z "$ac_lib"; then
  4387. ac_res="none required"
  4388. else
  4389. ac_res=-l$ac_lib
  4390. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4391. fi
  4392. if ac_fn_c_try_link "$LINENO"; then :
  4393. ac_cv_search_opendir=$ac_res
  4394. fi
  4395. rm -f core conftest.err conftest.$ac_objext \
  4396. conftest$ac_exeext
  4397. if ${ac_cv_search_opendir+:} false; then :
  4398. break
  4399. fi
  4400. done
  4401. if ${ac_cv_search_opendir+:} false; then :
  4402.  
  4403. else
  4404. ac_cv_search_opendir=no
  4405. fi
  4406. rm conftest.$ac_ext
  4407. LIBS=$ac_func_search_save_LIBS
  4408. fi
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4410. $as_echo "$ac_cv_search_opendir" >&6; }
  4411. ac_res=$ac_cv_search_opendir
  4412. if test "$ac_res" != no; then :
  4413. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4414.  
  4415. fi
  4416.  
  4417. else
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4419. $as_echo_n "checking for library containing opendir... " >&6; }
  4420. if ${ac_cv_search_opendir+:} false; then :
  4421. $as_echo_n "(cached) " >&6
  4422. else
  4423. ac_func_search_save_LIBS=$LIBS
  4424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4425. /* end confdefs.h. */
  4426.  
  4427. /* Override any GCC internal prototype to avoid an error.
  4428. Use char because int might match the return type of a GCC
  4429. builtin and then its argument prototype would still apply. */
  4430. #ifdef __cplusplus
  4431. extern "C"
  4432. #endif
  4433. char opendir ();
  4434. int
  4435. main ()
  4436. {
  4437. return opendir ();
  4438. ;
  4439. return 0;
  4440. }
  4441. _ACEOF
  4442. for ac_lib in '' x; do
  4443. if test -z "$ac_lib"; then
  4444. ac_res="none required"
  4445. else
  4446. ac_res=-l$ac_lib
  4447. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4448. fi
  4449. if ac_fn_c_try_link "$LINENO"; then :
  4450. ac_cv_search_opendir=$ac_res
  4451. fi
  4452. rm -f core conftest.err conftest.$ac_objext \
  4453. conftest$ac_exeext
  4454. if ${ac_cv_search_opendir+:} false; then :
  4455. break
  4456. fi
  4457. done
  4458. if ${ac_cv_search_opendir+:} false; then :
  4459.  
  4460. else
  4461. ac_cv_search_opendir=no
  4462. fi
  4463. rm conftest.$ac_ext
  4464. LIBS=$ac_func_search_save_LIBS
  4465. fi
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4467. $as_echo "$ac_cv_search_opendir" >&6; }
  4468. ac_res=$ac_cv_search_opendir
  4469. if test "$ac_res" != no; then :
  4470. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4471.  
  4472. fi
  4473.  
  4474. fi
  4475.  
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4477. $as_echo_n "checking for ANSI C header files... " >&6; }
  4478. if ${ac_cv_header_stdc+:} false; then :
  4479. $as_echo_n "(cached) " >&6
  4480. else
  4481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4482. /* end confdefs.h. */
  4483. #include <stdlib.h>
  4484. #include <stdarg.h>
  4485. #include <string.h>
  4486. #include <float.h>
  4487.  
  4488. int
  4489. main ()
  4490. {
  4491.  
  4492. ;
  4493. return 0;
  4494. }
  4495. _ACEOF
  4496. if ac_fn_c_try_compile "$LINENO"; then :
  4497. ac_cv_header_stdc=yes
  4498. else
  4499. ac_cv_header_stdc=no
  4500. fi
  4501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4502.  
  4503. if test $ac_cv_header_stdc = yes; then
  4504. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4506. /* end confdefs.h. */
  4507. #include <string.h>
  4508.  
  4509. _ACEOF
  4510. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4511. $EGREP "memchr" >/dev/null 2>&1; then :
  4512.  
  4513. else
  4514. ac_cv_header_stdc=no
  4515. fi
  4516. rm -f conftest*
  4517.  
  4518. fi
  4519.  
  4520. if test $ac_cv_header_stdc = yes; then
  4521. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4523. /* end confdefs.h. */
  4524. #include <stdlib.h>
  4525.  
  4526. _ACEOF
  4527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4528. $EGREP "free" >/dev/null 2>&1; then :
  4529.  
  4530. else
  4531. ac_cv_header_stdc=no
  4532. fi
  4533. rm -f conftest*
  4534.  
  4535. fi
  4536.  
  4537. if test $ac_cv_header_stdc = yes; then
  4538. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4539. if test "$cross_compiling" = yes; then :
  4540. :
  4541. else
  4542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4543. /* end confdefs.h. */
  4544. #include <ctype.h>
  4545. #include <stdlib.h>
  4546. #if ((' ' & 0x0FF) == 0x020)
  4547. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4548. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4549. #else
  4550. # define ISLOWER(c) \
  4551. (('a' <= (c) && (c) <= 'i') \
  4552. || ('j' <= (c) && (c) <= 'r') \
  4553. || ('s' <= (c) && (c) <= 'z'))
  4554. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4555. #endif
  4556.  
  4557. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4558. int
  4559. main ()
  4560. {
  4561. int i;
  4562. for (i = 0; i < 256; i++)
  4563. if (XOR (islower (i), ISLOWER (i))
  4564. || toupper (i) != TOUPPER (i))
  4565. return 2;
  4566. return 0;
  4567. }
  4568. _ACEOF
  4569. if ac_fn_c_try_run "$LINENO"; then :
  4570.  
  4571. else
  4572. ac_cv_header_stdc=no
  4573. fi
  4574. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4575. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4576. fi
  4577.  
  4578. fi
  4579. fi
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4581. $as_echo "$ac_cv_header_stdc" >&6; }
  4582. if test $ac_cv_header_stdc = yes; then
  4583.  
  4584. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4585.  
  4586. fi
  4587.  
  4588. for ac_header in fcntl.h semaphore.h arpa/inet.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h
  4589. do :
  4590. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4591. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4592. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4593. cat >>confdefs.h <<_ACEOF
  4594. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4595. _ACEOF
  4596.  
  4597. else
  4598. as_fn_error $? "This header file is required." "$LINENO" 5
  4599. fi
  4600.  
  4601. done
  4602.  
  4603.  
  4604. # Checks for typedefs, structures, and compiler characteristics.
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4606. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4607. if ${ac_cv_c_const+:} false; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4611. /* end confdefs.h. */
  4612.  
  4613. int
  4614. main ()
  4615. {
  4616.  
  4617. #ifndef __cplusplus
  4618. /* Ultrix mips cc rejects this sort of thing. */
  4619. typedef int charset[2];
  4620. const charset cs = { 0, 0 };
  4621. /* SunOS 4.1.1 cc rejects this. */
  4622. char const *const *pcpcc;
  4623. char **ppc;
  4624. /* NEC SVR4.0.2 mips cc rejects this. */
  4625. struct point {int x, y;};
  4626. static struct point const zero = {0,0};
  4627. /* AIX XL C 1.02.0.0 rejects this.
  4628. It does not let you subtract one const X* pointer from another in
  4629. an arm of an if-expression whose if-part is not a constant
  4630. expression */
  4631. const char *g = "string";
  4632. pcpcc = &g + (g ? g-g : 0);
  4633. /* HPUX 7.0 cc rejects these. */
  4634. ++pcpcc;
  4635. ppc = (char**) pcpcc;
  4636. pcpcc = (char const *const *) ppc;
  4637. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4638. char tx;
  4639. char *t = &tx;
  4640. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4641.  
  4642. *t++ = 0;
  4643. if (s) return 0;
  4644. }
  4645. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4646. int x[] = {25, 17};
  4647. const int *foo = &x[0];
  4648. ++foo;
  4649. }
  4650. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4651. typedef const int *iptr;
  4652. iptr p = 0;
  4653. ++p;
  4654. }
  4655. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4656. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4657. struct s { int j; const int *ap[3]; } bx;
  4658. struct s *b = &bx; b->j = 5;
  4659. }
  4660. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4661. const int foo = 10;
  4662. if (!foo) return 0;
  4663. }
  4664. return !cs[0] && !zero.x;
  4665. #endif
  4666.  
  4667. ;
  4668. return 0;
  4669. }
  4670. _ACEOF
  4671. if ac_fn_c_try_compile "$LINENO"; then :
  4672. ac_cv_c_const=yes
  4673. else
  4674. ac_cv_c_const=no
  4675. fi
  4676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4679. $as_echo "$ac_cv_c_const" >&6; }
  4680. if test $ac_cv_c_const = no; then
  4681.  
  4682. $as_echo "#define const /**/" >>confdefs.h
  4683.  
  4684. fi
  4685.  
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4687. $as_echo_n "checking for inline... " >&6; }
  4688. if ${ac_cv_c_inline+:} false; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. ac_cv_c_inline=no
  4692. for ac_kw in inline __inline__ __inline; do
  4693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4694. /* end confdefs.h. */
  4695. #ifndef __cplusplus
  4696. typedef int foo_t;
  4697. static $ac_kw foo_t static_foo () {return 0; }
  4698. $ac_kw foo_t foo () {return 0; }
  4699. #endif
  4700.  
  4701. _ACEOF
  4702. if ac_fn_c_try_compile "$LINENO"; then :
  4703. ac_cv_c_inline=$ac_kw
  4704. fi
  4705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4706. test "$ac_cv_c_inline" != no && break
  4707. done
  4708.  
  4709. fi
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4711. $as_echo "$ac_cv_c_inline" >&6; }
  4712.  
  4713. case $ac_cv_c_inline in
  4714. inline | yes) ;;
  4715. *)
  4716. case $ac_cv_c_inline in
  4717. no) ac_val=;;
  4718. *) ac_val=$ac_cv_c_inline;;
  4719. esac
  4720. cat >>confdefs.h <<_ACEOF
  4721. #ifndef __cplusplus
  4722. #define inline $ac_val
  4723. #endif
  4724. _ACEOF
  4725. ;;
  4726. esac
  4727.  
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4729. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4730. if ${ac_cv_header_time+:} false; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4734. /* end confdefs.h. */
  4735. #include <sys/types.h>
  4736. #include <sys/time.h>
  4737. #include <time.h>
  4738.  
  4739. int
  4740. main ()
  4741. {
  4742. if ((struct tm *) 0)
  4743. return 0;
  4744. ;
  4745. return 0;
  4746. }
  4747. _ACEOF
  4748. if ac_fn_c_try_compile "$LINENO"; then :
  4749. ac_cv_header_time=yes
  4750. else
  4751. ac_cv_header_time=no
  4752. fi
  4753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4754. fi
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4756. $as_echo "$ac_cv_header_time" >&6; }
  4757. if test $ac_cv_header_time = yes; then
  4758.  
  4759. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4760.  
  4761. fi
  4762.  
  4763.  
  4764. # Checks for library functions.
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  4766. $as_echo_n "checking return type of signal handlers... " >&6; }
  4767. if ${ac_cv_type_signal+:} false; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4771. /* end confdefs.h. */
  4772. #include <sys/types.h>
  4773. #include <signal.h>
  4774.  
  4775. int
  4776. main ()
  4777. {
  4778. return *(signal (0, 0)) (0) == 1;
  4779. ;
  4780. return 0;
  4781. }
  4782. _ACEOF
  4783. if ac_fn_c_try_compile "$LINENO"; then :
  4784. ac_cv_type_signal=int
  4785. else
  4786. ac_cv_type_signal=void
  4787. fi
  4788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  4791. $as_echo "$ac_cv_type_signal" >&6; }
  4792.  
  4793. cat >>confdefs.h <<_ACEOF
  4794. #define RETSIGTYPE $ac_cv_type_signal
  4795. _ACEOF
  4796.  
  4797.  
  4798. for ac_func in malloc gettimeofday inet_ntoa memmove strerror
  4799. do :
  4800. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4801. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4802. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4803. cat >>confdefs.h <<_ACEOF
  4804. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4805. _ACEOF
  4806.  
  4807. else
  4808. as_fn_error $? "This function is required." "$LINENO" 5
  4809. fi
  4810. done
  4811.  
  4812.  
  4813. HAVE_GETCWD=""
  4814. for ac_func in getcwd
  4815. do :
  4816. ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
  4817. if test "x$ac_cv_func_getcwd" = xyes; then :
  4818. cat >>confdefs.h <<_ACEOF
  4819. #define HAVE_GETCWD 1
  4820. _ACEOF
  4821. HAVE_GETCWD="-DHAVE_GETCWD"
  4822. fi
  4823. done
  4824.  
  4825.  
  4826.  
  4827. HAVE_PRCTL=""
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5
  4829. $as_echo_n "checking for prctl... " >&6; }
  4830. have_prctl="no"
  4831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4832. /* end confdefs.h. */
  4833.  
  4834. #include <unistd.h>
  4835. #include <sys/prctl.h>
  4836.  
  4837. int
  4838. main ()
  4839. {
  4840.  
  4841. prctl(1,2,3,4,5);
  4842.  
  4843. ;
  4844. return 0;
  4845. }
  4846. _ACEOF
  4847. if ac_fn_c_try_compile "$LINENO"; then :
  4848. have_prctl="yes"
  4849. fi
  4850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prctl" >&5
  4852. $as_echo "$have_prctl" >&6; }
  4853. if [ "$have_prctl" = "yes" ]; then
  4854. HAVE_PRCTL="-DHAVE_PRCTL"
  4855. fi
  4856.  
  4857.  
  4858. HAVE_SOCKADDR_LEN=""
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr.sa_len presence" >&5
  4860. $as_echo_n "checking for sockaddr.sa_len presence... " >&6; }
  4861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4862. /* end confdefs.h. */
  4863.  
  4864. #include <sys/socket.h>
  4865.  
  4866. int
  4867. main ()
  4868. {
  4869.  
  4870. struct sockaddr saddr;
  4871. saddr.sa_len = sizeof(struct sockaddr);
  4872.  
  4873. ;
  4874. return 0;
  4875. }
  4876. _ACEOF
  4877. if ac_fn_c_try_compile "$LINENO"; then :
  4878. have_sockaddr_len="yes"
  4879. else
  4880. have_sockaddr_len="no"
  4881.  
  4882. fi
  4883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4884. if [ "$have_sockaddr_len" = "yes" ]; then
  4885. HAVE_SOCKADDR_LEN="-DHAVE_SOCKADDR_LEN"
  4886. fi
  4887.  
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sockaddr_len" >&5
  4889. $as_echo "$have_sockaddr_len" >&6; }
  4890.  
  4891. HAVE_GMTOFF=""
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm.tm_gmtoff presence" >&5
  4893. $as_echo_n "checking for tm.tm_gmtoff presence... " >&6; }
  4894. have_gmtoff="no"
  4895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4896. /* end confdefs.h. */
  4897.  
  4898. #include <time.h>
  4899.  
  4900. int
  4901. main ()
  4902. {
  4903.  
  4904. struct tm t;
  4905. t.tm_gmtoff = 3600;
  4906.  
  4907. ;
  4908. return 0;
  4909. }
  4910. _ACEOF
  4911. if ac_fn_c_try_compile "$LINENO"; then :
  4912. have_gmtoff="yes"
  4913. fi
  4914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gmtoff" >&5
  4916. $as_echo "$have_gmtoff" >&6; }
  4917. if [ "$have_gmtoff" = "yes" ]; then
  4918. HAVE_GMTOFF="-DHAVE_GMTOFF"
  4919. fi
  4920.  
  4921.  
  4922. HAVE_INT_TZ=""
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for integer timezone variable" >&5
  4924. $as_echo_n "checking for integer timezone variable... " >&6; }
  4925. have_tzint="no"
  4926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4927. /* end confdefs.h. */
  4928.  
  4929. #include <time.h>
  4930.  
  4931. int
  4932. main ()
  4933. {
  4934.  
  4935. long tz = -timezone;
  4936.  
  4937. ;
  4938. return 0;
  4939. }
  4940. _ACEOF
  4941. if ac_fn_c_try_compile "$LINENO"; then :
  4942. have_tzint="yes"
  4943. fi
  4944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tzint" >&5
  4946. $as_echo "$have_tzint" >&6; }
  4947. if [ "$have_tzint" = "yes" ]; then
  4948. HAVE_INT_TZ="-DHAVE_INT_TZ"
  4949. fi
  4950.  
  4951.  
  4952. HAVE_POLL=no
  4953. # Check whether --enable-poll was given.
  4954. if test "${enable_poll+set}" = set; then :
  4955. enableval=$enable_poll; want_poll=$enableval
  4956. else
  4957. want_poll=yes
  4958. fi
  4959.  
  4960. if [ "x$want_poll" = "xyes" ]; then
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
  4962. $as_echo_n "checking for poll... " >&6; }
  4963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4964. /* end confdefs.h. */
  4965. #include <poll.h>
  4966.  
  4967. int
  4968. main ()
  4969. {
  4970.  
  4971. struct pollfd fds;
  4972. poll(&fds,1,1);
  4973.  
  4974. ;
  4975. return 0;
  4976. }
  4977. _ACEOF
  4978. if ac_fn_c_try_compile "$LINENO"; then :
  4979. HAVE_POLL=yes
  4980. fi
  4981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_POLL" >&5
  4983. $as_echo "$HAVE_POLL" >&6; }
  4984. fi
  4985.  
  4986.  
  4987. cat >confcache <<\_ACEOF
  4988. # This file is a shell script that caches the results of configure
  4989. # tests run on this system so they can be shared between configure
  4990. # scripts and configure runs, see configure's option --config-cache.
  4991. # It is not useful on other systems. If it contains results you don't
  4992. # want to keep, you may remove or edit it.
  4993. #
  4994. # config.status only pays attention to the cache file if you give it
  4995. # the --recheck option to rerun configure.
  4996. #
  4997. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4998. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4999. # following values.
  5000.  
  5001. _ACEOF
  5002.  
  5003. # The following way of writing the cache mishandles newlines in values,
  5004. # but we know of no workaround that is simple, portable, and efficient.
  5005. # So, we kill variables containing newlines.
  5006. # Ultrix sh set writes to stderr and can't be redirected directly,
  5007. # and sets the high bit in the cache file unless we assign to the vars.
  5008. (
  5009. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5010. eval ac_val=\$$ac_var
  5011. case $ac_val in #(
  5012. *${as_nl}*)
  5013. case $ac_var in #(
  5014. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5015. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5016. esac
  5017. case $ac_var in #(
  5018. _ | IFS | as_nl) ;; #(
  5019. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5020. *) { eval $ac_var=; unset $ac_var;} ;;
  5021. esac ;;
  5022. esac
  5023. done
  5024.  
  5025. (set) 2>&1 |
  5026. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5027. *${as_nl}ac_space=\ *)
  5028. # `set' does not quote correctly, so add quotes: double-quote
  5029. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5030. sed -n \
  5031. "s/'/'\\\\''/g;
  5032. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5033. ;; #(
  5034. *)
  5035. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5036. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5037. ;;
  5038. esac |
  5039. sort
  5040. ) |
  5041. sed '
  5042. /^ac_cv_env_/b end
  5043. t clear
  5044. :clear
  5045. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5046. t end
  5047. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5048. :end' >>confcache
  5049. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5050. if test -w "$cache_file"; then
  5051. if test "x$cache_file" != "x/dev/null"; then
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5053. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5054. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5055. cat confcache >"$cache_file"
  5056. else
  5057. case $cache_file in #(
  5058. */* | ?:*)
  5059. mv -f confcache "$cache_file"$$ &&
  5060. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5061. *)
  5062. mv -f confcache "$cache_file" ;;
  5063. esac
  5064. fi
  5065. fi
  5066. else
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5068. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5069. fi
  5070. fi
  5071. rm -f confcache
  5072.  
  5073. SAVE_LIBS="$LIBS"
  5074. # Checks for required libraries.
  5075. THREAD_LIB=""
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_settype in -lpthread" >&5
  5077. $as_echo_n "checking for pthread_mutexattr_settype in -lpthread... " >&6; }
  5078. if ${ac_cv_lib_pthread_pthread_mutexattr_settype+:} false; then :
  5079. $as_echo_n "(cached) " >&6
  5080. else
  5081. ac_check_lib_save_LIBS=$LIBS
  5082. LIBS="-lpthread $LIBS"
  5083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5084. /* end confdefs.h. */
  5085.  
  5086. /* Override any GCC internal prototype to avoid an error.
  5087. Use char because int might match the return type of a GCC
  5088. builtin and then its argument prototype would still apply. */
  5089. #ifdef __cplusplus
  5090. extern "C"
  5091. #endif
  5092. char pthread_mutexattr_settype ();
  5093. int
  5094. main ()
  5095. {
  5096. return pthread_mutexattr_settype ();
  5097. ;
  5098. return 0;
  5099. }
  5100. _ACEOF
  5101. if ac_fn_c_try_link "$LINENO"; then :
  5102. ac_cv_lib_pthread_pthread_mutexattr_settype=yes
  5103. else
  5104. ac_cv_lib_pthread_pthread_mutexattr_settype=no
  5105. fi
  5106. rm -f core conftest.err conftest.$ac_objext \
  5107. conftest$ac_exeext conftest.$ac_ext
  5108. LIBS=$ac_check_lib_save_LIBS
  5109. fi
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutexattr_settype" >&5
  5111. $as_echo "$ac_cv_lib_pthread_pthread_mutexattr_settype" >&6; }
  5112. if test "x$ac_cv_lib_pthread_pthread_mutexattr_settype" = xyes; then :
  5113. THREAD_LIB="-lpthread"
  5114. fi
  5115.  
  5116. if [ "x$THREAD_LIB" = "x" ]; then
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_settype in -lc" >&5
  5118. $as_echo_n "checking for pthread_mutexattr_settype in -lc... " >&6; }
  5119. if ${ac_cv_lib_c_pthread_mutexattr_settype+:} false; then :
  5120. $as_echo_n "(cached) " >&6
  5121. else
  5122. ac_check_lib_save_LIBS=$LIBS
  5123. LIBS="-lc $LIBS"
  5124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5125. /* end confdefs.h. */
  5126.  
  5127. /* Override any GCC internal prototype to avoid an error.
  5128. Use char because int might match the return type of a GCC
  5129. builtin and then its argument prototype would still apply. */
  5130. #ifdef __cplusplus
  5131. extern "C"
  5132. #endif
  5133. char pthread_mutexattr_settype ();
  5134. int
  5135. main ()
  5136. {
  5137. return pthread_mutexattr_settype ();
  5138. ;
  5139. return 0;
  5140. }
  5141. _ACEOF
  5142. if ac_fn_c_try_link "$LINENO"; then :
  5143. ac_cv_lib_c_pthread_mutexattr_settype=yes
  5144. else
  5145. ac_cv_lib_c_pthread_mutexattr_settype=no
  5146. fi
  5147. rm -f core conftest.err conftest.$ac_objext \
  5148. conftest$ac_exeext conftest.$ac_ext
  5149. LIBS=$ac_check_lib_save_LIBS
  5150. fi
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutexattr_settype" >&5
  5152. $as_echo "$ac_cv_lib_c_pthread_mutexattr_settype" >&6; }
  5153. if test "x$ac_cv_lib_c_pthread_mutexattr_settype" = xyes; then :
  5154. cat >>confdefs.h <<_ACEOF
  5155. #define HAVE_LIBC 1
  5156. _ACEOF
  5157.  
  5158. LIBS="-lc $LIBS"
  5159.  
  5160. else
  5161. as_fn_error $? "This function is required." "$LINENO" 5
  5162. fi
  5163.  
  5164. fi
  5165.  
  5166.  
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in default libs" >&5
  5168. $as_echo_n "checking for dlopen in default libs... " >&6; }
  5169.  
  5170. ac_ext=c
  5171. ac_cpp='$CPP $CPPFLAGS'
  5172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5175.  
  5176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5177. /* end confdefs.h. */
  5178. #include <dlfcn.h>
  5179. int
  5180. main ()
  5181. {
  5182. dlopen("",0);
  5183. ;
  5184. return 0;
  5185. }
  5186. _ACEOF
  5187. if ac_fn_c_try_link "$LINENO"; then :
  5188. have_dl=yes
  5189. else
  5190. have_dl=no
  5191. fi
  5192. rm -f core conftest.err conftest.$ac_objext \
  5193. conftest$ac_exeext conftest.$ac_ext
  5194. ac_ext=c
  5195. ac_cpp='$CPP $CPPFLAGS'
  5196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5199.  
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dl" >&5
  5201. $as_echo "$have_dl" >&6; }
  5202. if [ "x$have_dl" != "xyes" ]; then
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  5204. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  5205. if ${ac_cv_lib_dl_dlopen+:} false; then :
  5206. $as_echo_n "(cached) " >&6
  5207. else
  5208. ac_check_lib_save_LIBS=$LIBS
  5209. LIBS="-ldl $LIBS"
  5210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5211. /* end confdefs.h. */
  5212.  
  5213. /* Override any GCC internal prototype to avoid an error.
  5214. Use char because int might match the return type of a GCC
  5215. builtin and then its argument prototype would still apply. */
  5216. #ifdef __cplusplus
  5217. extern "C"
  5218. #endif
  5219. char dlopen ();
  5220. int
  5221. main ()
  5222. {
  5223. return dlopen ();
  5224. ;
  5225. return 0;
  5226. }
  5227. _ACEOF
  5228. if ac_fn_c_try_link "$LINENO"; then :
  5229. ac_cv_lib_dl_dlopen=yes
  5230. else
  5231. ac_cv_lib_dl_dlopen=no
  5232. fi
  5233. rm -f core conftest.err conftest.$ac_objext \
  5234. conftest$ac_exeext conftest.$ac_ext
  5235. LIBS=$ac_check_lib_save_LIBS
  5236. fi
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  5238. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  5239. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  5240. cat >>confdefs.h <<_ACEOF
  5241. #define HAVE_LIBDL 1
  5242. _ACEOF
  5243.  
  5244. LIBS="-ldl $LIBS"
  5245.  
  5246. else
  5247. as_fn_error $? "This function is required." "$LINENO" 5
  5248. fi
  5249.  
  5250. DLOPEN_LIB="-ldl"
  5251. fi
  5252.  
  5253. # Restore the system libs
  5254. LIBS="$SAVE_LIBS"
  5255.  
  5256. MUTEX_HACK=""
  5257.  
  5258. ac_ext=c
  5259. ac_cpp='$CPP $CPPFLAGS'
  5260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5263.  
  5264. SAVE_CFLAGS="$CFLAGS"
  5265. CFLAGS="$CFLAGS -Wall -Werror"
  5266. SAVE_LIBS="$LIBS"
  5267. LIBS="$LIBS $THREAD_LIB"
  5268.  
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_settype declaration" >&5
  5270. $as_echo_n "checking for pthread_mutexattr_settype declaration... " >&6; }
  5271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5272. /* end confdefs.h. */
  5273.  
  5274. #include <unistd.h>
  5275. #include <pthread.h>
  5276.  
  5277. int
  5278. main ()
  5279. {
  5280.  
  5281. pthread_mutexattr_t attr;
  5282. pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_RECURSIVE_NP);
  5283.  
  5284. ;
  5285. return 0;
  5286. }
  5287. _ACEOF
  5288. if ac_fn_c_try_compile "$LINENO"; then :
  5289. have_mutex_settype="yes"
  5290. else
  5291. have_mutex_settype="no"
  5292.  
  5293. fi
  5294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5295. if [ "$have_mutex_settype" = "no" ]; then
  5296. MUTEX_HACK="-DMUTEX_HACK"
  5297. fi
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mutex_settype" >&5
  5299. $as_echo "$have_mutex_settype" >&6; }
  5300.  
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_timedlock" >&5
  5302. $as_echo_n "checking for pthread_mutex_timedlock... " >&6; }
  5303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5304. /* end confdefs.h. */
  5305.  
  5306. #include <unistd.h>
  5307. #include <pthread.h>
  5308. #include <time.h>
  5309.  
  5310. int
  5311. main ()
  5312. {
  5313.  
  5314. pthread_mutex_t mutex;
  5315. struct timespec tout;
  5316. pthread_mutex_timedlock(&mutex,&tout);
  5317.  
  5318. ;
  5319. return 0;
  5320. }
  5321. _ACEOF
  5322. if ac_fn_c_try_link "$LINENO"; then :
  5323. have_mutex_timedlock="yes"
  5324. else
  5325. have_mutex_timedlock="no"
  5326.  
  5327. fi
  5328. rm -f core conftest.err conftest.$ac_objext \
  5329. conftest$ac_exeext conftest.$ac_ext
  5330. if [ "$have_mutex_timedlock" = "yes" ]; then
  5331. MUTEX_HACK="$MUTEX_HACK -DHAVE_TIMEDLOCK"
  5332. fi
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mutex_timedlock" >&5
  5334. $as_echo "$have_mutex_timedlock" >&6; }
  5335.  
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  5337. $as_echo_n "checking for sem_timedwait... " >&6; }
  5338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5339. /* end confdefs.h. */
  5340.  
  5341. #include <semaphore.h>
  5342. #include <time.h>
  5343.  
  5344. int
  5345. main ()
  5346. {
  5347.  
  5348. sem_t sem;
  5349. struct timespec tout;
  5350. sem_timedwait(&sem,&tout);
  5351.  
  5352. ;
  5353. return 0;
  5354. }
  5355. _ACEOF
  5356. if ac_fn_c_try_link "$LINENO"; then :
  5357. have_sem_timedwait="yes"
  5358. else
  5359. have_sem_timedwait="no"
  5360.  
  5361. fi
  5362. rm -f core conftest.err conftest.$ac_objext \
  5363. conftest$ac_exeext conftest.$ac_ext
  5364. if [ "$have_sem_timedwait" = "yes" ]; then
  5365. MUTEX_HACK="$MUTEX_HACK -DHAVE_TIMEDWAIT"
  5366. fi
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  5368. $as_echo "$have_sem_timedwait" >&6; }
  5369.  
  5370. CFLAGS="$SAVE_CFLAGS"
  5371. LIBS="$SAVE_LIBS"
  5372. ac_ext=c
  5373. ac_cpp='$CPP $CPPFLAGS'
  5374. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5375. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5376. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5377.  
  5378.  
  5379.  
  5380. NETDB_FLAGS=""
  5381. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  5382. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  5383. NETDB_FLAGS="$NETDB_FLAGS -DHAVE_NTOP"
  5384. fi
  5385.  
  5386. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  5387. if test "x$ac_cv_func_inet_pton" = xyes; then :
  5388. NETDB_FLAGS="$NETDB_FLAGS -DHAVE_PTON"
  5389. fi
  5390.  
  5391. ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
  5392. if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
  5393. NETDB_FLAGS="$NETDB_FLAGS -DHAVE_GHBN_R"
  5394. fi
  5395.  
  5396. ac_fn_c_check_func "$LINENO" "gethostbyname2_r" "ac_cv_func_gethostbyname2_r"
  5397. if test "x$ac_cv_func_gethostbyname2_r" = xyes; then :
  5398. NETDB_FLAGS="$NETDB_FLAGS -DHAVE_GHBN2_R"
  5399. fi
  5400.  
  5401. ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
  5402. if test "x$ac_cv_func_gethostbyname2" = xyes; then :
  5403. NETDB_FLAGS="$NETDB_FLAGS -DHAVE_GHBN2"
  5404. fi
  5405.  
  5406.  
  5407.  
  5408. THREAD_KILL=""
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill_other_threads_np declaration" >&5
  5410. $as_echo_n "checking for pthread_kill_other_threads_np declaration... " >&6; }
  5411.  
  5412. ac_ext=c
  5413. ac_cpp='$CPP $CPPFLAGS'
  5414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5417.  
  5418. SAVE_CFLAGS="$CFLAGS"
  5419. CFLAGS="$CFLAGS -Wall -Werror"
  5420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5421. /* end confdefs.h. */
  5422.  
  5423. #include <unistd.h>
  5424. #include <pthread.h>
  5425.  
  5426. int
  5427. main ()
  5428. {
  5429.  
  5430. pthread_kill_other_threads_np();
  5431.  
  5432. ;
  5433. return 0;
  5434. }
  5435. _ACEOF
  5436. if ac_fn_c_try_compile "$LINENO"; then :
  5437. have_pthread_kill="yes"
  5438. else
  5439. have_pthread_kill="no"
  5440.  
  5441. fi
  5442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5443. CFLAGS="$SAVE_CFLAGS"
  5444. ac_ext=c
  5445. ac_cpp='$CPP $CPPFLAGS'
  5446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5449.  
  5450. if [ "$have_pthread_kill" = "yes" ]; then
  5451. THREAD_KILL="-DTHREAD_KILL"
  5452. fi
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_kill" >&5
  5454. $as_echo "$have_pthread_kill" >&6; }
  5455.  
  5456.  
  5457. # Check for compile options
  5458. INLINE_FLAGS=""
  5459. # Check whether --enable-inline was given.
  5460. if test "${enable_inline+set}" = set; then :
  5461. enableval=$enable_inline; want_inline=$enableval
  5462. else
  5463. want_inline=auto
  5464. fi
  5465.  
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use inline functions" >&5
  5467. $as_echo_n "checking whether to use inline functions... " >&6; }
  5468. case "x$want_inline" in
  5469. xyes)
  5470. INLINE_FLAGS="-finline -Winline"
  5471. ;;
  5472. xno)
  5473. INLINE_FLAGS="-fno-inline"
  5474. ;;
  5475. xauto)
  5476. ;;
  5477. *)
  5478. as_fn_error $? "Invalid argument passed to --enable-inline" "$LINENO" 5
  5479. ;;
  5480. esac
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_inline" >&5
  5482. $as_echo "$want_inline" >&6; }
  5483.  
  5484.  
  5485. # Check for atomic integer operations
  5486. ATOMIC_OPS=""
  5487. # Check whether --enable-atomics was given.
  5488. if test "${enable_atomics+set}" = set; then :
  5489. enableval=$enable_atomics; want_atomics=$enableval
  5490. else
  5491. want_atomics=yes
  5492. fi
  5493.  
  5494. if [ "x$want_atomics" != "xno" ]; then
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use atomic integer operations" >&5
  5496. $as_echo_n "checking whether to use atomic integer operations... " >&6; }
  5497.  
  5498. ac_ext=c
  5499. ac_cpp='$CPP $CPPFLAGS'
  5500. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5501. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5502. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5503.  
  5504. SAVE_CFLAGS="$CFLAGS"
  5505. CFLAGS="$CFLAGS -Wall -Werror"
  5506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5507. /* end confdefs.h. */
  5508.  
  5509. int
  5510. main ()
  5511. {
  5512.  
  5513. int i = 0;
  5514. int j = __sync_add_and_fetch(&i,1);
  5515. return __sync_fetch_and_sub(&j,1);
  5516.  
  5517. ;
  5518. return 0;
  5519. }
  5520. _ACEOF
  5521. if ac_fn_c_try_link "$LINENO"; then :
  5522. ATOMIC_OPS="-DATOMIC_OPS"
  5523. else
  5524. want_atomics="no (missing -march ?)"
  5525.  
  5526. fi
  5527. rm -f core conftest.err conftest.$ac_objext \
  5528. conftest$ac_exeext conftest.$ac_ext
  5529. CFLAGS="$SAVE_CFLAGS"
  5530. ac_ext=c
  5531. ac_cpp='$CPP $CPPFLAGS'
  5532. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5533. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5534. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5535.  
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_atomics" >&5
  5537. $as_echo "$want_atomics" >&6; }
  5538. fi
  5539.  
  5540.  
  5541.  
  5542. # Check for sse2 operations
  5543. SSE2_OPS=no
  5544. # Check whether --enable-sse2 was given.
  5545. if test "${enable_sse2+set}" = set; then :
  5546. enableval=$enable_sse2; want_sse2=$enableval
  5547. else
  5548. want_sse2=no
  5549. fi
  5550.  
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sse2 operations" >&5
  5552. $as_echo_n "checking whether to use sse2 operations... " >&6; }
  5553. if [ "x$want_sse2" != "xno" ]; then
  5554.  
  5555. ac_ext=c
  5556. ac_cpp='$CPP $CPPFLAGS'
  5557. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5558. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5559. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5560.  
  5561. SAVE_CFLAGS="$CFLAGS"
  5562. CFLAGS="$CFLAGS -Wall -Werror -msse2"
  5563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5564. /* end confdefs.h. */
  5565. #include <stdint.h>
  5566. #include <math.h>
  5567. #include<emmintrin.h>
  5568.  
  5569. int
  5570. main ()
  5571. {
  5572.  
  5573. float ef[2][2];
  5574. const __m128 k1e_10f = _mm_set1_ps(1e-10f);
  5575. _mm_storeu_ps(&ef[0][0], k1e_10f);
  5576. return (int) ef[0][0];
  5577.  
  5578. ;
  5579. return 0;
  5580. }
  5581. _ACEOF
  5582. if ac_fn_c_try_link "$LINENO"; then :
  5583. SSE2_OPS="yes"
  5584. else
  5585. want_sse2="no (missing -march ?)"
  5586.  
  5587. fi
  5588. rm -f core conftest.err conftest.$ac_objext \
  5589. conftest$ac_exeext conftest.$ac_ext
  5590. CFLAGS="$SAVE_CFLAGS"
  5591. ac_ext=c
  5592. ac_cpp='$CPP $CPPFLAGS'
  5593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5596.  
  5597. fi
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_sse2" >&5
  5599. $as_echo "$want_sse2" >&6; }
  5600.  
  5601.  
  5602.  
  5603. FDSIZE_HACK=""
  5604.  
  5605. # Check whether --with-fdsize was given.
  5606. if test "${with_fdsize+set}" = set; then :
  5607. withval=$with_fdsize; ac_cv_use_fdsize=$withval
  5608. else
  5609. ac_cv_use_fdsize=8192
  5610. fi
  5611.  
  5612. if [ "x$ac_cv_use_fdsize" != "xno" ]; then
  5613. FDSIZE_HACK="-DFDSIZE_HACK=$ac_cv_use_fdsize"
  5614.  
  5615. ac_ext=c
  5616. ac_cpp='$CPP $CPPFLAGS'
  5617. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5618. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5619. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5620.  
  5621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5622. /* end confdefs.h. */
  5623. #include <features.h>
  5624. #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
  5625. #include <bits/types.h>
  5626. #else
  5627. #error FD_SETSIZE cannot be set
  5628. #endif
  5629. int
  5630. main ()
  5631. {
  5632. if (__FD_SETSIZE>10) return 0;
  5633. ;
  5634. return 0;
  5635. }
  5636. _ACEOF
  5637. if ac_fn_c_try_compile "$LINENO"; then :
  5638.  
  5639. else
  5640. FDSIZE_HACK=""
  5641. fi
  5642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5643. ac_ext=c
  5644. ac_cpp='$CPP $CPPFLAGS'
  5645. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5646. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5647. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5648.  
  5649. if [ "x$FDSIZE_HACK" = "x" -a "x$HAVE_POLL" != "xyes" ]; then
  5650. as_fn_error $? "Cannot set FD_SETSIZE on this platform, use --without-fdsize" "$LINENO" 5
  5651. fi
  5652. fi
  5653. if [ "x$HAVE_POLL" = "xyes" ]; then
  5654. FDSIZE_HACK="-DHAVE_POLL $FDSIZE_HACK"
  5655. fi
  5656.  
  5657.  
  5658. HAVE_SCTP=no
  5659. HAVE_SCTP_NETINET=no
  5660. SCTP_FLAGS=""
  5661. # Check whether --enable-sctp was given.
  5662. if test "${enable_sctp+set}" = set; then :
  5663. enableval=$enable_sctp; want_sctp=$enableval
  5664. else
  5665. want_sctp=yes
  5666. fi
  5667.  
  5668. if [ "x$want_sctp" = "xyes" ]; then
  5669.  
  5670. ac_ext=c
  5671. ac_cpp='$CPP $CPPFLAGS'
  5672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5675.  
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic SCTP support" >&5
  5677. $as_echo_n "checking for basic SCTP support... " >&6; }
  5678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5679. /* end confdefs.h. */
  5680. #include <sys/types.h>
  5681. #include <sys/socket.h>
  5682. #include <netinet/in.h>
  5683. int
  5684. main ()
  5685. {
  5686. int fd = socket(PF_INET,SOCK_SEQPACKET,IPPROTO_SCTP);
  5687. ;
  5688. return 0;
  5689. }
  5690. _ACEOF
  5691. if ac_fn_c_try_compile "$LINENO"; then :
  5692. HAVE_SCTP=yes
  5693. fi
  5694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SCTP" >&5
  5696. $as_echo "$HAVE_SCTP" >&6; }
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/sctp.h usability" >&5
  5698. $as_echo_n "checking for netinet/sctp.h usability... " >&6; }
  5699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5700. /* end confdefs.h. */
  5701. #include <sys/types.h>
  5702. #include <sys/socket.h>
  5703. #include <netinet/in.h>
  5704. #include <netinet/sctp.h>
  5705. int
  5706. main ()
  5707. {
  5708. sctp_assoc_t assoc; int fd = socket(PF_INET,SOCK_SEQPACKET,IPPROTO_SCTP); assoc = 1;
  5709. ;
  5710. return 0;
  5711. }
  5712. _ACEOF
  5713. if ac_fn_c_try_compile "$LINENO"; then :
  5714. HAVE_SCTP_NETINET=yes
  5715. fi
  5716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SCTP_NETINET" >&5
  5718. $as_echo "$HAVE_SCTP_NETINET" >&6; }
  5719. if [ "x$HAVE_SCTP_NETINET" != "xno" ]; then
  5720. # including netinet/sctp.h fixes SCTP support so enable it
  5721. HAVE_SCTP=yes
  5722. SCTP_FLAGS="-DHAVE_SCTP -DHAVE_SCTP_NETINET"
  5723. sctp_connectx_new=no
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sctp_connectx has 4 arguments" >&5
  5725. $as_echo_n "checking whether sctp_connectx has 4 arguments... " >&6; }
  5726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5727. /* end confdefs.h. */
  5728. #include <sys/types.h>
  5729. #include <sys/socket.h>
  5730. #include <netinet/in.h>
  5731. #include <netinet/sctp.h>
  5732. int
  5733. main ()
  5734. {
  5735. sctp_connectx(0,0,0,0);
  5736. ;
  5737. return 0;
  5738. }
  5739. _ACEOF
  5740. if ac_fn_c_try_compile "$LINENO"; then :
  5741. sctp_connectx_new=yes
  5742. fi
  5743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sctp_connectx_new" >&5
  5745. $as_echo "$sctp_connectx_new" >&6; }
  5746. if [ "x$sctp_connectx_new" = "xyes" ]; then
  5747. SCTP_FLAGS="$SCTP_FLAGS -DHAVE_SCTP_CONNECTX_4"
  5748. fi
  5749. sctp_setadaptation=no
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sctp_setadaptation struct is present" >&5
  5751. $as_echo_n "checking whether sctp_setadaptation struct is present... " >&6; }
  5752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5753. /* end confdefs.h. */
  5754. #include <sys/types.h>
  5755. #include <sys/socket.h>
  5756. #include <netinet/in.h>
  5757. #include <netinet/sctp.h>
  5758. int
  5759. main ()
  5760. {
  5761. struct sctp_setadaptation sctp_adapt;
  5762. ;
  5763. return 0;
  5764. }
  5765. _ACEOF
  5766. if ac_fn_c_try_compile "$LINENO"; then :
  5767. sctp_setadaptation=yes
  5768. fi
  5769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sctp_setadaptation" >&5
  5771. $as_echo "$sctp_setadaptation" >&6; }
  5772. if [ "x$sctp_setadaptation" = "xyes" ]; then
  5773. SCTP_FLAGS="$SCTP_FLAGS -DHAVE_SETADAPTATION_STRUCT"
  5774. fi
  5775. sctp_sack_info=no
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sctp_sack_info struct is present" >&5
  5777. $as_echo_n "checking whether sctp_sack_info struct is present... " >&6; }
  5778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5779. /* end confdefs.h. */
  5780. #include <sys/types.h>
  5781. #include <sys/socket.h>
  5782. #include <netinet/in.h>
  5783. #include <netinet/sctp.h>
  5784. int
  5785. main ()
  5786. {
  5787. struct sctp_sack_info assoc_value;
  5788. ;
  5789. return 0;
  5790. }
  5791. _ACEOF
  5792. if ac_fn_c_try_compile "$LINENO"; then :
  5793. sctp_sack_info=yes
  5794. fi
  5795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sctp_sack_info" >&5
  5797. $as_echo "$sctp_sack_info" >&6; }
  5798. if [ "x$sctp_sack_info" = "xyes" ]; then
  5799. SCTP_FLAGS="$SCTP_FLAGS -DHAVE_SACK_INFO_STRUCT"
  5800. else
  5801. sctp_assoc_value=no
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sctp_assoc_value struct is present" >&5
  5803. $as_echo_n "checking whether sctp_assoc_value struct is present... " >&6; }
  5804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5805. /* end confdefs.h. */
  5806. #include <sys/types.h>
  5807. #include <sys/socket.h>
  5808. #include <netinet/in.h>
  5809. #include <netinet/sctp.h>
  5810. int
  5811. main ()
  5812. {
  5813. struct sctp_assoc_value assoc_value;
  5814. ;
  5815. return 0;
  5816. }
  5817. _ACEOF
  5818. if ac_fn_c_try_compile "$LINENO"; then :
  5819. sctp_assoc_value=yes
  5820. fi
  5821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sctp_assoc_value" >&5
  5823. $as_echo "$sctp_assoc_value" >&6; }
  5824. if [ "x$sctp_assoc_value" = "xyes" ]; then
  5825. SCTP_FLAGS="$SCTP_FLAGS -DHAVE_ASSOC_VALUE_STRUCT"
  5826. fi
  5827. fi
  5828. # Check for SCTP_UNCONFIRMED enum value presence
  5829. # Added in lksctp-tools 1.0.7
  5830. sctp_have_unconfirmed=no
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP_UNCONFIRMED is present" >&5
  5832. $as_echo_n "checking whether SCTP_UNCONFIRMED is present... " >&6; }
  5833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5834. /* end confdefs.h. */
  5835. #include <netinet/sctp.h>
  5836. int
  5837. main ()
  5838. {
  5839. int val = SCTP_UNCONFIRMED;
  5840. ;
  5841. return 0;
  5842. }
  5843. _ACEOF
  5844. if ac_fn_c_try_compile "$LINENO"; then :
  5845. sctp_have_unconfirmed=yes
  5846. fi
  5847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sctp_have_unconfirmed" >&5
  5849. $as_echo "$sctp_have_unconfirmed" >&6; }
  5850. if [ "x$sctp_have_unconfirmed" = "xyes" ]; then
  5851. SCTP_FLAGS="$SCTP_FLAGS -DHAVE_SCTP_UNCONFIRMED"
  5852. fi
  5853. # Check for SCTP_PF enum value presence
  5854. sctp_have_pf=no
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP_PF is present" >&5
  5856. $as_echo_n "checking whether SCTP_PF is present... " >&6; }
  5857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5858. /* end confdefs.h. */
  5859. #include <netinet/sctp.h>
  5860. int
  5861. main ()
  5862. {
  5863. int val = SCTP_PF;
  5864. ;
  5865. return 0;
  5866. }
  5867. _ACEOF
  5868. if ac_fn_c_try_compile "$LINENO"; then :
  5869. sctp_have_pf=yes
  5870. fi
  5871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sctp_have_unconfirmed" >&5
  5873. $as_echo "$sctp_have_unconfirmed" >&6; }
  5874. if [ "x$sctp_have_pf" = "xyes" ]; then
  5875. SCTP_FLAGS="$SCTP_FLAGS -DHAVE_SCTP_PF"
  5876. fi
  5877. else
  5878. if [ "x$HAVE_SCTP" != "xno" ]; then
  5879. SCTP_FLAGS="-DHAVE_SCTP"
  5880. fi
  5881. fi
  5882. ac_ext=c
  5883. ac_cpp='$CPP $CPPFLAGS'
  5884. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5885. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5886. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5887.  
  5888. fi
  5889.  
  5890.  
  5891.  
  5892.  
  5893. # Checks for optional libraries.
  5894.  
  5895. HAVE_RESOLV=no
  5896. RESOLV_INC="-DNO_RESOLV"
  5897. RESOLV_LIB=""
  5898. # Check whether --enable-resolver was given.
  5899. if test "${enable_resolver+set}" = set; then :
  5900. enableval=$enable_resolver; want_resolver=$enableval
  5901. else
  5902. want_resolver=yes
  5903. fi
  5904.  
  5905. if [ "x$want_resolver" = "xyes" ]; then
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver library" >&5
  5907. $as_echo_n "checking for resolver library... " >&6; }
  5908.  
  5909. ac_ext=c
  5910. ac_cpp='$CPP $CPPFLAGS'
  5911. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5912. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5913. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5914.  
  5915. SAVE_CFLAGS="$CFLAGS"
  5916. CFLAGS="$CFLAGS -Wall -Werror $GCC_UNRESOLVED_SYMBOLS"
  5917. SAVE_LIBS="$LIBS"
  5918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5919. /* end confdefs.h. */
  5920. #include <netinet/in.h>
  5921. #include <arpa/nameser.h>
  5922. #include <resolv.h>
  5923. int
  5924. main ()
  5925. {
  5926. res_init();
  5927. ;
  5928. return 0;
  5929. }
  5930. _ACEOF
  5931. if ac_fn_c_try_link "$LINENO"; then :
  5932. HAVE_RESOLV=yes
  5933. fi
  5934. rm -f core conftest.err conftest.$ac_objext \
  5935. conftest$ac_exeext conftest.$ac_ext
  5936. if [ "x$HAVE_RESOLV" = "xno" ]; then
  5937. LIBS="$LIBS -lresolv"
  5938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5939. /* end confdefs.h. */
  5940. #include <netinet/in.h>
  5941. #include <arpa/nameser.h>
  5942. #include <resolv.h>
  5943. int
  5944. main ()
  5945. {
  5946. res_init();
  5947. ;
  5948. return 0;
  5949. }
  5950. _ACEOF
  5951. if ac_fn_c_try_link "$LINENO"; then :
  5952. HAVE_RESOLV=yes RESOLV_LIB=-lresolv
  5953. fi
  5954. rm -f core conftest.err conftest.$ac_objext \
  5955. conftest$ac_exeext conftest.$ac_ext
  5956. fi
  5957. LIBS="$SAVE_LIBS"
  5958. if [ "x$HAVE_RESOLV" != "xno" -a "x$RESOLV_LIB" = "x" ]; then
  5959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5960. /* end confdefs.h. */
  5961. #include <netinet/in.h>
  5962. #include <arpa/nameser.h>
  5963. #include <resolv.h>
  5964. int
  5965. main ()
  5966. {
  5967. unsigned char x[2]; res_query("",0,0,x,0);
  5968. ;
  5969. return 0;
  5970. }
  5971. _ACEOF
  5972. if ac_fn_c_try_link "$LINENO"; then :
  5973.  
  5974. else
  5975. RESOLV_LIB=-lresolv
  5976. fi
  5977. rm -f core conftest.err conftest.$ac_objext \
  5978. conftest$ac_exeext conftest.$ac_ext
  5979. fi
  5980. CFLAGS="$SAVE_CFLAGS"
  5981. ac_ext=c
  5982. ac_cpp='$CPP $CPPFLAGS'
  5983. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5984. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5986.  
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RESOLV $RESOLV_LIB" >&5
  5988. $as_echo "$HAVE_RESOLV $RESOLV_LIB" >&6; }
  5989. if [ "x$HAVE_RESOLV" = "xyes" ]; then
  5990. RESOLV_INC="-DNO_DN_SKIPNAME"
  5991. HAVE_DN_SKIPNAME="no"
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname" >&5
  5993. $as_echo_n "checking for dn_skipname... " >&6; }
  5994.  
  5995. ac_ext=c
  5996. ac_cpp='$CPP $CPPFLAGS'
  5997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6000.  
  6001. SAVE_CFLAGS="$CFLAGS"
  6002. CFLAGS="$CFLAGS -Wall -Werror $GCC_UNRESOLVED_SYMBOLS"
  6003. SAVE_LIBS="$LIBS"
  6004. LIBS="$LIBS $RESOLV_LIB"
  6005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6006. /* end confdefs.h. */
  6007. #include <netinet/in.h>
  6008. #include <arpa/nameser.h>
  6009. #include <resolv.h>
  6010. int
  6011. main ()
  6012. {
  6013. unsigned char*p=0; dn_skipname(p,p);
  6014. ;
  6015. return 0;
  6016. }
  6017. _ACEOF
  6018. if ac_fn_c_try_link "$LINENO"; then :
  6019. HAVE_DN_SKIPNAME=yes RESOLV_INC=""
  6020. fi
  6021. rm -f core conftest.err conftest.$ac_objext \
  6022. conftest$ac_exeext conftest.$ac_ext
  6023. LIBS="$SAVE_LIBS"
  6024. CFLAGS="$SAVE_CFLAGS"
  6025. ac_ext=c
  6026. ac_cpp='$CPP $CPPFLAGS'
  6027. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6028. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6029. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6030.  
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DN_SKIPNAME" >&5
  6032. $as_echo "$HAVE_DN_SKIPNAME" >&6; }
  6033. fi
  6034. fi
  6035.  
  6036.  
  6037.  
  6038.  
  6039. INTERNAL_REGEX=yes
  6040. # Check whether --enable-internalregex was given.
  6041. if test "${enable_internalregex+set}" = set; then :
  6042. enableval=$enable_internalregex; want_internalregex=$enableval
  6043. else
  6044. want_internalregex=auto
  6045. fi
  6046.  
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the internal regexp library" >&5
  6048. $as_echo_n "checking whether to use the internal regexp library... " >&6; }
  6049. case "x$want_internalregex" in
  6050. xno|xdisable|xnot)
  6051. INTERNAL_REGEX=no
  6052. ;;
  6053. xyes|xenable)
  6054. ;;
  6055. xauto)
  6056. if [ "x$uname_os" = "xLinux" ]; then
  6057. INTERNAL_REGEX=no
  6058. fi
  6059. ;;
  6060. *)
  6061. as_fn_error $? "Invalid argument passed to --enable-internalregex" "$LINENO" 5
  6062. ;;
  6063. esac
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTERNAL_REGEX" >&5
  6065. $as_echo "$INTERNAL_REGEX" >&6; }
  6066. if [ "x$INTERNAL_REGEX" != "xyes" ]; then
  6067. for ac_func in regcomp
  6068. do :
  6069. ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
  6070. if test "x$ac_cv_func_regcomp" = xyes; then :
  6071. cat >>confdefs.h <<_ACEOF
  6072. #define HAVE_REGCOMP 1
  6073. _ACEOF
  6074.  
  6075. else
  6076. INTERNAL_REGEX=yes
  6077. fi
  6078. done
  6079.  
  6080. fi
  6081.  
  6082.  
  6083. # check for Mac OS X Support
  6084. MACOSX_INC=""
  6085. HAVE_MACOSX_SUPPORT=no
  6086. OBJCFLAGS=""
  6087. if [ "x$uname_os" = "xDarwin" ]; then
  6088. save_CPPFLAGS=$CPPFLAGS
  6089. CPPFLAGS="$CPPFLAGS -x objective-c++"
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Objective-C support" >&5
  6091. $as_echo_n "checking for Mac OS X Objective-C support... " >&6; }
  6092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6093. /* end confdefs.h. */
  6094. #import <Foundation/Foundation.h>
  6095. int
  6096. main ()
  6097. {
  6098.  
  6099. [NSFileManager defaultManager]
  6100.  
  6101. ;
  6102. return 0;
  6103. }
  6104. _ACEOF
  6105. if ac_fn_c_try_compile "$LINENO"; then :
  6106.  
  6107. HAVE_MACOSX_SUPPORT="yes"
  6108. OBJCFLAGS="-x objective-c++"
  6109. MACOSX_INC="-DHAVE_MACOSX_SUPPORT"
  6110.  
  6111. fi
  6112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MACOSX_SUPPORT" >&5
  6114. $as_echo "$HAVE_MACOSX_SUPPORT" >&6; }
  6115. CPPFLAGS=$save_CPPFLAGS
  6116. fi
  6117.  
  6118.  
  6119.  
  6120.  
  6121.  
  6122. HAVE_PGSQL=no
  6123. PGSQL_INC=""
  6124. PGSQL_LIB=""
  6125.  
  6126. # Check whether --with-libpq was given.
  6127. if test "${with_libpq+set}" = set; then :
  6128. withval=$with_libpq; ac_cv_use_libpq=$withval
  6129. else
  6130. ac_cv_use_libpq=/usr
  6131. fi
  6132.  
  6133. if [ "x$ac_cv_use_libpq" != "xno" ]; then
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgress SQL in $ac_cv_use_libpq" >&5
  6135. $as_echo_n "checking for Postgress SQL in $ac_cv_use_libpq... " >&6; }
  6136. local_lib="$ARCHLIB"
  6137. libpq="$ac_cv_use_libpq/$local_lib/libpq.so"
  6138. if [ "x$local_lib" != "xlib" -a ! -f "$libpq" ]; then
  6139. local_lib="lib"
  6140. libpq="$ac_cv_use_libpq/$local_lib/libpq.so"
  6141. fi
  6142. if [ "x$ac_cv_use_libpq" != "x/usr" ]; then
  6143. PGSQL_LIB="-L$ac_cv_use_libpq/$local_lib -lpq"
  6144. else
  6145. PGSQL_LIB="-lpq"
  6146. fi
  6147. for i in include include/pgsql pgsql/include include/postgresql; do
  6148. incpq="$ac_cv_use_libpq/$i"
  6149. test -f "$incpq/libpq-fe.h" && break
  6150. done
  6151. if [ ! -f "$incpq/libpq-fe.h" ]; then
  6152. incpq="$incpq/pgsql"
  6153. fi
  6154. if [ -f "$incpq/libpq-fe.h" ]; then
  6155. if [ -f "$libpq" ]; then
  6156. HAVE_PGSQL=yes
  6157. else
  6158. SAVE_CFLAGS="$CFLAGS"
  6159. CFLAGS="$CFLAGS -I$incpq"
  6160. SAVE_LIBS="$LIBS"
  6161. LIBS="$LIBS -lpq"
  6162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6163. /* end confdefs.h. */
  6164. #include <libpq-fe.h>
  6165. int
  6166. main ()
  6167. {
  6168. PQconnectStart("");
  6169. ;
  6170. return 0;
  6171. }
  6172. _ACEOF
  6173. if ac_fn_c_try_link "$LINENO"; then :
  6174. HAVE_PGSQL=yes
  6175. fi
  6176. rm -f core conftest.err conftest.$ac_objext \
  6177. conftest$ac_exeext conftest.$ac_ext
  6178. LIBS="$SAVE_LIBS"
  6179. CFLAGS="$SAVE_CFLAGS"
  6180. fi
  6181. if [ "x$HAVE_PGSQL" = "xyes" ]; then
  6182. PGSQL_INC="-I$incpq"
  6183. fi
  6184. fi
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PGSQL" >&5
  6186. $as_echo "$HAVE_PGSQL" >&6; }
  6187. fi
  6188.  
  6189.  
  6190.  
  6191.  
  6192. HAVE_MYSQL=no
  6193. MYSQL_INC=""
  6194. MYSQL_LIB=""
  6195. MYSQL_VER=""
  6196.  
  6197. # Check whether --with-mysql was given.
  6198. if test "${with_mysql+set}" = set; then :
  6199. withval=$with_mysql; ac_cv_use_mysql=$withval
  6200. else
  6201. ac_cv_use_mysql=yes
  6202. fi
  6203.  
  6204. if [ "x$ac_cv_use_mysql" != "xno" ]; then
  6205. if [ "x$ac_cv_use_mysql" = "xyes" ]; then
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL using mysql_config" >&5
  6207. $as_echo_n "checking for MySQL using mysql_config... " >&6; }
  6208. MYSQL_INC=`(mysql_config --include) 2>/dev/null`
  6209. MYSQL_LIB=`(mysql_config --libs_r) 2>/dev/null`
  6210. MYSQL_VER=`(mysql_config --version) 2>/dev/null`
  6211. if [ x`echo "$MYSQL_INC $MYSQL_LIB $MYSQL_VER" | wc -l | sed 's/^ *//g'` != "x1" ]; then
  6212. MYSQL_INC=""
  6213. fi
  6214. if [ ! -f `echo "$MYSQL_INC" | sed -n 's,^-I\([^ ]\+\)\( .*\)\?$,\1/mysql.h,p'` ]; then
  6215. MYSQL_INC=""
  6216. fi
  6217. if [ "x$MYSQL_INC" != "x" -a "x$MYSQL_LIB" != "x" -a "x$MYSQL_VER" != "x" ]; then
  6218. HAVE_MYSQL=yes
  6219. else
  6220. MYSQL_INC=""
  6221. MYSQL_LIB=""
  6222. MYSQL_VER=""
  6223. fi
  6224. else
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL in $ac_cv_use_mysql" >&5
  6226. $as_echo_n "checking for MySQL in $ac_cv_use_mysql... " >&6; }
  6227. local_lib="$ARCHLIB"
  6228. if [ "x$local_lib" != "xlib" -a ! -d "$ac_cv_use_mysql/$local_lib/mysql" ]; then
  6229. local_lib="lib"
  6230. fi
  6231. if [ -f "$ac_cv_use_mysql/include/mysql/mysql.h" -a -d "$ac_cv_use_mysql/$local_lib/mysql" ]; then
  6232. MYSQL_INC="-I$ac_cv_use_mysql/include/mysql"
  6233. MYSQL_LIB="-L$ac_cv_use_mysql/$local_lib/mysql -lmysqlclient_r -lpthread -lz -lcrypt -lnsl -lm"
  6234. MYSQL_VER=`sed -n 's/^.*MYSQL_SERVER_VERSION[^"]*"\([^"]*\).*$/\1/p' "$ac_cv_use_mysql/include/mysql/mysql_version.h"`
  6235. HAVE_MYSQL=yes
  6236. fi
  6237. fi
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MYSQL $MYSQL_VER" >&5
  6239. $as_echo "$HAVE_MYSQL $MYSQL_VER" >&6; }
  6240. if test "$HAVE_MYSQL" = "yes"; then
  6241. save_CPPFLAGS=$CPPFLAGS
  6242. CPPFLAGS="$CPPFLAGS $MYSQL_INC"
  6243. ac_fn_c_check_decl "$LINENO" "MYSQL_OPT_RECONNECT" "ac_cv_have_decl_MYSQL_OPT_RECONNECT" "#include<mysql.h>
  6244. "
  6245. if test "x$ac_cv_have_decl_MYSQL_OPT_RECONNECT" = xyes; then :
  6246. ac_have_decl=1
  6247. else
  6248. ac_have_decl=0
  6249. fi
  6250.  
  6251. cat >>confdefs.h <<_ACEOF
  6252. #define HAVE_DECL_MYSQL_OPT_RECONNECT $ac_have_decl
  6253. _ACEOF
  6254. if test $ac_have_decl = 1; then :
  6255. MYSQL_INC="$MYSQL_INC -DMYSQL_OPT_RECONNECT=MYSQL_OPT_RECONNECT"
  6256. fi
  6257.  
  6258. ac_fn_c_check_decl "$LINENO" "MYSQL_OPT_READ_TIMEOUT" "ac_cv_have_decl_MYSQL_OPT_READ_TIMEOUT" "#include<mysql.h>
  6259. "
  6260. if test "x$ac_cv_have_decl_MYSQL_OPT_READ_TIMEOUT" = xyes; then :
  6261. ac_have_decl=1
  6262. else
  6263. ac_have_decl=0
  6264. fi
  6265.  
  6266. cat >>confdefs.h <<_ACEOF
  6267. #define HAVE_DECL_MYSQL_OPT_READ_TIMEOUT $ac_have_decl
  6268. _ACEOF
  6269. if test $ac_have_decl = 1; then :
  6270. MYSQL_INC="$MYSQL_INC -DMYSQL_OPT_READ_TIMEOUT=MYSQL_OPT_READ_TIMEOUT"
  6271. fi
  6272.  
  6273. ac_fn_c_check_decl "$LINENO" "MYSQL_OPT_WRITE_TIMEOUT" "ac_cv_have_decl_MYSQL_OPT_WRITE_TIMEOUT" "#include<mysql.h>
  6274. "
  6275. if test "x$ac_cv_have_decl_MYSQL_OPT_WRITE_TIMEOUT" = xyes; then :
  6276. ac_have_decl=1
  6277. else
  6278. ac_have_decl=0
  6279. fi
  6280.  
  6281. cat >>confdefs.h <<_ACEOF
  6282. #define HAVE_DECL_MYSQL_OPT_WRITE_TIMEOUT $ac_have_decl
  6283. _ACEOF
  6284. if test $ac_have_decl = 1; then :
  6285. MYSQL_INC="$MYSQL_INC -DMYSQL_OPT_WRITE_TIMEOUT=MYSQL_OPT_WRITE_TIMEOUT"
  6286. fi
  6287.  
  6288. ac_fn_c_check_decl "$LINENO" "mysql_set_character_set" "ac_cv_have_decl_mysql_set_character_set" "#include<mysql.h>
  6289. "
  6290. if test "x$ac_cv_have_decl_mysql_set_character_set" = xyes; then :
  6291. ac_have_decl=1
  6292. else
  6293. ac_have_decl=0
  6294. fi
  6295.  
  6296. cat >>confdefs.h <<_ACEOF
  6297. #define HAVE_DECL_MYSQL_SET_CHARACTER_SET $ac_have_decl
  6298. _ACEOF
  6299. if test $ac_have_decl = 1; then :
  6300. MYSQL_INC="$MYSQL_INC -DHAVE_MYSQL_SET_CHARSET"
  6301. fi
  6302.  
  6303. CPPFLAGS=$save_CPPFLAGS
  6304. fi
  6305. fi
  6306.  
  6307.  
  6308.  
  6309.  
  6310.  
  6311. HAVE_SQLITE=no
  6312. SQLITE_INC=""
  6313. SQLITE_LIB=""
  6314.  
  6315. # Check whether --with-sqlite was given.
  6316. if test "${with_sqlite+set}" = set; then :
  6317. withval=$with_sqlite; ac_cv_use_sqlite=$withval
  6318. else
  6319. ac_cv_use_sqlite=yes
  6320. fi
  6321.  
  6322. if [ "x$ac_cv_use_sqlite" != "xno" ]; then
  6323. if [ "x$ac_cv_use_sqlite" = "xyes" ]; then
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite using pkg-config" >&5
  6325. $as_echo_n "checking for SQLite using pkg-config... " >&6; }
  6326. SQLITE_INC=`(pkg-config --cflags sqlite3) 2>/dev/null`
  6327. SQLITE_LIB=`(pkg-config --libs sqlite3) 2>/dev/null`
  6328. if [ "x$SQLITE_INC$SQLITE_LIB" = "x" ]; then
  6329. SQLITE_INC=""
  6330. SQLITE_LIB=""
  6331. else
  6332. HAVE_SQLITE=yes
  6333. fi
  6334. else
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite in $ac_cv_use_sqlite" >&5
  6336. $as_echo_n "checking for SQLite in $ac_cv_use_sqlite... " >&6; }
  6337. if [ -f "$ac_cv_use_sqlite/sqlite3.h" ]; then
  6338. SQLITE_INC="-I$ac_cv_use_sqlite"
  6339. SQLITE_LIB="-lsqlite3"
  6340. HAVE_SQLITE=yes
  6341. fi
  6342. fi
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SQLITE" >&5
  6344. $as_echo "$HAVE_SQLITE" >&6; }
  6345. fi
  6346.  
  6347.  
  6348.  
  6349.  
  6350.  
  6351. HAVE_ZAP=no
  6352. ZAP_FLAGS=""
  6353. # Check whether --enable-dahdi was given.
  6354. if test "${enable_dahdi+set}" = set; then :
  6355. enableval=$enable_dahdi; want_dahdi=$enableval
  6356. else
  6357. want_dahdi=yes
  6358. fi
  6359.  
  6360. if [ "x$want_dahdi" = "xyes" ]; then
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dahdi generic headers" >&5
  6362. $as_echo_n "checking for Dahdi generic headers... " >&6; }
  6363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6364. /* end confdefs.h. */
  6365.  
  6366. #include <dahdi/user.h>
  6367.  
  6368. int
  6369. main ()
  6370. {
  6371.  
  6372. ;
  6373. return 0;
  6374. }
  6375. _ACEOF
  6376. if ac_fn_c_try_compile "$LINENO"; then :
  6377. HAVE_ZAP="yes"
  6378.  
  6379. fi
  6380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ZAP" >&5
  6382. $as_echo "$HAVE_ZAP" >&6; }
  6383. if [ "x$HAVE_ZAP" = "xno" ]; then
  6384. # Check whether --enable-zaptel was given.
  6385. if test "${enable_zaptel+set}" = set; then :
  6386. enableval=$enable_zaptel; want_zaptel=$enableval
  6387. else
  6388. want_zaptel=yes
  6389. fi
  6390.  
  6391. if [ "x$want_zaptel" = "xyes" ]; then
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zaptel generic headers" >&5
  6393. $as_echo_n "checking for Zaptel generic headers... " >&6; }
  6394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6395. /* end confdefs.h. */
  6396.  
  6397. #include <zaptel/zaptel.h>
  6398. #include <sys/ioctl.h>
  6399.  
  6400. int
  6401. main ()
  6402. {
  6403. ioctl(0,ZT_GETVERSION,(void*)0)
  6404. ;
  6405. return 0;
  6406. }
  6407. _ACEOF
  6408. if ac_fn_c_try_compile "$LINENO"; then :
  6409. HAVE_ZAP="yes"
  6410. ZAP_FLAGS="-DNEW_ZAPTEL_LOCATION -DHAVE_ZAP"
  6411.  
  6412. fi
  6413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ZAP" >&5
  6415. $as_echo "$HAVE_ZAP" >&6; }
  6416. if [ "x$HAVE_ZAP" = "xno" ]; then
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zaptel linux headers" >&5
  6418. $as_echo_n "checking for Zaptel linux headers... " >&6; }
  6419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6420. /* end confdefs.h. */
  6421.  
  6422. #include <linux/zaptel.h>
  6423. #include <sys/ioctl.h>
  6424.  
  6425. int
  6426. main ()
  6427. {
  6428. ioctl(0,ZT_GETVERSION,(void*)0)
  6429. ;
  6430. return 0;
  6431. }
  6432. _ACEOF
  6433. if ac_fn_c_try_compile "$LINENO"; then :
  6434. HAVE_ZAP="yes"
  6435. ZAP_FLAGS="-DHAVE_ZAP"
  6436.  
  6437. fi
  6438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ZAP" >&5
  6440. $as_echo "$HAVE_ZAP" >&6; }
  6441. fi
  6442. fi
  6443. fi
  6444. fi
  6445.  
  6446.  
  6447.  
  6448. # Check whether --enable-wpcard was given.
  6449. if test "${enable_wpcard+set}" = set; then :
  6450. enableval=$enable_wpcard; BUILD_WPCARD=$enableval
  6451. else
  6452. BUILD_WPCARD=yes
  6453. fi
  6454.  
  6455. # Check whether --enable-tdmcard was given.
  6456. if test "${enable_tdmcard+set}" = set; then :
  6457. enableval=$enable_tdmcard; BUILD_TDMCARD=$enableval
  6458. else
  6459. BUILD_TDMCARD=yes
  6460. fi
  6461.  
  6462.  
  6463.  
  6464.  
  6465. HAVE_WANPIPE=no
  6466. WANPIPE_FLAGS=""
  6467. # Check whether --enable-wanpipe was given.
  6468. if test "${enable_wanpipe+set}" = set; then :
  6469. enableval=$enable_wanpipe; want_wanpipe=$enableval
  6470. else
  6471. want_wanpipe=yes
  6472. fi
  6473.  
  6474. if [ "x$want_wanpipe" = "xyes" ]; then
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wanpipe new generic headers" >&5
  6476. $as_echo_n "checking for Wanpipe new generic headers... " >&6; }
  6477. SAVE_CFLAGS="$CFLAGS"
  6478. CFLAGS="$CFLAGS -I/usr/include/wanpipe"
  6479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6480. /* end confdefs.h. */
  6481.  
  6482. #define __LINUX__
  6483. #include <sys/types.h>
  6484. #include <sys/ioctl.h>
  6485. #include <sys/socket.h>
  6486. #include <netinet/in.h>
  6487. #include <if_wanpipe.h>
  6488. #include <wanpipe_defines.h>
  6489. #include <wanpipe_cfg.h>
  6490. #include <wanpipe.h>
  6491. #include <aft_core.h>
  6492.  
  6493. int
  6494. main ()
  6495. {
  6496.  
  6497. ;
  6498. return 0;
  6499. }
  6500. _ACEOF
  6501. if ac_fn_c_try_compile "$LINENO"; then :
  6502. HAVE_WANPIPE="yes"
  6503.  
  6504. fi
  6505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6506. CFLAGS="$SAVE_CFLAGS"
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WANPIPE" >&5
  6508. $as_echo "$HAVE_WANPIPE" >&6; }
  6509. if [ "x$HAVE_WANPIPE" = "xyes" ]; then
  6510. WANPIPE_FLAGS="-DNEW_WANPIPE_API"
  6511. else
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wanpipe old generic headers" >&5
  6513. $as_echo_n "checking for Wanpipe old generic headers... " >&6; }
  6514. SAVE_CFLAGS="$CFLAGS"
  6515. CFLAGS="$CFLAGS -I/usr/include/wanpipe"
  6516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6517. /* end confdefs.h. */
  6518.  
  6519. #define __LINUX__
  6520. #include <sys/types.h>
  6521. #include <sys/ioctl.h>
  6522. #include <sys/socket.h>
  6523. #include <netinet/in.h>
  6524. #include <if_wanpipe.h>
  6525. #include <wanpipe_defines.h>
  6526. #include <wanpipe_cfg.h>
  6527. #include <wanpipe.h>
  6528. #include <sdla_aft_te1.h>
  6529.  
  6530. int
  6531. main ()
  6532. {
  6533.  
  6534. ;
  6535. return 0;
  6536. }
  6537. _ACEOF
  6538. if ac_fn_c_try_compile "$LINENO"; then :
  6539. HAVE_WANPIPE="yes"
  6540.  
  6541. fi
  6542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6543. CFLAGS="$SAVE_CFLAGS"
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WANPIPE" >&5
  6545. $as_echo "$HAVE_WANPIPE" >&6; }
  6546. fi
  6547. if [ "x$HAVE_WANPIPE" = "xyes" ]; then
  6548. WANPIPE_FLAGS="-DHAVE_WANPIPE_API -I/usr/include/wanpipe $WANPIPE_FLAGS"
  6549. else
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wanpipe linux headers" >&5
  6551. $as_echo_n "checking for Wanpipe linux headers... " >&6; }
  6552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6553. /* end confdefs.h. */
  6554.  
  6555. #define __LINUX__
  6556. #include <sys/types.h>
  6557. #include <sys/ioctl.h>
  6558. #include <sys/socket.h>
  6559. #include <netinet/in.h>
  6560. #include <linux/if_wanpipe.h>
  6561. #include <linux/if.h>
  6562. #include <linux/wanpipe_defines.h>
  6563. #include <linux/wanpipe_cfg.h>
  6564. #include <linux/wanpipe.h>
  6565. #include <linux/sdla_aft_te1.h>
  6566.  
  6567. int
  6568. main ()
  6569. {
  6570.  
  6571. ;
  6572. return 0;
  6573. }
  6574. _ACEOF
  6575. if ac_fn_c_try_compile "$LINENO"; then :
  6576. HAVE_WANPIPE="yes"
  6577.  
  6578. fi
  6579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WANPIPE" >&5
  6581. $as_echo "$HAVE_WANPIPE" >&6; }
  6582. fi
  6583. fi
  6584.  
  6585. HAVE_WANPIPE_TDM="no"
  6586. if [ "x$HAVE_WANPIPE" = "xyes" ]; then
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wanpipe TDM" >&5
  6588. $as_echo_n "checking for Wanpipe TDM... " >&6; }
  6589. SAVE_CFLAGS="$CFLAGS"
  6590. CFLAGS="$CFLAGS -I/usr/include/wanpipe"
  6591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6592. /* end confdefs.h. */
  6593.  
  6594. #define __LINUX__
  6595. #include <sys/types.h>
  6596. #include <sys/ioctl.h>
  6597. #include <sys/socket.h>
  6598. #include <netinet/in.h>
  6599. #include <wanpipe.h>
  6600.  
  6601. int
  6602. main ()
  6603. {
  6604. wanpipe_api_t tdm;
  6605. ;
  6606. return 0;
  6607. }
  6608. _ACEOF
  6609. if ac_fn_c_try_compile "$LINENO"; then :
  6610. HAVE_WANPIPE_TDM="yes"
  6611.  
  6612. fi
  6613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6614. CFLAGS="$SAVE_CFLAGS"
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WANPIPE_TDM" >&5
  6616. $as_echo "$HAVE_WANPIPE_TDM" >&6; }
  6617. fi
  6618.  
  6619.  
  6620.  
  6621. # Check whether --with-wphwec was given.
  6622. if test "${with_wphwec+set}" = set; then :
  6623. withval=$with_wphwec; ac_cv_use_wphwec=$withval
  6624. else
  6625. ac_cv_use_wphwec=/usr/include/wanpipe
  6626. fi
  6627.  
  6628. if [ "x$HAVE_WANPIPE" = "xyes" ]; then
  6629. if [ "x$ac_cv_use_wphwec" != "xno" ]; then
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wanpipe/Octasic headers" >&5
  6631. $as_echo_n "checking for Wanpipe/Octasic headers... " >&6; }
  6632. if [ -f "$ac_cv_use_wphwec/wanec_iface.h" -a -f "$ac_cv_use_wphwec/oct6100_api/oct6100api/oct6100_api.h" ]; then
  6633. WANPIPE_FLAGS="-DHAVE_WANPIPE_HWEC -I$ac_cv_use_wphwec/oct6100_api $WANPIPE_FLAGS"
  6634. if [ -f "$ac_cv_use_wphwec/wanec_iface_api.h" ]; then
  6635. WANPIPE_FLAGS="-DHAVE_WANPIPE_HWEC_API $WANPIPE_FLAGS"
  6636. fi
  6637. ac_cv_use_wphwec=yes
  6638. else
  6639. ac_cv_use_wphwec=no
  6640. fi
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_wphwec" >&5
  6642. $as_echo "$ac_cv_use_wphwec" >&6; }
  6643. fi
  6644. fi
  6645.  
  6646.  
  6647. HAVE_SOUNDCARD=no
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sound card headers" >&5
  6649. $as_echo_n "checking for sound card headers... " >&6; }
  6650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6651. /* end confdefs.h. */
  6652.  
  6653. #include <sys/stat.h>
  6654. #include <sys/ioctl.h>
  6655. #include <string.h>
  6656. #include <fcntl.h>
  6657.  
  6658. #if defined(__linux__)
  6659. #include <linux/soundcard.h>
  6660. #elif defined (__FreeBSD__)
  6661. #include <sys/soundcard.h>
  6662. #else
  6663. #include <soundcard.h>
  6664. #endif
  6665.  
  6666. int
  6667. main ()
  6668. {
  6669.  
  6670. ;
  6671. return 0;
  6672. }
  6673. _ACEOF
  6674. if ac_fn_c_try_compile "$LINENO"; then :
  6675. HAVE_SOUNDCARD="yes"
  6676.  
  6677. fi
  6678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SOUNDCARD" >&5
  6680. $as_echo "$HAVE_SOUNDCARD" >&6; }
  6681.  
  6682.  
  6683. HAVE_ALSA=no
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA headers" >&5
  6685. $as_echo_n "checking for ALSA headers... " >&6; }
  6686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6687. /* end confdefs.h. */
  6688.  
  6689. #if defined(__linux__)
  6690. #include <linux/soundcard.h>
  6691. #elif defined (__FreeBSD__)
  6692. #include <sys/soundcard.h>
  6693. #else
  6694. #include <soundcard.h>
  6695. #endif
  6696.  
  6697. #define ALSA_PCM_NEW_HW_PARAMS_API
  6698. #include <alsa/asoundlib.h>
  6699.  
  6700. int
  6701. main ()
  6702. {
  6703.  
  6704. ;
  6705. return 0;
  6706. }
  6707. _ACEOF
  6708. if ac_fn_c_try_compile "$LINENO"; then :
  6709. HAVE_ALSA="yes"
  6710.  
  6711. fi
  6712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALSA" >&5
  6714. $as_echo "$HAVE_ALSA" >&6; }
  6715.  
  6716.  
  6717. # check for Mac OS X audio headers
  6718. HAVE_COREAUDIO=no
  6719. if [ "x$uname_os" = "xDarwin" ]; then
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X audio headers" >&5
  6721. $as_echo_n "checking for Mac OS X audio headers... " >&6; }
  6722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6723. /* end confdefs.h. */
  6724.  
  6725. #include <AudioUnit/AudioUnit.h>
  6726. #include <AudioToolbox/AudioToolbox.h>
  6727.  
  6728. AudioDeviceID getDefaultInputDevice()
  6729. {
  6730. AudioDeviceID theAnswer = 0;
  6731. UInt32 theSize = sizeof(AudioDeviceID);
  6732. AudioObjectPropertyAddress theAddress = { kAudioHardwarePropertyDefaultInputDevice,
  6733. kAudioObjectPropertyScopeGlobal,
  6734. kAudioObjectPropertyElementMaster };
  6735.  
  6736. OSStatus theError = AudioObjectGetPropertyData(kAudioObjectSystemObject,
  6737. &theAddress,
  6738. 0,
  6739. NULL,
  6740. &theSize,
  6741. &theAnswer);
  6742. return theAnswer;
  6743. }
  6744.  
  6745. int
  6746. main ()
  6747. {
  6748.  
  6749. ;
  6750. return 0;
  6751. }
  6752. _ACEOF
  6753. if ac_fn_c_try_compile "$LINENO"; then :
  6754. HAVE_COREAUDIO="yes"
  6755.  
  6756. fi
  6757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_COREAUDIO" >&5
  6759. $as_echo "$HAVE_COREAUDIO" >&6; }
  6760. fi
  6761.  
  6762.  
  6763. HAVE_GSM=no
  6764. GSM_INC=""
  6765. GSM_LIB="-lgsm"
  6766.  
  6767. # Check whether --with-libgsm was given.
  6768. if test "${with_libgsm+set}" = set; then :
  6769. withval=$with_libgsm; ac_cv_use_libgsm=$withval
  6770. else
  6771. ac_cv_use_libgsm=yes
  6772. fi
  6773.  
  6774. if [ "x$ac_cv_use_libgsm" = "xstatic" ]; then
  6775. ac_cv_use_libgsm=yes
  6776. GSM_LIB="-Wl,-Bstatic $GSM_LIB -Wl,-Bdynamic"
  6777. fi
  6778. if [ "x$ac_cv_use_libgsm" = "xyes" ]; then
  6779. for i in /usr/include /usr/include/gsm /usr/local/include /usr/local/include/gsm; do
  6780. ac_cv_use_libgsm="$i"
  6781. test -f "$ac_cv_use_libgsm/gsm.h" && break
  6782. done
  6783. fi
  6784. if [ "x$ac_cv_use_libgsm" != "xno" ]; then
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm.h in $ac_cv_use_libgsm" >&5
  6786. $as_echo_n "checking for gsm.h in $ac_cv_use_libgsm... " >&6; }
  6787. if [ -f "$ac_cv_use_libgsm/gsm.h" ]; then
  6788. HAVE_GSM=yes
  6789. GSM_INC="-I$ac_cv_use_libgsm"
  6790. fi
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GSM" >&5
  6792. $as_echo "$HAVE_GSM" >&6; }
  6793. fi
  6794.  
  6795.  
  6796.  
  6797.  
  6798.  
  6799. HAVE_ILBC=no
  6800. ILBC_INC=""
  6801. # Check whether --enable-ilbc was given.
  6802. if test "${enable_ilbc+set}" = set; then :
  6803. enableval=$enable_ilbc; want_ilbc=$enableval
  6804. else
  6805. want_ilbc=yes
  6806. fi
  6807.  
  6808. if [ "x$want_ilbc" = "xyes" ]; then
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iLBC reference in libs" >&5
  6810. $as_echo_n "checking for iLBC reference in libs... " >&6; }
  6811. basedir=`cd "$srcdir" && pwd`
  6812. incilbc="libs/ilbc"
  6813. if [ -f "$basedir/$incilbc/iLBC_encode.h" ]; then
  6814. HAVE_ILBC=yes
  6815. basedir=`echo "$basedir" | sed 's/\([^\]\)\([[:space:]\$\"'\'']\)/\1\\\2/g'`
  6816. ILBC_INC="-I$basedir/$incilbc"
  6817. fi
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ILBC" >&5
  6819. $as_echo "$HAVE_ILBC" >&6; }
  6820. fi
  6821.  
  6822.  
  6823.  
  6824. HAVE_ILBCWR=no
  6825. ILBCWR_INC=""
  6826. # Check whether --enable-ilbc-webrtc was given.
  6827. if test "${enable_ilbc_webrtc+set}" = set; then :
  6828. enableval=$enable_ilbc_webrtc; want_ilbc_webrtc=$enableval
  6829. else
  6830. want_ilbc_webrtc=yes
  6831. fi
  6832.  
  6833. if [ "x$want_ilbc_webrtc" = "xyes" ]; then
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iLBC miniwebrtc in libs" >&5
  6835. $as_echo_n "checking for iLBC miniwebrtc in libs... " >&6; }
  6836. basedir=`cd "$srcdir" && pwd`
  6837. incilbc="libs/miniwebrtc/audio/coding_ilbc"
  6838. if [ -f "$basedir/$incilbc/ilbc.h" ]; then
  6839. HAVE_ILBCWR=yes
  6840. basedir=`echo "$basedir" | sed 's/\([^\]\)\([[:space:]\$\"'\'']\)/\1\\\2/g'`
  6841. ILBCWR_INC="-I$basedir/$incilbc"
  6842. fi
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ILBCWR" >&5
  6844. $as_echo "$HAVE_ILBCWR" >&6; }
  6845. fi
  6846.  
  6847.  
  6848.  
  6849. HAVE_ISAC=no
  6850. ISAC_INC=""
  6851. # Check whether --enable-isac-float was given.
  6852. if test "${enable_isac_float+set}" = set; then :
  6853. enableval=$enable_isac_float; want_isac=$enableval
  6854. else
  6855. want_isac=yes
  6856. fi
  6857.  
  6858. if [ "x$want_isac" = "xyes" ]; then
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iSAC float in libs" >&5
  6860. $as_echo_n "checking for iSAC float in libs... " >&6; }
  6861. basedir=`cd "$srcdir" && pwd`
  6862. incisac="libs/miniwebrtc/audio/coding_isac/main"
  6863. if [ -f "$basedir/$incisac/isac.h" ]; then
  6864. HAVE_ISAC=yes
  6865. basedir=`echo "$basedir" | sed 's/\([^\]\)\([[:space:]\$\"'\'']\)/\1\\\2/g'`
  6866. ISAC_INC="-I$basedir/$incisac"
  6867. fi
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ISAC" >&5
  6869. $as_echo "$HAVE_ISAC" >&6; }
  6870. fi
  6871.  
  6872. # Check whether --enable-isac-fixed was given.
  6873. if test "${enable_isac_fixed+set}" = set; then :
  6874. enableval=$enable_isac_fixed; want_isac_fixed=$enableval
  6875. else
  6876. want_isac_fixed=no
  6877. fi
  6878.  
  6879. if [ "x$want_isac_fixed" = "xyes" ]; then
  6880. if [ x$HAVE_ISAC = "xyes" ]; then
  6881. as_fn_error $? "iSAC Fixed and iSAC Float can not be enabled both at the same time" "$LINENO" 5
  6882. else
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iSAC fixed in libs" >&5
  6884. $as_echo_n "checking for iSAC fixed in libs... " >&6; }
  6885. basedir=`cd "$srcdir" && pwd`
  6886. incisac="libs/miniwebrtc/audio/coding_isac/fix"
  6887. if [ -f "$basedir/$incisac/isacfix.h" ]; then
  6888. HAVE_ISAC=yes
  6889. basedir=`echo "$basedir" | sed 's/\([^\]\)\([[:space:]\$\"'\'']\)/\1\\\2/g'`
  6890. ISAC_INC="-I$basedir/$incisac -DISAC_FIXED"
  6891. fi
  6892. fi
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ISAC" >&5
  6894. $as_echo "$HAVE_ISAC" >&6; }
  6895. fi
  6896.  
  6897.  
  6898.  
  6899. HAVE_SPEEX=no
  6900. SPEEX_INC=""
  6901. SPEEX_LIB="-lspeex"
  6902.  
  6903. # Check whether --with-libspeex was given.
  6904. if test "${with_libspeex+set}" = set; then :
  6905. withval=$with_libspeex; ac_cv_use_libspeex=$withval
  6906. else
  6907. ac_cv_use_libspeex=yes
  6908. fi
  6909.  
  6910. if [ "x$ac_cv_use_libspeex" = "xstatic" ]; then
  6911. ac_cv_use_libspeex=yes
  6912. SPEEX_LIB="-Wl,-Bstatic $SPEEX_LIB -Wl,-Bdynamic"
  6913. fi
  6914. if [ "x$ac_cv_use_libspeex" = "xyes" ]; then
  6915. for i in /usr/include /usr/local/include; do
  6916. ac_cv_use_libspeex="$i"
  6917. test -f "$ac_cv_use_libspeex/speex/speex.h" && break
  6918. done
  6919. fi
  6920. if [ "x$ac_cv_use_libspeex" != "xno" ]; then
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex.h in $ac_cv_use_libspeex/speex" >&5
  6922. $as_echo_n "checking for speex.h in $ac_cv_use_libspeex/speex... " >&6; }
  6923. if [ -f "$ac_cv_use_libspeex/speex/speex.h" ]; then
  6924. SAVE_CFLAGS="$CFLAGS"
  6925. CFLAGS="$CFLAGS -Wall -Werror -I$ac_cv_use_libspeex"
  6926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6927. /* end confdefs.h. */
  6928.  
  6929. #include <speex/speex.h>
  6930.  
  6931. int
  6932. main ()
  6933. {
  6934.  
  6935. int i = SPEEX_MODEID_UWB;
  6936. speex_lib_ctl(SPEEX_LIB_GET_MAJOR_VERSION, &i);
  6937.  
  6938. ;
  6939. return 0;
  6940. }
  6941. _ACEOF
  6942. if ac_fn_c_try_compile "$LINENO"; then :
  6943. HAVE_SPEEX=yes
  6944.  
  6945. fi
  6946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6947. CFLAGS="$SAVE_CFLAGS"
  6948. if [ "x$HAVE_SPEEX" = "xyes" ]; then
  6949. SPEEX_INC="-I$ac_cv_use_libspeex"
  6950. fi
  6951. fi
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SPEEX" >&5
  6953. $as_echo "$HAVE_SPEEX" >&6; }
  6954. fi
  6955.  
  6956.  
  6957.  
  6958.  
  6959.  
  6960. HAVE_AMRNB=no
  6961. AMRNB_INC=""
  6962. AMRNB_LIB="-lamrnb"
  6963.  
  6964. # Check whether --with-amrnb was given.
  6965. if test "${with_amrnb+set}" = set; then :
  6966. withval=$with_amrnb; ac_cv_use_amrnb=$withval
  6967. else
  6968. ac_cv_use_amrnb=/usr
  6969. fi
  6970.  
  6971. if [ "x$ac_cv_use_amrnb" = "xstatic" ]; then
  6972. ac_cv_use_amrnb=/usr
  6973. AMRNB_LIB="-Wl,-Bstatic $AMRNB_LIB -Wl,-Bdynamic"
  6974. fi
  6975. if [ "x$ac_cv_use_amrnb" != "xno" ]; then
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AMR-NB in $ac_cv_use_amrnb" >&5
  6977. $as_echo_n "checking for AMR-NB in $ac_cv_use_amrnb... " >&6; }
  6978. local_lib="$ARCHLIB"
  6979. amrinc="$ac_cv_use_amrnb/include/amrnb"
  6980. test -f "$ac_cv_use_amrnb/$local_lib/libamrnb.so" || local_lib="lib"
  6981. if [ -f "$ac_cv_use_amrnb/$local_lib/libamrnb.so" -a -f "$amrinc/interf_rom.h" ]; then
  6982. HAVE_AMRNB=yes
  6983. AMRNB_LIB="-L$ac_cv_use_amrnb/$local_lib $AMRNB_LIB"
  6984. AMRNB_INC="-I$amrinc"
  6985. fi
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_AMRNB" >&5
  6987. $as_echo "$HAVE_AMRNB" >&6; }
  6988. fi
  6989.  
  6990.  
  6991.  
  6992.  
  6993.  
  6994. HAVE_SPANDSP=no
  6995. SPANDSP_INC=""
  6996. SPANDSP_LIB="-lspandsp"
  6997.  
  6998. # Check whether --with-spandsp was given.
  6999. if test "${with_spandsp+set}" = set; then :
  7000. withval=$with_spandsp; ac_cv_use_spandsp=$withval
  7001. else
  7002. ac_cv_use_spandsp=yes
  7003. fi
  7004.  
  7005. if [ "x$ac_cv_use_spandsp" = "xstatic" ]; then
  7006. ac_cv_use_spandsp="yes"
  7007. SPANDSP_LIB="-Wl,-Bstatic $SPANDSP_LIB -ltiff -lz -ljpeg -Wl,-Bdynamic"
  7008. fi
  7009. if [ "x$ac_cv_use_spandsp" = "xyes" ]; then
  7010. for i in /usr/include /usr/local/include; do
  7011. ac_cv_use_spandsp="$i"
  7012. test -f "$ac_cv_use_spandsp/spandsp.h" && break
  7013. done
  7014. fi
  7015. if [ "x$ac_cv_use_spandsp" != "xno" ]; then
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable spandsp in $ac_cv_use_spandsp" >&5
  7017. $as_echo_n "checking for usable spandsp in $ac_cv_use_spandsp... " >&6; }
  7018. if [ -f "$ac_cv_use_spandsp/spandsp.h" ]; then
  7019.  
  7020. ac_ext=cpp
  7021. ac_cpp='$CXXCPP $CPPFLAGS'
  7022. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7023. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7024. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7025.  
  7026. SAVE_CFLAGS="$CFLAGS"
  7027. CFLAGS="$CFLAGS -Wall -Werror"
  7028.  
  7029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7030. /* end confdefs.h. */
  7031.  
  7032. #define __STDC_LIMIT_MACROS
  7033. #define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
  7034. #include <math.h>
  7035. #include <stdint.h>
  7036. #include <stdlib.h>
  7037. #include <string.h>
  7038. #include <spandsp.h>
  7039.  
  7040. int
  7041. main ()
  7042. {
  7043.  
  7044. fax_state_t fax_state;
  7045. t30_stats_t fax_stats;
  7046. t38_terminal_state_t t38_t_state;
  7047. t38_gateway_state_t t38_g_state;
  7048. fax_stats.pages_tx = fax_stats.pages_rx = 0;
  7049. fax_init(&fax_state,TRUE);
  7050. t30_set_ecm_capability(fax_get_t30_state(&fax_state),1);
  7051. t30_set_supported_compressions(fax_get_t30_state(&fax_state),T30_SUPPORT_T6_COMPRESSION);
  7052. t30_set_tx_file(fax_get_t30_state(&fax_state),"abc",-1,-1);
  7053. t30_set_tx_ident(fax_get_t30_state(&fax_state),"xyz");
  7054. fax_set_transmit_on_idle(&fax_state,1);
  7055. t38_terminal_init(&t38_t_state,TRUE,NULL,NULL);
  7056. t38_gateway_init(&t38_g_state,NULL,NULL);
  7057. t38_terminal_release(&t38_t_state);
  7058.  
  7059. ;
  7060. return 0;
  7061. }
  7062. _ACEOF
  7063. if ac_fn_cxx_try_compile "$LINENO"; then :
  7064. HAVE_SPANDSP="yes"
  7065.  
  7066. fi
  7067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7068. if [ "x$HAVE_SPANDSP" = "xyes" ]; then
  7069. SPANDSP_INC="-I$ac_cv_use_spandsp -DSPANDSP_TXRXSTATS"
  7070. else
  7071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7072. /* end confdefs.h. */
  7073.  
  7074. #define __STDC_LIMIT_MACROS
  7075. #define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
  7076. #include <math.h>
  7077. #include <stdint.h>
  7078. #include <stdlib.h>
  7079. #include <string.h>
  7080. #include <spandsp.h>
  7081.  
  7082. int
  7083. main ()
  7084. {
  7085.  
  7086. fax_state_t fax_state;
  7087. t38_terminal_state_t t38_t_state;
  7088. t38_gateway_state_t t38_g_state;
  7089. fax_init(&fax_state,TRUE);
  7090. t30_set_ecm_capability(fax_get_t30_state(&fax_state),1);
  7091. t30_set_supported_compressions(fax_get_t30_state(&fax_state),T30_SUPPORT_T6_COMPRESSION);
  7092. t30_set_tx_file(fax_get_t30_state(&fax_state),"abc",-1,-1);
  7093. t30_set_tx_ident(fax_get_t30_state(&fax_state),"xyz");
  7094. fax_set_transmit_on_idle(&fax_state,1);
  7095. t38_terminal_init(&t38_t_state,TRUE,NULL,NULL);
  7096. t38_gateway_init(&t38_g_state,NULL,NULL);
  7097. t38_terminal_release(&t38_t_state);
  7098.  
  7099. ;
  7100. return 0;
  7101. }
  7102. _ACEOF
  7103. if ac_fn_cxx_try_compile "$LINENO"; then :
  7104. HAVE_SPANDSP="yes"
  7105.  
  7106. fi
  7107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7108. if [ "x$HAVE_SPANDSP" = "xyes" ]; then
  7109. SPANDSP_INC="-I$ac_cv_use_spandsp"
  7110. else
  7111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7112. /* end confdefs.h. */
  7113.  
  7114. #define __STDC_LIMIT_MACROS
  7115. #define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
  7116. #include <math.h>
  7117. #include <stdint.h>
  7118. #include <stdlib.h>
  7119. #include <string.h>
  7120. #include <spandsp.h>
  7121.  
  7122. int
  7123. main ()
  7124. {
  7125.  
  7126. #define fax_get_t30_state(x) (&(x)->t30_state)
  7127. fax_state_t fax_state;
  7128. t38_terminal_state_t t38_t_state;
  7129. t38_gateway_state_t t38_g_state;
  7130. fax_init(&fax_state,TRUE);
  7131. t30_set_ecm_capability(fax_get_t30_state(&fax_state),1);
  7132. t30_set_supported_compressions(fax_get_t30_state(&fax_state),T30_SUPPORT_T6_COMPRESSION);
  7133. t30_set_tx_file(fax_get_t30_state(&fax_state),"abc",-1,-1);
  7134. t30_set_tx_ident(fax_get_t30_state(&fax_state),"xyz");
  7135. fax_set_transmit_on_idle(&fax_state,1);
  7136. t38_terminal_init(&t38_t_state,TRUE,NULL,NULL);
  7137. t38_gateway_init(&t38_g_state,NULL,NULL);
  7138. t38_terminal_release(&t38_t_state);
  7139.  
  7140. ;
  7141. return 0;
  7142. }
  7143. _ACEOF
  7144. if ac_fn_cxx_try_compile "$LINENO"; then :
  7145. HAVE_SPANDSP="yes"
  7146.  
  7147. fi
  7148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7149. if [ "x$HAVE_SPANDSP" = "xyes" ]; then
  7150. SPANDSP_INC="-I$ac_cv_use_spandsp -DSPANDSP_PRE006"
  7151. fi
  7152. fi
  7153. fi
  7154. CFLAGS="$SAVE_CFLAGS"
  7155. ac_ext=c
  7156. ac_cpp='$CPP $CPPFLAGS'
  7157. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7158. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7159. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7160.  
  7161. fi
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SPANDSP" >&5
  7163. $as_echo "$HAVE_SPANDSP" >&6; }
  7164. fi
  7165.  
  7166.  
  7167.  
  7168.  
  7169.  
  7170. HAVE_PWLIB=no
  7171. PWLIB_RTTI=none
  7172. PWLIB_INC=""
  7173. PWLIB_LIB=""
  7174. PWLIB_RUN=""
  7175.  
  7176. # Check whether --with-pwlib was given.
  7177. if test "${with_pwlib+set}" = set; then :
  7178. withval=$with_pwlib; ac_cv_use_pwlib=$withval
  7179. else
  7180. ac_cv_use_pwlib=/usr
  7181. fi
  7182.  
  7183.  
  7184. if [ "x$ac_cv_use_pwlib" != "xno" ]; then
  7185. if [ "x$ac_cv_use_pwlib" = "x/usr" -a ! -f "$ac_cv_use_pwlib/include/ptlib.h" ]; then
  7186. ac_cv_use_pwlib="$ac_cv_use_pwlib/local"
  7187. fi
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pwlib in $ac_cv_use_pwlib" >&5
  7189. $as_echo_n "checking for Pwlib in $ac_cv_use_pwlib... " >&6; }
  7190. local_lib="$ARCHLIB"
  7191. ptconfig="$ac_cv_use_pwlib/bin/ptlib-config"
  7192. test -x "$ptconfig" || ptconfig="$ac_cv_use_pwlib/make/ptlib-config"
  7193. test -x "$ptconfig" || ptconfig="$ac_cv_use_pwlib/share/ptlib/make/ptlib-config"
  7194. verpw=`$ptconfig --version 2>/dev/null`
  7195. prtti=`$ptconfig --ccflags 2>/dev/null | sed -n 's/^.*\(-f[^ ]*rtti\).*$/\1/p'`
  7196. # try first installed directory
  7197. incpw="$ac_cv_use_pwlib/include/ptlib.h"
  7198. libpw="$ac_cv_use_pwlib/$local_lib/libpt.so"
  7199. if [ "x$local_lib" != "xlib" -a ! -f "$libpw" ]; then
  7200. local_lib="lib"
  7201. libpw="$ac_cv_use_pwlib/$local_lib/libpt.so"
  7202. fi
  7203. if [ "x$verpw" = "x" ]; then
  7204. verpw=`cat "$ac_cv_use_pwlib/include/ptbuildopts.h" 2>/dev/null | sed -n 's/^.*PWLIB_VERSION "\([^"]*\)".*$/\1/p'`
  7205. fi
  7206. vpw=`echo "$verpw" | $csed "$vsed" | $csed "$vsed"`
  7207. flgpw=""
  7208. PWLIB_INC="-I$ac_cv_use_pwlib/include" # Base dir, ok for ptlib
  7209. if [ "$vpw" '<' "02.00.00" ]; then
  7210. # Pwlib-1.xm no ptlib (2.x) install into ptlib
  7211. PWLIB_INC="$PWLIB_INC/ptlib"
  7212. if [ "$vpw" '<' "01.06.00" ]; then
  7213. # Very old pwlib needs more includes.
  7214. PWLIB_INC="$PWLIB_INC/unix/ptlib $PWLIB_INC/unix $PWLIB_INC"
  7215. flgpw="-DPHAS_TEMPLATES -D_REENTRANT -DP_HAS_SEMAPHORES"
  7216. fi
  7217. fi
  7218. if [ "x$flgpw" = "x" ]; then
  7219. flgpw="`$ptconfig --ccflags 2>/dev/null`"
  7220. if [ "x$flgpw" = "x" ]; then
  7221. # Last resort, minimal guess
  7222. flgpw="-D_REENTRANT"
  7223. fi
  7224. fi
  7225. PWLIB_INC="$PWLIB_INC $flgpw"
  7226.  
  7227. if [ -f "$incpw" -a -f "$libpw" ]; then
  7228. HAVE_PWLIB=installed
  7229. PWLIB_LIB="-L$ac_cv_use_pwlib/$local_lib -lpt"
  7230. case "x$prtti" in
  7231. x-frtti)
  7232. PWLIB_RTTI=yes
  7233. ;;
  7234. x-fno-rtti)
  7235. PWLIB_RTTI=no
  7236. ;;
  7237. esac
  7238. else
  7239. # try source directory style
  7240. libpw=`echo "$ac_cv_use_pwlib/lib/"libpt*r.so`
  7241. test -f "$libpw" || libpw=`echo "$ac_cv_use_pwlib/"lib*/libpt.so`
  7242. if [ -f "$incpw" -a -f "$libpw" ]; then
  7243. prtti=`"$ptconfig" --ccflags 2>/dev/null | sed -n 's/^.*\(-f[^ ]*rtti\).*$/\1/p'`
  7244. HAVE_PWLIB=sources
  7245. if [ "$vpw" '<' "02.00.00" ]; then
  7246. PWLIB_INC="-I$ac_cv_use_pwlib/include $PWLIB_INC"
  7247. fi
  7248. PWLIB_LIB=`echo "$libpw"|sed 's,^\(.*\)/lib,-L\1 -l,; s,\.so$,,'`
  7249. PWLIB_RUN=":"`echo "$libpw"|sed 's,/[^/]*$,,'`
  7250. case "x$prtti" in
  7251. x-frtti)
  7252. PWLIB_RTTI=yes
  7253. ;;
  7254. x-fno-rtti)
  7255. PWLIB_RTTI=no
  7256. ;;
  7257. esac
  7258. fi
  7259. fi
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PWLIB $verpw RTTI: $PWLIB_RTTI" >&5
  7261. $as_echo "$HAVE_PWLIB $verpw RTTI: $PWLIB_RTTI" >&6; }
  7262. fi
  7263.  
  7264.  
  7265. HAVE_H323=no
  7266. H323_INC=""
  7267. H323_LIB=""
  7268. H323_RUN=""
  7269.  
  7270. # Check whether --with-openh323 was given.
  7271. if test "${with_openh323+set}" = set; then :
  7272. withval=$with_openh323; ac_cv_use_openh323=$withval
  7273. else
  7274. ac_cv_use_openh323=/usr
  7275. fi
  7276.  
  7277.  
  7278. if [ "x$HAVE_PWLIB" != "xno" -a "x$ac_cv_use_openh323" != "xno" ]; then
  7279. if [ "x$ac_cv_use_openh323" = "x/usr" -a ! -f "$ac_cv_use_openh323/include/openh323/h323.h" ]; then
  7280. ac_cv_use_openh323="$ac_cv_use_openh323/local"
  7281. fi
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenH323 in $ac_cv_use_openh323" >&5
  7283. $as_echo_n "checking for OpenH323 in $ac_cv_use_openh323... " >&6; }
  7284. local_lib="$ARCHLIB"
  7285. # try first installed directory
  7286. ver323=""
  7287. inc323="$ac_cv_use_openh323/include/openh323/h323.h"
  7288. lib323="$ac_cv_use_openh323/$local_lib/libopenh323.so"
  7289. if [ "x$local_lib" != "xlib" -a ! -f "$lib323" ]; then
  7290. local_lib="lib"
  7291. lib323="$ac_cv_use_openh323/$local_lib/libopenh323.so"
  7292. fi
  7293. if [ -f "$inc323" -a -f "$lib323" ]; then
  7294. ver323=`sed -n 's/^.*OPENH323_VERSION.*"\([^"]\+\)".*$/\1/p' "$ac_cv_use_openh323/include/openh323/openh323buildopts.h" 2>/dev/null`
  7295. HAVE_H323=installed
  7296. H323_INC="-I$ac_cv_use_openh323/include/openh323"
  7297. H323_LIB="-L$ac_cv_use_openh323/$local_lib -lopenh323"
  7298. else
  7299. # try source directory style
  7300. inc323="$ac_cv_use_openh323/include/h323.h"
  7301. lib323=`echo "$ac_cv_use_openh323/lib/"libh323*r.so`
  7302. test -f "$lib323" || lib323=`echo "$ac_cv_use_openh323/lib/"libh323*_.so`
  7303. if [ -f "$inc323" -a -f "$lib323" ]; then
  7304. ver323=`sed -n 's/^.*OPENH323_VERSION.*"\([^"]\+\)".*$/\1/p' "$ac_cv_use_openh323/include/openh323buildopts.h" 2>/dev/null`
  7305. HAVE_H323=sources
  7306. H323_INC="-I$ac_cv_use_openh323/include"
  7307. H323_LIB="-L$ac_cv_use_openh323/lib -l`echo "$lib323"|sed 's,^.*/lib,,; s,\.so$,,'`"
  7308. H323_RUN=":$ac_cv_use_openh323/lib"
  7309. fi
  7310. fi
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_H323 $ver323" >&5
  7312. $as_echo "$HAVE_H323 $ver323" >&6; }
  7313. fi
  7314.  
  7315. if [ "x$HAVE_H323" != "xno" ]; then
  7316. H323_INC="$PWLIB_INC $H323_INC"
  7317. H323_LIB="$H323_LIB $PWLIB_LIB"
  7318. H323_RUN="$PWLIB_RUN$H323_RUN"
  7319. fi
  7320.  
  7321.  
  7322.  
  7323.  
  7324.  
  7325.  
  7326. HAVE_OPENSSL=no
  7327. OPENSSL_INC=""
  7328. OPENSSL_LIB=""
  7329. OPENSSL_VER=""
  7330.  
  7331. # Check whether --with-openssl was given.
  7332. if test "${with_openssl+set}" = set; then :
  7333. withval=$with_openssl; ac_cv_use_openssl=$withval
  7334. else
  7335. ac_cv_use_openssl=yes
  7336. fi
  7337.  
  7338. if [ "x$ac_cv_use_openssl" = "xyes" ]; then
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL using pkg-config" >&5
  7340. $as_echo_n "checking for OpenSSL using pkg-config... " >&6; }
  7341. pkg="openssl"
  7342. verssl=`(pkg-config --modversion $pkg) 2>/dev/null`
  7343. if [ "x$verssl" = "x" ]; then
  7344. pkg="libssl"
  7345. verssl=`(pkg-config --modversion $pkg) 2>/dev/null`
  7346. fi
  7347. incssl=`(pkg-config --cflags $pkg) 2>/dev/null`
  7348. libssl=`(pkg-config --libs $pkg) 2>/dev/null`
  7349. if [ "x$libssl" != "x" ]; then
  7350. HAVE_OPENSSL=yes
  7351. OPENSSL_VER="$verssl"
  7352. OPENSSL_INC="$incssl"
  7353. OPENSSL_LIB="$libssl"
  7354. else
  7355. verssl="no"
  7356. fi
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $verssl" >&5
  7358. $as_echo "$verssl" >&6; }
  7359. elif [ "x$ac_cv_use_openssl" != "xno" ]; then
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL in $ac_cv_use_openssl" >&5
  7361. $as_echo_n "checking for OpenSSL in $ac_cv_use_openssl... " >&6; }
  7362. verssl=no
  7363. if [ -f "$ac_cv_use_openssl/include/openssl/opensslconf.h" ]; then
  7364. verssl=`sed -n 's/^#define SHLIB_VERSION_NUMBER "\([0-9.]\+\)".*/\1/p' <$ac_cv_use_openssl/include/openssl/opensslv.h 2>/dev/null`
  7365. if [ "x$verssl" != "x" ]; then
  7366. HAVE_OPENSSL=yes
  7367. OPENSSL_VER="$verssl"
  7368. OPENSSL_INC="-I$ac_cv_use_openssl/include"
  7369. OPENSSL_LIB="-lssl -lcrypto"
  7370. else
  7371. verssl=no
  7372. fi
  7373. fi
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $verssl" >&5
  7375. $as_echo "$verssl" >&6; }
  7376. fi
  7377. if [ "x$HAVE_OPENSSL" != "xno" ]; then
  7378. SAVE_CFLAGS="$CFLAGS"
  7379. CFLAGS="$CFLAGS $OPENSSL_INC -Wall -Werror"
  7380. HAVE_OPT=no
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL AES_ctr128_encrypt" >&5
  7382. $as_echo_n "checking for OpenSSL AES_ctr128_encrypt... " >&6; }
  7383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7384. /* end confdefs.h. */
  7385.  
  7386. #include <openssl/aes.h>
  7387.  
  7388. int
  7389. main ()
  7390. {
  7391.  
  7392. unsigned char *data = 0;
  7393. AES_KEY *key = 0;
  7394. unsigned char ivec[AES_BLOCK_SIZE];
  7395. unsigned char ecount[AES_BLOCK_SIZE];
  7396. unsigned int num = 0;
  7397. AES_ctr128_encrypt(data,data,AES_BLOCK_SIZE,key,ivec,ecount,&num);
  7398.  
  7399. ;
  7400. return 0;
  7401. }
  7402. _ACEOF
  7403. if ac_fn_c_try_compile "$LINENO"; then :
  7404. HAVE_OPT="yes"
  7405. else
  7406. OPENSSL_INC="-DNO_AESCTR $OPENSSL_INC"
  7407. fi
  7408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPT" >&5
  7410. $as_echo "$HAVE_OPT" >&6; }
  7411. HAVE_OPT=no
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL TLS_method" >&5
  7413. $as_echo_n "checking for OpenSSL TLS_method... " >&6; }
  7414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7415. /* end confdefs.h. */
  7416.  
  7417. #include <openssl/ssl.h>
  7418.  
  7419. int
  7420. main ()
  7421. {
  7422.  
  7423. SSL_CTX_new(TLS_method());
  7424.  
  7425. ;
  7426. return 0;
  7427. }
  7428. _ACEOF
  7429. if ac_fn_c_try_compile "$LINENO"; then :
  7430. HAVE_OPT="yes"
  7431. fi
  7432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPT" >&5
  7434. $as_echo "$HAVE_OPT" >&6; }
  7435. if [ "x$HAVE_OPT" = "xyes" ]; then
  7436. OPENSSL_INC="-DUSE_TLS_METHOD $OPENSSL_INC"
  7437. fi
  7438. HAVE_OPT=no
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL SSL_load_error_strings" >&5
  7440. $as_echo_n "checking for OpenSSL SSL_load_error_strings... " >&6; }
  7441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7442. /* end confdefs.h. */
  7443.  
  7444. #include <openssl/ssl.h>
  7445. #include <openssl/err.h>
  7446.  
  7447. int
  7448. main ()
  7449. {
  7450.  
  7451. SSL_load_error_strings();
  7452.  
  7453. ;
  7454. return 0;
  7455. }
  7456. _ACEOF
  7457. if ac_fn_c_try_compile "$LINENO"; then :
  7458. HAVE_OPT="yes"
  7459. else
  7460. OPENSSL_INC="-DNO_LOAD_ERR $OPENSSL_INC"
  7461. fi
  7462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPT" >&5
  7464. $as_echo "$HAVE_OPT" >&6; }
  7465. CFLAGS="$SAVE_CFLAGS"
  7466. fi
  7467.  
  7468.  
  7469.  
  7470.  
  7471.  
  7472.  
  7473. HAVE_ZLIB=no
  7474. ZLIB_INC=""
  7475. ZLIB_LIB=""
  7476.  
  7477. # Check whether --with-zlib was given.
  7478. if test "${with_zlib+set}" = set; then :
  7479. withval=$with_zlib; ac_cv_use_zlib=$withval
  7480. else
  7481. ac_cv_use_zlib=/usr
  7482. fi
  7483.  
  7484. if [ "x$ac_cv_use_zlib" != "xno" ]; then
  7485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib in $ac_cv_use_zlib" >&5
  7486. $as_echo_n "checking for zlib in $ac_cv_use_zlib... " >&6; }
  7487. if [ -f "$ac_cv_use_zlib/include/zlib.h" ]; then
  7488. # Save current system libs and include dirs and restore them after trying to link
  7489. SAVE_LIBS="$LIBS"
  7490. SAVE_CFLAGS="$CFLAGS"
  7491. LIBS="$LIBS -lz"
  7492. CFLAGS="$CFLAGS -I$ac_cv_use_zlib/include"
  7493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7494. /* end confdefs.h. */
  7495. #include <zlib.h>
  7496. int
  7497. main ()
  7498. {
  7499. inflateInit2(0,0);
  7500. ;
  7501. return 0;
  7502. }
  7503. _ACEOF
  7504. if ac_fn_c_try_link "$LINENO"; then :
  7505. HAVE_ZLIB=yes
  7506. else
  7507. HAVE_ZLIB=no
  7508. fi
  7509. rm -f core conftest.err conftest.$ac_objext \
  7510. conftest$ac_exeext conftest.$ac_ext
  7511. LIBS="$SAVE_LIBS"
  7512. CFLAGS="$SAVE_CFLAGS"
  7513. if [ "$HAVE_ZLIB" = "yes" ]; then
  7514. ZLIB_INC="-I$ac_cv_use_zlib/include"
  7515. ZLIB_LIB="-lz"
  7516. fi
  7517. fi
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ZLIB" >&5
  7519. $as_echo "$HAVE_ZLIB" >&6; }
  7520. fi
  7521.  
  7522.  
  7523.  
  7524.  
  7525.  
  7526. HAVE_LIBUSB=no
  7527. LIBUSB_INC=""
  7528. LIBUSB_LIB=""
  7529.  
  7530. # Check whether --with-libusb was given.
  7531. if test "${with_libusb+set}" = set; then :
  7532. withval=$with_libusb; ac_cv_use_libusb=$withval
  7533. else
  7534. ac_cv_use_libusb=/usr
  7535. fi
  7536.  
  7537. if [ "x$ac_cv_use_libusb" != "xno" ]; then
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb in $ac_cv_use_libusb" >&5
  7539. $as_echo_n "checking for libusb in $ac_cv_use_libusb... " >&6; }
  7540. if [ -f "$ac_cv_use_libusb/include/libusb-1.0/libusb.h" ]; then
  7541. # Save current system libs and include dirs and restore them after trying to link
  7542. SAVE_LIBS="$LIBS"
  7543. SAVE_CFLAGS="$CFLAGS"
  7544. LIBS="$LIBS -lusb-1.0"
  7545. CFLAGS="$CFLAGS -I$ac_cv_use_libusb/include/libusb-1.0"
  7546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7547. /* end confdefs.h. */
  7548. #include <libusb.h>
  7549. int
  7550. main ()
  7551. {
  7552. libusb_has_capability(0);
  7553. ;
  7554. return 0;
  7555. }
  7556. _ACEOF
  7557. if ac_fn_c_try_link "$LINENO"; then :
  7558. HAVE_LIBUSB=yes
  7559. else
  7560. HAVE_LIBUSB=no
  7561. fi
  7562. rm -f core conftest.err conftest.$ac_objext \
  7563. conftest$ac_exeext conftest.$ac_ext
  7564. if [ "$HAVE_LIBUSB" = "yes" ]; then
  7565. LIBUSB_INC="-I$ac_cv_use_libusb/include/libusb-1.0"
  7566. LIBUSB_LIB="-lusb-1.0"
  7567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7568. /* end confdefs.h. */
  7569. #include <libusb.h>
  7570. int
  7571. main ()
  7572. {
  7573. libusb_get_version();
  7574. ;
  7575. return 0;
  7576. }
  7577. _ACEOF
  7578. if ac_fn_c_try_link "$LINENO"; then :
  7579. LIBUSB_INC="-DHAVE_LIBUSB_VER $LIBUSB_INC"
  7580. fi
  7581. rm -f core conftest.err conftest.$ac_objext \
  7582. conftest$ac_exeext conftest.$ac_ext
  7583. fi
  7584. LIBS="$SAVE_LIBS"
  7585. CFLAGS="$SAVE_CFLAGS"
  7586. fi
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBUSB" >&5
  7588. $as_echo "$HAVE_LIBUSB" >&6; }
  7589. fi
  7590.  
  7591.  
  7592.  
  7593.  
  7594.  
  7595. HAVE_QT4=no
  7596. QT4_INC=""
  7597. QT4_LIB=""
  7598. QT4_INC_NET=""
  7599. QT4_LIB_NET=""
  7600. QT4_MOC=""
  7601. QT4_VER=""
  7602. QT4_STATIC_MODULES=""
  7603.  
  7604. # Check whether --with-libqt4 was given.
  7605. if test "${with_libqt4+set}" = set; then :
  7606. withval=$with_libqt4; ac_cv_use_libqt4=$withval
  7607. else
  7608. ac_cv_use_libqt4=yes
  7609. fi
  7610.  
  7611.  
  7612. # Check whether --with-qtstatic was given.
  7613. if test "${with_qtstatic+set}" = set; then :
  7614. withval=$with_qtstatic; ac_cv_use_qtstatic=$withval
  7615. else
  7616. ac_cv_use_qtstatic=no
  7617. fi
  7618.  
  7619. qtstatic=""
  7620. if [ "x$ac_cv_use_qtstatic" != "xno" ]; then
  7621. qtstatic="--static"
  7622. fi
  7623. QT4_STATIC_MODULES=`echo "$ac_cv_use_qtstatic" | sed 's/,/ /g'`
  7624. if [ "x$ac_cv_use_libqt4" = "xyes" ]; then
  7625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 >= 4.3.0 using pkg-config" >&5
  7626. $as_echo_n "checking for Qt4 >= 4.3.0 using pkg-config... " >&6; }
  7627. pkgd="/usr/lib/qt4/$ARCHLIB/pkgconfig"
  7628. verqt=`(pkg-config --modversion QtCore) 2>/dev/null`
  7629. if [ -z "$verqt" -a -d "$pkgd" ]; then
  7630. export PKG_CONFIG_LIBDIR="$pkgd"
  7631. verqt=`(pkg-config --modversion QtCore) 2>/dev/null`
  7632. fi
  7633. incqt=`(pkg-config --cflags QtNetwork QtGui QtXml QtCore) 2>/dev/null | sed 's/QtNetwork/QtUiTools/'`
  7634. libqt=`(pkg-config --libs $qtstatic QtNetwork QtGui QtXml QtCore) 2>/dev/null | sed 's/QtNetwork/QtUiTools/'`
  7635. if [ "x$incqt" != "x" -a "x$libqt" != "x" ]; then
  7636. HAVE_QT4=yes
  7637. QT4_INC="$incqt"
  7638. QT4_LIB="$libqt"
  7639. QT4_INC_NET=`(pkg-config --cflags QtNetwork) 2>/dev/null | grep -o '[^ ]*QtNetwork[^ ]*'`
  7640. QT4_LIB_NET=`(pkg-config --libs QtNetwork) 2>/dev/null | grep -o '[^ ]*QtNetwork[^ ]*'`
  7641. QT4_MOC=`echo "$incqt" | sed -n 's,^.*-I\([^ ]\+\)/include .*$,\1/bin/moc,p'`
  7642. test -z "$QT4_MOC" && QT4_MOC=`(which moc-qt4) 2>/dev/null`
  7643. test -z "$QT4_MOC" && QT4_MOC="moc"
  7644. QT4_VER=`echo "$verqt" | $csed "$vsed" | $csed "$vsed" | sed 's/\(..\)\.\(..\)\.\(..\)/\1\2\3/'`
  7645. ac_cv_use_libqt="no"
  7646. if [ 1$QT4_VER -lt 1040300 ]; then
  7647. HAVE_QT4=no
  7648. verqt="too old ($verqt)"
  7649. fi
  7650. else
  7651. verqt="no"
  7652. fi
  7653. unset PKG_CONFIG_LIBDIR
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $verqt" >&5
  7655. $as_echo "$verqt" >&6; }
  7656.  
  7657. if [ "x$HAVE_QT4" = "xno" ]; then
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 >= 4.3.0 using qmake" >&5
  7659. $as_echo_n "checking for Qt4 >= 4.3.0 using qmake... " >&6; }
  7660. incqt=`(qmake -query QT_INSTALL_HEADERS) 2>/dev/null`
  7661. libqt=`(qmake -query QT_INSTALL_LIBS) 2>/dev/null`
  7662. if [ "x$incqt" = "x**Unknown**" -o "x$libqt" = "x**Unknown**" ]; then
  7663. incqt=""
  7664. libqt=""
  7665. fi
  7666. if [ "x$incqt" != "x" -a "x$libqt" != "x" ]; then
  7667. HAVE_QT4=yes
  7668. QT4_INC="-I$incqt -I$incqt/QtUiTools -I$incqt/QtGui -I$incqt/QtXml -I$incqt/QtCore"
  7669. case "$uname_os" in
  7670. *Darwin)
  7671. QT4_INC="-D__USE_WS_X11__ $QT4_INC"
  7672. ;;
  7673. esac
  7674. QT4_LIB="-L$libqt -lQtUiTools -lQtGui -lQtXml -lQtCore"
  7675. QT4_INC_NET="-I$incqt/QtNetwork"
  7676. QT4_LIB_NET="-L$libqt -lQtNetwork"
  7677. case "$uname_os" in
  7678. *Darwin)
  7679. framework=`(ls "$libqt" | grep QtGui.framework) 2>/dev/null`
  7680. if [ "x$framework" != "x" ]; then
  7681. QT4_INC="-I$incqt -I$incqt/QtUiTools -I$libqt/QtGui.framework/Headers -I$libqt/QtXml.framework/Headers -I$libqt/QtCore.framework/Headers"
  7682. QT4_LIB="-L$libqt -F$libqt -lQtUiTools -framework QtGui -framework QtXml -framework QtCore"
  7683. QT4_INC_NET="-I$libqt/QtNetwork.framework/Headers"
  7684. QT4_LIB_NET="-framework QtNetwork"
  7685. fi
  7686. ;;
  7687. esac
  7688. QT4_MOC=`(qmake -query QT_INSTALL_BINS) 2>/dev/null`
  7689. QT4_MOC="$QT4_MOC/moc"
  7690. verqt=`(qmake -query QT_VERSION) 2>/dev/null`
  7691. QT4_VER=`echo "$verqt" | $csed "$vsed" | $csed "$vsed" | sed 's/\(..\)\.\(..\)\.\(..\)/\1\2\3/'`
  7692. if [ 1$QT4_VER -lt 1040300 ]; then
  7693. HAVE_QT4=no
  7694. verqt="too old ($verqt)"
  7695. fi
  7696. else
  7697. verqt="no"
  7698. fi
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $verqt" >&5
  7700. $as_echo "$verqt" >&6; }
  7701. fi
  7702. fi
  7703.  
  7704.  
  7705.  
  7706.  
  7707.  
  7708.  
  7709.  
  7710.  
  7711.  
  7712.  
  7713.  
  7714. HAVE_MALLINFO=no
  7715. # Check whether --enable-mallinfo was given.
  7716. if test "${enable_mallinfo+set}" = set; then :
  7717. enableval=$enable_mallinfo; ac_cv_use_mallinfo=$withval
  7718. else
  7719. ac_cv_use_mallinfo=yes
  7720. fi
  7721.  
  7722. if [ "x$ac_cv_use_mallinfo" != "xno" ]; then
  7723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mallinfo in malloc.h" >&5
  7724. $as_echo_n "checking for mallinfo in malloc.h... " >&6; }
  7725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7726. /* end confdefs.h. */
  7727.  
  7728. #include <malloc.h>
  7729.  
  7730. int
  7731. main ()
  7732. {
  7733.  
  7734. struct mallinfo info = mallinfo();
  7735. return info.keepcost;
  7736.  
  7737. ;
  7738. return 0;
  7739. }
  7740. _ACEOF
  7741. if ac_fn_c_try_compile "$LINENO"; then :
  7742. HAVE_MALLINFO=yes
  7743.  
  7744. fi
  7745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MALLINFO" >&5
  7747. $as_echo "$HAVE_MALLINFO" >&6; }
  7748. fi
  7749.  
  7750.  
  7751.  
  7752. HAVE_COREDUMPER=no
  7753. COREDUMPER_INC=""
  7754. COREDUMPER_LIB=""
  7755.  
  7756. # Check whether --with-coredumper was given.
  7757. if test "${with_coredumper+set}" = set; then :
  7758. withval=$with_coredumper; ac_cv_use_coredumper=$withval
  7759. else
  7760. ac_cv_use_coredumper=yes
  7761. fi
  7762.  
  7763. gcdinc="include/google/coredumper.h"
  7764. if [ "x$ac_cv_use_coredumper" = "xyes" ]; then
  7765. for i in /usr /usr/local; do
  7766. ac_cv_use_coredumper="$i"
  7767. test -f "$ac_cv_use_coredumper/$gcdinc" && break
  7768. done
  7769. fi
  7770. if [ "x$ac_cv_use_coredumper" != "xno" ]; then
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coredumper.h in $ac_cv_use_coredumper" >&5
  7772. $as_echo_n "checking for coredumper.h in $ac_cv_use_coredumper... " >&6; }
  7773. if [ -f "$ac_cv_use_coredumper/$gcdinc" ]; then
  7774. HAVE_COREDUMPER=yes
  7775. COREDUMPER_INC="-I$ac_cv_use_coredumper"
  7776. COREDUMPER_LIB="-L$ac_cv_use_coredumper -lcoredumper"
  7777. fi
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_COREDUMPER" >&5
  7779. $as_echo "$HAVE_COREDUMPER" >&6; }
  7780. fi
  7781.  
  7782.  
  7783.  
  7784.  
  7785.  
  7786. RTTI_OPT=""
  7787. # Check whether --enable-rtti was given.
  7788. if test "${enable_rtti+set}" = set; then :
  7789. enableval=$enable_rtti; want_rtti=$enableval
  7790. else
  7791. want_rtti=auto
  7792. fi
  7793.  
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable RTTI support" >&5
  7795. $as_echo_n "checking whether to enable RTTI support... " >&6; }
  7796. USE_RTTI="$want_rtti"
  7797. case "x$want_rtti" in
  7798. xyes|xno|xnone)
  7799. ;;
  7800. xauto)
  7801. USE_RTTI="$PWLIB_RTTI"
  7802. ;;
  7803. *)
  7804. as_fn_error $? "Invalid argument passed to --enable-rtti" "$LINENO" 5
  7805. ;;
  7806. esac
  7807. case "$USE_RTTI" in
  7808. yes)
  7809. RTTI_OPT="-frtti"
  7810. ;;
  7811. no)
  7812. RTTI_OPT="-fno-rtti"
  7813. ;;
  7814. esac
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_RTTI" >&5
  7816. $as_echo "$USE_RTTI" >&6; }
  7817.  
  7818.  
  7819.  
  7820. if [ "x$HAVE_H323" != "xno" ]; then
  7821. if [ "x$USE_RTTI" != "x$PWLIB_RTTI" ]; then
  7822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Mismatched RTTI setting between Yate ($USE_RTTI) and pwlib ($PWLIB_RTTI)" >&5
  7823. $as_echo "$as_me: WARNING: Mismatched RTTI setting between Yate ($USE_RTTI) and pwlib ($PWLIB_RTTI)" >&2;}
  7824. fi
  7825. fi
  7826.  
  7827.  
  7828. INSTALL_L=""
  7829. # Check whether --enable-lib-exec was given.
  7830. if test "${enable_lib_exec+set}" = set; then :
  7831. enableval=$enable_lib_exec; want_lib_exec=$enableval
  7832. else
  7833. want_lib_exec=auto
  7834. fi
  7835.  
  7836. case "x$want_lib_exec" in
  7837. xyes)
  7838. ;;
  7839. xno)
  7840. INSTALL_L="-m 0644"
  7841. ;;
  7842. xauto)
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared libraries should be executable" >&5
  7844. $as_echo_n "checking if shared libraries should be executable... " >&6; }
  7845. if stat -L "/usr/$ARCHLIB/libm.so" 2>/dev/null | grep -q '(0644/'; then
  7846. want_lib_exec=no
  7847. INSTALL_L="-m 0644"
  7848. else
  7849. want_lib_exec=yes
  7850. fi
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_lib_exec" >&5
  7852. $as_echo "$want_lib_exec" >&6; }
  7853. ;;
  7854. *)
  7855. as_fn_error $? "Invalid argument passed to --enable-lib-exec" "$LINENO" 5
  7856. ;;
  7857. esac
  7858.  
  7859.  
  7860.  
  7861. INSTALL_D="install -D"
  7862. CFLAGS=`echo "$CFLAGS" | sed 's/\(^\| \+\)-g[0-9]*//' | sed 's/[[:space:]]\{2,\}/ /g'`
  7863. MODULE_CFLAGS="-fno-exceptions -fPIC $HAVE_GCC_FORMAT_CHECK $HAVE_BLOCK_RETURN"
  7864. MODULE_CPPFLAGS="$HAVE_NO_OVERLOAD_VIRT_WARN $RTTI_OPT $MODULE_CFLAGS"
  7865. MODULE_LDRELAX="-rdynamic -shared"
  7866. MODULE_SYMBOLS="-Wl,--retain-symbols-file,/dev/null"
  7867. SONAME_OPT="-shared -Wl,-soname="
  7868. case "x$uname_os" in
  7869. x*BSD)
  7870. INSTALL_D="install"
  7871. MODULE_LDRELAX="$MODULE_LDRELAX -lc"
  7872. ;;
  7873. xDarwin)
  7874. INSTALL_D="install"
  7875. MODULE_LDRELAX="-dynamiclib"
  7876. MODULE_SYMBOLS=""
  7877. SONAME_OPT="-dynamiclib -Wl,-dylib_install_name,"
  7878. ;;
  7879. esac
  7880. MODULE_LDFLAGS="$MODULE_LDRELAX $GCC_UNRESOLVED_SYMBOLS"
  7881.  
  7882.  
  7883.  
  7884.  
  7885.  
  7886.  
  7887.  
  7888.  
  7889.  
  7890. DOXYGEN_BIN=""
  7891.  
  7892. # Check whether --with-doxygen was given.
  7893. if test "${with_doxygen+set}" = set; then :
  7894. withval=$with_doxygen; ac_cv_use_doxygen=$withval
  7895. else
  7896. ac_cv_use_doxygen=yes
  7897. fi
  7898.  
  7899. if [ "x$ac_cv_use_doxygen" != "xno" ]; then
  7900. test "x$ac_cv_use_doxygen" = "xyes" && ac_cv_use_doxygen=`(which doxygen) 2>/dev/null`
  7901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for doxygen version" >&5
  7902. $as_echo_n "checking for doxygen version... " >&6; }
  7903. if [ "x$ac_cv_use_doxygen" != "x" -a -x "$ac_cv_use_doxygen" ]; then
  7904. DOXYGEN_BIN="$ac_cv_use_doxygen"
  7905. ac_cv_use_doxygen=`($DOXYGEN_BIN --version) 2>/dev/null`
  7906. else
  7907. ac_cv_use_doxygen="no"
  7908. fi
  7909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_doxygen" >&5
  7910. $as_echo "$ac_cv_use_doxygen" >&6; }
  7911. fi
  7912.  
  7913.  
  7914.  
  7915. KDOC_BIN=""
  7916.  
  7917. # Check whether --with-kdoc was given.
  7918. if test "${with_kdoc+set}" = set; then :
  7919. withval=$with_kdoc; ac_cv_use_kdoc=$withval
  7920. else
  7921. ac_cv_use_kdoc=yes
  7922. fi
  7923.  
  7924. if [ "x$ac_cv_use_kdoc" != "xno" ]; then
  7925. test "x$ac_cv_use_kdoc" = "xyes" && ac_cv_use_kdoc=`(which kdoc) 2>/dev/null`
  7926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kdoc version" >&5
  7927. $as_echo_n "checking for kdoc version... " >&6; }
  7928. if [ "x$ac_cv_use_kdoc" != "x" -a -x "$ac_cv_use_kdoc" ]; then
  7929. KDOC_BIN="$ac_cv_use_kdoc"
  7930. ac_cv_use_kdoc=`($KDOC_BIN --version) 2>&1 | awk '/^kdoc/ { print $2 }'`
  7931. else
  7932. ac_cv_use_kdoc="no"
  7933. fi
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_kdoc" >&5
  7935. $as_echo "$ac_cv_use_kdoc" >&6; }
  7936. fi
  7937.  
  7938.  
  7939.  
  7940.  
  7941.  
  7942. ac_config_files="$ac_config_files packing/rpm/yate.spec
  7943. packing/portage/yate.ebuild
  7944. yate.pc
  7945. yateversn.h
  7946. yateiss.inc
  7947. Makefile
  7948. engine/Makefile
  7949. modules/Makefile
  7950. modules/test/Makefile
  7951. clients/Makefile
  7952. clients/qt4/Makefile
  7953. libs/ilbc/Makefile
  7954. libs/ysip/Makefile
  7955. libs/yrtp/Makefile
  7956. libs/ysdp/Makefile
  7957. libs/yiax/Makefile
  7958. libs/yjabber/Makefile
  7959. libs/yscript/Makefile
  7960. libs/ymgcp/Makefile
  7961. libs/ysig/Makefile
  7962. libs/ypbx/Makefile
  7963. libs/ymodem/Makefile
  7964. libs/yasn/Makefile
  7965. libs/ysnmp/Makefile
  7966. libs/miniwebrtc/Makefile
  7967. libs/yradio/Makefile
  7968. share/Makefile
  7969. share/scripts/Makefile
  7970. share/skins/Makefile
  7971. share/sounds/Makefile
  7972. share/help/Makefile
  7973. share/data/Makefile
  7974. conf.d/Makefile"
  7975.  
  7976. ac_config_files="$ac_config_files yate-config"
  7977.  
  7978. ac_config_files="$ac_config_files run"
  7979.  
  7980. CONFIGURE_FILES=`echo "$ac_config_files config.status config.log" | sed 's,packing/[^ ]* *,,g'`
  7981.  
  7982. cat >confcache <<\_ACEOF
  7983. # This file is a shell script that caches the results of configure
  7984. # tests run on this system so they can be shared between configure
  7985. # scripts and configure runs, see configure's option --config-cache.
  7986. # It is not useful on other systems. If it contains results you don't
  7987. # want to keep, you may remove or edit it.
  7988. #
  7989. # config.status only pays attention to the cache file if you give it
  7990. # the --recheck option to rerun configure.
  7991. #
  7992. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7993. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7994. # following values.
  7995.  
  7996. _ACEOF
  7997.  
  7998. # The following way of writing the cache mishandles newlines in values,
  7999. # but we know of no workaround that is simple, portable, and efficient.
  8000. # So, we kill variables containing newlines.
  8001. # Ultrix sh set writes to stderr and can't be redirected directly,
  8002. # and sets the high bit in the cache file unless we assign to the vars.
  8003. (
  8004. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8005. eval ac_val=\$$ac_var
  8006. case $ac_val in #(
  8007. *${as_nl}*)
  8008. case $ac_var in #(
  8009. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8010. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8011. esac
  8012. case $ac_var in #(
  8013. _ | IFS | as_nl) ;; #(
  8014. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8015. *) { eval $ac_var=; unset $ac_var;} ;;
  8016. esac ;;
  8017. esac
  8018. done
  8019.  
  8020. (set) 2>&1 |
  8021. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8022. *${as_nl}ac_space=\ *)
  8023. # `set' does not quote correctly, so add quotes: double-quote
  8024. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8025. sed -n \
  8026. "s/'/'\\\\''/g;
  8027. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8028. ;; #(
  8029. *)
  8030. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8031. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8032. ;;
  8033. esac |
  8034. sort
  8035. ) |
  8036. sed '
  8037. /^ac_cv_env_/b end
  8038. t clear
  8039. :clear
  8040. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8041. t end
  8042. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8043. :end' >>confcache
  8044. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8045. if test -w "$cache_file"; then
  8046. if test "x$cache_file" != "x/dev/null"; then
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8048. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8049. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8050. cat confcache >"$cache_file"
  8051. else
  8052. case $cache_file in #(
  8053. */* | ?:*)
  8054. mv -f confcache "$cache_file"$$ &&
  8055. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8056. *)
  8057. mv -f confcache "$cache_file" ;;
  8058. esac
  8059. fi
  8060. fi
  8061. else
  8062. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8063. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8064. fi
  8065. fi
  8066. rm -f confcache
  8067.  
  8068. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8069. # Let make expand exec_prefix.
  8070. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8071.  
  8072. # Transform confdefs.h into DEFS.
  8073. # Protect against shell expansion while executing Makefile rules.
  8074. # Protect against Makefile macro expansion.
  8075. #
  8076. # If the first sed substitution is executed (which looks for macros that
  8077. # take arguments), then branch to the quote section. Otherwise,
  8078. # look for a macro that doesn't take arguments.
  8079. ac_script='
  8080. :mline
  8081. /\\$/{
  8082. N
  8083. s,\\\n,,
  8084. b mline
  8085. }
  8086. t clear
  8087. :clear
  8088. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  8089. t quote
  8090. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  8091. t quote
  8092. b any
  8093. :quote
  8094. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  8095. s/\[/\\&/g
  8096. s/\]/\\&/g
  8097. s/\$/$$/g
  8098. H
  8099. :any
  8100. ${
  8101. g
  8102. s/^\n//
  8103. s/\n/ /g
  8104. p
  8105. }
  8106. '
  8107. DEFS=`sed -n "$ac_script" confdefs.h`
  8108.  
  8109.  
  8110. ac_libobjs=
  8111. ac_ltlibobjs=
  8112. U=
  8113. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8114. # 1. Remove the extension, and $U if already installed.
  8115. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8116. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8117. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8118. # will be set to the directory where LIBOBJS objects are built.
  8119. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8120. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8121. done
  8122. LIBOBJS=$ac_libobjs
  8123.  
  8124. LTLIBOBJS=$ac_ltlibobjs
  8125.  
  8126.  
  8127.  
  8128.  
  8129. : "${CONFIG_STATUS=./config.status}"
  8130. ac_write_fail=0
  8131. ac_clean_files_save=$ac_clean_files
  8132. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8133. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8134. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8135. as_write_fail=0
  8136. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8137. #! $SHELL
  8138. # Generated by $as_me.
  8139. # Run this file to recreate the current configuration.
  8140. # Compiler output produced by configure, useful for debugging
  8141. # configure, is in config.log if it exists.
  8142.  
  8143. debug=false
  8144. ac_cs_recheck=false
  8145. ac_cs_silent=false
  8146.  
  8147. SHELL=\${CONFIG_SHELL-$SHELL}
  8148. export SHELL
  8149. _ASEOF
  8150. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8151. ## -------------------- ##
  8152. ## M4sh Initialization. ##
  8153. ## -------------------- ##
  8154.  
  8155. # Be more Bourne compatible
  8156. DUALCASE=1; export DUALCASE # for MKS sh
  8157. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8158. emulate sh
  8159. NULLCMD=:
  8160. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8161. # is contrary to our usage. Disable this feature.
  8162. alias -g '${1+"$@"}'='"$@"'
  8163. setopt NO_GLOB_SUBST
  8164. else
  8165. case `(set -o) 2>/dev/null` in #(
  8166. *posix*) :
  8167. set -o posix ;; #(
  8168. *) :
  8169. ;;
  8170. esac
  8171. fi
  8172.  
  8173.  
  8174. as_nl='
  8175. '
  8176. export as_nl
  8177. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8178. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8179. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8180. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8181. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8182. # but without wasting forks for bash or zsh.
  8183. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8184. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8185. as_echo='print -r --'
  8186. as_echo_n='print -rn --'
  8187. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8188. as_echo='printf %s\n'
  8189. as_echo_n='printf %s'
  8190. else
  8191. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8192. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8193. as_echo_n='/usr/ucb/echo -n'
  8194. else
  8195. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8196. as_echo_n_body='eval
  8197. arg=$1;
  8198. case $arg in #(
  8199. *"$as_nl"*)
  8200. expr "X$arg" : "X\\(.*\\)$as_nl";
  8201. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8202. esac;
  8203. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8204. '
  8205. export as_echo_n_body
  8206. as_echo_n='sh -c $as_echo_n_body as_echo'
  8207. fi
  8208. export as_echo_body
  8209. as_echo='sh -c $as_echo_body as_echo'
  8210. fi
  8211.  
  8212. # The user is always right.
  8213. if test "${PATH_SEPARATOR+set}" != set; then
  8214. PATH_SEPARATOR=:
  8215. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8216. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8217. PATH_SEPARATOR=';'
  8218. }
  8219. fi
  8220.  
  8221.  
  8222. # IFS
  8223. # We need space, tab and new line, in precisely that order. Quoting is
  8224. # there to prevent editors from complaining about space-tab.
  8225. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8226. # splitting by setting IFS to empty value.)
  8227. IFS=" "" $as_nl"
  8228.  
  8229. # Find who we are. Look in the path if we contain no directory separator.
  8230. as_myself=
  8231. case $0 in #((
  8232. *[\\/]* ) as_myself=$0 ;;
  8233. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8234. for as_dir in $PATH
  8235. do
  8236. IFS=$as_save_IFS
  8237. test -z "$as_dir" && as_dir=.
  8238. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8239. done
  8240. IFS=$as_save_IFS
  8241.  
  8242. ;;
  8243. esac
  8244. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8245. # in which case we are not to be found in the path.
  8246. if test "x$as_myself" = x; then
  8247. as_myself=$0
  8248. fi
  8249. if test ! -f "$as_myself"; then
  8250. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8251. exit 1
  8252. fi
  8253.  
  8254. # Unset variables that we do not need and which cause bugs (e.g. in
  8255. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8256. # suppresses any "Segmentation fault" message there. '((' could
  8257. # trigger a bug in pdksh 5.2.14.
  8258. for as_var in BASH_ENV ENV MAIL MAILPATH
  8259. do eval test x\${$as_var+set} = xset \
  8260. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8261. done
  8262. PS1='$ '
  8263. PS2='> '
  8264. PS4='+ '
  8265.  
  8266. # NLS nuisances.
  8267. LC_ALL=C
  8268. export LC_ALL
  8269. LANGUAGE=C
  8270. export LANGUAGE
  8271.  
  8272. # CDPATH.
  8273. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8274.  
  8275.  
  8276. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8277. # ----------------------------------------
  8278. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8279. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8280. # script with STATUS, using 1 if that was 0.
  8281. as_fn_error ()
  8282. {
  8283. as_status=$1; test $as_status -eq 0 && as_status=1
  8284. if test "$4"; then
  8285. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8286. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8287. fi
  8288. $as_echo "$as_me: error: $2" >&2
  8289. as_fn_exit $as_status
  8290. } # as_fn_error
  8291.  
  8292.  
  8293. # as_fn_set_status STATUS
  8294. # -----------------------
  8295. # Set $? to STATUS, without forking.
  8296. as_fn_set_status ()
  8297. {
  8298. return $1
  8299. } # as_fn_set_status
  8300.  
  8301. # as_fn_exit STATUS
  8302. # -----------------
  8303. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8304. as_fn_exit ()
  8305. {
  8306. set +e
  8307. as_fn_set_status $1
  8308. exit $1
  8309. } # as_fn_exit
  8310.  
  8311. # as_fn_unset VAR
  8312. # ---------------
  8313. # Portably unset VAR.
  8314. as_fn_unset ()
  8315. {
  8316. { eval $1=; unset $1;}
  8317. }
  8318. as_unset=as_fn_unset
  8319. # as_fn_append VAR VALUE
  8320. # ----------------------
  8321. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8322. # advantage of any shell optimizations that allow amortized linear growth over
  8323. # repeated appends, instead of the typical quadratic growth present in naive
  8324. # implementations.
  8325. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8326. eval 'as_fn_append ()
  8327. {
  8328. eval $1+=\$2
  8329. }'
  8330. else
  8331. as_fn_append ()
  8332. {
  8333. eval $1=\$$1\$2
  8334. }
  8335. fi # as_fn_append
  8336.  
  8337. # as_fn_arith ARG...
  8338. # ------------------
  8339. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8340. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8341. # must be portable across $(()) and expr.
  8342. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8343. eval 'as_fn_arith ()
  8344. {
  8345. as_val=$(( $* ))
  8346. }'
  8347. else
  8348. as_fn_arith ()
  8349. {
  8350. as_val=`expr "$@" || test $? -eq 1`
  8351. }
  8352. fi # as_fn_arith
  8353.  
  8354.  
  8355. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8356. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8357. as_expr=expr
  8358. else
  8359. as_expr=false
  8360. fi
  8361.  
  8362. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8363. as_basename=basename
  8364. else
  8365. as_basename=false
  8366. fi
  8367.  
  8368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8369. as_dirname=dirname
  8370. else
  8371. as_dirname=false
  8372. fi
  8373.  
  8374. as_me=`$as_basename -- "$0" ||
  8375. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8376. X"$0" : 'X\(//\)$' \| \
  8377. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8378. $as_echo X/"$0" |
  8379. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8380. s//\1/
  8381. q
  8382. }
  8383. /^X\/\(\/\/\)$/{
  8384. s//\1/
  8385. q
  8386. }
  8387. /^X\/\(\/\).*/{
  8388. s//\1/
  8389. q
  8390. }
  8391. s/.*/./; q'`
  8392.  
  8393. # Avoid depending upon Character Ranges.
  8394. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8395. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8396. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8397. as_cr_digits='0123456789'
  8398. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8399.  
  8400. ECHO_C= ECHO_N= ECHO_T=
  8401. case `echo -n x` in #(((((
  8402. -n*)
  8403. case `echo 'xy\c'` in
  8404. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8405. xy) ECHO_C='\c';;
  8406. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8407. ECHO_T=' ';;
  8408. esac;;
  8409. *)
  8410. ECHO_N='-n';;
  8411. esac
  8412.  
  8413. rm -f conf$$ conf$$.exe conf$$.file
  8414. if test -d conf$$.dir; then
  8415. rm -f conf$$.dir/conf$$.file
  8416. else
  8417. rm -f conf$$.dir
  8418. mkdir conf$$.dir 2>/dev/null
  8419. fi
  8420. if (echo >conf$$.file) 2>/dev/null; then
  8421. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8422. as_ln_s='ln -s'
  8423. # ... but there are two gotchas:
  8424. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8425. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8426. # In both cases, we have to default to `cp -pR'.
  8427. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8428. as_ln_s='cp -pR'
  8429. elif ln conf$$.file conf$$ 2>/dev/null; then
  8430. as_ln_s=ln
  8431. else
  8432. as_ln_s='cp -pR'
  8433. fi
  8434. else
  8435. as_ln_s='cp -pR'
  8436. fi
  8437. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8438. rmdir conf$$.dir 2>/dev/null
  8439.  
  8440.  
  8441. # as_fn_mkdir_p
  8442. # -------------
  8443. # Create "$as_dir" as a directory, including parents if necessary.
  8444. as_fn_mkdir_p ()
  8445. {
  8446.  
  8447. case $as_dir in #(
  8448. -*) as_dir=./$as_dir;;
  8449. esac
  8450. test -d "$as_dir" || eval $as_mkdir_p || {
  8451. as_dirs=
  8452. while :; do
  8453. case $as_dir in #(
  8454. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8455. *) as_qdir=$as_dir;;
  8456. esac
  8457. as_dirs="'$as_qdir' $as_dirs"
  8458. as_dir=`$as_dirname -- "$as_dir" ||
  8459. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8460. X"$as_dir" : 'X\(//\)[^/]' \| \
  8461. X"$as_dir" : 'X\(//\)$' \| \
  8462. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8463. $as_echo X"$as_dir" |
  8464. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8465. s//\1/
  8466. q
  8467. }
  8468. /^X\(\/\/\)[^/].*/{
  8469. s//\1/
  8470. q
  8471. }
  8472. /^X\(\/\/\)$/{
  8473. s//\1/
  8474. q
  8475. }
  8476. /^X\(\/\).*/{
  8477. s//\1/
  8478. q
  8479. }
  8480. s/.*/./; q'`
  8481. test -d "$as_dir" && break
  8482. done
  8483. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8484. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8485.  
  8486.  
  8487. } # as_fn_mkdir_p
  8488. if mkdir -p . 2>/dev/null; then
  8489. as_mkdir_p='mkdir -p "$as_dir"'
  8490. else
  8491. test -d ./-p && rmdir ./-p
  8492. as_mkdir_p=false
  8493. fi
  8494.  
  8495.  
  8496. # as_fn_executable_p FILE
  8497. # -----------------------
  8498. # Test if FILE is an executable regular file.
  8499. as_fn_executable_p ()
  8500. {
  8501. test -f "$1" && test -x "$1"
  8502. } # as_fn_executable_p
  8503. as_test_x='test -x'
  8504. as_executable_p=as_fn_executable_p
  8505.  
  8506. # Sed expression to map a string onto a valid CPP name.
  8507. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8508.  
  8509. # Sed expression to map a string onto a valid variable name.
  8510. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8511.  
  8512.  
  8513. exec 6>&1
  8514. ## ----------------------------------- ##
  8515. ## Main body of $CONFIG_STATUS script. ##
  8516. ## ----------------------------------- ##
  8517. _ASEOF
  8518. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8519.  
  8520. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8521. # Save the log message, to keep $0 and so on meaningful, and to
  8522. # report actual input values of CONFIG_FILES etc. instead of their
  8523. # values after options handling.
  8524. ac_log="
  8525. This file was extended by Yate $as_me 6.1.1, which was
  8526. generated by GNU Autoconf 2.69. Invocation command line was
  8527.  
  8528. CONFIG_FILES = $CONFIG_FILES
  8529. CONFIG_HEADERS = $CONFIG_HEADERS
  8530. CONFIG_LINKS = $CONFIG_LINKS
  8531. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8532. $ $0 $@
  8533.  
  8534. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8535. "
  8536.  
  8537. _ACEOF
  8538.  
  8539. case $ac_config_files in *"
  8540. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8541. esac
  8542.  
  8543.  
  8544.  
  8545. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8546. # Files that config.status was made for.
  8547. config_files="$ac_config_files"
  8548.  
  8549. _ACEOF
  8550.  
  8551. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8552. ac_cs_usage="\
  8553. \`$as_me' instantiates files and other configuration actions
  8554. from templates according to the current configuration. Unless the files
  8555. and actions are specified as TAGs, all are instantiated by default.
  8556.  
  8557. Usage: $0 [OPTION]... [TAG]...
  8558.  
  8559. -h, --help print this help, then exit
  8560. -V, --version print version number and configuration settings, then exit
  8561. --config print configuration, then exit
  8562. -q, --quiet, --silent
  8563. do not print progress messages
  8564. -d, --debug don't remove temporary files
  8565. --recheck update $as_me by reconfiguring in the same conditions
  8566. --file=FILE[:TEMPLATE]
  8567. instantiate the configuration file FILE
  8568.  
  8569. Configuration files:
  8570. $config_files
  8571.  
  8572. Report bugs to the package provider."
  8573.  
  8574. _ACEOF
  8575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8576. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8577. ac_cs_version="\\
  8578. Yate config.status 6.1.1
  8579. configured by $0, generated by GNU Autoconf 2.69,
  8580. with options \\"\$ac_cs_config\\"
  8581.  
  8582. Copyright (C) 2012 Free Software Foundation, Inc.
  8583. This config.status script is free software; the Free Software Foundation
  8584. gives unlimited permission to copy, distribute and modify it."
  8585.  
  8586. ac_pwd='$ac_pwd'
  8587. srcdir='$srcdir'
  8588. AWK='$AWK'
  8589. test -n "\$AWK" || AWK=awk
  8590. _ACEOF
  8591.  
  8592. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8593. # The default lists apply if the user does not specify any file.
  8594. ac_need_defaults=:
  8595. while test $# != 0
  8596. do
  8597. case $1 in
  8598. --*=?*)
  8599. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8600. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8601. ac_shift=:
  8602. ;;
  8603. --*=)
  8604. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8605. ac_optarg=
  8606. ac_shift=:
  8607. ;;
  8608. *)
  8609. ac_option=$1
  8610. ac_optarg=$2
  8611. ac_shift=shift
  8612. ;;
  8613. esac
  8614.  
  8615. case $ac_option in
  8616. # Handling of the options.
  8617. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8618. ac_cs_recheck=: ;;
  8619. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8620. $as_echo "$ac_cs_version"; exit ;;
  8621. --config | --confi | --conf | --con | --co | --c )
  8622. $as_echo "$ac_cs_config"; exit ;;
  8623. --debug | --debu | --deb | --de | --d | -d )
  8624. debug=: ;;
  8625. --file | --fil | --fi | --f )
  8626. $ac_shift
  8627. case $ac_optarg in
  8628. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8629. '') as_fn_error $? "missing file argument" ;;
  8630. esac
  8631. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8632. ac_need_defaults=false;;
  8633. --he | --h | --help | --hel | -h )
  8634. $as_echo "$ac_cs_usage"; exit ;;
  8635. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8636. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8637. ac_cs_silent=: ;;
  8638.  
  8639. # This is an error.
  8640. -*) as_fn_error $? "unrecognized option: \`$1'
  8641. Try \`$0 --help' for more information." ;;
  8642.  
  8643. *) as_fn_append ac_config_targets " $1"
  8644. ac_need_defaults=false ;;
  8645.  
  8646. esac
  8647. shift
  8648. done
  8649.  
  8650. ac_configure_extra_args=
  8651.  
  8652. if $ac_cs_silent; then
  8653. exec 6>/dev/null
  8654. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8655. fi
  8656.  
  8657. _ACEOF
  8658. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8659. if \$ac_cs_recheck; then
  8660. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8661. shift
  8662. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8663. CONFIG_SHELL='$SHELL'
  8664. export CONFIG_SHELL
  8665. exec "\$@"
  8666. fi
  8667.  
  8668. _ACEOF
  8669. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8670. exec 5>>config.log
  8671. {
  8672. echo
  8673. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8674. ## Running $as_me. ##
  8675. _ASBOX
  8676. $as_echo "$ac_log"
  8677. } >&5
  8678.  
  8679. _ACEOF
  8680. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8681. _ACEOF
  8682.  
  8683. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8684.  
  8685. # Handling of arguments.
  8686. for ac_config_target in $ac_config_targets
  8687. do
  8688. case $ac_config_target in
  8689. "packing/rpm/yate.spec
  8690. ") CONFIG_FILES="$CONFIG_FILES packing/rpm/yate.spec
  8691. " ;;
  8692. "packing/portage/yate.ebuild
  8693. ") CONFIG_FILES="$CONFIG_FILES packing/portage/yate.ebuild
  8694. " ;;
  8695. "yate.pc
  8696. ") CONFIG_FILES="$CONFIG_FILES yate.pc
  8697. " ;;
  8698. "yateversn.h
  8699. ") CONFIG_FILES="$CONFIG_FILES yateversn.h
  8700. " ;;
  8701. "yateiss.inc
  8702. ") CONFIG_FILES="$CONFIG_FILES yateiss.inc
  8703. " ;;
  8704. "Makefile
  8705. ") CONFIG_FILES="$CONFIG_FILES Makefile
  8706. " ;;
  8707. "engine/Makefile
  8708. ") CONFIG_FILES="$CONFIG_FILES engine/Makefile
  8709. " ;;
  8710. "modules/Makefile
  8711. ") CONFIG_FILES="$CONFIG_FILES modules/Makefile
  8712. " ;;
  8713. "modules/test/Makefile
  8714. ") CONFIG_FILES="$CONFIG_FILES modules/test/Makefile
  8715. " ;;
  8716. "clients/Makefile
  8717. ") CONFIG_FILES="$CONFIG_FILES clients/Makefile
  8718. " ;;
  8719. "clients/qt4/Makefile
  8720. ") CONFIG_FILES="$CONFIG_FILES clients/qt4/Makefile
  8721. " ;;
  8722. "libs/ilbc/Makefile
  8723. ") CONFIG_FILES="$CONFIG_FILES libs/ilbc/Makefile
  8724. " ;;
  8725. "libs/ysip/Makefile
  8726. ") CONFIG_FILES="$CONFIG_FILES libs/ysip/Makefile
  8727. " ;;
  8728. "libs/yrtp/Makefile
  8729. ") CONFIG_FILES="$CONFIG_FILES libs/yrtp/Makefile
  8730. " ;;
  8731. "libs/ysdp/Makefile
  8732. ") CONFIG_FILES="$CONFIG_FILES libs/ysdp/Makefile
  8733. " ;;
  8734. "libs/yiax/Makefile
  8735. ") CONFIG_FILES="$CONFIG_FILES libs/yiax/Makefile
  8736. " ;;
  8737. "libs/yjabber/Makefile
  8738. ") CONFIG_FILES="$CONFIG_FILES libs/yjabber/Makefile
  8739. " ;;
  8740. "libs/yscript/Makefile
  8741. ") CONFIG_FILES="$CONFIG_FILES libs/yscript/Makefile
  8742. " ;;
  8743. "libs/ymgcp/Makefile
  8744. ") CONFIG_FILES="$CONFIG_FILES libs/ymgcp/Makefile
  8745. " ;;
  8746. "libs/ysig/Makefile
  8747. ") CONFIG_FILES="$CONFIG_FILES libs/ysig/Makefile
  8748. " ;;
  8749. "libs/ypbx/Makefile
  8750. ") CONFIG_FILES="$CONFIG_FILES libs/ypbx/Makefile
  8751. " ;;
  8752. "libs/ymodem/Makefile
  8753. ") CONFIG_FILES="$CONFIG_FILES libs/ymodem/Makefile
  8754. " ;;
  8755. "libs/yasn/Makefile
  8756. ") CONFIG_FILES="$CONFIG_FILES libs/yasn/Makefile
  8757. " ;;
  8758. "libs/ysnmp/Makefile
  8759. ") CONFIG_FILES="$CONFIG_FILES libs/ysnmp/Makefile
  8760. " ;;
  8761. "libs/miniwebrtc/Makefile
  8762. ") CONFIG_FILES="$CONFIG_FILES libs/miniwebrtc/Makefile
  8763. " ;;
  8764. "libs/yradio/Makefile
  8765. ") CONFIG_FILES="$CONFIG_FILES libs/yradio/Makefile
  8766. " ;;
  8767. "share/Makefile
  8768. ") CONFIG_FILES="$CONFIG_FILES share/Makefile
  8769. " ;;
  8770. "share/scripts/Makefile
  8771. ") CONFIG_FILES="$CONFIG_FILES share/scripts/Makefile
  8772. " ;;
  8773. "share/skins/Makefile
  8774. ") CONFIG_FILES="$CONFIG_FILES share/skins/Makefile
  8775. " ;;
  8776. "share/sounds/Makefile
  8777. ") CONFIG_FILES="$CONFIG_FILES share/sounds/Makefile
  8778. " ;;
  8779. "share/help/Makefile
  8780. ") CONFIG_FILES="$CONFIG_FILES share/help/Makefile
  8781. " ;;
  8782. "share/data/Makefile
  8783. ") CONFIG_FILES="$CONFIG_FILES share/data/Makefile
  8784. " ;;
  8785. "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
  8786. "yate-config") CONFIG_FILES="$CONFIG_FILES yate-config" ;;
  8787. "run") CONFIG_FILES="$CONFIG_FILES run" ;;
  8788.  
  8789. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8790. esac
  8791. done
  8792.  
  8793.  
  8794. # If the user did not use the arguments to specify the items to instantiate,
  8795. # then the envvar interface is used. Set only those that are not.
  8796. # We use the long form for the default assignment because of an extremely
  8797. # bizarre bug on SunOS 4.1.3.
  8798. if $ac_need_defaults; then
  8799. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8800. fi
  8801.  
  8802. # Have a temporary directory for convenience. Make it in the build tree
  8803. # simply because there is no reason against having it here, and in addition,
  8804. # creating and moving files from /tmp can sometimes cause problems.
  8805. # Hook for its removal unless debugging.
  8806. # Note that there is a small window in which the directory will not be cleaned:
  8807. # after its creation but before its name has been assigned to `$tmp'.
  8808. $debug ||
  8809. {
  8810. tmp= ac_tmp=
  8811. trap 'exit_status=$?
  8812. : "${ac_tmp:=$tmp}"
  8813. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8814. ' 0
  8815. trap 'as_fn_exit 1' 1 2 13 15
  8816. }
  8817. # Create a (secure) tmp directory for tmp files.
  8818.  
  8819. {
  8820. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8821. test -d "$tmp"
  8822. } ||
  8823. {
  8824. tmp=./conf$$-$RANDOM
  8825. (umask 077 && mkdir "$tmp")
  8826. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8827. ac_tmp=$tmp
  8828.  
  8829. # Set up the scripts for CONFIG_FILES section.
  8830. # No need to generate them if there are no CONFIG_FILES.
  8831. # This happens for instance with `./config.status config.h'.
  8832. if test -n "$CONFIG_FILES"; then
  8833.  
  8834.  
  8835. ac_cr=`echo X | tr X '\015'`
  8836. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8837. # But we know of no other shell where ac_cr would be empty at this
  8838. # point, so we can use a bashism as a fallback.
  8839. if test "x$ac_cr" = x; then
  8840. eval ac_cr=\$\'\\r\'
  8841. fi
  8842. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8843. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8844. ac_cs_awk_cr='\\r'
  8845. else
  8846. ac_cs_awk_cr=$ac_cr
  8847. fi
  8848.  
  8849. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8850. _ACEOF
  8851.  
  8852.  
  8853. {
  8854. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8855. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8856. echo "_ACEOF"
  8857. } >conf$$subs.sh ||
  8858. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8859. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8860. ac_delim='%!_!# '
  8861. for ac_last_try in false false false false false :; do
  8862. . ./conf$$subs.sh ||
  8863. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8864.  
  8865. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8866. if test $ac_delim_n = $ac_delim_num; then
  8867. break
  8868. elif $ac_last_try; then
  8869. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8870. else
  8871. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8872. fi
  8873. done
  8874. rm -f conf$$subs.sh
  8875.  
  8876. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8877. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8878. _ACEOF
  8879. sed -n '
  8880. h
  8881. s/^/S["/; s/!.*/"]=/
  8882. p
  8883. g
  8884. s/^[^!]*!//
  8885. :repl
  8886. t repl
  8887. s/'"$ac_delim"'$//
  8888. t delim
  8889. :nl
  8890. h
  8891. s/\(.\{148\}\)..*/\1/
  8892. t more1
  8893. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8894. p
  8895. n
  8896. b repl
  8897. :more1
  8898. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8899. p
  8900. g
  8901. s/.\{148\}//
  8902. t nl
  8903. :delim
  8904. h
  8905. s/\(.\{148\}\)..*/\1/
  8906. t more2
  8907. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8908. p
  8909. b
  8910. :more2
  8911. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8912. p
  8913. g
  8914. s/.\{148\}//
  8915. t delim
  8916. ' <conf$$subs.awk | sed '
  8917. /^[^""]/{
  8918. N
  8919. s/\n//
  8920. }
  8921. ' >>$CONFIG_STATUS || ac_write_fail=1
  8922. rm -f conf$$subs.awk
  8923. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8924. _ACAWK
  8925. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8926. for (key in S) S_is_set[key] = 1
  8927. FS = ""
  8928.  
  8929. }
  8930. {
  8931. line = $ 0
  8932. nfields = split(line, field, "@")
  8933. substed = 0
  8934. len = length(field[1])
  8935. for (i = 2; i < nfields; i++) {
  8936. key = field[i]
  8937. keylen = length(key)
  8938. if (S_is_set[key]) {
  8939. value = S[key]
  8940. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8941. len += length(value) + length(field[++i])
  8942. substed = 1
  8943. } else
  8944. len += 1 + keylen
  8945. }
  8946.  
  8947. print line
  8948. }
  8949.  
  8950. _ACAWK
  8951. _ACEOF
  8952. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8953. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8954. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8955. else
  8956. cat
  8957. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8958. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8959. _ACEOF
  8960.  
  8961. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8962. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8963. # trailing colons and then remove the whole line if VPATH becomes empty
  8964. # (actually we leave an empty line to preserve line numbers).
  8965. if test "x$srcdir" = x.; then
  8966. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8967. h
  8968. s///
  8969. s/^/:/
  8970. s/[ ]*$/:/
  8971. s/:\$(srcdir):/:/g
  8972. s/:\${srcdir}:/:/g
  8973. s/:@srcdir@:/:/g
  8974. s/^:*//
  8975. s/:*$//
  8976. x
  8977. s/\(=[ ]*\).*/\1/
  8978. G
  8979. s/\n//
  8980. s/^[^=]*=[ ]*$//
  8981. }'
  8982. fi
  8983.  
  8984. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8985. fi # test -n "$CONFIG_FILES"
  8986.  
  8987.  
  8988. eval set X " :F $CONFIG_FILES "
  8989. shift
  8990. for ac_tag
  8991. do
  8992. case $ac_tag in
  8993. :[FHLC]) ac_mode=$ac_tag; continue;;
  8994. esac
  8995. case $ac_mode$ac_tag in
  8996. :[FHL]*:*);;
  8997. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8998. :[FH]-) ac_tag=-:-;;
  8999. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9000. esac
  9001. ac_save_IFS=$IFS
  9002. IFS=:
  9003. set x $ac_tag
  9004. IFS=$ac_save_IFS
  9005. shift
  9006. ac_file=$1
  9007. shift
  9008.  
  9009. case $ac_mode in
  9010. :L) ac_source=$1;;
  9011. :[FH])
  9012. ac_file_inputs=
  9013. for ac_f
  9014. do
  9015. case $ac_f in
  9016. -) ac_f="$ac_tmp/stdin";;
  9017. *) # Look for the file first in the build tree, then in the source tree
  9018. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9019. # because $ac_f cannot contain `:'.
  9020. test -f "$ac_f" ||
  9021. case $ac_f in
  9022. [\\/$]*) false;;
  9023. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9024. esac ||
  9025. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9026. esac
  9027. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9028. as_fn_append ac_file_inputs " '$ac_f'"
  9029. done
  9030.  
  9031. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9032. # use $as_me), people would be surprised to read:
  9033. # /* config.h. Generated by config.status. */
  9034. configure_input='Generated from '`
  9035. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9036. `' by configure.'
  9037. if test x"$ac_file" != x-; then
  9038. configure_input="$ac_file. $configure_input"
  9039. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9040. $as_echo "$as_me: creating $ac_file" >&6;}
  9041. fi
  9042. # Neutralize special characters interpreted by sed in replacement strings.
  9043. case $configure_input in #(
  9044. *\&* | *\|* | *\\* )
  9045. ac_sed_conf_input=`$as_echo "$configure_input" |
  9046. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9047. *) ac_sed_conf_input=$configure_input;;
  9048. esac
  9049.  
  9050. case $ac_tag in
  9051. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9052. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9053. esac
  9054. ;;
  9055. esac
  9056.  
  9057. ac_dir=`$as_dirname -- "$ac_file" ||
  9058. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9059. X"$ac_file" : 'X\(//\)[^/]' \| \
  9060. X"$ac_file" : 'X\(//\)$' \| \
  9061. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9062. $as_echo X"$ac_file" |
  9063. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9064. s//\1/
  9065. q
  9066. }
  9067. /^X\(\/\/\)[^/].*/{
  9068. s//\1/
  9069. q
  9070. }
  9071. /^X\(\/\/\)$/{
  9072. s//\1/
  9073. q
  9074. }
  9075. /^X\(\/\).*/{
  9076. s//\1/
  9077. q
  9078. }
  9079. s/.*/./; q'`
  9080. as_dir="$ac_dir"; as_fn_mkdir_p
  9081. ac_builddir=.
  9082.  
  9083. case "$ac_dir" in
  9084. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9085. *)
  9086. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9087. # A ".." for each directory in $ac_dir_suffix.
  9088. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9089. case $ac_top_builddir_sub in
  9090. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9091. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9092. esac ;;
  9093. esac
  9094. ac_abs_top_builddir=$ac_pwd
  9095. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9096. # for backward compatibility:
  9097. ac_top_builddir=$ac_top_build_prefix
  9098.  
  9099. case $srcdir in
  9100. .) # We are building in place.
  9101. ac_srcdir=.
  9102. ac_top_srcdir=$ac_top_builddir_sub
  9103. ac_abs_top_srcdir=$ac_pwd ;;
  9104. [\\/]* | ?:[\\/]* ) # Absolute name.
  9105. ac_srcdir=$srcdir$ac_dir_suffix;
  9106. ac_top_srcdir=$srcdir
  9107. ac_abs_top_srcdir=$srcdir ;;
  9108. *) # Relative name.
  9109. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9110. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9111. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9112. esac
  9113. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9114.  
  9115.  
  9116. case $ac_mode in
  9117. :F)
  9118. #
  9119. # CONFIG_FILE
  9120. #
  9121.  
  9122. _ACEOF
  9123.  
  9124. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9125. # If the template does not know about datarootdir, expand it.
  9126. # FIXME: This hack should be removed a few years after 2.60.
  9127. ac_datarootdir_hack=; ac_datarootdir_seen=
  9128. ac_sed_dataroot='
  9129. /datarootdir/ {
  9130. p
  9131. q
  9132. }
  9133. /@datadir@/p
  9134. /@docdir@/p
  9135. /@infodir@/p
  9136. /@localedir@/p
  9137. /@mandir@/p'
  9138. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9139. *datarootdir*) ac_datarootdir_seen=yes;;
  9140. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9142. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9143. _ACEOF
  9144. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9145. ac_datarootdir_hack='
  9146. s&@datadir@&$datadir&g
  9147. s&@docdir@&$docdir&g
  9148. s&@infodir@&$infodir&g
  9149. s&@localedir@&$localedir&g
  9150. s&@mandir@&$mandir&g
  9151. s&\\\${datarootdir}&$datarootdir&g' ;;
  9152. esac
  9153. _ACEOF
  9154.  
  9155. # Neutralize VPATH when `$srcdir' = `.'.
  9156. # Shell code in configure.ac might set extrasub.
  9157. # FIXME: do we really want to maintain this feature?
  9158. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9159. ac_sed_extra="$ac_vpsub
  9160. $extrasub
  9161. _ACEOF
  9162. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9163. :t
  9164. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9165. s|@configure_input@|$ac_sed_conf_input|;t t
  9166. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9167. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9168. s&@srcdir@&$ac_srcdir&;t t
  9169. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9170. s&@top_srcdir@&$ac_top_srcdir&;t t
  9171. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9172. s&@builddir@&$ac_builddir&;t t
  9173. s&@abs_builddir@&$ac_abs_builddir&;t t
  9174. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9175. $ac_datarootdir_hack
  9176. "
  9177. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9178. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9179.  
  9180. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9181. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9182. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9183. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9185. which seems to be undefined. Please make sure it is defined" >&5
  9186. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9187. which seems to be undefined. Please make sure it is defined" >&2;}
  9188.  
  9189. rm -f "$ac_tmp/stdin"
  9190. case $ac_file in
  9191. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9192. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9193. esac \
  9194. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9195. ;;
  9196.  
  9197.  
  9198.  
  9199. esac
  9200.  
  9201.  
  9202. case $ac_file$ac_mode in
  9203. "yate-config":F) chmod +x yate-config ;;
  9204. "run":F) chmod +x run ;;
  9205.  
  9206. esac
  9207. done # for ac_tag
  9208.  
  9209.  
  9210. as_fn_exit 0
  9211. _ACEOF
  9212. ac_clean_files=$ac_clean_files_save
  9213.  
  9214. test $ac_write_fail = 0 ||
  9215. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9216.  
  9217.  
  9218. # configure is writing to config.log, and then calls config.status.
  9219. # config.status does its own redirection, appending to config.log.
  9220. # Unfortunately, on DOS this fails, as config.log is still kept open
  9221. # by configure, so config.status won't be able to write to it; its
  9222. # output is simply discarded. So we exec the FD to /dev/null,
  9223. # effectively closing config.log, so it can be properly (re)opened and
  9224. # appended to by config.status. When coming back to configure, we
  9225. # need to make the FD available again.
  9226. if test "$no_create" != yes; then
  9227. ac_cs_success=:
  9228. ac_config_status_args=
  9229. test "$silent" = yes &&
  9230. ac_config_status_args="$ac_config_status_args --quiet"
  9231. exec 5>/dev/null
  9232. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9233. exec 5>>config.log
  9234. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9235. # would make configure fail if this is the last instruction.
  9236. $ac_cs_success || as_fn_exit 1
  9237. fi
  9238. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9240. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9241. fi
  9242.  
  9243.  
  9244. if [ "x$uname_os" = "xDarwin" ]; then
  9245. if [ "x$HAVE_COREAUDIO" != "xyes" ]; then
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please take note that the building of the audio module for Mac OS X has been disabled. The Yate client will not have audio support. If you need audio, you need at least Mac OS X SDK 10.5 or something newer." >&5
  9247. $as_echo "$as_me: WARNING: Please take note that the building of the audio module for Mac OS X has been disabled. The Yate client will not have audio support. If you need audio, you need at least Mac OS X SDK 10.5 or something newer." >&2;}
  9248. fi
  9249. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement