- Timestamp:
- Dec 10, 2010 11:04:30 AM (14 years ago)
- Location:
- pjproject/branches/projects/2.0-dev
- Files:
-
- 37 added
- 76 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/aconfigure
r3299 r3392 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.61 for pjproject 1.x. 3 # Generated by GNU Autoconf 2.65 for pjproject 1.x. 4 # 4 5 # 5 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8 # Inc. 9 # 10 # 7 11 # This configure script is free software; the Free Software Foundation 8 12 # gives unlimited permission to copy, distribute and modify it. 9 ## -------------------- -##10 ## M4sh Initialization. 11 ## -------------------- -##13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 12 16 13 17 # Be more Bourne compatible 14 18 DUALCASE=1; export DUALCASE # for MKS sh 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16 20 emulate sh 17 21 NULLCMD=: 18 # Zsh 3.x and 4.x performsword splitting on ${1+"$@"}, which22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 23 # is contrary to our usage. Disable this feature. 20 24 alias -g '${1+"$@"}'='"$@"' 21 25 setopt NO_GLOB_SUBST 22 26 else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 25 32 esac 26 27 fi 28 29 30 31 32 # PATH needs CR 33 # Avoid depending upon Character Ranges. 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37 as_cr_digits='0123456789' 38 as_cr_alnum=$as_cr_Letters$as_cr_digits 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 39 73 40 74 # The user is always right. 41 75 if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51 fi 52 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 58 81 fi 59 82 … … 64 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 88 # splitting by setting IFS to empty value.) 66 as_nl='67 '68 89 IFS=" "" $as_nl" 69 90 70 91 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 92 case $0 in #(( 72 93 *[\\/]* ) as_myself=$0 ;; 73 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 76 97 IFS=$as_save_IFS 77 98 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break79 done99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 80 101 IFS=$as_save_IFS 81 102 … … 88 109 fi 89 110 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113 fi 114 115 # Unset variables that we do not need and which cause bugs (e.g. in 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117 # suppresses any "Segmentation fault" message there. '((' could 118 # trigger a bug in pdksh 5.2.14. 119 for as_var in BASH_ENV ENV MAIL MAILPATH 120 do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 97 122 done 98 123 PS1='$ ' … … 101 126 102 127 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 128 LC_ALL=C 129 export LC_ALL 130 LANGUAGE=C 131 export LANGUAGE 132 133 # CDPATH. 134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136 if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144 else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150 esac 151 fi 152 " 153 as_required="as_fn_return () { (exit \$1); } 154 as_fn_success () { as_fn_return 0; } 155 as_fn_failure () { as_fn_return 1; } 156 as_fn_ret_success () { return 0; } 157 as_fn_ret_failure () { return 1; } 158 159 exitcode=0 160 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166 else 167 exitcode=1; echo positional parameters were not saved. 168 fi 169 test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174 test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177 else 178 as_have_required=no 179 fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182 else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184 as_found=false 185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 107 186 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200 fi 201 fi 202 done;; 203 esac 204 as_found=false 205 done 206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209 fi; } 210 IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222 fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 110 230 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232 $0: including any error possibly output before this 233 $0: message. Then install a modern shell, or manually run 234 $0: the script under such a shell if you do have one." 112 235 fi 113 done 114 115 # Required to use basename. 236 exit 1 237 fi 238 fi 239 fi 240 SHELL=${CONFIG_SHELL-/bin/sh} 241 export SHELL 242 # Unset more variables known to interfere with behavior of common tools. 243 CLICOLOR_FORCE= GREP_OPTIONS= 244 unset CLICOLOR_FORCE GREP_OPTIONS 245 246 ## --------------------- ## 247 ## M4sh Shell Functions. ## 248 ## --------------------- ## 249 # as_fn_unset VAR 250 # --------------- 251 # Portably unset VAR. 252 as_fn_unset () 253 { 254 { eval $1=; unset $1;} 255 } 256 as_unset=as_fn_unset 257 258 # as_fn_set_status STATUS 259 # ----------------------- 260 # Set $? to STATUS, without forking. 261 as_fn_set_status () 262 { 263 return $1 264 } # as_fn_set_status 265 266 # as_fn_exit STATUS 267 # ----------------- 268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269 as_fn_exit () 270 { 271 set +e 272 as_fn_set_status $1 273 exit $1 274 } # as_fn_exit 275 276 # as_fn_mkdir_p 277 # ------------- 278 # Create "$as_dir" as a directory, including parents if necessary. 279 as_fn_mkdir_p () 280 { 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298 $as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322 } # as_fn_mkdir_p 323 # as_fn_append VAR VALUE 324 # ---------------------- 325 # Append the text in VALUE to the end of the definition contained in VAR. Take 326 # advantage of any shell optimizations that allow amortized linear growth over 327 # repeated appends, instead of the typical quadratic growth present in naive 328 # implementations. 329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334 else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339 fi # as_fn_append 340 341 # as_fn_arith ARG... 342 # ------------------ 343 # Perform arithmetic evaluation on the ARGs, and store the result in the 344 # global $as_val. Take advantage of shells that can avoid forks. The arguments 345 # must be portable across $(()) and expr. 346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351 else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356 fi # as_fn_arith 357 358 359 # as_fn_error ERROR [LINENO LOG_FD] 360 # --------------------------------- 361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363 # script with status $?, using 1 if that was 0. 364 as_fn_error () 365 { 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373 } # as_fn_error 374 116 375 if expr a : '\(a\)' >/dev/null 2>&1 && 117 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then … … 127 386 fi 128 387 129 130 # Name of the executable. 388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390 else 391 as_dirname=false 392 fi 393 131 394 as_me=`$as_basename -- "$0" || 132 395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 396 X"$0" : 'X\(//\)$' \| \ 134 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" |398 $as_echo X/"$0" | 136 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 400 s//\1/ … … 148 411 s/.*/./; q'` 149 412 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223 do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247 else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250 esac 251 252 fi 253 254 255 : 256 _ASEOF 257 }; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 (as_func_return () { 278 (exit $1) 279 } 280 as_func_success () { 281 as_func_return 0 282 } 283 as_func_failure () { 284 as_func_return 1 285 } 286 as_func_ret_success () { 287 return 0 288 } 289 as_func_ret_failure () { 290 return 1 291 } 292 293 exitcode=0 294 if as_func_success; then 295 : 296 else 297 exitcode=1 298 echo as_func_success failed. 299 fi 300 301 if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304 fi 305 306 if as_func_ret_success; then 307 : 308 else 309 exitcode=1 310 echo as_func_ret_success failed. 311 fi 312 313 if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316 fi 317 318 if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320 else 321 exitcode=1 322 echo positional parameters were not saved. 323 fi 324 325 test $exitcode = 0) || { (exit 1); exit 1; } 326 327 ( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333 _ASEOF 334 }; then 335 break 336 fi 337 338 fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348 fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357 fi 358 359 360 fi 361 362 fi 363 364 365 366 (eval "as_func_return () { 367 (exit \$1) 368 } 369 as_func_success () { 370 as_func_return 0 371 } 372 as_func_failure () { 373 as_func_return 1 374 } 375 as_func_ret_success () { 376 return 0 377 } 378 as_func_ret_failure () { 379 return 1 380 } 381 382 exitcode=0 383 if as_func_success; then 384 : 385 else 386 exitcode=1 387 echo as_func_success failed. 388 fi 389 390 if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393 fi 394 395 if as_func_ret_success; then 396 : 397 else 398 exitcode=1 399 echo as_func_ret_success failed. 400 fi 401 402 if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405 fi 406 407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409 else 410 exitcode=1 411 echo positional parameters were not saved. 412 fi 413 414 test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419 } 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 413 # Avoid depending upon Character Ranges. 414 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417 as_cr_digits='0123456789' 418 as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 426 sed -n ' 439 427 p … … 452 440 ' >$as_me.lineno && 453 441 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 456 443 457 444 # Don't try to exec as it changes $[0], causing all sort of problems … … 463 450 } 464 451 465 466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then467 as_dirname=dirname468 else469 as_dirname=false470 fi471 472 452 ECHO_C= ECHO_N= ECHO_T= 473 case `echo -n x` in 453 case `echo -n x` in #((((( 474 454 -n*) 475 case `echo 'x \c'` in455 case `echo 'xy\c'` in 476 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 478 460 esac;; 479 461 *) … … 481 463 esac 482 464 483 if expr a : '\(a\)' >/dev/null 2>&1 &&484 test "X`expr 00001 : '.*\(...\)'`" = X001; then485 as_expr=expr486 else487 as_expr=false488 fi489 490 465 rm -f conf$$ conf$$.exe conf$$.file 491 466 if test -d conf$$.dir; then … … 493 468 else 494 469 rm -f conf$$.dir 495 mkdir conf$$.dir 496 fi 497 echo >conf$$.file 498 if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 470 mkdir conf$$.dir 2>/dev/null 471 fi 472 if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 505 484 as_ln_s='cp -p' 506 elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 485 fi 508 486 else 509 487 as_ln_s='cp -p' … … 513 491 514 492 if mkdir -p . 2>/dev/null; then 515 as_mkdir_p= :493 as_mkdir_p='mkdir -p "$as_dir"' 516 494 else 517 495 test -d ./-p && rmdir ./-p … … 530 508 eval sh -c '\'' 531 509 if test -d "$1"; then 532 510 test -d "$1/."; 533 511 else 534 case $1 in 535 512 case $1 in #( 513 -*)set "./$1";; 536 514 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 538 516 ???[sx]*):;;*)false;;esac;fi 539 517 '\'' sh … … 549 527 550 528 551 552 exec 7<&0 </dev/null6>&1529 test -n "$DJDIR" || exec 7<&0 </dev/null 530 exec 6>&1 553 531 554 532 # Name of the host. … … 568 546 MFLAGS= 569 547 MAKEFLAGS= 570 SHELL=${CONFIG_SHELL-/bin/sh}571 548 572 549 # Identity of this package. … … 576 553 PACKAGE_STRING='pjproject 1.x' 577 554 PACKAGE_BUGREPORT='' 555 PACKAGE_URL='' 578 556 579 557 # Factoring default headers for most tests. … … 613 591 #endif" 614 592 615 ac_subst_vars='SHELL 593 ac_subst_vars='LTLIBOBJS 594 LIBOBJS 595 ac_main_obj 596 ac_host 597 ac_linux_poll 598 ac_cross_compile 599 libcrypto_present 600 libssl_present 601 openssl_h_present 602 ac_no_ssl 603 ac_v4l2_ldflags 604 ac_v4l2_cflags 605 ac_ffmpeg_ldflags 606 ac_ffmpeg_cflags 607 ac_has_ffmpeg 608 ac_sdl_ldflags 609 ac_sdl_cflags 610 ac_no_ilbc_codec 611 ac_no_speex_codec 612 ac_no_g7221_codec 613 ac_no_g722_codec 614 ac_no_gsm_codec 615 ac_no_l16_codec 616 ac_no_g711_codec 617 ac_no_speex_aec 618 ac_no_large_filter 619 ac_no_small_filter 620 ac_pa_use_oss 621 ac_pa_use_alsa 622 ac_pa_cflags 623 ac_external_pa 624 ac_pjmedia_snd 625 ac_external_gsm 626 ac_external_speex 627 ac_os_objs 628 EGREP 629 GREP 630 CPP 631 ac_build_mak_vars 632 ac_pjdir 633 CC_CFLAGS 634 CC_OPTIMIZE 635 CC_DEF 636 CC_INC 637 CC_OUT 638 LIBEXT2 639 LIBEXT 640 RANLIB 641 LDOUT 642 LD 643 AR 644 ac_ct_CXX 645 CXXFLAGS 646 CXX 647 OBJEXT 648 EXEEXT 649 ac_ct_CC 650 CPPFLAGS 651 LDFLAGS 652 CFLAGS 653 CC 654 target_os 655 target_vendor 656 target_cpu 657 target 658 host_os 659 host_vendor 660 host_cpu 661 host 662 build_os 663 build_vendor 664 build_cpu 665 build 666 target_alias 667 host_alias 668 build_alias 669 LIBS 670 ECHO_T 671 ECHO_N 672 ECHO_C 673 DEFS 674 mandir 675 localedir 676 libdir 677 psdir 678 pdfdir 679 dvidir 680 htmldir 681 infodir 682 docdir 683 oldincludedir 684 includedir 685 localstatedir 686 sharedstatedir 687 sysconfdir 688 datadir 689 datarootdir 690 libexecdir 691 sbindir 692 bindir 693 program_transform_name 694 prefix 695 exec_prefix 696 PACKAGE_URL 697 PACKAGE_BUGREPORT 698 PACKAGE_STRING 699 PACKAGE_VERSION 700 PACKAGE_TARNAME 701 PACKAGE_NAME 616 702 PATH_SEPARATOR 617 PACKAGE_NAME 618 PACKAGE_TARNAME 619 PACKAGE_VERSION 620 PACKAGE_STRING 621 PACKAGE_BUGREPORT 622 exec_prefix 623 prefix 624 program_transform_name 625 bindir 626 sbindir 627 libexecdir 628 datarootdir 629 datadir 630 sysconfdir 631 sharedstatedir 632 localstatedir 633 includedir 634 oldincludedir 635 docdir 636 infodir 637 htmldir 638 dvidir 639 pdfdir 640 psdir 641 libdir 642 localedir 643 mandir 644 DEFS 645 ECHO_C 646 ECHO_N 647 ECHO_T 648 LIBS 649 build_alias 650 host_alias 651 target_alias 652 build 653 build_cpu 654 build_vendor 655 build_os 656 host 657 host_cpu 658 host_vendor 659 host_os 660 target 661 target_cpu 662 target_vendor 663 target_os 664 CC 665 CFLAGS 666 LDFLAGS 667 CPPFLAGS 668 ac_ct_CC 669 EXEEXT 670 OBJEXT 671 CXX 672 CXXFLAGS 673 ac_ct_CXX 674 AR 675 LD 676 LDOUT 677 RANLIB 678 LIBEXT 679 LIBEXT2 680 CC_OUT 681 CC_INC 682 CC_DEF 683 CC_OPTIMIZE 684 CC_CFLAGS 685 ac_pjdir 686 ac_build_mak_vars 687 CPP 688 GREP 689 EGREP 690 ac_os_objs 691 ac_external_speex 692 ac_external_gsm 693 ac_pjmedia_snd 694 ac_external_pa 695 ac_pa_cflags 696 ac_pa_use_alsa 697 ac_pa_use_oss 698 ac_no_small_filter 699 ac_no_large_filter 700 ac_no_speex_aec 701 ac_no_g711_codec 702 ac_no_l16_codec 703 ac_no_gsm_codec 704 ac_no_g722_codec 705 ac_no_g7221_codec 706 ac_no_speex_codec 707 ac_no_ilbc_codec 708 ac_no_ssl 709 openssl_h_present 710 libssl_present 711 libcrypto_present 712 ac_cross_compile 713 ac_linux_poll 714 ac_host 715 ac_main_obj 716 LIBOBJS 717 LTLIBOBJS' 703 SHELL' 718 704 ac_subst_files='' 705 ac_user_opts=' 706 enable_option_checking 707 enable_floating_point 708 enable_epoll 709 with_external_speex 710 with_external_gsm 711 enable_sound 712 with_external_pa 713 enable_oss 714 enable_ext_sound 715 enable_small_filter 716 enable_large_filter 717 enable_speex_aec 718 enable_g711_codec 719 enable_l16_codec 720 enable_gsm_codec 721 enable_g722_codec 722 enable_g7221_codec 723 enable_speex_codec 724 enable_ilbc_codec 725 enable_libsamplerate 726 enable_sdl 727 enable_ffmpeg 728 enable_v4l2 729 enable_ipp 730 with_ipp 731 with_ipp_samples 732 with_ipp_arch 733 enable_ssl 734 ' 719 735 ac_precious_vars='build_alias 720 736 host_alias … … 734 750 ac_init_help= 735 751 ac_init_version=false 752 ac_unrecognized_opts= 753 ac_unrecognized_sep= 736 754 # The variables have the same names as the options, with 737 755 # dashes changed to underlines. … … 832 850 833 851 -disable-* | --disable-*) 834 ac_ feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 835 853 # Reject names that are not valid shell variable names. 836 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 837 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 838 { (exit 1); exit 1; }; } 839 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 840 eval enable_$ac_feature=no ;; 854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 855 as_fn_error "invalid feature name: $ac_useropt" 856 ac_useropt_orig=$ac_useropt 857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 858 case $ac_user_opts in 859 *" 860 "enable_$ac_useropt" 861 "*) ;; 862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 863 ac_unrecognized_sep=', ';; 864 esac 865 eval enable_$ac_useropt=no ;; 841 866 842 867 -docdir | --docdir | --docdi | --doc | --do) … … 851 876 852 877 -enable-* | --enable-*) 853 ac_ feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 854 879 # Reject names that are not valid shell variable names. 855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 857 { (exit 1); exit 1; }; } 858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 859 eval enable_$ac_feature=\$ac_optarg ;; 880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 881 as_fn_error "invalid feature name: $ac_useropt" 882 ac_useropt_orig=$ac_useropt 883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 884 case $ac_user_opts in 885 *" 886 "enable_$ac_useropt" 887 "*) ;; 888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 889 ac_unrecognized_sep=', ';; 890 esac 891 eval enable_$ac_useropt=\$ac_optarg ;; 860 892 861 893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 1048 1080 1049 1081 -with-* | --with-*) 1050 ac_ package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1051 1083 # Reject names that are not valid shell variable names. 1052 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1053 { echo "$as_me: error: invalid package name: $ac_package" >&2 1054 { (exit 1); exit 1; }; } 1055 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1056 eval with_$ac_package=\$ac_optarg ;; 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1085 as_fn_error "invalid package name: $ac_useropt" 1086 ac_useropt_orig=$ac_useropt 1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1088 case $ac_user_opts in 1089 *" 1090 "with_$ac_useropt" 1091 "*) ;; 1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1093 ac_unrecognized_sep=', ';; 1094 esac 1095 eval with_$ac_useropt=\$ac_optarg ;; 1057 1096 1058 1097 -without-* | --without-*) 1059 ac_ package=`expr "x$ac_option" : 'x-*without-\(.*\)'`1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1060 1099 # Reject names that are not valid shell variable names. 1061 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1062 { echo "$as_me: error: invalid package name: $ac_package" >&2 1063 { (exit 1); exit 1; }; } 1064 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1065 eval with_$ac_package=no ;; 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error "invalid package name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106 "with_$ac_useropt" 1107 "*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval with_$ac_useropt=no ;; 1066 1112 1067 1113 --x) … … 1083 1129 x_libraries=$ac_optarg ;; 1084 1130 1085 -*) { echo "$as_me: error: unrecognized option: $ac_option 1086 Try \`$0 --help' for more information." >&2 1087 { (exit 1); exit 1; }; } 1131 -*) as_fn_error "unrecognized option: \`$ac_option' 1132 Try \`$0 --help' for more information." 1088 1133 ;; 1089 1134 … … 1091 1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1092 1137 # Reject names that are not valid shell variable names. 1093 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1094 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1095 { (exit 1); exit 1; }; } 1138 case $ac_envvar in #( 1139 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1140 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1141 esac 1096 1142 eval $ac_envvar=\$ac_optarg 1097 1143 export $ac_envvar ;; … … 1099 1145 *) 1100 1146 # FIXME: should be removed in autoconf 3.0. 1101 echo "$as_me: WARNING: you should use --build, --host, --target" >&21147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1102 1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1103 echo "$as_me: WARNING: invalid host type: $ac_option" >&21149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1104 1150 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1105 1151 ;; … … 1110 1156 if test -n "$ac_prev"; then 1111 1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1112 { echo "$as_me: error: missing argument to $ac_option" >&2 1113 { (exit 1); exit 1; }; } 1114 fi 1115 1116 # Be sure to have absolute directory names. 1158 as_fn_error "missing argument to $ac_option" 1159 fi 1160 1161 if test -n "$ac_unrecognized_opts"; then 1162 case $enable_option_checking in 1163 no) ;; 1164 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1166 esac 1167 fi 1168 1169 # Check all directory arguments for consistency. 1117 1170 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1118 1171 datadir sysconfdir sharedstatedir localstatedir includedir \ … … 1121 1174 do 1122 1175 eval ac_val=\$$ac_var 1176 # Remove trailing slashes. 1177 case $ac_val in 1178 */ ) 1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1180 eval $ac_var=\$ac_val;; 1181 esac 1182 # Be sure to have absolute directory names. 1123 1183 case $ac_val in 1124 1184 [\\/$]* | ?:[\\/]* ) continue;; 1125 1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1126 1186 esac 1127 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1128 { (exit 1); exit 1; }; } 1187 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1129 1188 done 1130 1189 … … 1140 1199 if test "x$build_alias" = x; then 1141 1200 cross_compiling=maybe 1142 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.1201 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1143 1202 If a cross compiler is detected then cross compile mode will be used." >&2 1144 1203 elif test "x$build_alias" != "x$host_alias"; then … … 1156 1215 ac_ls_di=`ls -di .` && 1157 1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1158 { echo "$as_me: error: Working directory cannot be determined" >&2 1159 { (exit 1); exit 1; }; } 1217 as_fn_error "working directory cannot be determined" 1160 1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1161 { echo "$as_me: error: pwd does not report name of working directory" >&2 1162 { (exit 1); exit 1; }; } 1219 as_fn_error "pwd does not report name of working directory" 1163 1220 1164 1221 … … 1167 1224 ac_srcdir_defaulted=yes 1168 1225 # Try the directory containing this script, then the parent directory. 1169 ac_confdir=`$as_dirname -- "$ 0" ||1170 $as_expr X"$ 0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \1171 X"$ 0" : 'X\(//\)[^/]' \| \1172 X"$ 0" : 'X\(//\)$' \| \1173 X"$ 0" : 'X\(/\)' \| . 2>/dev/null ||1174 echo X"$0" |1226 ac_confdir=`$as_dirname -- "$as_myself" || 1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1228 X"$as_myself" : 'X\(//\)[^/]' \| \ 1229 X"$as_myself" : 'X\(//\)$' \| \ 1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1231 $as_echo X"$as_myself" | 1175 1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1176 1233 s//\1/ … … 1199 1256 if test ! -r "$srcdir/$ac_unique_file"; then 1200 1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1201 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1202 { (exit 1); exit 1; }; } 1258 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1203 1259 fi 1204 1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1205 1261 ac_abs_confdir=`( 1206 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1207 { (exit 1); exit 1; }; } 1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1208 1263 pwd)` 1209 1264 # When building in place, set srcdir=. … … 1253 1308 Installation directories: 1254 1309 --prefix=PREFIX install architecture-independent files in PREFIX 1255 1310 [$ac_default_prefix] 1256 1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1257 1312 [PREFIX] 1258 1313 1259 1314 By default, \`make install' will install all the files in … … 1265 1320 1266 1321 Fine tuning of the installation directories: 1267 --bindir=DIR user executables [EPREFIX/bin]1268 --sbindir=DIR system admin executables [EPREFIX/sbin]1269 --libexecdir=DIR program executables [EPREFIX/libexec]1270 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]1271 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]1272 --localstatedir=DIR modifiable single-machine data [PREFIX/var]1273 --libdir=DIR object code libraries [EPREFIX/lib]1274 --includedir=DIR C header files [PREFIX/include]1275 --oldincludedir=DIR C header files for non-gcc [/usr/include]1276 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]1277 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]1278 --infodir=DIR info documentation [DATAROOTDIR/info]1279 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]1280 --mandir=DIR man documentation [DATAROOTDIR/man]1281 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]1282 --htmldir=DIR html documentation [DOCDIR]1283 --dvidir=DIR dvi documentation [DOCDIR]1284 --pdfdir=DIR pdf documentation [DOCDIR]1285 --psdir=DIR ps documentation [DOCDIR]1322 --bindir=DIR user executables [EPREFIX/bin] 1323 --sbindir=DIR system admin executables [EPREFIX/sbin] 1324 --libexecdir=DIR program executables [EPREFIX/libexec] 1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1328 --libdir=DIR object code libraries [EPREFIX/lib] 1329 --includedir=DIR C header files [PREFIX/include] 1330 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1333 --infodir=DIR info documentation [DATAROOTDIR/info] 1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1335 --mandir=DIR man documentation [DATAROOTDIR/man] 1336 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] 1337 --htmldir=DIR html documentation [DOCDIR] 1338 --dvidir=DIR dvi documentation [DOCDIR] 1339 --pdfdir=DIR pdf documentation [DOCDIR] 1340 --psdir=DIR ps documentation [DOCDIR] 1286 1341 _ACEOF 1287 1342 … … 1302 1357 1303 1358 Optional Features: 1359 --disable-option-checking ignore unrecognized --enable/--with options 1304 1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1305 1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] … … 1309 1365 --disable-sound Exclude sound (i.e. use null sound) 1310 1366 --disable-oss Disable OSS audio (default: not disabled) 1311 1312 1367 --enable-ext-sound PJMEDIA will not provide any sound device backend 1313 1368 --disable-small-filter Exclude small filter in resampling … … 1323 1378 --enable-libsamplerate Link with libsamplerate when available. Note that 1324 1379 PJMEDIA_RESAMPLE_IMP must also be configured 1380 --disable-sdl Disable SDL (default: not disabled) 1381 --disable-ffmpeg Disable ffmpeg (default: not disabled) 1382 --disable-v4l2 Disable Video4Linux2 (default: not disabled) 1325 1383 --enable-ipp Enable Intel IPP support. Specify the Intel IPP 1326 1384 package and samples location using IPPROOT and … … 1359 1417 nonstandard directory <lib dir> 1360 1418 LIBS libraries to pass to the linker, e.g. -l<library> 1361 CPPFLAGS C/C++/Objective Cpreprocessor flags, e.g. -I<include dir> if1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1362 1420 you have headers in a nonstandard directory <include dir> 1363 1421 CXX C++ compiler command … … 1368 1426 it to find libraries and programs with nonstandard names/locations. 1369 1427 1428 Report bugs to the package provider. 1370 1429 _ACEOF 1371 1430 ac_status=$? … … 1375 1434 # If there are subdirs, report their specific --help. 1376 1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1377 test -d "$ac_dir" || continue 1436 test -d "$ac_dir" || 1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1438 continue 1378 1439 ac_builddir=. 1379 1440 … … 1381 1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1382 1443 *) 1383 ac_dir_suffix=/` echo "$ac_dir" | sed 's,^\.[\\/],,'`1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1384 1445 # A ".." for each directory in $ac_dir_suffix. 1385 ac_top_builddir_sub=` echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1386 1447 case $ac_top_builddir_sub in 1387 1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; … … 1419 1480 $SHELL "$ac_srcdir/configure" --help=recursive 1420 1481 else 1421 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&21482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1422 1483 fi || ac_status=$? 1423 1484 cd "$ac_pwd" || { ac_status=$?; break; } … … 1429 1490 cat <<\_ACEOF 1430 1491 pjproject configure 1.x 1431 generated by GNU Autoconf 2.61 1432 1433 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1434 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1492 generated by GNU Autoconf 2.65 1493 1494 Copyright (C) 2009 Free Software Foundation, Inc. 1435 1495 This configure script is free software; the Free Software Foundation 1436 1496 gives unlimited permission to copy, distribute and modify it. … … 1438 1498 exit 1439 1499 fi 1500 1501 ## ------------------------ ## 1502 ## Autoconf initialization. ## 1503 ## ------------------------ ## 1504 1505 # ac_fn_c_try_compile LINENO 1506 # -------------------------- 1507 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1508 ac_fn_c_try_compile () 1509 { 1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1511 rm -f conftest.$ac_objext 1512 if { { ac_try="$ac_compile" 1513 case "(($ac_try" in 1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1515 *) ac_try_echo=$ac_try;; 1516 esac 1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1518 $as_echo "$ac_try_echo"; } >&5 1519 (eval "$ac_compile") 2>conftest.err 1520 ac_status=$? 1521 if test -s conftest.err; then 1522 grep -v '^ *+' conftest.err >conftest.er1 1523 cat conftest.er1 >&5 1524 mv -f conftest.er1 conftest.err 1525 fi 1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1527 test $ac_status = 0; } && { 1528 test -z "$ac_c_werror_flag" || 1529 test ! -s conftest.err 1530 } && test -s conftest.$ac_objext; then : 1531 ac_retval=0 1532 else 1533 $as_echo "$as_me: failed program was:" >&5 1534 sed 's/^/| /' conftest.$ac_ext >&5 1535 1536 ac_retval=1 1537 fi 1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1539 as_fn_set_status $ac_retval 1540 1541 } # ac_fn_c_try_compile 1542 1543 # ac_fn_cxx_try_compile LINENO 1544 # ---------------------------- 1545 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1546 ac_fn_cxx_try_compile () 1547 { 1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1549 rm -f conftest.$ac_objext 1550 if { { ac_try="$ac_compile" 1551 case "(($ac_try" in 1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1553 *) ac_try_echo=$ac_try;; 1554 esac 1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1556 $as_echo "$ac_try_echo"; } >&5 1557 (eval "$ac_compile") 2>conftest.err 1558 ac_status=$? 1559 if test -s conftest.err; then 1560 grep -v '^ *+' conftest.err >conftest.er1 1561 cat conftest.er1 >&5 1562 mv -f conftest.er1 conftest.err 1563 fi 1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1565 test $ac_status = 0; } && { 1566 test -z "$ac_cxx_werror_flag" || 1567 test ! -s conftest.err 1568 } && test -s conftest.$ac_objext; then : 1569 ac_retval=0 1570 else 1571 $as_echo "$as_me: failed program was:" >&5 1572 sed 's/^/| /' conftest.$ac_ext >&5 1573 1574 ac_retval=1 1575 fi 1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1577 as_fn_set_status $ac_retval 1578 1579 } # ac_fn_cxx_try_compile 1580 1581 # ac_fn_c_try_link LINENO 1582 # ----------------------- 1583 # Try to link conftest.$ac_ext, and return whether this succeeded. 1584 ac_fn_c_try_link () 1585 { 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 rm -f conftest.$ac_objext conftest$ac_exeext 1588 if { { ac_try="$ac_link" 1589 case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592 esac 1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594 $as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_link") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { 1604 test -z "$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 } && test -s conftest$ac_exeext && { 1607 test "$cross_compiling" = yes || 1608 $as_test_x conftest$ac_exeext 1609 }; then : 1610 ac_retval=0 1611 else 1612 $as_echo "$as_me: failed program was:" >&5 1613 sed 's/^/| /' conftest.$ac_ext >&5 1614 1615 ac_retval=1 1616 fi 1617 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1618 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1619 # interfere with the next link command; also delete a directory that is 1620 # left behind by Apple's compiler. We do this before executing the actions. 1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1623 as_fn_set_status $ac_retval 1624 1625 } # ac_fn_c_try_link 1626 1627 # ac_fn_c_try_run LINENO 1628 # ---------------------- 1629 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1630 # that executables *can* be run. 1631 ac_fn_c_try_run () 1632 { 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 if { { ac_try="$ac_link" 1635 case "(($ac_try" in 1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1637 *) ac_try_echo=$ac_try;; 1638 esac 1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1640 $as_echo "$ac_try_echo"; } >&5 1641 (eval "$ac_link") 2>&5 1642 ac_status=$? 1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1645 { { case "(($ac_try" in 1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1647 *) ac_try_echo=$ac_try;; 1648 esac 1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1650 $as_echo "$ac_try_echo"; } >&5 1651 (eval "$ac_try") 2>&5 1652 ac_status=$? 1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; }; }; then : 1655 ac_retval=0 1656 else 1657 $as_echo "$as_me: program exited with status $ac_status" >&5 1658 $as_echo "$as_me: failed program was:" >&5 1659 sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=$ac_status 1662 fi 1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1665 as_fn_set_status $ac_retval 1666 1667 } # ac_fn_c_try_run 1668 1669 # ac_fn_c_try_cpp LINENO 1670 # ---------------------- 1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1672 ac_fn_c_try_cpp () 1673 { 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 if { { ac_try="$ac_cpp conftest.$ac_ext" 1676 case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679 esac 1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681 $as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1683 ac_status=$? 1684 if test -s conftest.err; then 1685 grep -v '^ *+' conftest.err >conftest.er1 1686 cat conftest.er1 >&5 1687 mv -f conftest.er1 conftest.err 1688 fi 1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; } >/dev/null && { 1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1692 test ! -s conftest.err 1693 }; then : 1694 ac_retval=0 1695 else 1696 $as_echo "$as_me: failed program was:" >&5 1697 sed 's/^/| /' conftest.$ac_ext >&5 1698 1699 ac_retval=1 1700 fi 1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1702 as_fn_set_status $ac_retval 1703 1704 } # ac_fn_c_try_cpp 1705 1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1707 # ------------------------------------------------------- 1708 # Tests whether HEADER exists and can be compiled using the include files in 1709 # INCLUDES, setting the cache variable VAR accordingly. 1710 ac_fn_c_check_header_compile () 1711 { 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1714 $as_echo_n "checking for $2... " >&6; } 1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1716 $as_echo_n "(cached) " >&6 1717 else 1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1719 /* end confdefs.h. */ 1720 $4 1721 #include <$2> 1722 _ACEOF 1723 if ac_fn_c_try_compile "$LINENO"; then : 1724 eval "$3=yes" 1725 else 1726 eval "$3=no" 1727 fi 1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1729 fi 1730 eval ac_res=\$$3 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1732 $as_echo "$ac_res" >&6; } 1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1734 1735 } # ac_fn_c_check_header_compile 1736 1737 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1738 # ------------------------------------------------------- 1739 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1740 # the include files in INCLUDES and setting the cache variable VAR 1741 # accordingly. 1742 ac_fn_c_check_header_mongrel () 1743 { 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1747 $as_echo_n "checking for $2... " >&6; } 1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1749 $as_echo_n "(cached) " >&6 1750 fi 1751 eval ac_res=\$$3 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1753 $as_echo "$ac_res" >&6; } 1754 else 1755 # Is the header compilable? 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1757 $as_echo_n "checking $2 usability... " >&6; } 1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759 /* end confdefs.h. */ 1760 $4 1761 #include <$2> 1762 _ACEOF 1763 if ac_fn_c_try_compile "$LINENO"; then : 1764 ac_header_compiler=yes 1765 else 1766 ac_header_compiler=no 1767 fi 1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1770 $as_echo "$ac_header_compiler" >&6; } 1771 1772 # Is the header present? 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1774 $as_echo_n "checking $2 presence... " >&6; } 1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776 /* end confdefs.h. */ 1777 #include <$2> 1778 _ACEOF 1779 if ac_fn_c_try_cpp "$LINENO"; then : 1780 ac_header_preproc=yes 1781 else 1782 ac_header_preproc=no 1783 fi 1784 rm -f conftest.err conftest.$ac_ext 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1786 $as_echo "$ac_header_preproc" >&6; } 1787 1788 # So? What about this header? 1789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1790 yes:no: ) 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1792 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1795 ;; 1796 no:yes:* ) 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1798 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1800 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1802 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1804 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1806 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1807 ;; 1808 esac 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810 $as_echo_n "checking for $2... " >&6; } 1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1812 $as_echo_n "(cached) " >&6 1813 else 1814 eval "$3=\$ac_header_compiler" 1815 fi 1816 eval ac_res=\$$3 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1818 $as_echo "$ac_res" >&6; } 1819 fi 1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1821 1822 } # ac_fn_c_check_header_mongrel 1823 1824 # ac_fn_c_check_func LINENO FUNC VAR 1825 # ---------------------------------- 1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1827 ac_fn_c_check_func () 1828 { 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1831 $as_echo_n "checking for $2... " >&6; } 1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1833 $as_echo_n "(cached) " >&6 1834 else 1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836 /* end confdefs.h. */ 1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1839 #define $2 innocuous_$2 1840 1841 /* System header to define __stub macros and hopefully few prototypes, 1842 which can conflict with char $2 (); below. 1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1844 <limits.h> exists even on freestanding compilers. */ 1845 1846 #ifdef __STDC__ 1847 # include <limits.h> 1848 #else 1849 # include <assert.h> 1850 #endif 1851 1852 #undef $2 1853 1854 /* Override any GCC internal prototype to avoid an error. 1855 Use char because int might match the return type of a GCC 1856 builtin and then its argument prototype would still apply. */ 1857 #ifdef __cplusplus 1858 extern "C" 1859 #endif 1860 char $2 (); 1861 /* The GNU C library defines this for functions which it implements 1862 to always fail with ENOSYS. Some functions are actually named 1863 something starting with __ and the normal name is an alias. */ 1864 #if defined __stub_$2 || defined __stub___$2 1865 choke me 1866 #endif 1867 1868 int 1869 main () 1870 { 1871 return $2 (); 1872 ; 1873 return 0; 1874 } 1875 _ACEOF 1876 if ac_fn_c_try_link "$LINENO"; then : 1877 eval "$3=yes" 1878 else 1879 eval "$3=no" 1880 fi 1881 rm -f core conftest.err conftest.$ac_objext \ 1882 conftest$ac_exeext conftest.$ac_ext 1883 fi 1884 eval ac_res=\$$3 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1886 $as_echo "$ac_res" >&6; } 1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1888 1889 } # ac_fn_c_check_func 1440 1890 cat >config.log <<_ACEOF 1441 1891 This file contains any messages produced by compilers while … … 1443 1893 1444 1894 It was created by pjproject $as_me 1.x, which was 1445 generated by GNU Autoconf 2.6 1. Invocation command line was1895 generated by GNU Autoconf 2.65. Invocation command line was 1446 1896 1447 1897 $ $0 $@ … … 1479 1929 IFS=$as_save_IFS 1480 1930 test -z "$as_dir" && as_dir=. 1481 echo "PATH: $as_dir"1482 done1931 $as_echo "PATH: $as_dir" 1932 done 1483 1933 IFS=$as_save_IFS 1484 1934 … … 1514 1964 continue ;; 1515 1965 *\'*) 1516 ac_arg=` echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;1966 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1517 1967 esac 1518 1968 case $ac_pass in 1519 1) a c_configure_args0="$ac_configure_args0'$ac_arg'" ;;1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1520 1970 2) 1521 a c_configure_args1="$ac_configure_args1'$ac_arg'"1971 as_fn_append ac_configure_args1 " '$ac_arg'" 1522 1972 if test $ac_must_keep_next = true; then 1523 1973 ac_must_keep_next=false # Got value, back to normal. … … 1535 1985 esac 1536 1986 fi 1537 a c_configure_args="$ac_configure_args'$ac_arg'"1987 as_fn_append ac_configure_args " '$ac_arg'" 1538 1988 ;; 1539 1989 esac 1540 1990 done 1541 1991 done 1542 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0;}1543 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1;}1992 { ac_configure_args0=; unset ac_configure_args0;} 1993 { ac_configure_args1=; unset ac_configure_args1;} 1544 1994 1545 1995 # When interrupted or exit'd, cleanup temporary files, and complete … … 1566 2016 *${as_nl}*) 1567 2017 case $ac_var in #( 1568 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&51569 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;2018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1570 2020 esac 1571 2021 case $ac_var in #( 1572 2022 _ | IFS | as_nl) ;; #( 1573 *) $as_unset $ac_var ;; 2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2024 *) { eval $ac_var=; unset $ac_var;} ;; 1574 2025 esac ;; 1575 2026 esac … … 1600 2051 eval ac_val=\$$ac_var 1601 2052 case $ac_val in 1602 *\'\''*) ac_val=` echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1603 2054 esac 1604 echo "$ac_var='\''$ac_val'\''"2055 $as_echo "$ac_var='\''$ac_val'\''" 1605 2056 done | sort 1606 2057 echo … … 1617 2068 eval ac_val=\$$ac_var 1618 2069 case $ac_val in 1619 *\'\''*) ac_val=` echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1620 2071 esac 1621 echo "$ac_var='\''$ac_val'\''"2072 $as_echo "$ac_var='\''$ac_val'\''" 1622 2073 done | sort 1623 2074 echo … … 1635 2086 fi 1636 2087 test "$ac_signal" != 0 && 1637 echo "$as_me: caught signal $ac_signal"1638 echo "$as_me: exit $exit_status"2088 $as_echo "$as_me: caught signal $ac_signal" 2089 $as_echo "$as_me: exit $exit_status" 1639 2090 } >&5 1640 2091 rm -f core *.core core.conftest.* && … … 1643 2094 ' 0 1644 2095 for ac_signal in 1 2 13 15; do 1645 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal2096 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1646 2097 done 1647 2098 ac_signal=0 … … 1650 2101 rm -f -r conftest* confdefs.h 1651 2102 2103 $as_echo "/* confdefs.h */" > confdefs.h 2104 1652 2105 # Predefined preprocessor variables. 1653 2106 … … 1656 2109 _ACEOF 1657 2110 1658 1659 2111 cat >>confdefs.h <<_ACEOF 1660 2112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1661 2113 _ACEOF 1662 2114 1663 1664 2115 cat >>confdefs.h <<_ACEOF 1665 2116 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1666 2117 _ACEOF 1667 2118 1668 1669 2119 cat >>confdefs.h <<_ACEOF 1670 2120 #define PACKAGE_STRING "$PACKAGE_STRING" 1671 2121 _ACEOF 1672 2122 1673 1674 2123 cat >>confdefs.h <<_ACEOF 1675 2124 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1676 2125 _ACEOF 1677 2126 2127 cat >>confdefs.h <<_ACEOF 2128 #define PACKAGE_URL "$PACKAGE_URL" 2129 _ACEOF 2130 1678 2131 1679 2132 # Let the site file select an alternate cache file if it wants to. 1680 # Prefer explicitly selected file to automatically selected ones. 2133 # Prefer an explicitly selected file to automatically selected ones. 2134 ac_site_file1=NONE 2135 ac_site_file2=NONE 1681 2136 if test -n "$CONFIG_SITE"; then 1682 set x "$CONFIG_SITE"2137 ac_site_file1=$CONFIG_SITE 1683 2138 elif test "x$prefix" != xNONE; then 1684 set x "$prefix/share/config.site" "$prefix/etc/config.site"1685 else1686 set x "$ac_default_prefix/share/config.site" \ 1687 "$ac_default_prefix/etc/config.site" 1688 fi 1689 shift 1690 for ac_site_file 2139 ac_site_file1=$prefix/share/config.site 2140 ac_site_file2=$prefix/etc/config.site 2141 else 2142 ac_site_file1=$ac_default_prefix/share/config.site 2143 ac_site_file2=$ac_default_prefix/etc/config.site 2144 fi 2145 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1691 2146 do 1692 if test -r "$ac_site_file"; then 1693 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1694 echo "$as_me: loading site script $ac_site_file" >&6;} 2147 test "x$ac_site_file" = xNONE && continue 2148 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2150 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1695 2151 sed 's/^/| /' "$ac_site_file" >&5 1696 2152 . "$ac_site_file" … … 1699 2155 1700 2156 if test -r "$cache_file"; then 1701 # Some versions of bash will fail to source /dev/null (special 1702 # files actually), so we avoid doing that.1703 if test -f "$cache_file"; then1704 { echo "$as_me:$LINENO: loading cache $cache_file" >&51705 echo "$as_me: loading cache $cache_file" >&6;}2157 # Some versions of bash will fail to source /dev/null (special files 2158 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2159 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2161 $as_echo "$as_me: loading cache $cache_file" >&6;} 1706 2162 case $cache_file in 1707 2163 [\\/]* | ?:[\\/]* ) . "$cache_file";; … … 1710 2166 fi 1711 2167 else 1712 { echo "$as_me:$LINENO: creating cache $cache_file" >&51713 echo "$as_me: creating cache $cache_file" >&6;}2168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2169 $as_echo "$as_me: creating cache $cache_file" >&6;} 1714 2170 >$cache_file 1715 2171 fi … … 1725 2181 case $ac_old_set,$ac_new_set in 1726 2182 set,) 1727 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&51728 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2184 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1729 2185 ac_cache_corrupted=: ;; 1730 2186 ,set) 1731 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&51732 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2188 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1733 2189 ac_cache_corrupted=: ;; 1734 2190 ,);; 1735 2191 *) 1736 2192 if test "x$ac_old_val" != "x$ac_new_val"; then 1737 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1738 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1739 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1740 echo "$as_me: former value: $ac_old_val" >&2;} 1741 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1742 echo "$as_me: current value: $ac_new_val" >&2;} 1743 ac_cache_corrupted=: 2193 # differences in whitespace do not lead to failure. 2194 ac_old_val_w=`echo x $ac_old_val` 2195 ac_new_val_w=`echo x $ac_new_val` 2196 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2198 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2199 ac_cache_corrupted=: 2200 else 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2202 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2203 eval $ac_var=\$ac_old_val 2204 fi 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2206 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2208 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1744 2209 fi;; 1745 2210 esac … … 1747 2212 if test "$ac_new_set" = set; then 1748 2213 case $ac_new_val in 1749 *\'*) ac_arg=$ac_var=` echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;2214 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1750 2215 *) ac_arg=$ac_var=$ac_new_val ;; 1751 2216 esac 1752 2217 case " $ac_configure_args " in 1753 2218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1754 *) a c_configure_args="$ac_configure_args'$ac_arg'" ;;2219 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1755 2220 esac 1756 2221 fi 1757 2222 done 1758 2223 if $ac_cache_corrupted; then 1759 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1760 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1761 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1762 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1763 { (exit 1); exit 1; }; } 1764 fi 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2227 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2228 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2229 fi 2230 ## -------------------- ## 2231 ## Main body of script. ## 2232 ## -------------------- ## 1789 2233 1790 2234 ac_ext=c … … 1800 2244 ac_aux_dir= 1801 2245 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1802 if test -f "$ac_dir/install-sh"; then 1803 ac_aux_dir=$ac_dir 1804 ac_install_sh="$ac_aux_dir/install-sh -c" 1805 break 1806 elif test -f "$ac_dir/install.sh"; then 1807 ac_aux_dir=$ac_dir 1808 ac_install_sh="$ac_aux_dir/install.sh -c" 1809 break 1810 elif test -f "$ac_dir/shtool"; then 1811 ac_aux_dir=$ac_dir 1812 ac_install_sh="$ac_aux_dir/shtool install -c" 1813 break 1814 fi 2246 for ac_t in install-sh install.sh shtool; do 2247 if test -f "$ac_dir/$ac_t"; then 2248 ac_aux_dir=$ac_dir 2249 ac_install_sh="$ac_aux_dir/$ac_t -c" 2250 break 2 2251 fi 2252 done 1815 2253 done 1816 2254 if test -z "$ac_aux_dir"; then 1817 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1818 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1819 { (exit 1); exit 1; }; } 2255 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 1820 2256 fi 1821 2257 … … 1831 2267 # Make sure we can run config.sub. 1832 2268 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1833 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1834 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1835 { (exit 1); exit 1; }; } 1836 1837 { echo "$as_me:$LINENO: checking build system type" >&5 1838 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1839 if test "${ac_cv_build+set}" = set; then 1840 echo $ECHO_N "(cached) $ECHO_C" >&6 2269 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2270 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2272 $as_echo_n "checking build system type... " >&6; } 2273 if test "${ac_cv_build+set}" = set; then : 2274 $as_echo_n "(cached) " >&6 1841 2275 else 1842 2276 ac_build_alias=$build_alias … … 1844 2278 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1845 2279 test "x$ac_build_alias" = x && 1846 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1847 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1848 { (exit 1); exit 1; }; } 2280 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 1849 2281 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1850 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1851 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1852 { (exit 1); exit 1; }; } 1853 1854 fi 1855 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1856 echo "${ECHO_T}$ac_cv_build" >&6; } 2282 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2283 2284 fi 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2286 $as_echo "$ac_cv_build" >&6; } 1857 2287 case $ac_cv_build in 1858 2288 *-*-*) ;; 1859 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1860 echo "$as_me: error: invalid value of canonical build" >&2;} 1861 { (exit 1); exit 1; }; };; 2289 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 1862 2290 esac 1863 2291 build=$ac_cv_build … … 1875 2303 1876 2304 1877 { echo "$as_me:$LINENO: checking host system type" >&51878 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }1879 if test "${ac_cv_host+set}" = set; then 1880 echo $ECHO_N "(cached) $ECHO_C" >&62305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2306 $as_echo_n "checking host system type... " >&6; } 2307 if test "${ac_cv_host+set}" = set; then : 2308 $as_echo_n "(cached) " >&6 1881 2309 else 1882 2310 if test "x$host_alias" = x; then … … 1884 2312 else 1885 2313 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1886 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1887 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1888 { (exit 1); exit 1; }; } 1889 fi 1890 1891 fi 1892 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1893 echo "${ECHO_T}$ac_cv_host" >&6; } 2314 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2315 fi 2316 2317 fi 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2319 $as_echo "$ac_cv_host" >&6; } 1894 2320 case $ac_cv_host in 1895 2321 *-*-*) ;; 1896 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1897 echo "$as_me: error: invalid value of canonical host" >&2;} 1898 { (exit 1); exit 1; }; };; 2322 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 1899 2323 esac 1900 2324 host=$ac_cv_host … … 1912 2336 1913 2337 1914 { echo "$as_me:$LINENO: checking target system type" >&51915 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }1916 if test "${ac_cv_target+set}" = set; then 1917 echo $ECHO_N "(cached) $ECHO_C" >&62338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2339 $as_echo_n "checking target system type... " >&6; } 2340 if test "${ac_cv_target+set}" = set; then : 2341 $as_echo_n "(cached) " >&6 1918 2342 else 1919 2343 if test "x$target_alias" = x; then … … 1921 2345 else 1922 2346 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 1923 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 1924 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 1925 { (exit 1); exit 1; }; } 1926 fi 1927 1928 fi 1929 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1930 echo "${ECHO_T}$ac_cv_target" >&6; } 2347 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2348 fi 2349 2350 fi 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2352 $as_echo "$ac_cv_target" >&6; } 1931 2353 case $ac_cv_target in 1932 2354 *-*-*) ;; 1933 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 1934 echo "$as_me: error: invalid value of canonical target" >&2;} 1935 { (exit 1); exit 1; }; };; 2355 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 1936 2356 esac 1937 2357 target=$ac_cv_target … … 1977 2397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1978 2398 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1979 { echo "$as_me:$LINENO: checking for $ac_word" >&51980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }1981 if test "${ac_cv_prog_CC+set}" = set; then 1982 echo $ECHO_N "(cached) $ECHO_C" >&62399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2400 $as_echo_n "checking for $ac_word... " >&6; } 2401 if test "${ac_cv_prog_CC+set}" = set; then : 2402 $as_echo_n "(cached) " >&6 1983 2403 else 1984 2404 if test -n "$CC"; then … … 1990 2410 IFS=$as_save_IFS 1991 2411 test -z "$as_dir" && as_dir=. 1992 for ac_exec_ext in '' $ac_executable_extensions; do2412 for ac_exec_ext in '' $ac_executable_extensions; do 1993 2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1994 2414 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1996 2416 break 2 1997 2417 fi 1998 2418 done 1999 done2419 done 2000 2420 IFS=$as_save_IFS 2001 2421 … … 2004 2424 CC=$ac_cv_prog_CC 2005 2425 if test -n "$CC"; then 2006 { echo "$as_me:$LINENO: result: $CC" >&52007 echo "${ECHO_T}$CC" >&6; }2008 else 2009 { echo "$as_me:$LINENO: result: no" >&52010 echo "${ECHO_T}no" >&6; }2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2427 $as_echo "$CC" >&6; } 2428 else 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2430 $as_echo "no" >&6; } 2011 2431 fi 2012 2432 … … 2017 2437 # Extract the first word of "gcc", so it can be a program name with args. 2018 2438 set dummy gcc; ac_word=$2 2019 { echo "$as_me:$LINENO: checking for $ac_word" >&52020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2022 echo $ECHO_N "(cached) $ECHO_C" >&62439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2440 $as_echo_n "checking for $ac_word... " >&6; } 2441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2442 $as_echo_n "(cached) " >&6 2023 2443 else 2024 2444 if test -n "$ac_ct_CC"; then … … 2030 2450 IFS=$as_save_IFS 2031 2451 test -z "$as_dir" && as_dir=. 2032 for ac_exec_ext in '' $ac_executable_extensions; do2452 for ac_exec_ext in '' $ac_executable_extensions; do 2033 2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2034 2454 ac_cv_prog_ac_ct_CC="gcc" 2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2036 2456 break 2 2037 2457 fi 2038 2458 done 2039 done2459 done 2040 2460 IFS=$as_save_IFS 2041 2461 … … 2044 2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2045 2465 if test -n "$ac_ct_CC"; then 2046 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&52047 echo "${ECHO_T}$ac_ct_CC" >&6; }2048 else 2049 { echo "$as_me:$LINENO: result: no" >&52050 echo "${ECHO_T}no" >&6; }2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2467 $as_echo "$ac_ct_CC" >&6; } 2468 else 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2470 $as_echo "no" >&6; } 2051 2471 fi 2052 2472 … … 2056 2476 case $cross_compiling:$ac_tool_warned in 2057 2477 yes:) 2058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2059 whose name does not start with the host triplet. If you think this 2060 configuration is useful to you, please write to autoconf@gnu.org." >&5 2061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2062 whose name does not start with the host triplet. If you think this 2063 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2064 2480 ac_tool_warned=yes ;; 2065 2481 esac … … 2074 2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2075 2491 set dummy ${ac_tool_prefix}cc; ac_word=$2 2076 { echo "$as_me:$LINENO: checking for $ac_word" >&52077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }2078 if test "${ac_cv_prog_CC+set}" = set; then 2079 echo $ECHO_N "(cached) $ECHO_C" >&62492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2493 $as_echo_n "checking for $ac_word... " >&6; } 2494 if test "${ac_cv_prog_CC+set}" = set; then : 2495 $as_echo_n "(cached) " >&6 2080 2496 else 2081 2497 if test -n "$CC"; then … … 2087 2503 IFS=$as_save_IFS 2088 2504 test -z "$as_dir" && as_dir=. 2089 for ac_exec_ext in '' $ac_executable_extensions; do2505 for ac_exec_ext in '' $ac_executable_extensions; do 2090 2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2091 2507 ac_cv_prog_CC="${ac_tool_prefix}cc" 2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2093 2509 break 2 2094 2510 fi 2095 2511 done 2096 done2512 done 2097 2513 IFS=$as_save_IFS 2098 2514 … … 2101 2517 CC=$ac_cv_prog_CC 2102 2518 if test -n "$CC"; then 2103 { echo "$as_me:$LINENO: result: $CC" >&52104 echo "${ECHO_T}$CC" >&6; }2105 else 2106 { echo "$as_me:$LINENO: result: no" >&52107 echo "${ECHO_T}no" >&6; }2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2520 $as_echo "$CC" >&6; } 2521 else 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2523 $as_echo "no" >&6; } 2108 2524 fi 2109 2525 … … 2114 2530 # Extract the first word of "cc", so it can be a program name with args. 2115 2531 set dummy cc; ac_word=$2 2116 { echo "$as_me:$LINENO: checking for $ac_word" >&52117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }2118 if test "${ac_cv_prog_CC+set}" = set; then 2119 echo $ECHO_N "(cached) $ECHO_C" >&62532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2533 $as_echo_n "checking for $ac_word... " >&6; } 2534 if test "${ac_cv_prog_CC+set}" = set; then : 2535 $as_echo_n "(cached) " >&6 2120 2536 else 2121 2537 if test -n "$CC"; then … … 2128 2544 IFS=$as_save_IFS 2129 2545 test -z "$as_dir" && as_dir=. 2130 for ac_exec_ext in '' $ac_executable_extensions; do2546 for ac_exec_ext in '' $ac_executable_extensions; do 2131 2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2132 2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then … … 2135 2551 fi 2136 2552 ac_cv_prog_CC="cc" 2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2138 2554 break 2 2139 2555 fi 2140 2556 done 2141 done2557 done 2142 2558 IFS=$as_save_IFS 2143 2559 … … 2158 2574 CC=$ac_cv_prog_CC 2159 2575 if test -n "$CC"; then 2160 { echo "$as_me:$LINENO: result: $CC" >&52161 echo "${ECHO_T}$CC" >&6; }2162 else 2163 { echo "$as_me:$LINENO: result: no" >&52164 echo "${ECHO_T}no" >&6; }2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2577 $as_echo "$CC" >&6; } 2578 else 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2580 $as_echo "no" >&6; } 2165 2581 fi 2166 2582 … … 2173 2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2174 2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2175 { echo "$as_me:$LINENO: checking for $ac_word" >&52176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }2177 if test "${ac_cv_prog_CC+set}" = set; then 2178 echo $ECHO_N "(cached) $ECHO_C" >&62591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2592 $as_echo_n "checking for $ac_word... " >&6; } 2593 if test "${ac_cv_prog_CC+set}" = set; then : 2594 $as_echo_n "(cached) " >&6 2179 2595 else 2180 2596 if test -n "$CC"; then … … 2186 2602 IFS=$as_save_IFS 2187 2603 test -z "$as_dir" && as_dir=. 2188 for ac_exec_ext in '' $ac_executable_extensions; do2604 for ac_exec_ext in '' $ac_executable_extensions; do 2189 2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2190 2606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2192 2608 break 2 2193 2609 fi 2194 2610 done 2195 done2611 done 2196 2612 IFS=$as_save_IFS 2197 2613 … … 2200 2616 CC=$ac_cv_prog_CC 2201 2617 if test -n "$CC"; then 2202 { echo "$as_me:$LINENO: result: $CC" >&52203 echo "${ECHO_T}$CC" >&6; }2204 else 2205 { echo "$as_me:$LINENO: result: no" >&52206 echo "${ECHO_T}no" >&6; }2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2619 $as_echo "$CC" >&6; } 2620 else 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2622 $as_echo "no" >&6; } 2207 2623 fi 2208 2624 … … 2217 2633 # Extract the first word of "$ac_prog", so it can be a program name with args. 2218 2634 set dummy $ac_prog; ac_word=$2 2219 { echo "$as_me:$LINENO: checking for $ac_word" >&52220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }2221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2222 echo $ECHO_N "(cached) $ECHO_C" >&62635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2636 $as_echo_n "checking for $ac_word... " >&6; } 2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2638 $as_echo_n "(cached) " >&6 2223 2639 else 2224 2640 if test -n "$ac_ct_CC"; then … … 2230 2646 IFS=$as_save_IFS 2231 2647 test -z "$as_dir" && as_dir=. 2232 for ac_exec_ext in '' $ac_executable_extensions; do2648 for ac_exec_ext in '' $ac_executable_extensions; do 2233 2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2234 2650 ac_cv_prog_ac_ct_CC="$ac_prog" 2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2236 2652 break 2 2237 2653 fi 2238 2654 done 2239 done2655 done 2240 2656 IFS=$as_save_IFS 2241 2657 … … 2244 2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2245 2661 if test -n "$ac_ct_CC"; then 2246 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&52247 echo "${ECHO_T}$ac_ct_CC" >&6; }2248 else 2249 { echo "$as_me:$LINENO: result: no" >&52250 echo "${ECHO_T}no" >&6; }2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2663 $as_echo "$ac_ct_CC" >&6; } 2664 else 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2666 $as_echo "no" >&6; } 2251 2667 fi 2252 2668 … … 2260 2676 case $cross_compiling:$ac_tool_warned in 2261 2677 yes:) 2262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2263 whose name does not start with the host triplet. If you think this 2264 configuration is useful to you, please write to autoconf@gnu.org." >&5 2265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2266 whose name does not start with the host triplet. If you think this 2267 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2268 2680 ac_tool_warned=yes ;; 2269 2681 esac … … 2275 2687 2276 2688 2277 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2278 See \`config.log' for more details." >&5 2279 echo "$as_me: error: no acceptable C compiler found in \$PATH 2280 See \`config.log' for more details." >&2;} 2281 { (exit 1); exit 1; }; } 2689 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2691 as_fn_error "no acceptable C compiler found in \$PATH 2692 See \`config.log' for more details." "$LINENO" 5; } 2282 2693 2283 2694 # Provide some information about the compiler. 2284 echo "$as_me:$LINENO: checking for C compiler version" >&5 2285 ac_compiler=`set X $ac_compile; echo $2` 2286 { (ac_try="$ac_compiler --version >&5" 2695 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2696 set X $ac_compile 2697 ac_compiler=$2 2698 for ac_option in --version -v -V -qversion; do 2699 { { ac_try="$ac_compiler $ac_option >&5" 2287 2700 case "(($ac_try" in 2288 2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2289 2702 *) ac_try_echo=$ac_try;; 2290 2703 esac 2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2292 (eval "$ac_compiler --version >&5") 2>&5 2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2705 $as_echo "$ac_try_echo"; } >&5 2706 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2293 2707 ac_status=$? 2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2295 (exit $ac_status); } 2296 { (ac_try="$ac_compiler -v >&5" 2708 if test -s conftest.err; then 2709 sed '10a\ 2710 ... rest of stderr output deleted ... 2711 10q' conftest.err >conftest.er1 2712 cat conftest.er1 >&5 2713 fi 2714 rm -f conftest.er1 conftest.err 2715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2716 test $ac_status = 0; } 2717 done 2718 2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2720 /* end confdefs.h. */ 2721 2722 int 2723 main () 2724 { 2725 2726 ; 2727 return 0; 2728 } 2729 _ACEOF 2730 ac_clean_files_save=$ac_clean_files 2731 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2732 # Try to create an executable without -o first, disregard a.out. 2733 # It will help us diagnose broken compilers, and finding out an intuition 2734 # of exeext. 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2736 $as_echo_n "checking whether the C compiler works... " >&6; } 2737 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2738 2739 # The possible output files: 2740 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2741 2742 ac_rmfiles= 2743 for ac_file in $ac_files 2744 do 2745 case $ac_file in 2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2747 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2748 esac 2749 done 2750 rm -f $ac_rmfiles 2751 2752 if { { ac_try="$ac_link_default" 2297 2753 case "(($ac_try" in 2298 2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2299 2755 *) ac_try_echo=$ac_try;; 2300 2756 esac 2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2302 (eval "$ac_compiler -v >&5") 2>&5 2303 ac_status=$? 2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2305 (exit $ac_status); } 2306 { (ac_try="$ac_compiler -V >&5" 2307 case "(($ac_try" in 2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2309 *) ac_try_echo=$ac_try;; 2310 esac 2311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2312 (eval "$ac_compiler -V >&5") 2>&5 2313 ac_status=$? 2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 (exit $ac_status); } 2316 2317 cat >conftest.$ac_ext <<_ACEOF 2318 /* confdefs.h. */ 2319 _ACEOF 2320 cat confdefs.h >>conftest.$ac_ext 2321 cat >>conftest.$ac_ext <<_ACEOF 2322 /* end confdefs.h. */ 2323 2324 int 2325 main () 2326 { 2327 2328 ; 2329 return 0; 2330 } 2331 _ACEOF 2332 ac_clean_files_save=$ac_clean_files 2333 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2334 # Try to create an executable without -o first, disregard a.out. 2335 # It will help us diagnose broken compilers, and finding out an intuition 2336 # of exeext. 2337 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2338 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2339 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2340 # 2341 # List of possible output files, starting from the most likely. 2342 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2343 # only as a last resort. b.out is created by i960 compilers. 2344 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2345 # 2346 # The IRIX 6 linker writes into existing files which may not be 2347 # executable, retaining their permissions. Remove them first so a 2348 # subsequent execution test works. 2349 ac_rmfiles= 2350 for ac_file in $ac_files 2351 do 2352 case $ac_file in 2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2354 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2355 esac 2356 done 2357 rm -f $ac_rmfiles 2358 2359 if { (ac_try="$ac_link_default" 2360 case "(($ac_try" in 2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2362 *) ac_try_echo=$ac_try;; 2363 esac 2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2758 $as_echo "$ac_try_echo"; } >&5 2365 2759 (eval "$ac_link_default") 2>&5 2366 2760 ac_status=$? 2367 echo "$as_me:$LINENO: \$? = $ac_status" >&52368 (exit $ac_status); }; then2761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2762 test $ac_status = 0; }; then : 2369 2763 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2370 2764 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' … … 2376 2770 test -f "$ac_file" || continue 2377 2771 case $ac_file in 2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *. o | *.obj )2772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2379 2773 ;; 2380 2774 [ab].out ) … … 2383 2777 break;; 2384 2778 *.* ) 2385 2779 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2386 2780 then :; else 2387 2781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` … … 2402 2796 ac_file='' 2403 2797 fi 2404 2405 { echo "$as_me:$LINENO: result: $ac_file" >&5 2406 echo "${ECHO_T}$ac_file" >&6; } 2407 if test -z "$ac_file"; then 2408 echo "$as_me: failed program was:" >&5 2798 if test -z "$ac_file"; then : 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800 $as_echo "no" >&6; } 2801 $as_echo "$as_me: failed program was:" >&5 2409 2802 sed 's/^/| /' conftest.$ac_ext >&5 2410 2803 2411 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2412 See \`config.log' for more details." >&5 2413 echo "$as_me: error: C compiler cannot create executables 2414 See \`config.log' for more details." >&2;} 2415 { (exit 77); exit 77; }; } 2416 fi 2417 2804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2806 { as_fn_set_status 77 2807 as_fn_error "C compiler cannot create executables 2808 See \`config.log' for more details." "$LINENO" 5; }; } 2809 else 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2811 $as_echo "yes" >&6; } 2812 fi 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2814 $as_echo_n "checking for C compiler default output file name... " >&6; } 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2816 $as_echo "$ac_file" >&6; } 2418 2817 ac_exeext=$ac_cv_exeext 2419 2818 2420 # Check that the compiler produces executables we can run. If not, either 2421 # the compiler is broken, or we cross compile. 2422 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2423 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2424 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2425 # If not cross compiling, check that we can run a simple program. 2426 if test "$cross_compiling" != yes; then 2427 if { ac_try='./$ac_file' 2428 { (case "(($ac_try" in 2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2430 *) ac_try_echo=$ac_try;; 2431 esac 2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2433 (eval "$ac_try") 2>&5 2434 ac_status=$? 2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2436 (exit $ac_status); }; }; then 2437 cross_compiling=no 2438 else 2439 if test "$cross_compiling" = maybe; then 2440 cross_compiling=yes 2441 else 2442 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2443 If you meant to cross compile, use \`--host'. 2444 See \`config.log' for more details." >&5 2445 echo "$as_me: error: cannot run C compiled programs. 2446 If you meant to cross compile, use \`--host'. 2447 See \`config.log' for more details." >&2;} 2448 { (exit 1); exit 1; }; } 2449 fi 2450 fi 2451 fi 2452 { echo "$as_me:$LINENO: result: yes" >&5 2453 echo "${ECHO_T}yes" >&6; } 2454 2455 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2819 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2456 2820 ac_clean_files=$ac_clean_files_save 2457 # Check that the compiler produces executables we can run. If not, either 2458 # the compiler is broken, or we cross compile. 2459 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2460 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2461 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2462 echo "${ECHO_T}$cross_compiling" >&6; } 2463 2464 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2465 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2466 if { (ac_try="$ac_link" 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2822 $as_echo_n "checking for suffix of executables... " >&6; } 2823 if { { ac_try="$ac_link" 2467 2824 case "(($ac_try" in 2468 2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2469 2826 *) ac_try_echo=$ac_try;; 2470 2827 esac 2471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2829 $as_echo "$ac_try_echo"; } >&5 2472 2830 (eval "$ac_link") 2>&5 2473 2831 ac_status=$? 2474 echo "$as_me:$LINENO: \$? = $ac_status" >&52475 (exit $ac_status); }; then2832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2833 test $ac_status = 0; }; then : 2476 2834 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2477 2835 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will … … 2481 2839 test -f "$ac_file" || continue 2482 2840 case $ac_file in 2483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *. o | *.obj ) ;;2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2484 2842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2485 2843 break;; … … 2488 2846 done 2489 2847 else 2490 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2491 See \`config.log' for more details." >&5 2492 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2493 See \`config.log' for more details." >&2;} 2494 { (exit 1); exit 1; }; } 2495 fi 2496 2497 rm -f conftest$ac_cv_exeext 2498 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2499 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2850 as_fn_error "cannot compute suffix of executables: cannot compile and link 2851 See \`config.log' for more details." "$LINENO" 5; } 2852 fi 2853 rm -f conftest conftest$ac_cv_exeext 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2855 $as_echo "$ac_cv_exeext" >&6; } 2500 2856 2501 2857 rm -f conftest.$ac_ext 2502 2858 EXEEXT=$ac_cv_exeext 2503 2859 ac_exeext=$EXEEXT 2504 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2505 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2506 if test "${ac_cv_objext+set}" = set; then 2507 echo $ECHO_N "(cached) $ECHO_C" >&6 2508 else 2509 cat >conftest.$ac_ext <<_ACEOF 2510 /* confdefs.h. */ 2511 _ACEOF 2512 cat confdefs.h >>conftest.$ac_ext 2513 cat >>conftest.$ac_ext <<_ACEOF 2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2514 2861 /* end confdefs.h. */ 2515 2862 #include <stdio.h> 2516 2863 int 2517 2864 main () 2518 2865 { 2866 FILE *f = fopen ("conftest.out", "w"); 2867 return ferror (f) || fclose (f) != 0; 2519 2868 2520 2869 ; … … 2522 2871 } 2523 2872 _ACEOF 2524 rm -f conftest.o conftest.obj 2525 if { (ac_try="$ac_compile" 2873 ac_clean_files="$ac_clean_files conftest.out" 2874 # Check that the compiler produces executables we can run. If not, either 2875 # the compiler is broken, or we cross compile. 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2877 $as_echo_n "checking whether we are cross compiling... " >&6; } 2878 if test "$cross_compiling" != yes; then 2879 { { ac_try="$ac_link" 2526 2880 case "(($ac_try" in 2527 2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2528 2882 *) ac_try_echo=$ac_try;; 2529 2883 esac 2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2885 $as_echo "$ac_try_echo"; } >&5 2886 (eval "$ac_link") 2>&5 2887 ac_status=$? 2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2889 test $ac_status = 0; } 2890 if { ac_try='./conftest$ac_cv_exeext' 2891 { { case "(($ac_try" in 2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2893 *) ac_try_echo=$ac_try;; 2894 esac 2895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2896 $as_echo "$ac_try_echo"; } >&5 2897 (eval "$ac_try") 2>&5 2898 ac_status=$? 2899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2900 test $ac_status = 0; }; }; then 2901 cross_compiling=no 2902 else 2903 if test "$cross_compiling" = maybe; then 2904 cross_compiling=yes 2905 else 2906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2908 as_fn_error "cannot run C compiled programs. 2909 If you meant to cross compile, use \`--host'. 2910 See \`config.log' for more details." "$LINENO" 5; } 2911 fi 2912 fi 2913 fi 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2915 $as_echo "$cross_compiling" >&6; } 2916 2917 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2918 ac_clean_files=$ac_clean_files_save 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2920 $as_echo_n "checking for suffix of object files... " >&6; } 2921 if test "${ac_cv_objext+set}" = set; then : 2922 $as_echo_n "(cached) " >&6 2923 else 2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2925 /* end confdefs.h. */ 2926 2927 int 2928 main () 2929 { 2930 2931 ; 2932 return 0; 2933 } 2934 _ACEOF 2935 rm -f conftest.o conftest.obj 2936 if { { ac_try="$ac_compile" 2937 case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940 esac 2941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2942 $as_echo "$ac_try_echo"; } >&5 2531 2943 (eval "$ac_compile") 2>&5 2532 2944 ac_status=$? 2533 echo "$as_me:$LINENO: \$? = $ac_status" >&52534 (exit $ac_status); }; then2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2946 test $ac_status = 0; }; then : 2535 2947 for ac_file in conftest.o conftest.obj conftest.*; do 2536 2948 test -f "$ac_file" || continue; 2537 2949 case $ac_file in 2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2539 2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2540 2952 break;; … … 2542 2954 done 2543 2955 else 2544 echo "$as_me: failed program was:" >&52956 $as_echo "$as_me: failed program was:" >&5 2545 2957 sed 's/^/| /' conftest.$ac_ext >&5 2546 2958 2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2548 See \`config.log' for more details." >&5 2549 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2550 See \`config.log' for more details." >&2;} 2551 { (exit 1); exit 1; }; } 2552 fi 2553 2959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2961 as_fn_error "cannot compute suffix of object files: cannot compile 2962 See \`config.log' for more details." "$LINENO" 5; } 2963 fi 2554 2964 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2555 2965 fi 2556 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&52557 echo "${ECHO_T}$ac_cv_objext" >&6; }2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2967 $as_echo "$ac_cv_objext" >&6; } 2558 2968 OBJEXT=$ac_cv_objext 2559 2969 ac_objext=$OBJEXT 2560 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2561 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2562 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2563 echo $ECHO_N "(cached) $ECHO_C" >&6 2564 else 2565 cat >conftest.$ac_ext <<_ACEOF 2566 /* confdefs.h. */ 2567 _ACEOF 2568 cat confdefs.h >>conftest.$ac_ext 2569 cat >>conftest.$ac_ext <<_ACEOF 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2971 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2972 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2973 $as_echo_n "(cached) " >&6 2974 else 2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2570 2976 /* end confdefs.h. */ 2571 2977 … … 2581 2987 } 2582 2988 _ACEOF 2583 rm -f conftest.$ac_objext 2584 if { (ac_try="$ac_compile" 2585 case "(($ac_try" in 2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2587 *) ac_try_echo=$ac_try;; 2588 esac 2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2590 (eval "$ac_compile") 2>conftest.er1 2591 ac_status=$? 2592 grep -v '^ *+' conftest.er1 >conftest.err 2593 rm -f conftest.er1 2594 cat conftest.err >&5 2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2596 (exit $ac_status); } && { 2597 test -z "$ac_c_werror_flag" || 2598 test ! -s conftest.err 2599 } && test -s conftest.$ac_objext; then 2989 if ac_fn_c_try_compile "$LINENO"; then : 2600 2990 ac_compiler_gnu=yes 2601 2991 else 2602 echo "$as_me: failed program was:" >&5 2603 sed 's/^/| /' conftest.$ac_ext >&5 2604 2605 ac_compiler_gnu=no 2606 fi 2607 2992 ac_compiler_gnu=no 2993 fi 2608 2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2609 2995 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2610 2996 2611 2997 fi 2612 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2613 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2614 GCC=`test $ac_compiler_gnu = yes && echo yes` 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2999 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3000 if test $ac_compiler_gnu = yes; then 3001 GCC=yes 3002 else 3003 GCC= 3004 fi 2615 3005 ac_test_CFLAGS=${CFLAGS+set} 2616 3006 ac_save_CFLAGS=$CFLAGS 2617 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&52618 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }2619 if test "${ac_cv_prog_cc_g+set}" = set; then 2620 echo $ECHO_N "(cached) $ECHO_C" >&63007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3008 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3009 if test "${ac_cv_prog_cc_g+set}" = set; then : 3010 $as_echo_n "(cached) " >&6 2621 3011 else 2622 3012 ac_save_c_werror_flag=$ac_c_werror_flag … … 2624 3014 ac_cv_prog_cc_g=no 2625 3015 CFLAGS="-g" 2626 cat >conftest.$ac_ext <<_ACEOF 2627 /* confdefs.h. */ 2628 _ACEOF 2629 cat confdefs.h >>conftest.$ac_ext 2630 cat >>conftest.$ac_ext <<_ACEOF 3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2631 3017 /* end confdefs.h. */ 2632 3018 … … 2639 3025 } 2640 3026 _ACEOF 2641 rm -f conftest.$ac_objext 2642 if { (ac_try="$ac_compile" 2643 case "(($ac_try" in 2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2645 *) ac_try_echo=$ac_try;; 2646 esac 2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2648 (eval "$ac_compile") 2>conftest.er1 2649 ac_status=$? 2650 grep -v '^ *+' conftest.er1 >conftest.err 2651 rm -f conftest.er1 2652 cat conftest.err >&5 2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2654 (exit $ac_status); } && { 2655 test -z "$ac_c_werror_flag" || 2656 test ! -s conftest.err 2657 } && test -s conftest.$ac_objext; then 3027 if ac_fn_c_try_compile "$LINENO"; then : 2658 3028 ac_cv_prog_cc_g=yes 2659 3029 else 2660 echo "$as_me: failed program was:" >&5 2661 sed 's/^/| /' conftest.$ac_ext >&5 2662 2663 CFLAGS="" 2664 cat >conftest.$ac_ext <<_ACEOF 2665 /* confdefs.h. */ 2666 _ACEOF 2667 cat confdefs.h >>conftest.$ac_ext 2668 cat >>conftest.$ac_ext <<_ACEOF 3030 CFLAGS="" 3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2669 3032 /* end confdefs.h. */ 2670 3033 … … 2677 3040 } 2678 3041 _ACEOF 2679 rm -f conftest.$ac_objext 2680 if { (ac_try="$ac_compile" 2681 case "(($ac_try" in 2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2683 *) ac_try_echo=$ac_try;; 2684 esac 2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2686 (eval "$ac_compile") 2>conftest.er1 2687 ac_status=$? 2688 grep -v '^ *+' conftest.er1 >conftest.err 2689 rm -f conftest.er1 2690 cat conftest.err >&5 2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2692 (exit $ac_status); } && { 2693 test -z "$ac_c_werror_flag" || 2694 test ! -s conftest.err 2695 } && test -s conftest.$ac_objext; then 2696 : 2697 else 2698 echo "$as_me: failed program was:" >&5 2699 sed 's/^/| /' conftest.$ac_ext >&5 2700 2701 ac_c_werror_flag=$ac_save_c_werror_flag 3042 if ac_fn_c_try_compile "$LINENO"; then : 3043 3044 else 3045 ac_c_werror_flag=$ac_save_c_werror_flag 2702 3046 CFLAGS="-g" 2703 cat >conftest.$ac_ext <<_ACEOF 2704 /* confdefs.h. */ 2705 _ACEOF 2706 cat confdefs.h >>conftest.$ac_ext 2707 cat >>conftest.$ac_ext <<_ACEOF 3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2708 3048 /* end confdefs.h. */ 2709 3049 … … 2716 3056 } 2717 3057 _ACEOF 2718 rm -f conftest.$ac_objext 2719 if { (ac_try="$ac_compile" 2720 case "(($ac_try" in 2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2722 *) ac_try_echo=$ac_try;; 2723 esac 2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2725 (eval "$ac_compile") 2>conftest.er1 2726 ac_status=$? 2727 grep -v '^ *+' conftest.er1 >conftest.err 2728 rm -f conftest.er1 2729 cat conftest.err >&5 2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2731 (exit $ac_status); } && { 2732 test -z "$ac_c_werror_flag" || 2733 test ! -s conftest.err 2734 } && test -s conftest.$ac_objext; then 3058 if ac_fn_c_try_compile "$LINENO"; then : 2735 3059 ac_cv_prog_cc_g=yes 2736 else 2737 echo "$as_me: failed program was:" >&5 2738 sed 's/^/| /' conftest.$ac_ext >&5 2739 2740 2741 fi 2742 3060 fi 2743 3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2744 3062 fi 2745 2746 3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2747 3064 fi 2748 2749 3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2750 3066 ac_c_werror_flag=$ac_save_c_werror_flag 2751 3067 fi 2752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&52753 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3069 $as_echo "$ac_cv_prog_cc_g" >&6; } 2754 3070 if test "$ac_test_CFLAGS" = set; then 2755 3071 CFLAGS=$ac_save_CFLAGS … … 2767 3083 fi 2768 3084 fi 2769 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&52770 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }2771 if test "${ac_cv_prog_cc_c89+set}" = set; then 2772 echo $ECHO_N "(cached) $ECHO_C" >&63085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3086 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3087 if test "${ac_cv_prog_cc_c89+set}" = set; then : 3088 $as_echo_n "(cached) " >&6 2773 3089 else 2774 3090 ac_cv_prog_cc_c89=no 2775 3091 ac_save_CC=$CC 2776 cat >conftest.$ac_ext <<_ACEOF 2777 /* confdefs.h. */ 2778 _ACEOF 2779 cat confdefs.h >>conftest.$ac_ext 2780 cat >>conftest.$ac_ext <<_ACEOF 3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2781 3093 /* end confdefs.h. */ 2782 3094 #include <stdarg.h> … … 2835 3147 do 2836 3148 CC="$ac_save_CC $ac_arg" 2837 rm -f conftest.$ac_objext 2838 if { (ac_try="$ac_compile" 2839 case "(($ac_try" in 2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2841 *) ac_try_echo=$ac_try;; 2842 esac 2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2844 (eval "$ac_compile") 2>conftest.er1 2845 ac_status=$? 2846 grep -v '^ *+' conftest.er1 >conftest.err 2847 rm -f conftest.er1 2848 cat conftest.err >&5 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); } && { 2851 test -z "$ac_c_werror_flag" || 2852 test ! -s conftest.err 2853 } && test -s conftest.$ac_objext; then 3149 if ac_fn_c_try_compile "$LINENO"; then : 2854 3150 ac_cv_prog_cc_c89=$ac_arg 2855 else 2856 echo "$as_me: failed program was:" >&5 2857 sed 's/^/| /' conftest.$ac_ext >&5 2858 2859 2860 fi 2861 3151 fi 2862 3152 rm -f core conftest.err conftest.$ac_objext 2863 3153 test "x$ac_cv_prog_cc_c89" != "xno" && break … … 2870 3160 case "x$ac_cv_prog_cc_c89" in 2871 3161 x) 2872 { echo "$as_me:$LINENO: result: none needed" >&52873 echo "${ECHO_T}none needed" >&6; } ;;3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3163 $as_echo "none needed" >&6; } ;; 2874 3164 xno) 2875 { echo "$as_me:$LINENO: result: unsupported" >&52876 echo "${ECHO_T}unsupported" >&6; } ;;3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3166 $as_echo "unsupported" >&6; } ;; 2877 3167 *) 2878 3168 CC="$CC $ac_cv_prog_cc_c89" 2879 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&52880 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3170 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2881 3171 esac 2882 3172 if test "x$ac_cv_prog_cc_c89" != xno; then : 3173 3174 fi 2883 3175 2884 3176 ac_ext=c … … 2902 3194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2903 3195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2904 { echo "$as_me:$LINENO: checking for $ac_word" >&52905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }2906 if test "${ac_cv_prog_CXX+set}" = set; then 2907 echo $ECHO_N "(cached) $ECHO_C" >&63196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197 $as_echo_n "checking for $ac_word... " >&6; } 3198 if test "${ac_cv_prog_CXX+set}" = set; then : 3199 $as_echo_n "(cached) " >&6 2908 3200 else 2909 3201 if test -n "$CXX"; then … … 2915 3207 IFS=$as_save_IFS 2916 3208 test -z "$as_dir" && as_dir=. 2917 for ac_exec_ext in '' $ac_executable_extensions; do3209 for ac_exec_ext in '' $ac_executable_extensions; do 2918 3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2919 3211 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2921 3213 break 2 2922 3214 fi 2923 3215 done 2924 done3216 done 2925 3217 IFS=$as_save_IFS 2926 3218 … … 2929 3221 CXX=$ac_cv_prog_CXX 2930 3222 if test -n "$CXX"; then 2931 { echo "$as_me:$LINENO: result: $CXX" >&52932 echo "${ECHO_T}$CXX" >&6; }2933 else 2934 { echo "$as_me:$LINENO: result: no" >&52935 echo "${ECHO_T}no" >&6; }3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3224 $as_echo "$CXX" >&6; } 3225 else 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3227 $as_echo "no" >&6; } 2936 3228 fi 2937 3229 … … 2946 3238 # Extract the first word of "$ac_prog", so it can be a program name with args. 2947 3239 set dummy $ac_prog; ac_word=$2 2948 { echo "$as_me:$LINENO: checking for $ac_word" >&52949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }2950 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2951 echo $ECHO_N "(cached) $ECHO_C" >&63240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3241 $as_echo_n "checking for $ac_word... " >&6; } 3242 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 3243 $as_echo_n "(cached) " >&6 2952 3244 else 2953 3245 if test -n "$ac_ct_CXX"; then … … 2959 3251 IFS=$as_save_IFS 2960 3252 test -z "$as_dir" && as_dir=. 2961 for ac_exec_ext in '' $ac_executable_extensions; do3253 for ac_exec_ext in '' $ac_executable_extensions; do 2962 3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2963 3255 ac_cv_prog_ac_ct_CXX="$ac_prog" 2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2965 3257 break 2 2966 3258 fi 2967 3259 done 2968 done3260 done 2969 3261 IFS=$as_save_IFS 2970 3262 … … 2973 3265 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2974 3266 if test -n "$ac_ct_CXX"; then 2975 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&52976 echo "${ECHO_T}$ac_ct_CXX" >&6; }2977 else 2978 { echo "$as_me:$LINENO: result: no" >&52979 echo "${ECHO_T}no" >&6; }3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3268 $as_echo "$ac_ct_CXX" >&6; } 3269 else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271 $as_echo "no" >&6; } 2980 3272 fi 2981 3273 … … 2989 3281 case $cross_compiling:$ac_tool_warned in 2990 3282 yes:) 2991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2992 whose name does not start with the host triplet. If you think this 2993 configuration is useful to you, please write to autoconf@gnu.org." >&5 2994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2995 whose name does not start with the host triplet. If you think this 2996 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2997 3285 ac_tool_warned=yes ;; 2998 3286 esac … … 3004 3292 fi 3005 3293 # Provide some information about the compiler. 3006 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3007 ac_compiler=`set X $ac_compile; echo $2` 3008 { (ac_try="$ac_compiler --version >&5" 3294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3295 set X $ac_compile 3296 ac_compiler=$2 3297 for ac_option in --version -v -V -qversion; do 3298 { { ac_try="$ac_compiler $ac_option >&5" 3009 3299 case "(($ac_try" in 3010 3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3011 3301 *) ac_try_echo=$ac_try;; 3012 3302 esac 3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3014 (eval "$ac_compiler --version >&5") 2>&5 3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3304 $as_echo "$ac_try_echo"; } >&5 3305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3015 3306 ac_status=$? 3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3017 (exit $ac_status); } 3018 { (ac_try="$ac_compiler -v >&5" 3019 case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022 esac 3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3024 (eval "$ac_compiler -v >&5") 2>&5 3025 ac_status=$? 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); } 3028 { (ac_try="$ac_compiler -V >&5" 3029 case "(($ac_try" in 3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3031 *) ac_try_echo=$ac_try;; 3032 esac 3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3034 (eval "$ac_compiler -V >&5") 2>&5 3035 ac_status=$? 3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3037 (exit $ac_status); } 3038 3039 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3040 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3041 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3042 echo $ECHO_N "(cached) $ECHO_C" >&6 3043 else 3044 cat >conftest.$ac_ext <<_ACEOF 3045 /* confdefs.h. */ 3046 _ACEOF 3047 cat confdefs.h >>conftest.$ac_ext 3048 cat >>conftest.$ac_ext <<_ACEOF 3307 if test -s conftest.err; then 3308 sed '10a\ 3309 ... rest of stderr output deleted ... 3310 10q' conftest.err >conftest.er1 3311 cat conftest.er1 >&5 3312 fi 3313 rm -f conftest.er1 conftest.err 3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3315 test $ac_status = 0; } 3316 done 3317 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3319 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3320 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 3321 $as_echo_n "(cached) " >&6 3322 else 3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3049 3324 /* end confdefs.h. */ 3050 3325 … … 3060 3335 } 3061 3336 _ACEOF 3062 rm -f conftest.$ac_objext 3063 if { (ac_try="$ac_compile" 3064 case "(($ac_try" in 3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3066 *) ac_try_echo=$ac_try;; 3067 esac 3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3069 (eval "$ac_compile") 2>conftest.er1 3070 ac_status=$? 3071 grep -v '^ *+' conftest.er1 >conftest.err 3072 rm -f conftest.er1 3073 cat conftest.err >&5 3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3075 (exit $ac_status); } && { 3076 test -z "$ac_cxx_werror_flag" || 3077 test ! -s conftest.err 3078 } && test -s conftest.$ac_objext; then 3337 if ac_fn_cxx_try_compile "$LINENO"; then : 3079 3338 ac_compiler_gnu=yes 3080 3339 else 3081 echo "$as_me: failed program was:" >&5 3082 sed 's/^/| /' conftest.$ac_ext >&5 3083 3084 ac_compiler_gnu=no 3085 fi 3086 3340 ac_compiler_gnu=no 3341 fi 3087 3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3088 3343 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3089 3344 3090 3345 fi 3091 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3092 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3093 GXX=`test $ac_compiler_gnu = yes && echo yes` 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3347 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3348 if test $ac_compiler_gnu = yes; then 3349 GXX=yes 3350 else 3351 GXX= 3352 fi 3094 3353 ac_test_CXXFLAGS=${CXXFLAGS+set} 3095 3354 ac_save_CXXFLAGS=$CXXFLAGS 3096 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&53097 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }3098 if test "${ac_cv_prog_cxx_g+set}" = set; then 3099 echo $ECHO_N "(cached) $ECHO_C" >&63355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3356 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 3357 if test "${ac_cv_prog_cxx_g+set}" = set; then : 3358 $as_echo_n "(cached) " >&6 3100 3359 else 3101 3360 ac_save_cxx_werror_flag=$ac_cxx_werror_flag … … 3103 3362 ac_cv_prog_cxx_g=no 3104 3363 CXXFLAGS="-g" 3105 cat >conftest.$ac_ext <<_ACEOF 3106 /* confdefs.h. */ 3107 _ACEOF 3108 cat confdefs.h >>conftest.$ac_ext 3109 cat >>conftest.$ac_ext <<_ACEOF 3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3110 3365 /* end confdefs.h. */ 3111 3366 … … 3118 3373 } 3119 3374 _ACEOF 3120 rm -f conftest.$ac_objext 3121 if { (ac_try="$ac_compile" 3122 case "(($ac_try" in 3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3124 *) ac_try_echo=$ac_try;; 3125 esac 3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3127 (eval "$ac_compile") 2>conftest.er1 3128 ac_status=$? 3129 grep -v '^ *+' conftest.er1 >conftest.err 3130 rm -f conftest.er1 3131 cat conftest.err >&5 3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 (exit $ac_status); } && { 3134 test -z "$ac_cxx_werror_flag" || 3135 test ! -s conftest.err 3136 } && test -s conftest.$ac_objext; then 3375 if ac_fn_cxx_try_compile "$LINENO"; then : 3137 3376 ac_cv_prog_cxx_g=yes 3138 3377 else 3139 echo "$as_me: failed program was:" >&5 3140 sed 's/^/| /' conftest.$ac_ext >&5 3141 3142 CXXFLAGS="" 3143 cat >conftest.$ac_ext <<_ACEOF 3144 /* confdefs.h. */ 3145 _ACEOF 3146 cat confdefs.h >>conftest.$ac_ext 3147 cat >>conftest.$ac_ext <<_ACEOF 3378 CXXFLAGS="" 3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3148 3380 /* end confdefs.h. */ 3149 3381 … … 3156 3388 } 3157 3389 _ACEOF 3158 rm -f conftest.$ac_objext 3159 if { (ac_try="$ac_compile" 3160 case "(($ac_try" in 3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3162 *) ac_try_echo=$ac_try;; 3163 esac 3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3165 (eval "$ac_compile") 2>conftest.er1 3166 ac_status=$? 3167 grep -v '^ *+' conftest.er1 >conftest.err 3168 rm -f conftest.er1 3169 cat conftest.err >&5 3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3171 (exit $ac_status); } && { 3172 test -z "$ac_cxx_werror_flag" || 3173 test ! -s conftest.err 3174 } && test -s conftest.$ac_objext; then 3175 : 3176 else 3177 echo "$as_me: failed program was:" >&5 3178 sed 's/^/| /' conftest.$ac_ext >&5 3179 3180 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3390 if ac_fn_cxx_try_compile "$LINENO"; then : 3391 3392 else 3393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3181 3394 CXXFLAGS="-g" 3182 cat >conftest.$ac_ext <<_ACEOF 3183 /* confdefs.h. */ 3184 _ACEOF 3185 cat confdefs.h >>conftest.$ac_ext 3186 cat >>conftest.$ac_ext <<_ACEOF 3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3187 3396 /* end confdefs.h. */ 3188 3397 … … 3195 3404 } 3196 3405 _ACEOF 3197 rm -f conftest.$ac_objext 3198 if { (ac_try="$ac_compile" 3199 case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202 esac 3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3204 (eval "$ac_compile") 2>conftest.er1 3205 ac_status=$? 3206 grep -v '^ *+' conftest.er1 >conftest.err 3207 rm -f conftest.er1 3208 cat conftest.err >&5 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3210 (exit $ac_status); } && { 3211 test -z "$ac_cxx_werror_flag" || 3212 test ! -s conftest.err 3213 } && test -s conftest.$ac_objext; then 3406 if ac_fn_cxx_try_compile "$LINENO"; then : 3214 3407 ac_cv_prog_cxx_g=yes 3215 else 3216 echo "$as_me: failed program was:" >&5 3217 sed 's/^/| /' conftest.$ac_ext >&5 3218 3219 3220 fi 3221 3408 fi 3222 3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3223 3410 fi 3224 3225 3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3226 3412 fi 3227 3228 3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3229 3414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3230 3415 fi 3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&53232 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3417 $as_echo "$ac_cv_prog_cxx_g" >&6; } 3233 3418 if test "$ac_test_CXXFLAGS" = set; then 3234 3419 CXXFLAGS=$ac_save_CXXFLAGS … … 3308 3493 3309 3494 3310 3311 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 3312 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 3313 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 3314 echo $ECHO_N "(cached) $ECHO_C" >&6 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 3496 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } 3497 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 3498 $as_echo_n "(cached) " >&6 3315 3499 else 3316 3500 ac_check_lib_save_LIBS=$LIBS 3317 3501 LIBS="-lpthread $LIBS" 3318 cat >conftest.$ac_ext <<_ACEOF 3319 /* confdefs.h. */ 3320 _ACEOF 3321 cat confdefs.h >>conftest.$ac_ext 3322 cat >>conftest.$ac_ext <<_ACEOF 3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3323 3503 /* end confdefs.h. */ 3324 3504 … … 3338 3518 } 3339 3519 _ACEOF 3340 rm -f conftest.$ac_objext conftest$ac_exeext 3341 if { (ac_try="$ac_link" 3342 case "(($ac_try" in 3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3344 *) ac_try_echo=$ac_try;; 3345 esac 3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3347 (eval "$ac_link") 2>conftest.er1 3348 ac_status=$? 3349 grep -v '^ *+' conftest.er1 >conftest.err 3350 rm -f conftest.er1 3351 cat conftest.err >&5 3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3353 (exit $ac_status); } && { 3354 test -z "$ac_c_werror_flag" || 3355 test ! -s conftest.err 3356 } && test -s conftest$ac_exeext && 3357 $as_test_x conftest$ac_exeext; then 3520 if ac_fn_c_try_link "$LINENO"; then : 3358 3521 ac_cv_lib_pthread_pthread_create=yes 3359 3522 else 3360 echo "$as_me: failed program was:" >&5 3361 sed 's/^/| /' conftest.$ac_ext >&5 3362 3363 ac_cv_lib_pthread_pthread_create=no 3364 fi 3365 3366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3367 conftest$ac_exeext conftest.$ac_ext 3523 ac_cv_lib_pthread_pthread_create=no 3524 fi 3525 rm -f core conftest.err conftest.$ac_objext \ 3526 conftest$ac_exeext conftest.$ac_ext 3368 3527 LIBS=$ac_check_lib_save_LIBS 3369 3528 fi 3370 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&53371 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }3372 if test $ac_cv_lib_pthread_pthread_create = yes; then3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 3530 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 3531 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : 3373 3532 cat >>confdefs.h <<_ACEOF 3374 3533 #define HAVE_LIBPTHREAD 1 … … 3379 3538 fi 3380 3539 3381 3382 { echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 3383 echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; } 3384 if test "${ac_cv_lib_wsock32_puts+set}" = set; then 3385 echo $ECHO_N "(cached) $ECHO_C" >&6 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5 3541 $as_echo_n "checking for puts in -lwsock32... " >&6; } 3542 if test "${ac_cv_lib_wsock32_puts+set}" = set; then : 3543 $as_echo_n "(cached) " >&6 3386 3544 else 3387 3545 ac_check_lib_save_LIBS=$LIBS 3388 3546 LIBS="-lwsock32 $LIBS" 3389 cat >conftest.$ac_ext <<_ACEOF 3390 /* confdefs.h. */ 3391 _ACEOF 3392 cat confdefs.h >>conftest.$ac_ext 3393 cat >>conftest.$ac_ext <<_ACEOF 3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3394 3548 /* end confdefs.h. */ 3395 3549 … … 3409 3563 } 3410 3564 _ACEOF 3411 rm -f conftest.$ac_objext conftest$ac_exeext 3412 if { (ac_try="$ac_link" 3413 case "(($ac_try" in 3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3415 *) ac_try_echo=$ac_try;; 3416 esac 3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3418 (eval "$ac_link") 2>conftest.er1 3419 ac_status=$? 3420 grep -v '^ *+' conftest.er1 >conftest.err 3421 rm -f conftest.er1 3422 cat conftest.err >&5 3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3424 (exit $ac_status); } && { 3425 test -z "$ac_c_werror_flag" || 3426 test ! -s conftest.err 3427 } && test -s conftest$ac_exeext && 3428 $as_test_x conftest$ac_exeext; then 3565 if ac_fn_c_try_link "$LINENO"; then : 3429 3566 ac_cv_lib_wsock32_puts=yes 3430 3567 else 3431 echo "$as_me: failed program was:" >&5 3432 sed 's/^/| /' conftest.$ac_ext >&5 3433 3434 ac_cv_lib_wsock32_puts=no 3435 fi 3436 3437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3438 conftest$ac_exeext conftest.$ac_ext 3568 ac_cv_lib_wsock32_puts=no 3569 fi 3570 rm -f core conftest.err conftest.$ac_objext \ 3571 conftest$ac_exeext conftest.$ac_ext 3439 3572 LIBS=$ac_check_lib_save_LIBS 3440 3573 fi 3441 { echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&53442 echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; }3443 if test $ac_cv_lib_wsock32_puts = yes; then3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5 3575 $as_echo "$ac_cv_lib_wsock32_puts" >&6; } 3576 if test "x$ac_cv_lib_wsock32_puts" = x""yes; then : 3444 3577 cat >>confdefs.h <<_ACEOF 3445 3578 #define HAVE_LIBWSOCK32 1 … … 3450 3583 fi 3451 3584 3452 3453 { echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 3454 echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; } 3455 if test "${ac_cv_lib_ws2_32_puts+set}" = set; then 3456 echo $ECHO_N "(cached) $ECHO_C" >&6 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5 3586 $as_echo_n "checking for puts in -lws2_32... " >&6; } 3587 if test "${ac_cv_lib_ws2_32_puts+set}" = set; then : 3588 $as_echo_n "(cached) " >&6 3457 3589 else 3458 3590 ac_check_lib_save_LIBS=$LIBS 3459 3591 LIBS="-lws2_32 $LIBS" 3460 cat >conftest.$ac_ext <<_ACEOF 3461 /* confdefs.h. */ 3462 _ACEOF 3463 cat confdefs.h >>conftest.$ac_ext 3464 cat >>conftest.$ac_ext <<_ACEOF 3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3465 3593 /* end confdefs.h. */ 3466 3594 … … 3480 3608 } 3481 3609 _ACEOF 3482 rm -f conftest.$ac_objext conftest$ac_exeext 3483 if { (ac_try="$ac_link" 3484 case "(($ac_try" in 3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3486 *) ac_try_echo=$ac_try;; 3487 esac 3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3489 (eval "$ac_link") 2>conftest.er1 3490 ac_status=$? 3491 grep -v '^ *+' conftest.er1 >conftest.err 3492 rm -f conftest.er1 3493 cat conftest.err >&5 3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3495 (exit $ac_status); } && { 3496 test -z "$ac_c_werror_flag" || 3497 test ! -s conftest.err 3498 } && test -s conftest$ac_exeext && 3499 $as_test_x conftest$ac_exeext; then 3610 if ac_fn_c_try_link "$LINENO"; then : 3500 3611 ac_cv_lib_ws2_32_puts=yes 3501 3612 else 3502 echo "$as_me: failed program was:" >&5 3503 sed 's/^/| /' conftest.$ac_ext >&5 3504 3505 ac_cv_lib_ws2_32_puts=no 3506 fi 3507 3508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3509 conftest$ac_exeext conftest.$ac_ext 3613 ac_cv_lib_ws2_32_puts=no 3614 fi 3615 rm -f core conftest.err conftest.$ac_objext \ 3616 conftest$ac_exeext conftest.$ac_ext 3510 3617 LIBS=$ac_check_lib_save_LIBS 3511 3618 fi 3512 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&53513 echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; }3514 if test $ac_cv_lib_ws2_32_puts = yes; then3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5 3620 $as_echo "$ac_cv_lib_ws2_32_puts" >&6; } 3621 if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then : 3515 3622 cat >>confdefs.h <<_ACEOF 3516 3623 #define HAVE_LIBWS2_32 1 … … 3521 3628 fi 3522 3629 3523 3524 { echo "$as_me:$LINENO: checking for puts in -lole32" >&5 3525 echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; } 3526 if test "${ac_cv_lib_ole32_puts+set}" = set; then 3527 echo $ECHO_N "(cached) $ECHO_C" >&6 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5 3631 $as_echo_n "checking for puts in -lole32... " >&6; } 3632 if test "${ac_cv_lib_ole32_puts+set}" = set; then : 3633 $as_echo_n "(cached) " >&6 3528 3634 else 3529 3635 ac_check_lib_save_LIBS=$LIBS 3530 3636 LIBS="-lole32 $LIBS" 3531 cat >conftest.$ac_ext <<_ACEOF 3532 /* confdefs.h. */ 3533 _ACEOF 3534 cat confdefs.h >>conftest.$ac_ext 3535 cat >>conftest.$ac_ext <<_ACEOF 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536 3638 /* end confdefs.h. */ 3537 3639 … … 3551 3653 } 3552 3654 _ACEOF 3553 rm -f conftest.$ac_objext conftest$ac_exeext 3554 if { (ac_try="$ac_link" 3555 case "(($ac_try" in 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3557 *) ac_try_echo=$ac_try;; 3558 esac 3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3560 (eval "$ac_link") 2>conftest.er1 3561 ac_status=$? 3562 grep -v '^ *+' conftest.er1 >conftest.err 3563 rm -f conftest.er1 3564 cat conftest.err >&5 3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3566 (exit $ac_status); } && { 3567 test -z "$ac_c_werror_flag" || 3568 test ! -s conftest.err 3569 } && test -s conftest$ac_exeext && 3570 $as_test_x conftest$ac_exeext; then 3655 if ac_fn_c_try_link "$LINENO"; then : 3571 3656 ac_cv_lib_ole32_puts=yes 3572 3657 else 3573 echo "$as_me: failed program was:" >&5 3574 sed 's/^/| /' conftest.$ac_ext >&5 3575 3576 ac_cv_lib_ole32_puts=no 3577 fi 3578 3579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3580 conftest$ac_exeext conftest.$ac_ext 3658 ac_cv_lib_ole32_puts=no 3659 fi 3660 rm -f core conftest.err conftest.$ac_objext \ 3661 conftest$ac_exeext conftest.$ac_ext 3581 3662 LIBS=$ac_check_lib_save_LIBS 3582 3663 fi 3583 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&53584 echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; }3585 if test $ac_cv_lib_ole32_puts = yes; then3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5 3665 $as_echo "$ac_cv_lib_ole32_puts" >&6; } 3666 if test "x$ac_cv_lib_ole32_puts" = x""yes; then : 3586 3667 cat >>confdefs.h <<_ACEOF 3587 3668 #define HAVE_LIBOLE32 1 … … 3592 3673 fi 3593 3674 3594 3595 { echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 3596 echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; } 3597 if test "${ac_cv_lib_winmm_puts+set}" = set; then 3598 echo $ECHO_N "(cached) $ECHO_C" >&6 3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5 3676 $as_echo_n "checking for puts in -lwinmm... " >&6; } 3677 if test "${ac_cv_lib_winmm_puts+set}" = set; then : 3678 $as_echo_n "(cached) " >&6 3599 3679 else 3600 3680 ac_check_lib_save_LIBS=$LIBS 3601 3681 LIBS="-lwinmm $LIBS" 3602 cat >conftest.$ac_ext <<_ACEOF 3603 /* confdefs.h. */ 3604 _ACEOF 3605 cat confdefs.h >>conftest.$ac_ext 3606 cat >>conftest.$ac_ext <<_ACEOF 3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3607 3683 /* end confdefs.h. */ 3608 3684 … … 3622 3698 } 3623 3699 _ACEOF 3624 rm -f conftest.$ac_objext conftest$ac_exeext 3625 if { (ac_try="$ac_link" 3626 case "(($ac_try" in 3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3628 *) ac_try_echo=$ac_try;; 3629 esac 3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3631 (eval "$ac_link") 2>conftest.er1 3632 ac_status=$? 3633 grep -v '^ *+' conftest.er1 >conftest.err 3634 rm -f conftest.er1 3635 cat conftest.err >&5 3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3637 (exit $ac_status); } && { 3638 test -z "$ac_c_werror_flag" || 3639 test ! -s conftest.err 3640 } && test -s conftest$ac_exeext && 3641 $as_test_x conftest$ac_exeext; then 3700 if ac_fn_c_try_link "$LINENO"; then : 3642 3701 ac_cv_lib_winmm_puts=yes 3643 3702 else 3644 echo "$as_me: failed program was:" >&5 3645 sed 's/^/| /' conftest.$ac_ext >&5 3646 3647 ac_cv_lib_winmm_puts=no 3648 fi 3649 3650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3651 conftest$ac_exeext conftest.$ac_ext 3703 ac_cv_lib_winmm_puts=no 3704 fi 3705 rm -f core conftest.err conftest.$ac_objext \ 3706 conftest$ac_exeext conftest.$ac_ext 3652 3707 LIBS=$ac_check_lib_save_LIBS 3653 3708 fi 3654 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&53655 echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; }3656 if test $ac_cv_lib_winmm_puts = yes; then3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5 3710 $as_echo "$ac_cv_lib_winmm_puts" >&6; } 3711 if test "x$ac_cv_lib_winmm_puts" = x""yes; then : 3657 3712 cat >>confdefs.h <<_ACEOF 3658 3713 #define HAVE_LIBWINMM 1 … … 3663 3718 fi 3664 3719 3665 3666 { echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 3667 echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; } 3668 if test "${ac_cv_lib_socket_puts+set}" = set; then 3669 echo $ECHO_N "(cached) $ECHO_C" >&6 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5 3721 $as_echo_n "checking for puts in -lsocket... " >&6; } 3722 if test "${ac_cv_lib_socket_puts+set}" = set; then : 3723 $as_echo_n "(cached) " >&6 3670 3724 else 3671 3725 ac_check_lib_save_LIBS=$LIBS 3672 3726 LIBS="-lsocket $LIBS" 3673 cat >conftest.$ac_ext <<_ACEOF 3674 /* confdefs.h. */ 3675 _ACEOF 3676 cat confdefs.h >>conftest.$ac_ext 3677 cat >>conftest.$ac_ext <<_ACEOF 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678 3728 /* end confdefs.h. */ 3679 3729 … … 3693 3743 } 3694 3744 _ACEOF 3695 rm -f conftest.$ac_objext conftest$ac_exeext 3696 if { (ac_try="$ac_link" 3697 case "(($ac_try" in 3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 *) ac_try_echo=$ac_try;; 3700 esac 3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3702 (eval "$ac_link") 2>conftest.er1 3703 ac_status=$? 3704 grep -v '^ *+' conftest.er1 >conftest.err 3705 rm -f conftest.er1 3706 cat conftest.err >&5 3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708 (exit $ac_status); } && { 3709 test -z "$ac_c_werror_flag" || 3710 test ! -s conftest.err 3711 } && test -s conftest$ac_exeext && 3712 $as_test_x conftest$ac_exeext; then 3745 if ac_fn_c_try_link "$LINENO"; then : 3713 3746 ac_cv_lib_socket_puts=yes 3714 3747 else 3715 echo "$as_me: failed program was:" >&5 3716 sed 's/^/| /' conftest.$ac_ext >&5 3717 3718 ac_cv_lib_socket_puts=no 3719 fi 3720 3721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3722 conftest$ac_exeext conftest.$ac_ext 3748 ac_cv_lib_socket_puts=no 3749 fi 3750 rm -f core conftest.err conftest.$ac_objext \ 3751 conftest$ac_exeext conftest.$ac_ext 3723 3752 LIBS=$ac_check_lib_save_LIBS 3724 3753 fi 3725 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&53726 echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; }3727 if test $ac_cv_lib_socket_puts = yes; then3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5 3755 $as_echo "$ac_cv_lib_socket_puts" >&6; } 3756 if test "x$ac_cv_lib_socket_puts" = x""yes; then : 3728 3757 cat >>confdefs.h <<_ACEOF 3729 3758 #define HAVE_LIBSOCKET 1 … … 3734 3763 fi 3735 3764 3736 3737 { echo "$as_me:$LINENO: checking for puts in -lrt" >&5 3738 echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; } 3739 if test "${ac_cv_lib_rt_puts+set}" = set; then 3740 echo $ECHO_N "(cached) $ECHO_C" >&6 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5 3766 $as_echo_n "checking for puts in -lrt... " >&6; } 3767 if test "${ac_cv_lib_rt_puts+set}" = set; then : 3768 $as_echo_n "(cached) " >&6 3741 3769 else 3742 3770 ac_check_lib_save_LIBS=$LIBS 3743 3771 LIBS="-lrt $LIBS" 3744 cat >conftest.$ac_ext <<_ACEOF 3745 /* confdefs.h. */ 3746 _ACEOF 3747 cat confdefs.h >>conftest.$ac_ext 3748 cat >>conftest.$ac_ext <<_ACEOF 3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3749 3773 /* end confdefs.h. */ 3750 3774 … … 3764 3788 } 3765 3789 _ACEOF 3766 rm -f conftest.$ac_objext conftest$ac_exeext 3767 if { (ac_try="$ac_link" 3768 case "(($ac_try" in 3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3770 *) ac_try_echo=$ac_try;; 3771 esac 3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3773 (eval "$ac_link") 2>conftest.er1 3774 ac_status=$? 3775 grep -v '^ *+' conftest.er1 >conftest.err 3776 rm -f conftest.er1 3777 cat conftest.err >&5 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3779 (exit $ac_status); } && { 3780 test -z "$ac_c_werror_flag" || 3781 test ! -s conftest.err 3782 } && test -s conftest$ac_exeext && 3783 $as_test_x conftest$ac_exeext; then 3790 if ac_fn_c_try_link "$LINENO"; then : 3784 3791 ac_cv_lib_rt_puts=yes 3785 3792 else 3786 echo "$as_me: failed program was:" >&5 3787 sed 's/^/| /' conftest.$ac_ext >&5 3788 3789 ac_cv_lib_rt_puts=no 3790 fi 3791 3792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3793 conftest$ac_exeext conftest.$ac_ext 3793 ac_cv_lib_rt_puts=no 3794 fi 3795 rm -f core conftest.err conftest.$ac_objext \ 3796 conftest$ac_exeext conftest.$ac_ext 3794 3797 LIBS=$ac_check_lib_save_LIBS 3795 3798 fi 3796 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&53797 echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; }3798 if test $ac_cv_lib_rt_puts = yes; then3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5 3800 $as_echo "$ac_cv_lib_rt_puts" >&6; } 3801 if test "x$ac_cv_lib_rt_puts" = x""yes; then : 3799 3802 cat >>confdefs.h <<_ACEOF 3800 3803 #define HAVE_LIBRT 1 … … 3805 3808 fi 3806 3809 3807 3808 { echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 3809 echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; } 3810 if test "${ac_cv_lib_nsl_puts+set}" = set; then 3811 echo $ECHO_N "(cached) $ECHO_C" >&6 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5 3811 $as_echo_n "checking for puts in -lnsl... " >&6; } 3812 if test "${ac_cv_lib_nsl_puts+set}" = set; then : 3813 $as_echo_n "(cached) " >&6 3812 3814 else 3813 3815 ac_check_lib_save_LIBS=$LIBS 3814 3816 LIBS="-lnsl $LIBS" 3815 cat >conftest.$ac_ext <<_ACEOF 3816 /* confdefs.h. */ 3817 _ACEOF 3818 cat confdefs.h >>conftest.$ac_ext 3819 cat >>conftest.$ac_ext <<_ACEOF 3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820 3818 /* end confdefs.h. */ 3821 3819 … … 3835 3833 } 3836 3834 _ACEOF 3837 rm -f conftest.$ac_objext conftest$ac_exeext 3838 if { (ac_try="$ac_link" 3839 case "(($ac_try" in 3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3841 *) ac_try_echo=$ac_try;; 3842 esac 3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3844 (eval "$ac_link") 2>conftest.er1 3845 ac_status=$? 3846 grep -v '^ *+' conftest.er1 >conftest.err 3847 rm -f conftest.er1 3848 cat conftest.err >&5 3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3850 (exit $ac_status); } && { 3851 test -z "$ac_c_werror_flag" || 3852 test ! -s conftest.err 3853 } && test -s conftest$ac_exeext && 3854 $as_test_x conftest$ac_exeext; then 3835 if ac_fn_c_try_link "$LINENO"; then : 3855 3836 ac_cv_lib_nsl_puts=yes 3856 3837 else 3857 echo "$as_me: failed program was:" >&5 3858 sed 's/^/| /' conftest.$ac_ext >&5 3859 3860 ac_cv_lib_nsl_puts=no 3861 fi 3862 3863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3864 conftest$ac_exeext conftest.$ac_ext 3838 ac_cv_lib_nsl_puts=no 3839 fi 3840 rm -f core conftest.err conftest.$ac_objext \ 3841 conftest$ac_exeext conftest.$ac_ext 3865 3842 LIBS=$ac_check_lib_save_LIBS 3866 3843 fi 3867 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&53868 echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; }3869 if test $ac_cv_lib_nsl_puts = yes; then3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5 3845 $as_echo "$ac_cv_lib_nsl_puts" >&6; } 3846 if test "x$ac_cv_lib_nsl_puts" = x""yes; then : 3870 3847 cat >>confdefs.h <<_ACEOF 3871 3848 #define HAVE_LIBNSL 1 … … 3876 3853 fi 3877 3854 3878 3879 { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 3880 echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } 3881 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then 3882 echo $ECHO_N "(cached) $ECHO_C" >&6 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 3856 $as_echo_n "checking for uuid_generate in -luuid... " >&6; } 3857 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : 3858 $as_echo_n "(cached) " >&6 3883 3859 else 3884 3860 ac_check_lib_save_LIBS=$LIBS 3885 3861 LIBS="-luuid $LIBS" 3886 cat >conftest.$ac_ext <<_ACEOF 3887 /* confdefs.h. */ 3888 _ACEOF 3889 cat confdefs.h >>conftest.$ac_ext 3890 cat >>conftest.$ac_ext <<_ACEOF 3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891 3863 /* end confdefs.h. */ 3892 3864 … … 3906 3878 } 3907 3879 _ACEOF 3908 rm -f conftest.$ac_objext conftest$ac_exeext 3909 if { (ac_try="$ac_link" 3910 case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913 esac 3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3915 (eval "$ac_link") 2>conftest.er1 3916 ac_status=$? 3917 grep -v '^ *+' conftest.er1 >conftest.err 3918 rm -f conftest.er1 3919 cat conftest.err >&5 3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3921 (exit $ac_status); } && { 3922 test -z "$ac_c_werror_flag" || 3923 test ! -s conftest.err 3924 } && test -s conftest$ac_exeext && 3925 $as_test_x conftest$ac_exeext; then 3880 if ac_fn_c_try_link "$LINENO"; then : 3926 3881 ac_cv_lib_uuid_uuid_generate=yes 3927 3882 else 3928 echo "$as_me: failed program was:" >&5 3929 sed 's/^/| /' conftest.$ac_ext >&5 3930 3931 ac_cv_lib_uuid_uuid_generate=no 3932 fi 3933 3934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3935 conftest$ac_exeext conftest.$ac_ext 3883 ac_cv_lib_uuid_uuid_generate=no 3884 fi 3885 rm -f core conftest.err conftest.$ac_objext \ 3886 conftest$ac_exeext conftest.$ac_ext 3936 3887 LIBS=$ac_check_lib_save_LIBS 3937 3888 fi 3938 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&53939 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }3940 if test $ac_cv_lib_uuid_uuid_generate = yes; then3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 3890 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } 3891 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : 3941 3892 cat >>confdefs.h <<_ACEOF 3942 3893 #define HAVE_LIBUUID 1 … … 3947 3898 fi 3948 3899 3949 { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&53950 echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }3951 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then 3952 echo $ECHO_N "(cached) $ECHO_C" >&63900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 3901 $as_echo_n "checking for uuid_generate in -luuid... " >&6; } 3902 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : 3903 $as_echo_n "(cached) " >&6 3953 3904 else 3954 3905 ac_check_lib_save_LIBS=$LIBS 3955 3906 LIBS="-luuid $LIBS" 3956 cat >conftest.$ac_ext <<_ACEOF 3957 /* confdefs.h. */ 3958 _ACEOF 3959 cat confdefs.h >>conftest.$ac_ext 3960 cat >>conftest.$ac_ext <<_ACEOF 3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3961 3908 /* end confdefs.h. */ 3962 3909 … … 3976 3923 } 3977 3924 _ACEOF 3978 rm -f conftest.$ac_objext conftest$ac_exeext 3979 if { (ac_try="$ac_link" 3980 case "(($ac_try" in 3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3982 *) ac_try_echo=$ac_try;; 3983 esac 3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3985 (eval "$ac_link") 2>conftest.er1 3986 ac_status=$? 3987 grep -v '^ *+' conftest.er1 >conftest.err 3988 rm -f conftest.er1 3989 cat conftest.err >&5 3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3991 (exit $ac_status); } && { 3992 test -z "$ac_c_werror_flag" || 3993 test ! -s conftest.err 3994 } && test -s conftest$ac_exeext && 3995 $as_test_x conftest$ac_exeext; then 3925 if ac_fn_c_try_link "$LINENO"; then : 3996 3926 ac_cv_lib_uuid_uuid_generate=yes 3997 3927 else 3998 echo "$as_me: failed program was:" >&5 3999 sed 's/^/| /' conftest.$ac_ext >&5 4000 4001 ac_cv_lib_uuid_uuid_generate=no 4002 fi 4003 4004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4005 conftest$ac_exeext conftest.$ac_ext 3928 ac_cv_lib_uuid_uuid_generate=no 3929 fi 3930 rm -f core conftest.err conftest.$ac_objext \ 3931 conftest$ac_exeext conftest.$ac_ext 4006 3932 LIBS=$ac_check_lib_save_LIBS 4007 3933 fi 4008 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&54009 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }4010 if test $ac_cv_lib_uuid_uuid_generate = yes; then3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 3935 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } 3936 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : 4011 3937 ac_has_uuid_lib=1 4012 3938 fi 4013 3939 4014 3940 4015 { echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&54016 echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; }3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5 3942 $as_echo "Setting PJ_M_NAME to $target_cpu" >&6; } 4017 3943 cat >>confdefs.h <<_ACEOF 4018 3944 #define PJ_M_NAME "$target_cpu" … … 4020 3946 4021 3947 4022 { echo "$as_me:$LINENO: checking memory alignment" >&54023 echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; }3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5 3949 $as_echo_n "checking memory alignment... " >&6; } 4024 3950 case $target in 4025 3951 sparc64-* | ia64-* | x86_64-* ) 4026 cat >>confdefs.h <<\_ACEOF 4027 #define PJ_POOL_ALIGNMENT 8 4028 _ACEOF 4029 4030 { echo "$as_me:$LINENO: result: 8 bytes" >&5 4031 echo "${ECHO_T}8 bytes" >&6; } 3952 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h 3953 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5 3955 $as_echo "8 bytes" >&6; } 4032 3956 ;; 4033 3957 * ) 4034 cat >>confdefs.h <<\_ACEOF 4035 #define PJ_POOL_ALIGNMENT 4 4036 _ACEOF 4037 4038 { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 4039 echo "${ECHO_T}4 bytes (default)" >&6; } 3958 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h 3959 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5 3961 $as_echo "4 bytes (default)" >&6; } 4040 3962 ;; 4041 3963 esac … … 4047 3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4048 3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4049 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&54050 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3972 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4051 3973 # On Suns, sometimes $CPP names a directory. 4052 3974 if test -n "$CPP" && test -d "$CPP"; then … … 4054 3976 fi 4055 3977 if test -z "$CPP"; then 4056 if test "${ac_cv_prog_CPP+set}" = set; then 4057 echo $ECHO_N "(cached) $ECHO_C" >&63978 if test "${ac_cv_prog_CPP+set}" = set; then : 3979 $as_echo_n "(cached) " >&6 4058 3980 else 4059 3981 # Double quotes because CPP needs to be expanded … … 4069 3991 # On the NeXT, cc -E runs the code through the compiler's parser, 4070 3992 # not just through cpp. "Syntax error" is here to catch this case. 4071 cat >conftest.$ac_ext <<_ACEOF 4072 /* confdefs.h. */ 4073 _ACEOF 4074 cat confdefs.h >>conftest.$ac_ext 4075 cat >>conftest.$ac_ext <<_ACEOF 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4076 3994 /* end confdefs.h. */ 4077 3995 #ifdef __STDC__ … … 4082 4000 Syntax error 4083 4001 _ACEOF 4084 if { (ac_try="$ac_cpp conftest.$ac_ext" 4085 case "(($ac_try" in 4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4087 *) ac_try_echo=$ac_try;; 4088 esac 4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4091 ac_status=$? 4092 grep -v '^ *+' conftest.er1 >conftest.err 4093 rm -f conftest.er1 4094 cat conftest.err >&5 4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4096 (exit $ac_status); } >/dev/null && { 4097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4098 test ! -s conftest.err 4099 }; then 4100 : 4101 else 4102 echo "$as_me: failed program was:" >&5 4103 sed 's/^/| /' conftest.$ac_ext >&5 4104 4002 if ac_fn_c_try_cpp "$LINENO"; then : 4003 4004 else 4105 4005 # Broken: fails on valid input. 4106 4006 continue 4107 4007 fi 4108 4109 4008 rm -f conftest.err conftest.$ac_ext 4110 4009 4111 4010 # OK, works on sane cases. Now check whether nonexistent headers 4112 4011 # can be detected and how. 4113 cat >conftest.$ac_ext <<_ACEOF 4114 /* confdefs.h. */ 4115 _ACEOF 4116 cat confdefs.h >>conftest.$ac_ext 4117 cat >>conftest.$ac_ext <<_ACEOF 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118 4013 /* end confdefs.h. */ 4119 4014 #include <ac_nonexistent.h> 4120 4015 _ACEOF 4121 if { (ac_try="$ac_cpp conftest.$ac_ext" 4122 case "(($ac_try" in 4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4124 *) ac_try_echo=$ac_try;; 4125 esac 4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4128 ac_status=$? 4129 grep -v '^ *+' conftest.er1 >conftest.err 4130 rm -f conftest.er1 4131 cat conftest.err >&5 4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4133 (exit $ac_status); } >/dev/null && { 4134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4135 test ! -s conftest.err 4136 }; then 4016 if ac_fn_c_try_cpp "$LINENO"; then : 4137 4017 # Broken: success on invalid input. 4138 4018 continue 4139 4019 else 4140 echo "$as_me: failed program was:" >&54141 sed 's/^/| /' conftest.$ac_ext >&54142 4143 4020 # Passes both tests. 4144 4021 ac_preproc_ok=: 4145 4022 break 4146 4023 fi 4147 4148 4024 rm -f conftest.err conftest.$ac_ext 4149 4025 … … 4151 4027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4152 4028 rm -f conftest.err conftest.$ac_ext 4153 if $ac_preproc_ok; then 4029 if $ac_preproc_ok; then : 4154 4030 break 4155 4031 fi … … 4163 4039 ac_cv_prog_CPP=$CPP 4164 4040 fi 4165 { echo "$as_me:$LINENO: result: $CPP" >&54166 echo "${ECHO_T}$CPP" >&6; }4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4042 $as_echo "$CPP" >&6; } 4167 4043 ac_preproc_ok=false 4168 4044 for ac_c_preproc_warn_flag in '' yes … … 4174 4050 # On the NeXT, cc -E runs the code through the compiler's parser, 4175 4051 # not just through cpp. "Syntax error" is here to catch this case. 4176 cat >conftest.$ac_ext <<_ACEOF 4177 /* confdefs.h. */ 4178 _ACEOF 4179 cat confdefs.h >>conftest.$ac_ext 4180 cat >>conftest.$ac_ext <<_ACEOF 4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181 4053 /* end confdefs.h. */ 4182 4054 #ifdef __STDC__ … … 4187 4059 Syntax error 4188 4060 _ACEOF 4189 if { (ac_try="$ac_cpp conftest.$ac_ext" 4190 case "(($ac_try" in 4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4192 *) ac_try_echo=$ac_try;; 4193 esac 4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4196 ac_status=$? 4197 grep -v '^ *+' conftest.er1 >conftest.err 4198 rm -f conftest.er1 4199 cat conftest.err >&5 4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4201 (exit $ac_status); } >/dev/null && { 4202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4203 test ! -s conftest.err 4204 }; then 4205 : 4206 else 4207 echo "$as_me: failed program was:" >&5 4208 sed 's/^/| /' conftest.$ac_ext >&5 4209 4061 if ac_fn_c_try_cpp "$LINENO"; then : 4062 4063 else 4210 4064 # Broken: fails on valid input. 4211 4065 continue 4212 4066 fi 4213 4214 4067 rm -f conftest.err conftest.$ac_ext 4215 4068 4216 4069 # OK, works on sane cases. Now check whether nonexistent headers 4217 4070 # can be detected and how. 4218 cat >conftest.$ac_ext <<_ACEOF 4219 /* confdefs.h. */ 4220 _ACEOF 4221 cat confdefs.h >>conftest.$ac_ext 4222 cat >>conftest.$ac_ext <<_ACEOF 4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4223 4072 /* end confdefs.h. */ 4224 4073 #include <ac_nonexistent.h> 4225 4074 _ACEOF 4226 if { (ac_try="$ac_cpp conftest.$ac_ext" 4227 case "(($ac_try" in 4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4229 *) ac_try_echo=$ac_try;; 4230 esac 4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4233 ac_status=$? 4234 grep -v '^ *+' conftest.er1 >conftest.err 4235 rm -f conftest.er1 4236 cat conftest.err >&5 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4238 (exit $ac_status); } >/dev/null && { 4239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4240 test ! -s conftest.err 4241 }; then 4075 if ac_fn_c_try_cpp "$LINENO"; then : 4242 4076 # Broken: success on invalid input. 4243 4077 continue 4244 4078 else 4245 echo "$as_me: failed program was:" >&54246 sed 's/^/| /' conftest.$ac_ext >&54247 4248 4079 # Passes both tests. 4249 4080 ac_preproc_ok=: 4250 4081 break 4251 4082 fi 4252 4253 4083 rm -f conftest.err conftest.$ac_ext 4254 4084 … … 4256 4086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4257 4087 rm -f conftest.err conftest.$ac_ext 4258 if $ac_preproc_ok; then 4259 : 4260 else 4261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4262 See \`config.log' for more details." >&5 4263 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4264 See \`config.log' for more details." >&2;} 4265 { (exit 1); exit 1; }; } 4088 if $ac_preproc_ok; then : 4089 4090 else 4091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4093 as_fn_error "C preprocessor \"$CPP\" fails sanity check 4094 See \`config.log' for more details." "$LINENO" 5; } 4266 4095 fi 4267 4096 … … 4273 4102 4274 4103 4275 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4276 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4277 if test "${ac_cv_path_GREP+set}" = set; then 4278 echo $ECHO_N "(cached) $ECHO_C" >&6 4279 else 4280 # Extract the first word of "grep ggrep" to use in msg output 4281 if test -z "$GREP"; then 4282 set dummy grep ggrep; ac_prog_name=$2 4283 if test "${ac_cv_path_GREP+set}" = set; then 4284 echo $ECHO_N "(cached) $ECHO_C" >&6 4285 else 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4105 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4106 if test "${ac_cv_path_GREP+set}" = set; then : 4107 $as_echo_n "(cached) " >&6 4108 else 4109 if test -z "$GREP"; then 4286 4110 ac_path_GREP_found=false 4287 # Loop through the user's path and test for each of PROGNAME-LIST4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4111 # Loop through the user's path and test for each of PROGNAME-LIST 4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4289 4113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4290 4114 do 4291 4115 IFS=$as_save_IFS 4292 4116 test -z "$as_dir" && as_dir=. 4293 for ac_prog in grep ggrep; do4294 for ac_exec_ext in '' $ac_executable_extensions; do4295 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"4296 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue4297 4117 for ac_prog in grep ggrep; do 4118 for ac_exec_ext in '' $ac_executable_extensions; do 4119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4120 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4121 # Check for GNU ac_path_GREP and select it if it is found. 4298 4122 # Check for GNU $ac_path_GREP 4299 4123 case `"$ac_path_GREP" --version 2>&1` in … … 4302 4126 *) 4303 4127 ac_count=0 4304 echo $ECHO_N "0123456789$ECHO_C">"conftest.in"4128 $as_echo_n 0123456789 >"conftest.in" 4305 4129 while : 4306 4130 do … … 4308 4132 mv "conftest.tmp" "conftest.in" 4309 4133 cp "conftest.in" "conftest.nl" 4310 echo 'GREP' >> "conftest.nl"4134 $as_echo 'GREP' >> "conftest.nl" 4311 4135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4312 4136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4313 a c_count=`expr $ac_count + 1`4137 as_fn_arith $ac_count + 1 && ac_count=$as_val 4314 4138 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4315 4139 # Best one so far, save it but keep looking for a better one … … 4323 4147 esac 4324 4148 4325 4326 $ac_path_GREP_found && break 34149 $ac_path_GREP_found && break 3 4150 done 4327 4151 done 4328 done 4329 4330 done 4152 done 4331 4153 IFS=$as_save_IFS 4332 4333 4334 fi 4335 4336 GREP="$ac_cv_path_GREP" 4337 if test -z "$GREP"; then 4338 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4339 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4340 { (exit 1); exit 1; }; } 4341 fi 4342 4154 if test -z "$ac_cv_path_GREP"; then 4155 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4156 fi 4343 4157 else 4344 4158 ac_cv_path_GREP=$GREP 4345 4159 fi 4346 4160 4347 4348 fi 4349 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4350 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4161 fi 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4163 $as_echo "$ac_cv_path_GREP" >&6; } 4351 4164 GREP="$ac_cv_path_GREP" 4352 4165 4353 4166 4354 { echo "$as_me:$LINENO: checking for egrep" >&54355 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }4356 if test "${ac_cv_path_EGREP+set}" = set; then 4357 echo $ECHO_N "(cached) $ECHO_C" >&64167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4168 $as_echo_n "checking for egrep... " >&6; } 4169 if test "${ac_cv_path_EGREP+set}" = set; then : 4170 $as_echo_n "(cached) " >&6 4358 4171 else 4359 4172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4360 4173 then ac_cv_path_EGREP="$GREP -E" 4361 4174 else 4362 # Extract the first word of "egrep" to use in msg output 4363 if test -z "$EGREP"; then 4364 set dummy egrep; ac_prog_name=$2 4365 if test "${ac_cv_path_EGREP+set}" = set; then 4366 echo $ECHO_N "(cached) $ECHO_C" >&6 4367 else 4175 if test -z "$EGREP"; then 4368 4176 ac_path_EGREP_found=false 4369 # Loop through the user's path and test for each of PROGNAME-LIST4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4177 # Loop through the user's path and test for each of PROGNAME-LIST 4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4371 4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4372 4180 do 4373 4181 IFS=$as_save_IFS 4374 4182 test -z "$as_dir" && as_dir=. 4375 for ac_prog in egrep; do4376 for ac_exec_ext in '' $ac_executable_extensions; do4377 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"4378 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue4379 4183 for ac_prog in egrep; do 4184 for ac_exec_ext in '' $ac_executable_extensions; do 4185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4186 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4187 # Check for GNU ac_path_EGREP and select it if it is found. 4380 4188 # Check for GNU $ac_path_EGREP 4381 4189 case `"$ac_path_EGREP" --version 2>&1` in … … 4384 4192 *) 4385 4193 ac_count=0 4386 echo $ECHO_N "0123456789$ECHO_C">"conftest.in"4194 $as_echo_n 0123456789 >"conftest.in" 4387 4195 while : 4388 4196 do … … 4390 4198 mv "conftest.tmp" "conftest.in" 4391 4199 cp "conftest.in" "conftest.nl" 4392 echo 'EGREP' >> "conftest.nl"4200 $as_echo 'EGREP' >> "conftest.nl" 4393 4201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4394 4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4395 a c_count=`expr $ac_count + 1`4203 as_fn_arith $ac_count + 1 && ac_count=$as_val 4396 4204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4397 4205 # Best one so far, save it but keep looking for a better one … … 4405 4213 esac 4406 4214 4407 4408 $ac_path_EGREP_found && break 34215 $ac_path_EGREP_found && break 3 4216 done 4409 4217 done 4410 done 4411 4412 done 4218 done 4413 4219 IFS=$as_save_IFS 4414 4415 4416 fi 4417 4418 EGREP="$ac_cv_path_EGREP" 4419 if test -z "$EGREP"; then 4420 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4421 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4422 { (exit 1); exit 1; }; } 4423 fi 4424 4220 if test -z "$ac_cv_path_EGREP"; then 4221 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4222 fi 4425 4223 else 4426 4224 ac_cv_path_EGREP=$EGREP 4427 4225 fi 4428 4226 4429 4430 4227 fi 4431 4228 fi 4432 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&54433 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4230 $as_echo "$ac_cv_path_EGREP" >&6; } 4434 4231 EGREP="$ac_cv_path_EGREP" 4435 4232 4436 4233 4437 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4438 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4439 if test "${ac_cv_header_stdc+set}" = set; then 4440 echo $ECHO_N "(cached) $ECHO_C" >&6 4441 else 4442 cat >conftest.$ac_ext <<_ACEOF 4443 /* confdefs.h. */ 4444 _ACEOF 4445 cat confdefs.h >>conftest.$ac_ext 4446 cat >>conftest.$ac_ext <<_ACEOF 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4235 $as_echo_n "checking for ANSI C header files... " >&6; } 4236 if test "${ac_cv_header_stdc+set}" = set; then : 4237 $as_echo_n "(cached) " >&6 4238 else 4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447 4240 /* end confdefs.h. */ 4448 4241 #include <stdlib.h> … … 4459 4252 } 4460 4253 _ACEOF 4461 rm -f conftest.$ac_objext 4462 if { (ac_try="$ac_compile" 4463 case "(($ac_try" in 4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4465 *) ac_try_echo=$ac_try;; 4466 esac 4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4468 (eval "$ac_compile") 2>conftest.er1 4469 ac_status=$? 4470 grep -v '^ *+' conftest.er1 >conftest.err 4471 rm -f conftest.er1 4472 cat conftest.err >&5 4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4474 (exit $ac_status); } && { 4475 test -z "$ac_c_werror_flag" || 4476 test ! -s conftest.err 4477 } && test -s conftest.$ac_objext; then 4254 if ac_fn_c_try_compile "$LINENO"; then : 4478 4255 ac_cv_header_stdc=yes 4479 4256 else 4480 echo "$as_me: failed program was:" >&5 4481 sed 's/^/| /' conftest.$ac_ext >&5 4482 4483 ac_cv_header_stdc=no 4484 fi 4485 4257 ac_cv_header_stdc=no 4258 fi 4486 4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4487 4260 4488 4261 if test $ac_cv_header_stdc = yes; then 4489 4262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4490 cat >conftest.$ac_ext <<_ACEOF 4491 /* confdefs.h. */ 4492 _ACEOF 4493 cat confdefs.h >>conftest.$ac_ext 4494 cat >>conftest.$ac_ext <<_ACEOF 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4495 4264 /* end confdefs.h. */ 4496 4265 #include <string.h> … … 4498 4267 _ACEOF 4499 4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4500 $EGREP "memchr" >/dev/null 2>&1; then 4501 : 4269 $EGREP "memchr" >/dev/null 2>&1; then : 4270 4502 4271 else 4503 4272 ac_cv_header_stdc=no 4504 4273 fi 4505 rm -f -rconftest*4274 rm -f conftest* 4506 4275 4507 4276 fi … … 4509 4278 if test $ac_cv_header_stdc = yes; then 4510 4279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4511 cat >conftest.$ac_ext <<_ACEOF 4512 /* confdefs.h. */ 4513 _ACEOF 4514 cat confdefs.h >>conftest.$ac_ext 4515 cat >>conftest.$ac_ext <<_ACEOF 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4516 4281 /* end confdefs.h. */ 4517 4282 #include <stdlib.h> … … 4519 4284 _ACEOF 4520 4285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4521 $EGREP "free" >/dev/null 2>&1; then 4522 : 4286 $EGREP "free" >/dev/null 2>&1; then : 4287 4523 4288 else 4524 4289 ac_cv_header_stdc=no 4525 4290 fi 4526 rm -f -rconftest*4291 rm -f conftest* 4527 4292 4528 4293 fi … … 4530 4295 if test $ac_cv_header_stdc = yes; then 4531 4296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4532 if test "$cross_compiling" = yes; then 4297 if test "$cross_compiling" = yes; then : 4533 4298 : 4534 4299 else 4535 cat >conftest.$ac_ext <<_ACEOF 4536 /* confdefs.h. */ 4537 _ACEOF 4538 cat confdefs.h >>conftest.$ac_ext 4539 cat >>conftest.$ac_ext <<_ACEOF 4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4540 4301 /* end confdefs.h. */ 4541 4302 #include <ctype.h> … … 4564 4325 } 4565 4326 _ACEOF 4566 rm -f conftest$ac_exeext 4567 if { (ac_try="$ac_link" 4568 case "(($ac_try" in 4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4570 *) ac_try_echo=$ac_try;; 4571 esac 4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4573 (eval "$ac_link") 2>&5 4574 ac_status=$? 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4577 { (case "(($ac_try" in 4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4579 *) ac_try_echo=$ac_try;; 4580 esac 4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4582 (eval "$ac_try") 2>&5 4583 ac_status=$? 4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4585 (exit $ac_status); }; }; then 4586 : 4587 else 4588 echo "$as_me: program exited with status $ac_status" >&5 4589 echo "$as_me: failed program was:" >&5 4590 sed 's/^/| /' conftest.$ac_ext >&5 4591 4592 ( exit $ac_status ) 4593 ac_cv_header_stdc=no 4594 fi 4595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4596 fi 4597 4598 4599 fi 4600 fi 4601 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4602 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4327 if ac_fn_c_try_run "$LINENO"; then : 4328 4329 else 4330 ac_cv_header_stdc=no 4331 fi 4332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4333 conftest.$ac_objext conftest.beam conftest.$ac_ext 4334 fi 4335 4336 fi 4337 fi 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4339 $as_echo "$ac_cv_header_stdc" >&6; } 4603 4340 if test $ac_cv_header_stdc = yes; then 4604 4341 4605 cat >>confdefs.h <<\_ACEOF 4606 #define STDC_HEADERS 1 4607 _ACEOF 4342 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4608 4343 4609 4344 fi 4610 4345 4611 4346 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4347 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4622 4348 inttypes.h stdint.h unistd.h 4623 do 4624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4625 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4628 echo $ECHO_N "(cached) $ECHO_C" >&6 4629 else 4630 cat >conftest.$ac_ext <<_ACEOF 4631 /* confdefs.h. */ 4632 _ACEOF 4633 cat confdefs.h >>conftest.$ac_ext 4634 cat >>conftest.$ac_ext <<_ACEOF 4349 do : 4350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4351 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4352 " 4353 eval as_val=\$$as_ac_Header 4354 if test "x$as_val" = x""yes; then : 4355 cat >>confdefs.h <<_ACEOF 4356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4357 _ACEOF 4358 4359 fi 4360 4361 done 4362 4363 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4365 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4366 if test "${ac_cv_c_bigendian+set}" = set; then : 4367 $as_echo_n "(cached) " >&6 4368 else 4369 ac_cv_c_bigendian=unknown 4370 # See if we're dealing with a universal compiler. 4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4635 4372 /* end confdefs.h. */ 4636 $ac_includes_default 4637 4638 #include <$ac_header> 4639 _ACEOF 4640 rm -f conftest.$ac_objext 4641 if { (ac_try="$ac_compile" 4642 case "(($ac_try" in 4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4644 *) ac_try_echo=$ac_try;; 4645 esac 4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4647 (eval "$ac_compile") 2>conftest.er1 4648 ac_status=$? 4649 grep -v '^ *+' conftest.er1 >conftest.err 4650 rm -f conftest.er1 4651 cat conftest.err >&5 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4653 (exit $ac_status); } && { 4654 test -z "$ac_c_werror_flag" || 4655 test ! -s conftest.err 4656 } && test -s conftest.$ac_objext; then 4657 eval "$as_ac_Header=yes" 4658 else 4659 echo "$as_me: failed program was:" >&5 4660 sed 's/^/| /' conftest.$ac_ext >&5 4661 4662 eval "$as_ac_Header=no" 4663 fi 4664 4373 #ifndef __APPLE_CC__ 4374 not a universal capable compiler 4375 #endif 4376 typedef int dummy; 4377 4378 _ACEOF 4379 if ac_fn_c_try_compile "$LINENO"; then : 4380 4381 # Check for potential -arch flags. It is not universal unless 4382 # there are at least two -arch flags with different values. 4383 ac_arch= 4384 ac_prev= 4385 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4386 if test -n "$ac_prev"; then 4387 case $ac_word in 4388 i?86 | x86_64 | ppc | ppc64) 4389 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4390 ac_arch=$ac_word 4391 else 4392 ac_cv_c_bigendian=universal 4393 break 4394 fi 4395 ;; 4396 esac 4397 ac_prev= 4398 elif test "x$ac_word" = "x-arch"; then 4399 ac_prev=arch 4400 fi 4401 done 4402 fi 4665 4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4666 fi 4667 ac_res=`eval echo '${'$as_ac_Header'}'` 4668 { echo "$as_me:$LINENO: result: $ac_res" >&5 4669 echo "${ECHO_T}$ac_res" >&6; } 4670 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4671 cat >>confdefs.h <<_ACEOF 4672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4673 _ACEOF 4674 4675 fi 4676 4677 done 4678 4679 4680 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4681 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4682 if test "${ac_cv_c_bigendian+set}" = set; then 4683 echo $ECHO_N "(cached) $ECHO_C" >&6 4684 else 4685 # See if sys/param.h defines the BYTE_ORDER macro. 4686 cat >conftest.$ac_ext <<_ACEOF 4687 /* confdefs.h. */ 4688 _ACEOF 4689 cat confdefs.h >>conftest.$ac_ext 4690 cat >>conftest.$ac_ext <<_ACEOF 4404 if test $ac_cv_c_bigendian = unknown; then 4405 # See if sys/param.h defines the BYTE_ORDER macro. 4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4691 4407 /* end confdefs.h. */ 4692 4408 #include <sys/types.h> 4693 #include <sys/param.h>4409 #include <sys/param.h> 4694 4410 4695 4411 int 4696 4412 main () 4697 4413 { 4698 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4699 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4700 bogus endian macros 4701 #endif 4414 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4415 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4416 && LITTLE_ENDIAN) 4417 bogus endian macros 4418 #endif 4702 4419 4703 4420 ; … … 4705 4422 } 4706 4423 _ACEOF 4707 rm -f conftest.$ac_objext 4708 if { (ac_try="$ac_compile" 4709 case "(($ac_try" in 4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4711 *) ac_try_echo=$ac_try;; 4712 esac 4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4714 (eval "$ac_compile") 2>conftest.er1 4715 ac_status=$? 4716 grep -v '^ *+' conftest.er1 >conftest.err 4717 rm -f conftest.er1 4718 cat conftest.err >&5 4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4720 (exit $ac_status); } && { 4721 test -z "$ac_c_werror_flag" || 4722 test ! -s conftest.err 4723 } && test -s conftest.$ac_objext; then 4424 if ac_fn_c_try_compile "$LINENO"; then : 4724 4425 # It does; now see whether it defined to BIG_ENDIAN or not. 4725 cat >conftest.$ac_ext <<_ACEOF 4726 /* confdefs.h. */ 4727 _ACEOF 4728 cat confdefs.h >>conftest.$ac_ext 4729 cat >>conftest.$ac_ext <<_ACEOF 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4730 4427 /* end confdefs.h. */ 4731 4428 #include <sys/types.h> 4732 #include <sys/param.h>4429 #include <sys/param.h> 4733 4430 4734 4431 int … … 4736 4433 { 4737 4434 #if BYTE_ORDER != BIG_ENDIAN 4738 not big endian4739 #endif4435 not big endian 4436 #endif 4740 4437 4741 4438 ; … … 4743 4440 } 4744 4441 _ACEOF 4745 rm -f conftest.$ac_objext 4746 if { (ac_try="$ac_compile" 4747 case "(($ac_try" in 4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4749 *) ac_try_echo=$ac_try;; 4750 esac 4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4752 (eval "$ac_compile") 2>conftest.er1 4753 ac_status=$? 4754 grep -v '^ *+' conftest.er1 >conftest.err 4755 rm -f conftest.er1 4756 cat conftest.err >&5 4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4758 (exit $ac_status); } && { 4759 test -z "$ac_c_werror_flag" || 4760 test ! -s conftest.err 4761 } && test -s conftest.$ac_objext; then 4442 if ac_fn_c_try_compile "$LINENO"; then : 4762 4443 ac_cv_c_bigendian=yes 4763 4444 else 4764 echo "$as_me: failed program was:" >&5 4765 sed 's/^/| /' conftest.$ac_ext >&5 4766 4767 ac_cv_c_bigendian=no 4768 fi 4769 4445 ac_cv_c_bigendian=no 4446 fi 4770 4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4771 else 4772 echo "$as_me: failed program was:" >&5 4773 sed 's/^/| /' conftest.$ac_ext >&5 4774 4775 # It does not; compile a test program. 4776 if test "$cross_compiling" = yes; then 4777 # try to guess the endianness by grepping values into an object file 4778 ac_cv_c_bigendian=unknown 4779 cat >conftest.$ac_ext <<_ACEOF 4780 /* confdefs.h. */ 4781 _ACEOF 4782 cat confdefs.h >>conftest.$ac_ext 4783 cat >>conftest.$ac_ext <<_ACEOF 4448 fi 4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4450 fi 4451 if test $ac_cv_c_bigendian = unknown; then 4452 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4784 4454 /* end confdefs.h. */ 4785 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4786 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4787 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4788 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4789 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4790 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4455 #include <limits.h> 4456 4791 4457 int 4792 4458 main () 4793 4459 { 4794 _ascii (); _ebcdic (); 4460 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4461 bogus endian macros 4462 #endif 4463 4795 4464 ; 4796 4465 return 0; 4797 4466 } 4798 4467 _ACEOF 4799 rm -f conftest.$ac_objext 4800 if { (ac_try="$ac_compile" 4801 case "(($ac_try" in 4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4803 *) ac_try_echo=$ac_try;; 4804 esac 4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4806 (eval "$ac_compile") 2>conftest.er1 4807 ac_status=$? 4808 grep -v '^ *+' conftest.er1 >conftest.err 4809 rm -f conftest.er1 4810 cat conftest.err >&5 4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4812 (exit $ac_status); } && {4813 test -z "$ac_c_werror_flag" || 4814 test ! -s conftest.err 4815 } && test -s conftest.$ac_objext; then 4816 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4468 if ac_fn_c_try_compile "$LINENO"; then : 4469 # It does; now see whether it defined to _BIG_ENDIAN or not. 4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4471 /* end confdefs.h. */ 4472 #include <limits.h> 4473 4474 int 4475 main () 4476 { 4477 #ifndef _BIG_ENDIAN 4478 not big endian 4479 #endif 4480 4481 ; 4482 return 0; 4483 } 4484 _ACEOF 4485 if ac_fn_c_try_compile "$LINENO"; then : 4817 4486 ac_cv_c_bigendian=yes 4818 fi 4819 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4820 if test "$ac_cv_c_bigendian" = unknown; then 4821 ac_cv_c_bigendian=no 4822 else 4823 # finding both strings is unlikely to happen, but who knows? 4824 ac_cv_c_bigendian=unknown 4825 fi 4826 fi 4827 else 4828 echo "$as_me: failed program was:" >&5 4829 sed 's/^/| /' conftest.$ac_ext >&5 4830 4831 4832 fi 4833 4487 else 4488 ac_cv_c_bigendian=no 4489 fi 4834 4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4835 else 4836 cat >conftest.$ac_ext <<_ACEOF 4837 /* confdefs.h. */ 4838 _ACEOF 4839 cat confdefs.h >>conftest.$ac_ext 4840 cat >>conftest.$ac_ext <<_ACEOF 4491 fi 4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4493 fi 4494 if test $ac_cv_c_bigendian = unknown; then 4495 # Compile a test program. 4496 if test "$cross_compiling" = yes; then : 4497 # Try to guess by grepping values from an object file. 4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4499 /* end confdefs.h. */ 4500 short int ascii_mm[] = 4501 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4502 short int ascii_ii[] = 4503 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4504 int use_ascii (int i) { 4505 return ascii_mm[i] + ascii_ii[i]; 4506 } 4507 short int ebcdic_ii[] = 4508 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4509 short int ebcdic_mm[] = 4510 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4511 int use_ebcdic (int i) { 4512 return ebcdic_mm[i] + ebcdic_ii[i]; 4513 } 4514 extern int foo; 4515 4516 int 4517 main () 4518 { 4519 return use_ascii (foo) == use_ebcdic (foo); 4520 ; 4521 return 0; 4522 } 4523 _ACEOF 4524 if ac_fn_c_try_compile "$LINENO"; then : 4525 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4526 ac_cv_c_bigendian=yes 4527 fi 4528 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4529 if test "$ac_cv_c_bigendian" = unknown; then 4530 ac_cv_c_bigendian=no 4531 else 4532 # finding both strings is unlikely to happen, but who knows? 4533 ac_cv_c_bigendian=unknown 4534 fi 4535 fi 4536 fi 4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4538 else 4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4841 4540 /* end confdefs.h. */ 4842 4541 $ac_includes_default … … 4845 4544 { 4846 4545 4847 /* Are we little or big endian? From Harbison&Steele. */4848 union4849 {4850 long int l;4851 char c[sizeof (long int)];4852 } u;4853 u.l = 1;4854 return u.c[sizeof (long int) - 1] == 1;4546 /* Are we little or big endian? From Harbison&Steele. */ 4547 union 4548 { 4549 long int l; 4550 char c[sizeof (long int)]; 4551 } u; 4552 u.l = 1; 4553 return u.c[sizeof (long int) - 1] == 1; 4855 4554 4856 4555 ; … … 4858 4557 } 4859 4558 _ACEOF 4860 rm -f conftest$ac_exeext 4861 if { (ac_try="$ac_link" 4862 case "(($ac_try" in 4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4864 *) ac_try_echo=$ac_try;; 4865 esac 4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4867 (eval "$ac_link") 2>&5 4868 ac_status=$? 4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4871 { (case "(($ac_try" in 4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4873 *) ac_try_echo=$ac_try;; 4874 esac 4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4876 (eval "$ac_try") 2>&5 4877 ac_status=$? 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); }; }; then 4559 if ac_fn_c_try_run "$LINENO"; then : 4880 4560 ac_cv_c_bigendian=no 4881 4561 else 4882 echo "$as_me: program exited with status $ac_status" >&5 4883 echo "$as_me: failed program was:" >&5 4884 sed 's/^/| /' conftest.$ac_ext >&5 4885 4886 ( exit $ac_status ) 4887 ac_cv_c_bigendian=yes 4888 fi 4889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4890 fi 4891 4892 4893 fi 4894 4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4896 fi 4897 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4898 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4899 case $ac_cv_c_bigendian in 4900 yes) 4901 4902 cat >>confdefs.h <<\_ACEOF 4903 #define WORDS_BIGENDIAN 1 4904 _ACEOF 4905 ;; 4906 no) 4907 ;; 4908 *) 4909 { { echo "$as_me:$LINENO: error: unknown endianness 4910 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4911 echo "$as_me: error: unknown endianness 4912 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4913 { (exit 1); exit 1; }; } ;; 4914 esac 4562 ac_cv_c_bigendian=yes 4563 fi 4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4565 conftest.$ac_objext conftest.beam conftest.$ac_ext 4566 fi 4567 4568 fi 4569 fi 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4571 $as_echo "$ac_cv_c_bigendian" >&6; } 4572 case $ac_cv_c_bigendian in #( 4573 yes) 4574 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4575 ;; #( 4576 no) 4577 ;; #( 4578 universal) 4579 4580 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4581 4582 ;; #( 4583 *) 4584 as_fn_error "unknown endianness 4585 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4586 esac 4915 4587 4916 4588 4917 4589 case $target in 4918 4590 *mingw* | *cygw* | *win32* | *w32* ) 4919 cat >>confdefs.h <<\_ACEOF 4920 #define PJ_WIN32 1 4921 _ACEOF 4922 4923 cat >>confdefs.h <<\_ACEOF 4924 #define PJ_WIN32_WINNT 0x0400 4925 _ACEOF 4926 4927 cat >>confdefs.h <<\_ACEOF 4928 #define WIN32_LEAN_AND_MEAN 1 4929 _ACEOF 4591 $as_echo "#define PJ_WIN32 1" >>confdefs.h 4592 4593 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h 4594 4595 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h 4930 4596 4931 4597 ;; 4932 4598 *darwin*) 4933 cat >>confdefs.h <<\_ACEOF 4934 #define PJ_DARWINOS 1 4935 _ACEOF 4599 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h 4936 4600 4937 4601 ;; 4938 4602 *linux*) 4939 cat >>confdefs.h <<\_ACEOF 4940 #define PJ_LINUX 1 4941 _ACEOF 4603 $as_echo "#define PJ_LINUX 1" >>confdefs.h 4942 4604 4943 4605 ;; 4944 4606 *rtems*) 4945 cat >>confdefs.h <<\_ACEOF 4946 #define PJ_RTEMS 1 4947 _ACEOF 4607 $as_echo "#define PJ_RTEMS 1" >>confdefs.h 4948 4608 4949 4609 ;; 4950 4610 *sunos* | *solaris* ) 4951 cat >>confdefs.h <<\_ACEOF 4952 #define PJ_SUNOS 1 4953 _ACEOF 4611 $as_echo "#define PJ_SUNOS 1" >>confdefs.h 4954 4612 4955 4613 ;; … … 4962 4620 4963 4621 # Check whether --enable-floating-point was given. 4964 if test "${enable_floating_point+set}" = set; then 4622 if test "${enable_floating_point+set}" = set; then : 4965 4623 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then 4966 cat >>confdefs.h <<\_ACEOF 4967 #define PJ_HAS_FLOATING_POINT 0 4968 _ACEOF 4969 4970 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 4971 echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; } 4624 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h 4625 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5 4627 $as_echo "Checking if floating point is disabled... yes" >&6; } 4972 4628 fi 4973 4629 else 4974 4630 4975 cat >>confdefs.h <<\_ACEOF 4976 #define PJ_HAS_FLOATING_POINT 1 4977 _ACEOF 4978 4979 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 4980 echo "${ECHO_T}Checking if floating point is disabled... no" >&6; } 4981 4982 { echo "$as_me:$LINENO: checking for fmod in -lm" >&5 4983 echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; } 4984 if test "${ac_cv_lib_m_fmod+set}" = set; then 4985 echo $ECHO_N "(cached) $ECHO_C" >&6 4631 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h 4632 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5 4634 $as_echo "Checking if floating point is disabled... no" >&6; } 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5 4636 $as_echo_n "checking for fmod in -lm... " >&6; } 4637 if test "${ac_cv_lib_m_fmod+set}" = set; then : 4638 $as_echo_n "(cached) " >&6 4986 4639 else 4987 4640 ac_check_lib_save_LIBS=$LIBS 4988 4641 LIBS="-lm $LIBS" 4989 cat >conftest.$ac_ext <<_ACEOF 4990 /* confdefs.h. */ 4991 _ACEOF 4992 cat confdefs.h >>conftest.$ac_ext 4993 cat >>conftest.$ac_ext <<_ACEOF 4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994 4643 /* end confdefs.h. */ 4995 4644 … … 5009 4658 } 5010 4659 _ACEOF 5011 rm -f conftest.$ac_objext conftest$ac_exeext 5012 if { (ac_try="$ac_link" 5013 case "(($ac_try" in 5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5015 *) ac_try_echo=$ac_try;; 5016 esac 5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5018 (eval "$ac_link") 2>conftest.er1 5019 ac_status=$? 5020 grep -v '^ *+' conftest.er1 >conftest.err 5021 rm -f conftest.er1 5022 cat conftest.err >&5 5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5024 (exit $ac_status); } && { 5025 test -z "$ac_c_werror_flag" || 5026 test ! -s conftest.err 5027 } && test -s conftest$ac_exeext && 5028 $as_test_x conftest$ac_exeext; then 4660 if ac_fn_c_try_link "$LINENO"; then : 5029 4661 ac_cv_lib_m_fmod=yes 5030 4662 else 5031 echo "$as_me: failed program was:" >&5 5032 sed 's/^/| /' conftest.$ac_ext >&5 5033 5034 ac_cv_lib_m_fmod=no 5035 fi 5036 5037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5038 conftest$ac_exeext conftest.$ac_ext 4663 ac_cv_lib_m_fmod=no 4664 fi 4665 rm -f core conftest.err conftest.$ac_objext \ 4666 conftest$ac_exeext conftest.$ac_ext 5039 4667 LIBS=$ac_check_lib_save_LIBS 5040 4668 fi 5041 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&55042 echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }5043 if test $ac_cv_lib_m_fmod = yes; then4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5 4670 $as_echo "$ac_cv_lib_m_fmod" >&6; } 4671 if test "x$ac_cv_lib_m_fmod" = x""yes; then : 5044 4672 cat >>confdefs.h <<_ACEOF 5045 4673 #define HAVE_LIBM 1 … … 5055 4683 5056 4684 5057 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 5058 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 5059 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } 5060 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 5061 echo $ECHO_N "(cached) $ECHO_C" >&6 5062 fi 5063 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 5064 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } 5065 else 5066 # Is the header compilable? 5067 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 5068 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } 5069 cat >conftest.$ac_ext <<_ACEOF 5070 /* confdefs.h. */ 5071 _ACEOF 5072 cat confdefs.h >>conftest.$ac_ext 5073 cat >>conftest.$ac_ext <<_ACEOF 5074 /* end confdefs.h. */ 5075 $ac_includes_default 5076 #include <arpa/inet.h> 5077 _ACEOF 5078 rm -f conftest.$ac_objext 5079 if { (ac_try="$ac_compile" 5080 case "(($ac_try" in 5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5082 *) ac_try_echo=$ac_try;; 5083 esac 5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5085 (eval "$ac_compile") 2>conftest.er1 5086 ac_status=$? 5087 grep -v '^ *+' conftest.er1 >conftest.err 5088 rm -f conftest.er1 5089 cat conftest.err >&5 5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5091 (exit $ac_status); } && { 5092 test -z "$ac_c_werror_flag" || 5093 test ! -s conftest.err 5094 } && test -s conftest.$ac_objext; then 5095 ac_header_compiler=yes 5096 else 5097 echo "$as_me: failed program was:" >&5 5098 sed 's/^/| /' conftest.$ac_ext >&5 5099 5100 ac_header_compiler=no 5101 fi 5102 5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5105 echo "${ECHO_T}$ac_header_compiler" >&6; } 5106 5107 # Is the header present? 5108 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 5109 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } 5110 cat >conftest.$ac_ext <<_ACEOF 5111 /* confdefs.h. */ 5112 _ACEOF 5113 cat confdefs.h >>conftest.$ac_ext 5114 cat >>conftest.$ac_ext <<_ACEOF 5115 /* end confdefs.h. */ 5116 #include <arpa/inet.h> 5117 _ACEOF 5118 if { (ac_try="$ac_cpp conftest.$ac_ext" 5119 case "(($ac_try" in 5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5121 *) ac_try_echo=$ac_try;; 5122 esac 5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5125 ac_status=$? 5126 grep -v '^ *+' conftest.er1 >conftest.err 5127 rm -f conftest.er1 5128 cat conftest.err >&5 5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5130 (exit $ac_status); } >/dev/null && { 5131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5132 test ! -s conftest.err 5133 }; then 5134 ac_header_preproc=yes 5135 else 5136 echo "$as_me: failed program was:" >&5 5137 sed 's/^/| /' conftest.$ac_ext >&5 5138 5139 ac_header_preproc=no 5140 fi 5141 5142 rm -f conftest.err conftest.$ac_ext 5143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5144 echo "${ECHO_T}$ac_header_preproc" >&6; } 5145 5146 # So? What about this header? 5147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5148 yes:no: ) 5149 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 5150 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5151 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 5152 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} 5153 ac_header_preproc=yes 5154 ;; 5155 no:yes:* ) 5156 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 5157 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} 5158 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 5159 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} 5160 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 5161 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} 5162 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 5163 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} 5164 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 5165 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} 5166 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 5167 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} 5168 5169 ;; 5170 esac 5171 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 5172 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } 5173 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 5174 echo $ECHO_N "(cached) $ECHO_C" >&6 5175 else 5176 ac_cv_header_arpa_inet_h=$ac_header_preproc 5177 fi 5178 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 5179 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } 5180 5181 fi 5182 if test $ac_cv_header_arpa_inet_h = yes; then 5183 cat >>confdefs.h <<\_ACEOF 5184 #define PJ_HAS_ARPA_INET_H 1 5185 _ACEOF 5186 5187 fi 5188 5189 5190 if test "${ac_cv_header_assert_h+set}" = set; then 5191 { echo "$as_me:$LINENO: checking for assert.h" >&5 5192 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } 5193 if test "${ac_cv_header_assert_h+set}" = set; then 5194 echo $ECHO_N "(cached) $ECHO_C" >&6 5195 fi 5196 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 5197 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } 5198 else 5199 # Is the header compilable? 5200 { echo "$as_me:$LINENO: checking assert.h usability" >&5 5201 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; } 5202 cat >conftest.$ac_ext <<_ACEOF 5203 /* confdefs.h. */ 5204 _ACEOF 5205 cat confdefs.h >>conftest.$ac_ext 5206 cat >>conftest.$ac_ext <<_ACEOF 5207 /* end confdefs.h. */ 5208 $ac_includes_default 5209 #include <assert.h> 5210 _ACEOF 5211 rm -f conftest.$ac_objext 5212 if { (ac_try="$ac_compile" 5213 case "(($ac_try" in 5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5215 *) ac_try_echo=$ac_try;; 5216 esac 5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5218 (eval "$ac_compile") 2>conftest.er1 5219 ac_status=$? 5220 grep -v '^ *+' conftest.er1 >conftest.err 5221 rm -f conftest.er1 5222 cat conftest.err >&5 5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5224 (exit $ac_status); } && { 5225 test -z "$ac_c_werror_flag" || 5226 test ! -s conftest.err 5227 } && test -s conftest.$ac_objext; then 5228 ac_header_compiler=yes 5229 else 5230 echo "$as_me: failed program was:" >&5 5231 sed 's/^/| /' conftest.$ac_ext >&5 5232 5233 ac_header_compiler=no 5234 fi 5235 5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5238 echo "${ECHO_T}$ac_header_compiler" >&6; } 5239 5240 # Is the header present? 5241 { echo "$as_me:$LINENO: checking assert.h presence" >&5 5242 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; } 5243 cat >conftest.$ac_ext <<_ACEOF 5244 /* confdefs.h. */ 5245 _ACEOF 5246 cat confdefs.h >>conftest.$ac_ext 5247 cat >>conftest.$ac_ext <<_ACEOF 5248 /* end confdefs.h. */ 5249 #include <assert.h> 5250 _ACEOF 5251 if { (ac_try="$ac_cpp conftest.$ac_ext" 5252 case "(($ac_try" in 5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5254 *) ac_try_echo=$ac_try;; 5255 esac 5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5258 ac_status=$? 5259 grep -v '^ *+' conftest.er1 >conftest.err 5260 rm -f conftest.er1 5261 cat conftest.err >&5 5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5263 (exit $ac_status); } >/dev/null && { 5264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5265 test ! -s conftest.err 5266 }; then 5267 ac_header_preproc=yes 5268 else 5269 echo "$as_me: failed program was:" >&5 5270 sed 's/^/| /' conftest.$ac_ext >&5 5271 5272 ac_header_preproc=no 5273 fi 5274 5275 rm -f conftest.err conftest.$ac_ext 5276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5277 echo "${ECHO_T}$ac_header_preproc" >&6; } 5278 5279 # So? What about this header? 5280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5281 yes:no: ) 5282 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 5283 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5284 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 5285 echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} 5286 ac_header_preproc=yes 5287 ;; 5288 no:yes:* ) 5289 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 5290 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} 5291 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 5292 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} 5293 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 5294 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} 5295 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 5296 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} 5297 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 5298 echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} 5299 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 5300 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} 5301 5302 ;; 5303 esac 5304 { echo "$as_me:$LINENO: checking for assert.h" >&5 5305 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } 5306 if test "${ac_cv_header_assert_h+set}" = set; then 5307 echo $ECHO_N "(cached) $ECHO_C" >&6 5308 else 5309 ac_cv_header_assert_h=$ac_header_preproc 5310 fi 5311 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 5312 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } 5313 5314 fi 5315 if test $ac_cv_header_assert_h = yes; then 5316 cat >>confdefs.h <<\_ACEOF 5317 #define PJ_HAS_ASSERT_H 1 5318 _ACEOF 5319 5320 fi 5321 5322 5323 if test "${ac_cv_header_ctype_h+set}" = set; then 5324 { echo "$as_me:$LINENO: checking for ctype.h" >&5 5325 echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } 5326 if test "${ac_cv_header_ctype_h+set}" = set; then 5327 echo $ECHO_N "(cached) $ECHO_C" >&6 5328 fi 5329 { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 5330 echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } 5331 else 5332 # Is the header compilable? 5333 { echo "$as_me:$LINENO: checking ctype.h usability" >&5 5334 echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; } 5335 cat >conftest.$ac_ext <<_ACEOF 5336 /* confdefs.h. */ 5337 _ACEOF 5338 cat confdefs.h >>conftest.$ac_ext 5339 cat >>conftest.$ac_ext <<_ACEOF 5340 /* end confdefs.h. */ 5341 $ac_includes_default 5342 #include <ctype.h> 5343 _ACEOF 5344 rm -f conftest.$ac_objext 5345 if { (ac_try="$ac_compile" 5346 case "(($ac_try" in 5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5348 *) ac_try_echo=$ac_try;; 5349 esac 5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5351 (eval "$ac_compile") 2>conftest.er1 5352 ac_status=$? 5353 grep -v '^ *+' conftest.er1 >conftest.err 5354 rm -f conftest.er1 5355 cat conftest.err >&5 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); } && { 5358 test -z "$ac_c_werror_flag" || 5359 test ! -s conftest.err 5360 } && test -s conftest.$ac_objext; then 5361 ac_header_compiler=yes 5362 else 5363 echo "$as_me: failed program was:" >&5 5364 sed 's/^/| /' conftest.$ac_ext >&5 5365 5366 ac_header_compiler=no 5367 fi 5368 5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5371 echo "${ECHO_T}$ac_header_compiler" >&6; } 5372 5373 # Is the header present? 5374 { echo "$as_me:$LINENO: checking ctype.h presence" >&5 5375 echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; } 5376 cat >conftest.$ac_ext <<_ACEOF 5377 /* confdefs.h. */ 5378 _ACEOF 5379 cat confdefs.h >>conftest.$ac_ext 5380 cat >>conftest.$ac_ext <<_ACEOF 5381 /* end confdefs.h. */ 5382 #include <ctype.h> 5383 _ACEOF 5384 if { (ac_try="$ac_cpp conftest.$ac_ext" 5385 case "(($ac_try" in 5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5387 *) ac_try_echo=$ac_try;; 5388 esac 5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5391 ac_status=$? 5392 grep -v '^ *+' conftest.er1 >conftest.err 5393 rm -f conftest.er1 5394 cat conftest.err >&5 5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5396 (exit $ac_status); } >/dev/null && { 5397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5398 test ! -s conftest.err 5399 }; then 5400 ac_header_preproc=yes 5401 else 5402 echo "$as_me: failed program was:" >&5 5403 sed 's/^/| /' conftest.$ac_ext >&5 5404 5405 ac_header_preproc=no 5406 fi 5407 5408 rm -f conftest.err conftest.$ac_ext 5409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5410 echo "${ECHO_T}$ac_header_preproc" >&6; } 5411 5412 # So? What about this header? 5413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5414 yes:no: ) 5415 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 5416 echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5417 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 5418 echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} 5419 ac_header_preproc=yes 5420 ;; 5421 no:yes:* ) 5422 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 5423 echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} 5424 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 5425 echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} 5426 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 5427 echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} 5428 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 5429 echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} 5430 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 5431 echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} 5432 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 5433 echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} 5434 5435 ;; 5436 esac 5437 { echo "$as_me:$LINENO: checking for ctype.h" >&5 5438 echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } 5439 if test "${ac_cv_header_ctype_h+set}" = set; then 5440 echo $ECHO_N "(cached) $ECHO_C" >&6 5441 else 5442 ac_cv_header_ctype_h=$ac_header_preproc 5443 fi 5444 { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 5445 echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } 5446 5447 fi 5448 if test $ac_cv_header_ctype_h = yes; then 5449 cat >>confdefs.h <<\_ACEOF 5450 #define PJ_HAS_CTYPE_H 1 5451 _ACEOF 4685 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 4686 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 4687 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h 4688 4689 fi 4690 4691 4692 ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" 4693 if test "x$ac_cv_header_assert_h" = x""yes; then : 4694 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h 4695 4696 fi 4697 4698 4699 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" 4700 if test "x$ac_cv_header_ctype_h" = x""yes; then : 4701 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h 5452 4702 5453 4703 fi … … 5457 4707 case $target in 5458 4708 *mingw* | *cygw* | *win32* | *w32* ) 5459 cat >>confdefs.h <<\_ACEOF 5460 #define PJ_HAS_ERRNO_H 0 5461 _ACEOF 4709 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h 5462 4710 5463 4711 ;; 5464 4712 *) 5465 if test "${ac_cv_header_errno_h+set}" = set; then 5466 { echo "$as_me:$LINENO: checking for errno.h" >&5 5467 echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5468 if test "${ac_cv_header_errno_h+set}" = set; then 5469 echo $ECHO_N "(cached) $ECHO_C" >&6 5470 fi 5471 { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5472 echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5473 else 5474 # Is the header compilable? 5475 { echo "$as_me:$LINENO: checking errno.h usability" >&5 5476 echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5477 cat >conftest.$ac_ext <<_ACEOF 5478 /* confdefs.h. */ 5479 _ACEOF 5480 cat confdefs.h >>conftest.$ac_ext 5481 cat >>conftest.$ac_ext <<_ACEOF 5482 /* end confdefs.h. */ 5483 $ac_includes_default 5484 #include <errno.h> 5485 _ACEOF 5486 rm -f conftest.$ac_objext 5487 if { (ac_try="$ac_compile" 5488 case "(($ac_try" in 5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5490 *) ac_try_echo=$ac_try;; 5491 esac 5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5493 (eval "$ac_compile") 2>conftest.er1 5494 ac_status=$? 5495 grep -v '^ *+' conftest.er1 >conftest.err 5496 rm -f conftest.er1 5497 cat conftest.err >&5 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); } && { 5500 test -z "$ac_c_werror_flag" || 5501 test ! -s conftest.err 5502 } && test -s conftest.$ac_objext; then 5503 ac_header_compiler=yes 5504 else 5505 echo "$as_me: failed program was:" >&5 5506 sed 's/^/| /' conftest.$ac_ext >&5 5507 5508 ac_header_compiler=no 5509 fi 5510 5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5513 echo "${ECHO_T}$ac_header_compiler" >&6; } 5514 5515 # Is the header present? 5516 { echo "$as_me:$LINENO: checking errno.h presence" >&5 5517 echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5518 cat >conftest.$ac_ext <<_ACEOF 5519 /* confdefs.h. */ 5520 _ACEOF 5521 cat confdefs.h >>conftest.$ac_ext 5522 cat >>conftest.$ac_ext <<_ACEOF 5523 /* end confdefs.h. */ 5524 #include <errno.h> 5525 _ACEOF 5526 if { (ac_try="$ac_cpp conftest.$ac_ext" 5527 case "(($ac_try" in 5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5529 *) ac_try_echo=$ac_try;; 5530 esac 5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5533 ac_status=$? 5534 grep -v '^ *+' conftest.er1 >conftest.err 5535 rm -f conftest.er1 5536 cat conftest.err >&5 5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5538 (exit $ac_status); } >/dev/null && { 5539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5540 test ! -s conftest.err 5541 }; then 5542 ac_header_preproc=yes 5543 else 5544 echo "$as_me: failed program was:" >&5 5545 sed 's/^/| /' conftest.$ac_ext >&5 5546 5547 ac_header_preproc=no 5548 fi 5549 5550 rm -f conftest.err conftest.$ac_ext 5551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5552 echo "${ECHO_T}$ac_header_preproc" >&6; } 5553 5554 # So? What about this header? 5555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5556 yes:no: ) 5557 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5558 echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5559 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5560 echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5561 ac_header_preproc=yes 5562 ;; 5563 no:yes:* ) 5564 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5565 echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5566 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5567 echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5568 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5569 echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5570 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5571 echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5572 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5573 echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5574 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5575 echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5576 5577 ;; 5578 esac 5579 { echo "$as_me:$LINENO: checking for errno.h" >&5 5580 echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5581 if test "${ac_cv_header_errno_h+set}" = set; then 5582 echo $ECHO_N "(cached) $ECHO_C" >&6 5583 else 5584 ac_cv_header_errno_h=$ac_header_preproc 5585 fi 5586 { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5587 echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5588 5589 fi 5590 if test $ac_cv_header_errno_h = yes; then 5591 cat >>confdefs.h <<\_ACEOF 5592 #define PJ_HAS_ERRNO_H 1 5593 _ACEOF 4713 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 4714 if test "x$ac_cv_header_errno_h" = x""yes; then : 4715 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h 5594 4716 5595 4717 fi … … 5599 4721 esac 5600 4722 5601 if test "${ac_cv_header_fcntl_h+set}" = set; then 5602 { echo "$as_me:$LINENO: checking for fcntl.h" >&5 5603 echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } 5604 if test "${ac_cv_header_fcntl_h+set}" = set; then 5605 echo $ECHO_N "(cached) $ECHO_C" >&6 5606 fi 5607 { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 5608 echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } 5609 else 5610 # Is the header compilable? 5611 { echo "$as_me:$LINENO: checking fcntl.h usability" >&5 5612 echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; } 5613 cat >conftest.$ac_ext <<_ACEOF 5614 /* confdefs.h. */ 5615 _ACEOF 5616 cat confdefs.h >>conftest.$ac_ext 5617 cat >>conftest.$ac_ext <<_ACEOF 5618 /* end confdefs.h. */ 5619 $ac_includes_default 5620 #include <fcntl.h> 5621 _ACEOF 5622 rm -f conftest.$ac_objext 5623 if { (ac_try="$ac_compile" 5624 case "(($ac_try" in 5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5626 *) ac_try_echo=$ac_try;; 5627 esac 5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5629 (eval "$ac_compile") 2>conftest.er1 5630 ac_status=$? 5631 grep -v '^ *+' conftest.er1 >conftest.err 5632 rm -f conftest.er1 5633 cat conftest.err >&5 5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5635 (exit $ac_status); } && { 5636 test -z "$ac_c_werror_flag" || 5637 test ! -s conftest.err 5638 } && test -s conftest.$ac_objext; then 5639 ac_header_compiler=yes 5640 else 5641 echo "$as_me: failed program was:" >&5 5642 sed 's/^/| /' conftest.$ac_ext >&5 5643 5644 ac_header_compiler=no 5645 fi 5646 5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5649 echo "${ECHO_T}$ac_header_compiler" >&6; } 5650 5651 # Is the header present? 5652 { echo "$as_me:$LINENO: checking fcntl.h presence" >&5 5653 echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; } 5654 cat >conftest.$ac_ext <<_ACEOF 5655 /* confdefs.h. */ 5656 _ACEOF 5657 cat confdefs.h >>conftest.$ac_ext 5658 cat >>conftest.$ac_ext <<_ACEOF 5659 /* end confdefs.h. */ 5660 #include <fcntl.h> 5661 _ACEOF 5662 if { (ac_try="$ac_cpp conftest.$ac_ext" 5663 case "(($ac_try" in 5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5665 *) ac_try_echo=$ac_try;; 5666 esac 5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5669 ac_status=$? 5670 grep -v '^ *+' conftest.er1 >conftest.err 5671 rm -f conftest.er1 5672 cat conftest.err >&5 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); } >/dev/null && { 5675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5676 test ! -s conftest.err 5677 }; then 5678 ac_header_preproc=yes 5679 else 5680 echo "$as_me: failed program was:" >&5 5681 sed 's/^/| /' conftest.$ac_ext >&5 5682 5683 ac_header_preproc=no 5684 fi 5685 5686 rm -f conftest.err conftest.$ac_ext 5687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5688 echo "${ECHO_T}$ac_header_preproc" >&6; } 5689 5690 # So? What about this header? 5691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5692 yes:no: ) 5693 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 5694 echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5695 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 5696 echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} 5697 ac_header_preproc=yes 5698 ;; 5699 no:yes:* ) 5700 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 5701 echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} 5702 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 5703 echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} 5704 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 5705 echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} 5706 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 5707 echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} 5708 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 5709 echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} 5710 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 5711 echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} 5712 5713 ;; 5714 esac 5715 { echo "$as_me:$LINENO: checking for fcntl.h" >&5 5716 echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } 5717 if test "${ac_cv_header_fcntl_h+set}" = set; then 5718 echo $ECHO_N "(cached) $ECHO_C" >&6 5719 else 5720 ac_cv_header_fcntl_h=$ac_header_preproc 5721 fi 5722 { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 5723 echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } 5724 5725 fi 5726 if test $ac_cv_header_fcntl_h = yes; then 5727 cat >>confdefs.h <<\_ACEOF 5728 #define PJ_HAS_FCNTL_H 1 5729 _ACEOF 5730 5731 fi 5732 5733 5734 if test "${ac_cv_header_linux_socket_h+set}" = set; then 5735 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 5736 echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } 5737 if test "${ac_cv_header_linux_socket_h+set}" = set; then 5738 echo $ECHO_N "(cached) $ECHO_C" >&6 5739 fi 5740 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 5741 echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } 5742 else 5743 # Is the header compilable? 5744 { echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 5745 echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; } 5746 cat >conftest.$ac_ext <<_ACEOF 5747 /* confdefs.h. */ 5748 _ACEOF 5749 cat confdefs.h >>conftest.$ac_ext 5750 cat >>conftest.$ac_ext <<_ACEOF 5751 /* end confdefs.h. */ 5752 $ac_includes_default 5753 #include <linux/socket.h> 5754 _ACEOF 5755 rm -f conftest.$ac_objext 5756 if { (ac_try="$ac_compile" 5757 case "(($ac_try" in 5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5759 *) ac_try_echo=$ac_try;; 5760 esac 5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5762 (eval "$ac_compile") 2>conftest.er1 5763 ac_status=$? 5764 grep -v '^ *+' conftest.er1 >conftest.err 5765 rm -f conftest.er1 5766 cat conftest.err >&5 5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5768 (exit $ac_status); } && { 5769 test -z "$ac_c_werror_flag" || 5770 test ! -s conftest.err 5771 } && test -s conftest.$ac_objext; then 5772 ac_header_compiler=yes 5773 else 5774 echo "$as_me: failed program was:" >&5 5775 sed 's/^/| /' conftest.$ac_ext >&5 5776 5777 ac_header_compiler=no 5778 fi 5779 5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5782 echo "${ECHO_T}$ac_header_compiler" >&6; } 5783 5784 # Is the header present? 5785 { echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 5786 echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; } 5787 cat >conftest.$ac_ext <<_ACEOF 5788 /* confdefs.h. */ 5789 _ACEOF 5790 cat confdefs.h >>conftest.$ac_ext 5791 cat >>conftest.$ac_ext <<_ACEOF 5792 /* end confdefs.h. */ 5793 #include <linux/socket.h> 5794 _ACEOF 5795 if { (ac_try="$ac_cpp conftest.$ac_ext" 5796 case "(($ac_try" in 5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5798 *) ac_try_echo=$ac_try;; 5799 esac 5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5802 ac_status=$? 5803 grep -v '^ *+' conftest.er1 >conftest.err 5804 rm -f conftest.er1 5805 cat conftest.err >&5 5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5807 (exit $ac_status); } >/dev/null && { 5808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5809 test ! -s conftest.err 5810 }; then 5811 ac_header_preproc=yes 5812 else 5813 echo "$as_me: failed program was:" >&5 5814 sed 's/^/| /' conftest.$ac_ext >&5 5815 5816 ac_header_preproc=no 5817 fi 5818 5819 rm -f conftest.err conftest.$ac_ext 5820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5821 echo "${ECHO_T}$ac_header_preproc" >&6; } 5822 5823 # So? What about this header? 5824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5825 yes:no: ) 5826 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 5827 echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5828 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 5829 echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} 5830 ac_header_preproc=yes 5831 ;; 5832 no:yes:* ) 5833 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 5834 echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} 5835 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 5836 echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} 5837 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 5838 echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} 5839 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 5840 echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} 5841 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 5842 echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} 5843 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 5844 echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} 5845 5846 ;; 5847 esac 5848 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 5849 echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } 5850 if test "${ac_cv_header_linux_socket_h+set}" = set; then 5851 echo $ECHO_N "(cached) $ECHO_C" >&6 5852 else 5853 ac_cv_header_linux_socket_h=$ac_header_preproc 5854 fi 5855 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 5856 echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } 5857 5858 fi 5859 if test $ac_cv_header_linux_socket_h = yes; then 5860 cat >>confdefs.h <<\_ACEOF 5861 #define PJ_HAS_LINUX_SOCKET_H 1 5862 _ACEOF 5863 5864 fi 5865 5866 5867 if test "${ac_cv_header_malloc_h+set}" = set; then 5868 { echo "$as_me:$LINENO: checking for malloc.h" >&5 5869 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } 5870 if test "${ac_cv_header_malloc_h+set}" = set; then 5871 echo $ECHO_N "(cached) $ECHO_C" >&6 5872 fi 5873 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 5874 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } 5875 else 5876 # Is the header compilable? 5877 { echo "$as_me:$LINENO: checking malloc.h usability" >&5 5878 echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } 5879 cat >conftest.$ac_ext <<_ACEOF 5880 /* confdefs.h. */ 5881 _ACEOF 5882 cat confdefs.h >>conftest.$ac_ext 5883 cat >>conftest.$ac_ext <<_ACEOF 5884 /* end confdefs.h. */ 5885 $ac_includes_default 5886 #include <malloc.h> 5887 _ACEOF 5888 rm -f conftest.$ac_objext 5889 if { (ac_try="$ac_compile" 5890 case "(($ac_try" in 5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5892 *) ac_try_echo=$ac_try;; 5893 esac 5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5895 (eval "$ac_compile") 2>conftest.er1 5896 ac_status=$? 5897 grep -v '^ *+' conftest.er1 >conftest.err 5898 rm -f conftest.er1 5899 cat conftest.err >&5 5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5901 (exit $ac_status); } && { 5902 test -z "$ac_c_werror_flag" || 5903 test ! -s conftest.err 5904 } && test -s conftest.$ac_objext; then 5905 ac_header_compiler=yes 5906 else 5907 echo "$as_me: failed program was:" >&5 5908 sed 's/^/| /' conftest.$ac_ext >&5 5909 5910 ac_header_compiler=no 5911 fi 5912 5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5915 echo "${ECHO_T}$ac_header_compiler" >&6; } 5916 5917 # Is the header present? 5918 { echo "$as_me:$LINENO: checking malloc.h presence" >&5 5919 echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } 5920 cat >conftest.$ac_ext <<_ACEOF 5921 /* confdefs.h. */ 5922 _ACEOF 5923 cat confdefs.h >>conftest.$ac_ext 5924 cat >>conftest.$ac_ext <<_ACEOF 5925 /* end confdefs.h. */ 5926 #include <malloc.h> 5927 _ACEOF 5928 if { (ac_try="$ac_cpp conftest.$ac_ext" 5929 case "(($ac_try" in 5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5931 *) ac_try_echo=$ac_try;; 5932 esac 5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5935 ac_status=$? 5936 grep -v '^ *+' conftest.er1 >conftest.err 5937 rm -f conftest.er1 5938 cat conftest.err >&5 5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5940 (exit $ac_status); } >/dev/null && { 5941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5942 test ! -s conftest.err 5943 }; then 5944 ac_header_preproc=yes 5945 else 5946 echo "$as_me: failed program was:" >&5 5947 sed 's/^/| /' conftest.$ac_ext >&5 5948 5949 ac_header_preproc=no 5950 fi 5951 5952 rm -f conftest.err conftest.$ac_ext 5953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5954 echo "${ECHO_T}$ac_header_preproc" >&6; } 5955 5956 # So? What about this header? 5957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5958 yes:no: ) 5959 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 5960 echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5961 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 5962 echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} 5963 ac_header_preproc=yes 5964 ;; 5965 no:yes:* ) 5966 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 5967 echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} 5968 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 5969 echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} 5970 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 5971 echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} 5972 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 5973 echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} 5974 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 5975 echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} 5976 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 5977 echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} 5978 5979 ;; 5980 esac 5981 { echo "$as_me:$LINENO: checking for malloc.h" >&5 5982 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } 5983 if test "${ac_cv_header_malloc_h+set}" = set; then 5984 echo $ECHO_N "(cached) $ECHO_C" >&6 5985 else 5986 ac_cv_header_malloc_h=$ac_header_preproc 5987 fi 5988 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 5989 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } 5990 5991 fi 5992 if test $ac_cv_header_malloc_h = yes; then 5993 cat >>confdefs.h <<\_ACEOF 5994 #define PJ_HAS_MALLOC_H 1 5995 _ACEOF 5996 5997 fi 5998 5999 6000 if test "${ac_cv_header_netdb_h+set}" = set; then 6001 { echo "$as_me:$LINENO: checking for netdb.h" >&5 6002 echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } 6003 if test "${ac_cv_header_netdb_h+set}" = set; then 6004 echo $ECHO_N "(cached) $ECHO_C" >&6 6005 fi 6006 { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 6007 echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } 6008 else 6009 # Is the header compilable? 6010 { echo "$as_me:$LINENO: checking netdb.h usability" >&5 6011 echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; } 6012 cat >conftest.$ac_ext <<_ACEOF 6013 /* confdefs.h. */ 6014 _ACEOF 6015 cat confdefs.h >>conftest.$ac_ext 6016 cat >>conftest.$ac_ext <<_ACEOF 6017 /* end confdefs.h. */ 6018 $ac_includes_default 6019 #include <netdb.h> 6020 _ACEOF 6021 rm -f conftest.$ac_objext 6022 if { (ac_try="$ac_compile" 6023 case "(($ac_try" in 6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6025 *) ac_try_echo=$ac_try;; 6026 esac 6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6028 (eval "$ac_compile") 2>conftest.er1 6029 ac_status=$? 6030 grep -v '^ *+' conftest.er1 >conftest.err 6031 rm -f conftest.er1 6032 cat conftest.err >&5 6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6034 (exit $ac_status); } && { 6035 test -z "$ac_c_werror_flag" || 6036 test ! -s conftest.err 6037 } && test -s conftest.$ac_objext; then 6038 ac_header_compiler=yes 6039 else 6040 echo "$as_me: failed program was:" >&5 6041 sed 's/^/| /' conftest.$ac_ext >&5 6042 6043 ac_header_compiler=no 6044 fi 6045 6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6048 echo "${ECHO_T}$ac_header_compiler" >&6; } 6049 6050 # Is the header present? 6051 { echo "$as_me:$LINENO: checking netdb.h presence" >&5 6052 echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; } 6053 cat >conftest.$ac_ext <<_ACEOF 6054 /* confdefs.h. */ 6055 _ACEOF 6056 cat confdefs.h >>conftest.$ac_ext 6057 cat >>conftest.$ac_ext <<_ACEOF 6058 /* end confdefs.h. */ 6059 #include <netdb.h> 6060 _ACEOF 6061 if { (ac_try="$ac_cpp conftest.$ac_ext" 6062 case "(($ac_try" in 6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6064 *) ac_try_echo=$ac_try;; 6065 esac 6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6068 ac_status=$? 6069 grep -v '^ *+' conftest.er1 >conftest.err 6070 rm -f conftest.er1 6071 cat conftest.err >&5 6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); } >/dev/null && { 6074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6075 test ! -s conftest.err 6076 }; then 6077 ac_header_preproc=yes 6078 else 6079 echo "$as_me: failed program was:" >&5 6080 sed 's/^/| /' conftest.$ac_ext >&5 6081 6082 ac_header_preproc=no 6083 fi 6084 6085 rm -f conftest.err conftest.$ac_ext 6086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6087 echo "${ECHO_T}$ac_header_preproc" >&6; } 6088 6089 # So? What about this header? 6090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6091 yes:no: ) 6092 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 6093 echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6094 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 6095 echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} 6096 ac_header_preproc=yes 6097 ;; 6098 no:yes:* ) 6099 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 6100 echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} 6101 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 6102 echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} 6103 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 6104 echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} 6105 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 6106 echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} 6107 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 6108 echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} 6109 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 6110 echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} 6111 6112 ;; 6113 esac 6114 { echo "$as_me:$LINENO: checking for netdb.h" >&5 6115 echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } 6116 if test "${ac_cv_header_netdb_h+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118 else 6119 ac_cv_header_netdb_h=$ac_header_preproc 6120 fi 6121 { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 6122 echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } 6123 6124 fi 6125 if test $ac_cv_header_netdb_h = yes; then 6126 cat >>confdefs.h <<\_ACEOF 6127 #define PJ_HAS_NETDB_H 1 6128 _ACEOF 6129 6130 fi 6131 6132 6133 if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 6134 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 6135 echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } 6136 if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 6137 echo $ECHO_N "(cached) $ECHO_C" >&6 6138 fi 6139 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 6140 echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } 6141 else 6142 # Is the header compilable? 6143 { echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 6144 echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; } 6145 cat >conftest.$ac_ext <<_ACEOF 6146 /* confdefs.h. */ 6147 _ACEOF 6148 cat confdefs.h >>conftest.$ac_ext 6149 cat >>conftest.$ac_ext <<_ACEOF 6150 /* end confdefs.h. */ 6151 $ac_includes_default 6152 #include <netinet/in_systm.h> 6153 _ACEOF 6154 rm -f conftest.$ac_objext 6155 if { (ac_try="$ac_compile" 6156 case "(($ac_try" in 6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6158 *) ac_try_echo=$ac_try;; 6159 esac 6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6161 (eval "$ac_compile") 2>conftest.er1 6162 ac_status=$? 6163 grep -v '^ *+' conftest.er1 >conftest.err 6164 rm -f conftest.er1 6165 cat conftest.err >&5 6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6167 (exit $ac_status); } && { 6168 test -z "$ac_c_werror_flag" || 6169 test ! -s conftest.err 6170 } && test -s conftest.$ac_objext; then 6171 ac_header_compiler=yes 6172 else 6173 echo "$as_me: failed program was:" >&5 6174 sed 's/^/| /' conftest.$ac_ext >&5 6175 6176 ac_header_compiler=no 6177 fi 6178 6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6181 echo "${ECHO_T}$ac_header_compiler" >&6; } 6182 6183 # Is the header present? 6184 { echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 6185 echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; } 6186 cat >conftest.$ac_ext <<_ACEOF 6187 /* confdefs.h. */ 6188 _ACEOF 6189 cat confdefs.h >>conftest.$ac_ext 6190 cat >>conftest.$ac_ext <<_ACEOF 6191 /* end confdefs.h. */ 6192 #include <netinet/in_systm.h> 6193 _ACEOF 6194 if { (ac_try="$ac_cpp conftest.$ac_ext" 6195 case "(($ac_try" in 6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6197 *) ac_try_echo=$ac_try;; 6198 esac 6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6201 ac_status=$? 6202 grep -v '^ *+' conftest.er1 >conftest.err 6203 rm -f conftest.er1 6204 cat conftest.err >&5 6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6206 (exit $ac_status); } >/dev/null && { 6207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6208 test ! -s conftest.err 6209 }; then 6210 ac_header_preproc=yes 6211 else 6212 echo "$as_me: failed program was:" >&5 6213 sed 's/^/| /' conftest.$ac_ext >&5 6214 6215 ac_header_preproc=no 6216 fi 6217 6218 rm -f conftest.err conftest.$ac_ext 6219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6220 echo "${ECHO_T}$ac_header_preproc" >&6; } 6221 6222 # So? What about this header? 6223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6224 yes:no: ) 6225 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5 6226 echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6227 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5 6228 echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;} 6229 ac_header_preproc=yes 6230 ;; 6231 no:yes:* ) 6232 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5 6233 echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;} 6234 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5 6235 echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;} 6236 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5 6237 echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;} 6238 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5 6239 echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;} 6240 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5 6241 echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;} 6242 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5 6243 echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} 6244 6245 ;; 6246 esac 6247 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 6248 echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } 6249 if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 6250 echo $ECHO_N "(cached) $ECHO_C" >&6 6251 else 6252 ac_cv_header_netinet_in_systm_h=$ac_header_preproc 6253 fi 6254 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 6255 echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } 6256 6257 fi 6258 if test $ac_cv_header_netinet_in_systm_h = yes; then 6259 cat >>confdefs.h <<\_ACEOF 6260 #define PJ_HAS_NETINET_IN_SYSTM_H 1 6261 _ACEOF 6262 6263 fi 6264 6265 6266 if test "${ac_cv_header_netinet_in_h+set}" = set; then 6267 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 6268 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } 6269 if test "${ac_cv_header_netinet_in_h+set}" = set; then 6270 echo $ECHO_N "(cached) $ECHO_C" >&6 6271 fi 6272 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 6273 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } 6274 else 6275 # Is the header compilable? 6276 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 6277 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } 6278 cat >conftest.$ac_ext <<_ACEOF 6279 /* confdefs.h. */ 6280 _ACEOF 6281 cat confdefs.h >>conftest.$ac_ext 6282 cat >>conftest.$ac_ext <<_ACEOF 6283 /* end confdefs.h. */ 6284 $ac_includes_default 6285 #include <netinet/in.h> 6286 _ACEOF 6287 rm -f conftest.$ac_objext 6288 if { (ac_try="$ac_compile" 6289 case "(($ac_try" in 6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6291 *) ac_try_echo=$ac_try;; 6292 esac 6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6294 (eval "$ac_compile") 2>conftest.er1 6295 ac_status=$? 6296 grep -v '^ *+' conftest.er1 >conftest.err 6297 rm -f conftest.er1 6298 cat conftest.err >&5 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); } && { 6301 test -z "$ac_c_werror_flag" || 6302 test ! -s conftest.err 6303 } && test -s conftest.$ac_objext; then 6304 ac_header_compiler=yes 6305 else 6306 echo "$as_me: failed program was:" >&5 6307 sed 's/^/| /' conftest.$ac_ext >&5 6308 6309 ac_header_compiler=no 6310 fi 6311 6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6314 echo "${ECHO_T}$ac_header_compiler" >&6; } 6315 6316 # Is the header present? 6317 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 6318 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } 6319 cat >conftest.$ac_ext <<_ACEOF 6320 /* confdefs.h. */ 6321 _ACEOF 6322 cat confdefs.h >>conftest.$ac_ext 6323 cat >>conftest.$ac_ext <<_ACEOF 6324 /* end confdefs.h. */ 6325 #include <netinet/in.h> 6326 _ACEOF 6327 if { (ac_try="$ac_cpp conftest.$ac_ext" 6328 case "(($ac_try" in 6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6330 *) ac_try_echo=$ac_try;; 6331 esac 6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6334 ac_status=$? 6335 grep -v '^ *+' conftest.er1 >conftest.err 6336 rm -f conftest.er1 6337 cat conftest.err >&5 6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6339 (exit $ac_status); } >/dev/null && { 6340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6341 test ! -s conftest.err 6342 }; then 6343 ac_header_preproc=yes 6344 else 6345 echo "$as_me: failed program was:" >&5 6346 sed 's/^/| /' conftest.$ac_ext >&5 6347 6348 ac_header_preproc=no 6349 fi 6350 6351 rm -f conftest.err conftest.$ac_ext 6352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6353 echo "${ECHO_T}$ac_header_preproc" >&6; } 6354 6355 # So? What about this header? 6356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6357 yes:no: ) 6358 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 6359 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6360 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 6361 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} 6362 ac_header_preproc=yes 6363 ;; 6364 no:yes:* ) 6365 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 6366 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} 6367 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 6368 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} 6369 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 6370 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} 6371 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 6372 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} 6373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 6374 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} 6375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 6376 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} 6377 6378 ;; 6379 esac 6380 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 6381 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } 6382 if test "${ac_cv_header_netinet_in_h+set}" = set; then 6383 echo $ECHO_N "(cached) $ECHO_C" >&6 6384 else 6385 ac_cv_header_netinet_in_h=$ac_header_preproc 6386 fi 6387 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 6388 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } 6389 6390 fi 6391 if test $ac_cv_header_netinet_in_h = yes; then 6392 cat >>confdefs.h <<\_ACEOF 6393 #define PJ_HAS_NETINET_IN_H 1 6394 _ACEOF 6395 6396 fi 6397 6398 6399 { echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 6400 echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; } 6401 if test "${ac_cv_header_netinet_ip_h+set}" = set; then 6402 echo $ECHO_N "(cached) $ECHO_C" >&6 6403 else 6404 cat >conftest.$ac_ext <<_ACEOF 6405 /* confdefs.h. */ 6406 _ACEOF 6407 cat confdefs.h >>conftest.$ac_ext 6408 cat >>conftest.$ac_ext <<_ACEOF 6409 /* end confdefs.h. */ 6410 #if PJ_HAS_SYS_TYPES_H 4723 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 4724 if test "x$ac_cv_header_fcntl_h" = x""yes; then : 4725 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h 4726 4727 fi 4728 4729 4730 ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default" 4731 if test "x$ac_cv_header_linux_socket_h" = x""yes; then : 4732 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h 4733 4734 fi 4735 4736 4737 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 4738 if test "x$ac_cv_header_malloc_h" = x""yes; then : 4739 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h 4740 4741 fi 4742 4743 4744 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 4745 if test "x$ac_cv_header_netdb_h" = x""yes; then : 4746 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h 4747 4748 fi 4749 4750 4751 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" 4752 if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then : 4753 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h 4754 4755 fi 4756 4757 4758 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 4759 if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 4760 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h 4761 4762 fi 4763 4764 4765 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H 6411 4766 # include <sys/types.h> 6412 4767 #endif … … 6418 4773 #endif 6419 4774 6420 6421 #include <netinet/ip.h> 6422 _ACEOF 6423 rm -f conftest.$ac_objext 6424 if { (ac_try="$ac_compile" 6425 case "(($ac_try" in 6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6427 *) ac_try_echo=$ac_try;; 6428 esac 6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6430 (eval "$ac_compile") 2>conftest.er1 6431 ac_status=$? 6432 grep -v '^ *+' conftest.er1 >conftest.err 6433 rm -f conftest.er1 6434 cat conftest.err >&5 6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6436 (exit $ac_status); } && { 6437 test -z "$ac_c_werror_flag" || 6438 test ! -s conftest.err 6439 } && test -s conftest.$ac_objext; then 6440 ac_cv_header_netinet_ip_h=yes 6441 else 6442 echo "$as_me: failed program was:" >&5 6443 sed 's/^/| /' conftest.$ac_ext >&5 6444 6445 ac_cv_header_netinet_ip_h=no 6446 fi 6447 6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6449 fi 6450 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 6451 echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; } 6452 if test $ac_cv_header_netinet_ip_h = yes; then 6453 cat >>confdefs.h <<\_ACEOF 6454 #define PJ_HAS_NETINET_IP_H 1 6455 _ACEOF 6456 6457 fi 6458 6459 6460 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then 6461 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 6462 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } 6463 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then 6464 echo $ECHO_N "(cached) $ECHO_C" >&6 6465 fi 6466 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 6467 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } 6468 else 6469 # Is the header compilable? 6470 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5 6471 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; } 6472 cat >conftest.$ac_ext <<_ACEOF 6473 /* confdefs.h. */ 6474 _ACEOF 6475 cat confdefs.h >>conftest.$ac_ext 6476 cat >>conftest.$ac_ext <<_ACEOF 6477 /* end confdefs.h. */ 6478 $ac_includes_default 6479 #include <netinet/tcp.h> 6480 _ACEOF 6481 rm -f conftest.$ac_objext 6482 if { (ac_try="$ac_compile" 6483 case "(($ac_try" in 6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6485 *) ac_try_echo=$ac_try;; 6486 esac 6487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6488 (eval "$ac_compile") 2>conftest.er1 6489 ac_status=$? 6490 grep -v '^ *+' conftest.er1 >conftest.err 6491 rm -f conftest.er1 6492 cat conftest.err >&5 6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6494 (exit $ac_status); } && { 6495 test -z "$ac_c_werror_flag" || 6496 test ! -s conftest.err 6497 } && test -s conftest.$ac_objext; then 6498 ac_header_compiler=yes 6499 else 6500 echo "$as_me: failed program was:" >&5 6501 sed 's/^/| /' conftest.$ac_ext >&5 6502 6503 ac_header_compiler=no 6504 fi 6505 6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6508 echo "${ECHO_T}$ac_header_compiler" >&6; } 6509 6510 # Is the header present? 6511 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5 6512 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; } 6513 cat >conftest.$ac_ext <<_ACEOF 6514 /* confdefs.h. */ 6515 _ACEOF 6516 cat confdefs.h >>conftest.$ac_ext 6517 cat >>conftest.$ac_ext <<_ACEOF 6518 /* end confdefs.h. */ 6519 #include <netinet/tcp.h> 6520 _ACEOF 6521 if { (ac_try="$ac_cpp conftest.$ac_ext" 6522 case "(($ac_try" in 6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6524 *) ac_try_echo=$ac_try;; 6525 esac 6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6528 ac_status=$? 6529 grep -v '^ *+' conftest.er1 >conftest.err 6530 rm -f conftest.er1 6531 cat conftest.err >&5 6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6533 (exit $ac_status); } >/dev/null && { 6534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6535 test ! -s conftest.err 6536 }; then 6537 ac_header_preproc=yes 6538 else 6539 echo "$as_me: failed program was:" >&5 6540 sed 's/^/| /' conftest.$ac_ext >&5 6541 6542 ac_header_preproc=no 6543 fi 6544 6545 rm -f conftest.err conftest.$ac_ext 6546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6547 echo "${ECHO_T}$ac_header_preproc" >&6; } 6548 6549 # So? What about this header? 6550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6551 yes:no: ) 6552 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5 6553 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6554 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5 6555 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;} 6556 ac_header_preproc=yes 6557 ;; 6558 no:yes:* ) 6559 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5 6560 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;} 6561 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5 6562 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;} 6563 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5 6564 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;} 6565 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5 6566 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;} 6567 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5 6568 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;} 6569 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5 6570 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;} 6571 6572 ;; 6573 esac 6574 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 6575 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } 6576 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then 6577 echo $ECHO_N "(cached) $ECHO_C" >&6 6578 else 6579 ac_cv_header_netinet_tcp_h=$ac_header_preproc 6580 fi 6581 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 6582 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } 6583 6584 fi 6585 if test $ac_cv_header_netinet_tcp_h = yes; then 6586 cat >>confdefs.h <<\_ACEOF 6587 #define PJ_HAS_NETINET_TCP_H 1 6588 _ACEOF 6589 6590 fi 6591 6592 6593 if test "${ac_cv_header_ifaddrs_h+set}" = set; then 6594 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 6595 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } 6596 if test "${ac_cv_header_ifaddrs_h+set}" = set; then 6597 echo $ECHO_N "(cached) $ECHO_C" >&6 6598 fi 6599 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 6600 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } 6601 else 6602 # Is the header compilable? 6603 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 6604 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; } 6605 cat >conftest.$ac_ext <<_ACEOF 6606 /* confdefs.h. */ 6607 _ACEOF 6608 cat confdefs.h >>conftest.$ac_ext 6609 cat >>conftest.$ac_ext <<_ACEOF 6610 /* end confdefs.h. */ 6611 $ac_includes_default 6612 #include <ifaddrs.h> 6613 _ACEOF 6614 rm -f conftest.$ac_objext 6615 if { (ac_try="$ac_compile" 6616 case "(($ac_try" in 6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6618 *) ac_try_echo=$ac_try;; 6619 esac 6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6621 (eval "$ac_compile") 2>conftest.er1 6622 ac_status=$? 6623 grep -v '^ *+' conftest.er1 >conftest.err 6624 rm -f conftest.er1 6625 cat conftest.err >&5 6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && { 6628 test -z "$ac_c_werror_flag" || 6629 test ! -s conftest.err 6630 } && test -s conftest.$ac_objext; then 6631 ac_header_compiler=yes 6632 else 6633 echo "$as_me: failed program was:" >&5 6634 sed 's/^/| /' conftest.$ac_ext >&5 6635 6636 ac_header_compiler=no 6637 fi 6638 6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6641 echo "${ECHO_T}$ac_header_compiler" >&6; } 6642 6643 # Is the header present? 6644 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 6645 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; } 6646 cat >conftest.$ac_ext <<_ACEOF 6647 /* confdefs.h. */ 6648 _ACEOF 6649 cat confdefs.h >>conftest.$ac_ext 6650 cat >>conftest.$ac_ext <<_ACEOF 6651 /* end confdefs.h. */ 6652 #include <ifaddrs.h> 6653 _ACEOF 6654 if { (ac_try="$ac_cpp conftest.$ac_ext" 6655 case "(($ac_try" in 6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6657 *) ac_try_echo=$ac_try;; 6658 esac 6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6661 ac_status=$? 6662 grep -v '^ *+' conftest.er1 >conftest.err 6663 rm -f conftest.er1 6664 cat conftest.err >&5 6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6666 (exit $ac_status); } >/dev/null && { 6667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6668 test ! -s conftest.err 6669 }; then 6670 ac_header_preproc=yes 6671 else 6672 echo "$as_me: failed program was:" >&5 6673 sed 's/^/| /' conftest.$ac_ext >&5 6674 6675 ac_header_preproc=no 6676 fi 6677 6678 rm -f conftest.err conftest.$ac_ext 6679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6680 echo "${ECHO_T}$ac_header_preproc" >&6; } 6681 6682 # So? What about this header? 6683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6684 yes:no: ) 6685 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 6686 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6687 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 6688 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} 6689 ac_header_preproc=yes 6690 ;; 6691 no:yes:* ) 6692 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 6693 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} 6694 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 6695 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} 6696 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 6697 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} 6698 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 6699 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} 6700 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 6701 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} 6702 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 6703 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} 6704 6705 ;; 6706 esac 6707 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 6708 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } 6709 if test "${ac_cv_header_ifaddrs_h+set}" = set; then 6710 echo $ECHO_N "(cached) $ECHO_C" >&6 6711 else 6712 ac_cv_header_ifaddrs_h=$ac_header_preproc 6713 fi 6714 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 6715 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } 6716 6717 fi 6718 if test $ac_cv_header_ifaddrs_h = yes; then 6719 { echo "$as_me:$LINENO: checking for getifaddrs" >&5 6720 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; } 6721 if test "${ac_cv_func_getifaddrs+set}" = set; then 6722 echo $ECHO_N "(cached) $ECHO_C" >&6 6723 else 6724 cat >conftest.$ac_ext <<_ACEOF 6725 /* confdefs.h. */ 6726 _ACEOF 6727 cat confdefs.h >>conftest.$ac_ext 6728 cat >>conftest.$ac_ext <<_ACEOF 6729 /* end confdefs.h. */ 6730 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs. 6731 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6732 #define getifaddrs innocuous_getifaddrs 6733 6734 /* System header to define __stub macros and hopefully few prototypes, 6735 which can conflict with char getifaddrs (); below. 6736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6737 <limits.h> exists even on freestanding compilers. */ 6738 6739 #ifdef __STDC__ 6740 # include <limits.h> 6741 #else 6742 # include <assert.h> 6743 #endif 6744 6745 #undef getifaddrs 6746 6747 /* Override any GCC internal prototype to avoid an error. 6748 Use char because int might match the return type of a GCC 6749 builtin and then its argument prototype would still apply. */ 6750 #ifdef __cplusplus 6751 extern "C" 6752 #endif 6753 char getifaddrs (); 6754 /* The GNU C library defines this for functions which it implements 6755 to always fail with ENOSYS. Some functions are actually named 6756 something starting with __ and the normal name is an alias. */ 6757 #if defined __stub_getifaddrs || defined __stub___getifaddrs 6758 choke me 6759 #endif 6760 6761 int 6762 main () 6763 { 6764 return getifaddrs (); 6765 ; 6766 return 0; 6767 } 6768 _ACEOF 6769 rm -f conftest.$ac_objext conftest$ac_exeext 6770 if { (ac_try="$ac_link" 6771 case "(($ac_try" in 6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6773 *) ac_try_echo=$ac_try;; 6774 esac 6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6776 (eval "$ac_link") 2>conftest.er1 6777 ac_status=$? 6778 grep -v '^ *+' conftest.er1 >conftest.err 6779 rm -f conftest.er1 6780 cat conftest.err >&5 6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6782 (exit $ac_status); } && { 6783 test -z "$ac_c_werror_flag" || 6784 test ! -s conftest.err 6785 } && test -s conftest$ac_exeext && 6786 $as_test_x conftest$ac_exeext; then 6787 ac_cv_func_getifaddrs=yes 6788 else 6789 echo "$as_me: failed program was:" >&5 6790 sed 's/^/| /' conftest.$ac_ext >&5 6791 6792 ac_cv_func_getifaddrs=no 6793 fi 6794 6795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6796 conftest$ac_exeext conftest.$ac_ext 6797 fi 6798 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5 6799 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; } 6800 if test $ac_cv_func_getifaddrs = yes; then 6801 cat >>confdefs.h <<\_ACEOF 6802 #define PJ_HAS_IFADDRS_H 1 6803 _ACEOF 6804 6805 fi 6806 6807 fi 6808 6809 6810 if test "${ac_cv_header_semaphore_h+set}" = set; then 6811 { echo "$as_me:$LINENO: checking for semaphore.h" >&5 6812 echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } 6813 if test "${ac_cv_header_semaphore_h+set}" = set; then 6814 echo $ECHO_N "(cached) $ECHO_C" >&6 6815 fi 6816 { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 6817 echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } 6818 else 6819 # Is the header compilable? 6820 { echo "$as_me:$LINENO: checking semaphore.h usability" >&5 6821 echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; } 6822 cat >conftest.$ac_ext <<_ACEOF 6823 /* confdefs.h. */ 6824 _ACEOF 6825 cat confdefs.h >>conftest.$ac_ext 6826 cat >>conftest.$ac_ext <<_ACEOF 6827 /* end confdefs.h. */ 6828 $ac_includes_default 6829 #include <semaphore.h> 6830 _ACEOF 6831 rm -f conftest.$ac_objext 6832 if { (ac_try="$ac_compile" 6833 case "(($ac_try" in 6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6835 *) ac_try_echo=$ac_try;; 6836 esac 6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6838 (eval "$ac_compile") 2>conftest.er1 6839 ac_status=$? 6840 grep -v '^ *+' conftest.er1 >conftest.err 6841 rm -f conftest.er1 6842 cat conftest.err >&5 6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6844 (exit $ac_status); } && { 6845 test -z "$ac_c_werror_flag" || 6846 test ! -s conftest.err 6847 } && test -s conftest.$ac_objext; then 6848 ac_header_compiler=yes 6849 else 6850 echo "$as_me: failed program was:" >&5 6851 sed 's/^/| /' conftest.$ac_ext >&5 6852 6853 ac_header_compiler=no 6854 fi 6855 6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6858 echo "${ECHO_T}$ac_header_compiler" >&6; } 6859 6860 # Is the header present? 6861 { echo "$as_me:$LINENO: checking semaphore.h presence" >&5 6862 echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; } 6863 cat >conftest.$ac_ext <<_ACEOF 6864 /* confdefs.h. */ 6865 _ACEOF 6866 cat confdefs.h >>conftest.$ac_ext 6867 cat >>conftest.$ac_ext <<_ACEOF 6868 /* end confdefs.h. */ 6869 #include <semaphore.h> 6870 _ACEOF 6871 if { (ac_try="$ac_cpp conftest.$ac_ext" 6872 case "(($ac_try" in 6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6874 *) ac_try_echo=$ac_try;; 6875 esac 6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6878 ac_status=$? 6879 grep -v '^ *+' conftest.er1 >conftest.err 6880 rm -f conftest.er1 6881 cat conftest.err >&5 6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6883 (exit $ac_status); } >/dev/null && { 6884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6885 test ! -s conftest.err 6886 }; then 6887 ac_header_preproc=yes 6888 else 6889 echo "$as_me: failed program was:" >&5 6890 sed 's/^/| /' conftest.$ac_ext >&5 6891 6892 ac_header_preproc=no 6893 fi 6894 6895 rm -f conftest.err conftest.$ac_ext 6896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6897 echo "${ECHO_T}$ac_header_preproc" >&6; } 6898 6899 # So? What about this header? 6900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6901 yes:no: ) 6902 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 6903 echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6904 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 6905 echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} 6906 ac_header_preproc=yes 6907 ;; 6908 no:yes:* ) 6909 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 6910 echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} 6911 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 6912 echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} 6913 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 6914 echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} 6915 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 6916 echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} 6917 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 6918 echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} 6919 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 6920 echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} 6921 6922 ;; 6923 esac 6924 { echo "$as_me:$LINENO: checking for semaphore.h" >&5 6925 echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } 6926 if test "${ac_cv_header_semaphore_h+set}" = set; then 6927 echo $ECHO_N "(cached) $ECHO_C" >&6 6928 else 6929 ac_cv_header_semaphore_h=$ac_header_preproc 6930 fi 6931 { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 6932 echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } 6933 6934 fi 6935 if test $ac_cv_header_semaphore_h = yes; then 6936 cat >>confdefs.h <<\_ACEOF 6937 #define PJ_HAS_SEMAPHORE_H 1 6938 _ACEOF 6939 6940 fi 6941 6942 6943 if test "${ac_cv_header_setjmp_h+set}" = set; then 6944 { echo "$as_me:$LINENO: checking for setjmp.h" >&5 6945 echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } 6946 if test "${ac_cv_header_setjmp_h+set}" = set; then 6947 echo $ECHO_N "(cached) $ECHO_C" >&6 6948 fi 6949 { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 6950 echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } 6951 else 6952 # Is the header compilable? 6953 { echo "$as_me:$LINENO: checking setjmp.h usability" >&5 6954 echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; } 6955 cat >conftest.$ac_ext <<_ACEOF 6956 /* confdefs.h. */ 6957 _ACEOF 6958 cat confdefs.h >>conftest.$ac_ext 6959 cat >>conftest.$ac_ext <<_ACEOF 6960 /* end confdefs.h. */ 6961 $ac_includes_default 6962 #include <setjmp.h> 6963 _ACEOF 6964 rm -f conftest.$ac_objext 6965 if { (ac_try="$ac_compile" 6966 case "(($ac_try" in 6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6968 *) ac_try_echo=$ac_try;; 6969 esac 6970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6971 (eval "$ac_compile") 2>conftest.er1 6972 ac_status=$? 6973 grep -v '^ *+' conftest.er1 >conftest.err 6974 rm -f conftest.er1 6975 cat conftest.err >&5 6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6977 (exit $ac_status); } && { 6978 test -z "$ac_c_werror_flag" || 6979 test ! -s conftest.err 6980 } && test -s conftest.$ac_objext; then 6981 ac_header_compiler=yes 6982 else 6983 echo "$as_me: failed program was:" >&5 6984 sed 's/^/| /' conftest.$ac_ext >&5 6985 6986 ac_header_compiler=no 6987 fi 6988 6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6991 echo "${ECHO_T}$ac_header_compiler" >&6; } 6992 6993 # Is the header present? 6994 { echo "$as_me:$LINENO: checking setjmp.h presence" >&5 6995 echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; } 6996 cat >conftest.$ac_ext <<_ACEOF 6997 /* confdefs.h. */ 6998 _ACEOF 6999 cat confdefs.h >>conftest.$ac_ext 7000 cat >>conftest.$ac_ext <<_ACEOF 7001 /* end confdefs.h. */ 7002 #include <setjmp.h> 7003 _ACEOF 7004 if { (ac_try="$ac_cpp conftest.$ac_ext" 7005 case "(($ac_try" in 7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7007 *) ac_try_echo=$ac_try;; 7008 esac 7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7011 ac_status=$? 7012 grep -v '^ *+' conftest.er1 >conftest.err 7013 rm -f conftest.er1 7014 cat conftest.err >&5 7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7016 (exit $ac_status); } >/dev/null && { 7017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7018 test ! -s conftest.err 7019 }; then 7020 ac_header_preproc=yes 7021 else 7022 echo "$as_me: failed program was:" >&5 7023 sed 's/^/| /' conftest.$ac_ext >&5 7024 7025 ac_header_preproc=no 7026 fi 7027 7028 rm -f conftest.err conftest.$ac_ext 7029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7030 echo "${ECHO_T}$ac_header_preproc" >&6; } 7031 7032 # So? What about this header? 7033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7034 yes:no: ) 7035 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 7036 echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7037 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 7038 echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} 7039 ac_header_preproc=yes 7040 ;; 7041 no:yes:* ) 7042 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 7043 echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} 7044 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 7045 echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} 7046 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 7047 echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} 7048 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 7049 echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 7050 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 7051 echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} 7052 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 7053 echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} 7054 7055 ;; 7056 esac 7057 { echo "$as_me:$LINENO: checking for setjmp.h" >&5 7058 echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } 7059 if test "${ac_cv_header_setjmp_h+set}" = set; then 7060 echo $ECHO_N "(cached) $ECHO_C" >&6 7061 else 7062 ac_cv_header_setjmp_h=$ac_header_preproc 7063 fi 7064 { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 7065 echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } 7066 7067 fi 7068 if test $ac_cv_header_setjmp_h = yes; then 7069 cat >>confdefs.h <<\_ACEOF 7070 #define PJ_HAS_SETJMP_H 1 7071 _ACEOF 7072 7073 fi 7074 7075 7076 if test "${ac_cv_header_stdarg_h+set}" = set; then 7077 { echo "$as_me:$LINENO: checking for stdarg.h" >&5 7078 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } 7079 if test "${ac_cv_header_stdarg_h+set}" = set; then 7080 echo $ECHO_N "(cached) $ECHO_C" >&6 7081 fi 7082 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 7083 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } 7084 else 7085 # Is the header compilable? 7086 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 7087 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } 7088 cat >conftest.$ac_ext <<_ACEOF 7089 /* confdefs.h. */ 7090 _ACEOF 7091 cat confdefs.h >>conftest.$ac_ext 7092 cat >>conftest.$ac_ext <<_ACEOF 7093 /* end confdefs.h. */ 7094 $ac_includes_default 7095 #include <stdarg.h> 7096 _ACEOF 7097 rm -f conftest.$ac_objext 7098 if { (ac_try="$ac_compile" 7099 case "(($ac_try" in 7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7101 *) ac_try_echo=$ac_try;; 7102 esac 7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7104 (eval "$ac_compile") 2>conftest.er1 7105 ac_status=$? 7106 grep -v '^ *+' conftest.er1 >conftest.err 7107 rm -f conftest.er1 7108 cat conftest.err >&5 7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7110 (exit $ac_status); } && { 7111 test -z "$ac_c_werror_flag" || 7112 test ! -s conftest.err 7113 } && test -s conftest.$ac_objext; then 7114 ac_header_compiler=yes 7115 else 7116 echo "$as_me: failed program was:" >&5 7117 sed 's/^/| /' conftest.$ac_ext >&5 7118 7119 ac_header_compiler=no 7120 fi 7121 7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7124 echo "${ECHO_T}$ac_header_compiler" >&6; } 7125 7126 # Is the header present? 7127 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 7128 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } 7129 cat >conftest.$ac_ext <<_ACEOF 7130 /* confdefs.h. */ 7131 _ACEOF 7132 cat confdefs.h >>conftest.$ac_ext 7133 cat >>conftest.$ac_ext <<_ACEOF 7134 /* end confdefs.h. */ 7135 #include <stdarg.h> 7136 _ACEOF 7137 if { (ac_try="$ac_cpp conftest.$ac_ext" 7138 case "(($ac_try" in 7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7140 *) ac_try_echo=$ac_try;; 7141 esac 7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7144 ac_status=$? 7145 grep -v '^ *+' conftest.er1 >conftest.err 7146 rm -f conftest.er1 7147 cat conftest.err >&5 7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7149 (exit $ac_status); } >/dev/null && { 7150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7151 test ! -s conftest.err 7152 }; then 7153 ac_header_preproc=yes 7154 else 7155 echo "$as_me: failed program was:" >&5 7156 sed 's/^/| /' conftest.$ac_ext >&5 7157 7158 ac_header_preproc=no 7159 fi 7160 7161 rm -f conftest.err conftest.$ac_ext 7162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7163 echo "${ECHO_T}$ac_header_preproc" >&6; } 7164 7165 # So? What about this header? 7166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7167 yes:no: ) 7168 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 7169 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7170 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 7171 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} 7172 ac_header_preproc=yes 7173 ;; 7174 no:yes:* ) 7175 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 7176 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} 7177 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 7178 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} 7179 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 7180 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} 7181 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 7182 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} 7183 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 7184 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} 7185 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 7186 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} 7187 7188 ;; 7189 esac 7190 { echo "$as_me:$LINENO: checking for stdarg.h" >&5 7191 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } 7192 if test "${ac_cv_header_stdarg_h+set}" = set; then 7193 echo $ECHO_N "(cached) $ECHO_C" >&6 7194 else 7195 ac_cv_header_stdarg_h=$ac_header_preproc 7196 fi 7197 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 7198 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } 7199 7200 fi 7201 if test $ac_cv_header_stdarg_h = yes; then 7202 cat >>confdefs.h <<\_ACEOF 7203 #define PJ_HAS_STDARG_H 1 7204 _ACEOF 7205 7206 fi 7207 7208 7209 if test "${ac_cv_header_stddef_h+set}" = set; then 7210 { echo "$as_me:$LINENO: checking for stddef.h" >&5 7211 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } 7212 if test "${ac_cv_header_stddef_h+set}" = set; then 7213 echo $ECHO_N "(cached) $ECHO_C" >&6 7214 fi 7215 { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 7216 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } 7217 else 7218 # Is the header compilable? 7219 { echo "$as_me:$LINENO: checking stddef.h usability" >&5 7220 echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; } 7221 cat >conftest.$ac_ext <<_ACEOF 7222 /* confdefs.h. */ 7223 _ACEOF 7224 cat confdefs.h >>conftest.$ac_ext 7225 cat >>conftest.$ac_ext <<_ACEOF 7226 /* end confdefs.h. */ 7227 $ac_includes_default 7228 #include <stddef.h> 7229 _ACEOF 7230 rm -f conftest.$ac_objext 7231 if { (ac_try="$ac_compile" 7232 case "(($ac_try" in 7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7234 *) ac_try_echo=$ac_try;; 7235 esac 7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7237 (eval "$ac_compile") 2>conftest.er1 7238 ac_status=$? 7239 grep -v '^ *+' conftest.er1 >conftest.err 7240 rm -f conftest.er1 7241 cat conftest.err >&5 7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7243 (exit $ac_status); } && { 7244 test -z "$ac_c_werror_flag" || 7245 test ! -s conftest.err 7246 } && test -s conftest.$ac_objext; then 7247 ac_header_compiler=yes 7248 else 7249 echo "$as_me: failed program was:" >&5 7250 sed 's/^/| /' conftest.$ac_ext >&5 7251 7252 ac_header_compiler=no 7253 fi 7254 7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7257 echo "${ECHO_T}$ac_header_compiler" >&6; } 7258 7259 # Is the header present? 7260 { echo "$as_me:$LINENO: checking stddef.h presence" >&5 7261 echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; } 7262 cat >conftest.$ac_ext <<_ACEOF 7263 /* confdefs.h. */ 7264 _ACEOF 7265 cat confdefs.h >>conftest.$ac_ext 7266 cat >>conftest.$ac_ext <<_ACEOF 7267 /* end confdefs.h. */ 7268 #include <stddef.h> 7269 _ACEOF 7270 if { (ac_try="$ac_cpp conftest.$ac_ext" 7271 case "(($ac_try" in 7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7273 *) ac_try_echo=$ac_try;; 7274 esac 7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7277 ac_status=$? 7278 grep -v '^ *+' conftest.er1 >conftest.err 7279 rm -f conftest.er1 7280 cat conftest.err >&5 7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7282 (exit $ac_status); } >/dev/null && { 7283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7284 test ! -s conftest.err 7285 }; then 7286 ac_header_preproc=yes 7287 else 7288 echo "$as_me: failed program was:" >&5 7289 sed 's/^/| /' conftest.$ac_ext >&5 7290 7291 ac_header_preproc=no 7292 fi 7293 7294 rm -f conftest.err conftest.$ac_ext 7295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7296 echo "${ECHO_T}$ac_header_preproc" >&6; } 7297 7298 # So? What about this header? 7299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7300 yes:no: ) 7301 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 7302 echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7303 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 7304 echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} 7305 ac_header_preproc=yes 7306 ;; 7307 no:yes:* ) 7308 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 7309 echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} 7310 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 7311 echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} 7312 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 7313 echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} 7314 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 7315 echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} 7316 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 7317 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} 7318 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 7319 echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} 7320 7321 ;; 7322 esac 7323 { echo "$as_me:$LINENO: checking for stddef.h" >&5 7324 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } 7325 if test "${ac_cv_header_stddef_h+set}" = set; then 7326 echo $ECHO_N "(cached) $ECHO_C" >&6 7327 else 7328 ac_cv_header_stddef_h=$ac_header_preproc 7329 fi 7330 { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 7331 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } 7332 7333 fi 7334 if test $ac_cv_header_stddef_h = yes; then 7335 cat >>confdefs.h <<\_ACEOF 7336 #define PJ_HAS_STDDEF_H 1 7337 _ACEOF 7338 7339 fi 7340 7341 7342 if test "${ac_cv_header_stdio_h+set}" = set; then 7343 { echo "$as_me:$LINENO: checking for stdio.h" >&5 7344 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } 7345 if test "${ac_cv_header_stdio_h+set}" = set; then 7346 echo $ECHO_N "(cached) $ECHO_C" >&6 7347 fi 7348 { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 7349 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } 7350 else 7351 # Is the header compilable? 7352 { echo "$as_me:$LINENO: checking stdio.h usability" >&5 7353 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; } 7354 cat >conftest.$ac_ext <<_ACEOF 7355 /* confdefs.h. */ 7356 _ACEOF 7357 cat confdefs.h >>conftest.$ac_ext 7358 cat >>conftest.$ac_ext <<_ACEOF 7359 /* end confdefs.h. */ 7360 $ac_includes_default 7361 #include <stdio.h> 7362 _ACEOF 7363 rm -f conftest.$ac_objext 7364 if { (ac_try="$ac_compile" 7365 case "(($ac_try" in 7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7367 *) ac_try_echo=$ac_try;; 7368 esac 7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7370 (eval "$ac_compile") 2>conftest.er1 7371 ac_status=$? 7372 grep -v '^ *+' conftest.er1 >conftest.err 7373 rm -f conftest.er1 7374 cat conftest.err >&5 7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7376 (exit $ac_status); } && { 7377 test -z "$ac_c_werror_flag" || 7378 test ! -s conftest.err 7379 } && test -s conftest.$ac_objext; then 7380 ac_header_compiler=yes 7381 else 7382 echo "$as_me: failed program was:" >&5 7383 sed 's/^/| /' conftest.$ac_ext >&5 7384 7385 ac_header_compiler=no 7386 fi 7387 7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7390 echo "${ECHO_T}$ac_header_compiler" >&6; } 7391 7392 # Is the header present? 7393 { echo "$as_me:$LINENO: checking stdio.h presence" >&5 7394 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; } 7395 cat >conftest.$ac_ext <<_ACEOF 7396 /* confdefs.h. */ 7397 _ACEOF 7398 cat confdefs.h >>conftest.$ac_ext 7399 cat >>conftest.$ac_ext <<_ACEOF 7400 /* end confdefs.h. */ 7401 #include <stdio.h> 7402 _ACEOF 7403 if { (ac_try="$ac_cpp conftest.$ac_ext" 7404 case "(($ac_try" in 7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7406 *) ac_try_echo=$ac_try;; 7407 esac 7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7410 ac_status=$? 7411 grep -v '^ *+' conftest.er1 >conftest.err 7412 rm -f conftest.er1 7413 cat conftest.err >&5 7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7415 (exit $ac_status); } >/dev/null && { 7416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7417 test ! -s conftest.err 7418 }; then 7419 ac_header_preproc=yes 7420 else 7421 echo "$as_me: failed program was:" >&5 7422 sed 's/^/| /' conftest.$ac_ext >&5 7423 7424 ac_header_preproc=no 7425 fi 7426 7427 rm -f conftest.err conftest.$ac_ext 7428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7429 echo "${ECHO_T}$ac_header_preproc" >&6; } 7430 7431 # So? What about this header? 7432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7433 yes:no: ) 7434 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 7435 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7436 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 7437 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} 7438 ac_header_preproc=yes 7439 ;; 7440 no:yes:* ) 7441 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 7442 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} 7443 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 7444 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} 7445 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 7446 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} 7447 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 7448 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} 7449 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 7450 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} 7451 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 7452 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} 7453 7454 ;; 7455 esac 7456 { echo "$as_me:$LINENO: checking for stdio.h" >&5 7457 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } 7458 if test "${ac_cv_header_stdio_h+set}" = set; then 7459 echo $ECHO_N "(cached) $ECHO_C" >&6 7460 else 7461 ac_cv_header_stdio_h=$ac_header_preproc 7462 fi 7463 { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 7464 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } 7465 7466 fi 7467 if test $ac_cv_header_stdio_h = yes; then 7468 cat >>confdefs.h <<\_ACEOF 7469 #define PJ_HAS_STDIO_H 1 7470 _ACEOF 7471 7472 fi 7473 7474 7475 if test "${ac_cv_header_stdint_h+set}" = set; then 7476 { echo "$as_me:$LINENO: checking for stdint.h" >&5 7477 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 7478 if test "${ac_cv_header_stdint_h+set}" = set; then 7479 echo $ECHO_N "(cached) $ECHO_C" >&6 7480 fi 7481 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 7482 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } 7483 else 7484 # Is the header compilable? 7485 { echo "$as_me:$LINENO: checking stdint.h usability" >&5 7486 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; } 7487 cat >conftest.$ac_ext <<_ACEOF 7488 /* confdefs.h. */ 7489 _ACEOF 7490 cat confdefs.h >>conftest.$ac_ext 7491 cat >>conftest.$ac_ext <<_ACEOF 7492 /* end confdefs.h. */ 7493 $ac_includes_default 7494 #include <stdint.h> 7495 _ACEOF 7496 rm -f conftest.$ac_objext 7497 if { (ac_try="$ac_compile" 7498 case "(($ac_try" in 7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7500 *) ac_try_echo=$ac_try;; 7501 esac 7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7503 (eval "$ac_compile") 2>conftest.er1 7504 ac_status=$? 7505 grep -v '^ *+' conftest.er1 >conftest.err 7506 rm -f conftest.er1 7507 cat conftest.err >&5 7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7509 (exit $ac_status); } && { 7510 test -z "$ac_c_werror_flag" || 7511 test ! -s conftest.err 7512 } && test -s conftest.$ac_objext; then 7513 ac_header_compiler=yes 7514 else 7515 echo "$as_me: failed program was:" >&5 7516 sed 's/^/| /' conftest.$ac_ext >&5 7517 7518 ac_header_compiler=no 7519 fi 7520 7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7523 echo "${ECHO_T}$ac_header_compiler" >&6; } 7524 7525 # Is the header present? 7526 { echo "$as_me:$LINENO: checking stdint.h presence" >&5 7527 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; } 7528 cat >conftest.$ac_ext <<_ACEOF 7529 /* confdefs.h. */ 7530 _ACEOF 7531 cat confdefs.h >>conftest.$ac_ext 7532 cat >>conftest.$ac_ext <<_ACEOF 7533 /* end confdefs.h. */ 7534 #include <stdint.h> 7535 _ACEOF 7536 if { (ac_try="$ac_cpp conftest.$ac_ext" 7537 case "(($ac_try" in 7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7539 *) ac_try_echo=$ac_try;; 7540 esac 7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7543 ac_status=$? 7544 grep -v '^ *+' conftest.er1 >conftest.err 7545 rm -f conftest.er1 7546 cat conftest.err >&5 7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7548 (exit $ac_status); } >/dev/null && { 7549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7550 test ! -s conftest.err 7551 }; then 7552 ac_header_preproc=yes 7553 else 7554 echo "$as_me: failed program was:" >&5 7555 sed 's/^/| /' conftest.$ac_ext >&5 7556 7557 ac_header_preproc=no 7558 fi 7559 7560 rm -f conftest.err conftest.$ac_ext 7561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7562 echo "${ECHO_T}$ac_header_preproc" >&6; } 7563 7564 # So? What about this header? 7565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7566 yes:no: ) 7567 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 7568 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7569 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 7570 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} 7571 ac_header_preproc=yes 7572 ;; 7573 no:yes:* ) 7574 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 7575 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} 7576 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 7577 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} 7578 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 7579 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} 7580 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 7581 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} 7582 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 7583 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} 7584 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 7585 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} 7586 7587 ;; 7588 esac 7589 { echo "$as_me:$LINENO: checking for stdint.h" >&5 7590 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 7591 if test "${ac_cv_header_stdint_h+set}" = set; then 7592 echo $ECHO_N "(cached) $ECHO_C" >&6 7593 else 7594 ac_cv_header_stdint_h=$ac_header_preproc 7595 fi 7596 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 7597 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } 7598 7599 fi 7600 if test $ac_cv_header_stdint_h = yes; then 7601 cat >>confdefs.h <<\_ACEOF 7602 #define PJ_HAS_STDINT_H 1 7603 _ACEOF 7604 7605 fi 7606 7607 7608 if test "${ac_cv_header_stdlib_h+set}" = set; then 7609 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 7610 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 7611 if test "${ac_cv_header_stdlib_h+set}" = set; then 7612 echo $ECHO_N "(cached) $ECHO_C" >&6 7613 fi 7614 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 7615 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 7616 else 7617 # Is the header compilable? 7618 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5 7619 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 7620 cat >conftest.$ac_ext <<_ACEOF 7621 /* confdefs.h. */ 7622 _ACEOF 7623 cat confdefs.h >>conftest.$ac_ext 7624 cat >>conftest.$ac_ext <<_ACEOF 7625 /* end confdefs.h. */ 7626 $ac_includes_default 7627 #include <stdlib.h> 7628 _ACEOF 7629 rm -f conftest.$ac_objext 7630 if { (ac_try="$ac_compile" 7631 case "(($ac_try" in 7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7633 *) ac_try_echo=$ac_try;; 7634 esac 7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7636 (eval "$ac_compile") 2>conftest.er1 7637 ac_status=$? 7638 grep -v '^ *+' conftest.er1 >conftest.err 7639 rm -f conftest.er1 7640 cat conftest.err >&5 7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7642 (exit $ac_status); } && { 7643 test -z "$ac_c_werror_flag" || 7644 test ! -s conftest.err 7645 } && test -s conftest.$ac_objext; then 7646 ac_header_compiler=yes 7647 else 7648 echo "$as_me: failed program was:" >&5 7649 sed 's/^/| /' conftest.$ac_ext >&5 7650 7651 ac_header_compiler=no 7652 fi 7653 7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7656 echo "${ECHO_T}$ac_header_compiler" >&6; } 7657 7658 # Is the header present? 7659 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5 7660 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 7661 cat >conftest.$ac_ext <<_ACEOF 7662 /* confdefs.h. */ 7663 _ACEOF 7664 cat confdefs.h >>conftest.$ac_ext 7665 cat >>conftest.$ac_ext <<_ACEOF 7666 /* end confdefs.h. */ 7667 #include <stdlib.h> 7668 _ACEOF 7669 if { (ac_try="$ac_cpp conftest.$ac_ext" 7670 case "(($ac_try" in 7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7672 *) ac_try_echo=$ac_try;; 7673 esac 7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7676 ac_status=$? 7677 grep -v '^ *+' conftest.er1 >conftest.err 7678 rm -f conftest.er1 7679 cat conftest.err >&5 7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7681 (exit $ac_status); } >/dev/null && { 7682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7683 test ! -s conftest.err 7684 }; then 7685 ac_header_preproc=yes 7686 else 7687 echo "$as_me: failed program was:" >&5 7688 sed 's/^/| /' conftest.$ac_ext >&5 7689 7690 ac_header_preproc=no 7691 fi 7692 7693 rm -f conftest.err conftest.$ac_ext 7694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7695 echo "${ECHO_T}$ac_header_preproc" >&6; } 7696 7697 # So? What about this header? 7698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7699 yes:no: ) 7700 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 7701 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7702 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 7703 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 7704 ac_header_preproc=yes 7705 ;; 7706 no:yes:* ) 7707 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 7708 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 7709 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 7710 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 7711 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 7712 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 7713 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 7714 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 7715 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 7716 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 7717 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 7718 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 7719 7720 ;; 7721 esac 7722 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 7723 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 7724 if test "${ac_cv_header_stdlib_h+set}" = set; then 7725 echo $ECHO_N "(cached) $ECHO_C" >&6 7726 else 7727 ac_cv_header_stdlib_h=$ac_header_preproc 7728 fi 7729 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 7730 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 7731 7732 fi 7733 if test $ac_cv_header_stdlib_h = yes; then 7734 cat >>confdefs.h <<\_ACEOF 7735 #define PJ_HAS_STDLIB_H 1 7736 _ACEOF 7737 7738 fi 7739 7740 7741 if test "${ac_cv_header_string_h+set}" = set; then 7742 { echo "$as_me:$LINENO: checking for string.h" >&5 7743 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 7744 if test "${ac_cv_header_string_h+set}" = set; then 7745 echo $ECHO_N "(cached) $ECHO_C" >&6 7746 fi 7747 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 7748 echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 7749 else 7750 # Is the header compilable? 7751 { echo "$as_me:$LINENO: checking string.h usability" >&5 7752 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 7753 cat >conftest.$ac_ext <<_ACEOF 7754 /* confdefs.h. */ 7755 _ACEOF 7756 cat confdefs.h >>conftest.$ac_ext 7757 cat >>conftest.$ac_ext <<_ACEOF 7758 /* end confdefs.h. */ 7759 $ac_includes_default 7760 #include <string.h> 7761 _ACEOF 7762 rm -f conftest.$ac_objext 7763 if { (ac_try="$ac_compile" 7764 case "(($ac_try" in 7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7766 *) ac_try_echo=$ac_try;; 7767 esac 7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7769 (eval "$ac_compile") 2>conftest.er1 7770 ac_status=$? 7771 grep -v '^ *+' conftest.er1 >conftest.err 7772 rm -f conftest.er1 7773 cat conftest.err >&5 7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7775 (exit $ac_status); } && { 7776 test -z "$ac_c_werror_flag" || 7777 test ! -s conftest.err 7778 } && test -s conftest.$ac_objext; then 7779 ac_header_compiler=yes 7780 else 7781 echo "$as_me: failed program was:" >&5 7782 sed 's/^/| /' conftest.$ac_ext >&5 7783 7784 ac_header_compiler=no 7785 fi 7786 7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7789 echo "${ECHO_T}$ac_header_compiler" >&6; } 7790 7791 # Is the header present? 7792 { echo "$as_me:$LINENO: checking string.h presence" >&5 7793 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 7794 cat >conftest.$ac_ext <<_ACEOF 7795 /* confdefs.h. */ 7796 _ACEOF 7797 cat confdefs.h >>conftest.$ac_ext 7798 cat >>conftest.$ac_ext <<_ACEOF 7799 /* end confdefs.h. */ 7800 #include <string.h> 7801 _ACEOF 7802 if { (ac_try="$ac_cpp conftest.$ac_ext" 7803 case "(($ac_try" in 7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7805 *) ac_try_echo=$ac_try;; 7806 esac 7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7809 ac_status=$? 7810 grep -v '^ *+' conftest.er1 >conftest.err 7811 rm -f conftest.er1 7812 cat conftest.err >&5 7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7814 (exit $ac_status); } >/dev/null && { 7815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7816 test ! -s conftest.err 7817 }; then 7818 ac_header_preproc=yes 7819 else 7820 echo "$as_me: failed program was:" >&5 7821 sed 's/^/| /' conftest.$ac_ext >&5 7822 7823 ac_header_preproc=no 7824 fi 7825 7826 rm -f conftest.err conftest.$ac_ext 7827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7828 echo "${ECHO_T}$ac_header_preproc" >&6; } 7829 7830 # So? What about this header? 7831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7832 yes:no: ) 7833 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 7834 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7835 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 7836 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 7837 ac_header_preproc=yes 7838 ;; 7839 no:yes:* ) 7840 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 7841 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 7842 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 7843 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 7844 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 7845 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 7846 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 7847 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 7848 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 7849 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 7850 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 7851 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 7852 7853 ;; 7854 esac 7855 { echo "$as_me:$LINENO: checking for string.h" >&5 7856 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 7857 if test "${ac_cv_header_string_h+set}" = set; then 7858 echo $ECHO_N "(cached) $ECHO_C" >&6 7859 else 7860 ac_cv_header_string_h=$ac_header_preproc 7861 fi 7862 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 7863 echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 7864 7865 fi 7866 if test $ac_cv_header_string_h = yes; then 7867 cat >>confdefs.h <<\_ACEOF 7868 #define PJ_HAS_STRING_H 1 7869 _ACEOF 7870 7871 fi 7872 7873 7874 if test "${ac_cv_header_sys_ioctl_h+set}" = set; then 7875 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 7876 echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } 7877 if test "${ac_cv_header_sys_ioctl_h+set}" = set; then 7878 echo $ECHO_N "(cached) $ECHO_C" >&6 7879 fi 7880 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 7881 echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } 7882 else 7883 # Is the header compilable? 7884 { echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 7885 echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; } 7886 cat >conftest.$ac_ext <<_ACEOF 7887 /* confdefs.h. */ 7888 _ACEOF 7889 cat confdefs.h >>conftest.$ac_ext 7890 cat >>conftest.$ac_ext <<_ACEOF 7891 /* end confdefs.h. */ 7892 $ac_includes_default 7893 #include <sys/ioctl.h> 7894 _ACEOF 7895 rm -f conftest.$ac_objext 7896 if { (ac_try="$ac_compile" 7897 case "(($ac_try" in 7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7899 *) ac_try_echo=$ac_try;; 7900 esac 7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7902 (eval "$ac_compile") 2>conftest.er1 7903 ac_status=$? 7904 grep -v '^ *+' conftest.er1 >conftest.err 7905 rm -f conftest.er1 7906 cat conftest.err >&5 7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7908 (exit $ac_status); } && { 7909 test -z "$ac_c_werror_flag" || 7910 test ! -s conftest.err 7911 } && test -s conftest.$ac_objext; then 7912 ac_header_compiler=yes 7913 else 7914 echo "$as_me: failed program was:" >&5 7915 sed 's/^/| /' conftest.$ac_ext >&5 7916 7917 ac_header_compiler=no 7918 fi 7919 7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7922 echo "${ECHO_T}$ac_header_compiler" >&6; } 7923 7924 # Is the header present? 7925 { echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 7926 echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; } 7927 cat >conftest.$ac_ext <<_ACEOF 7928 /* confdefs.h. */ 7929 _ACEOF 7930 cat confdefs.h >>conftest.$ac_ext 7931 cat >>conftest.$ac_ext <<_ACEOF 7932 /* end confdefs.h. */ 7933 #include <sys/ioctl.h> 7934 _ACEOF 7935 if { (ac_try="$ac_cpp conftest.$ac_ext" 7936 case "(($ac_try" in 7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7938 *) ac_try_echo=$ac_try;; 7939 esac 7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7942 ac_status=$? 7943 grep -v '^ *+' conftest.er1 >conftest.err 7944 rm -f conftest.er1 7945 cat conftest.err >&5 7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7947 (exit $ac_status); } >/dev/null && { 7948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7949 test ! -s conftest.err 7950 }; then 7951 ac_header_preproc=yes 7952 else 7953 echo "$as_me: failed program was:" >&5 7954 sed 's/^/| /' conftest.$ac_ext >&5 7955 7956 ac_header_preproc=no 7957 fi 7958 7959 rm -f conftest.err conftest.$ac_ext 7960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7961 echo "${ECHO_T}$ac_header_preproc" >&6; } 7962 7963 # So? What about this header? 7964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7965 yes:no: ) 7966 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 7967 echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7968 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 7969 echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} 7970 ac_header_preproc=yes 7971 ;; 7972 no:yes:* ) 7973 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 7974 echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} 7975 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 7976 echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} 7977 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 7978 echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} 7979 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 7980 echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} 7981 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 7982 echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} 7983 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 7984 echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} 7985 7986 ;; 7987 esac 7988 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 7989 echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } 7990 if test "${ac_cv_header_sys_ioctl_h+set}" = set; then 7991 echo $ECHO_N "(cached) $ECHO_C" >&6 7992 else 7993 ac_cv_header_sys_ioctl_h=$ac_header_preproc 7994 fi 7995 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 7996 echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } 7997 7998 fi 7999 if test $ac_cv_header_sys_ioctl_h = yes; then 8000 cat >>confdefs.h <<\_ACEOF 8001 #define PJ_HAS_SYS_IOCTL_H 1 8002 _ACEOF 8003 8004 fi 8005 8006 8007 if test "${ac_cv_header_sys_select_h+set}" = set; then 8008 { echo "$as_me:$LINENO: checking for sys/select.h" >&5 8009 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 8010 if test "${ac_cv_header_sys_select_h+set}" = set; then 8011 echo $ECHO_N "(cached) $ECHO_C" >&6 8012 fi 8013 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 8014 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 8015 else 8016 # Is the header compilable? 8017 { echo "$as_me:$LINENO: checking sys/select.h usability" >&5 8018 echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } 8019 cat >conftest.$ac_ext <<_ACEOF 8020 /* confdefs.h. */ 8021 _ACEOF 8022 cat confdefs.h >>conftest.$ac_ext 8023 cat >>conftest.$ac_ext <<_ACEOF 8024 /* end confdefs.h. */ 8025 $ac_includes_default 8026 #include <sys/select.h> 8027 _ACEOF 8028 rm -f conftest.$ac_objext 8029 if { (ac_try="$ac_compile" 8030 case "(($ac_try" in 8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8032 *) ac_try_echo=$ac_try;; 8033 esac 8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8035 (eval "$ac_compile") 2>conftest.er1 8036 ac_status=$? 8037 grep -v '^ *+' conftest.er1 >conftest.err 8038 rm -f conftest.er1 8039 cat conftest.err >&5 8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8041 (exit $ac_status); } && { 8042 test -z "$ac_c_werror_flag" || 8043 test ! -s conftest.err 8044 } && test -s conftest.$ac_objext; then 8045 ac_header_compiler=yes 8046 else 8047 echo "$as_me: failed program was:" >&5 8048 sed 's/^/| /' conftest.$ac_ext >&5 8049 8050 ac_header_compiler=no 8051 fi 8052 8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8055 echo "${ECHO_T}$ac_header_compiler" >&6; } 8056 8057 # Is the header present? 8058 { echo "$as_me:$LINENO: checking sys/select.h presence" >&5 8059 echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } 8060 cat >conftest.$ac_ext <<_ACEOF 8061 /* confdefs.h. */ 8062 _ACEOF 8063 cat confdefs.h >>conftest.$ac_ext 8064 cat >>conftest.$ac_ext <<_ACEOF 8065 /* end confdefs.h. */ 8066 #include <sys/select.h> 8067 _ACEOF 8068 if { (ac_try="$ac_cpp conftest.$ac_ext" 8069 case "(($ac_try" in 8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8071 *) ac_try_echo=$ac_try;; 8072 esac 8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8075 ac_status=$? 8076 grep -v '^ *+' conftest.er1 >conftest.err 8077 rm -f conftest.er1 8078 cat conftest.err >&5 8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8080 (exit $ac_status); } >/dev/null && { 8081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8082 test ! -s conftest.err 8083 }; then 8084 ac_header_preproc=yes 8085 else 8086 echo "$as_me: failed program was:" >&5 8087 sed 's/^/| /' conftest.$ac_ext >&5 8088 8089 ac_header_preproc=no 8090 fi 8091 8092 rm -f conftest.err conftest.$ac_ext 8093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8094 echo "${ECHO_T}$ac_header_preproc" >&6; } 8095 8096 # So? What about this header? 8097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8098 yes:no: ) 8099 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 8100 echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8101 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 8102 echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} 8103 ac_header_preproc=yes 8104 ;; 8105 no:yes:* ) 8106 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 8107 echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} 8108 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 8109 echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} 8110 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 8111 echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} 8112 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 8113 echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} 8114 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 8115 echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} 8116 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 8117 echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} 8118 8119 ;; 8120 esac 8121 { echo "$as_me:$LINENO: checking for sys/select.h" >&5 8122 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 8123 if test "${ac_cv_header_sys_select_h+set}" = set; then 8124 echo $ECHO_N "(cached) $ECHO_C" >&6 8125 else 8126 ac_cv_header_sys_select_h=$ac_header_preproc 8127 fi 8128 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 8129 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 8130 8131 fi 8132 if test $ac_cv_header_sys_select_h = yes; then 8133 cat >>confdefs.h <<\_ACEOF 8134 #define PJ_HAS_SYS_SELECT_H 1 8135 _ACEOF 8136 8137 fi 8138 8139 8140 if test "${ac_cv_header_sys_socket_h+set}" = set; then 8141 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 8142 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } 8143 if test "${ac_cv_header_sys_socket_h+set}" = set; then 8144 echo $ECHO_N "(cached) $ECHO_C" >&6 8145 fi 8146 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 8147 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } 8148 else 8149 # Is the header compilable? 8150 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 8151 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; } 8152 cat >conftest.$ac_ext <<_ACEOF 8153 /* confdefs.h. */ 8154 _ACEOF 8155 cat confdefs.h >>conftest.$ac_ext 8156 cat >>conftest.$ac_ext <<_ACEOF 8157 /* end confdefs.h. */ 8158 $ac_includes_default 8159 #include <sys/socket.h> 8160 _ACEOF 8161 rm -f conftest.$ac_objext 8162 if { (ac_try="$ac_compile" 8163 case "(($ac_try" in 8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8165 *) ac_try_echo=$ac_try;; 8166 esac 8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8168 (eval "$ac_compile") 2>conftest.er1 8169 ac_status=$? 8170 grep -v '^ *+' conftest.er1 >conftest.err 8171 rm -f conftest.er1 8172 cat conftest.err >&5 8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8174 (exit $ac_status); } && { 8175 test -z "$ac_c_werror_flag" || 8176 test ! -s conftest.err 8177 } && test -s conftest.$ac_objext; then 8178 ac_header_compiler=yes 8179 else 8180 echo "$as_me: failed program was:" >&5 8181 sed 's/^/| /' conftest.$ac_ext >&5 8182 8183 ac_header_compiler=no 8184 fi 8185 8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8188 echo "${ECHO_T}$ac_header_compiler" >&6; } 8189 8190 # Is the header present? 8191 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 8192 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; } 8193 cat >conftest.$ac_ext <<_ACEOF 8194 /* confdefs.h. */ 8195 _ACEOF 8196 cat confdefs.h >>conftest.$ac_ext 8197 cat >>conftest.$ac_ext <<_ACEOF 8198 /* end confdefs.h. */ 8199 #include <sys/socket.h> 8200 _ACEOF 8201 if { (ac_try="$ac_cpp conftest.$ac_ext" 8202 case "(($ac_try" in 8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8204 *) ac_try_echo=$ac_try;; 8205 esac 8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8208 ac_status=$? 8209 grep -v '^ *+' conftest.er1 >conftest.err 8210 rm -f conftest.er1 8211 cat conftest.err >&5 8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8213 (exit $ac_status); } >/dev/null && { 8214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8215 test ! -s conftest.err 8216 }; then 8217 ac_header_preproc=yes 8218 else 8219 echo "$as_me: failed program was:" >&5 8220 sed 's/^/| /' conftest.$ac_ext >&5 8221 8222 ac_header_preproc=no 8223 fi 8224 8225 rm -f conftest.err conftest.$ac_ext 8226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8227 echo "${ECHO_T}$ac_header_preproc" >&6; } 8228 8229 # So? What about this header? 8230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8231 yes:no: ) 8232 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 8233 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8234 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 8235 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} 8236 ac_header_preproc=yes 8237 ;; 8238 no:yes:* ) 8239 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 8240 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} 8241 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 8242 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} 8243 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 8244 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} 8245 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 8246 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} 8247 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 8248 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} 8249 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 8250 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} 8251 8252 ;; 8253 esac 8254 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 8255 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } 8256 if test "${ac_cv_header_sys_socket_h+set}" = set; then 8257 echo $ECHO_N "(cached) $ECHO_C" >&6 8258 else 8259 ac_cv_header_sys_socket_h=$ac_header_preproc 8260 fi 8261 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 8262 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } 8263 8264 fi 8265 if test $ac_cv_header_sys_socket_h = yes; then 8266 cat >>confdefs.h <<\_ACEOF 8267 #define PJ_HAS_SYS_SOCKET_H 1 8268 _ACEOF 8269 8270 fi 8271 8272 8273 if test "${ac_cv_header_sys_time_h+set}" = set; then 8274 { echo "$as_me:$LINENO: checking for sys/time.h" >&5 8275 echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } 8276 if test "${ac_cv_header_sys_time_h+set}" = set; then 8277 echo $ECHO_N "(cached) $ECHO_C" >&6 8278 fi 8279 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 8280 echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } 8281 else 8282 # Is the header compilable? 8283 { echo "$as_me:$LINENO: checking sys/time.h usability" >&5 8284 echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; } 8285 cat >conftest.$ac_ext <<_ACEOF 8286 /* confdefs.h. */ 8287 _ACEOF 8288 cat confdefs.h >>conftest.$ac_ext 8289 cat >>conftest.$ac_ext <<_ACEOF 8290 /* end confdefs.h. */ 8291 $ac_includes_default 8292 #include <sys/time.h> 8293 _ACEOF 8294 rm -f conftest.$ac_objext 8295 if { (ac_try="$ac_compile" 8296 case "(($ac_try" in 8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8298 *) ac_try_echo=$ac_try;; 8299 esac 8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8301 (eval "$ac_compile") 2>conftest.er1 8302 ac_status=$? 8303 grep -v '^ *+' conftest.er1 >conftest.err 8304 rm -f conftest.er1 8305 cat conftest.err >&5 8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 (exit $ac_status); } && { 8308 test -z "$ac_c_werror_flag" || 8309 test ! -s conftest.err 8310 } && test -s conftest.$ac_objext; then 8311 ac_header_compiler=yes 8312 else 8313 echo "$as_me: failed program was:" >&5 8314 sed 's/^/| /' conftest.$ac_ext >&5 8315 8316 ac_header_compiler=no 8317 fi 8318 8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8321 echo "${ECHO_T}$ac_header_compiler" >&6; } 8322 8323 # Is the header present? 8324 { echo "$as_me:$LINENO: checking sys/time.h presence" >&5 8325 echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; } 8326 cat >conftest.$ac_ext <<_ACEOF 8327 /* confdefs.h. */ 8328 _ACEOF 8329 cat confdefs.h >>conftest.$ac_ext 8330 cat >>conftest.$ac_ext <<_ACEOF 8331 /* end confdefs.h. */ 8332 #include <sys/time.h> 8333 _ACEOF 8334 if { (ac_try="$ac_cpp conftest.$ac_ext" 8335 case "(($ac_try" in 8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8337 *) ac_try_echo=$ac_try;; 8338 esac 8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8341 ac_status=$? 8342 grep -v '^ *+' conftest.er1 >conftest.err 8343 rm -f conftest.er1 8344 cat conftest.err >&5 8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8346 (exit $ac_status); } >/dev/null && { 8347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8348 test ! -s conftest.err 8349 }; then 8350 ac_header_preproc=yes 8351 else 8352 echo "$as_me: failed program was:" >&5 8353 sed 's/^/| /' conftest.$ac_ext >&5 8354 8355 ac_header_preproc=no 8356 fi 8357 8358 rm -f conftest.err conftest.$ac_ext 8359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8360 echo "${ECHO_T}$ac_header_preproc" >&6; } 8361 8362 # So? What about this header? 8363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8364 yes:no: ) 8365 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 8366 echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8367 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 8368 echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} 8369 ac_header_preproc=yes 8370 ;; 8371 no:yes:* ) 8372 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 8373 echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} 8374 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 8375 echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} 8376 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 8377 echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} 8378 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 8379 echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} 8380 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 8381 echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} 8382 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 8383 echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} 8384 8385 ;; 8386 esac 8387 { echo "$as_me:$LINENO: checking for sys/time.h" >&5 8388 echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } 8389 if test "${ac_cv_header_sys_time_h+set}" = set; then 8390 echo $ECHO_N "(cached) $ECHO_C" >&6 8391 else 8392 ac_cv_header_sys_time_h=$ac_header_preproc 8393 fi 8394 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 8395 echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } 8396 8397 fi 8398 if test $ac_cv_header_sys_time_h = yes; then 8399 cat >>confdefs.h <<\_ACEOF 8400 #define PJ_HAS_SYS_TIME_H 1 8401 _ACEOF 8402 8403 fi 8404 8405 8406 if test "${ac_cv_header_sys_timeb_h+set}" = set; then 8407 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 8408 echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } 8409 if test "${ac_cv_header_sys_timeb_h+set}" = set; then 8410 echo $ECHO_N "(cached) $ECHO_C" >&6 8411 fi 8412 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 8413 echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } 8414 else 8415 # Is the header compilable? 8416 { echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 8417 echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; } 8418 cat >conftest.$ac_ext <<_ACEOF 8419 /* confdefs.h. */ 8420 _ACEOF 8421 cat confdefs.h >>conftest.$ac_ext 8422 cat >>conftest.$ac_ext <<_ACEOF 8423 /* end confdefs.h. */ 8424 $ac_includes_default 8425 #include <sys/timeb.h> 8426 _ACEOF 8427 rm -f conftest.$ac_objext 8428 if { (ac_try="$ac_compile" 8429 case "(($ac_try" in 8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8431 *) ac_try_echo=$ac_try;; 8432 esac 8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8434 (eval "$ac_compile") 2>conftest.er1 8435 ac_status=$? 8436 grep -v '^ *+' conftest.er1 >conftest.err 8437 rm -f conftest.er1 8438 cat conftest.err >&5 8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8440 (exit $ac_status); } && { 8441 test -z "$ac_c_werror_flag" || 8442 test ! -s conftest.err 8443 } && test -s conftest.$ac_objext; then 8444 ac_header_compiler=yes 8445 else 8446 echo "$as_me: failed program was:" >&5 8447 sed 's/^/| /' conftest.$ac_ext >&5 8448 8449 ac_header_compiler=no 8450 fi 8451 8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8454 echo "${ECHO_T}$ac_header_compiler" >&6; } 8455 8456 # Is the header present? 8457 { echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 8458 echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; } 8459 cat >conftest.$ac_ext <<_ACEOF 8460 /* confdefs.h. */ 8461 _ACEOF 8462 cat confdefs.h >>conftest.$ac_ext 8463 cat >>conftest.$ac_ext <<_ACEOF 8464 /* end confdefs.h. */ 8465 #include <sys/timeb.h> 8466 _ACEOF 8467 if { (ac_try="$ac_cpp conftest.$ac_ext" 8468 case "(($ac_try" in 8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8470 *) ac_try_echo=$ac_try;; 8471 esac 8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8474 ac_status=$? 8475 grep -v '^ *+' conftest.er1 >conftest.err 8476 rm -f conftest.er1 8477 cat conftest.err >&5 8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8479 (exit $ac_status); } >/dev/null && { 8480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8481 test ! -s conftest.err 8482 }; then 8483 ac_header_preproc=yes 8484 else 8485 echo "$as_me: failed program was:" >&5 8486 sed 's/^/| /' conftest.$ac_ext >&5 8487 8488 ac_header_preproc=no 8489 fi 8490 8491 rm -f conftest.err conftest.$ac_ext 8492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8493 echo "${ECHO_T}$ac_header_preproc" >&6; } 8494 8495 # So? What about this header? 8496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8497 yes:no: ) 8498 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 8499 echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8500 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 8501 echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} 8502 ac_header_preproc=yes 8503 ;; 8504 no:yes:* ) 8505 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 8506 echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} 8507 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 8508 echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} 8509 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 8510 echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} 8511 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 8512 echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} 8513 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 8514 echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} 8515 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 8516 echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} 8517 8518 ;; 8519 esac 8520 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 8521 echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } 8522 if test "${ac_cv_header_sys_timeb_h+set}" = set; then 8523 echo $ECHO_N "(cached) $ECHO_C" >&6 8524 else 8525 ac_cv_header_sys_timeb_h=$ac_header_preproc 8526 fi 8527 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 8528 echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } 8529 8530 fi 8531 if test $ac_cv_header_sys_timeb_h = yes; then 8532 cat >>confdefs.h <<\_ACEOF 8533 #define PJ_HAS_SYS_TIMEB_H 1 8534 _ACEOF 8535 8536 fi 8537 8538 8539 if test "${ac_cv_header_sys_types_h+set}" = set; then 8540 { echo "$as_me:$LINENO: checking for sys/types.h" >&5 8541 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } 8542 if test "${ac_cv_header_sys_types_h+set}" = set; then 8543 echo $ECHO_N "(cached) $ECHO_C" >&6 8544 fi 8545 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 8546 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } 8547 else 8548 # Is the header compilable? 8549 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5 8550 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; } 8551 cat >conftest.$ac_ext <<_ACEOF 8552 /* confdefs.h. */ 8553 _ACEOF 8554 cat confdefs.h >>conftest.$ac_ext 8555 cat >>conftest.$ac_ext <<_ACEOF 8556 /* end confdefs.h. */ 8557 $ac_includes_default 8558 #include <sys/types.h> 8559 _ACEOF 8560 rm -f conftest.$ac_objext 8561 if { (ac_try="$ac_compile" 8562 case "(($ac_try" in 8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8564 *) ac_try_echo=$ac_try;; 8565 esac 8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8567 (eval "$ac_compile") 2>conftest.er1 8568 ac_status=$? 8569 grep -v '^ *+' conftest.er1 >conftest.err 8570 rm -f conftest.er1 8571 cat conftest.err >&5 8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8573 (exit $ac_status); } && { 8574 test -z "$ac_c_werror_flag" || 8575 test ! -s conftest.err 8576 } && test -s conftest.$ac_objext; then 8577 ac_header_compiler=yes 8578 else 8579 echo "$as_me: failed program was:" >&5 8580 sed 's/^/| /' conftest.$ac_ext >&5 8581 8582 ac_header_compiler=no 8583 fi 8584 8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8587 echo "${ECHO_T}$ac_header_compiler" >&6; } 8588 8589 # Is the header present? 8590 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5 8591 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; } 8592 cat >conftest.$ac_ext <<_ACEOF 8593 /* confdefs.h. */ 8594 _ACEOF 8595 cat confdefs.h >>conftest.$ac_ext 8596 cat >>conftest.$ac_ext <<_ACEOF 8597 /* end confdefs.h. */ 8598 #include <sys/types.h> 8599 _ACEOF 8600 if { (ac_try="$ac_cpp conftest.$ac_ext" 8601 case "(($ac_try" in 8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8603 *) ac_try_echo=$ac_try;; 8604 esac 8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8607 ac_status=$? 8608 grep -v '^ *+' conftest.er1 >conftest.err 8609 rm -f conftest.er1 8610 cat conftest.err >&5 8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8612 (exit $ac_status); } >/dev/null && { 8613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8614 test ! -s conftest.err 8615 }; then 8616 ac_header_preproc=yes 8617 else 8618 echo "$as_me: failed program was:" >&5 8619 sed 's/^/| /' conftest.$ac_ext >&5 8620 8621 ac_header_preproc=no 8622 fi 8623 8624 rm -f conftest.err conftest.$ac_ext 8625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8626 echo "${ECHO_T}$ac_header_preproc" >&6; } 8627 8628 # So? What about this header? 8629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8630 yes:no: ) 8631 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 8632 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8633 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 8634 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} 8635 ac_header_preproc=yes 8636 ;; 8637 no:yes:* ) 8638 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 8639 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} 8640 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 8641 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} 8642 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 8643 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} 8644 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 8645 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} 8646 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 8647 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} 8648 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 8649 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} 8650 8651 ;; 8652 esac 8653 { echo "$as_me:$LINENO: checking for sys/types.h" >&5 8654 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } 8655 if test "${ac_cv_header_sys_types_h+set}" = set; then 8656 echo $ECHO_N "(cached) $ECHO_C" >&6 8657 else 8658 ac_cv_header_sys_types_h=$ac_header_preproc 8659 fi 8660 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 8661 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } 8662 8663 fi 8664 if test $ac_cv_header_sys_types_h = yes; then 8665 cat >>confdefs.h <<\_ACEOF 8666 #define PJ_HAS_SYS_TYPES_H 1 8667 _ACEOF 8668 8669 fi 8670 8671 8672 if test "${ac_cv_header_sys_filio_h+set}" = set; then 8673 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5 8674 echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } 8675 if test "${ac_cv_header_sys_filio_h+set}" = set; then 8676 echo $ECHO_N "(cached) $ECHO_C" >&6 8677 fi 8678 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 8679 echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } 8680 else 8681 # Is the header compilable? 8682 { echo "$as_me:$LINENO: checking sys/filio.h usability" >&5 8683 echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; } 8684 cat >conftest.$ac_ext <<_ACEOF 8685 /* confdefs.h. */ 8686 _ACEOF 8687 cat confdefs.h >>conftest.$ac_ext 8688 cat >>conftest.$ac_ext <<_ACEOF 8689 /* end confdefs.h. */ 8690 $ac_includes_default 8691 #include <sys/filio.h> 8692 _ACEOF 8693 rm -f conftest.$ac_objext 8694 if { (ac_try="$ac_compile" 8695 case "(($ac_try" in 8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8697 *) ac_try_echo=$ac_try;; 8698 esac 8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8700 (eval "$ac_compile") 2>conftest.er1 8701 ac_status=$? 8702 grep -v '^ *+' conftest.er1 >conftest.err 8703 rm -f conftest.er1 8704 cat conftest.err >&5 8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8706 (exit $ac_status); } && { 8707 test -z "$ac_c_werror_flag" || 8708 test ! -s conftest.err 8709 } && test -s conftest.$ac_objext; then 8710 ac_header_compiler=yes 8711 else 8712 echo "$as_me: failed program was:" >&5 8713 sed 's/^/| /' conftest.$ac_ext >&5 8714 8715 ac_header_compiler=no 8716 fi 8717 8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8720 echo "${ECHO_T}$ac_header_compiler" >&6; } 8721 8722 # Is the header present? 8723 { echo "$as_me:$LINENO: checking sys/filio.h presence" >&5 8724 echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; } 8725 cat >conftest.$ac_ext <<_ACEOF 8726 /* confdefs.h. */ 8727 _ACEOF 8728 cat confdefs.h >>conftest.$ac_ext 8729 cat >>conftest.$ac_ext <<_ACEOF 8730 /* end confdefs.h. */ 8731 #include <sys/filio.h> 8732 _ACEOF 8733 if { (ac_try="$ac_cpp conftest.$ac_ext" 8734 case "(($ac_try" in 8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8736 *) ac_try_echo=$ac_try;; 8737 esac 8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8740 ac_status=$? 8741 grep -v '^ *+' conftest.er1 >conftest.err 8742 rm -f conftest.er1 8743 cat conftest.err >&5 8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8745 (exit $ac_status); } >/dev/null && { 8746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8747 test ! -s conftest.err 8748 }; then 8749 ac_header_preproc=yes 8750 else 8751 echo "$as_me: failed program was:" >&5 8752 sed 's/^/| /' conftest.$ac_ext >&5 8753 8754 ac_header_preproc=no 8755 fi 8756 8757 rm -f conftest.err conftest.$ac_ext 8758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8759 echo "${ECHO_T}$ac_header_preproc" >&6; } 8760 8761 # So? What about this header? 8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8763 yes:no: ) 8764 { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5 8765 echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8766 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5 8767 echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;} 8768 ac_header_preproc=yes 8769 ;; 8770 no:yes:* ) 8771 { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5 8772 echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;} 8773 { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5 8774 echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;} 8775 { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5 8776 echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;} 8777 { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5 8778 echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;} 8779 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5 8780 echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;} 8781 { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5 8782 echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;} 8783 8784 ;; 8785 esac 8786 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5 8787 echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } 8788 if test "${ac_cv_header_sys_filio_h+set}" = set; then 8789 echo $ECHO_N "(cached) $ECHO_C" >&6 8790 else 8791 ac_cv_header_sys_filio_h=$ac_header_preproc 8792 fi 8793 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 8794 echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } 8795 8796 fi 8797 if test $ac_cv_header_sys_filio_h = yes; then 8798 cat >>confdefs.h <<\_ACEOF 8799 #define PJ_HAS_SYS_FILIO_H 1 8800 _ACEOF 8801 8802 fi 8803 8804 8805 if test "${ac_cv_header_sys_sockio_h+set}" = set; then 8806 { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 8807 echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } 8808 if test "${ac_cv_header_sys_sockio_h+set}" = set; then 8809 echo $ECHO_N "(cached) $ECHO_C" >&6 8810 fi 8811 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 8812 echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } 8813 else 8814 # Is the header compilable? 8815 { echo "$as_me:$LINENO: checking sys/sockio.h usability" >&5 8816 echo $ECHO_N "checking sys/sockio.h usability... $ECHO_C" >&6; } 8817 cat >conftest.$ac_ext <<_ACEOF 8818 /* confdefs.h. */ 8819 _ACEOF 8820 cat confdefs.h >>conftest.$ac_ext 8821 cat >>conftest.$ac_ext <<_ACEOF 8822 /* end confdefs.h. */ 8823 $ac_includes_default 8824 #include <sys/sockio.h> 8825 _ACEOF 8826 rm -f conftest.$ac_objext 8827 if { (ac_try="$ac_compile" 8828 case "(($ac_try" in 8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8830 *) ac_try_echo=$ac_try;; 8831 esac 8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8833 (eval "$ac_compile") 2>conftest.er1 8834 ac_status=$? 8835 grep -v '^ *+' conftest.er1 >conftest.err 8836 rm -f conftest.er1 8837 cat conftest.err >&5 8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8839 (exit $ac_status); } && { 8840 test -z "$ac_c_werror_flag" || 8841 test ! -s conftest.err 8842 } && test -s conftest.$ac_objext; then 8843 ac_header_compiler=yes 8844 else 8845 echo "$as_me: failed program was:" >&5 8846 sed 's/^/| /' conftest.$ac_ext >&5 8847 8848 ac_header_compiler=no 8849 fi 8850 8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8853 echo "${ECHO_T}$ac_header_compiler" >&6; } 8854 8855 # Is the header present? 8856 { echo "$as_me:$LINENO: checking sys/sockio.h presence" >&5 8857 echo $ECHO_N "checking sys/sockio.h presence... $ECHO_C" >&6; } 8858 cat >conftest.$ac_ext <<_ACEOF 8859 /* confdefs.h. */ 8860 _ACEOF 8861 cat confdefs.h >>conftest.$ac_ext 8862 cat >>conftest.$ac_ext <<_ACEOF 8863 /* end confdefs.h. */ 8864 #include <sys/sockio.h> 8865 _ACEOF 8866 if { (ac_try="$ac_cpp conftest.$ac_ext" 8867 case "(($ac_try" in 8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8869 *) ac_try_echo=$ac_try;; 8870 esac 8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8873 ac_status=$? 8874 grep -v '^ *+' conftest.er1 >conftest.err 8875 rm -f conftest.er1 8876 cat conftest.err >&5 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8878 (exit $ac_status); } >/dev/null && { 8879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8880 test ! -s conftest.err 8881 }; then 8882 ac_header_preproc=yes 8883 else 8884 echo "$as_me: failed program was:" >&5 8885 sed 's/^/| /' conftest.$ac_ext >&5 8886 8887 ac_header_preproc=no 8888 fi 8889 8890 rm -f conftest.err conftest.$ac_ext 8891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8892 echo "${ECHO_T}$ac_header_preproc" >&6; } 8893 8894 # So? What about this header? 8895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8896 yes:no: ) 8897 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&5 8898 echo "$as_me: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8899 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the compiler's result" >&5 8900 echo "$as_me: WARNING: sys/sockio.h: proceeding with the compiler's result" >&2;} 8901 ac_header_preproc=yes 8902 ;; 8903 no:yes:* ) 8904 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: present but cannot be compiled" >&5 8905 echo "$as_me: WARNING: sys/sockio.h: present but cannot be compiled" >&2;} 8906 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&5 8907 echo "$as_me: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&2;} 8908 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: see the Autoconf documentation" >&5 8909 echo "$as_me: WARNING: sys/sockio.h: see the Autoconf documentation" >&2;} 8910 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&5 8911 echo "$as_me: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&2;} 8912 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&5 8913 echo "$as_me: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&2;} 8914 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&5 8915 echo "$as_me: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&2;} 8916 8917 ;; 8918 esac 8919 { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 8920 echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } 8921 if test "${ac_cv_header_sys_sockio_h+set}" = set; then 8922 echo $ECHO_N "(cached) $ECHO_C" >&6 8923 else 8924 ac_cv_header_sys_sockio_h=$ac_header_preproc 8925 fi 8926 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 8927 echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } 8928 8929 fi 8930 if test $ac_cv_header_sys_sockio_h = yes; then 8931 cat >>confdefs.h <<\_ACEOF 8932 #define PJ_HAS_SYS_SOCKIO_H 1 8933 _ACEOF 8934 8935 fi 8936 8937 8938 if test "${ac_cv_header_time_h+set}" = set; then 8939 { echo "$as_me:$LINENO: checking for time.h" >&5 8940 echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } 8941 if test "${ac_cv_header_time_h+set}" = set; then 8942 echo $ECHO_N "(cached) $ECHO_C" >&6 8943 fi 8944 { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 8945 echo "${ECHO_T}$ac_cv_header_time_h" >&6; } 8946 else 8947 # Is the header compilable? 8948 { echo "$as_me:$LINENO: checking time.h usability" >&5 8949 echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; } 8950 cat >conftest.$ac_ext <<_ACEOF 8951 /* confdefs.h. */ 8952 _ACEOF 8953 cat confdefs.h >>conftest.$ac_ext 8954 cat >>conftest.$ac_ext <<_ACEOF 8955 /* end confdefs.h. */ 8956 $ac_includes_default 8957 #include <time.h> 8958 _ACEOF 8959 rm -f conftest.$ac_objext 8960 if { (ac_try="$ac_compile" 8961 case "(($ac_try" in 8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8963 *) ac_try_echo=$ac_try;; 8964 esac 8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8966 (eval "$ac_compile") 2>conftest.er1 8967 ac_status=$? 8968 grep -v '^ *+' conftest.er1 >conftest.err 8969 rm -f conftest.er1 8970 cat conftest.err >&5 8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8972 (exit $ac_status); } && { 8973 test -z "$ac_c_werror_flag" || 8974 test ! -s conftest.err 8975 } && test -s conftest.$ac_objext; then 8976 ac_header_compiler=yes 8977 else 8978 echo "$as_me: failed program was:" >&5 8979 sed 's/^/| /' conftest.$ac_ext >&5 8980 8981 ac_header_compiler=no 8982 fi 8983 8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8986 echo "${ECHO_T}$ac_header_compiler" >&6; } 8987 8988 # Is the header present? 8989 { echo "$as_me:$LINENO: checking time.h presence" >&5 8990 echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; } 8991 cat >conftest.$ac_ext <<_ACEOF 8992 /* confdefs.h. */ 8993 _ACEOF 8994 cat confdefs.h >>conftest.$ac_ext 8995 cat >>conftest.$ac_ext <<_ACEOF 8996 /* end confdefs.h. */ 8997 #include <time.h> 8998 _ACEOF 8999 if { (ac_try="$ac_cpp conftest.$ac_ext" 9000 case "(($ac_try" in 9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9002 *) ac_try_echo=$ac_try;; 9003 esac 9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9006 ac_status=$? 9007 grep -v '^ *+' conftest.er1 >conftest.err 9008 rm -f conftest.er1 9009 cat conftest.err >&5 9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9011 (exit $ac_status); } >/dev/null && { 9012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9013 test ! -s conftest.err 9014 }; then 9015 ac_header_preproc=yes 9016 else 9017 echo "$as_me: failed program was:" >&5 9018 sed 's/^/| /' conftest.$ac_ext >&5 9019 9020 ac_header_preproc=no 9021 fi 9022 9023 rm -f conftest.err conftest.$ac_ext 9024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9025 echo "${ECHO_T}$ac_header_preproc" >&6; } 9026 9027 # So? What about this header? 9028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9029 yes:no: ) 9030 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 9031 echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9032 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 9033 echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} 9034 ac_header_preproc=yes 9035 ;; 9036 no:yes:* ) 9037 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 9038 echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} 9039 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 9040 echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} 9041 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 9042 echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} 9043 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 9044 echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} 9045 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 9046 echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} 9047 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 9048 echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} 9049 9050 ;; 9051 esac 9052 { echo "$as_me:$LINENO: checking for time.h" >&5 9053 echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } 9054 if test "${ac_cv_header_time_h+set}" = set; then 9055 echo $ECHO_N "(cached) $ECHO_C" >&6 9056 else 9057 ac_cv_header_time_h=$ac_header_preproc 9058 fi 9059 { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 9060 echo "${ECHO_T}$ac_cv_header_time_h" >&6; } 9061 9062 fi 9063 if test $ac_cv_header_time_h = yes; then 9064 cat >>confdefs.h <<\_ACEOF 9065 #define PJ_HAS_TIME_H 1 9066 _ACEOF 9067 9068 fi 9069 9070 9071 if test "${ac_cv_header_unistd_h+set}" = set; then 9072 { echo "$as_me:$LINENO: checking for unistd.h" >&5 9073 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } 9074 if test "${ac_cv_header_unistd_h+set}" = set; then 9075 echo $ECHO_N "(cached) $ECHO_C" >&6 9076 fi 9077 { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 9078 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } 9079 else 9080 # Is the header compilable? 9081 { echo "$as_me:$LINENO: checking unistd.h usability" >&5 9082 echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } 9083 cat >conftest.$ac_ext <<_ACEOF 9084 /* confdefs.h. */ 9085 _ACEOF 9086 cat confdefs.h >>conftest.$ac_ext 9087 cat >>conftest.$ac_ext <<_ACEOF 9088 /* end confdefs.h. */ 9089 $ac_includes_default 9090 #include <unistd.h> 9091 _ACEOF 9092 rm -f conftest.$ac_objext 9093 if { (ac_try="$ac_compile" 9094 case "(($ac_try" in 9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9096 *) ac_try_echo=$ac_try;; 9097 esac 9098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9099 (eval "$ac_compile") 2>conftest.er1 9100 ac_status=$? 9101 grep -v '^ *+' conftest.er1 >conftest.err 9102 rm -f conftest.er1 9103 cat conftest.err >&5 9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9105 (exit $ac_status); } && { 9106 test -z "$ac_c_werror_flag" || 9107 test ! -s conftest.err 9108 } && test -s conftest.$ac_objext; then 9109 ac_header_compiler=yes 9110 else 9111 echo "$as_me: failed program was:" >&5 9112 sed 's/^/| /' conftest.$ac_ext >&5 9113 9114 ac_header_compiler=no 9115 fi 9116 9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9119 echo "${ECHO_T}$ac_header_compiler" >&6; } 9120 9121 # Is the header present? 9122 { echo "$as_me:$LINENO: checking unistd.h presence" >&5 9123 echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } 9124 cat >conftest.$ac_ext <<_ACEOF 9125 /* confdefs.h. */ 9126 _ACEOF 9127 cat confdefs.h >>conftest.$ac_ext 9128 cat >>conftest.$ac_ext <<_ACEOF 9129 /* end confdefs.h. */ 9130 #include <unistd.h> 9131 _ACEOF 9132 if { (ac_try="$ac_cpp conftest.$ac_ext" 9133 case "(($ac_try" in 9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9135 *) ac_try_echo=$ac_try;; 9136 esac 9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9139 ac_status=$? 9140 grep -v '^ *+' conftest.er1 >conftest.err 9141 rm -f conftest.er1 9142 cat conftest.err >&5 9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 (exit $ac_status); } >/dev/null && { 9145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9146 test ! -s conftest.err 9147 }; then 9148 ac_header_preproc=yes 9149 else 9150 echo "$as_me: failed program was:" >&5 9151 sed 's/^/| /' conftest.$ac_ext >&5 9152 9153 ac_header_preproc=no 9154 fi 9155 9156 rm -f conftest.err conftest.$ac_ext 9157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9158 echo "${ECHO_T}$ac_header_preproc" >&6; } 9159 9160 # So? What about this header? 9161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9162 yes:no: ) 9163 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 9164 echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9165 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 9166 echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} 9167 ac_header_preproc=yes 9168 ;; 9169 no:yes:* ) 9170 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 9171 echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} 9172 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 9173 echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} 9174 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 9175 echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} 9176 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 9177 echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} 9178 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 9179 echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} 9180 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 9181 echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} 9182 9183 ;; 9184 esac 9185 { echo "$as_me:$LINENO: checking for unistd.h" >&5 9186 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } 9187 if test "${ac_cv_header_unistd_h+set}" = set; then 9188 echo $ECHO_N "(cached) $ECHO_C" >&6 9189 else 9190 ac_cv_header_unistd_h=$ac_header_preproc 9191 fi 9192 { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 9193 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } 9194 9195 fi 9196 if test $ac_cv_header_unistd_h = yes; then 9197 cat >>confdefs.h <<\_ACEOF 9198 #define PJ_HAS_UNISTD_H 1 9199 _ACEOF 9200 9201 fi 9202 9203 9204 if test "${ac_cv_header_winsock_h+set}" = set; then 9205 { echo "$as_me:$LINENO: checking for winsock.h" >&5 9206 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } 9207 if test "${ac_cv_header_winsock_h+set}" = set; then 9208 echo $ECHO_N "(cached) $ECHO_C" >&6 9209 fi 9210 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 9211 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } 9212 else 9213 # Is the header compilable? 9214 { echo "$as_me:$LINENO: checking winsock.h usability" >&5 9215 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; } 9216 cat >conftest.$ac_ext <<_ACEOF 9217 /* confdefs.h. */ 9218 _ACEOF 9219 cat confdefs.h >>conftest.$ac_ext 9220 cat >>conftest.$ac_ext <<_ACEOF 9221 /* end confdefs.h. */ 9222 $ac_includes_default 9223 #include <winsock.h> 9224 _ACEOF 9225 rm -f conftest.$ac_objext 9226 if { (ac_try="$ac_compile" 9227 case "(($ac_try" in 9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9229 *) ac_try_echo=$ac_try;; 9230 esac 9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9232 (eval "$ac_compile") 2>conftest.er1 9233 ac_status=$? 9234 grep -v '^ *+' conftest.er1 >conftest.err 9235 rm -f conftest.er1 9236 cat conftest.err >&5 9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9238 (exit $ac_status); } && { 9239 test -z "$ac_c_werror_flag" || 9240 test ! -s conftest.err 9241 } && test -s conftest.$ac_objext; then 9242 ac_header_compiler=yes 9243 else 9244 echo "$as_me: failed program was:" >&5 9245 sed 's/^/| /' conftest.$ac_ext >&5 9246 9247 ac_header_compiler=no 9248 fi 9249 9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9252 echo "${ECHO_T}$ac_header_compiler" >&6; } 9253 9254 # Is the header present? 9255 { echo "$as_me:$LINENO: checking winsock.h presence" >&5 9256 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; } 9257 cat >conftest.$ac_ext <<_ACEOF 9258 /* confdefs.h. */ 9259 _ACEOF 9260 cat confdefs.h >>conftest.$ac_ext 9261 cat >>conftest.$ac_ext <<_ACEOF 9262 /* end confdefs.h. */ 9263 #include <winsock.h> 9264 _ACEOF 9265 if { (ac_try="$ac_cpp conftest.$ac_ext" 9266 case "(($ac_try" in 9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9268 *) ac_try_echo=$ac_try;; 9269 esac 9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9272 ac_status=$? 9273 grep -v '^ *+' conftest.er1 >conftest.err 9274 rm -f conftest.er1 9275 cat conftest.err >&5 9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9277 (exit $ac_status); } >/dev/null && { 9278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9279 test ! -s conftest.err 9280 }; then 9281 ac_header_preproc=yes 9282 else 9283 echo "$as_me: failed program was:" >&5 9284 sed 's/^/| /' conftest.$ac_ext >&5 9285 9286 ac_header_preproc=no 9287 fi 9288 9289 rm -f conftest.err conftest.$ac_ext 9290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9291 echo "${ECHO_T}$ac_header_preproc" >&6; } 9292 9293 # So? What about this header? 9294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9295 yes:no: ) 9296 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 9297 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9298 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 9299 echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} 9300 ac_header_preproc=yes 9301 ;; 9302 no:yes:* ) 9303 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 9304 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} 9305 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 9306 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} 9307 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 9308 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} 9309 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 9310 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} 9311 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 9312 echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} 9313 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 9314 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} 9315 9316 ;; 9317 esac 9318 { echo "$as_me:$LINENO: checking for winsock.h" >&5 9319 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } 9320 if test "${ac_cv_header_winsock_h+set}" = set; then 9321 echo $ECHO_N "(cached) $ECHO_C" >&6 9322 else 9323 ac_cv_header_winsock_h=$ac_header_preproc 9324 fi 9325 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 9326 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } 9327 9328 fi 9329 if test $ac_cv_header_winsock_h = yes; then 9330 cat >>confdefs.h <<\_ACEOF 9331 #define PJ_HAS_WINSOCK_H 1 9332 _ACEOF 9333 9334 fi 9335 9336 9337 if test "${ac_cv_header_winsock2_h+set}" = set; then 9338 { echo "$as_me:$LINENO: checking for winsock2.h" >&5 9339 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } 9340 if test "${ac_cv_header_winsock2_h+set}" = set; then 9341 echo $ECHO_N "(cached) $ECHO_C" >&6 9342 fi 9343 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 9344 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } 9345 else 9346 # Is the header compilable? 9347 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5 9348 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; } 9349 cat >conftest.$ac_ext <<_ACEOF 9350 /* confdefs.h. */ 9351 _ACEOF 9352 cat confdefs.h >>conftest.$ac_ext 9353 cat >>conftest.$ac_ext <<_ACEOF 9354 /* end confdefs.h. */ 9355 $ac_includes_default 9356 #include <winsock2.h> 9357 _ACEOF 9358 rm -f conftest.$ac_objext 9359 if { (ac_try="$ac_compile" 9360 case "(($ac_try" in 9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9362 *) ac_try_echo=$ac_try;; 9363 esac 9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9365 (eval "$ac_compile") 2>conftest.er1 9366 ac_status=$? 9367 grep -v '^ *+' conftest.er1 >conftest.err 9368 rm -f conftest.er1 9369 cat conftest.err >&5 9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9371 (exit $ac_status); } && { 9372 test -z "$ac_c_werror_flag" || 9373 test ! -s conftest.err 9374 } && test -s conftest.$ac_objext; then 9375 ac_header_compiler=yes 9376 else 9377 echo "$as_me: failed program was:" >&5 9378 sed 's/^/| /' conftest.$ac_ext >&5 9379 9380 ac_header_compiler=no 9381 fi 9382 9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9385 echo "${ECHO_T}$ac_header_compiler" >&6; } 9386 9387 # Is the header present? 9388 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5 9389 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; } 9390 cat >conftest.$ac_ext <<_ACEOF 9391 /* confdefs.h. */ 9392 _ACEOF 9393 cat confdefs.h >>conftest.$ac_ext 9394 cat >>conftest.$ac_ext <<_ACEOF 9395 /* end confdefs.h. */ 9396 #include <winsock2.h> 9397 _ACEOF 9398 if { (ac_try="$ac_cpp conftest.$ac_ext" 9399 case "(($ac_try" in 9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9401 *) ac_try_echo=$ac_try;; 9402 esac 9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9405 ac_status=$? 9406 grep -v '^ *+' conftest.er1 >conftest.err 9407 rm -f conftest.er1 9408 cat conftest.err >&5 9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9410 (exit $ac_status); } >/dev/null && { 9411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9412 test ! -s conftest.err 9413 }; then 9414 ac_header_preproc=yes 9415 else 9416 echo "$as_me: failed program was:" >&5 9417 sed 's/^/| /' conftest.$ac_ext >&5 9418 9419 ac_header_preproc=no 9420 fi 9421 9422 rm -f conftest.err conftest.$ac_ext 9423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9424 echo "${ECHO_T}$ac_header_preproc" >&6; } 9425 9426 # So? What about this header? 9427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9428 yes:no: ) 9429 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 9430 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9431 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 9432 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} 9433 ac_header_preproc=yes 9434 ;; 9435 no:yes:* ) 9436 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 9437 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} 9438 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 9439 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} 9440 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 9441 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} 9442 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 9443 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} 9444 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 9445 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} 9446 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 9447 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} 9448 9449 ;; 9450 esac 9451 { echo "$as_me:$LINENO: checking for winsock2.h" >&5 9452 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } 9453 if test "${ac_cv_header_winsock2_h+set}" = set; then 9454 echo $ECHO_N "(cached) $ECHO_C" >&6 9455 else 9456 ac_cv_header_winsock2_h=$ac_header_preproc 9457 fi 9458 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 9459 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } 9460 9461 fi 9462 if test $ac_cv_header_winsock2_h = yes; then 9463 cat >>confdefs.h <<\_ACEOF 9464 #define PJ_HAS_WINSOCK2_H 1 9465 _ACEOF 9466 9467 fi 9468 9469 9470 { echo "$as_me:$LINENO: checking for mswsock.h" >&5 9471 echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; } 9472 if test "${ac_cv_header_mswsock_h+set}" = set; then 9473 echo $ECHO_N "(cached) $ECHO_C" >&6 9474 else 9475 cat >conftest.$ac_ext <<_ACEOF 9476 /* confdefs.h. */ 9477 _ACEOF 9478 cat confdefs.h >>conftest.$ac_ext 9479 cat >>conftest.$ac_ext <<_ACEOF 9480 /* end confdefs.h. */ 9481 #if PJ_HAS_WINSOCK2_H 4775 " 4776 if test "x$ac_cv_header_netinet_ip_h" = x""yes; then : 4777 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h 4778 4779 fi 4780 4781 4782 ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" 4783 if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then : 4784 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h 4785 4786 fi 4787 4788 4789 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 4790 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : 4791 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 4792 if test "x$ac_cv_func_getifaddrs" = x""yes; then : 4793 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h 4794 4795 fi 4796 4797 fi 4798 4799 4800 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 4801 if test "x$ac_cv_header_semaphore_h" = x""yes; then : 4802 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h 4803 4804 fi 4805 4806 4807 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 4808 if test "x$ac_cv_header_setjmp_h" = x""yes; then : 4809 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h 4810 4811 fi 4812 4813 4814 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 4815 if test "x$ac_cv_header_stdarg_h" = x""yes; then : 4816 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h 4817 4818 fi 4819 4820 4821 ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" 4822 if test "x$ac_cv_header_stddef_h" = x""yes; then : 4823 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h 4824 4825 fi 4826 4827 4828 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 4829 if test "x$ac_cv_header_stdio_h" = x""yes; then : 4830 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h 4831 4832 fi 4833 4834 4835 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 4836 if test "x$ac_cv_header_stdint_h" = x""yes; then : 4837 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h 4838 4839 fi 4840 4841 4842 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4843 if test "x$ac_cv_header_stdlib_h" = x""yes; then : 4844 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h 4845 4846 fi 4847 4848 4849 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 4850 if test "x$ac_cv_header_string_h" = x""yes; then : 4851 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h 4852 4853 fi 4854 4855 4856 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 4857 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 4858 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h 4859 4860 fi 4861 4862 4863 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 4864 if test "x$ac_cv_header_sys_select_h" = x""yes; then : 4865 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h 4866 4867 fi 4868 4869 4870 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 4871 if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 4872 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h 4873 4874 fi 4875 4876 4877 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 4878 if test "x$ac_cv_header_sys_time_h" = x""yes; then : 4879 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h 4880 4881 fi 4882 4883 4884 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" 4885 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : 4886 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h 4887 4888 fi 4889 4890 4891 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 4892 if test "x$ac_cv_header_sys_types_h" = x""yes; then : 4893 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h 4894 4895 fi 4896 4897 4898 ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" 4899 if test "x$ac_cv_header_sys_filio_h" = x""yes; then : 4900 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h 4901 4902 fi 4903 4904 4905 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" 4906 if test "x$ac_cv_header_sys_sockio_h" = x""yes; then : 4907 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h 4908 4909 fi 4910 4911 4912 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 4913 if test "x$ac_cv_header_time_h" = x""yes; then : 4914 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h 4915 4916 fi 4917 4918 4919 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 4920 if test "x$ac_cv_header_unistd_h" = x""yes; then : 4921 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h 4922 4923 fi 4924 4925 4926 ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default" 4927 if test "x$ac_cv_header_winsock_h" = x""yes; then : 4928 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h 4929 4930 fi 4931 4932 4933 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 4934 if test "x$ac_cv_header_winsock2_h" = x""yes; then : 4935 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h 4936 4937 fi 4938 4939 4940 ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H 9482 4941 # include <winsock2.h> 9483 4942 #elif PJ_HAS_WINSOCK_H … … 9485 4944 #endif 9486 4945 9487 9488 #include <mswsock.h> 9489 _ACEOF 9490 rm -f conftest.$ac_objext 9491 if { (ac_try="$ac_compile" 9492 case "(($ac_try" in 9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9494 *) ac_try_echo=$ac_try;; 9495 esac 9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9497 (eval "$ac_compile") 2>conftest.er1 9498 ac_status=$? 9499 grep -v '^ *+' conftest.er1 >conftest.err 9500 rm -f conftest.er1 9501 cat conftest.err >&5 9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9503 (exit $ac_status); } && { 9504 test -z "$ac_c_werror_flag" || 9505 test ! -s conftest.err 9506 } && test -s conftest.$ac_objext; then 9507 ac_cv_header_mswsock_h=yes 9508 else 9509 echo "$as_me: failed program was:" >&5 9510 sed 's/^/| /' conftest.$ac_ext >&5 9511 9512 ac_cv_header_mswsock_h=no 9513 fi 9514 9515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9516 fi 9517 { echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 9518 echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; } 9519 if test $ac_cv_header_mswsock_h = yes; then 9520 cat >>confdefs.h <<\_ACEOF 9521 #define PJ_HAS_MSWSOCK_H 1 9522 _ACEOF 9523 9524 fi 9525 9526 9527 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then 9528 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 9529 echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } 9530 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then 9531 echo $ECHO_N "(cached) $ECHO_C" >&6 9532 fi 9533 { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 9534 echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } 9535 else 9536 # Is the header compilable? 9537 { echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5 9538 echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; } 9539 cat >conftest.$ac_ext <<_ACEOF 9540 /* confdefs.h. */ 9541 _ACEOF 9542 cat confdefs.h >>conftest.$ac_ext 9543 cat >>conftest.$ac_ext <<_ACEOF 9544 /* end confdefs.h. */ 9545 $ac_includes_default 9546 #include <ws2tcpip.h> 9547 _ACEOF 9548 rm -f conftest.$ac_objext 9549 if { (ac_try="$ac_compile" 9550 case "(($ac_try" in 9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9552 *) ac_try_echo=$ac_try;; 9553 esac 9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9555 (eval "$ac_compile") 2>conftest.er1 9556 ac_status=$? 9557 grep -v '^ *+' conftest.er1 >conftest.err 9558 rm -f conftest.er1 9559 cat conftest.err >&5 9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9561 (exit $ac_status); } && { 9562 test -z "$ac_c_werror_flag" || 9563 test ! -s conftest.err 9564 } && test -s conftest.$ac_objext; then 9565 ac_header_compiler=yes 9566 else 9567 echo "$as_me: failed program was:" >&5 9568 sed 's/^/| /' conftest.$ac_ext >&5 9569 9570 ac_header_compiler=no 9571 fi 9572 9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9575 echo "${ECHO_T}$ac_header_compiler" >&6; } 9576 9577 # Is the header present? 9578 { echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5 9579 echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; } 9580 cat >conftest.$ac_ext <<_ACEOF 9581 /* confdefs.h. */ 9582 _ACEOF 9583 cat confdefs.h >>conftest.$ac_ext 9584 cat >>conftest.$ac_ext <<_ACEOF 9585 /* end confdefs.h. */ 9586 #include <ws2tcpip.h> 9587 _ACEOF 9588 if { (ac_try="$ac_cpp conftest.$ac_ext" 9589 case "(($ac_try" in 9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9591 *) ac_try_echo=$ac_try;; 9592 esac 9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9595 ac_status=$? 9596 grep -v '^ *+' conftest.er1 >conftest.err 9597 rm -f conftest.er1 9598 cat conftest.err >&5 9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9600 (exit $ac_status); } >/dev/null && { 9601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9602 test ! -s conftest.err 9603 }; then 9604 ac_header_preproc=yes 9605 else 9606 echo "$as_me: failed program was:" >&5 9607 sed 's/^/| /' conftest.$ac_ext >&5 9608 9609 ac_header_preproc=no 9610 fi 9611 9612 rm -f conftest.err conftest.$ac_ext 9613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9614 echo "${ECHO_T}$ac_header_preproc" >&6; } 9615 9616 # So? What about this header? 9617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9618 yes:no: ) 9619 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5 9620 echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9621 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5 9622 echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;} 9623 ac_header_preproc=yes 9624 ;; 9625 no:yes:* ) 9626 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5 9627 echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;} 9628 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5 9629 echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;} 9630 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5 9631 echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;} 9632 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5 9633 echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;} 9634 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5 9635 echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;} 9636 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5 9637 echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;} 9638 9639 ;; 9640 esac 9641 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 9642 echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } 9643 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then 9644 echo $ECHO_N "(cached) $ECHO_C" >&6 9645 else 9646 ac_cv_header_ws2tcpip_h=$ac_header_preproc 9647 fi 9648 { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 9649 echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } 9650 9651 fi 9652 if test $ac_cv_header_ws2tcpip_h = yes; then 9653 cat >>confdefs.h <<\_ACEOF 9654 #define PJ_HAS_WS2TCPIP_H 1 9655 _ACEOF 9656 9657 fi 9658 9659 9660 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 9661 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 9662 echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } 9663 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 9664 echo $ECHO_N "(cached) $ECHO_C" >&6 9665 fi 9666 { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 9667 echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } 9668 else 9669 # Is the header compilable? 9670 { echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 9671 echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; } 9672 cat >conftest.$ac_ext <<_ACEOF 9673 /* confdefs.h. */ 9674 _ACEOF 9675 cat confdefs.h >>conftest.$ac_ext 9676 cat >>conftest.$ac_ext <<_ACEOF 9677 /* end confdefs.h. */ 9678 $ac_includes_default 9679 #include <uuid/uuid.h> 9680 _ACEOF 9681 rm -f conftest.$ac_objext 9682 if { (ac_try="$ac_compile" 9683 case "(($ac_try" in 9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9685 *) ac_try_echo=$ac_try;; 9686 esac 9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9688 (eval "$ac_compile") 2>conftest.er1 9689 ac_status=$? 9690 grep -v '^ *+' conftest.er1 >conftest.err 9691 rm -f conftest.er1 9692 cat conftest.err >&5 9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9694 (exit $ac_status); } && { 9695 test -z "$ac_c_werror_flag" || 9696 test ! -s conftest.err 9697 } && test -s conftest.$ac_objext; then 9698 ac_header_compiler=yes 9699 else 9700 echo "$as_me: failed program was:" >&5 9701 sed 's/^/| /' conftest.$ac_ext >&5 9702 9703 ac_header_compiler=no 9704 fi 9705 9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9708 echo "${ECHO_T}$ac_header_compiler" >&6; } 9709 9710 # Is the header present? 9711 { echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 9712 echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; } 9713 cat >conftest.$ac_ext <<_ACEOF 9714 /* confdefs.h. */ 9715 _ACEOF 9716 cat confdefs.h >>conftest.$ac_ext 9717 cat >>conftest.$ac_ext <<_ACEOF 9718 /* end confdefs.h. */ 9719 #include <uuid/uuid.h> 9720 _ACEOF 9721 if { (ac_try="$ac_cpp conftest.$ac_ext" 9722 case "(($ac_try" in 9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9724 *) ac_try_echo=$ac_try;; 9725 esac 9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9728 ac_status=$? 9729 grep -v '^ *+' conftest.er1 >conftest.err 9730 rm -f conftest.er1 9731 cat conftest.err >&5 9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9733 (exit $ac_status); } >/dev/null && { 9734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9735 test ! -s conftest.err 9736 }; then 9737 ac_header_preproc=yes 9738 else 9739 echo "$as_me: failed program was:" >&5 9740 sed 's/^/| /' conftest.$ac_ext >&5 9741 9742 ac_header_preproc=no 9743 fi 9744 9745 rm -f conftest.err conftest.$ac_ext 9746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9747 echo "${ECHO_T}$ac_header_preproc" >&6; } 9748 9749 # So? What about this header? 9750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9751 yes:no: ) 9752 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 9753 echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9754 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 9755 echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} 9756 ac_header_preproc=yes 9757 ;; 9758 no:yes:* ) 9759 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 9760 echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} 9761 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 9762 echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} 9763 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 9764 echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} 9765 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 9766 echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} 9767 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 9768 echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} 9769 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 9770 echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} 9771 9772 ;; 9773 esac 9774 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 9775 echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } 9776 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 9777 echo $ECHO_N "(cached) $ECHO_C" >&6 9778 else 9779 ac_cv_header_uuid_uuid_h=$ac_header_preproc 9780 fi 9781 { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 9782 echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } 9783 9784 fi 9785 if test $ac_cv_header_uuid_uuid_h = yes; then 4946 " 4947 if test "x$ac_cv_header_mswsock_h" = x""yes; then : 4948 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h 4949 4950 fi 4951 4952 4953 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 4954 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : 4955 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h 4956 4957 fi 4958 4959 4960 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 4961 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : 9786 4962 ac_has_uuid_h=1 9787 4963 fi 9788 4964 9789 4965 9790 { echo "$as_me:$LINENO: checking for net/if.h" >&5 9791 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } 9792 if test "${ac_cv_header_net_if_h+set}" = set; then 9793 echo $ECHO_N "(cached) $ECHO_C" >&6 9794 else 9795 cat >conftest.$ac_ext <<_ACEOF 9796 /* confdefs.h. */ 9797 _ACEOF 9798 cat confdefs.h >>conftest.$ac_ext 9799 cat >>conftest.$ac_ext <<_ACEOF 9800 /* end confdefs.h. */ 9801 #if PJ_HAS_SYS_TYPES_H 4966 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H 9802 4967 # include <sys/types.h> 9803 4968 #endif … … 9807 4972 #endif 9808 4973 9809 9810 #include <net/if.h> 9811 _ACEOF 9812 rm -f conftest.$ac_objext 9813 if { (ac_try="$ac_compile" 9814 case "(($ac_try" in 9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9816 *) ac_try_echo=$ac_try;; 9817 esac 9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9819 (eval "$ac_compile") 2>conftest.er1 9820 ac_status=$? 9821 grep -v '^ *+' conftest.er1 >conftest.err 9822 rm -f conftest.er1 9823 cat conftest.err >&5 9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9825 (exit $ac_status); } && { 9826 test -z "$ac_c_werror_flag" || 9827 test ! -s conftest.err 9828 } && test -s conftest.$ac_objext; then 9829 ac_cv_header_net_if_h=yes 9830 else 9831 echo "$as_me: failed program was:" >&5 9832 sed 's/^/| /' conftest.$ac_ext >&5 9833 9834 ac_cv_header_net_if_h=no 9835 fi 9836 9837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9838 fi 9839 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 9840 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } 9841 if test $ac_cv_header_net_if_h = yes; then 9842 cat >>confdefs.h <<\_ACEOF 9843 #define PJ_HAS_NET_IF_H 1 9844 _ACEOF 9845 9846 fi 9847 9848 9849 { echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 9850 echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; } 4974 " 4975 if test "x$ac_cv_header_net_if_h" = x""yes; then : 4976 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h 4977 4978 fi 4979 4980 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5 4982 $as_echo "Setting PJ_OS_NAME to $target" >&6; } 9851 4983 cat >>confdefs.h <<_ACEOF 9852 4984 #define PJ_OS_NAME "$target" … … 9854 4986 9855 4987 9856 { echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 9857 echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; } 9858 cat >>confdefs.h <<\_ACEOF 9859 #define PJ_HAS_ERRNO_VAR 1 9860 _ACEOF 9861 9862 9863 { echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 9864 echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } 9865 cat >>confdefs.h <<\_ACEOF 9866 #define PJ_HAS_HIGH_RES_TIMER 1 9867 _ACEOF 9868 9869 9870 { echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 9871 echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; } 9872 cat >>confdefs.h <<\_ACEOF 9873 #define PJ_HAS_MALLOC 1 9874 _ACEOF 9875 9876 9877 { echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 9878 echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } 9879 cat >>confdefs.h <<\_ACEOF 9880 #define PJ_NATIVE_STRING_IS_UNICODE 0 9881 _ACEOF 9882 9883 9884 { echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 9885 echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } 9886 cat >>confdefs.h <<\_ACEOF 9887 #define PJ_ATOMIC_VALUE_TYPE long 9888 _ACEOF 9889 9890 9891 { echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 9892 echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; } 9893 cat >conftest.$ac_ext <<_ACEOF 9894 /* confdefs.h. */ 9895 _ACEOF 9896 cat confdefs.h >>conftest.$ac_ext 9897 cat >>conftest.$ac_ext <<_ACEOF 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 4989 $as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; } 4990 $as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h 4991 4992 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 4994 $as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } 4995 $as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h 4996 4997 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5 4999 $as_echo "Setting PJ_HAS_MALLOC to 1" >&6; } 5000 $as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h 5001 5002 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 5004 $as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } 5005 $as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h 5006 5007 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 5009 $as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } 5010 $as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h 5011 5012 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5 5014 $as_echo_n "checking if inet_aton() is available... " >&6; } 5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9898 5016 /* end confdefs.h. */ 9899 5017 #include <sys/types.h> … … 9908 5026 } 9909 5027 _ACEOF 9910 rm -f conftest.$ac_objext 9911 if { (ac_try="$ac_compile" 9912 case "(($ac_try" in 9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9914 *) ac_try_echo=$ac_try;; 9915 esac 9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9917 (eval "$ac_compile") 2>conftest.er1 9918 ac_status=$? 9919 grep -v '^ *+' conftest.er1 >conftest.err 9920 rm -f conftest.er1 9921 cat conftest.err >&5 9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9923 (exit $ac_status); } && { 9924 test -z "$ac_c_werror_flag" || 9925 test ! -s conftest.err 9926 } && test -s conftest.$ac_objext; then 9927 cat >>confdefs.h <<\_ACEOF 9928 #define PJ_SOCK_HAS_INET_ATON 1 9929 _ACEOF 9930 9931 { echo "$as_me:$LINENO: result: yes" >&5 9932 echo "${ECHO_T}yes" >&6; } 9933 else 9934 echo "$as_me: failed program was:" >&5 9935 sed 's/^/| /' conftest.$ac_ext >&5 9936 9937 { echo "$as_me:$LINENO: result: no" >&5 9938 echo "${ECHO_T}no" >&6; } 9939 fi 9940 5028 if ac_fn_c_try_compile "$LINENO"; then : 5029 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h 5030 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5032 $as_echo "yes" >&6; } 5033 else 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5035 $as_echo "no" >&6; } 5036 fi 9941 5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9942 5038 9943 { echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 9944 echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; } 9945 cat >conftest.$ac_ext <<_ACEOF 9946 /* confdefs.h. */ 9947 _ACEOF 9948 cat confdefs.h >>conftest.$ac_ext 9949 cat >>conftest.$ac_ext <<_ACEOF 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5 5040 $as_echo_n "checking if inet_pton() is available... " >&6; } 5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9950 5042 /* end confdefs.h. */ 9951 5043 #include <sys/types.h> … … 9960 5052 } 9961 5053 _ACEOF 9962 rm -f conftest.$ac_objext 9963 if { (ac_try="$ac_compile" 9964 case "(($ac_try" in 9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9966 *) ac_try_echo=$ac_try;; 9967 esac 9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9969 (eval "$ac_compile") 2>conftest.er1 9970 ac_status=$? 9971 grep -v '^ *+' conftest.er1 >conftest.err 9972 rm -f conftest.er1 9973 cat conftest.err >&5 9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9975 (exit $ac_status); } && { 9976 test -z "$ac_c_werror_flag" || 9977 test ! -s conftest.err 9978 } && test -s conftest.$ac_objext; then 9979 cat >>confdefs.h <<\_ACEOF 9980 #define PJ_SOCK_HAS_INET_PTON 1 9981 _ACEOF 9982 9983 { echo "$as_me:$LINENO: result: yes" >&5 9984 echo "${ECHO_T}yes" >&6; } 9985 else 9986 echo "$as_me: failed program was:" >&5 9987 sed 's/^/| /' conftest.$ac_ext >&5 9988 9989 { echo "$as_me:$LINENO: result: no" >&5 9990 echo "${ECHO_T}no" >&6; } 9991 fi 9992 5054 if ac_fn_c_try_compile "$LINENO"; then : 5055 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h 5056 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5058 $as_echo "yes" >&6; } 5059 else 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5061 $as_echo "no" >&6; } 5062 fi 9993 5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9994 5064 9995 { echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 9996 echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; } 9997 cat >conftest.$ac_ext <<_ACEOF 9998 /* confdefs.h. */ 9999 _ACEOF 10000 cat confdefs.h >>conftest.$ac_ext 10001 cat >>conftest.$ac_ext <<_ACEOF 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5 5066 $as_echo_n "checking if inet_ntop() is available... " >&6; } 5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10002 5068 /* end confdefs.h. */ 10003 5069 #include <sys/types.h> … … 10012 5078 } 10013 5079 _ACEOF 10014 rm -f conftest.$ac_objext 10015 if { (ac_try="$ac_compile" 10016 case "(($ac_try" in 10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10018 *) ac_try_echo=$ac_try;; 10019 esac 10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10021 (eval "$ac_compile") 2>conftest.er1 10022 ac_status=$? 10023 grep -v '^ *+' conftest.er1 >conftest.err 10024 rm -f conftest.er1 10025 cat conftest.err >&5 10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10027 (exit $ac_status); } && { 10028 test -z "$ac_c_werror_flag" || 10029 test ! -s conftest.err 10030 } && test -s conftest.$ac_objext; then 10031 cat >>confdefs.h <<\_ACEOF 10032 #define PJ_SOCK_HAS_INET_NTOP 1 10033 _ACEOF 10034 10035 { echo "$as_me:$LINENO: result: yes" >&5 10036 echo "${ECHO_T}yes" >&6; } 10037 else 10038 echo "$as_me: failed program was:" >&5 10039 sed 's/^/| /' conftest.$ac_ext >&5 10040 10041 { echo "$as_me:$LINENO: result: no" >&5 10042 echo "${ECHO_T}no" >&6; } 10043 fi 10044 5080 if ac_fn_c_try_compile "$LINENO"; then : 5081 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h 5082 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5084 $as_echo "yes" >&6; } 5085 else 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5087 $as_echo "no" >&6; } 5088 fi 10045 5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10046 5090 10047 { echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 10048 echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; } 10049 cat >conftest.$ac_ext <<_ACEOF 10050 /* confdefs.h. */ 10051 _ACEOF 10052 cat confdefs.h >>conftest.$ac_ext 10053 cat >>conftest.$ac_ext <<_ACEOF 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5 5092 $as_echo_n "checking if getaddrinfo() is available... " >&6; } 5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054 5094 /* end confdefs.h. */ 10055 5095 #include <sys/types.h> … … 10064 5104 } 10065 5105 _ACEOF 10066 rm -f conftest.$ac_objext 10067 if { (ac_try="$ac_compile" 10068 case "(($ac_try" in 10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10070 *) ac_try_echo=$ac_try;; 10071 esac 10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10073 (eval "$ac_compile") 2>conftest.er1 10074 ac_status=$? 10075 grep -v '^ *+' conftest.er1 >conftest.err 10076 rm -f conftest.er1 10077 cat conftest.err >&5 10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10079 (exit $ac_status); } && { 10080 test -z "$ac_c_werror_flag" || 10081 test ! -s conftest.err 10082 } && test -s conftest.$ac_objext; then 10083 cat >>confdefs.h <<\_ACEOF 10084 #define PJ_SOCK_HAS_GETADDRINFO 1 10085 _ACEOF 10086 10087 { echo "$as_me:$LINENO: result: yes" >&5 10088 echo "${ECHO_T}yes" >&6; } 10089 else 10090 echo "$as_me: failed program was:" >&5 10091 sed 's/^/| /' conftest.$ac_ext >&5 10092 10093 { echo "$as_me:$LINENO: result: no" >&5 10094 echo "${ECHO_T}no" >&6; } 10095 fi 10096 5106 if ac_fn_c_try_compile "$LINENO"; then : 5107 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h 5108 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5110 $as_echo "yes" >&6; } 5111 else 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5113 $as_echo "no" >&6; } 5114 fi 10097 5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10098 5116 10099 { echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 10100 echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; } 10101 cat >conftest.$ac_ext <<_ACEOF 10102 /* confdefs.h. */ 10103 _ACEOF 10104 cat confdefs.h >>conftest.$ac_ext 10105 cat >>conftest.$ac_ext <<_ACEOF 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5 5118 $as_echo_n "checking if sockaddr_in has sin_len member... " >&6; } 5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10106 5120 /* end confdefs.h. */ 10107 5121 #include <sys/types.h> … … 10117 5131 } 10118 5132 _ACEOF 10119 rm -f conftest.$ac_objext 10120 if { (ac_try="$ac_compile" 10121 case "(($ac_try" in 10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10123 *) ac_try_echo=$ac_try;; 10124 esac 10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10126 (eval "$ac_compile") 2>conftest.er1 10127 ac_status=$? 10128 grep -v '^ *+' conftest.er1 >conftest.err 10129 rm -f conftest.er1 10130 cat conftest.err >&5 10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10132 (exit $ac_status); } && { 10133 test -z "$ac_c_werror_flag" || 10134 test ! -s conftest.err 10135 } && test -s conftest.$ac_objext; then 10136 cat >>confdefs.h <<\_ACEOF 10137 #define PJ_SOCKADDR_HAS_LEN 1 10138 _ACEOF 10139 10140 { echo "$as_me:$LINENO: result: yes" >&5 10141 echo "${ECHO_T}yes" >&6; } 10142 else 10143 echo "$as_me: failed program was:" >&5 10144 sed 's/^/| /' conftest.$ac_ext >&5 10145 10146 { echo "$as_me:$LINENO: result: no" >&5 10147 echo "${ECHO_T}no" >&6; } 10148 fi 10149 5133 if ac_fn_c_try_compile "$LINENO"; then : 5134 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h 5135 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5137 $as_echo "yes" >&6; } 5138 else 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5140 $as_echo "no" >&6; } 5141 fi 10150 5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10151 5143 10152 { echo "$as_me:$LINENO: checking if socklen_t is available" >&5 10153 echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; } 10154 cat >conftest.$ac_ext <<_ACEOF 10155 /* confdefs.h. */ 10156 _ACEOF 10157 cat confdefs.h >>conftest.$ac_ext 10158 cat >>conftest.$ac_ext <<_ACEOF 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5 5145 $as_echo_n "checking if socklen_t is available... " >&6; } 5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159 5147 /* end confdefs.h. */ 10160 5148 #include <sys/types.h> … … 10168 5156 } 10169 5157 _ACEOF 10170 rm -f conftest.$ac_objext 10171 if { (ac_try="$ac_compile" 10172 case "(($ac_try" in 10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10174 *) ac_try_echo=$ac_try;; 10175 esac 10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10177 (eval "$ac_compile") 2>conftest.er1 10178 ac_status=$? 10179 grep -v '^ *+' conftest.er1 >conftest.err 10180 rm -f conftest.er1 10181 cat conftest.err >&5 10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10183 (exit $ac_status); } && { 10184 test -z "$ac_c_werror_flag" || 10185 test ! -s conftest.err 10186 } && test -s conftest.$ac_objext; then 10187 cat >>confdefs.h <<\_ACEOF 10188 #define PJ_HAS_SOCKLEN_T 1 10189 _ACEOF 10190 10191 { echo "$as_me:$LINENO: result: yes" >&5 10192 echo "${ECHO_T}yes" >&6; } 10193 else 10194 echo "$as_me: failed program was:" >&5 10195 sed 's/^/| /' conftest.$ac_ext >&5 10196 10197 { echo "$as_me:$LINENO: result: no" >&5 10198 echo "${ECHO_T}no" >&6; } 10199 fi 10200 5158 if ac_fn_c_try_compile "$LINENO"; then : 5159 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h 5160 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5162 $as_echo "yes" >&6; } 5163 else 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5165 $as_echo "no" >&6; } 5166 fi 10201 5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10202 5168 10203 { echo "$as_me:$LINENO: checking if SO_ERROR is available" >&510204 echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; }5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5 5170 $as_echo_n "checking if SO_ERROR is available... " >&6; } 10205 5171 case $target in 10206 5172 *mingw* | *cygw* | *win32* | *w32* ) 10207 cat >>confdefs.h <<\_ACEOF 10208 #define PJ_HAS_SO_ERROR 1 10209 _ACEOF 10210 10211 { echo "$as_me:$LINENO: result: yes" >&5 10212 echo "${ECHO_T}yes" >&6; } 5173 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h 5174 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5176 $as_echo "yes" >&6; } 10213 5177 ;; 10214 5178 *) 10215 cat >conftest.$ac_ext <<_ACEOF 10216 /* confdefs.h. */ 10217 _ACEOF 10218 cat confdefs.h >>conftest.$ac_ext 10219 cat >>conftest.$ac_ext <<_ACEOF 5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220 5180 /* end confdefs.h. */ 10221 5181 #include <sys/types.h> … … 10231 5191 } 10232 5192 _ACEOF 10233 rm -f conftest.$ac_objext 10234 if { (ac_try="$ac_compile" 10235 case "(($ac_try" in 10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10237 *) ac_try_echo=$ac_try;; 10238 esac 10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10240 (eval "$ac_compile") 2>conftest.er1 10241 ac_status=$? 10242 grep -v '^ *+' conftest.er1 >conftest.err 10243 rm -f conftest.er1 10244 cat conftest.err >&5 10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10246 (exit $ac_status); } && { 10247 test -z "$ac_c_werror_flag" || 10248 test ! -s conftest.err 10249 } && test -s conftest.$ac_objext; then 10250 cat >>confdefs.h <<\_ACEOF 10251 #define PJ_HAS_SO_ERROR 1 10252 _ACEOF 10253 10254 { echo "$as_me:$LINENO: result: yes" >&5 10255 echo "${ECHO_T}yes" >&6; } 10256 else 10257 echo "$as_me: failed program was:" >&5 10258 sed 's/^/| /' conftest.$ac_ext >&5 10259 10260 { echo "$as_me:$LINENO: result: no" >&5 10261 echo "${ECHO_T}no" >&6; } 10262 fi 10263 5193 if ac_fn_c_try_compile "$LINENO"; then : 5194 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h 5195 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5197 $as_echo "yes" >&6; } 5198 else 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5200 $as_echo "no" >&6; } 5201 fi 10264 5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10265 5203 ;; … … 10267 5205 10268 5206 10269 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 10270 echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; } 10271 cat >conftest.$ac_ext <<_ACEOF 10272 /* confdefs.h. */ 10273 _ACEOF 10274 cat confdefs.h >>conftest.$ac_ext 10275 cat >>conftest.$ac_ext <<_ACEOF 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5 5208 $as_echo_n "checking if pthread_rwlock_t is available... " >&6; } 5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10276 5210 /* end confdefs.h. */ 10277 5211 #include <pthread.h> … … 10284 5218 } 10285 5219 _ACEOF 10286 rm -f conftest.$ac_objext 10287 if { (ac_try="$ac_compile" 10288 case "(($ac_try" in 10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10290 *) ac_try_echo=$ac_try;; 10291 esac 10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10293 (eval "$ac_compile") 2>conftest.er1 10294 ac_status=$? 10295 grep -v '^ *+' conftest.er1 >conftest.err 10296 rm -f conftest.er1 10297 cat conftest.err >&5 10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10299 (exit $ac_status); } && { 10300 test -z "$ac_c_werror_flag" || 10301 test ! -s conftest.err 10302 } && test -s conftest.$ac_objext; then 10303 cat >>confdefs.h <<\_ACEOF 10304 #define PJ_EMULATE_RWMUTEX 0 10305 _ACEOF 5220 if ac_fn_c_try_compile "$LINENO"; then : 5221 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h 10306 5222 10307 5223 ac_rwmutex="yes" 10308 { echo "$as_me:$LINENO: result: yes" >&5 10309 echo "${ECHO_T}yes" >&6; } 10310 else 10311 echo "$as_me: failed program was:" >&5 10312 sed 's/^/| /' conftest.$ac_ext >&5 10313 10314 cat >>confdefs.h <<\_ACEOF 10315 #define PJ_EMULATE_RWMUTEX 1 10316 _ACEOF 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5225 $as_echo "yes" >&6; } 5226 else 5227 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h 10317 5228 10318 5229 ac_rwmutex="no" 10319 { echo "$as_me:$LINENO: result: no" >&5 10320 echo "${ECHO_T}no" >&6; } 10321 fi 10322 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5231 $as_echo "no" >&6; } 5232 fi 10323 5233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10324 5234 10325 5235 if test "$ac_rwmutex" = "no"; then 10326 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 10327 echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; } 10328 cat >conftest.$ac_ext <<_ACEOF 10329 /* confdefs.h. */ 10330 _ACEOF 10331 cat confdefs.h >>conftest.$ac_ext 10332 cat >>conftest.$ac_ext <<_ACEOF 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 5237 $as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; } 5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10333 5239 /* end confdefs.h. */ 10334 5240 #define _POSIX_READER_WRITER_LOCKS … … 10342 5248 } 10343 5249 _ACEOF 10344 rm -f conftest.$ac_objext 10345 if { (ac_try="$ac_compile" 10346 case "(($ac_try" in 10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10348 *) ac_try_echo=$ac_try;; 10349 esac 10350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10351 (eval "$ac_compile") 2>conftest.er1 10352 ac_status=$? 10353 grep -v '^ *+' conftest.er1 >conftest.err 10354 rm -f conftest.er1 10355 cat conftest.err >&5 10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10357 (exit $ac_status); } && { 10358 test -z "$ac_c_werror_flag" || 10359 test ! -s conftest.err 10360 } && test -s conftest.$ac_objext; then 10361 cat >>confdefs.h <<\_ACEOF 10362 #define PJ_EMULATE_RWMUTEX 0 10363 _ACEOF 5250 if ac_fn_c_try_compile "$LINENO"; then : 5251 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h 10364 5252 10365 5253 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" 10366 { echo "$as_me:$LINENO: result: yes" >&5 10367 echo "${ECHO_T}yes" >&6; } 10368 else 10369 echo "$as_me: failed program was:" >&5 10370 sed 's/^/| /' conftest.$ac_ext >&5 10371 10372 cat >>confdefs.h <<\_ACEOF 10373 #define PJ_EMULATE_RWMUTEX 1 10374 _ACEOF 10375 10376 { echo "$as_me:$LINENO: result: no" >&5 10377 echo "${ECHO_T}no" >&6; } 10378 fi 10379 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5255 $as_echo "yes" >&6; } 5256 else 5257 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h 5258 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260 $as_echo "no" >&6; } 5261 fi 10380 5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10381 5263 fi 10382 5264 10383 { echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 10384 echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; } 10385 cat >conftest.$ac_ext <<_ACEOF 10386 /* confdefs.h. */ 10387 _ACEOF 10388 cat confdefs.h >>conftest.$ac_ext 10389 cat >>conftest.$ac_ext <<_ACEOF 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5 5266 $as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; } 5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390 5268 /* end confdefs.h. */ 10391 5269 #include <pthread.h> … … 10398 5276 } 10399 5277 _ACEOF 10400 rm -f conftest.$ac_objext 10401 if { (ac_try="$ac_compile" 10402 case "(($ac_try" in 10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10404 *) ac_try_echo=$ac_try;; 10405 esac 10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10407 (eval "$ac_compile") 2>conftest.er1 10408 ac_status=$? 10409 grep -v '^ *+' conftest.er1 >conftest.err 10410 rm -f conftest.er1 10411 cat conftest.err >&5 10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10413 (exit $ac_status); } && { 10414 test -z "$ac_c_werror_flag" || 10415 test ! -s conftest.err 10416 } && test -s conftest.$ac_objext; then 10417 cat >>confdefs.h <<\_ACEOF 10418 #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 10419 _ACEOF 10420 10421 { echo "$as_me:$LINENO: result: yes" >&5 10422 echo "${ECHO_T}yes" >&6; } 10423 else 10424 echo "$as_me: failed program was:" >&5 10425 sed 's/^/| /' conftest.$ac_ext >&5 10426 10427 { echo "$as_me:$LINENO: result: no" >&5 10428 echo "${ECHO_T}no" >&6; } 10429 fi 10430 5278 if ac_fn_c_try_compile "$LINENO"; then : 5279 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h 5280 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5282 $as_echo "yes" >&6; } 5283 else 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5285 $as_echo "no" >&6; } 5286 fi 10431 5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10432 5288 10433 { echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 10434 echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; } 10435 cat >conftest.$ac_ext <<_ACEOF 10436 /* confdefs.h. */ 10437 _ACEOF 10438 cat confdefs.h >>conftest.$ac_ext 10439 cat >>conftest.$ac_ext <<_ACEOF 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5 5290 $as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; } 5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440 5292 /* end confdefs.h. */ 10441 5293 #include <pthread.h> … … 10449 5301 } 10450 5302 _ACEOF 10451 rm -f conftest.$ac_objext 10452 if { (ac_try="$ac_compile" 10453 case "(($ac_try" in 10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10455 *) ac_try_echo=$ac_try;; 10456 esac 10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10458 (eval "$ac_compile") 2>conftest.er1 10459 ac_status=$? 10460 grep -v '^ *+' conftest.er1 >conftest.err 10461 rm -f conftest.er1 10462 cat conftest.err >&5 10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10464 (exit $ac_status); } && { 10465 test -z "$ac_c_werror_flag" || 10466 test ! -s conftest.err 10467 } && test -s conftest.$ac_objext; then 10468 cat >>confdefs.h <<\_ACEOF 10469 #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 10470 _ACEOF 10471 10472 { echo "$as_me:$LINENO: result: yes" >&5 10473 echo "${ECHO_T}yes" >&6; } 10474 else 10475 echo "$as_me: failed program was:" >&5 10476 sed 's/^/| /' conftest.$ac_ext >&5 10477 10478 { echo "$as_me:$LINENO: result: no" >&5 10479 echo "${ECHO_T}no" >&6; } 10480 fi 10481 5303 if ac_fn_c_try_compile "$LINENO"; then : 5304 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h 5305 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5307 $as_echo "yes" >&6; } 5308 else 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5310 $as_echo "no" >&6; } 5311 fi 10482 5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10483 5313 10484 5314 10485 { echo "$as_me:$LINENO: checking ioqueue backend" >&510486 echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; }5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 5316 $as_echo_n "checking ioqueue backend... " >&6; } 10487 5317 # Check whether --enable-epoll was given. 10488 if test "${enable_epoll+set}" = set; then 5318 if test "${enable_epoll+set}" = set; then : 10489 5319 enableval=$enable_epoll; 10490 5320 ac_os_objs=ioqueue_epoll.o 10491 { echo "$as_me:$LINENO: result: /dev/epoll" >&510492 echo "${ECHO_T}/dev/epoll" >&6; }5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 5322 $as_echo "/dev/epoll" >&6; } 10493 5323 10494 5324 else 10495 5325 10496 5326 ac_os_objs=ioqueue_select.o 10497 { echo "$as_me:$LINENO: result: select()" >&510498 echo "${ECHO_T}select()" >&6; }5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 5328 $as_echo "select()" >&6; } 10499 5329 10500 5330 fi … … 10524 5354 10525 5355 # Check whether --with-external-speex was given. 10526 if test "${with_external_speex+set}" = set; then 5356 if test "${with_external_speex+set}" = set; then : 10527 5357 withval=$with_external_speex; 10528 5358 if test "x$with_external_speex" != "xno"; then 10529 5359 # Test Speex installation 10530 { echo "$as_me:$LINENO: checking if external Speex devkit is installed" >&5 10531 echo $ECHO_N "checking if external Speex devkit is installed... $ECHO_C" >&6; } 10532 cat >conftest.$ac_ext <<_ACEOF 10533 /* confdefs.h. */ 10534 _ACEOF 10535 cat confdefs.h >>conftest.$ac_ext 10536 cat >>conftest.$ac_ext <<_ACEOF 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5 5361 $as_echo_n "checking if external Speex devkit is installed... " >&6; } 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10537 5363 /* end confdefs.h. */ 10538 5364 #include <speex/speex.h> … … 10547 5373 } 10548 5374 _ACEOF 10549 rm -f conftest.$ac_objext 10550 if { (ac_try="$ac_compile" 10551 case "(($ac_try" in 10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10553 *) ac_try_echo=$ac_try;; 10554 esac 10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10556 (eval "$ac_compile") 2>conftest.er1 10557 ac_status=$? 10558 grep -v '^ *+' conftest.er1 >conftest.err 10559 rm -f conftest.er1 10560 cat conftest.err >&5 10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10562 (exit $ac_status); } && { 10563 test -z "$ac_c_werror_flag" || 10564 test ! -s conftest.err 10565 } && test -s conftest.$ac_objext; then 10566 { echo "$as_me:$LINENO: result: yes!!" >&5 10567 echo "${ECHO_T}yes!!" >&6; } 10568 cat >>confdefs.h <<\_ACEOF 10569 #define PJMEDIA_EXTERNAL_SPEEX_CODEC 1 10570 _ACEOF 5375 if ac_fn_c_try_compile "$LINENO"; then : 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 5377 $as_echo "yes!!" >&6; } 5378 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h 10571 5379 10572 5380 ac_external_speex="1" 10573 5381 10574 5382 else 10575 echo "$as_me: failed program was:" >&5 10576 sed 's/^/| /' conftest.$ac_ext >&5 10577 10578 { { echo "$as_me:$LINENO: error: Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5 10579 echo "$as_me: error: Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;} 10580 { (exit 1); exit 1; }; } 10581 fi 10582 5383 as_fn_error "Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 5384 fi 10583 5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10584 5386 fi … … 10592 5394 10593 5395 # Check whether --with-external-gsm was given. 10594 if test "${with_external_gsm+set}" = set; then 5396 if test "${with_external_gsm+set}" = set; then : 10595 5397 withval=$with_external_gsm; 10596 5398 if test "x$with_external_gsm" != "xno"; then 10597 5399 # Test GSM library installation 10598 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm/gsm.h" >&5 10599 echo $ECHO_N "checking if external GSM devkit is installed as gsm/gsm.h... $ECHO_C" >&6; } 10600 cat >conftest.$ac_ext <<_ACEOF 10601 /* confdefs.h. */ 10602 _ACEOF 10603 cat confdefs.h >>conftest.$ac_ext 10604 cat >>conftest.$ac_ext <<_ACEOF 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5 5401 $as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; } 5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10605 5403 /* end confdefs.h. */ 10606 5404 #include <gsm/gsm.h> … … 10613 5411 } 10614 5412 _ACEOF 10615 rm -f conftest.$ac_objext 10616 if { (ac_try="$ac_compile" 10617 case "(($ac_try" in 10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10619 *) ac_try_echo=$ac_try;; 10620 esac 10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10622 (eval "$ac_compile") 2>conftest.er1 10623 ac_status=$? 10624 grep -v '^ *+' conftest.er1 >conftest.err 10625 rm -f conftest.er1 10626 cat conftest.err >&5 10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10628 (exit $ac_status); } && { 10629 test -z "$ac_c_werror_flag" || 10630 test ! -s conftest.err 10631 } && test -s conftest.$ac_objext; then 10632 { echo "$as_me:$LINENO: result: yes!!" >&5 10633 echo "${ECHO_T}yes!!" >&6; } 10634 cat >>confdefs.h <<\_ACEOF 10635 #define PJMEDIA_EXTERNAL_GSM_CODEC 1 10636 _ACEOF 10637 10638 cat >>confdefs.h <<\_ACEOF 10639 #define PJMEDIA_EXTERNAL_GSM_GSM_H 1 10640 _ACEOF 5413 if ac_fn_c_try_compile "$LINENO"; then : 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 5415 $as_echo "yes!!" >&6; } 5416 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h 5417 5418 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h 10641 5419 10642 5420 ac_external_gsm="1" 10643 5421 10644 5422 else 10645 echo "$as_me: failed program was:" >&5 10646 sed 's/^/| /' conftest.$ac_ext >&5 10647 10648 10649 { echo "$as_me:$LINENO: result: no" >&5 10650 echo "${ECHO_T}no" >&6; } 10651 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm.h" >&5 10652 echo $ECHO_N "checking if external GSM devkit is installed as gsm.h... $ECHO_C" >&6; } 10653 cat >conftest.$ac_ext <<_ACEOF 10654 /* confdefs.h. */ 10655 _ACEOF 10656 cat confdefs.h >>conftest.$ac_ext 10657 cat >>conftest.$ac_ext <<_ACEOF 5423 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5425 $as_echo "no" >&6; } 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5 5427 $as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; } 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10658 5429 /* end confdefs.h. */ 10659 5430 #include <gsm.h> … … 10666 5437 } 10667 5438 _ACEOF 10668 rm -f conftest.$ac_objext 10669 if { (ac_try="$ac_compile" 10670 case "(($ac_try" in 10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10672 *) ac_try_echo=$ac_try;; 10673 esac 10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10675 (eval "$ac_compile") 2>conftest.er1 10676 ac_status=$? 10677 grep -v '^ *+' conftest.er1 >conftest.err 10678 rm -f conftest.er1 10679 cat conftest.err >&5 10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10681 (exit $ac_status); } && { 10682 test -z "$ac_c_werror_flag" || 10683 test ! -s conftest.err 10684 } && test -s conftest.$ac_objext; then 10685 { echo "$as_me:$LINENO: result: yes!!" >&5 10686 echo "${ECHO_T}yes!!" >&6; } 10687 cat >>confdefs.h <<\_ACEOF 10688 #define PJMEDIA_EXTERNAL_GSM_CODEC 1 10689 _ACEOF 10690 10691 cat >>confdefs.h <<\_ACEOF 10692 #define PJMEDIA_EXTERNAL_GSM_H 1 10693 _ACEOF 5439 if ac_fn_c_try_compile "$LINENO"; then : 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 5441 $as_echo "yes!!" >&6; } 5442 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h 5443 5444 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h 10694 5445 10695 5446 ac_external_gsm="1" 10696 5447 10697 5448 else 10698 echo "$as_me: failed program was:" >&5 10699 sed 's/^/| /' conftest.$ac_ext >&5 10700 10701 { { echo "$as_me:$LINENO: error: Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5 10702 echo "$as_me: error: Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;} 10703 { (exit 1); exit 1; }; } 10704 10705 10706 fi 10707 5449 as_fn_error "Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 5450 5451 5452 fi 10708 5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10709 5454 10710 5455 10711 5456 fi 10712 10713 5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10714 5458 fi … … 10722 5466 10723 5467 # Check whether --enable-sound was given. 10724 if test "${enable_sound+set}" = set; then 5468 if test "${enable_sound+set}" = set; then : 10725 5469 enableval=$enable_sound; if test "$enable_sound" = "no"; then 10726 5470 ac_pjmedia_snd=null 10727 { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&510728 echo "${ECHO_T}Checking if sound is disabled... yes" >&6; }5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5 5472 $as_echo "Checking if sound is disabled... yes" >&6; } 10729 5473 fi 10730 5474 … … 10736 5480 10737 5481 # Check whether --with-external-pa was given. 10738 if test "${with_external_pa+set}" = set; then 5482 if test "${with_external_pa+set}" = set; then : 10739 5483 withval=$with_external_pa; 10740 5484 if test "x$with_external_pa" != "xno"; then 10741 5485 # Test PortAudio installation 10742 { echo "$as_me:$LINENO: checking if external PortAudio devkit is installed" >&5 10743 echo $ECHO_N "checking if external PortAudio devkit is installed... $ECHO_C" >&6; } 10744 cat >conftest.$ac_ext <<_ACEOF 10745 /* confdefs.h. */ 10746 _ACEOF 10747 cat confdefs.h >>conftest.$ac_ext 10748 cat >>conftest.$ac_ext <<_ACEOF 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5 5487 $as_echo_n "checking if external PortAudio devkit is installed... " >&6; } 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10749 5489 /* end confdefs.h. */ 10750 5490 #include <portaudio.h> … … 10758 5498 } 10759 5499 _ACEOF 10760 rm -f conftest.$ac_objext 10761 if { (ac_try="$ac_compile" 10762 case "(($ac_try" in 10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10764 *) ac_try_echo=$ac_try;; 10765 esac 10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10767 (eval "$ac_compile") 2>conftest.er1 10768 ac_status=$? 10769 grep -v '^ *+' conftest.er1 >conftest.err 10770 rm -f conftest.er1 10771 cat conftest.err >&5 10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10773 (exit $ac_status); } && { 10774 test -z "$ac_c_werror_flag" || 10775 test ! -s conftest.err 10776 } && test -s conftest.$ac_objext; then 10777 { echo "$as_me:$LINENO: result: yes!!" >&5 10778 echo "${ECHO_T}yes!!" >&6; } 5500 if ac_fn_c_try_compile "$LINENO"; then : 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 5502 $as_echo "yes!!" >&6; } 10779 5503 ac_external_pa="1" 10780 5504 10781 5505 else 10782 echo "$as_me: failed program was:" >&5 10783 sed 's/^/| /' conftest.$ac_ext >&5 10784 10785 { { echo "$as_me:$LINENO: error: Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5 10786 echo "$as_me: error: Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;} 10787 { (exit 1); exit 1; }; } 10788 fi 10789 5506 as_fn_error "Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 5507 fi 10790 5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10791 5509 fi … … 10796 5514 10797 5515 10798 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then 10799 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 10800 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } 10801 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then 10802 echo $ECHO_N "(cached) $ECHO_C" >&6 10803 fi 10804 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 10805 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } 10806 else 10807 # Is the header compilable? 10808 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 10809 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; } 10810 cat >conftest.$ac_ext <<_ACEOF 10811 /* confdefs.h. */ 10812 _ACEOF 10813 cat confdefs.h >>conftest.$ac_ext 10814 cat >>conftest.$ac_ext <<_ACEOF 10815 /* end confdefs.h. */ 10816 $ac_includes_default 10817 #include <sys/soundcard.h> 10818 _ACEOF 10819 rm -f conftest.$ac_objext 10820 if { (ac_try="$ac_compile" 10821 case "(($ac_try" in 10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10823 *) ac_try_echo=$ac_try;; 10824 esac 10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10826 (eval "$ac_compile") 2>conftest.er1 10827 ac_status=$? 10828 grep -v '^ *+' conftest.er1 >conftest.err 10829 rm -f conftest.er1 10830 cat conftest.err >&5 10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10832 (exit $ac_status); } && { 10833 test -z "$ac_c_werror_flag" || 10834 test ! -s conftest.err 10835 } && test -s conftest.$ac_objext; then 10836 ac_header_compiler=yes 10837 else 10838 echo "$as_me: failed program was:" >&5 10839 sed 's/^/| /' conftest.$ac_ext >&5 10840 10841 ac_header_compiler=no 10842 fi 10843 10844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10846 echo "${ECHO_T}$ac_header_compiler" >&6; } 10847 10848 # Is the header present? 10849 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 10850 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; } 10851 cat >conftest.$ac_ext <<_ACEOF 10852 /* confdefs.h. */ 10853 _ACEOF 10854 cat confdefs.h >>conftest.$ac_ext 10855 cat >>conftest.$ac_ext <<_ACEOF 10856 /* end confdefs.h. */ 10857 #include <sys/soundcard.h> 10858 _ACEOF 10859 if { (ac_try="$ac_cpp conftest.$ac_ext" 10860 case "(($ac_try" in 10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10862 *) ac_try_echo=$ac_try;; 10863 esac 10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10866 ac_status=$? 10867 grep -v '^ *+' conftest.er1 >conftest.err 10868 rm -f conftest.er1 10869 cat conftest.err >&5 10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10871 (exit $ac_status); } >/dev/null && { 10872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10873 test ! -s conftest.err 10874 }; then 10875 ac_header_preproc=yes 10876 else 10877 echo "$as_me: failed program was:" >&5 10878 sed 's/^/| /' conftest.$ac_ext >&5 10879 10880 ac_header_preproc=no 10881 fi 10882 10883 rm -f conftest.err conftest.$ac_ext 10884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10885 echo "${ECHO_T}$ac_header_preproc" >&6; } 10886 10887 # So? What about this header? 10888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10889 yes:no: ) 10890 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 10891 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10892 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 10893 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} 10894 ac_header_preproc=yes 10895 ;; 10896 no:yes:* ) 10897 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 10898 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} 10899 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 10900 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} 10901 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 10902 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} 10903 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 10904 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} 10905 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 10906 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} 10907 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 10908 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} 10909 10910 ;; 10911 esac 10912 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 10913 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } 10914 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then 10915 echo $ECHO_N "(cached) $ECHO_C" >&6 10916 else 10917 ac_cv_header_sys_soundcard_h=$ac_header_preproc 10918 fi 10919 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 10920 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } 10921 10922 fi 10923 if test $ac_cv_header_sys_soundcard_h = yes; then 5516 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" 5517 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then : 10924 5518 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" 10925 5519 fi 10926 5520 10927 5521 10928 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then 10929 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 10930 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } 10931 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then 10932 echo $ECHO_N "(cached) $ECHO_C" >&6 10933 fi 10934 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 10935 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } 10936 else 10937 # Is the header compilable? 10938 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 10939 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; } 10940 cat >conftest.$ac_ext <<_ACEOF 10941 /* confdefs.h. */ 10942 _ACEOF 10943 cat confdefs.h >>conftest.$ac_ext 10944 cat >>conftest.$ac_ext <<_ACEOF 10945 /* end confdefs.h. */ 10946 $ac_includes_default 10947 #include <linux/soundcard.h> 10948 _ACEOF 10949 rm -f conftest.$ac_objext 10950 if { (ac_try="$ac_compile" 10951 case "(($ac_try" in 10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10953 *) ac_try_echo=$ac_try;; 10954 esac 10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10956 (eval "$ac_compile") 2>conftest.er1 10957 ac_status=$? 10958 grep -v '^ *+' conftest.er1 >conftest.err 10959 rm -f conftest.er1 10960 cat conftest.err >&5 10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10962 (exit $ac_status); } && { 10963 test -z "$ac_c_werror_flag" || 10964 test ! -s conftest.err 10965 } && test -s conftest.$ac_objext; then 10966 ac_header_compiler=yes 10967 else 10968 echo "$as_me: failed program was:" >&5 10969 sed 's/^/| /' conftest.$ac_ext >&5 10970 10971 ac_header_compiler=no 10972 fi 10973 10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10976 echo "${ECHO_T}$ac_header_compiler" >&6; } 10977 10978 # Is the header present? 10979 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 10980 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; } 10981 cat >conftest.$ac_ext <<_ACEOF 10982 /* confdefs.h. */ 10983 _ACEOF 10984 cat confdefs.h >>conftest.$ac_ext 10985 cat >>conftest.$ac_ext <<_ACEOF 10986 /* end confdefs.h. */ 10987 #include <linux/soundcard.h> 10988 _ACEOF 10989 if { (ac_try="$ac_cpp conftest.$ac_ext" 10990 case "(($ac_try" in 10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10992 *) ac_try_echo=$ac_try;; 10993 esac 10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10996 ac_status=$? 10997 grep -v '^ *+' conftest.er1 >conftest.err 10998 rm -f conftest.er1 10999 cat conftest.err >&5 11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11001 (exit $ac_status); } >/dev/null && { 11002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11003 test ! -s conftest.err 11004 }; then 11005 ac_header_preproc=yes 11006 else 11007 echo "$as_me: failed program was:" >&5 11008 sed 's/^/| /' conftest.$ac_ext >&5 11009 11010 ac_header_preproc=no 11011 fi 11012 11013 rm -f conftest.err conftest.$ac_ext 11014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11015 echo "${ECHO_T}$ac_header_preproc" >&6; } 11016 11017 # So? What about this header? 11018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11019 yes:no: ) 11020 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 11021 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11022 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 11023 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} 11024 ac_header_preproc=yes 11025 ;; 11026 no:yes:* ) 11027 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 11028 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} 11029 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 11030 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} 11031 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 11032 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} 11033 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 11034 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} 11035 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 11036 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} 11037 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 11038 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} 11039 11040 ;; 11041 esac 11042 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 11043 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } 11044 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then 11045 echo $ECHO_N "(cached) $ECHO_C" >&6 11046 else 11047 ac_cv_header_linux_soundcard_h=$ac_header_preproc 11048 fi 11049 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 11050 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } 11051 11052 fi 11053 if test $ac_cv_header_linux_soundcard_h = yes; then 5522 ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" 5523 if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then : 11054 5524 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" 11055 5525 fi 11056 5526 11057 5527 11058 if test "${ac_cv_header_machine_soundcard_h+set}" = set; then 11059 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 11060 echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } 11061 if test "${ac_cv_header_machine_soundcard_h+set}" = set; then 11062 echo $ECHO_N "(cached) $ECHO_C" >&6 11063 fi 11064 { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 11065 echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } 11066 else 11067 # Is the header compilable? 11068 { echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 11069 echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; } 11070 cat >conftest.$ac_ext <<_ACEOF 11071 /* confdefs.h. */ 11072 _ACEOF 11073 cat confdefs.h >>conftest.$ac_ext 11074 cat >>conftest.$ac_ext <<_ACEOF 11075 /* end confdefs.h. */ 11076 $ac_includes_default 11077 #include <machine/soundcard.h> 11078 _ACEOF 11079 rm -f conftest.$ac_objext 11080 if { (ac_try="$ac_compile" 11081 case "(($ac_try" in 11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11083 *) ac_try_echo=$ac_try;; 11084 esac 11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11086 (eval "$ac_compile") 2>conftest.er1 11087 ac_status=$? 11088 grep -v '^ *+' conftest.er1 >conftest.err 11089 rm -f conftest.er1 11090 cat conftest.err >&5 11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11092 (exit $ac_status); } && { 11093 test -z "$ac_c_werror_flag" || 11094 test ! -s conftest.err 11095 } && test -s conftest.$ac_objext; then 11096 ac_header_compiler=yes 11097 else 11098 echo "$as_me: failed program was:" >&5 11099 sed 's/^/| /' conftest.$ac_ext >&5 11100 11101 ac_header_compiler=no 11102 fi 11103 11104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11106 echo "${ECHO_T}$ac_header_compiler" >&6; } 11107 11108 # Is the header present? 11109 { echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 11110 echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; } 11111 cat >conftest.$ac_ext <<_ACEOF 11112 /* confdefs.h. */ 11113 _ACEOF 11114 cat confdefs.h >>conftest.$ac_ext 11115 cat >>conftest.$ac_ext <<_ACEOF 11116 /* end confdefs.h. */ 11117 #include <machine/soundcard.h> 11118 _ACEOF 11119 if { (ac_try="$ac_cpp conftest.$ac_ext" 11120 case "(($ac_try" in 11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11122 *) ac_try_echo=$ac_try;; 11123 esac 11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11126 ac_status=$? 11127 grep -v '^ *+' conftest.er1 >conftest.err 11128 rm -f conftest.er1 11129 cat conftest.err >&5 11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11131 (exit $ac_status); } >/dev/null && { 11132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11133 test ! -s conftest.err 11134 }; then 11135 ac_header_preproc=yes 11136 else 11137 echo "$as_me: failed program was:" >&5 11138 sed 's/^/| /' conftest.$ac_ext >&5 11139 11140 ac_header_preproc=no 11141 fi 11142 11143 rm -f conftest.err conftest.$ac_ext 11144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11145 echo "${ECHO_T}$ac_header_preproc" >&6; } 11146 11147 # So? What about this header? 11148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11149 yes:no: ) 11150 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 11151 echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11152 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 11153 echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} 11154 ac_header_preproc=yes 11155 ;; 11156 no:yes:* ) 11157 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 11158 echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} 11159 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 11160 echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} 11161 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 11162 echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} 11163 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 11164 echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} 11165 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 11166 echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} 11167 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 11168 echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} 11169 11170 ;; 11171 esac 11172 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 11173 echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } 11174 if test "${ac_cv_header_machine_soundcard_h+set}" = set; then 11175 echo $ECHO_N "(cached) $ECHO_C" >&6 11176 else 11177 ac_cv_header_machine_soundcard_h=$ac_header_preproc 11178 fi 11179 { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 11180 echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } 11181 11182 fi 11183 if test $ac_cv_header_machine_soundcard_h = yes; then 5528 ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" 5529 if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then : 11184 5530 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" 11185 5531 fi … … 11199 5545 arm-apple-darwin*) 11200 5546 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork" 11201 { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&511202 echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; }5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5 5548 $as_echo "Checking sound device backend... AudioUnit" >&6; } 11203 5549 ;; 11204 5550 *darwin*) … … 11208 5554 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) 11209 5555 ac_pjmedia_snd=pa_old_darwinos 11210 { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&511211 echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; }5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5 5557 $as_echo "Checking sound device backend... old coreaudio" >&6; } 11212 5558 else 11213 5559 ac_pjmedia_snd=pa_darwinos 11214 { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&511215 echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; }5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5 5561 $as_echo "Checking sound device backend... coreaudio" >&6; } 11216 5562 fi 11217 5563 ;; 11218 5564 *cygwin* | *mingw*) 11219 5565 ac_pjmedia_snd=pa_win32 11220 { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&511221 echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; }5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5 5567 $as_echo "Checking sound device backend... win32 sound" >&6; } 11222 5568 ;; 11223 5569 *rtems*) 11224 5570 ac_pjmedia_snd=null 11225 { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&511226 echo "${ECHO_T}Checking sound device backend... null sound" >&6; }5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5 5572 $as_echo "Checking sound device backend... null sound" >&6; } 11227 5573 ;; 11228 5574 *) 11229 5575 ac_pjmedia_snd=pa_unix 11230 if test "${ac_cv_header_alsa_version_h+set}" = set; then 11231 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 11232 echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } 11233 if test "${ac_cv_header_alsa_version_h+set}" = set; then 11234 echo $ECHO_N "(cached) $ECHO_C" >&6 11235 fi 11236 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 11237 echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } 11238 else 11239 # Is the header compilable? 11240 { echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 11241 echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; } 11242 cat >conftest.$ac_ext <<_ACEOF 11243 /* confdefs.h. */ 11244 _ACEOF 11245 cat confdefs.h >>conftest.$ac_ext 11246 cat >>conftest.$ac_ext <<_ACEOF 11247 /* end confdefs.h. */ 11248 $ac_includes_default 11249 #include <alsa/version.h> 11250 _ACEOF 11251 rm -f conftest.$ac_objext 11252 if { (ac_try="$ac_compile" 11253 case "(($ac_try" in 11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11255 *) ac_try_echo=$ac_try;; 11256 esac 11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11258 (eval "$ac_compile") 2>conftest.er1 11259 ac_status=$? 11260 grep -v '^ *+' conftest.er1 >conftest.err 11261 rm -f conftest.er1 11262 cat conftest.err >&5 11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11264 (exit $ac_status); } && { 11265 test -z "$ac_c_werror_flag" || 11266 test ! -s conftest.err 11267 } && test -s conftest.$ac_objext; then 11268 ac_header_compiler=yes 11269 else 11270 echo "$as_me: failed program was:" >&5 11271 sed 's/^/| /' conftest.$ac_ext >&5 11272 11273 ac_header_compiler=no 11274 fi 11275 11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11278 echo "${ECHO_T}$ac_header_compiler" >&6; } 11279 11280 # Is the header present? 11281 { echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 11282 echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; } 11283 cat >conftest.$ac_ext <<_ACEOF 11284 /* confdefs.h. */ 11285 _ACEOF 11286 cat confdefs.h >>conftest.$ac_ext 11287 cat >>conftest.$ac_ext <<_ACEOF 11288 /* end confdefs.h. */ 11289 #include <alsa/version.h> 11290 _ACEOF 11291 if { (ac_try="$ac_cpp conftest.$ac_ext" 11292 case "(($ac_try" in 11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11294 *) ac_try_echo=$ac_try;; 11295 esac 11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11298 ac_status=$? 11299 grep -v '^ *+' conftest.er1 >conftest.err 11300 rm -f conftest.er1 11301 cat conftest.err >&5 11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11303 (exit $ac_status); } >/dev/null && { 11304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11305 test ! -s conftest.err 11306 }; then 11307 ac_header_preproc=yes 11308 else 11309 echo "$as_me: failed program was:" >&5 11310 sed 's/^/| /' conftest.$ac_ext >&5 11311 11312 ac_header_preproc=no 11313 fi 11314 11315 rm -f conftest.err conftest.$ac_ext 11316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11317 echo "${ECHO_T}$ac_header_preproc" >&6; } 11318 11319 # So? What about this header? 11320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11321 yes:no: ) 11322 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 11323 echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11324 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 11325 echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} 11326 ac_header_preproc=yes 11327 ;; 11328 no:yes:* ) 11329 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 11330 echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} 11331 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 11332 echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} 11333 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 11334 echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} 11335 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 11336 echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} 11337 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 11338 echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} 11339 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 11340 echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} 11341 11342 ;; 11343 esac 11344 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 11345 echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } 11346 if test "${ac_cv_header_alsa_version_h+set}" = set; then 11347 echo $ECHO_N "(cached) $ECHO_C" >&6 11348 else 11349 ac_cv_header_alsa_version_h=$ac_header_preproc 11350 fi 11351 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 11352 echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } 11353 11354 fi 11355 if test $ac_cv_header_alsa_version_h = yes; then 5576 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" 5577 if test "x$ac_cv_header_alsa_version_h" = x""yes; then : 11356 5578 ac_pa_use_alsa=1 11357 5579 … … 11364 5586 11365 5587 11366 { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&511367 echo "${ECHO_T}Checking sound device backend... unix" >&6; }5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 5589 $as_echo "Checking sound device backend... unix" >&6; } 11368 5590 11369 5591 ac_pa_use_oss=1 11370 5592 11371 5593 # Check whether --enable-oss was given. 11372 if test "${enable_oss+set}" = set; then 5594 if test "${enable_oss+set}" = set; then : 11373 5595 enableval=$enable_oss; 11374 5596 if test "$enable_oss" = "no"; then 11375 5597 ac_pa_use_oss=0 11376 { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&511377 echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; }5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5 5599 $as_echo "Checking if OSS audio is disabled... yes" >&6; } 11378 5600 fi 11379 5601 … … 11385 5607 11386 5608 # Check whether --enable-ext_sound was given. 11387 if test "${enable_ext_sound+set}" = set; then 5609 if test "${enable_ext_sound+set}" = set; then : 11388 5610 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then 11389 5611 ac_pjmedia_snd=external 11390 { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&511391 echo "${ECHO_T}Checking if external sound is set... yes" >&6; }5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5 5613 $as_echo "Checking if external sound is set... yes" >&6; } 11392 5614 fi 11393 5615 … … 11397 5619 11398 5620 # Check whether --enable-small-filter was given. 11399 if test "${enable_small_filter+set}" = set; then 5621 if test "${enable_small_filter+set}" = set; then : 11400 5622 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then 11401 5623 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' 11402 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&511403 echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; }5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5 5625 $as_echo "Checking if small filter is disabled... yes" >&6; } 11404 5626 fi 11405 5627 else 11406 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&511407 echo "${ECHO_T}Checking if small filter is disabled... no" >&6; }5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5 5629 $as_echo "Checking if small filter is disabled... no" >&6; } 11408 5630 fi 11409 5631 … … 11411 5633 11412 5634 # Check whether --enable-large-filter was given. 11413 if test "${enable_large_filter+set}" = set; then 5635 if test "${enable_large_filter+set}" = set; then : 11414 5636 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then 11415 5637 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' 11416 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&511417 echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; }5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5 5639 $as_echo "Checking if large filter is disabled... yes" >&6; } 11418 5640 fi 11419 5641 else 11420 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&511421 echo "${ECHO_T}Checking if large filter is disabled... no" >&6; }5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5 5643 $as_echo "Checking if large filter is disabled... no" >&6; } 11422 5644 fi 11423 5645 … … 11425 5647 11426 5648 # Check whether --enable-speex-aec was given. 11427 if test "${enable_speex_aec+set}" = set; then 5649 if test "${enable_speex_aec+set}" = set; then : 11428 5650 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then 11429 5651 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' 11430 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&511431 echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; }5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5 5653 $as_echo "Checking if Speex AEC is disabled...yes" >&6; } 11432 5654 fi 11433 5655 else 11434 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&511435 echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; }5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5 5657 $as_echo "Checking if Speex AEC is disabled...no" >&6; } 11436 5658 fi 11437 5659 … … 11439 5661 11440 5662 # Check whether --enable-g711-codec was given. 11441 if test "${enable_g711_codec+set}" = set; then 5663 if test "${enable_g711_codec+set}" = set; then : 11442 5664 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then 11443 5665 ac_no_g711_codec=1 11444 cat >>confdefs.h <<\_ACEOF 11445 #define PJMEDIA_HAS_G711_CODEC 0 11446 _ACEOF 11447 11448 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 11449 echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; } 5666 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h 5667 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5 5669 $as_echo "Checking if G.711 codec is disabled...yes" >&6; } 11450 5670 fi 11451 5671 else 11452 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&511453 echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; }5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5 5673 $as_echo "Checking if G.711 codec is disabled...no" >&6; } 11454 5674 fi 11455 5675 … … 11458 5678 11459 5679 # Check whether --enable-l16-codec was given. 11460 if test "${enable_l16_codec+set}" = set; then 5680 if test "${enable_l16_codec+set}" = set; then : 11461 5681 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then 11462 5682 ac_no_l16_codec=1 11463 cat >>confdefs.h <<\_ACEOF 11464 #define PJMEDIA_HAS_L16_CODEC 0 11465 _ACEOF 11466 11467 { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 11468 echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; } 5683 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h 5684 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5 5686 $as_echo "Checking if L16 codecs are disabled...yes" >&6; } 11469 5687 fi 11470 5688 else 11471 { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&511472 echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; }5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5 5690 $as_echo "Checking if L16 codec is disabled...no" >&6; } 11473 5691 fi 11474 5692 … … 11477 5695 11478 5696 # Check whether --enable-gsm-codec was given. 11479 if test "${enable_gsm_codec+set}" = set; then 5697 if test "${enable_gsm_codec+set}" = set; then : 11480 5698 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then 11481 5699 ac_no_gsm_codec=1 11482 cat >>confdefs.h <<\_ACEOF 11483 #define PJMEDIA_HAS_GSM_CODEC 0 11484 _ACEOF 11485 11486 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 11487 echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; } 5700 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h 5701 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5 5703 $as_echo "Checking if GSM codec is disabled...yes" >&6; } 11488 5704 fi 11489 5705 else 11490 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&511491 echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; }5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5 5707 $as_echo "Checking if GSM codec is disabled...no" >&6; } 11492 5708 fi 11493 5709 … … 11495 5711 11496 5712 # Check whether --enable-g722-codec was given. 11497 if test "${enable_g722_codec+set}" = set; then 5713 if test "${enable_g722_codec+set}" = set; then : 11498 5714 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then 11499 5715 ac_no_g722_codec=1 11500 cat >>confdefs.h <<\_ACEOF 11501 #define PJMEDIA_HAS_G722_CODEC 0 11502 _ACEOF 11503 11504 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5 11505 echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; } 5716 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h 5717 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5 5719 $as_echo "Checking if G.722 codec is disabled...yes" >&6; } 11506 5720 fi 11507 5721 else 11508 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&511509 echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; }5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5 5723 $as_echo "Checking if G.722 codec is disabled...no" >&6; } 11510 5724 fi 11511 5725 … … 11513 5727 11514 5728 # Check whether --enable-g7221-codec was given. 11515 if test "${enable_g7221_codec+set}" = set; then 5729 if test "${enable_g7221_codec+set}" = set; then : 11516 5730 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then 11517 5731 ac_no_g7221_codec=1 11518 cat >>confdefs.h <<\_ACEOF 11519 #define PJMEDIA_HAS_G7221_CODEC 0 11520 _ACEOF 11521 11522 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5 11523 echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; } 5732 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h 5733 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5 5735 $as_echo "Checking if G.722.1 codec is disabled...yes" >&6; } 11524 5736 fi 11525 5737 else 11526 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&511527 echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; }5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5 5739 $as_echo "Checking if G.722.1 codec is disabled...no" >&6; } 11528 5740 fi 11529 5741 … … 11531 5743 11532 5744 # Check whether --enable-speex-codec was given. 11533 if test "${enable_speex_codec+set}" = set; then 5745 if test "${enable_speex_codec+set}" = set; then : 11534 5746 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then 11535 5747 ac_no_speex_codec=1 11536 cat >>confdefs.h <<\_ACEOF 11537 #define PJMEDIA_HAS_SPEEX_CODEC 0 11538 _ACEOF 11539 11540 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 11541 echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; } 5748 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h 5749 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5 5751 $as_echo "Checking if Speex codec is disabled...yes" >&6; } 11542 5752 fi 11543 5753 else 11544 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&511545 echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; }5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5 5755 $as_echo "Checking if Speex codec is disabled...no" >&6; } 11546 5756 fi 11547 5757 … … 11549 5759 11550 5760 # Check whether --enable-ilbc-codec was given. 11551 if test "${enable_ilbc_codec+set}" = set; then 5761 if test "${enable_ilbc_codec+set}" = set; then : 11552 5762 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then 11553 5763 ac_no_ilbc_codec=1 11554 cat >>confdefs.h <<\_ACEOF 11555 #define PJMEDIA_HAS_ILBC_CODEC 0 11556 _ACEOF 11557 11558 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 11559 echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; } 5764 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h 5765 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5 5767 $as_echo "Checking if iLBC codec is disabled...yes" >&6; } 11560 5768 fi 11561 5769 else 11562 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&511563 echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; }5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5 5771 $as_echo "Checking if iLBC codec is disabled...no" >&6; } 11564 5772 fi 11565 5773 11566 5774 11567 5775 # Check whether --enable-libsamplerate was given. 11568 if test "${enable_libsamplerate+set}" = set; then 11569 enableval=$enable_libsamplerate; 11570 { echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 11571 echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; } 11572 if test "${ac_cv_lib_samplerate_src_new+set}" = set; then 11573 echo $ECHO_N "(cached) $ECHO_C" >&6 5776 if test "${enable_libsamplerate+set}" = set; then : 5777 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5 5778 $as_echo_n "checking for src_new in -lsamplerate... " >&6; } 5779 if test "${ac_cv_lib_samplerate_src_new+set}" = set; then : 5780 $as_echo_n "(cached) " >&6 11574 5781 else 11575 5782 ac_check_lib_save_LIBS=$LIBS 11576 5783 LIBS="-lsamplerate $LIBS" 11577 cat >conftest.$ac_ext <<_ACEOF 11578 /* confdefs.h. */ 11579 _ACEOF 11580 cat confdefs.h >>conftest.$ac_ext 11581 cat >>conftest.$ac_ext <<_ACEOF 5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11582 5785 /* end confdefs.h. */ 11583 5786 … … 11597 5800 } 11598 5801 _ACEOF 11599 rm -f conftest.$ac_objext conftest$ac_exeext 11600 if { (ac_try="$ac_link" 11601 case "(($ac_try" in 11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11603 *) ac_try_echo=$ac_try;; 11604 esac 11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11606 (eval "$ac_link") 2>conftest.er1 11607 ac_status=$? 11608 grep -v '^ *+' conftest.er1 >conftest.err 11609 rm -f conftest.er1 11610 cat conftest.err >&5 11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11612 (exit $ac_status); } && { 11613 test -z "$ac_c_werror_flag" || 11614 test ! -s conftest.err 11615 } && test -s conftest$ac_exeext && 11616 $as_test_x conftest$ac_exeext; then 5802 if ac_fn_c_try_link "$LINENO"; then : 11617 5803 ac_cv_lib_samplerate_src_new=yes 11618 5804 else 11619 echo "$as_me: failed program was:" >&5 11620 sed 's/^/| /' conftest.$ac_ext >&5 11621 11622 ac_cv_lib_samplerate_src_new=no 11623 fi 11624 11625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11626 conftest$ac_exeext conftest.$ac_ext 5805 ac_cv_lib_samplerate_src_new=no 5806 fi 5807 rm -f core conftest.err conftest.$ac_objext \ 5808 conftest$ac_exeext conftest.$ac_ext 11627 5809 LIBS=$ac_check_lib_save_LIBS 11628 5810 fi 11629 { echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&511630 echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; }11631 if test $ac_cv_lib_samplerate_src_new = yes; then5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5 5812 $as_echo "$ac_cv_lib_samplerate_src_new" >&6; } 5813 if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then : 11632 5814 cat >>confdefs.h <<_ACEOF 11633 5815 #define HAVE_LIBSAMPLERATE 1 … … 11639 5821 11640 5822 else 11641 { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 11642 echo "${ECHO_T}Skipping libsamplerate detection" >&6; } 11643 11644 fi 11645 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5 5824 $as_echo "Skipping libsamplerate detection" >&6; } 5825 5826 fi 5827 5828 5829 # Check whether --enable-sdl was given. 5830 if test "${enable_sdl+set}" = set; then : 5831 enableval=$enable_sdl; 5832 if test "$enable_sdl" = "no"; then 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5 5834 $as_echo "Checking if SDL is disabled... yes" >&6; } 5835 fi 5836 5837 else 5838 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5 5840 $as_echo_n "checking SDL availability..... " >&6; } 5841 if sdl-config --version; then 5842 5843 5844 ac_sdl_cflags=`sdl-config --cflags` 5845 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" 5846 ac_sdl_ldflags=`sdl-config --libs` 5847 fi 5848 5849 fi 5850 5851 5852 5853 # Check whether --enable-ffmpeg was given. 5854 if test "${enable_ffmpeg+set}" = set; then : 5855 enableval=$enable_ffmpeg; 5856 ac_has_ffmpeg=0 5857 5858 if test "$enable_ffmpeg" = "no"; then 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5 5860 $as_echo "Checking if ffmpeg is disabled... yes" >&6; } 5861 fi 5862 5863 else 5864 5865 5866 5867 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5 5869 $as_echo_n "checking for avdevice_version in -lavdevice... " >&6; } 5870 if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then : 5871 $as_echo_n "(cached) " >&6 5872 else 5873 ac_check_lib_save_LIBS=$LIBS 5874 LIBS="-lavdevice $LIBS" 5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5876 /* end confdefs.h. */ 5877 5878 /* Override any GCC internal prototype to avoid an error. 5879 Use char because int might match the return type of a GCC 5880 builtin and then its argument prototype would still apply. */ 5881 #ifdef __cplusplus 5882 extern "C" 5883 #endif 5884 char avdevice_version (); 5885 int 5886 main () 5887 { 5888 return avdevice_version (); 5889 ; 5890 return 0; 5891 } 5892 _ACEOF 5893 if ac_fn_c_try_link "$LINENO"; then : 5894 ac_cv_lib_avdevice_avdevice_version=yes 5895 else 5896 ac_cv_lib_avdevice_avdevice_version=no 5897 fi 5898 rm -f core conftest.err conftest.$ac_objext \ 5899 conftest$ac_exeext conftest.$ac_ext 5900 LIBS=$ac_check_lib_save_LIBS 5901 fi 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5 5903 $as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; } 5904 if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then : 5905 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" 5906 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" 5907 5908 5909 fi 5910 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5 5912 $as_echo_n "checking for av_register_all in -lavformat... " >&6; } 5913 if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then : 5914 $as_echo_n "(cached) " >&6 5915 else 5916 ac_check_lib_save_LIBS=$LIBS 5917 LIBS="-lavformat $LIBS" 5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5919 /* end confdefs.h. */ 5920 5921 /* Override any GCC internal prototype to avoid an error. 5922 Use char because int might match the return type of a GCC 5923 builtin and then its argument prototype would still apply. */ 5924 #ifdef __cplusplus 5925 extern "C" 5926 #endif 5927 char av_register_all (); 5928 int 5929 main () 5930 { 5931 return av_register_all (); 5932 ; 5933 return 0; 5934 } 5935 _ACEOF 5936 if ac_fn_c_try_link "$LINENO"; then : 5937 ac_cv_lib_avformat_av_register_all=yes 5938 else 5939 ac_cv_lib_avformat_av_register_all=no 5940 fi 5941 rm -f core conftest.err conftest.$ac_objext \ 5942 conftest$ac_exeext conftest.$ac_ext 5943 LIBS=$ac_check_lib_save_LIBS 5944 fi 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5 5946 $as_echo "$ac_cv_lib_avformat_av_register_all" >&6; } 5947 if test "x$ac_cv_lib_avformat_av_register_all" = x""yes; then : 5948 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" 5949 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" 5950 5951 5952 fi 5953 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5 5955 $as_echo_n "checking for avcodec_init in -lavcodec... " >&6; } 5956 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then : 5957 $as_echo_n "(cached) " >&6 5958 else 5959 ac_check_lib_save_LIBS=$LIBS 5960 LIBS="-lavcodec $LIBS" 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962 /* end confdefs.h. */ 5963 5964 /* Override any GCC internal prototype to avoid an error. 5965 Use char because int might match the return type of a GCC 5966 builtin and then its argument prototype would still apply. */ 5967 #ifdef __cplusplus 5968 extern "C" 5969 #endif 5970 char avcodec_init (); 5971 int 5972 main () 5973 { 5974 return avcodec_init (); 5975 ; 5976 return 0; 5977 } 5978 _ACEOF 5979 if ac_fn_c_try_link "$LINENO"; then : 5980 ac_cv_lib_avcodec_avcodec_init=yes 5981 else 5982 ac_cv_lib_avcodec_avcodec_init=no 5983 fi 5984 rm -f core conftest.err conftest.$ac_objext \ 5985 conftest$ac_exeext conftest.$ac_ext 5986 LIBS=$ac_check_lib_save_LIBS 5987 fi 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5 5989 $as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; } 5990 if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then : 5991 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" 5992 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" 5993 5994 5995 fi 5996 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5 5998 $as_echo_n "checking for sws_scale in -lswscale... " >&6; } 5999 if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then : 6000 $as_echo_n "(cached) " >&6 6001 else 6002 ac_check_lib_save_LIBS=$LIBS 6003 LIBS="-lswscale $LIBS" 6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005 /* end confdefs.h. */ 6006 6007 /* Override any GCC internal prototype to avoid an error. 6008 Use char because int might match the return type of a GCC 6009 builtin and then its argument prototype would still apply. */ 6010 #ifdef __cplusplus 6011 extern "C" 6012 #endif 6013 char sws_scale (); 6014 int 6015 main () 6016 { 6017 return sws_scale (); 6018 ; 6019 return 0; 6020 } 6021 _ACEOF 6022 if ac_fn_c_try_link "$LINENO"; then : 6023 ac_cv_lib_swscale_sws_scale=yes 6024 else 6025 ac_cv_lib_swscale_sws_scale=no 6026 fi 6027 rm -f core conftest.err conftest.$ac_objext \ 6028 conftest$ac_exeext conftest.$ac_ext 6029 LIBS=$ac_check_lib_save_LIBS 6030 fi 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5 6032 $as_echo "$ac_cv_lib_swscale_sws_scale" >&6; } 6033 if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then : 6034 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" 6035 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" 6036 6037 6038 fi 6039 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5 6041 $as_echo_n "checking for av_malloc in -lavutil... " >&6; } 6042 if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then : 6043 $as_echo_n "(cached) " >&6 6044 else 6045 ac_check_lib_save_LIBS=$LIBS 6046 LIBS="-lavutil $LIBS" 6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6048 /* end confdefs.h. */ 6049 6050 /* Override any GCC internal prototype to avoid an error. 6051 Use char because int might match the return type of a GCC 6052 builtin and then its argument prototype would still apply. */ 6053 #ifdef __cplusplus 6054 extern "C" 6055 #endif 6056 char av_malloc (); 6057 int 6058 main () 6059 { 6060 return av_malloc (); 6061 ; 6062 return 0; 6063 } 6064 _ACEOF 6065 if ac_fn_c_try_link "$LINENO"; then : 6066 ac_cv_lib_avutil_av_malloc=yes 6067 else 6068 ac_cv_lib_avutil_av_malloc=no 6069 fi 6070 rm -f core conftest.err conftest.$ac_objext \ 6071 conftest$ac_exeext conftest.$ac_ext 6072 LIBS=$ac_check_lib_save_LIBS 6073 fi 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5 6075 $as_echo "$ac_cv_lib_avutil_av_malloc" >&6; } 6076 if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then : 6077 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" 6078 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" 6079 6080 6081 fi 6082 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5 6084 $as_echo_n "checking for avcore_version in -lavcore... " >&6; } 6085 if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then : 6086 $as_echo_n "(cached) " >&6 6087 else 6088 ac_check_lib_save_LIBS=$LIBS 6089 LIBS="-lavcore $LIBS" 6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6091 /* end confdefs.h. */ 6092 6093 /* Override any GCC internal prototype to avoid an error. 6094 Use char because int might match the return type of a GCC 6095 builtin and then its argument prototype would still apply. */ 6096 #ifdef __cplusplus 6097 extern "C" 6098 #endif 6099 char avcore_version (); 6100 int 6101 main () 6102 { 6103 return avcore_version (); 6104 ; 6105 return 0; 6106 } 6107 _ACEOF 6108 if ac_fn_c_try_link "$LINENO"; then : 6109 ac_cv_lib_avcore_avcore_version=yes 6110 else 6111 ac_cv_lib_avcore_avcore_version=no 6112 fi 6113 rm -f core conftest.err conftest.$ac_objext \ 6114 conftest$ac_exeext conftest.$ac_ext 6115 LIBS=$ac_check_lib_save_LIBS 6116 fi 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5 6118 $as_echo "$ac_cv_lib_avcore_avcore_version" >&6; } 6119 if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then : 6120 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" 6121 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" 6122 6123 6124 fi 6125 6126 6127 6128 fi 6129 6130 6131 # Check whether --enable-v4l2 was given. 6132 if test "${enable_v4l2+set}" = set; then : 6133 enableval=$enable_v4l2; 6134 if test "$enable_v4l2" = "no"; then 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5 6136 $as_echo "Checking if V4L2 is disabled... yes" >&6; } 6137 fi 6138 6139 else 6140 6141 6142 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 6144 $as_echo_n "checking for v4l2_open in -lv4l2... " >&6; } 6145 if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then : 6146 $as_echo_n "(cached) " >&6 6147 else 6148 ac_check_lib_save_LIBS=$LIBS 6149 LIBS="-lv4l2 $LIBS" 6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6151 /* end confdefs.h. */ 6152 6153 /* Override any GCC internal prototype to avoid an error. 6154 Use char because int might match the return type of a GCC 6155 builtin and then its argument prototype would still apply. */ 6156 #ifdef __cplusplus 6157 extern "C" 6158 #endif 6159 char v4l2_open (); 6160 int 6161 main () 6162 { 6163 return v4l2_open (); 6164 ; 6165 return 0; 6166 } 6167 _ACEOF 6168 if ac_fn_c_try_link "$LINENO"; then : 6169 ac_cv_lib_v4l2_v4l2_open=yes 6170 else 6171 ac_cv_lib_v4l2_v4l2_open=no 6172 fi 6173 rm -f core conftest.err conftest.$ac_objext \ 6174 conftest$ac_exeext conftest.$ac_ext 6175 LIBS=$ac_check_lib_save_LIBS 6176 fi 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 6178 $as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; } 6179 if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then : 6180 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" 6181 ac_v4l2_ldflags="-lv4l2" 6182 6183 6184 fi 6185 6186 6187 fi 11646 6188 11647 6189 11648 6190 # Check whether --enable-ipp was given. 11649 if test "${enable_ipp+set}" = set; then 6191 if test "${enable_ipp+set}" = set; then : 11650 6192 enableval=$enable_ipp; 11651 6193 else … … 11657 6199 11658 6200 # Check whether --with-ipp was given. 11659 if test "${with_ipp+set}" = set; then 6201 if test "${with_ipp+set}" = set; then : 11660 6202 withval=$with_ipp; 11661 6203 else … … 11667 6209 11668 6210 # Check whether --with-ipp-samples was given. 11669 if test "${with_ipp_samples+set}" = set; then 6211 if test "${with_ipp_samples+set}" = set; then : 11670 6212 withval=$with_ipp_samples; 11671 6213 else … … 11677 6219 11678 6220 # Check whether --with-ipp-arch was given. 11679 if test "${with_ipp_arch+set}" = set; then 6221 if test "${with_ipp_arch+set}" = set; then : 11680 6222 withval=$with_ipp_arch; 11681 6223 else … … 11686 6228 11687 6229 if test "x$enable_ipp" != "xno"; then 11688 { echo "$as_me:$LINENO: checking Intel IPP location" >&511689 echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; }6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5 6231 $as_echo_n "checking Intel IPP location... " >&6; } 11690 6232 11691 6233 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then 11692 { echo "$as_me:$LINENO: result: $with_ipp" >&511693 echo "${ECHO_T}$with_ipp" >&6; }6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5 6235 $as_echo "$with_ipp" >&6; } 11694 6236 IPPROOT=$with_ipp 11695 6237 elif test "x$IPPROOT" = "x"; then 11696 6238 if test -d /opt/intel/ipp; then 11697 6239 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` 11698 { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&511699 echo "${ECHO_T}autodetected in $IPPROOT" >&6; }6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5 6241 $as_echo "autodetected in $IPPROOT" >&6; } 11700 6242 fi 11701 6243 else 11702 { echo "$as_me:$LINENO: result: $IPPROOT" >&511703 echo "${ECHO_T}$IPPROOT" >&6; }6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5 6245 $as_echo "$IPPROOT" >&6; } 11704 6246 fi 11705 6247 11706 6248 if test "x$with_ipp_arch" != "xno"; then 11707 6249 IPP_SUFFIX=$with_ipp_arch 11708 { echo "$as_me:$LINENO: result: IPP arch suffix is set to $IPP_SUFFIX" >&511709 echo "${ECHO_T}IPP arch suffix is set to $IPP_SUFFIX" >&6; }6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 6251 $as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; } 11710 6252 else 11711 6253 IPP_SUFFIX="" 11712 { echo "$as_me:$LINENO: result: IPP arch suffix is set to empty" >&511713 echo "${ECHO_T}IPP arch suffix is set to empty" >&6; }6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5 6255 $as_echo "IPP arch suffix is set to empty" >&6; } 11714 6256 fi 11715 6257 11716 6258 if test x$IPPROOT = x; then 11717 { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&5 11718 echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;} 11719 { (exit 1); exit 1; }; } 6259 as_fn_error "the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" "$LINENO" 5 11720 6260 elif test ! -d $IPPROOT; then 11721 { { echo "$as_me:$LINENO: error: not found" >&5 11722 echo "$as_me: error: not found" >&2;} 11723 { (exit 1); exit 1; }; } 6261 as_fn_error "not found" "$LINENO" 5 11724 6262 elif test ! -d $IPPROOT/include; then 11725 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 11726 echo "$as_me: error: directory doesn't seem to be valid" >&2;} 11727 { (exit 1); exit 1; }; } 6263 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 11728 6264 else 11729 6265 # IPP directory looks okay. … … 11758 6294 11759 6295 11760 { echo "$as_me:$LINENO: checking Intel IPP usability" >&5 11761 echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; } 11762 cat >conftest.$ac_ext <<_ACEOF 11763 /* confdefs.h. */ 11764 _ACEOF 11765 cat confdefs.h >>conftest.$ac_ext 11766 cat >>conftest.$ac_ext <<_ACEOF 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5 6297 $as_echo_n "checking Intel IPP usability... " >&6; } 6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11767 6299 /* end confdefs.h. */ 11768 6300 #include <ippcore.h> … … 11776 6308 } 11777 6309 _ACEOF 11778 rm -f conftest.$ac_objext conftest$ac_exeext 11779 if { (ac_try="$ac_link" 11780 case "(($ac_try" in 11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11782 *) ac_try_echo=$ac_try;; 11783 esac 11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11785 (eval "$ac_link") 2>conftest.er1 11786 ac_status=$? 11787 grep -v '^ *+' conftest.er1 >conftest.err 11788 rm -f conftest.er1 11789 cat conftest.err >&5 11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11791 (exit $ac_status); } && { 11792 test -z "$ac_c_werror_flag" || 11793 test ! -s conftest.err 11794 } && test -s conftest$ac_exeext && 11795 $as_test_x conftest$ac_exeext; then 11796 { echo "$as_me:$LINENO: result: ok" >&5 11797 echo "${ECHO_T}ok" >&6; } 11798 else 11799 echo "$as_me: failed program was:" >&5 11800 sed 's/^/| /' conftest.$ac_ext >&5 11801 11802 { { echo "$as_me:$LINENO: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly 11803 See \`config.log' for more details." >&5 11804 echo "$as_me: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly 11805 See \`config.log' for more details." >&2;} 11806 { (exit run with --help for more info); exit run with --help for more info; }; } 11807 fi 11808 11809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11810 conftest$ac_exeext conftest.$ac_ext 6310 if ac_fn_c_try_link "$LINENO"; then : 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6312 $as_echo "ok" >&6; } 6313 else 6314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6316 { as_fn_set_status run with --help for more info 6317 as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly 6318 See \`config.log' for more details." "$LINENO" 5; }; } 6319 fi 6320 rm -f core conftest.err conftest.$ac_objext \ 6321 conftest$ac_exeext conftest.$ac_ext 11811 6322 11812 6323 CFLAGS="$SAVED_CFLAGS" … … 11815 6326 fi 11816 6327 11817 { echo "$as_me:$LINENO: checking Intel IPP samples location" >&511818 echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; }6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5 6329 $as_echo_n "checking Intel IPP samples location... " >&6; } 11819 6330 11820 6331 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then 11821 { echo "$as_me:$LINENO: result: $with_ipp_samples" >&511822 echo "${ECHO_T}$with_ipp_samples" >&6; }6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5 6333 $as_echo "$with_ipp_samples" >&6; } 11823 6334 IPPSAMPLES=$with_ipp_samples 11824 6335 elif test "x$IPPSAMPLES" = "x"; then 11825 6336 if test -d /opt/intel/ipp-samples; then 11826 6337 IPPSAMPLES=/opt/intel/ipp-samples 11827 { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&511828 echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; }6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5 6339 $as_echo "autodetected in $IPPSAMPLES" >&6; } 11829 6340 fi 11830 6341 else 11831 { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&511832 echo "${ECHO_T}$IPPSAMPLES" >&6; }6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5 6343 $as_echo "$IPPSAMPLES" >&6; } 11833 6344 fi 11834 6345 11835 6346 if test x$IPPSAMPLES = x; then 11836 { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&5 11837 echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&2;} 11838 { (exit 1); exit 1; }; } 6347 as_fn_error "the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" "$LINENO" 5 11839 6348 elif test ! -d $IPPSAMPLES; then 11840 { { echo "$as_me:$LINENO: error: not found" >&5 11841 echo "$as_me: error: not found" >&2;} 11842 { (exit 1); exit 1; }; } 6349 as_fn_error "not found" "$LINENO" 5 11843 6350 elif test ! -d $IPPSAMPLES/speech-codecs; then 11844 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 11845 echo "$as_me: error: directory doesn't seem to be valid" >&2;} 11846 { (exit 1); exit 1; }; } 6351 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 11847 6352 else 11848 6353 # Remove trailing backslash … … 11850 6355 11851 6356 # Guess the libusc.a/libspeech.a build location 11852 { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&511853 echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; }6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5 6358 $as_echo_n "checking Intel IPP USC build location... " >&6; } 11854 6359 if test -d $IPPSAMPLES/speech-codecs/bin; then 11855 6360 IPPVER=5 … … 11864 6369 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` 11865 6370 else 11866 { { echo "$as_me:$LINENO: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? 11867 See \`config.log' for more details." >&5 11868 echo "$as_me: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? 11869 See \`config.log' for more details." >&2;} 11870 { (exit 1); exit 1; }; } 6371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6373 as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? 6374 See \`config.log' for more details." "$LINENO" 5; } 11871 6375 fi 11872 6376 else 11873 { { echo "$as_me:$LINENO: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? 11874 See \`config.log' for more details." >&5 11875 echo "$as_me: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? 11876 See \`config.log' for more details." >&2;} 11877 { (exit 1); exit 1; }; } 6377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6379 as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? 6380 See \`config.log' for more details." "$LINENO" 5; } 11878 6381 fi 11879 6382 11880 6383 # Test the directory 11881 6384 if test ! -d $IPPSAMP_DIR; then 11882 { { echo "$as_me:$LINENO: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist 11883 See \`config.log' for more details." >&5 11884 echo "$as_me: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist 11885 See \`config.log' for more details." >&2;} 11886 { (exit 1); exit 1; }; } 6385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6387 as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist 6388 See \`config.log' for more details." "$LINENO" 5; } 11887 6389 exit 1; 11888 6390 fi … … 11895 6397 IPPSAMP_LDLIBS="-lspeech" 11896 6398 else 11897 { { echo "$as_me:$LINENO: error: bug in this script: unsupported IPP version 11898 See \`config.log' for more details." >&5 11899 echo "$as_me: error: bug in this script: unsupported IPP version 11900 See \`config.log' for more details." >&2;} 11901 { (exit 1); exit 1; }; } 6399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6401 as_fn_error "bug in this script: unsupported IPP version 6402 See \`config.log' for more details." "$LINENO" 5; } 11902 6403 fi 11903 6404 11904 6405 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then 11905 { { echo "$as_me:$LINENO: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR 11906 See \`config.log' for more details." >&5 11907 echo "$as_me: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR 11908 See \`config.log' for more details." >&2;} 11909 { (exit 1); exit 1; }; } 6406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6408 as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR 6409 See \`config.log' for more details." "$LINENO" 5; } 11910 6410 fi 11911 6411 11912 { echo "$as_me:$LINENO: result: $IPPSAMP_DIR" >&511913 echo "${ECHO_T}$IPPSAMP_DIR" >&6; }6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5 6413 $as_echo "$IPPSAMP_DIR" >&6; } 11914 6414 11915 6415 SAVED_CFLAGS="$CFLAGS" … … 11922 6422 LIBS="$IPPSAMP_LDLIBS $LIBS" 11923 6423 11924 { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5 11925 echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; } 11926 cat >conftest.$ac_ext <<_ACEOF 11927 /* confdefs.h. */ 11928 _ACEOF 11929 cat confdefs.h >>conftest.$ac_ext 11930 cat >>conftest.$ac_ext <<_ACEOF 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5 6425 $as_echo_n "checking Intel IPP USC usability... " >&6; } 6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11931 6427 /* end confdefs.h. */ 11932 6428 #include <usc.h> … … 11940 6436 } 11941 6437 _ACEOF 11942 rm -f conftest.$ac_objext conftest$ac_exeext 11943 if { (ac_try="$ac_link" 11944 case "(($ac_try" in 11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11946 *) ac_try_echo=$ac_try;; 11947 esac 11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11949 (eval "$ac_link") 2>conftest.er1 11950 ac_status=$? 11951 grep -v '^ *+' conftest.er1 >conftest.err 11952 rm -f conftest.er1 11953 cat conftest.err >&5 11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11955 (exit $ac_status); } && { 11956 test -z "$ac_c_werror_flag" || 11957 test ! -s conftest.err 11958 } && test -s conftest$ac_exeext && 11959 $as_test_x conftest$ac_exeext; then 11960 { echo "$as_me:$LINENO: result: ok" >&5 11961 echo "${ECHO_T}ok" >&6; } 11962 else 11963 echo "$as_me: failed program was:" >&5 11964 sed 's/^/| /' conftest.$ac_ext >&5 11965 11966 { { echo "$as_me:$LINENO: error: failed 11967 See \`config.log' for more details." >&5 11968 echo "$as_me: error: failed 11969 See \`config.log' for more details." >&2;} 11970 { (exit 1); exit 1; }; } 11971 fi 11972 11973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11974 conftest$ac_exeext conftest.$ac_ext 6438 if ac_fn_c_try_link "$LINENO"; then : 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6440 $as_echo "ok" >&6; } 6441 else 6442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6444 as_fn_error "failed 6445 See \`config.log' for more details." "$LINENO" 5; } 6446 fi 6447 rm -f core conftest.err conftest.$ac_objext \ 6448 conftest$ac_exeext conftest.$ac_ext 11975 6449 11976 6450 CFLAGS="$SAVED_CFLAGS" … … 11992 6466 export IPP_LIBS=$IPP_LIBS" 11993 6467 else 11994 { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&511995 echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; }6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5 6469 $as_echo "Skipping Intel IPP settings (not wanted)" >&6; } 11996 6470 fi 11997 6471 … … 12000 6474 12001 6475 # Check whether --enable-ssl was given. 12002 if test "${enable_ssl+set}" = set; then 6476 if test "${enable_ssl+set}" = set; then : 12003 6477 enableval=$enable_ssl; 12004 6478 if test "$enable_ssl" = "no"; then 12005 6479 ac_no_ssl=1 12006 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&512007 echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; }6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 6481 $as_echo "Checking if SSL support is disabled... yes" >&6; } 12008 6482 fi 12009 6483 12010 6484 else 12011 6485 12012 { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 12013 echo "${ECHO_T}checking for OpenSSL installations.." >&6; } 12014 12015 12016 12017 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then 12018 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 12019 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } 12020 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then 12021 echo $ECHO_N "(cached) $ECHO_C" >&6 12022 fi 12023 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 12024 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } 12025 else 12026 # Is the header compilable? 12027 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 12028 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; } 12029 cat >conftest.$ac_ext <<_ACEOF 12030 /* confdefs.h. */ 12031 _ACEOF 12032 cat confdefs.h >>conftest.$ac_ext 12033 cat >>conftest.$ac_ext <<_ACEOF 12034 /* end confdefs.h. */ 12035 $ac_includes_default 12036 #include <openssl/ssl.h> 12037 _ACEOF 12038 rm -f conftest.$ac_objext 12039 if { (ac_try="$ac_compile" 12040 case "(($ac_try" in 12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12042 *) ac_try_echo=$ac_try;; 12043 esac 12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12045 (eval "$ac_compile") 2>conftest.er1 12046 ac_status=$? 12047 grep -v '^ *+' conftest.er1 >conftest.err 12048 rm -f conftest.er1 12049 cat conftest.err >&5 12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12051 (exit $ac_status); } && { 12052 test -z "$ac_c_werror_flag" || 12053 test ! -s conftest.err 12054 } && test -s conftest.$ac_objext; then 12055 ac_header_compiler=yes 12056 else 12057 echo "$as_me: failed program was:" >&5 12058 sed 's/^/| /' conftest.$ac_ext >&5 12059 12060 ac_header_compiler=no 12061 fi 12062 12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12065 echo "${ECHO_T}$ac_header_compiler" >&6; } 12066 12067 # Is the header present? 12068 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 12069 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; } 12070 cat >conftest.$ac_ext <<_ACEOF 12071 /* confdefs.h. */ 12072 _ACEOF 12073 cat confdefs.h >>conftest.$ac_ext 12074 cat >>conftest.$ac_ext <<_ACEOF 12075 /* end confdefs.h. */ 12076 #include <openssl/ssl.h> 12077 _ACEOF 12078 if { (ac_try="$ac_cpp conftest.$ac_ext" 12079 case "(($ac_try" in 12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12081 *) ac_try_echo=$ac_try;; 12082 esac 12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12085 ac_status=$? 12086 grep -v '^ *+' conftest.er1 >conftest.err 12087 rm -f conftest.er1 12088 cat conftest.err >&5 12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12090 (exit $ac_status); } >/dev/null && { 12091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12092 test ! -s conftest.err 12093 }; then 12094 ac_header_preproc=yes 12095 else 12096 echo "$as_me: failed program was:" >&5 12097 sed 's/^/| /' conftest.$ac_ext >&5 12098 12099 ac_header_preproc=no 12100 fi 12101 12102 rm -f conftest.err conftest.$ac_ext 12103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12104 echo "${ECHO_T}$ac_header_preproc" >&6; } 12105 12106 # So? What about this header? 12107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12108 yes:no: ) 12109 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 12110 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12111 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 12112 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} 12113 ac_header_preproc=yes 12114 ;; 12115 no:yes:* ) 12116 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 12117 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} 12118 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 12119 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} 12120 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 12121 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} 12122 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 12123 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} 12124 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 12125 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} 12126 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 12127 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} 12128 12129 ;; 12130 esac 12131 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 12132 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } 12133 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then 12134 echo $ECHO_N "(cached) $ECHO_C" >&6 12135 else 12136 ac_cv_header_openssl_ssl_h=$ac_header_preproc 12137 fi 12138 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 12139 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } 12140 12141 fi 12142 if test $ac_cv_header_openssl_ssl_h = yes; then 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5 6487 $as_echo "checking for OpenSSL installations.." >&6; } 6488 6489 6490 6491 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 6492 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then : 12143 6493 openssl_h_present=1 12144 6494 fi 12145 6495 12146 6496 12147 { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&512148 echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; }12149 if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then 12150 echo $ECHO_N "(cached) $ECHO_C" >&66497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5 6498 $as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; } 6499 if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then : 6500 $as_echo_n "(cached) " >&6 12151 6501 else 12152 6502 ac_check_lib_save_LIBS=$LIBS 12153 6503 LIBS="-lcrypto $LIBS" 12154 cat >conftest.$ac_ext <<_ACEOF 12155 /* confdefs.h. */ 12156 _ACEOF 12157 cat confdefs.h >>conftest.$ac_ext 12158 cat >>conftest.$ac_ext <<_ACEOF 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12159 6505 /* end confdefs.h. */ 12160 6506 … … 12174 6520 } 12175 6521 _ACEOF 12176 rm -f conftest.$ac_objext conftest$ac_exeext 12177 if { (ac_try="$ac_link" 12178 case "(($ac_try" in 12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12180 *) ac_try_echo=$ac_try;; 12181 esac 12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12183 (eval "$ac_link") 2>conftest.er1 12184 ac_status=$? 12185 grep -v '^ *+' conftest.er1 >conftest.err 12186 rm -f conftest.er1 12187 cat conftest.err >&5 12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12189 (exit $ac_status); } && { 12190 test -z "$ac_c_werror_flag" || 12191 test ! -s conftest.err 12192 } && test -s conftest$ac_exeext && 12193 $as_test_x conftest$ac_exeext; then 6522 if ac_fn_c_try_link "$LINENO"; then : 12194 6523 ac_cv_lib_crypto_ERR_load_BIO_strings=yes 12195 6524 else 12196 echo "$as_me: failed program was:" >&5 12197 sed 's/^/| /' conftest.$ac_ext >&5 12198 12199 ac_cv_lib_crypto_ERR_load_BIO_strings=no 12200 fi 12201 12202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12203 conftest$ac_exeext conftest.$ac_ext 6525 ac_cv_lib_crypto_ERR_load_BIO_strings=no 6526 fi 6527 rm -f core conftest.err conftest.$ac_objext \ 6528 conftest$ac_exeext conftest.$ac_ext 12204 6529 LIBS=$ac_check_lib_save_LIBS 12205 6530 fi 12206 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&512207 echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }12208 if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 6532 $as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } 6533 if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then : 12209 6534 libcrypto_present=1 && LIBS="$LIBS -lcrypto" 12210 6535 fi 12211 6536 12212 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&512213 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }12214 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 12215 echo $ECHO_N "(cached) $ECHO_C" >&66537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 6538 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } 6539 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then : 6540 $as_echo_n "(cached) " >&6 12216 6541 else 12217 6542 ac_check_lib_save_LIBS=$LIBS 12218 6543 LIBS="-lssl $LIBS" 12219 cat >conftest.$ac_ext <<_ACEOF 12220 /* confdefs.h. */ 12221 _ACEOF 12222 cat confdefs.h >>conftest.$ac_ext 12223 cat >>conftest.$ac_ext <<_ACEOF 6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12224 6545 /* end confdefs.h. */ 12225 6546 … … 12239 6560 } 12240 6561 _ACEOF 12241 rm -f conftest.$ac_objext conftest$ac_exeext 12242 if { (ac_try="$ac_link" 12243 case "(($ac_try" in 12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12245 *) ac_try_echo=$ac_try;; 12246 esac 12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12248 (eval "$ac_link") 2>conftest.er1 12249 ac_status=$? 12250 grep -v '^ *+' conftest.er1 >conftest.err 12251 rm -f conftest.er1 12252 cat conftest.err >&5 12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12254 (exit $ac_status); } && { 12255 test -z "$ac_c_werror_flag" || 12256 test ! -s conftest.err 12257 } && test -s conftest$ac_exeext && 12258 $as_test_x conftest$ac_exeext; then 6562 if ac_fn_c_try_link "$LINENO"; then : 12259 6563 ac_cv_lib_ssl_SSL_library_init=yes 12260 6564 else 12261 echo "$as_me: failed program was:" >&5 12262 sed 's/^/| /' conftest.$ac_ext >&5 12263 12264 ac_cv_lib_ssl_SSL_library_init=no 12265 fi 12266 12267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12268 conftest$ac_exeext conftest.$ac_ext 6565 ac_cv_lib_ssl_SSL_library_init=no 6566 fi 6567 rm -f core conftest.err conftest.$ac_objext \ 6568 conftest$ac_exeext conftest.$ac_ext 12269 6569 LIBS=$ac_check_lib_save_LIBS 12270 6570 fi 12271 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&512272 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }12273 if test $ac_cv_lib_ssl_SSL_library_init = yes; then6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 6572 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } 6573 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then : 12274 6574 libssl_present=1 && LIBS="$LIBS -lssl" 12275 6575 fi 12276 6576 12277 6577 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 12278 { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&512279 echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; }6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5 6579 $as_echo "OpenSSL library found, SSL support enabled" >&6; } 12280 6580 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK 12281 6581 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) 12282 cat >>confdefs.h <<\_ACEOF 12283 #define PJ_HAS_SSL_SOCK 1 12284 _ACEOF 6582 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h 12285 6583 12286 6584 else 12287 { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&512288 echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; }6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 6586 $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; } 12289 6587 fi 12290 6588 … … 12295 6593 12296 6594 12297 { echo "$as_me:$LINENO: checking if select() needs correct nfds" >&512298 echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; }6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5 6596 $as_echo_n "checking if select() needs correct nfds... " >&6; } 12299 6597 case $target in 12300 *rtems*) cat >>confdefs.h <<\_ACEOF 12301 #define PJ_SELECT_NEEDS_NFDS 1 12302 _ACEOF 12303 12304 { echo "$as_me:$LINENO: result: yes" >&5 12305 echo "${ECHO_T}yes" >&6; } 6598 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h 6599 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6601 $as_echo "yes" >&6; } 12306 6602 ;; 12307 *) cat >>confdefs.h <<\_ACEOF 12308 #define PJ_SELECT_NEEDS_NFDS 0 12309 _ACEOF 12310 12311 { echo "$as_me:$LINENO: result: no (default)" >&5 12312 echo "${ECHO_T}no (default)" >&6; } 12313 { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 12314 echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; } 6603 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h 6604 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 6606 $as_echo "no (default)" >&6; } 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 6608 $as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; } 12315 6609 ;; 12316 6610 esac 12317 6611 12318 { echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&512319 echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; }6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5 6613 $as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; } 12320 6614 case $target in 12321 *rtems*) cat >>confdefs.h <<\_ACEOF 12322 #define PJ_THREAD_SET_STACK_SIZE 1 12323 _ACEOF 12324 12325 { echo "$as_me:$LINENO: result: yes" >&5 12326 echo "${ECHO_T}yes" >&6; } 6615 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h 6616 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6618 $as_echo "yes" >&6; } 12327 6619 ;; 12328 *) cat >>confdefs.h <<\_ACEOF 12329 #define PJ_THREAD_SET_STACK_SIZE 0 12330 _ACEOF 12331 12332 { echo "$as_me:$LINENO: result: no (default)" >&5 12333 echo "${ECHO_T}no (default)" >&6; } 6620 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h 6621 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 6623 $as_echo "no (default)" >&6; } 12334 6624 ;; 12335 6625 esac 12336 6626 12337 { echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&512338 echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; }6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5 6628 $as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; } 12339 6629 case $target in 12340 *rtems*) cat >>confdefs.h <<\_ACEOF 12341 #define PJ_THREAD_ALLOCATE_STACK 1 12342 _ACEOF 12343 12344 { echo "$as_me:$LINENO: result: yes" >&5 12345 echo "${ECHO_T}yes" >&6; } 6630 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h 6631 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6633 $as_echo "yes" >&6; } 12346 6634 ;; 12347 *) cat >>confdefs.h <<\_ACEOF 12348 #define PJ_THREAD_ALLOCATE_STACK 0 12349 _ACEOF 12350 12351 { echo "$as_me:$LINENO: result: no (default)" >&5 12352 echo "${ECHO_T}no (default)" >&6; } 6635 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h 6636 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 6638 $as_echo "no (default)" >&6; } 12353 6639 ;; 12354 6640 esac … … 12356 6642 case $target in 12357 6643 *mingw* | *cygw* | *win32* | *w32* ) 12358 cat >>confdefs.h <<\_ACEOF 12359 #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK 12360 _ACEOF 6644 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h 12361 6645 12362 6646 ;; 12363 *) cat >>confdefs.h <<\_ACEOF 12364 #define PJ_BLOCKING_ERROR_VAL EAGAIN 12365 _ACEOF 12366 12367 { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 12368 echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } 6647 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h 6648 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 6650 $as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } 12369 6651 ;; 12370 6652 esac … … 12372 6654 case $target in 12373 6655 *mingw* | *cygw* | *win32* | *w32* ) 12374 cat >>confdefs.h <<\_ACEOF 12375 #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK 12376 _ACEOF 6656 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h 12377 6657 12378 6658 ;; 12379 *) cat >>confdefs.h <<\_ACEOF 12380 #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS 12381 _ACEOF 12382 12383 { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 12384 echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } 6659 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h 6660 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 6662 $as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } 12385 6663 ;; 12386 6664 esac … … 12437 6715 *${as_nl}*) 12438 6716 case $ac_var in #( 12439 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&512440 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;6717 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 6718 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12441 6719 esac 12442 6720 case $ac_var in #( 12443 6721 _ | IFS | as_nl) ;; #( 12444 *) $as_unset $ac_var ;; 6722 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6723 *) { eval $ac_var=; unset $ac_var;} ;; 12445 6724 esac ;; 12446 6725 esac … … 12450 6729 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12451 6730 *${as_nl}ac_space=\ *) 12452 # `set' does not quote correctly, so add quotes (double-quote12453 # substitution turns \\\\ into \\, and sed turns \\ into \ ).6731 # `set' does not quote correctly, so add quotes: double-quote 6732 # substitution turns \\\\ into \\, and sed turns \\ into \. 12454 6733 sed -n \ 12455 6734 "s/'/'\\\\''/g; … … 12474 6753 if test -w "$cache_file"; then 12475 6754 test "x$cache_file" != "x/dev/null" && 12476 { echo "$as_me:$LINENO: updating cache $cache_file" >&512477 echo "$as_me: updating cache $cache_file" >&6;}6755 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 6756 $as_echo "$as_me: updating cache $cache_file" >&6;} 12478 6757 cat confcache >$cache_file 12479 6758 else 12480 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&512481 echo "$as_me: not updating unwritable cache $cache_file" >&6;}6759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 6760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12482 6761 fi 12483 6762 fi … … 12495 6774 # 1. Remove the extension, and $U if already installed. 12496 6775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12497 ac_i=` echo "$ac_i" | sed "$ac_script"`6776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12498 6777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12499 6778 # will be set to the directory where LIBOBJS objects are built. 12500 a c_libobjs="$ac_libobjs\${LIBOBJDIR}$ac_i\$U.$ac_objext"12501 a c_ltlibobjs="$ac_ltlibobjs\${LIBOBJDIR}$ac_i"'$U.lo'6779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12502 6781 done 12503 6782 LIBOBJS=$ac_libobjs … … 12507 6786 12508 6787 6788 12509 6789 : ${CONFIG_STATUS=./config.status} 6790 ac_write_fail=0 12510 6791 ac_clean_files_save=$ac_clean_files 12511 6792 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12512 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12513 echo "$as_me: creating $CONFIG_STATUS" >&6;} 12514 cat >$CONFIG_STATUS <<_ACEOF 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 6794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6795 as_write_fail=0 6796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12515 6797 #! $SHELL 12516 6798 # Generated by $as_me. … … 12522 6804 ac_cs_recheck=false 12523 6805 ac_cs_silent=false 6806 12524 6807 SHELL=\${CONFIG_SHELL-$SHELL} 12525 _ACEOF 12526 12527 cat >>$CONFIG_STATUS <<\_A CEOF12528 ## -------------------- -##12529 ## M4sh Initialization. 12530 ## -------------------- -##6808 export SHELL 6809 _ASEOF 6810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6811 ## -------------------- ## 6812 ## M4sh Initialization. ## 6813 ## -------------------- ## 12531 6814 12532 6815 # Be more Bourne compatible 12533 6816 DUALCASE=1; export DUALCASE # for MKS sh 12534 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12535 6818 emulate sh 12536 6819 NULLCMD=: 12537 # Zsh 3.x and 4.x performsword splitting on ${1+"$@"}, which6820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12538 6821 # is contrary to our usage. Disable this feature. 12539 6822 alias -g '${1+"$@"}'='"$@"' 12540 6823 setopt NO_GLOB_SUBST 12541 6824 else 12542 case `(set -o) 2>/dev/null` in 12543 *posix*) set -o posix ;; 6825 case `(set -o) 2>/dev/null` in #( 6826 *posix*) : 6827 set -o posix ;; #( 6828 *) : 6829 ;; 12544 6830 esac 12545 12546 fi 12547 12548 12549 12550 12551 # PATH needs CR 12552 # Avoid depending upon Character Ranges. 12553 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12554 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12555 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12556 as_cr_digits='0123456789' 12557 as_cr_alnum=$as_cr_Letters$as_cr_digits 6831 fi 6832 6833 6834 as_nl=' 6835 ' 6836 export as_nl 6837 # Printing a long string crashes Solaris 7 /usr/bin/printf. 6838 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6841 # Prefer a ksh shell builtin over an external printf program on Solaris, 6842 # but without wasting forks for bash or zsh. 6843 if test -z "$BASH_VERSION$ZSH_VERSION" \ 6844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6845 as_echo='print -r --' 6846 as_echo_n='print -rn --' 6847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6848 as_echo='printf %s\n' 6849 as_echo_n='printf %s' 6850 else 6851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6853 as_echo_n='/usr/ucb/echo -n' 6854 else 6855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6856 as_echo_n_body='eval 6857 arg=$1; 6858 case $arg in #( 6859 *"$as_nl"*) 6860 expr "X$arg" : "X\\(.*\\)$as_nl"; 6861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6862 esac; 6863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6864 ' 6865 export as_echo_n_body 6866 as_echo_n='sh -c $as_echo_n_body as_echo' 6867 fi 6868 export as_echo_body 6869 as_echo='sh -c $as_echo_body as_echo' 6870 fi 12558 6871 12559 6872 # The user is always right. 12560 6873 if test "${PATH_SEPARATOR+set}" != set; then 12561 echo "#! /bin/sh" >conf$$.sh 12562 echo "exit 0" >>conf$$.sh 12563 chmod +x conf$$.sh 12564 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12565 PATH_SEPARATOR=';' 12566 else 12567 PATH_SEPARATOR=: 12568 fi 12569 rm -f conf$$.sh 12570 fi 12571 12572 # Support unset when possible. 12573 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12574 as_unset=unset 12575 else 12576 as_unset=false 6874 PATH_SEPARATOR=: 6875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6876 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6877 PATH_SEPARATOR=';' 6878 } 12577 6879 fi 12578 6880 … … 12583 6885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 12584 6886 # splitting by setting IFS to empty value.) 12585 as_nl='12586 '12587 6887 IFS=" "" $as_nl" 12588 6888 12589 6889 # Find who we are. Look in the path if we contain no directory separator. 12590 case $0 in 6890 case $0 in #(( 12591 6891 *[\\/]* ) as_myself=$0 ;; 12592 6892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 12595 6895 IFS=$as_save_IFS 12596 6896 test -z "$as_dir" && as_dir=. 12597 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break12598 done6897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6898 done 12599 6899 IFS=$as_save_IFS 12600 6900 … … 12607 6907 fi 12608 6908 if test ! -f "$as_myself"; then 12609 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12610 { (exit 1); exit 1; } 12611 fi 12612 12613 # Work around bugs in pre-3.0 UWIN ksh. 12614 for as_var in ENV MAIL MAILPATH 12615 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 6909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6910 exit 1 6911 fi 6912 6913 # Unset variables that we do not need and which cause bugs (e.g. in 6914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 6915 # suppresses any "Segmentation fault" message there. '((' could 6916 # trigger a bug in pdksh 5.2.14. 6917 for as_var in BASH_ENV ENV MAIL MAILPATH 6918 do eval test x\${$as_var+set} = xset \ 6919 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12616 6920 done 12617 6921 PS1='$ ' … … 12620 6924 12621 6925 # NLS nuisances. 12622 for as_var in \ 12623 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 12624 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 12625 LC_TELEPHONE LC_TIME 12626 do 12627 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 12628 eval $as_var=C; export $as_var 12629 else 12630 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 6926 LC_ALL=C 6927 export LC_ALL 6928 LANGUAGE=C 6929 export LANGUAGE 6930 6931 # CDPATH. 6932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6933 6934 6935 # as_fn_error ERROR [LINENO LOG_FD] 6936 # --------------------------------- 6937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 6938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 6939 # script with status $?, using 1 if that was 0. 6940 as_fn_error () 6941 { 6942 as_status=$?; test $as_status -eq 0 && as_status=1 6943 if test "$3"; then 6944 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 6945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12631 6946 fi 12632 done 12633 12634 # Required to use basename. 6947 $as_echo "$as_me: error: $1" >&2 6948 as_fn_exit $as_status 6949 } # as_fn_error 6950 6951 6952 # as_fn_set_status STATUS 6953 # ----------------------- 6954 # Set $? to STATUS, without forking. 6955 as_fn_set_status () 6956 { 6957 return $1 6958 } # as_fn_set_status 6959 6960 # as_fn_exit STATUS 6961 # ----------------- 6962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 6963 as_fn_exit () 6964 { 6965 set +e 6966 as_fn_set_status $1 6967 exit $1 6968 } # as_fn_exit 6969 6970 # as_fn_unset VAR 6971 # --------------- 6972 # Portably unset VAR. 6973 as_fn_unset () 6974 { 6975 { eval $1=; unset $1;} 6976 } 6977 as_unset=as_fn_unset 6978 # as_fn_append VAR VALUE 6979 # ---------------------- 6980 # Append the text in VALUE to the end of the definition contained in VAR. Take 6981 # advantage of any shell optimizations that allow amortized linear growth over 6982 # repeated appends, instead of the typical quadratic growth present in naive 6983 # implementations. 6984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 6985 eval 'as_fn_append () 6986 { 6987 eval $1+=\$2 6988 }' 6989 else 6990 as_fn_append () 6991 { 6992 eval $1=\$$1\$2 6993 } 6994 fi # as_fn_append 6995 6996 # as_fn_arith ARG... 6997 # ------------------ 6998 # Perform arithmetic evaluation on the ARGs, and store the result in the 6999 # global $as_val. Take advantage of shells that can avoid forks. The arguments 7000 # must be portable across $(()) and expr. 7001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7002 eval 'as_fn_arith () 7003 { 7004 as_val=$(( $* )) 7005 }' 7006 else 7007 as_fn_arith () 7008 { 7009 as_val=`expr "$@" || test $? -eq 1` 7010 } 7011 fi # as_fn_arith 7012 7013 12635 7014 if expr a : '\(a\)' >/dev/null 2>&1 && 12636 7015 test "X`expr 00001 : '.*\(...\)'`" = X001; then … … 12646 7025 fi 12647 7026 12648 12649 # Name of the executable. 7027 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7028 as_dirname=dirname 7029 else 7030 as_dirname=false 7031 fi 7032 12650 7033 as_me=`$as_basename -- "$0" || 12651 7034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12652 7035 X"$0" : 'X\(//\)$' \| \ 12653 7036 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12654 echo X/"$0" |7037 $as_echo X/"$0" | 12655 7038 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12656 7039 s//\1/ … … 12667 7050 s/.*/./; q'` 12668 7051 12669 # CDPATH. 12670 $as_unset CDPATH 12671 12672 12673 12674 as_lineno_1=$LINENO 12675 as_lineno_2=$LINENO 12676 test "x$as_lineno_1" != "x$as_lineno_2" && 12677 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12678 12679 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12680 # uniformly replaced by the line number. The first 'sed' inserts a 12681 # line-number line after each line using $LINENO; the second 'sed' 12682 # does the real work. The second script uses 'N' to pair each 12683 # line-number line with the line containing $LINENO, and appends 12684 # trailing '-' during substitution so that $LINENO is not a special 12685 # case at line end. 12686 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12687 # scripts with optimization help from Paolo Bonzini. Blame Lee 12688 # E. McMahon (1931-1989) for sed's syntax. :-) 12689 sed -n ' 12690 p 12691 /[$]LINENO/= 12692 ' <$as_myself | 12693 sed ' 12694 s/[$]LINENO.*/&-/ 12695 t lineno 12696 b 12697 :lineno 12698 N 12699 :loop 12700 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12701 t loop 12702 s/-\n.*// 12703 ' >$as_me.lineno && 12704 chmod +x "$as_me.lineno" || 12705 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12706 { (exit 1); exit 1; }; } 12707 12708 # Don't try to exec as it changes $[0], causing all sort of problems 12709 # (the dirname of $[0] is not the place where we might find the 12710 # original and so on. Autoconf is especially sensitive to this). 12711 . "./$as_me.lineno" 12712 # Exit status is that of the last command. 12713 exit 12714 } 12715 12716 12717 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12718 as_dirname=dirname 12719 else 12720 as_dirname=false 12721 fi 7052 # Avoid depending upon Character Ranges. 7053 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7054 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7055 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7056 as_cr_digits='0123456789' 7057 as_cr_alnum=$as_cr_Letters$as_cr_digits 12722 7058 12723 7059 ECHO_C= ECHO_N= ECHO_T= 12724 case `echo -n x` in 7060 case `echo -n x` in #((((( 12725 7061 -n*) 12726 case `echo 'x \c'` in7062 case `echo 'xy\c'` in 12727 7063 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12728 *) ECHO_C='\c';; 7064 xy) ECHO_C='\c';; 7065 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7066 ECHO_T=' ';; 12729 7067 esac;; 12730 7068 *) … … 12732 7070 esac 12733 7071 12734 if expr a : '\(a\)' >/dev/null 2>&1 &&12735 test "X`expr 00001 : '.*\(...\)'`" = X001; then12736 as_expr=expr12737 else12738 as_expr=false12739 fi12740 12741 7072 rm -f conf$$ conf$$.exe conf$$.file 12742 7073 if test -d conf$$.dir; then … … 12744 7075 else 12745 7076 rm -f conf$$.dir 12746 mkdir conf$$.dir 12747 fi 12748 echo >conf$$.file 12749 if ln -s conf$$.file conf$$ 2>/dev/null; then 12750 as_ln_s='ln -s' 12751 # ... but there are two gotchas: 12752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12754 # In both cases, we have to default to `cp -p'. 12755 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7077 mkdir conf$$.dir 2>/dev/null 7078 fi 7079 if (echo >conf$$.file) 2>/dev/null; then 7080 if ln -s conf$$.file conf$$ 2>/dev/null; then 7081 as_ln_s='ln -s' 7082 # ... but there are two gotchas: 7083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7085 # In both cases, we have to default to `cp -p'. 7086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7087 as_ln_s='cp -p' 7088 elif ln conf$$.file conf$$ 2>/dev/null; then 7089 as_ln_s=ln 7090 else 12756 7091 as_ln_s='cp -p' 12757 elif ln conf$$.file conf$$ 2>/dev/null; then 12758 as_ln_s=ln 7092 fi 12759 7093 else 12760 7094 as_ln_s='cp -p' … … 12763 7097 rmdir conf$$.dir 2>/dev/null 12764 7098 12765 if mkdir -p . 2>/dev/null; then 12766 as_mkdir_p=: 12767 else 12768 test -d ./-p && rmdir ./-p 12769 as_mkdir_p=false 12770 fi 12771 12772 if test -x / >/dev/null 2>&1; then 12773 as_test_x='test -x' 12774 else 12775 if ls -dL / >/dev/null 2>&1; then 12776 as_ls_L_option=L 12777 else 12778 as_ls_L_option= 12779 fi 12780 as_test_x=' 12781 eval sh -c '\'' 12782 if test -d "$1"; then 12783 test -d "$1/."; 12784 else 12785 case $1 in 12786 -*)set "./$1";; 12787 esac; 12788 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12789 ???[sx]*):;;*)false;;esac;fi 12790 '\'' sh 12791 ' 12792 fi 12793 as_executable_p=$as_test_x 12794 12795 # Sed expression to map a string onto a valid CPP name. 12796 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12797 12798 # Sed expression to map a string onto a valid variable name. 12799 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12800 12801 12802 exec 6>&1 12803 12804 # Save the log message, to keep $[0] and so on meaningful, and to 12805 # report actual input values of CONFIG_FILES etc. instead of their 12806 # values after options handling. 12807 ac_log=" 12808 This file was extended by pjproject $as_me 1.x, which was 12809 generated by GNU Autoconf 2.61. Invocation command line was 12810 12811 CONFIG_FILES = $CONFIG_FILES 12812 CONFIG_HEADERS = $CONFIG_HEADERS 12813 CONFIG_LINKS = $CONFIG_LINKS 12814 CONFIG_COMMANDS = $CONFIG_COMMANDS 12815 $ $0 $@ 12816 12817 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12818 " 12819 12820 _ACEOF 12821 12822 cat >>$CONFIG_STATUS <<_ACEOF 12823 # Files that config.status was made for. 12824 config_files="$ac_config_files" 12825 config_headers="$ac_config_headers" 12826 12827 _ACEOF 12828 12829 cat >>$CONFIG_STATUS <<\_ACEOF 12830 ac_cs_usage="\ 12831 \`$as_me' instantiates files from templates according to the 12832 current configuration. 12833 12834 Usage: $0 [OPTIONS] [FILE]... 12835 12836 -h, --help print this help, then exit 12837 -V, --version print version number and configuration settings, then exit 12838 -q, --quiet do not print progress messages 12839 -d, --debug don't remove temporary files 12840 --recheck update $as_me by reconfiguring in the same conditions 12841 --file=FILE[:TEMPLATE] 12842 instantiate the configuration file FILE 12843 --header=FILE[:TEMPLATE] 12844 instantiate the configuration header FILE 12845 12846 Configuration files: 12847 $config_files 12848 12849 Configuration headers: 12850 $config_headers 12851 12852 Report bugs to <bug-autoconf@gnu.org>." 12853 12854 _ACEOF 12855 cat >>$CONFIG_STATUS <<_ACEOF 12856 ac_cs_version="\\ 12857 pjproject config.status 1.x 12858 configured by $0, generated by GNU Autoconf 2.61, 12859 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12860 12861 Copyright (C) 2006 Free Software Foundation, Inc. 12862 This config.status script is free software; the Free Software Foundation 12863 gives unlimited permission to copy, distribute and modify it." 12864 12865 ac_pwd='$ac_pwd' 12866 srcdir='$srcdir' 12867 _ACEOF 12868 12869 cat >>$CONFIG_STATUS <<\_ACEOF 12870 # If no file are specified by the user, then we need to provide default 12871 # value. By we need to know if files were specified by the user. 12872 ac_need_defaults=: 12873 while test $# != 0 12874 do 12875 case $1 in 12876 --*=*) 12877 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12878 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12879 ac_shift=: 12880 ;; 12881 *) 12882 ac_option=$1 12883 ac_optarg=$2 12884 ac_shift=shift 12885 ;; 12886 esac 12887 12888 case $ac_option in 12889 # Handling of the options. 12890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12891 ac_cs_recheck=: ;; 12892 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12893 echo "$ac_cs_version"; exit ;; 12894 --debug | --debu | --deb | --de | --d | -d ) 12895 debug=: ;; 12896 --file | --fil | --fi | --f ) 12897 $ac_shift 12898 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12899 ac_need_defaults=false;; 12900 --header | --heade | --head | --hea ) 12901 $ac_shift 12902 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12903 ac_need_defaults=false;; 12904 --he | --h) 12905 # Conflict between --help and --header 12906 { echo "$as_me: error: ambiguous option: $1 12907 Try \`$0 --help' for more information." >&2 12908 { (exit 1); exit 1; }; };; 12909 --help | --hel | -h ) 12910 echo "$ac_cs_usage"; exit ;; 12911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12912 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12913 ac_cs_silent=: ;; 12914 12915 # This is an error. 12916 -*) { echo "$as_me: error: unrecognized option: $1 12917 Try \`$0 --help' for more information." >&2 12918 { (exit 1); exit 1; }; } ;; 12919 12920 *) ac_config_targets="$ac_config_targets $1" 12921 ac_need_defaults=false ;; 12922 12923 esac 12924 shift 12925 done 12926 12927 ac_configure_extra_args= 12928 12929 if $ac_cs_silent; then 12930 exec 6>/dev/null 12931 ac_configure_extra_args="$ac_configure_extra_args --silent" 12932 fi 12933 12934 _ACEOF 12935 cat >>$CONFIG_STATUS <<_ACEOF 12936 if \$ac_cs_recheck; then 12937 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12938 CONFIG_SHELL=$SHELL 12939 export CONFIG_SHELL 12940 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12941 fi 12942 12943 _ACEOF 12944 cat >>$CONFIG_STATUS <<\_ACEOF 12945 exec 5>>config.log 12946 { 12947 echo 12948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12949 ## Running $as_me. ## 12950 _ASBOX 12951 echo "$ac_log" 12952 } >&5 12953 12954 _ACEOF 12955 cat >>$CONFIG_STATUS <<_ACEOF 12956 _ACEOF 12957 12958 cat >>$CONFIG_STATUS <<\_ACEOF 12959 12960 # Handling of arguments. 12961 for ac_config_target in $ac_config_targets 12962 do 12963 case $ac_config_target in 12964 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; 12965 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; 12966 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; 12967 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; 12968 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; 12969 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; 12970 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; 12971 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; 12972 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; 12973 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; 12974 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; 12975 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; 12976 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; 12977 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; 12978 12979 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12980 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12981 { (exit 1); exit 1; }; };; 12982 esac 12983 done 12984 12985 12986 # If the user did not use the arguments to specify the items to instantiate, 12987 # then the envvar interface is used. Set only those that are not. 12988 # We use the long form for the default assignment because of an extremely 12989 # bizarre bug on SunOS 4.1.3. 12990 if $ac_need_defaults; then 12991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12993 fi 12994 12995 # Have a temporary directory for convenience. Make it in the build tree 12996 # simply because there is no reason against having it here, and in addition, 12997 # creating and moving files from /tmp can sometimes cause problems. 12998 # Hook for its removal unless debugging. 12999 # Note that there is a small window in which the directory will not be cleaned: 13000 # after its creation but before its name has been assigned to `$tmp'. 13001 $debug || 13002 { 13003 tmp= 13004 trap 'exit_status=$? 13005 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13006 ' 0 13007 trap '{ (exit 1); exit 1; }' 1 2 13 15 13008 } 13009 # Create a (secure) tmp directory for tmp files. 13010 13011 { 13012 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13013 test -n "$tmp" && test -d "$tmp" 13014 } || 13015 { 13016 tmp=./conf$$-$RANDOM 13017 (umask 077 && mkdir "$tmp") 13018 } || 13019 { 13020 echo "$me: cannot create a temporary directory in ." >&2 13021 { (exit 1); exit 1; } 13022 } 13023 13024 # 13025 # Set up the sed scripts for CONFIG_FILES section. 13026 # 13027 13028 # No need to generate the scripts if there are no CONFIG_FILES. 13029 # This happens for instance when ./config.status config.h 13030 if test -n "$CONFIG_FILES"; then 13031 13032 _ACEOF 13033 13034 13035 13036 ac_delim='%!_!# ' 13037 for ac_last_try in false false false false false :; do 13038 cat >conf$$subs.sed <<_ACEOF 13039 SHELL!$SHELL$ac_delim 13040 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 13041 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 13042 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 13043 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 13044 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 13045 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 13046 exec_prefix!$exec_prefix$ac_delim 13047 prefix!$prefix$ac_delim 13048 program_transform_name!$program_transform_name$ac_delim 13049 bindir!$bindir$ac_delim 13050 sbindir!$sbindir$ac_delim 13051 libexecdir!$libexecdir$ac_delim 13052 datarootdir!$datarootdir$ac_delim 13053 datadir!$datadir$ac_delim 13054 sysconfdir!$sysconfdir$ac_delim 13055 sharedstatedir!$sharedstatedir$ac_delim 13056 localstatedir!$localstatedir$ac_delim 13057 includedir!$includedir$ac_delim 13058 oldincludedir!$oldincludedir$ac_delim 13059 docdir!$docdir$ac_delim 13060 infodir!$infodir$ac_delim 13061 htmldir!$htmldir$ac_delim 13062 dvidir!$dvidir$ac_delim 13063 pdfdir!$pdfdir$ac_delim 13064 psdir!$psdir$ac_delim 13065 libdir!$libdir$ac_delim 13066 localedir!$localedir$ac_delim 13067 mandir!$mandir$ac_delim 13068 DEFS!$DEFS$ac_delim 13069 ECHO_C!$ECHO_C$ac_delim 13070 ECHO_N!$ECHO_N$ac_delim 13071 ECHO_T!$ECHO_T$ac_delim 13072 LIBS!$LIBS$ac_delim 13073 build_alias!$build_alias$ac_delim 13074 host_alias!$host_alias$ac_delim 13075 target_alias!$target_alias$ac_delim 13076 build!$build$ac_delim 13077 build_cpu!$build_cpu$ac_delim 13078 build_vendor!$build_vendor$ac_delim 13079 build_os!$build_os$ac_delim 13080 host!$host$ac_delim 13081 host_cpu!$host_cpu$ac_delim 13082 host_vendor!$host_vendor$ac_delim 13083 host_os!$host_os$ac_delim 13084 target!$target$ac_delim 13085 target_cpu!$target_cpu$ac_delim 13086 target_vendor!$target_vendor$ac_delim 13087 target_os!$target_os$ac_delim 13088 CC!$CC$ac_delim 13089 CFLAGS!$CFLAGS$ac_delim 13090 LDFLAGS!$LDFLAGS$ac_delim 13091 CPPFLAGS!$CPPFLAGS$ac_delim 13092 ac_ct_CC!$ac_ct_CC$ac_delim 13093 EXEEXT!$EXEEXT$ac_delim 13094 OBJEXT!$OBJEXT$ac_delim 13095 CXX!$CXX$ac_delim 13096 CXXFLAGS!$CXXFLAGS$ac_delim 13097 ac_ct_CXX!$ac_ct_CXX$ac_delim 13098 AR!$AR$ac_delim 13099 LD!$LD$ac_delim 13100 LDOUT!$LDOUT$ac_delim 13101 RANLIB!$RANLIB$ac_delim 13102 LIBEXT!$LIBEXT$ac_delim 13103 LIBEXT2!$LIBEXT2$ac_delim 13104 CC_OUT!$CC_OUT$ac_delim 13105 CC_INC!$CC_INC$ac_delim 13106 CC_DEF!$CC_DEF$ac_delim 13107 CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim 13108 CC_CFLAGS!$CC_CFLAGS$ac_delim 13109 ac_pjdir!$ac_pjdir$ac_delim 13110 ac_build_mak_vars!$ac_build_mak_vars$ac_delim 13111 CPP!$CPP$ac_delim 13112 GREP!$GREP$ac_delim 13113 EGREP!$EGREP$ac_delim 13114 ac_os_objs!$ac_os_objs$ac_delim 13115 ac_external_speex!$ac_external_speex$ac_delim 13116 ac_external_gsm!$ac_external_gsm$ac_delim 13117 ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim 13118 ac_external_pa!$ac_external_pa$ac_delim 13119 ac_pa_cflags!$ac_pa_cflags$ac_delim 13120 ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim 13121 ac_pa_use_oss!$ac_pa_use_oss$ac_delim 13122 ac_no_small_filter!$ac_no_small_filter$ac_delim 13123 ac_no_large_filter!$ac_no_large_filter$ac_delim 13124 ac_no_speex_aec!$ac_no_speex_aec$ac_delim 13125 ac_no_g711_codec!$ac_no_g711_codec$ac_delim 13126 ac_no_l16_codec!$ac_no_l16_codec$ac_delim 13127 ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim 13128 ac_no_g722_codec!$ac_no_g722_codec$ac_delim 13129 ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim 13130 ac_no_speex_codec!$ac_no_speex_codec$ac_delim 13131 ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim 13132 ac_no_ssl!$ac_no_ssl$ac_delim 13133 openssl_h_present!$openssl_h_present$ac_delim 13134 libssl_present!$libssl_present$ac_delim 13135 libcrypto_present!$libcrypto_present$ac_delim 13136 _ACEOF 13137 13138 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 13139 break 13140 elif $ac_last_try; then 13141 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13142 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13143 { (exit 1); exit 1; }; } 13144 else 13145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13146 fi 13147 done 13148 13149 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 13150 if test -n "$ac_eof"; then 13151 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 13152 ac_eof=`expr $ac_eof + 1` 13153 fi 13154 13155 cat >>$CONFIG_STATUS <<_ACEOF 13156 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 13157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13158 _ACEOF 13159 sed ' 13160 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 13161 s/^/s,@/; s/!/@,|#_!!_#|/ 13162 :n 13163 t n 13164 s/'"$ac_delim"'$/,g/; t 13165 s/$/\\/; p 13166 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 13167 ' >>$CONFIG_STATUS <conf$$subs.sed 13168 rm -f conf$$subs.sed 13169 cat >>$CONFIG_STATUS <<_ACEOF 13170 CEOF$ac_eof 13171 _ACEOF 13172 13173 13174 ac_delim='%!_!# ' 13175 for ac_last_try in false false false false false :; do 13176 cat >conf$$subs.sed <<_ACEOF 13177 ac_cross_compile!$ac_cross_compile$ac_delim 13178 ac_linux_poll!$ac_linux_poll$ac_delim 13179 ac_host!$ac_host$ac_delim 13180 ac_main_obj!$ac_main_obj$ac_delim 13181 LIBOBJS!$LIBOBJS$ac_delim 13182 LTLIBOBJS!$LTLIBOBJS$ac_delim 13183 _ACEOF 13184 13185 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then 13186 break 13187 elif $ac_last_try; then 13188 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13189 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13190 { (exit 1); exit 1; }; } 13191 else 13192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13193 fi 13194 done 13195 13196 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 13197 if test -n "$ac_eof"; then 13198 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 13199 ac_eof=`expr $ac_eof + 1` 13200 fi 13201 13202 cat >>$CONFIG_STATUS <<_ACEOF 13203 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 13204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 13205 _ACEOF 13206 sed ' 13207 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 13208 s/^/s,@/; s/!/@,|#_!!_#|/ 13209 :n 13210 t n 13211 s/'"$ac_delim"'$/,g/; t 13212 s/$/\\/; p 13213 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 13214 ' >>$CONFIG_STATUS <conf$$subs.sed 13215 rm -f conf$$subs.sed 13216 cat >>$CONFIG_STATUS <<_ACEOF 13217 :end 13218 s/|#_!!_#|//g 13219 CEOF$ac_eof 13220 _ACEOF 13221 13222 13223 # VPATH may cause trouble with some makes, so we remove $(srcdir), 13224 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13225 # trailing colons and then remove the whole line if VPATH becomes empty 13226 # (actually we leave an empty line to preserve line numbers). 13227 if test "x$srcdir" = x.; then 13228 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13229 s/:*\$(srcdir):*/:/ 13230 s/:*\${srcdir}:*/:/ 13231 s/:*@srcdir@:*/:/ 13232 s/^\([^=]*=[ ]*\):*/\1/ 13233 s/:*$// 13234 s/^[^=]*=[ ]*$// 13235 }' 13236 fi 13237 13238 cat >>$CONFIG_STATUS <<\_ACEOF 13239 fi # test -n "$CONFIG_FILES" 13240 13241 13242 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 13243 do 13244 case $ac_tag in 13245 :[FHLC]) ac_mode=$ac_tag; continue;; 13246 esac 13247 case $ac_mode$ac_tag in 13248 :[FHL]*:*);; 13249 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 13250 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 13251 { (exit 1); exit 1; }; };; 13252 :[FH]-) ac_tag=-:-;; 13253 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13254 esac 13255 ac_save_IFS=$IFS 13256 IFS=: 13257 set x $ac_tag 13258 IFS=$ac_save_IFS 13259 shift 13260 ac_file=$1 13261 shift 13262 13263 case $ac_mode in 13264 :L) ac_source=$1;; 13265 :[FH]) 13266 ac_file_inputs= 13267 for ac_f 13268 do 13269 case $ac_f in 13270 -) ac_f="$tmp/stdin";; 13271 *) # Look for the file first in the build tree, then in the source tree 13272 # (if the path is not absolute). The absolute path cannot be DOS-style, 13273 # because $ac_f cannot contain `:'. 13274 test -f "$ac_f" || 13275 case $ac_f in 13276 [\\/$]*) false;; 13277 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13278 esac || 13279 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 13280 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 13281 { (exit 1); exit 1; }; };; 13282 esac 13283 ac_file_inputs="$ac_file_inputs $ac_f" 13284 done 13285 13286 # Let's still pretend it is `configure' which instantiates (i.e., don't 13287 # use $as_me), people would be surprised to read: 13288 # /* config.h. Generated by config.status. */ 13289 configure_input="Generated from "`IFS=: 13290 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 13291 if test x"$ac_file" != x-; then 13292 configure_input="$ac_file. $configure_input" 13293 { echo "$as_me:$LINENO: creating $ac_file" >&5 13294 echo "$as_me: creating $ac_file" >&6;} 13295 fi 13296 13297 case $ac_tag in 13298 *:-:* | *:-) cat >"$tmp/stdin";; 13299 esac 13300 ;; 13301 esac 13302 13303 ac_dir=`$as_dirname -- "$ac_file" || 13304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13305 X"$ac_file" : 'X\(//\)[^/]' \| \ 13306 X"$ac_file" : 'X\(//\)$' \| \ 13307 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13308 echo X"$ac_file" | 13309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13310 s//\1/ 13311 q 13312 } 13313 /^X\(\/\/\)[^/].*/{ 13314 s//\1/ 13315 q 13316 } 13317 /^X\(\/\/\)$/{ 13318 s//\1/ 13319 q 13320 } 13321 /^X\(\/\).*/{ 13322 s//\1/ 13323 q 13324 } 13325 s/.*/./; q'` 13326 { as_dir="$ac_dir" 7099 7100 # as_fn_mkdir_p 7101 # ------------- 7102 # Create "$as_dir" as a directory, including parents if necessary. 7103 as_fn_mkdir_p () 7104 { 7105 13327 7106 case $as_dir in #( 13328 7107 -*) as_dir=./$as_dir;; 13329 7108 esac 13330 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; }|| {7109 test -d "$as_dir" || eval $as_mkdir_p || { 13331 7110 as_dirs= 13332 7111 while :; do 13333 7112 case $as_dir in #( 13334 *\'*) as_qdir=` echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(7113 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13335 7114 *) as_qdir=$as_dir;; 13336 7115 esac … … 13341 7120 X"$as_dir" : 'X\(//\)$' \| \ 13342 7121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13343 echo X"$as_dir" |7122 $as_echo X"$as_dir" | 13344 7123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13345 7124 s//\1/ … … 13362 7141 done 13363 7142 test -z "$as_dirs" || eval "mkdir $as_dirs" 13364 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13365 echo "$as_me: error: cannot create directory $as_dir" >&2;} 13366 { (exit 1); exit 1; }; }; } 7143 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 7144 7145 7146 } # as_fn_mkdir_p 7147 if mkdir -p . 2>/dev/null; then 7148 as_mkdir_p='mkdir -p "$as_dir"' 7149 else 7150 test -d ./-p && rmdir ./-p 7151 as_mkdir_p=false 7152 fi 7153 7154 if test -x / >/dev/null 2>&1; then 7155 as_test_x='test -x' 7156 else 7157 if ls -dL / >/dev/null 2>&1; then 7158 as_ls_L_option=L 7159 else 7160 as_ls_L_option= 7161 fi 7162 as_test_x=' 7163 eval sh -c '\'' 7164 if test -d "$1"; then 7165 test -d "$1/."; 7166 else 7167 case $1 in #( 7168 -*)set "./$1";; 7169 esac; 7170 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 7171 ???[sx]*):;;*)false;;esac;fi 7172 '\'' sh 7173 ' 7174 fi 7175 as_executable_p=$as_test_x 7176 7177 # Sed expression to map a string onto a valid CPP name. 7178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7179 7180 # Sed expression to map a string onto a valid variable name. 7181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7182 7183 7184 exec 6>&1 7185 ## ----------------------------------- ## 7186 ## Main body of $CONFIG_STATUS script. ## 7187 ## ----------------------------------- ## 7188 _ASEOF 7189 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7190 7191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7192 # Save the log message, to keep $0 and so on meaningful, and to 7193 # report actual input values of CONFIG_FILES etc. instead of their 7194 # values after options handling. 7195 ac_log=" 7196 This file was extended by pjproject $as_me 1.x, which was 7197 generated by GNU Autoconf 2.65. Invocation command line was 7198 7199 CONFIG_FILES = $CONFIG_FILES 7200 CONFIG_HEADERS = $CONFIG_HEADERS 7201 CONFIG_LINKS = $CONFIG_LINKS 7202 CONFIG_COMMANDS = $CONFIG_COMMANDS 7203 $ $0 $@ 7204 7205 on `(hostname || uname -n) 2>/dev/null | sed 1q` 7206 " 7207 7208 _ACEOF 7209 7210 case $ac_config_files in *" 7211 "*) set x $ac_config_files; shift; ac_config_files=$*;; 7212 esac 7213 7214 case $ac_config_headers in *" 7215 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7216 esac 7217 7218 7219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7220 # Files that config.status was made for. 7221 config_files="$ac_config_files" 7222 config_headers="$ac_config_headers" 7223 7224 _ACEOF 7225 7226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7227 ac_cs_usage="\ 7228 \`$as_me' instantiates files and other configuration actions 7229 from templates according to the current configuration. Unless the files 7230 and actions are specified as TAGs, all are instantiated by default. 7231 7232 Usage: $0 [OPTION]... [TAG]... 7233 7234 -h, --help print this help, then exit 7235 -V, --version print version number and configuration settings, then exit 7236 --config print configuration, then exit 7237 -q, --quiet, --silent 7238 do not print progress messages 7239 -d, --debug don't remove temporary files 7240 --recheck update $as_me by reconfiguring in the same conditions 7241 --file=FILE[:TEMPLATE] 7242 instantiate the configuration file FILE 7243 --header=FILE[:TEMPLATE] 7244 instantiate the configuration header FILE 7245 7246 Configuration files: 7247 $config_files 7248 7249 Configuration headers: 7250 $config_headers 7251 7252 Report bugs to the package provider." 7253 7254 _ACEOF 7255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7256 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7257 ac_cs_version="\\ 7258 pjproject config.status 1.x 7259 configured by $0, generated by GNU Autoconf 2.65, 7260 with options \\"\$ac_cs_config\\" 7261 7262 Copyright (C) 2009 Free Software Foundation, Inc. 7263 This config.status script is free software; the Free Software Foundation 7264 gives unlimited permission to copy, distribute and modify it." 7265 7266 ac_pwd='$ac_pwd' 7267 srcdir='$srcdir' 7268 test -n "\$AWK" || AWK=awk 7269 _ACEOF 7270 7271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7272 # The default lists apply if the user does not specify any file. 7273 ac_need_defaults=: 7274 while test $# != 0 7275 do 7276 case $1 in 7277 --*=*) 7278 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7279 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7280 ac_shift=: 7281 ;; 7282 *) 7283 ac_option=$1 7284 ac_optarg=$2 7285 ac_shift=shift 7286 ;; 7287 esac 7288 7289 case $ac_option in 7290 # Handling of the options. 7291 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7292 ac_cs_recheck=: ;; 7293 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7294 $as_echo "$ac_cs_version"; exit ;; 7295 --config | --confi | --conf | --con | --co | --c ) 7296 $as_echo "$ac_cs_config"; exit ;; 7297 --debug | --debu | --deb | --de | --d | -d ) 7298 debug=: ;; 7299 --file | --fil | --fi | --f ) 7300 $ac_shift 7301 case $ac_optarg in 7302 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7303 esac 7304 as_fn_append CONFIG_FILES " '$ac_optarg'" 7305 ac_need_defaults=false;; 7306 --header | --heade | --head | --hea ) 7307 $ac_shift 7308 case $ac_optarg in 7309 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7310 esac 7311 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7312 ac_need_defaults=false;; 7313 --he | --h) 7314 # Conflict between --help and --header 7315 as_fn_error "ambiguous option: \`$1' 7316 Try \`$0 --help' for more information.";; 7317 --help | --hel | -h ) 7318 $as_echo "$ac_cs_usage"; exit ;; 7319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7320 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7321 ac_cs_silent=: ;; 7322 7323 # This is an error. 7324 -*) as_fn_error "unrecognized option: \`$1' 7325 Try \`$0 --help' for more information." ;; 7326 7327 *) as_fn_append ac_config_targets " $1" 7328 ac_need_defaults=false ;; 7329 7330 esac 7331 shift 7332 done 7333 7334 ac_configure_extra_args= 7335 7336 if $ac_cs_silent; then 7337 exec 6>/dev/null 7338 ac_configure_extra_args="$ac_configure_extra_args --silent" 7339 fi 7340 7341 _ACEOF 7342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7343 if \$ac_cs_recheck; then 7344 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7345 shift 7346 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7347 CONFIG_SHELL='$SHELL' 7348 export CONFIG_SHELL 7349 exec "\$@" 7350 fi 7351 7352 _ACEOF 7353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7354 exec 5>>config.log 7355 { 7356 echo 7357 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7358 ## Running $as_me. ## 7359 _ASBOX 7360 $as_echo "$ac_log" 7361 } >&5 7362 7363 _ACEOF 7364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7365 _ACEOF 7366 7367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7368 7369 # Handling of arguments. 7370 for ac_config_target in $ac_config_targets 7371 do 7372 case $ac_config_target in 7373 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; 7374 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; 7375 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; 7376 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; 7377 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; 7378 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; 7379 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; 7380 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; 7381 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; 7382 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; 7383 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; 7384 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; 7385 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; 7386 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; 7387 7388 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7389 esac 7390 done 7391 7392 7393 # If the user did not use the arguments to specify the items to instantiate, 7394 # then the envvar interface is used. Set only those that are not. 7395 # We use the long form for the default assignment because of an extremely 7396 # bizarre bug on SunOS 4.1.3. 7397 if $ac_need_defaults; then 7398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7400 fi 7401 7402 # Have a temporary directory for convenience. Make it in the build tree 7403 # simply because there is no reason against having it here, and in addition, 7404 # creating and moving files from /tmp can sometimes cause problems. 7405 # Hook for its removal unless debugging. 7406 # Note that there is a small window in which the directory will not be cleaned: 7407 # after its creation but before its name has been assigned to `$tmp'. 7408 $debug || 7409 { 7410 tmp= 7411 trap 'exit_status=$? 7412 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 7413 ' 0 7414 trap 'as_fn_exit 1' 1 2 13 15 7415 } 7416 # Create a (secure) tmp directory for tmp files. 7417 7418 { 7419 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7420 test -n "$tmp" && test -d "$tmp" 7421 } || 7422 { 7423 tmp=./conf$$-$RANDOM 7424 (umask 077 && mkdir "$tmp") 7425 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 7426 7427 # Set up the scripts for CONFIG_FILES section. 7428 # No need to generate them if there are no CONFIG_FILES. 7429 # This happens for instance with `./config.status config.h'. 7430 if test -n "$CONFIG_FILES"; then 7431 7432 7433 ac_cr=`echo X | tr X '\015'` 7434 # On cygwin, bash can eat \r inside `` if the user requested igncr. 7435 # But we know of no other shell where ac_cr would be empty at this 7436 # point, so we can use a bashism as a fallback. 7437 if test "x$ac_cr" = x; then 7438 eval ac_cr=\$\'\\r\' 7439 fi 7440 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7441 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7442 ac_cs_awk_cr='\r' 7443 else 7444 ac_cs_awk_cr=$ac_cr 7445 fi 7446 7447 echo 'BEGIN {' >"$tmp/subs1.awk" && 7448 _ACEOF 7449 7450 7451 { 7452 echo "cat >conf$$subs.awk <<_ACEOF" && 7453 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7454 echo "_ACEOF" 7455 } >conf$$subs.sh || 7456 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 7457 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 7458 ac_delim='%!_!# ' 7459 for ac_last_try in false false false false false :; do 7460 . ./conf$$subs.sh || 7461 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 7462 7463 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7464 if test $ac_delim_n = $ac_delim_num; then 7465 break 7466 elif $ac_last_try; then 7467 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 7468 else 7469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7470 fi 7471 done 7472 rm -f conf$$subs.sh 7473 7474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7475 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 7476 _ACEOF 7477 sed -n ' 7478 h 7479 s/^/S["/; s/!.*/"]=/ 7480 p 7481 g 7482 s/^[^!]*!// 7483 :repl 7484 t repl 7485 s/'"$ac_delim"'$// 7486 t delim 7487 :nl 7488 h 7489 s/\(.\{148\}\)..*/\1/ 7490 t more1 7491 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7492 p 7493 n 7494 b repl 7495 :more1 7496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7497 p 7498 g 7499 s/.\{148\}// 7500 t nl 7501 :delim 7502 h 7503 s/\(.\{148\}\)..*/\1/ 7504 t more2 7505 s/["\\]/\\&/g; s/^/"/; s/$/"/ 7506 p 7507 b 7508 :more2 7509 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7510 p 7511 g 7512 s/.\{148\}// 7513 t delim 7514 ' <conf$$subs.awk | sed ' 7515 /^[^""]/{ 7516 N 7517 s/\n// 7518 } 7519 ' >>$CONFIG_STATUS || ac_write_fail=1 7520 rm -f conf$$subs.awk 7521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7522 _ACAWK 7523 cat >>"\$tmp/subs1.awk" <<_ACAWK && 7524 for (key in S) S_is_set[key] = 1 7525 FS = "" 7526 7527 } 7528 { 7529 line = $ 0 7530 nfields = split(line, field, "@") 7531 substed = 0 7532 len = length(field[1]) 7533 for (i = 2; i < nfields; i++) { 7534 key = field[i] 7535 keylen = length(key) 7536 if (S_is_set[key]) { 7537 value = S[key] 7538 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7539 len += length(value) + length(field[++i]) 7540 substed = 1 7541 } else 7542 len += 1 + keylen 7543 } 7544 7545 print line 7546 } 7547 7548 _ACAWK 7549 _ACEOF 7550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7551 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7552 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7553 else 7554 cat 7555 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 7556 || as_fn_error "could not setup config files machinery" "$LINENO" 5 7557 _ACEOF 7558 7559 # VPATH may cause trouble with some makes, so we remove $(srcdir), 7560 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7561 # trailing colons and then remove the whole line if VPATH becomes empty 7562 # (actually we leave an empty line to preserve line numbers). 7563 if test "x$srcdir" = x.; then 7564 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7565 s/:*\$(srcdir):*/:/ 7566 s/:*\${srcdir}:*/:/ 7567 s/:*@srcdir@:*/:/ 7568 s/^\([^=]*=[ ]*\):*/\1/ 7569 s/:*$// 7570 s/^[^=]*=[ ]*$// 7571 }' 7572 fi 7573 7574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7575 fi # test -n "$CONFIG_FILES" 7576 7577 # Set up the scripts for CONFIG_HEADERS section. 7578 # No need to generate them if there are no CONFIG_HEADERS. 7579 # This happens for instance with `./config.status Makefile'. 7580 if test -n "$CONFIG_HEADERS"; then 7581 cat >"$tmp/defines.awk" <<\_ACAWK || 7582 BEGIN { 7583 _ACEOF 7584 7585 # Transform confdefs.h into an awk script `defines.awk', embedded as 7586 # here-document in config.status, that substitutes the proper values into 7587 # config.h.in to produce config.h. 7588 7589 # Create a delimiter string that does not exist in confdefs.h, to ease 7590 # handling of long lines. 7591 ac_delim='%!_!# ' 7592 for ac_last_try in false false :; do 7593 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 7594 if test -z "$ac_t"; then 7595 break 7596 elif $ac_last_try; then 7597 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 7598 else 7599 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7600 fi 7601 done 7602 7603 # For the awk script, D is an array of macro values keyed by name, 7604 # likewise P contains macro parameters if any. Preserve backslash 7605 # newline sequences. 7606 7607 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7608 sed -n ' 7609 s/.\{148\}/&'"$ac_delim"'/g 7610 t rset 7611 :rset 7612 s/^[ ]*#[ ]*define[ ][ ]*/ / 7613 t def 7614 d 7615 :def 7616 s/\\$// 7617 t bsnl 7618 s/["\\]/\\&/g 7619 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7620 D["\1"]=" \3"/p 7621 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7622 d 7623 :bsnl 7624 s/["\\]/\\&/g 7625 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7626 D["\1"]=" \3\\\\\\n"\\/p 7627 t cont 7628 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7629 t cont 7630 d 7631 :cont 7632 n 7633 s/.\{148\}/&'"$ac_delim"'/g 7634 t clear 7635 :clear 7636 s/\\$// 7637 t bsnlc 7638 s/["\\]/\\&/g; s/^/"/; s/$/"/p 7639 d 7640 :bsnlc 7641 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7642 b cont 7643 ' <confdefs.h | sed ' 7644 s/'"$ac_delim"'/"\\\ 7645 "/g' >>$CONFIG_STATUS || ac_write_fail=1 7646 7647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7648 for (key in D) D_is_set[key] = 1 7649 FS = "" 7650 } 7651 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7652 line = \$ 0 7653 split(line, arg, " ") 7654 if (arg[1] == "#") { 7655 defundef = arg[2] 7656 mac1 = arg[3] 7657 } else { 7658 defundef = substr(arg[1], 2) 7659 mac1 = arg[2] 7660 } 7661 split(mac1, mac2, "(") #) 7662 macro = mac2[1] 7663 prefix = substr(line, 1, index(line, defundef) - 1) 7664 if (D_is_set[macro]) { 7665 # Preserve the white space surrounding the "#". 7666 print prefix "define", macro P[macro] D[macro] 7667 next 7668 } else { 7669 # Replace #undef with comments. This is necessary, for example, 7670 # in the case of _POSIX_SOURCE, which is predefined and required 7671 # on some systems where configure will not decide to define it. 7672 if (defundef == "undef") { 7673 print "/*", prefix defundef, macro, "*/" 7674 next 7675 } 7676 } 7677 } 7678 { print } 7679 _ACAWK 7680 _ACEOF 7681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7682 as_fn_error "could not setup config headers machinery" "$LINENO" 5 7683 fi # test -n "$CONFIG_HEADERS" 7684 7685 7686 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 7687 shift 7688 for ac_tag 7689 do 7690 case $ac_tag in 7691 :[FHLC]) ac_mode=$ac_tag; continue;; 7692 esac 7693 case $ac_mode$ac_tag in 7694 :[FHL]*:*);; 7695 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 7696 :[FH]-) ac_tag=-:-;; 7697 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7698 esac 7699 ac_save_IFS=$IFS 7700 IFS=: 7701 set x $ac_tag 7702 IFS=$ac_save_IFS 7703 shift 7704 ac_file=$1 7705 shift 7706 7707 case $ac_mode in 7708 :L) ac_source=$1;; 7709 :[FH]) 7710 ac_file_inputs= 7711 for ac_f 7712 do 7713 case $ac_f in 7714 -) ac_f="$tmp/stdin";; 7715 *) # Look for the file first in the build tree, then in the source tree 7716 # (if the path is not absolute). The absolute path cannot be DOS-style, 7717 # because $ac_f cannot contain `:'. 7718 test -f "$ac_f" || 7719 case $ac_f in 7720 [\\/$]*) false;; 7721 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7722 esac || 7723 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7724 esac 7725 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7726 as_fn_append ac_file_inputs " '$ac_f'" 7727 done 7728 7729 # Let's still pretend it is `configure' which instantiates (i.e., don't 7730 # use $as_me), people would be surprised to read: 7731 # /* config.h. Generated by config.status. */ 7732 configure_input='Generated from '` 7733 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7734 `' by configure.' 7735 if test x"$ac_file" != x-; then 7736 configure_input="$ac_file. $configure_input" 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7738 $as_echo "$as_me: creating $ac_file" >&6;} 7739 fi 7740 # Neutralize special characters interpreted by sed in replacement strings. 7741 case $configure_input in #( 7742 *\&* | *\|* | *\\* ) 7743 ac_sed_conf_input=`$as_echo "$configure_input" | 7744 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7745 *) ac_sed_conf_input=$configure_input;; 7746 esac 7747 7748 case $ac_tag in 7749 *:-:* | *:-) cat >"$tmp/stdin" \ 7750 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 7751 esac 7752 ;; 7753 esac 7754 7755 ac_dir=`$as_dirname -- "$ac_file" || 7756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7757 X"$ac_file" : 'X\(//\)[^/]' \| \ 7758 X"$ac_file" : 'X\(//\)$' \| \ 7759 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7760 $as_echo X"$ac_file" | 7761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7762 s//\1/ 7763 q 7764 } 7765 /^X\(\/\/\)[^/].*/{ 7766 s//\1/ 7767 q 7768 } 7769 /^X\(\/\/\)$/{ 7770 s//\1/ 7771 q 7772 } 7773 /^X\(\/\).*/{ 7774 s//\1/ 7775 q 7776 } 7777 s/.*/./; q'` 7778 as_dir="$ac_dir"; as_fn_mkdir_p 13367 7779 ac_builddir=. 13368 7780 … … 13370 7782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13371 7783 *) 13372 ac_dir_suffix=/` echo "$ac_dir" | sed 's,^\.[\\/],,'`7784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13373 7785 # A ".." for each directory in $ac_dir_suffix. 13374 ac_top_builddir_sub=` echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`7786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13375 7787 case $ac_top_builddir_sub in 13376 7788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; … … 13408 7820 _ACEOF 13409 7821 13410 cat >>$CONFIG_STATUS <<\_ACEOF 7822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13411 7823 # If the template does not know about datarootdir, expand it. 13412 7824 # FIXME: This hack should be removed a few years after 2.60. 13413 7825 ac_datarootdir_hack=; ac_datarootdir_seen= 13414 13415 case `sed -n '/datarootdir/ {7826 ac_sed_dataroot=' 7827 /datarootdir/ { 13416 7828 p 13417 7829 q … … 13421 7833 /@infodir@/p 13422 7834 /@localedir@/p 13423 /@mandir@/p 13424 ' $ac_file_inputs` in7835 /@mandir@/p' 7836 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13425 7837 *datarootdir*) ac_datarootdir_seen=yes;; 13426 7838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13427 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&513428 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}13429 _ACEOF 13430 cat >>$CONFIG_STATUS <<_ACEOF 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7840 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7841 _ACEOF 7842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13431 7843 ac_datarootdir_hack=' 13432 7844 s&@datadir@&$datadir&g … … 13435 7847 s&@localedir@&$localedir&g 13436 7848 s&@mandir@&$mandir&g 13437 7849 s&\\\${datarootdir}&$datarootdir&g' ;; 13438 7850 esac 13439 7851 _ACEOF … … 13442 7854 # Shell code in configure.ac might set extrasub. 13443 7855 # FIXME: do we really want to maintain this feature? 13444 cat >>$CONFIG_STATUS <<_ACEOF 13445 sed"$ac_vpsub7856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7857 ac_sed_extra="$ac_vpsub 13446 7858 $extrasub 13447 7859 _ACEOF 13448 cat >>$CONFIG_STATUS <<\_ACEOF 7860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13449 7861 :t 13450 7862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13451 s &@configure_input@&$configure_input&;t t7863 s|@configure_input@|$ac_sed_conf_input|;t t 13452 7864 s&@top_builddir@&$ac_top_builddir_sub&;t t 7865 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13453 7866 s&@srcdir@&$ac_srcdir&;t t 13454 7867 s&@abs_srcdir@&$ac_abs_srcdir&;t t … … 13459 7872 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13460 7873 $ac_datarootdir_hack 13461 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 7874 " 7875 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 7876 || as_fn_error "could not create $ac_file" "$LINENO" 5 13462 7877 13463 7878 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13464 7879 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13465 7880 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13466 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'7881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13467 7882 which seems to be undefined. Please make sure it is defined." >&5 13468 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'7883 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13469 7884 which seems to be undefined. Please make sure it is defined." >&2;} 13470 7885 13471 7886 rm -f "$tmp/stdin" 13472 7887 case $ac_file in 13473 -) cat "$tmp/out"; rm -f "$tmp/out";; 13474 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 13475 esac 7888 -) cat "$tmp/out" && rm -f "$tmp/out";; 7889 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 7890 esac \ 7891 || as_fn_error "could not create $ac_file" "$LINENO" 5 13476 7892 ;; 13477 7893 :H) … … 13479 7895 # CONFIG_HEADER 13480 7896 # 13481 _ACEOF13482 13483 # Transform confdefs.h into a sed script `conftest.defines', that13484 # substitutes the proper values into config.h.in to produce config.h.13485 rm -f conftest.defines conftest.tail13486 # First, append a space to every undef/define line, to ease matching.13487 echo 's/$/ /' >conftest.defines13488 # Then, protect against being on the right side of a sed subst, or in13489 # an unquoted here document, in config.status. If some macros were13490 # called several times there might be several #defines for the same13491 # symbol, which is useless. But do not sort them, since the last13492 # AC_DEFINE must be honored.13493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*13494 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where13495 # NAME is the cpp macro being defined, VALUE is the value it is being given.13496 # PARAMS is the parameter list in the macro definition--in most cases, it's13497 # just an empty string.13498 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'13499 ac_dB='\\)[ (].*,\\1define\\2'13500 ac_dC=' '13501 ac_dD=' ,'13502 13503 uniq confdefs.h |13504 sed -n '13505 t rset13506 :rset13507 s/^[ ]*#[ ]*define[ ][ ]*//13508 t ok13509 d13510 :ok13511 s/[\\&,]/\\&/g13512 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p13513 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p13514 ' >>conftest.defines13515 13516 # Remove the space that was appended to ease matching.13517 # Then replace #undef with comments. This is necessary, for13518 # example, in the case of _POSIX_SOURCE, which is predefined and required13519 # on some systems where configure will not decide to define it.13520 # (The regexp can be short, since the line contains either #define or #undef.)13521 echo 's/ $//13522 s,^[ #]*u.*,/* & */,' >>conftest.defines13523 13524 # Break up conftest.defines:13525 ac_max_sed_lines=5013526 13527 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"13528 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"13529 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"13530 # et cetera.13531 ac_in='$ac_file_inputs'13532 ac_out='"$tmp/out1"'13533 ac_nxt='"$tmp/out2"'13534 13535 while :13536 do13537 # Write a here document:13538 cat >>$CONFIG_STATUS <<_ACEOF13539 # First, check the format of the line:13540 cat >"\$tmp/defines.sed" <<\\CEOF13541 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def13542 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def13543 b13544 :def13545 _ACEOF13546 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS13547 echo 'CEOF13548 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS13549 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in13550 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail13551 grep . conftest.tail >/dev/null || break13552 rm -f conftest.defines13553 mv conftest.tail conftest.defines13554 done13555 rm -f conftest.defines conftest.tail13556 13557 echo "ac_result=$ac_in" >>$CONFIG_STATUS13558 cat >>$CONFIG_STATUS <<\_ACEOF13559 7897 if test x"$ac_file" != x-; then 13560 echo "/* $configure_input */" >"$tmp/config.h" 13561 cat "$ac_result" >>"$tmp/config.h" 13562 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 13563 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13564 echo "$as_me: $ac_file is unchanged" >&6;} 7898 { 7899 $as_echo "/* $configure_input */" \ 7900 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 7901 } >"$tmp/config.h" \ 7902 || as_fn_error "could not create $ac_file" "$LINENO" 5 7903 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 7905 $as_echo "$as_me: $ac_file is unchanged" >&6;} 13565 7906 else 13566 rm -f $ac_file 13567 mv "$tmp/config.h" $ac_file 7907 rm -f "$ac_file" 7908 mv "$tmp/config.h" "$ac_file" \ 7909 || as_fn_error "could not create $ac_file" "$LINENO" 5 13568 7910 fi 13569 7911 else 13570 echo "/* $configure_input */" 13571 cat "$ac_result" 7912 $as_echo "/* $configure_input */" \ 7913 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 7914 || as_fn_error "could not create -" "$LINENO" 5 13572 7915 fi 13573 rm -f "$tmp/out12"13574 7916 ;; 13575 7917 … … 13580 7922 13581 7923 13582 { (exit 0); exit 0; } 13583 _ACEOF 13584 chmod +x $CONFIG_STATUS 7924 as_fn_exit 0 7925 _ACEOF 13585 7926 ac_clean_files=$ac_clean_files_save 7927 7928 test $ac_write_fail = 0 || 7929 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13586 7930 13587 7931 … … 13604 7948 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13605 7949 # would make configure fail if this is the last instruction. 13606 $ac_cs_success || { (exit 1); exit 1; } 13607 fi 13608 13609 13610 13611 { echo "$as_me:$LINENO: result: 7950 $ac_cs_success || as_fn_exit $? 7951 fi 7952 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7954 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 7955 fi 7956 7957 7958 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 13612 7960 13613 7961 Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. … … 13619 7967 The next step now is to run 'make dep' and 'make'. 13620 7968 " >&5 13621 echo "${ECHO_T} 7969 $as_echo " 13622 7970 13623 7971 Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. -
pjproject/branches/projects/2.0-dev/aconfigure.ac
r3299 r3392 571 571 AC_ARG_ENABLE(oss, 572 572 AC_HELP_STRING([--disable-oss], 573 [Disable OSS audio (default: not disabled)]) 574 , 573 [Disable OSS audio (default: not disabled)]), 575 574 [ 576 575 if test "$enable_oss" = "no"; then … … 719 718 ) 720 719 720 dnl # SDL 721 AC_ARG_ENABLE(sdl, 722 AC_HELP_STRING([--disable-sdl], 723 [Disable SDL (default: not disabled)]), 724 [ 725 if test "$enable_sdl" = "no"; then 726 AC_MSG_RESULT([Checking if SDL is disabled... yes]) 727 fi 728 ], 729 [ 730 AC_MSG_CHECKING([SDL availability..]) 731 if sdl-config --version; then 732 AC_SUBST(ac_sdl_cflags) 733 AC_SUBST(ac_sdl_ldflags) 734 ac_sdl_cflags=`sdl-config --cflags` 735 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" 736 ac_sdl_ldflags=`sdl-config --libs` 737 fi 738 ]) 739 740 741 dnl # FFMPEG stuffs 742 AC_ARG_ENABLE(ffmpeg, 743 AC_HELP_STRING([--disable-ffmpeg], 744 [Disable ffmpeg (default: not disabled)]), 745 [ 746 AC_SUBST(ac_has_ffmpeg,0) 747 if test "$enable_ffmpeg" = "no"; then 748 AC_MSG_RESULT([Checking if ffmpeg is disabled... yes]) 749 fi 750 ], 751 [ 752 AC_SUBST(ac_ffmpeg_cflags) 753 AC_SUBST(ac_ffmpeg_ldflags) 754 755 AC_CHECK_LIB(avdevice, 756 avdevice_version, 757 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" 758 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" 759 ] 760 ) 761 AC_CHECK_LIB(avformat, 762 av_register_all, 763 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" 764 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" 765 ] 766 ) 767 AC_CHECK_LIB(avcodec, 768 avcodec_init, 769 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" 770 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" 771 ] 772 ) 773 AC_CHECK_LIB(swscale, 774 sws_scale, 775 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" 776 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" 777 ] 778 ) 779 AC_CHECK_LIB(avutil, 780 av_malloc, 781 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" 782 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" 783 ] 784 ) 785 AC_CHECK_LIB(avcore, 786 avcore_version, 787 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" 788 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" 789 ] 790 ) 791 ] 792 ) 793 794 dnl # Video for Linux 2 795 AC_ARG_ENABLE(v4l2, 796 AC_HELP_STRING([--disable-v4l2], 797 [Disable Video4Linux2 (default: not disabled)]), 798 [ 799 if test "$enable_v4l2" = "no"; then 800 AC_MSG_RESULT([Checking if V4L2 is disabled... yes]) 801 fi 802 ], 803 [ 804 AC_SUBST(ac_v4l2_cflags) 805 AC_SUBST(ac_v4l2_ldflags) 806 AC_CHECK_LIB(v4l2, 807 v4l2_open, 808 [ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" 809 ac_v4l2_ldflags="-lv4l2" 810 ] 811 ) 812 ]) 721 813 722 814 dnl ######################################################## -
pjproject/branches/projects/2.0-dev/pjlib/src/pj/config.c
r3390 r3392 23 23 24 24 static const char *id = "config.c"; 25 PJ_DEF_DATA(const char*) PJ_VERSION = " 1.8.10-trunk";25 PJ_DEF_DATA(const char*) PJ_VERSION = "2.0-dev"; 26 26 27 27 /* -
pjproject/branches/projects/2.0-dev/pjmedia/build/Makefile
r3319 r3392 19 19 export PJSDP_LIB:=../lib/libpjsdp-$(TARGET_NAME)$(LIBEXT) 20 20 export PJMEDIA_AUDIODEV_LIB:=../lib/libpjmedia-audiodev-$(TARGET_NAME)$(LIBEXT) 21 export PJMEDIA_VIDEODEV_LIB:=../lib/libpjmedia-videodev-$(TARGET_NAME)$(LIBEXT) 21 22 22 23 … … 35 36 export _LDFLAGS := $(subst /,$(HOST_PSEP),$(PJMEDIA_LIB)) \ 36 37 $(subst /,$(HOST_PSEP),$(PJMEDIA_AUDIODEV_LIB)) \ 38 $(subst /,$(HOST_PSEP),$(PJMEDIA_VIDEODEV_LIB)) \ 37 39 $(subst /,$(HOST_PSEP),$(PJMEDIA_CODEC_LIB)) \ 38 40 $(subst /,$(HOST_PSEP),$(PJLIB_LIB)) \ … … 50 52 export PJMEDIA_SRCDIR = ../src/pjmedia 51 53 export PJMEDIA_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 52 alaw_ulaw.o alaw_ulaw_table.o bidirectional.o clock_thread.o codec.o \ 53 conference.o conf_switch.o delaybuf.o echo_common.o \ 54 alaw_ulaw.o alaw_ulaw_table.o avi_player.o \ 55 bidirectional.o clock_thread.o codec.o conference.o \ 56 conf_switch.o converter.o converter_libswscale.o \ 57 delaybuf.o echo_common.o \ 54 58 echo_port.o echo_suppress.o endpoint.o errno.o \ 59 format.o ffmpeg_util.o \ 55 60 g711.o jbuf.o master_port.o mem_capture.o mem_player.o \ 56 61 null_port.o plc_common.o port.o splitcomb.o \ … … 61 66 stream.o tonegen.o transport_adapter_sample.o \ 62 67 transport_ice.o transport_loop.o \ 63 transport_srtp.o transport_udp.o \68 transport_srtp.o transport_udp.o vid_codec.o videoport.o \ 64 69 wav_player.o wav_playlist.o wav_writer.o wave.o \ 65 70 wsola.o … … 79 84 80 85 ############################################################################### 86 # Defines for building PJMEDIA-VIDEODEV library 87 # 88 export PJMEDIA_VIDEODEV_SRCDIR = ../src/pjmedia-videodev 89 export PJMEDIA_VIDEODEV_OBJS += videodev.o ffmpeg_dev.o sdl_dev.o colorbar_dev.o \ 90 v4l2_dev.o 91 export PJMEDIA_VIDEODEV_CFLAGS += $(_CFLAGS) 92 93 94 ############################################################################### 81 95 # Defines for building PJSDP library 82 96 # Note that SDP functionality is already INCLUDED in PJMEDIA. … … 94 108 # 95 109 export PJMEDIA_CODEC_SRCDIR = ../src/pjmedia-codec 96 export PJMEDIA_CODEC_OBJS += \110 export PJMEDIA_CODEC_OBJS += ffmpeg_codecs.o \ 97 111 $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 98 112 ipp_codecs.o $(CODEC_OBJS) … … 105 119 # 106 120 export PJMEDIA_TEST_SRCDIR = ../src/test 107 export PJMEDIA_TEST_OBJS += codec_vectors.o jbuf_test.o main.o mips_test.o rtp_test.o test.o 121 export PJMEDIA_TEST_OBJS += codec_vectors.o jbuf_test.o main.o mips_test.o \ 122 vid_dev_test.o vid_codec_test.o rtp_test.o test.o 108 123 export PJMEDIA_TEST_OBJS += sdp_neg_test.o 109 124 export PJMEDIA_TEST_CFLAGS += $(_CFLAGS) … … 118 133 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 119 134 # 120 TARGETS := pjmedia pjmedia- audiodev pjmedia-codec pjsdp pjmedia-test135 TARGETS := pjmedia pjmedia-videodev pjmedia-audiodev pjmedia-codec pjsdp pjmedia-test 121 136 122 137 all: $(TARGETS) … … 133 148 distclean: realclean 134 149 135 .PHONY: dep depend pjmedia pjmedia-codec pjmedia- audiodev pjmedia-test clean realclean distclean150 .PHONY: dep depend pjmedia pjmedia-codec pjmedia-videodev pjmedia-audiodev pjmedia-test clean realclean distclean 136 151 137 152 pjmedia: … … 140 155 pjmedia-codec: 141 156 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $(PJMEDIA_CODEC_LIB) 157 158 pjmedia-videodev: 159 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_VIDEODEV app=pjmedia-videodev $(PJMEDIA_VIDEODEV_LIB) 142 160 143 161 pjmedia-audiodev: … … 167 185 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $@ 168 186 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ 187 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_VIDEODEV app=pjmedia-videodev $@ 169 188 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_AUDIODEV app=pjmedia-audiodev $@ 170 189 $(MAKE) -f $(RULES_MAK) APP=PJSDP app=pjsdp $@ … … 173 192 realclean: 174 193 $(subst @@,$(subst /,$(HOST_PSEP),.pjmedia-$(TARGET_NAME).depend),$(HOST_RMR)) 194 $(subst @@,$(subst /,$(HOST_PSEP),.pjmedia-videodev-$(TARGET_NAME).depend),$(HOST_RMR)) 175 195 $(subst @@,$(subst /,$(HOST_PSEP),.pjmedia-audiodev-$(TARGET_NAME).depend),$(HOST_RMR)) 176 196 $(subst @@,$(subst /,$(HOST_PSEP),.pjmedia-codec-$(TARGET_NAME).depend),$(HOST_RMR)) … … 179 199 180 200 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $@ 201 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_VIDEODEV app=pjmedia-videodev $@ 181 202 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_AUDIODEV app=pjmedia-audiodev $@ 182 203 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ … … 186 207 depend: 187 208 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $@ 209 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_VIDEODEV app=pjmedia-videodev $@ 188 210 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_AUDIODEV app=pjmedia-audiodev $@ 189 211 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ -
pjproject/branches/projects/2.0-dev/pjmedia/build/os-auto.mak.in
r3295 r3392 1 1 # @configure_input@ 2 2 3 # SDL flags 4 SDL_CFLAGS = @ac_sdl_cflags@ 5 SDL_LDFLAGS = @ac_sdl_ldflags@ 6 7 # FFMPEG dlags 8 FFMPEG_CFLAGS = @ac_ffmpeg_cflags@ 9 FFMPEG_LDFLAGS = @ac_ffmpeg_ldflags@ 10 11 # Video4Linux2 12 V4L2_CFLAGS = @ac_v4l2_cflags@ 13 V4L2_LDFLAGS = @ac_v4l2_ldflags@ 14 3 15 # PJMEDIA features exclusion 4 export CFLAGS += @ac_no_small_filter@ @ac_no_large_filter@ @ac_no_speex_aec@ 16 export CFLAGS += @ac_no_small_filter@ @ac_no_large_filter@ @ac_no_speex_aec@ \ 17 $(SDL_CFLAGS) $(FFMPEG_CFLAGS) $(V4L2_CFLAGS) 18 export LDFLAGS += $(SDL_LDFLAGS) $(FFMPEG_LDFLAGS) $(V4L2_LDFLAGS) 5 19 6 20 # Define the desired sound device backend -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia-audiodev/audiodev.h
r3327 r3392 27 27 #include <pjmedia-audiodev/config.h> 28 28 #include <pjmedia-audiodev/errno.h> 29 #include <pjmedia/format.h> 30 #include <pjmedia/frame.h> 29 31 #include <pjmedia/types.h> 30 32 #include <pj/pool.h> -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia-audiodev/config.h
r3177 r3392 22 22 23 23 /** 24 * @file audiodev.h25 * @brief Audio device API.24 * @file config.h 25 * @brief Audio config. 26 26 */ 27 27 #include <pjmedia/types.h> -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia-codec.h
r2563 r3392 27 27 28 28 #include <pjmedia-codec/l16.h> 29 #include <pjmedia-codec/ffmpeg_codecs.h> 29 30 #include <pjmedia-codec/gsm.h> 30 31 #include <pjmedia-codec/speex.h> -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia-codec/config.h
r3202 r3392 35 35 #include <pjmedia/types.h> 36 36 37 38 37 /* 39 38 * Include config_auto.h if autoconf is used (PJ_AUTOCONF is set) … … 42 41 # include <pjmedia-codec/config_auto.h> 43 42 #endif 43 44 44 45 45 /** … … 344 344 #endif 345 345 346 347 /** 348 * Specify if FFMPEG codecs are available. 349 * 350 * Default: PJMEDIA_HAS_LIBAVCODEC 351 */ 352 #ifndef PJMEDIA_HAS_FFMPEG_CODEC 353 # define PJMEDIA_HAS_FFMPEG_CODEC PJMEDIA_HAS_LIBAVCODEC 354 #endif 355 346 356 /** 347 357 * @} 348 358 */ 349 359 360 361 350 362 #endif /* __PJMEDIA_CODEC_CONFIG_H__ */ -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia.h
r2394 r3392 1 1 /* $Id$ */ 2 2 /* 3 * Copyright (C) 2008-20 09Teluu Inc. (http://www.teluu.com)3 * Copyright (C) 2008-2010 Teluu Inc. (http://www.teluu.com) 4 4 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> 5 5 * … … 25 25 * @brief PJMEDIA main header file. 26 26 */ 27 28 #include <pjmedia/types.h>29 27 #include <pjmedia/alaw_ulaw.h> 28 #include <pjmedia/avi_stream.h> 30 29 #include <pjmedia/bidirectional.h> 31 30 #include <pjmedia/circbuf.h> … … 33 32 #include <pjmedia/codec.h> 34 33 #include <pjmedia/conference.h> 34 #include <pjmedia/converter.h> 35 35 #include <pjmedia/delaybuf.h> 36 36 #include <pjmedia/echo.h> 37 37 #include <pjmedia/echo_port.h> 38 #include <pjmedia/endpoint.h> 38 39 #include <pjmedia/errno.h> 39 #include <pjmedia/endpoint.h> 40 #include <pjmedia/frame.h> 41 #include <pjmedia/format.h> 40 42 #include <pjmedia/g711.h> 41 43 #include <pjmedia/jbuf.h> … … 65 67 #include <pjmedia/transport_srtp.h> 66 68 #include <pjmedia/transport_udp.h> 69 #include <pjmedia/videoport.h> 70 #include <pjmedia/vid_codec.h> 67 71 #include <pjmedia/wav_playlist.h> 68 72 #include <pjmedia/wav_port.h> -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/circbuf.h
r2394 r3392 30 30 #include <pj/errno.h> 31 31 #include <pj/pool.h> 32 #include <pjmedia/frame.h> 32 33 33 34 /** -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/clock.h
r2394 r3392 119 119 120 120 /** 121 * Create media clock. 121 * Create media clock. This creates a media clock object that will run 122 * periodically at an interval that is calculated from the audio parameters. 123 * Once created, application must call #pjmedia_clock_start() to actually 124 * start the clock. 125 * 126 * @see pjmedia_clock_create2() 122 127 * 123 128 * @param pool Pool to allocate memory. … … 144 149 pjmedia_clock **p_clock); 145 150 151 152 /** 153 * Create media clock. This creates a media clock object that will run 154 * periodically at the specified interval. Once created, application must 155 * call #pjmedia_clock_start() to actually start the clock. 156 * 157 * @param pool Pool to allocate memory. 158 * @param usec_interval The frame interval, in microseconds. 159 * @param clock_rate The media clock rate, to determine timestamp 160 * increment for each call. 161 * @param options Bitmask of pjmedia_clock_options. 162 * @param cb Callback to be called for each clock tick. 163 * @param user_data User data, which will be passed to the callback. 164 * @param p_clock Pointer to receive the clock instance. 165 * 166 * @return PJ_SUCCESS on success, or the appropriate error 167 * code. 168 */ 169 PJ_DECL(pj_status_t) pjmedia_clock_create2(pj_pool_t *pool, 170 unsigned usec_interval, 171 unsigned clock_rate, 172 unsigned options, 173 pjmedia_clock_callback *cb, 174 void *user_data, 175 pjmedia_clock **p_clock); 176 146 177 /** 147 178 * Start the clock. For clock created with asynchronous flag set to TRUE, -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/config.h
r3387 r3392 881 881 882 882 883 /* 884 * .... new stuffs ... 885 */ 886 887 /** 888 * Specify if FFMPEG is available. The value here will be used as the default 889 * value for other FFMPEG settings below. 890 * 891 * Default: 0 892 */ 893 #ifndef PJMEDIA_HAS_FFMPEG 894 # define PJMEDIA_HAS_FFMPEG 0 895 #endif 896 897 /** 898 * Specify if FFMPEG libavformat is available. 899 * 900 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 901 */ 902 #ifndef PJMEDIA_HAS_LIBAVFORMAT 903 # define PJMEDIA_HAS_LIBAVFORMAT PJMEDIA_HAS_FFMPEG 904 #endif 905 906 /** 907 * Specify if FFMPEG libavformat is available. 908 * 909 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 910 */ 911 #ifndef PJMEDIA_HAS_LIBAVCODEC 912 # define PJMEDIA_HAS_LIBAVCODEC PJMEDIA_HAS_FFMPEG 913 #endif 914 915 /** 916 * Specify if FFMPEG libavutil is available. 917 * 918 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 919 */ 920 #ifndef PJMEDIA_HAS_LIBAVUTIL 921 # define PJMEDIA_HAS_LIBAVUTIL PJMEDIA_HAS_FFMPEG 922 #endif 923 924 /** 925 * Specify if FFMPEG libswscale is available. 926 * 927 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 928 */ 929 #ifndef PJMEDIA_HAS_LIBSWSCALE 930 # define PJMEDIA_HAS_LIBSWSCALE PJMEDIA_HAS_FFMPEG 931 #endif 932 933 /** 934 * Specify if FFMPEG libavdevice is available. 935 * 936 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 937 */ 938 #ifndef PJMEDIA_HAS_LIBAVDEVICE 939 # define PJMEDIA_HAS_LIBAVDEVICE PJMEDIA_HAS_FFMPEG 940 #endif 941 942 /** 943 * Specify if FFMPEG libavcore is available. 944 * 945 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 946 */ 947 #ifndef PJMEDIA_HAS_LIBAVCORE 948 # define PJMEDIA_HAS_LIBAVCORE PJMEDIA_HAS_FFMPEG 949 #endif 950 951 /** 952 * Maximum video planes. 953 * 954 * Default: 4 955 */ 956 #ifndef PJMEDIA_MAX_VIDEO_PLANES 957 # define PJMEDIA_MAX_VIDEO_PLANES 4 958 #endif 959 960 /** 961 * Maximum number of video formats. 962 * 963 * Default: 32 964 */ 965 #ifndef PJMEDIA_MAX_VIDEO_FORMATS 966 # define PJMEDIA_MAX_VIDEO_FORMATS 32 967 #endif 968 969 883 970 /** 884 971 * @} -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/endpoint.h
r3360 r3392 40 40 #include <pjmedia/codec.h> 41 41 #include <pjmedia/sdp.h> 42 #include <pjmedia/transport.h> 42 43 43 44 -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/errno.h
r2394 r3392 392 392 */ 393 393 #define PJMEDIA_RTP_EREMNORFC2833 (PJMEDIA_ERRNO_START+107) /* 220107 */ 394 394 /** 395 * @hideinitializer 396 * Invalid or bad format 397 */ 398 #define PJMEDIA_EBADFMT (PJMEDIA_ERRNO_START+108) /* 220108 */ 395 399 396 400 … … 518 522 */ 519 523 #define PJMEDIA_EFRMFILETOOBIG (PJMEDIA_ERRNO_START+183) /* 220183 */ 524 /** 525 * @hideinitializer 526 * Unsupported AVI file. 527 */ 528 #define PJMEDIA_EAVIUNSUPP (PJMEDIA_ERRNO_START+191) /* 220191 */ 520 529 521 530 -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/port.h
r3327 r3392 1 1 /* $Id$ */ 2 2 /* 3 * Copyright (C) 2008-20 09Teluu Inc. (http://www.teluu.com)3 * Copyright (C) 2008-2010 Teluu Inc. (http://www.teluu.com) 4 4 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> 5 5 * … … 25 25 * @brief Port interface declaration 26 26 */ 27 #include <pjmedia/types.h> 27 #include <pjmedia/format.h> 28 #include <pjmedia/frame.h> 28 29 #include <pj/assert.h> 29 30 #include <pj/os.h> … … 185 186 186 187 /** 188 * Create 32bit port signature from ASCII characters. 189 */ 190 #define PJMEDIA_PORT_SIGNATURE(a,b,c,d) \ 191 (a<<24 | b<<16 | c<<8 | d) 192 193 194 /** 187 195 * Port operation setting. 188 196 */ … … 221 229 pj_str_t name; /**< Port name. */ 222 230 pj_uint32_t signature; /**< Port signature. */ 223 pjmedia_type type; /**< Media type. */ 224 pj_bool_t has_info; /**< Has info? */ 225 pj_bool_t need_info; /**< Need info on connect? */ 226 unsigned pt; /**< Payload type (can be dynamic). */ 227 pjmedia_format format; /**< Format. */ 228 pj_str_t encoding_name; /**< Encoding name. */ 229 unsigned clock_rate; /**< Sampling rate. */ 230 unsigned channel_count; /**< Number of channels. */ 231 unsigned bits_per_sample; /**< Bits/sample */ 232 unsigned samples_per_frame; /**< No of samples per frame. */ 233 unsigned bytes_per_frame; /**< No of bytes per frame. */ 231 pjmedia_dir dir; /**< Port direction. */ 232 pjmedia_format fmt; /**< Format. */ 234 233 } pjmedia_port_info; 235 234 235 /** 236 * Utility to retrieve audio clock rate/sampling rate value from 237 * pjmedia_port_info. 238 * 239 * @param pia Pointer to port info containing audio format. 240 * @return Audio clock rate. 241 */ 242 PJ_INLINE(unsigned) PJMEDIA_PIA_SRATE(const pjmedia_port_info *pia) 243 { 244 pj_assert(pia->fmt.type==PJMEDIA_TYPE_AUDIO && 245 pia->fmt.detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO); 246 return pia->fmt.det.aud.clock_rate; 247 } 248 249 /** 250 * Utility to retrieve audio channel count value from pjmedia_port_info. 251 * 252 * @param pia Pointer to port info containing audio format. 253 * @return Audio channel count. 254 */ 255 PJ_INLINE(unsigned) PJMEDIA_PIA_CCNT(const pjmedia_port_info *pia) 256 { 257 pj_assert(pia->fmt.type==PJMEDIA_TYPE_AUDIO && 258 pia->fmt.detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO); 259 return pia->fmt.det.aud.channel_count; 260 } 261 262 /** 263 * Utility to retrieve audio bits per sample value from pjmedia_port_info. 264 * 265 * @param pia Pointer to port info containing audio format. 266 * @return Number of bits per sample. 267 */ 268 PJ_INLINE(unsigned) PJMEDIA_PIA_BITS(const pjmedia_port_info *pia) 269 { 270 pj_assert(pia->fmt.type==PJMEDIA_TYPE_AUDIO && 271 pia->fmt.detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO); 272 return pia->fmt.det.aud.bits_per_sample; 273 } 274 275 /** 276 * Utility to retrieve audio frame interval (ptime) value from 277 * pjmedia_port_info. 278 * 279 * @param pia Pointer to port info containing audio format. 280 * @return Frame interval in msec. 281 */ 282 PJ_INLINE(unsigned) PJMEDIA_PIA_PTIME(const pjmedia_port_info *pia) 283 { 284 pj_assert(pia->fmt.type==PJMEDIA_TYPE_AUDIO && 285 pia->fmt.detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO); 286 return pia->fmt.det.aud.frame_time_usec / 1000; 287 } 288 289 /** 290 * This is a utility routine to retrieve the audio samples_per_frame value 291 * from port info. 292 * 293 * @param pia Pointer to port info containing audio format. 294 * @return Samples per frame value. 295 */ 296 PJ_INLINE(unsigned) PJMEDIA_PIA_SPF(const pjmedia_port_info *pia) 297 { 298 pj_assert(pia->fmt.type==PJMEDIA_TYPE_AUDIO && 299 pia->fmt.detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO); 300 return PJMEDIA_AFD_SPF(&pia->fmt.det.aud); 301 } 302 303 /** 304 * This is a utility routine to retrieve the average bitrate value 305 * from port info. 306 * 307 * @param pia Pointer to port info containing audio format. 308 * @return Bitrate, in bits per second. 309 */ 310 PJ_INLINE(unsigned) PJMEDIA_PIA_AVG_BPS(const pjmedia_port_info *pia) 311 { 312 pj_assert(pia->fmt.type==PJMEDIA_TYPE_AUDIO && 313 pia->fmt.detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO); 314 return pia->fmt.det.aud.avg_bps; 315 } 316 317 /** 318 * This is a utility routine to retrieve the maximum bitrate value 319 * from port info. 320 * 321 * @param pia Pointer to port info containing audio format. 322 * @return Bitrate, in bits per second. 323 */ 324 PJ_INLINE(unsigned) PJMEDIA_PIA_MAX_BPS(const pjmedia_port_info *pia) 325 { 326 pj_assert(pia->fmt.type==PJMEDIA_TYPE_AUDIO && 327 pia->fmt.detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO); 328 return pia->fmt.det.aud.max_bps; 329 } 330 331 /** 332 * This is a utility routine to retrieve the average audio frame size value 333 * from pjmedia_port_info. 334 * 335 * @param pia Pointer to port info containing audio format. 336 * @return Frame size in bytes. 337 */ 338 PJ_INLINE(unsigned) PJMEDIA_PIA_AVG_FSZ(const pjmedia_port_info *pia) 339 { 340 pj_assert(pia->fmt.type==PJMEDIA_TYPE_AUDIO && 341 pia->fmt.detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO); 342 return PJMEDIA_AFD_AVG_FSZ(&pia->fmt.det.aud); 343 } 344 345 /** 346 * Utility to retrieve audio frame size from maximum bitrate from 347 * pjmedia_port_info. 348 * 349 * @param pia Pointer to port info containing audio format. 350 * @return Frame size in bytes. 351 */ 352 PJ_INLINE(unsigned) PJMEDIA_PIA_MAX_FSZ(const pjmedia_port_info *pia) 353 { 354 pj_assert(pia->fmt.type==PJMEDIA_TYPE_AUDIO && 355 pia->fmt.detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO); 356 return PJMEDIA_AFD_MAX_FSZ(&pia->fmt.det.aud); 357 } 236 358 237 359 /** … … 255 377 */ 256 378 pj_status_t (*put_frame)(struct pjmedia_port *this_port, 257 constpjmedia_frame *frame);379 pjmedia_frame *frame); 258 380 259 381 /** … … 277 399 * 278 400 * @param info The port info to be initialized. 401 * @param pool Pool to allocate memory from. 279 402 * @param name Port name. 280 403 * @param signature Port signature. … … 294 417 unsigned samples_per_frame); 295 418 419 /** 420 * This is an auxiliary function to initialize port info for 421 * ports which deal with PCM audio. 422 * 423 * @param info The port info to be initialized. 424 * @param name Port name. 425 * @param signature Port signature. 426 * @param dir Port's direction. 427 * @param fmt Port's media format. 428 * 429 * @return PJ_SUCCESS on success. 430 */ 431 PJ_DECL(pj_status_t) pjmedia_port_info_init2(pjmedia_port_info *info, 432 const pj_str_t *name, 433 unsigned signature, 434 pjmedia_dir dir, 435 const pjmedia_format *fmt); 436 296 437 297 438 /** … … 315 456 */ 316 457 PJ_DECL(pj_status_t) pjmedia_port_put_frame( pjmedia_port *port, 317 constpjmedia_frame *frame );458 pjmedia_frame *frame ); 318 459 319 460 -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/sdp.h
r3327 r3392 26 26 */ 27 27 #include <pjmedia/types.h> 28 28 #include <pj/sock.h> 29 29 30 30 /** -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/stream.h
r3327 r3392 33 33 #include <pjmedia/rtcp.h> 34 34 #include <pjmedia/transport.h> 35 #include <pjmedia/vid_codec.h> 35 36 #include <pj/sock.h> 36 37 … … 134 135 is enabled? */ 135 136 #endif 137 138 pjmedia_vid_codec_info vid_codec_info; 139 pjmedia_vid_codec_param *vid_codec_param; 136 140 }; 137 141 -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/transport.h
r2945 r3392 29 29 #include <pjmedia/types.h> 30 30 #include <pjmedia/errno.h> 31 #include <pj/string.h> 31 32 32 33 /** … … 255 256 256 257 } pjmedia_tranport_media_option; 258 259 260 /** 261 * Media socket info is used to describe the underlying sockets 262 * to be used as media transport. 263 */ 264 typedef struct pjmedia_sock_info 265 { 266 /** The RTP socket handle */ 267 pj_sock_t rtp_sock; 268 269 /** Address to be advertised as the local address for the RTP 270 * socket, which does not need to be equal as the bound 271 * address (for example, this address can be the address resolved 272 * with STUN). 273 */ 274 pj_sockaddr rtp_addr_name; 275 276 /** The RTCP socket handle. */ 277 pj_sock_t rtcp_sock; 278 279 /** Address to be advertised as the local address for the RTCP 280 * socket, which does not need to be equal as the bound 281 * address (for example, this address can be the address resolved 282 * with STUN). 283 */ 284 pj_sockaddr rtcp_addr_name; 285 286 } pjmedia_sock_info; 257 287 258 288 -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/types.h
r3327 r3392 1 1 /* $Id$ */ 2 2 /* 3 * Copyright (C) 2008-20 09Teluu Inc. (http://www.teluu.com)3 * Copyright (C) 2008-2010 Teluu Inc. (http://www.teluu.com) 4 4 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> 5 5 * … … 27 27 28 28 #include <pjmedia/config.h> 29 #include <pj/sock.h> /* pjmedia_sock_info */ 30 #include <pj/string.h> /* pj_memcpy(), pj_memset() */ 29 #include <pj/sock.h> 30 #include <pj/types.h> 31 31 32 32 33 /** … … 53 54 typedef enum pjmedia_type 54 55 { 55 /** No type. */56 PJMEDIA_TYPE_NONE = 0,56 /** Type is not specified. */ 57 PJMEDIA_TYPE_NONE, 57 58 58 59 /** The media is audio */ 59 PJMEDIA_TYPE_AUDIO = 1,60 PJMEDIA_TYPE_AUDIO, 60 61 61 62 /** The media is video. */ 62 PJMEDIA_TYPE_VIDEO = 2, 63 64 /** Unknown media type, in this case the name will be specified in 65 * encoding_name. 66 */ 67 PJMEDIA_TYPE_UNKNOWN = 3, 63 PJMEDIA_TYPE_VIDEO, 68 64 69 65 /** The media is application. */ 70 PJMEDIA_TYPE_APPLICATION = 4 66 PJMEDIA_TYPE_APPLICATION, 67 68 /** The media type is unknown or unsupported. */ 69 PJMEDIA_TYPE_UNKNOWN 71 70 72 71 } pjmedia_type; … … 101 100 PJMEDIA_DIR_NONE = 0, 102 101 103 /** Encoding (outgoing to network) stream */102 /** Encoding (outgoing to network) stream, also known as capture */ 104 103 PJMEDIA_DIR_ENCODING = 1, 105 104 106 /** Decoding (incoming from network) stream. */ 105 /** Same as encoding direction. */ 106 PJMEDIA_DIR_CAPTURE = PJMEDIA_DIR_ENCODING, 107 108 /** Decoding (incoming from network) stream, also known as playback. */ 107 109 PJMEDIA_DIR_DECODING = 2, 108 110 109 /** Incoming and outgoing stream. */ 110 PJMEDIA_DIR_ENCODING_DECODING = 3 111 /** Same as decoding. */ 112 PJMEDIA_DIR_PLAYBACK = PJMEDIA_DIR_DECODING, 113 114 /** Same as decoding. */ 115 PJMEDIA_DIR_RENDER = PJMEDIA_DIR_DECODING, 116 117 /** Incoming and outgoing stream, same as PJMEDIA_DIR_CAPTURE_PLAYBACK */ 118 PJMEDIA_DIR_ENCODING_DECODING = 3, 119 120 /** Same as ENCODING_DECODING */ 121 PJMEDIA_DIR_CAPTURE_PLAYBACK = PJMEDIA_DIR_ENCODING_DECODING, 122 123 /** Same as ENCODING_DECODING */ 124 PJMEDIA_DIR_CAPTURE_RENDER = PJMEDIA_DIR_ENCODING_DECODING 111 125 112 126 } pjmedia_dir; 113 127 114 128 115 116 /* Alternate names for media direction: */117 118 /**119 * Direction is capturing audio frames.120 */121 #define PJMEDIA_DIR_CAPTURE PJMEDIA_DIR_ENCODING122 123 /**124 * Direction is playback of audio frames.125 */126 #define PJMEDIA_DIR_PLAYBACK PJMEDIA_DIR_DECODING127 128 /**129 * Direction is both capture and playback.130 */131 #define PJMEDIA_DIR_CAPTURE_PLAYBACK PJMEDIA_DIR_ENCODING_DECODING132 133 134 /**135 * Create 32bit port signature from ASCII characters.136 */137 #define PJMEDIA_PORT_SIGNATURE(a,b,c,d) \138 (a<<24 | b<<16 | c<<8 | d)139 140 141 129 /** 142 130 * Opaque declaration of media endpoint. 143 131 */ 144 132 typedef struct pjmedia_endpt pjmedia_endpt; 145 146 133 147 134 /* … … 150 137 typedef struct pjmedia_stream pjmedia_stream; 151 138 152 153 /** 154 * Media socket info is used to describe the underlying sockets 155 * to be used as media transport. 156 */ 157 typedef struct pjmedia_sock_info 158 { 159 /** The RTP socket handle */ 160 pj_sock_t rtp_sock; 161 162 /** Address to be advertised as the local address for the RTP 163 * socket, which does not need to be equal as the bound 164 * address (for example, this address can be the address resolved 165 * with STUN). 139 /** 140 * Enumeration for picture coordinate base. 141 */ 142 typedef enum pjmedia_coord_base 143 { 144 /** 145 * This specifies that the pixel [0, 0] location is at the left-top 146 * position. 166 147 */ 167 pj_sockaddr rtp_addr_name; 168 169 /** The RTCP socket handle. */ 170 pj_sock_t rtcp_sock; 171 172 /** Address to be advertised as the local address for the RTCP 173 * socket, which does not need to be equal as the bound 174 * address (for example, this address can be the address resolved 175 * with STUN). 148 PJMEDIA_COORD_BASE_LEFT_TOP, 149 150 /** 151 * This specifies that the pixel [0, 0] location is at the left-bottom 152 * position. 176 153 */ 177 pj_sockaddr rtcp_addr_name; 178 179 } pjmedia_sock_info; 180 181 182 /** 183 * Macro for packing format. 184 */ 185 #define PJMEDIA_FORMAT_PACK(C1, C2, C3, C4) ( C4<<24 | C3<<16 | C2<<8 | C1 ) 186 187 /** 188 * This enumeration describes format ID. 189 */ 190 typedef enum pjmedia_format_id 191 { 192 /** 193 * 16bit linear 194 */ 195 PJMEDIA_FORMAT_L16 = 0, 196 197 /** 198 * Alias for PJMEDIA_FORMAT_L16 199 */ 200 PJMEDIA_FORMAT_PCM = PJMEDIA_FORMAT_L16, 201 202 /** 203 * G.711 ALAW 204 */ 205 PJMEDIA_FORMAT_PCMA = PJMEDIA_FORMAT_PACK('A', 'L', 'A', 'W'), 206 207 /** 208 * Alias for PJMEDIA_FORMAT_PCMA 209 */ 210 PJMEDIA_FORMAT_ALAW = PJMEDIA_FORMAT_PCMA, 211 212 /** 213 * G.711 ULAW 214 */ 215 PJMEDIA_FORMAT_PCMU = PJMEDIA_FORMAT_PACK('u', 'L', 'A', 'W'), 216 217 /** 218 * Aliaw for PJMEDIA_FORMAT_PCMU 219 */ 220 PJMEDIA_FORMAT_ULAW = PJMEDIA_FORMAT_PCMU, 221 222 /** 223 * AMR narrowband 224 */ 225 PJMEDIA_FORMAT_AMR = PJMEDIA_FORMAT_PACK(' ', 'A', 'M', 'R'), 226 227 /** 228 * ITU G.729 229 */ 230 PJMEDIA_FORMAT_G729 = PJMEDIA_FORMAT_PACK('G', '7', '2', '9'), 231 232 /** 233 * Internet Low Bit-Rate Codec (ILBC) 234 */ 235 PJMEDIA_FORMAT_ILBC = PJMEDIA_FORMAT_PACK('I', 'L', 'B', 'C') 236 237 } pjmedia_format_id; 238 239 240 /** 241 * Media format information. 242 */ 243 typedef struct pjmedia_format 244 { 245 /** Format ID */ 246 pjmedia_format_id id; 247 248 /** Bitrate. */ 249 pj_uint32_t bitrate; 250 251 /** Flag to indicate whether VAD is enabled */ 252 pj_bool_t vad; 253 254 } pjmedia_format; 255 256 257 258 /** 259 * This is a general purpose function set PCM samples to zero. 260 * Since this function is needed by many parts of the library, 261 * by putting this functionality in one place, it enables some. 262 * clever people to optimize this function. 263 * 264 * @param samples The 16bit PCM samples. 265 * @param count Number of samples. 266 */ 267 PJ_INLINE(void) pjmedia_zero_samples(pj_int16_t *samples, unsigned count) 268 { 269 #if 1 270 pj_bzero(samples, (count<<1)); 271 #elif 0 272 unsigned i; 273 for (i=0; i<count; ++i) samples[i] = 0; 274 #else 275 unsigned i; 276 count >>= 1; 277 for (i=0; i<count; ++i) ((pj_int32_t*)samples)[i] = (pj_int32_t)0; 278 #endif 279 } 280 281 282 /** 283 * This is a general purpose function to copy samples from/to buffers with 284 * equal size. Since this function is needed by many parts of the library, 285 * by putting this functionality in one place, it enables some. 286 * clever people to optimize this function. 287 */ 288 PJ_INLINE(void) pjmedia_copy_samples(pj_int16_t *dst, const pj_int16_t *src, 289 unsigned count) 290 { 291 #if 1 292 pj_memcpy(dst, src, (count<<1)); 293 #elif 0 294 unsigned i; 295 for (i=0; i<count; ++i) dst[i] = src[i]; 296 #else 297 unsigned i; 298 count >>= 1; 299 for (i=0; i<count; ++i) 300 ((pj_int32_t*)dst)[i] = ((pj_int32_t*)src)[i]; 301 #endif 302 } 303 304 305 /** 306 * This is a general purpose function to copy samples from/to buffers with 307 * equal size. Since this function is needed by many parts of the library, 308 * by putting this functionality in one place, it enables some. 309 * clever people to optimize this function. 310 */ 311 PJ_INLINE(void) pjmedia_move_samples(pj_int16_t *dst, const pj_int16_t *src, 312 unsigned count) 313 { 314 #if 1 315 pj_memmove(dst, src, (count<<1)); 316 #elif 0 317 unsigned i; 318 for (i=0; i<count; ++i) dst[i] = src[i]; 319 #else 320 unsigned i; 321 count >>= 1; 322 for (i=0; i<count; ++i) 323 ((pj_int32_t*)dst)[i] = ((pj_int32_t*)src)[i]; 324 #endif 325 } 326 327 /** 328 * Types of media frame. 329 */ 330 typedef enum pjmedia_frame_type 331 { 332 PJMEDIA_FRAME_TYPE_NONE, /**< No frame. */ 333 PJMEDIA_FRAME_TYPE_AUDIO, /**< Normal audio frame. */ 334 PJMEDIA_FRAME_TYPE_EXTENDED /**< Extended audio frame. */ 335 336 } pjmedia_frame_type; 337 338 339 /** 340 * This structure describes a media frame. 341 */ 342 typedef struct pjmedia_frame 343 { 344 pjmedia_frame_type type; /**< Frame type. */ 345 void *buf; /**< Pointer to buffer. */ 346 pj_size_t size; /**< Frame size in bytes. */ 347 pj_timestamp timestamp; /**< Frame timestamp. */ 348 pj_uint32_t bit_info; /**< Bit info of the frame, sample case: 349 a frame may not exactly start and end 350 at the octet boundary, so this field 351 may be used for specifying start & 352 end bit offset. */ 353 } pjmedia_frame; 354 355 356 /** 357 * The pjmedia_frame_ext is used to carry a more complex audio frames than 358 * the typical PCM audio frames, and it is signaled by setting the "type" 359 * field of a pjmedia_frame to PJMEDIA_FRAME_TYPE_EXTENDED. With this set, 360 * application may typecast pjmedia_frame to pjmedia_frame_ext. 361 * 362 * This structure may contain more than one audio frames, which subsequently 363 * will be called subframes in this structure. The subframes section 364 * immediately follows the end of this structure, and each subframe is 365 * represented by pjmedia_frame_ext_subframe structure. Every next 366 * subframe immediately follows the previous subframe, and all subframes 367 * are byte-aligned although its payload may not be byte-aligned. 368 */ 369 370 #pragma pack(1) 371 typedef struct pjmedia_frame_ext { 372 pjmedia_frame base; /**< Base frame info */ 373 pj_uint16_t samples_cnt; /**< Number of samples in this frame */ 374 pj_uint16_t subframe_cnt; /**< Number of (sub)frames in this frame */ 375 376 /* Zero or more (sub)frames follows immediately after this, 377 * each will be represented by pjmedia_frame_ext_subframe 378 */ 379 } pjmedia_frame_ext; 380 #pragma pack() 381 382 /** 383 * This structure represents the individual subframes in the 384 * pjmedia_frame_ext structure. 385 */ 386 #pragma pack(1) 387 typedef struct pjmedia_frame_ext_subframe { 388 pj_uint16_t bitlen; /**< Number of bits in the data */ 389 pj_uint8_t data[1]; /**< Start of encoded data */ 390 } pjmedia_frame_ext_subframe; 391 392 #pragma pack() 393 394 395 /** 396 * Append one subframe to #pjmedia_frame_ext. 397 * 398 * @param frm The #pjmedia_frame_ext. 399 * @param src Subframe data. 400 * @param bitlen Lenght of subframe, in bits. 401 * @param samples_cnt Number of audio samples in subframe. 402 */ 403 PJ_INLINE(void) pjmedia_frame_ext_append_subframe(pjmedia_frame_ext *frm, 404 const void *src, 405 unsigned bitlen, 406 unsigned samples_cnt) 407 { 408 pjmedia_frame_ext_subframe *fsub; 409 pj_uint8_t *p; 410 unsigned i; 411 412 p = (pj_uint8_t*)frm + sizeof(pjmedia_frame_ext); 413 for (i = 0; i < frm->subframe_cnt; ++i) { 414 fsub = (pjmedia_frame_ext_subframe*) p; 415 p += sizeof(fsub->bitlen) + ((fsub->bitlen+7) >> 3); 416 } 417 418 fsub = (pjmedia_frame_ext_subframe*) p; 419 fsub->bitlen = (pj_uint16_t)bitlen; 420 if (bitlen) 421 pj_memcpy(fsub->data, src, (bitlen+7) >> 3); 422 423 frm->subframe_cnt++; 424 frm->samples_cnt = (pj_uint16_t)(frm->samples_cnt + samples_cnt); 425 } 426 427 /** 428 * Get a subframe from #pjmedia_frame_ext. 429 * 430 * @param frm The #pjmedia_frame_ext. 431 * @param n Subframe index, zero based. 432 * 433 * @return The n-th subframe, or NULL if n is out-of-range. 434 */ 435 PJ_INLINE(pjmedia_frame_ext_subframe*) 436 pjmedia_frame_ext_get_subframe(const pjmedia_frame_ext *frm, unsigned n) 437 { 438 pjmedia_frame_ext_subframe *sf = NULL; 439 440 if (n < frm->subframe_cnt) { 441 pj_uint8_t *p; 442 unsigned i; 443 444 p = (pj_uint8_t*)frm + sizeof(pjmedia_frame_ext); 445 for (i = 0; i < n; ++i) { 446 sf = (pjmedia_frame_ext_subframe*) p; 447 p += sizeof(sf->bitlen) + ((sf->bitlen+7) >> 3); 448 } 449 450 sf = (pjmedia_frame_ext_subframe*) p; 451 } 452 453 return sf; 454 } 455 456 /** 457 * Extract all frame payload to the specified buffer. 458 * 459 * @param frm The frame. 460 * @param dst Destination buffer. 461 * @param maxlen Maximum size to copy (i.e. the size of the 462 * destination buffer). 463 * 464 * @return Total size of payload copied. 465 */ 466 PJ_INLINE(unsigned) 467 pjmedia_frame_ext_copy_payload(const pjmedia_frame_ext *frm, 468 void *dst, 469 unsigned maxlen) 470 { 471 unsigned i, copied=0; 472 for (i=0; i<frm->subframe_cnt; ++i) { 473 pjmedia_frame_ext_subframe *sf; 474 unsigned sz; 475 476 sf = pjmedia_frame_ext_get_subframe(frm, i); 477 if (!sf) 478 continue; 479 480 sz = ((sf->bitlen + 7) >> 3); 481 if (sz + copied > maxlen) 482 break; 483 484 pj_memcpy(((pj_uint8_t*)dst) + copied, sf->data, sz); 485 copied += sz; 486 } 487 return copied; 488 } 489 490 491 /** 492 * Pop out first n subframes from #pjmedia_frame_ext. 493 * 494 * @param frm The #pjmedia_frame_ext. 495 * @param n Number of first subframes to be popped out. 496 * 497 * @return PJ_SUCCESS when successful. 498 */ 499 PJ_INLINE(pj_status_t) 500 pjmedia_frame_ext_pop_subframes(pjmedia_frame_ext *frm, unsigned n) 501 { 502 pjmedia_frame_ext_subframe *sf; 503 pj_uint8_t *move_src; 504 unsigned move_len; 505 506 if (frm->subframe_cnt <= n) { 507 frm->subframe_cnt = 0; 508 frm->samples_cnt = 0; 509 return PJ_SUCCESS; 510 } 511 512 move_src = (pj_uint8_t*)pjmedia_frame_ext_get_subframe(frm, n); 513 sf = pjmedia_frame_ext_get_subframe(frm, frm->subframe_cnt-1); 514 move_len = (pj_uint8_t*)sf - move_src + sizeof(sf->bitlen) + 515 ((sf->bitlen+7) >> 3); 516 pj_memmove((pj_uint8_t*)frm+sizeof(pjmedia_frame_ext), 517 move_src, move_len); 518 519 frm->samples_cnt = (pj_uint16_t) 520 (frm->samples_cnt - n*frm->samples_cnt/frm->subframe_cnt); 521 frm->subframe_cnt = (pj_uint16_t) (frm->subframe_cnt - n); 522 523 return PJ_SUCCESS; 524 } 154 PJMEDIA_COORD_BASE_LEFT_BOTTOM 155 156 } pjmedia_coord_base; 157 158 /** 159 * This structure is used to represent rational numbers. 160 */ 161 typedef struct pjmedia_ratio 162 { 163 int num; /** < Numerator. */ 164 int denum; /** < Denumerator. */ 165 } pjmedia_ratio; 166 167 /** 168 * This structure represent a coordinate. 169 */ 170 typedef struct pjmedia_coord 171 { 172 int x; /**< X position of the coordinate */ 173 int y; /**< Y position of the coordinate */ 174 } pjmedia_coord; 175 176 /** 177 * This structure represents rectangle size. 178 */ 179 typedef struct pjmedia_rect_size 180 { 181 unsigned w; /**< The width. */ 182 unsigned h; /**< The height. */ 183 } pjmedia_rect_size; 184 185 /** 186 * This structure describes a rectangle. 187 */ 188 typedef struct pjmedia_rect 189 { 190 pjmedia_coord coord; /**< The position. */ 191 pjmedia_rect_size size; /**< The size. */ 192 } pjmedia_rect; 193 525 194 526 195 -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-audiodev/audiodev.c
r3262 r3392 191 191 FIELD_INFO(ec_tail_ms); 192 192 break; 193 /* vad is no longer in "fmt" in 2.0. 193 194 case PJMEDIA_AUD_DEV_CAP_VAD: 194 195 FIELD_INFO(ext_fmt.vad); 195 196 break; 197 */ 196 198 case PJMEDIA_AUD_DEV_CAP_CNG: 197 199 FIELD_INFO(cng_enabled); -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-audiodev/wmme_dev.c
r2941 r3392 251 251 wdi->info.caps |= PJMEDIA_AUD_DEV_CAP_EXT_FORMAT; 252 252 wdi->info.ext_fmt_cnt = 2; 253 wdi->info.ext_fmt[0].id = PJMEDIA_FORMAT_PCMU;254 wdi->info.ext_fmt[0].bitrate = 64000; 255 wdi->info.ext_fmt[0].vad = 0;256 wdi->info.ext_fmt[1].id = PJMEDIA_FORMAT_PCMA;257 wdi->info.ext_fmt[1].bitrate = 64000; 258 wdi->info.ext_fmt[1].vad = 0;253 pjmedia_format_init_audio(&wdi->info.ext_fmt[0], 254 PJMEDIA_FORMAT_PCMU, 8000, 1, 8, 255 20000, 64000, 64000); 256 pjmedia_format_init_audio(&wdi->info.ext_fmt[0], 257 PJMEDIA_FORMAT_PCMA, 8000, 1, 8, 258 20000, 64000, 64000); 259 259 } 260 260 -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/bidirectional.c
r2394 r3392 34 34 35 35 static pj_status_t put_frame(pjmedia_port *this_port, 36 constpjmedia_frame *frame)36 pjmedia_frame *frame) 37 37 { 38 38 struct bidir_port *p = (struct bidir_port*)this_port; … … 55 55 { 56 56 struct bidir_port *port; 57 const pjmedia_audio_format_detail *gafd; 57 58 58 59 port = PJ_POOL_ZALLOC_T(pool, struct bidir_port); 60 gafd = pjmedia_format_get_audio_format_detail(&get_port->info.fmt, 1); 59 61 60 62 pjmedia_port_info_init(&port->base.info, &get_port->info.name, SIGNATURE, 61 g et_port->info.clock_rate,62 g et_port->info.channel_count,63 g et_port->info.bits_per_sample,64 get_port->info.samples_per_frame);63 gafd->clock_rate, 64 gafd->channel_count, 65 gafd->bits_per_sample, 66 PJMEDIA_AFD_SPF(gafd)); 65 67 66 68 port->get_port = get_port; -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/clock_thread.c
r2515 r3392 51 51 52 52 #define MAX_JUMP_MSEC 500 53 #define USEC_IN_SEC (pj_uint64_t)1000000 53 54 54 55 /* … … 64 65 pjmedia_clock **p_clock) 65 66 { 67 return pjmedia_clock_create2(pool, 68 (unsigned)(samples_per_frame * USEC_IN_SEC / 69 channel_count / clock_rate), 70 clock_rate, options, cb, user_data, p_clock); 71 } 72 73 PJ_DEF(pj_status_t) pjmedia_clock_create2(pj_pool_t *pool, 74 unsigned usec_interval, 75 unsigned clock_rate, 76 unsigned options, 77 pjmedia_clock_callback *cb, 78 void *user_data, 79 pjmedia_clock **p_clock) 80 { 66 81 pjmedia_clock *clock; 67 82 pj_status_t status; 68 83 69 PJ_ASSERT_RETURN(pool && clock_rate && samples_per_frame && p_clock,84 PJ_ASSERT_RETURN(pool && usec_interval && clock_rate && p_clock, 70 85 PJ_EINVAL); 71 86 72 87 clock = PJ_POOL_ALLOC_T(pool, pjmedia_clock); 73 74 88 75 89 status = pj_get_timestamp_freq(&clock->freq); … … 77 91 return status; 78 92 79 clock->interval.u64 = samples_per_frame * clock->freq.u64 / 80 channel_count / clock_rate; 93 clock->interval.u64 = usec_interval * clock->freq.u64 / USEC_IN_SEC; 81 94 clock->next_tick.u64 = 0; 82 95 clock->timestamp.u64 = 0; 83 96 clock->max_jump = MAX_JUMP_MSEC * clock->freq.u64 / 1000; 84 clock->timestamp_inc = samples_per_frame / channel_count; 97 clock->timestamp_inc = (unsigned)(usec_interval * clock_rate / 98 USEC_IN_SEC); 85 99 clock->options = options; 86 100 clock->cb = cb; … … 111 125 112 126 127 113 128 /* 114 129 * Start the clock. -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/conf_switch.c
r2725 r3392 24 24 #include <pjmedia/silencedet.h> 25 25 #include <pjmedia/sound_port.h> 26 #include <pjmedia/stream.h>27 26 #include <pj/array.h> 28 27 #include <pj/assert.h> 29 28 #include <pj/log.h> 29 #include <pj/math.h> 30 30 #include <pj/pool.h> 31 31 #include <pj/string.h> … … 81 81 /* Shortcut for port info. */ 82 82 pjmedia_port_info *info; 83 unsigned samples_per_frame; 83 84 84 85 /* Calculated signal levels: */ … … 124 125 /* Prototypes */ 125 126 static pj_status_t put_frame(pjmedia_port *this_port, 126 constpjmedia_frame *frame);127 pjmedia_frame *frame); 127 128 static pj_status_t get_frame(pjmedia_port *this_port, 128 129 pjmedia_frame *frame); … … 167 168 conf_port->port = port; 168 169 conf_port->info = &port->info; 170 conf_port->samples_per_frame= PJMEDIA_PINFO_SAMPLES_PER_FRAME(&port->info); 169 171 170 172 /* Init pjmedia_frame structure in the TX buffer. */ … … 505 507 struct conf_port *src_port, *dst_port; 506 508 pj_bool_t start_sound = PJ_FALSE; 509 pjmedia_audio_format_detail *src_afd, *dst_afd; 507 510 unsigned i; 508 511 … … 524 527 } 525 528 529 src_afd = pjmedia_format_get_audio_format_detail(&src_port->info->fmt, 1); 530 dst_afd = pjmedia_format_get_audio_format_detail(&dst_port->info->fmt, 1); 531 526 532 /* Format must match. */ 527 if (src_port->info->f ormat.id != dst_port->info->format.id ||528 src_ port->info->format.bitrate != dst_port->info->format.bitrate)533 if (src_port->info->fmt.id != dst_port->info->fmt.id || 534 src_afd->avg_bps != dst_afd->avg_bps) 529 535 { 530 536 pj_mutex_unlock(conf->mutex); … … 533 539 534 540 /* Clock rate must match. */ 535 if (src_ port->info->clock_rate != dst_port->info->clock_rate) {541 if (src_afd->clock_rate != dst_afd->clock_rate) { 536 542 pj_mutex_unlock(conf->mutex); 537 543 return PJMEDIA_ENCCLOCKRATE; … … 539 545 540 546 /* Channel count must match. */ 541 if (src_ port->info->channel_count != dst_port->info->channel_count) {547 if (src_afd->channel_count != dst_afd->channel_count) { 542 548 pj_mutex_unlock(conf->mutex); 543 549 return PJMEDIA_ENCCLOCKRATE; … … 545 551 546 552 /* Source and sink ptime must be equal or a multiplication factor. */ 547 if ((src_port->info->samples_per_frame % 548 dst_port->info->samples_per_frame != 0) && 549 (dst_port->info->samples_per_frame % 550 src_port->info->samples_per_frame != 0)) 553 if ((src_afd->frame_time_usec % dst_afd->frame_time_usec != 0) && 554 (dst_afd->frame_time_usec % src_afd->frame_time_usec != 0)) 551 555 { 552 556 pj_mutex_unlock(conf->mutex); … … 830 834 { 831 835 struct conf_port *conf_port; 836 const pjmedia_audio_format_detail *afd; 832 837 833 838 /* Check arguments */ … … 843 848 return PJ_EINVAL; 844 849 } 850 851 afd = pjmedia_format_get_audio_format_detail(&conf_port->info->fmt, 1); 845 852 846 853 pj_bzero(info, sizeof(pjmedia_conf_port_info)); … … 853 860 info->listener_slots = conf_port->listener_slots; 854 861 info->transmitter_cnt = conf_port->transmitter_cnt; 855 info->clock_rate = conf_port->info->clock_rate;856 info->channel_count = conf_port->info->channel_count;857 info->samples_per_frame = conf_port-> info->samples_per_frame;858 info->bits_per_sample = conf_port->info->bits_per_sample;859 info->format = conf_port->port->info.f ormat;862 info->clock_rate = afd->clock_rate; 863 info->channel_count = afd->channel_count; 864 info->samples_per_frame = conf_port->samples_per_frame; 865 info->bits_per_sample = afd->bits_per_sample; 866 info->format = conf_port->port->info.fmt; 860 867 info->tx_adj_level = conf_port->tx_adj_level - NORMAL_LEVEL; 861 868 info->rx_adj_level = conf_port->rx_adj_level - NORMAL_LEVEL; … … 961 968 962 969 /* Level adjustment is applicable only for ports that work with raw PCM. */ 963 PJ_ASSERT_RETURN(conf_port->info->f ormat.id == PJMEDIA_FORMAT_L16,970 PJ_ASSERT_RETURN(conf_port->info->fmt.id == PJMEDIA_FORMAT_L16, 964 971 PJ_EIGNORED); 965 972 … … 1003 1010 1004 1011 /* Level adjustment is applicable only for ports that work with raw PCM. */ 1005 PJ_ASSERT_RETURN(conf_port->info->f ormat.id == PJMEDIA_FORMAT_L16,1012 PJ_ASSERT_RETURN(conf_port->info->fmt.id == PJMEDIA_FORMAT_L16, 1006 1013 PJ_EIGNORED); 1007 1014 … … 1047 1054 * samples per frame. 1048 1055 */ 1049 if (f_dst->samples_cnt >= cport_dst-> info->samples_per_frame)1056 if (f_dst->samples_cnt >= cport_dst->samples_per_frame) 1050 1057 { 1051 1058 if (cport_dst->slot) { … … 1059 1066 1060 1067 /* Update TX timestamp. */ 1061 pj_add_timestamp32(&cport_dst->ts_tx, 1062 cport_dst-> info->samples_per_frame);1068 pj_add_timestamp32(&cport_dst->ts_tx, 1069 cport_dst->samples_per_frame); 1063 1070 } 1064 1071 } … … 1076 1083 /* Copy frame to listener's TX buffer. */ 1077 1084 nsamples_to_copy = f_end - f_start; 1078 nsamples_req = cport_dst-> info->samples_per_frame -1085 nsamples_req = cport_dst->samples_per_frame - 1079 1086 (frm_dst->size>>1); 1080 1087 if (nsamples_to_copy > nsamples_req) … … 1113 1120 * samples per frame. 1114 1121 */ 1115 if ((frm_dst->size >> 1) == cport_dst-> info->samples_per_frame)1122 if ((frm_dst->size >> 1) == cport_dst->samples_per_frame) 1116 1123 { 1117 1124 if (cport_dst->slot) { … … 1124 1131 /* Update TX timestamp. */ 1125 1132 pj_add_timestamp32(&cport_dst->ts_tx, 1126 cport_dst-> info->samples_per_frame);1133 cport_dst->samples_per_frame); 1127 1134 } 1128 1135 } … … 1132 1139 /* Check port format. */ 1133 1140 if (cport_dst->port && 1134 cport_dst->port->info.f ormat.id == PJMEDIA_FORMAT_L16)1141 cport_dst->port->info.fmt.id == PJMEDIA_FORMAT_L16) 1135 1142 { 1136 1143 /* When there is already some samples in listener's TX buffer, … … 1139 1146 if (frm_dst->size != 0) { 1140 1147 pjmedia_zero_samples((pj_int16_t*)frm_dst->buf, 1141 cport_dst-> info->samples_per_frame -1148 cport_dst->samples_per_frame - 1142 1149 (frm_dst->size>>1)); 1143 1150 1144 1151 frm_dst->type = PJMEDIA_FRAME_TYPE_AUDIO; 1145 frm_dst->size = cport_dst-> info->samples_per_frame << 1;1152 frm_dst->size = cport_dst->samples_per_frame << 1; 1146 1153 if (cport_dst->slot) { 1147 1154 pjmedia_port_put_frame(cport_dst->port, frm_dst); … … 1153 1160 /* Update TX timestamp. */ 1154 1161 pj_add_timestamp32(&cport_dst->ts_tx, 1155 cport_dst-> info->samples_per_frame);1162 cport_dst->samples_per_frame); 1156 1163 } 1157 1164 } else { … … 1161 1168 frm_dst->type = PJMEDIA_FRAME_TYPE_EXTENDED; 1162 1169 pjmedia_frame_ext_append_subframe(f_dst, NULL, 0, (pj_uint16_t) 1163 (cport_dst-> info->samples_per_frame - f_dst->samples_cnt));1170 (cport_dst->samples_per_frame - f_dst->samples_cnt)); 1164 1171 if (cport_dst->slot) { 1165 1172 pjmedia_port_put_frame(cport_dst->port, frm_dst); … … 1172 1179 /* Update TX timestamp. */ 1173 1180 pj_add_timestamp32(&cport_dst->ts_tx, 1174 cport_dst-> info->samples_per_frame);1181 cport_dst->samples_per_frame); 1175 1182 } 1176 1183 } … … 1186 1193 1187 1194 /* Update TX timestamp. */ 1188 pj_add_timestamp32(&cport_dst->ts_tx, cport_dst-> info->samples_per_frame);1195 pj_add_timestamp32(&cport_dst->ts_tx, cport_dst->samples_per_frame); 1189 1196 } 1190 1197 } … … 1212 1219 for (i=1, ci=1; i<conf->max_ports && ci<conf->port_cnt; ++i) { 1213 1220 struct conf_port *cport = conf->ports[i]; 1221 unsigned master_samples_per_frame; 1214 1222 1215 1223 /* Skip empty port. */ … … 1220 1228 ++ci; 1221 1229 1230 master_samples_per_frame = PJMEDIA_PINFO_SAMPLES_PER_FRAME( 1231 &conf->master_port->info); 1232 1222 1233 /* Update clock of the port. */ 1223 pj_add_timestamp32(&cport->ts_clock, 1224 conf->master_port->info.samples_per_frame); 1234 pj_add_timestamp32(&cport->ts_clock, master_samples_per_frame); 1225 1235 1226 1236 /* Skip if we're not allowed to receive from this port or … … 1231 1241 { 1232 1242 cport->rx_level = 0; 1233 pj_add_timestamp32(&cport->ts_rx, 1234 conf->master_port->info.samples_per_frame); 1243 pj_add_timestamp32(&cport->ts_rx, master_samples_per_frame); 1235 1244 continue; 1236 1245 } … … 1246 1255 pj_int32_t level = 0; 1247 1256 1248 pj_add_timestamp32(&cport->ts_rx, cport-> info->samples_per_frame);1257 pj_add_timestamp32(&cport->ts_rx, cport->samples_per_frame); 1249 1258 1250 1259 f->buf = &conf->buf[sizeof(pjmedia_frame)]; 1251 f->size = cport-> info->samples_per_frame<<1;1260 f->size = cport->samples_per_frame<<1; 1252 1261 1253 1262 /* Get frame from port. */ … … 1303 1312 if (listener->tx_setting == PJMEDIA_PORT_DISABLE) { 1304 1313 pj_add_timestamp32(&listener->ts_tx, 1305 listener-> info->samples_per_frame);1314 listener->samples_per_frame); 1306 1315 listener->tx_level = 0; 1307 1316 continue; … … 1362 1371 1363 1372 pjmedia_port_put_frame(cport->port, &tmp_f); 1364 pj_add_timestamp32(&cport->ts_tx, cport-> info->samples_per_frame);1373 pj_add_timestamp32(&cport->ts_tx, cport->samples_per_frame); 1365 1374 } 1366 1375 } … … 1381 1390 unsigned samples_per_subframe; 1382 1391 1383 if (f_src_->samples_cnt < this_cport-> info->samples_per_frame) {1392 if (f_src_->samples_cnt < this_cport->samples_per_frame) { 1384 1393 f_dst->base.type = PJMEDIA_FRAME_TYPE_NONE; 1385 1394 f_dst->samples_cnt = 0; … … 1394 1403 1395 1404 1396 while (f_dst->samples_cnt < this_cport-> info->samples_per_frame) {1405 while (f_dst->samples_cnt < this_cport->samples_per_frame) { 1397 1406 sf = pjmedia_frame_ext_get_subframe(f_src_, i++); 1398 1407 pj_assert(sf); … … 1405 1414 1406 1415 } else if (f_src->type == PJMEDIA_FRAME_TYPE_AUDIO) { 1407 if ((f_src->size>>1) < this_cport-> info->samples_per_frame) {1416 if ((f_src->size>>1) < this_cport->samples_per_frame) { 1408 1417 frame->type = PJMEDIA_FRAME_TYPE_NONE; 1409 1418 frame->size = 0; … … 1413 1422 pjmedia_copy_samples((pj_int16_t*)frame->buf, 1414 1423 (pj_int16_t*)f_src->buf, 1415 this_cport-> info->samples_per_frame);1416 frame->size = this_cport-> info->samples_per_frame << 1;1424 this_cport->samples_per_frame); 1425 frame->size = this_cport->samples_per_frame << 1; 1417 1426 1418 1427 /* Shift left TX buffer. */ … … 1421 1430 pjmedia_move_samples((pj_int16_t*)f_src->buf, 1422 1431 (pj_int16_t*)f_src->buf + 1423 this_cport-> info->samples_per_frame,1432 this_cport->samples_per_frame, 1424 1433 f_src->size >> 1); 1425 1434 } else { /* PJMEDIA_FRAME_TYPE_NONE */ … … 1443 1452 */ 1444 1453 static pj_status_t put_frame(pjmedia_port *this_port, 1445 constpjmedia_frame *f)1454 pjmedia_frame *f) 1446 1455 { 1447 1456 pjmedia_conf *conf = (pjmedia_conf*) this_port->port_data.pdata; … … 1461 1470 } 1462 1471 1463 pj_add_timestamp32(&cport->ts_rx, cport-> info->samples_per_frame);1472 pj_add_timestamp32(&cport->ts_rx, cport->samples_per_frame); 1464 1473 1465 1474 /* Skip if this port is muted/disabled. */ … … 1527 1536 if (listener->tx_setting == PJMEDIA_PORT_DISABLE) { 1528 1537 pj_add_timestamp32(&listener->ts_tx, 1529 listener-> info->samples_per_frame);1538 listener->samples_per_frame); 1530 1539 listener->tx_level = 0; 1531 1540 continue; … … 1535 1544 if (listener == cport) { 1536 1545 pj_add_timestamp32(&listener->ts_tx, 1537 listener-> info->samples_per_frame);1546 listener->samples_per_frame); 1538 1547 listener->tx_level = 0; 1539 1548 continue; -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/conference.c
r3085 r3392 27 27 #include <pjmedia/sound_port.h> 28 28 #include <pjmedia/stereo.h> 29 #include <pjmedia/stream.h>30 29 #include <pj/array.h> 31 30 #include <pj/assert.h> … … 242 241 /* Prototypes */ 243 242 static pj_status_t put_frame(pjmedia_port *this_port, 244 constpjmedia_frame *frame);243 pjmedia_frame *frame); 245 244 static pj_status_t get_frame(pjmedia_port *this_port, 246 245 pjmedia_frame *frame); … … 286 285 /* Save some port's infos, for convenience. */ 287 286 if (port) { 287 pjmedia_audio_format_detail *afd; 288 289 afd = pjmedia_format_get_audio_format_detail(&port->info.fmt, 1); 288 290 conf_port->port = port; 289 conf_port->clock_rate = port->info.clock_rate;290 conf_port->samples_per_frame = port->info.samples_per_frame;291 conf_port->channel_count = port->info.channel_count;291 conf_port->clock_rate = afd->clock_rate; 292 conf_port->samples_per_frame = PJMEDIA_AFD_SPF(afd); 293 conf_port->channel_count = afd->channel_count; 292 294 } else { 293 295 conf_port->port = NULL; … … 751 753 * - monochannel on port or conference bridge. 752 754 */ 753 if (strm_port->info.channel_count != conf->channel_count && 754 (strm_port->info.channel_count != 1 && conf->channel_count != 1)) 755 if (PJMEDIA_PIA_CCNT(&strm_port->info) != conf->channel_count && 756 (PJMEDIA_PIA_CCNT(&strm_port->info) != 1 && 757 conf->channel_count != 1)) 755 758 { 756 759 pj_assert(!"Number of channels mismatch"); … … 2051 2054 */ 2052 2055 static pj_status_t put_frame(pjmedia_port *this_port, 2053 constpjmedia_frame *frame)2056 pjmedia_frame *frame) 2054 2057 { 2055 2058 pjmedia_conf *conf = (pjmedia_conf*) this_port->port_data.pdata; -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/delaybuf.c
r2850 r3392 22 22 #include <pjmedia/circbuf.h> 23 23 #include <pjmedia/errno.h> 24 #include <pjmedia/frame.h> 24 25 #include <pjmedia/wsola.h> 25 26 #include <pj/assert.h> -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/echo_common.c
r3115 r3392 21 21 #include <pjmedia/echo.h> 22 22 #include <pjmedia/delaybuf.h> 23 #include <pjmedia/frame.h> 23 24 #include <pjmedia/errno.h> 24 25 #include <pj/assert.h> -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/echo_port.c
r2394 r3392 39 39 40 40 static pj_status_t ec_put_frame(pjmedia_port *this_port, 41 constpjmedia_frame *frame);41 pjmedia_frame *frame); 42 42 static pj_status_t ec_get_frame(pjmedia_port *this_port, 43 43 pjmedia_frame *frame); … … 53 53 { 54 54 const pj_str_t AEC = { "EC", 2 }; 55 pjmedia_audio_format_detail *afd; 55 56 struct ec *ec; 56 57 pj_status_t status; 57 58 58 59 PJ_ASSERT_RETURN(pool && dn_port && p_port, PJ_EINVAL); 59 PJ_ASSERT_RETURN(dn_port->info.bits_per_sample==16 && tail_ms, 60 61 afd = pjmedia_format_get_audio_format_detail(&dn_port->info.fmt, PJ_TRUE); 62 63 PJ_ASSERT_RETURN(afd->bits_per_sample==16 && tail_ms, 60 64 PJ_EINVAL); 61 65 … … 64 68 65 69 pjmedia_port_info_init(&ec->base.info, &AEC, SIGNATURE, 66 dn_port->info.clock_rate,67 dn_port->info.channel_count,68 dn_port->info.bits_per_sample,69 dn_port->info.samples_per_frame);70 afd->clock_rate, 71 afd->channel_count, 72 afd->bits_per_sample, 73 PJMEDIA_AFD_SPF(afd)); 70 74 71 status = pjmedia_echo_create2(pool, dn_port->info.clock_rate,72 dn_port->info.channel_count,73 dn_port->info.samples_per_frame,75 status = pjmedia_echo_create2(pool, afd->clock_rate, 76 afd->channel_count, 77 PJMEDIA_AFD_SPF(afd), 74 78 tail_ms, latency_ms, options, &ec->ec); 75 79 if (status != PJ_SUCCESS) … … 90 94 91 95 static pj_status_t ec_put_frame( pjmedia_port *this_port, 92 constpjmedia_frame *frame)96 pjmedia_frame *frame) 93 97 { 94 98 struct ec *ec = (struct ec*)this_port; … … 100 104 } 101 105 102 PJ_ASSERT_RETURN(frame->size == this_port->info.samples_per_frame * 2,106 PJ_ASSERT_RETURN(frame->size == PJMEDIA_PIA_AVG_FSZ(&this_port->info), 103 107 PJ_EINVAL); 104 108 … … 120 124 if (status!=PJ_SUCCESS || frame->type!=PJMEDIA_FRAME_TYPE_AUDIO) { 121 125 pjmedia_zero_samples((pj_int16_t*)frame->buf, 122 this_port->info.samples_per_frame);126 PJMEDIA_PIA_SPF(&this_port->info)); 123 127 } 124 128 -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/echo_speex.c
r2394 r3392 21 21 #include <pjmedia/echo.h> 22 22 #include <pjmedia/errno.h> 23 #include <pjmedia/frame.h> 23 24 #include <pj/assert.h> 24 25 #include <pj/log.h> -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/echo_suppress.c
r2394 r3392 21 21 #include <pjmedia/alaw_ulaw.h> 22 22 #include <pjmedia/errno.h> 23 #include <pjmedia/frame.h> 23 24 #include <pjmedia/silencedet.h> 24 25 #include <pj/array.h> -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/errno.c
r2506 r3392 115 115 PJ_BUILD_ERR( PJMEDIA_RTP_EINDTMF, "Invalid DTMF digit" ), 116 116 PJ_BUILD_ERR( PJMEDIA_RTP_EREMNORFC2833,"Remote does not support RFC 2833" ), 117 PJ_BUILD_ERR( PJMEDIA_EBADFMT, "Bad format"), 117 118 118 119 /* RTP session errors. */ … … 143 144 PJ_BUILD_ERR( PJMEDIA_EWAVETOOSHORT, "WAVE file too short" ), 144 145 PJ_BUILD_ERR( PJMEDIA_EFRMFILETOOBIG, "Sound frame too large for file buffer"), 146 PJ_BUILD_ERR( PJMEDIA_EAVIUNSUPP, "Unsupported AVI file"), 145 147 146 148 /* Sound device errors: */ … … 267 269 } 268 270 271 /* 272 * pjmedia_videodev_strerror() 273 */ 274 PJ_DEF(pj_str_t) pjmedia_videodev_strerror(pj_status_t statcode, 275 char *buf, pj_size_t bufsize ) 276 { 277 pj_str_t errstr; 278 279 /* Error not found. */ 280 errstr.ptr = buf; 281 errstr.slen = pj_ansi_snprintf(buf, bufsize, 282 "Unknown pjmedia-videodev error %d", 283 statcode); 284 285 return errstr; 286 } 287 -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/master_port.c
r3214 r3392 57 57 unsigned samples_per_frame; 58 58 unsigned bytes_per_frame; 59 pjmedia_audio_format_detail *u_afd, *d_afd; 59 60 pj_status_t status; 60 61 … … 62 63 PJ_ASSERT_RETURN(pool && u_port && d_port && p_m, PJ_EINVAL); 63 64 65 u_afd = pjmedia_format_get_audio_format_detail(&u_port->info.fmt, PJ_TRUE); 66 d_afd = pjmedia_format_get_audio_format_detail(&d_port->info.fmt, PJ_TRUE); 64 67 65 68 /* Both ports MUST have equal clock rate */ 66 PJ_ASSERT_RETURN(u_ port->info.clock_rate == d_port->info.clock_rate,69 PJ_ASSERT_RETURN(u_afd->clock_rate == d_afd->clock_rate, 67 70 PJMEDIA_ENCCLOCKRATE); 68 71 69 72 /* Both ports MUST have equal samples per frame */ 70 PJ_ASSERT_RETURN( u_port->info.samples_per_frame==71 d_port->info.samples_per_frame,73 PJ_ASSERT_RETURN(PJMEDIA_PIA_SPF(&u_port->info)== 74 PJMEDIA_PIA_SPF(&d_port->info), 72 75 PJMEDIA_ENCSAMPLESPFRAME); 73 76 74 77 /* Both ports MUST have equal channel count */ 75 PJ_ASSERT_RETURN(u_ port->info.channel_count == d_port->info.channel_count,78 PJ_ASSERT_RETURN(u_afd->channel_count == d_afd->channel_count, 76 79 PJMEDIA_ENCCHANNEL); 77 80 78 81 79 82 /* Get clock_rate and samples_per_frame from one of the port. */ 80 clock_rate = u_ port->info.clock_rate;81 samples_per_frame = u_port->info.samples_per_frame;82 channel_count = u_ port->info.channel_count;83 clock_rate = u_afd->clock_rate; 84 samples_per_frame = PJMEDIA_PIA_SPF(&u_port->info); 85 channel_count = u_afd->channel_count; 83 86 84 87 … … 86 89 * buffer. We take the larger size of the two ports. 87 90 */ 88 bytes_per_frame = u_port->info.bytes_per_frame;89 if ( d_port->info.bytes_per_frame> bytes_per_frame)90 bytes_per_frame = d_port->info.bytes_per_frame;91 bytes_per_frame = PJMEDIA_AFD_AVG_FSZ(u_afd); 92 if (PJMEDIA_AFD_AVG_FSZ(d_afd) > bytes_per_frame) 93 bytes_per_frame = PJMEDIA_AFD_AVG_FSZ(d_afd); 91 94 92 95 … … 208 211 PJ_ASSERT_RETURN(m && port, PJ_EINVAL); 209 212 213 /* Only supports audio for now */ 214 PJ_ASSERT_RETURN(port->info.fmt.type==PJMEDIA_TYPE_AUDIO, PJ_ENOTSUP); 215 210 216 /* If we have downstream port, make sure they have matching samples per 211 217 * frame. … … 213 219 if (m->d_port) { 214 220 PJ_ASSERT_RETURN( 215 port->info.clock_rate/port->info.samples_per_frame==216 m->d_port->info.clock_rate/m->d_port->info.samples_per_frame,221 PJMEDIA_PIA_PTIME(&port->info) == 222 PJMEDIA_PIA_PTIME(&m->d_port->info), 217 223 PJMEDIA_ENCSAMPLESPFRAME 218 224 ); … … 246 252 { 247 253 PJ_ASSERT_RETURN(m && port, PJ_EINVAL); 254 255 /* Only supports audio for now */ 256 PJ_ASSERT_RETURN(port->info.fmt.type==PJMEDIA_TYPE_AUDIO, PJ_ENOTSUP); 248 257 249 258 /* If we have upstream port, make sure they have matching samples per … … 252 261 if (m->u_port) { 253 262 PJ_ASSERT_RETURN( 254 port->info.clock_rate/port->info.samples_per_frame==255 m->u_port->info.clock_rate/m->u_port->info.samples_per_frame,263 PJMEDIA_PIA_PTIME(&port->info) == 264 PJMEDIA_PIA_PTIME(&m->u_port->info), 256 265 PJMEDIA_ENCSAMPLESPFRAME 257 266 ); -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/mem_capture.c
r2394 r3392 47 47 48 48 static pj_status_t rec_put_frame(pjmedia_port *this_port, 49 constpjmedia_frame *frame);49 pjmedia_frame *frame); 50 50 static pj_status_t rec_get_frame(pjmedia_port *this_port, 51 51 pjmedia_frame *frame); … … 141 141 142 142 static pj_status_t rec_put_frame( pjmedia_port *this_port, 143 constpjmedia_frame *frame)143 pjmedia_frame *frame) 144 144 { 145 145 struct mem_rec *rec; -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/mem_player.c
r2394 r3392 49 49 50 50 static pj_status_t mem_put_frame(pjmedia_port *this_port, 51 constpjmedia_frame *frame);51 pjmedia_frame *frame); 52 52 static pj_status_t mem_get_frame(pjmedia_port *this_port, 53 53 pjmedia_frame *frame); … … 126 126 127 127 static pj_status_t mem_put_frame( pjmedia_port *this_port, 128 constpjmedia_frame *frame)128 pjmedia_frame *frame) 129 129 { 130 130 PJ_UNUSED_ARG(this_port); … … 166 166 } 167 167 168 size_needed = this_port->info.bytes_per_frame;168 size_needed = PJMEDIA_PIA_AVG_FSZ(&this_port->info); 169 169 size_written = 0; 170 170 endpos = player->buffer + player->buf_size; … … 201 201 } 202 202 203 frame->size = this_port->info.bytes_per_frame;203 frame->size = PJMEDIA_PIA_AVG_FSZ(&this_port->info); 204 204 frame->timestamp.u64 = player->timestamp.u64; 205 205 frame->type = PJMEDIA_FRAME_TYPE_AUDIO; 206 206 207 player->timestamp.u64 += this_port->info.samples_per_frame;207 player->timestamp.u64 += PJMEDIA_PIA_SPF(&this_port->info); 208 208 209 209 return PJ_SUCCESS; -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/null_port.c
r2394 r3392 30 30 pjmedia_frame *frame); 31 31 static pj_status_t null_put_frame(pjmedia_port *this_port, 32 constpjmedia_frame *frame);32 pjmedia_frame *frame); 33 33 static pj_status_t null_on_destroy(pjmedia_port *this_port); 34 34 … … 68 68 */ 69 69 static pj_status_t null_put_frame(pjmedia_port *this_port, 70 constpjmedia_frame *frame)70 pjmedia_frame *frame) 71 71 { 72 72 PJ_UNUSED_ARG(this_port); … … 83 83 { 84 84 frame->type = PJMEDIA_FRAME_TYPE_AUDIO; 85 frame->size = this_port->info.samples_per_frame * 2;86 frame->timestamp.u32.lo += this_port->info.samples_per_frame;85 frame->size = PJMEDIA_PIA_AVG_FSZ(&this_port->info); 86 frame->timestamp.u32.lo += PJMEDIA_PIA_SPF(&this_port->info); 87 87 pjmedia_zero_samples((pj_int16_t*)frame->buf, 88 this_port->info.samples_per_frame);88 PJMEDIA_PIA_SPF(&this_port->info)); 89 89 90 90 return PJ_SUCCESS; -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/port.c
r2394 r3392 22 22 #include <pj/assert.h> 23 23 #include <pj/log.h> 24 #include <pj/pool.h> 24 25 25 26 #define THIS_FILE "port.c" … … 38 39 unsigned samples_per_frame) 39 40 { 41 #define USEC_IN_SEC (pj_uint64_t)1000000 42 unsigned frame_time_usec, avg_bps; 43 40 44 pj_bzero(info, sizeof(*info)); 41 45 46 info->signature = signature; 47 info->dir = PJMEDIA_DIR_ENCODING_DECODING; 42 48 info->name = *name; 43 info->signature = signature; 44 info->type = PJMEDIA_TYPE_AUDIO; 45 info->has_info = PJ_TRUE; 46 info->need_info = PJ_FALSE; 47 info->pt = 0xFF; 48 info->encoding_name = pj_str("pcm"); 49 info->clock_rate = clock_rate; 50 info->channel_count = channel_count; 51 info->bits_per_sample = bits_per_sample; 52 info->samples_per_frame = samples_per_frame; 53 info->bytes_per_frame = samples_per_frame * bits_per_sample / 8; 49 50 frame_time_usec = (unsigned)(samples_per_frame * USEC_IN_SEC / 51 channel_count / clock_rate); 52 avg_bps = clock_rate * channel_count * bits_per_sample; 53 54 pjmedia_format_init_audio(&info->fmt, PJMEDIA_FORMAT_L16, clock_rate, 55 channel_count, bits_per_sample, frame_time_usec, 56 avg_bps, avg_bps); 54 57 55 58 return PJ_SUCCESS; 56 59 } 57 60 61 PJ_DEF(pj_status_t) pjmedia_port_info_init2( pjmedia_port_info *info, 62 const pj_str_t *name, 63 unsigned signature, 64 pjmedia_dir dir, 65 const pjmedia_format *fmt) 66 { 67 pj_bzero(info, sizeof(*info)); 68 info->signature = signature; 69 info->dir = dir; 70 info->name = *name; 71 72 pjmedia_format_copy(&info->fmt, fmt); 73 74 return PJ_SUCCESS; 75 } 58 76 59 77 /** … … 78 96 */ 79 97 PJ_DEF(pj_status_t) pjmedia_port_put_frame( pjmedia_port *port, 80 constpjmedia_frame *frame )98 pjmedia_frame *frame ) 81 99 { 82 100 PJ_ASSERT_RETURN(port && frame, PJ_EINVAL); -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/resample_port.c
r2394 r3392 43 43 44 44 static pj_status_t resample_put_frame(pjmedia_port *this_port, 45 constpjmedia_frame *frame);45 pjmedia_frame *frame); 46 46 static pj_status_t resample_get_frame(pjmedia_port *this_port, 47 47 pjmedia_frame *frame); … … 58 58 const pj_str_t name = pj_str("resample"); 59 59 struct resample_port *rport; 60 unsigned ptime;60 pjmedia_audio_format_detail *d_afd, *r_afd; 61 61 pj_status_t status; 62 62 … … 65 65 66 66 /* Only supports 16bit samples per frame */ 67 PJ_ASSERT_RETURN( dn_port->info.bits_per_sample== 16, PJMEDIA_ENCBITS);68 69 ptime = dn_port->info.samples_per_frame * 1000 /70 dn_port->info.clock_rate;71 67 PJ_ASSERT_RETURN(PJMEDIA_PIA_BITS(&dn_port->info) == 16, PJMEDIA_ENCBITS); 68 69 d_afd = pjmedia_format_get_audio_format_detail(&dn_port->info.fmt, 1); 70 r_afd = pjmedia_format_get_audio_format_detail(&rport->base.info.fmt, 1); 71 72 72 /* Create and initialize port. */ 73 73 rport = PJ_POOL_ZALLOC_T(pool, struct resample_port); … … 75 75 76 76 pjmedia_port_info_init(&rport->base.info, &name, SIGNATURE, clock_rate, 77 dn_port->info.channel_count, BYTES_PER_SAMPLE * 8,78 clock_rate * ptime / 1000);77 d_afd->channel_count, BYTES_PER_SAMPLE * 8, 78 clock_rate * d_afd->frame_time_usec / 1000000); 79 79 80 80 rport->dn_port = dn_port; … … 87 87 */ 88 88 rport->get_buf = (pj_int16_t*) 89 pj_pool_alloc(pool, dn_port->info.bytes_per_frame);89 pj_pool_alloc(pool, PJMEDIA_PIA_AVG_FSZ(&dn_port->info)); 90 90 PJ_ASSERT_RETURN(rport->get_buf != NULL, PJ_ENOMEM); 91 91 92 92 rport->put_buf = (pj_int16_t*) 93 pj_pool_alloc(pool, dn_port->info.bytes_per_frame);93 pj_pool_alloc(pool, PJMEDIA_PIA_AVG_FSZ(&dn_port->info)); 94 94 PJ_ASSERT_RETURN(rport->put_buf != NULL, PJ_ENOMEM); 95 95 … … 99 99 (opt&PJMEDIA_RESAMPLE_USE_LINEAR)==0, 100 100 (opt&PJMEDIA_RESAMPLE_USE_SMALL_FILTER)==0, 101 d n_port->info.channel_count,102 d n_port->info.clock_rate,103 r port->base.info.clock_rate,104 dn_port->info.samples_per_frame,101 d_afd->channel_count, 102 d_afd->clock_rate, 103 r_afd->clock_rate, 104 PJMEDIA_PIA_SPF(&dn_port->info), 105 105 &rport->resample_get); 106 106 if (status != PJ_SUCCESS) … … 111 111 (opt&PJMEDIA_RESAMPLE_USE_LINEAR)==0, 112 112 (opt&PJMEDIA_RESAMPLE_USE_SMALL_FILTER)==0, 113 d n_port->info.channel_count,114 r port->base.info.clock_rate,115 d n_port->info.clock_rate,116 rport->base.info.samples_per_frame,113 d_afd->channel_count, 114 r_afd->clock_rate, 115 d_afd->clock_rate, 116 PJMEDIA_PIA_SPF(&rport->base.info), 117 117 &rport->resample_put); 118 118 … … 132 132 133 133 static pj_status_t resample_put_frame(pjmedia_port *this_port, 134 constpjmedia_frame *frame)134 pjmedia_frame *frame) 135 135 { 136 136 struct resample_port *rport = (struct resample_port*) this_port; … … 148 148 149 149 downstream_frame.buf = rport->put_buf; 150 downstream_frame.size = rport->dn_port->info.bytes_per_frame;150 downstream_frame.size = PJMEDIA_PIA_AVG_FSZ(&rport->dn_port->info); 151 151 } else { 152 152 downstream_frame.buf = frame->buf; … … 176 176 177 177 tmp_frame.buf = rport->get_buf; 178 tmp_frame.size = rport->dn_port->info.bytes_per_frame;178 tmp_frame.size = PJMEDIA_PIA_AVG_FSZ(&rport->dn_port->info); 179 179 tmp_frame.timestamp.u64 = frame->timestamp.u64; 180 180 tmp_frame.type = PJMEDIA_FRAME_TYPE_AUDIO; … … 188 188 frame->timestamp = tmp_frame.timestamp; 189 189 /* Copy whatever returned as long as the buffer size is enough */ 190 frame->size = tmp_frame.size < rport->base.info.bytes_per_frame?191 tmp_frame.size : rport->base.info.bytes_per_frame;190 frame->size = tmp_frame.size < PJMEDIA_PIA_AVG_FSZ(&rport->base.info) ? 191 tmp_frame.size : PJMEDIA_PIA_AVG_FSZ(&rport->base.info); 192 192 if (tmp_frame.size) { 193 193 pjmedia_copy_samples((pj_int16_t*)frame->buf, … … 202 202 (pj_int16_t*) frame->buf); 203 203 204 frame->size = rport->base.info.bytes_per_frame;204 frame->size = PJMEDIA_PIA_AVG_FSZ(&rport->base.info); 205 205 frame->type = PJMEDIA_FRAME_TYPE_AUDIO; 206 206 -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/silencedet.c
r2394 r3392 24 24 #include <pj/log.h> 25 25 #include <pj/pool.h> 26 #include <pj/string.h> 26 27 27 28 #define THIS_FILE "silencedet.c" -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/sound_port.c
r3115 r3392 638 638 pjmedia_port *port) 639 639 { 640 pjmedia_ port_info *pinfo;640 pjmedia_audio_format_detail *afd; 641 641 642 642 PJ_ASSERT_RETURN(snd_port && port, PJ_EINVAL); 643 644 afd = pjmedia_format_get_audio_format_detail(&port->info.fmt, PJ_TRUE); 643 645 644 646 /* Check that port has the same configuration as the sound device 645 647 * port. 646 648 */ 647 pinfo = &port->info; 648 if (pinfo->clock_rate != snd_port->clock_rate) 649 if (afd->clock_rate != snd_port->clock_rate) 649 650 return PJMEDIA_ENCCLOCKRATE; 650 651 651 if ( pinfo->samples_per_frame!= snd_port->samples_per_frame)652 if (PJMEDIA_AFD_SPF(afd) != snd_port->samples_per_frame) 652 653 return PJMEDIA_ENCSAMPLESPFRAME; 653 654 654 if ( pinfo->channel_count != snd_port->channel_count)655 if (afd->channel_count != snd_port->channel_count) 655 656 return PJMEDIA_ENCCHANNEL; 656 657 657 if ( pinfo->bits_per_sample != snd_port->bits_per_sample)658 if (afd->bits_per_sample != snd_port->bits_per_sample) 658 659 return PJMEDIA_ENCBITS; 659 660 -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/splitcomb.c
r2394 r3392 190 190 */ 191 191 static pj_status_t put_frame(pjmedia_port *this_port, 192 constpjmedia_frame *frame);192 pjmedia_frame *frame); 193 193 static pj_status_t get_frame(pjmedia_port *this_port, 194 194 pjmedia_frame *frame); … … 196 196 197 197 static pj_status_t rport_put_frame(pjmedia_port *this_port, 198 constpjmedia_frame *frame);198 pjmedia_frame *frame); 199 199 static pj_status_t rport_get_frame(pjmedia_port *this_port, 200 200 pjmedia_frame *frame); … … 285 285 286 286 /* Check the channel number */ 287 PJ_ASSERT_RETURN(ch_num < sc->base.info.channel_count, PJ_EINVAL);287 PJ_ASSERT_RETURN(ch_num < PJMEDIA_PIA_CCNT(&sc->base.info), PJ_EINVAL); 288 288 289 289 /* options is unused for now */ … … 309 309 struct splitcomb *sc = (struct splitcomb*) splitcomb; 310 310 struct reverse_port *rport; 311 unsigned buf_cnt, ptime; 311 unsigned buf_cnt; 312 const pjmedia_audio_format_detail *sc_afd, *p_afd; 312 313 pjmedia_port *port; 313 314 pj_status_t status; … … 320 321 321 322 /* Check the channel number */ 322 PJ_ASSERT_RETURN(ch_num < sc->base.info.channel_count, PJ_EINVAL);323 PJ_ASSERT_RETURN(ch_num < PJMEDIA_PIA_CCNT(&sc->base.info), PJ_EINVAL); 323 324 324 325 /* options is unused for now */ 325 326 PJ_UNUSED_ARG(options); 327 328 sc_afd = pjmedia_format_get_audio_format_detail(&splitcomb->info.fmt, 1); 326 329 327 330 /* Create the port */ … … 333 336 port = &rport->base; 334 337 pjmedia_port_info_init(&port->info, &name, SIGNATURE_PORT, 335 splitcomb->info.clock_rate, 1, 336 splitcomb->info.bits_per_sample, 337 splitcomb->info.samples_per_frame / 338 splitcomb->info.channel_count); 338 sc_afd->clock_rate, 1, 339 sc_afd->bits_per_sample, 340 PJMEDIA_PIA_SPF(&splitcomb->info) / 341 sc_afd->channel_count); 342 343 p_afd = pjmedia_format_get_audio_format_detail(&port->info.fmt, 1); 339 344 340 345 /* ... and the callbacks */ … … 348 353 buf_cnt = MAX_BUF_CNT; 349 354 350 ptime = port->info.samples_per_frame * 1000 / port->info.clock_rate /351 port->info.channel_count;352 353 355 rport->max_burst = MAX_BURST; 354 356 rport->max_null_frames = MAX_NULL_FRAMES; … … 356 358 /* Create downstream/put buffers */ 357 359 status = pjmedia_delay_buf_create(pool, "scombdb-dn", 358 p ort->info.clock_rate,359 port->info.samples_per_frame,360 p ort->info.channel_count,361 buf_cnt * p time,0,362 &rport->buf[DIR_DOWNSTREAM].dbuf);360 p_afd->clock_rate, 361 PJMEDIA_PIA_SPF(&port->info), 362 p_afd->channel_count, 363 buf_cnt * p_afd->frame_time_usec / 1000, 364 0, &rport->buf[DIR_DOWNSTREAM].dbuf); 363 365 if (status != PJ_SUCCESS) { 364 366 return status; … … 367 369 /* Create upstream/get buffers */ 368 370 status = pjmedia_delay_buf_create(pool, "scombdb-up", 369 p ort->info.clock_rate,370 port->info.samples_per_frame,371 p ort->info.channel_count,372 buf_cnt * p time,0,373 &rport->buf[DIR_UPSTREAM].dbuf);371 p_afd->clock_rate, 372 PJMEDIA_PIA_SPF(&port->info), 373 p_afd->channel_count, 374 buf_cnt * p_afd->frame_time_usec / 1000, 375 0, &rport->buf[DIR_UPSTREAM].dbuf); 374 376 if (status != PJ_SUCCESS) { 375 377 pjmedia_delay_buf_destroy(rport->buf[DIR_DOWNSTREAM].dbuf); … … 379 381 /* And temporary upstream/get buffer */ 380 382 rport->tmp_up_buf = (pj_int16_t*) 381 pj_pool_alloc(pool, port->info.bytes_per_frame); 383 pj_pool_alloc(pool, 384 PJMEDIA_PIA_AVG_FSZ(&port->info)); 382 385 383 386 /* Save port in the splitcomb */ … … 437 440 438 441 if (op == OP_PUT) { 439 rport->buf[dir].ts.u64 += rport->base.info.samples_per_frame;442 rport->buf[dir].ts.u64 += PJMEDIA_PIA_SPF(&rport->base.info); 440 443 } 441 444 … … 485 488 */ 486 489 static pj_status_t put_frame(pjmedia_port *this_port, 487 constpjmedia_frame *frame)490 pjmedia_frame *frame) 488 491 { 489 492 struct splitcomb *sc = (struct splitcomb*) this_port; … … 492 495 /* Handle null frame */ 493 496 if (frame->type == PJMEDIA_FRAME_TYPE_NONE) { 494 for (ch=0; ch < this_port->info.channel_count; ++ch) {497 for (ch=0; ch < PJMEDIA_PIA_CCNT(&this_port->info); ++ch) { 495 498 pjmedia_port *port = sc->port_desc[ch].port; 496 499 … … 534 537 /* Generate zero frame. */ 535 538 pjmedia_zero_samples(sc->put_buf, 536 this_port->info.samples_per_frame);539 PJMEDIA_PIA_SPF(&this_port->info)); 537 540 538 541 /* Put frame to delay buffer */ … … 548 551 * it for now. 549 552 */ 550 PJ_ASSERT_RETURN(frame->size == this_port->info.bytes_per_frame,553 PJ_ASSERT_RETURN(frame->size == PJMEDIA_PIA_AVG_FSZ(&this_port->info), 551 554 PJ_EINVAL); 552 555 … … 554 557 * Write mono frame into each channels 555 558 */ 556 for (ch=0; ch < this_port->info.channel_count; ++ch) {559 for (ch=0; ch < PJMEDIA_PIA_CCNT(&this_port->info); ++ch) { 557 560 pjmedia_port *port = sc->port_desc[ch].port; 558 561 … … 562 565 /* Extract the mono frame to temporary buffer */ 563 566 extract_mono_frame((const pj_int16_t*)frame->buf, sc->put_buf, ch, 564 this_port->info.channel_count,567 PJMEDIA_PIA_CCNT(&this_port->info), 565 568 frame->size * 8 / 566 this_port->info.bits_per_sample/567 this_port->info.channel_count);569 PJMEDIA_PIA_BITS(&this_port->info) / 570 PJMEDIA_PIA_CCNT(&this_port->info)); 568 571 569 572 if (!sc->port_desc[ch].reversed) { … … 572 575 573 576 mono_frame.buf = sc->put_buf; 574 mono_frame.size = frame->size / this_port->info.channel_count;577 mono_frame.size = frame->size / PJMEDIA_PIA_CCNT(&this_port->info); 575 578 mono_frame.type = frame->type; 576 579 mono_frame.timestamp.u64 = frame->timestamp.u64; … … 613 616 614 617 /* Read frame from each port */ 615 for (ch=0; ch < this_port->info.channel_count; ++ch) {618 for (ch=0; ch < PJMEDIA_PIA_CCNT(&this_port->info); ++ch) { 616 619 pjmedia_port *port = sc->port_desc[ch].port; 617 620 pjmedia_frame mono_frame; … … 620 623 if (!port) { 621 624 pjmedia_zero_samples(sc->get_buf, 622 this_port->info.samples_per_frame/623 this_port->info.channel_count);625 PJMEDIA_PIA_SPF(&this_port->info) / 626 PJMEDIA_PIA_CCNT(&this_port->info)); 624 627 625 628 } else if (sc->port_desc[ch].reversed == PJ_FALSE) { 626 629 /* Read from normal port */ 627 630 mono_frame.buf = sc->get_buf; 628 mono_frame.size = port->info.bytes_per_frame;631 mono_frame.size = PJMEDIA_PIA_AVG_FSZ(&port->info); 629 632 mono_frame.timestamp.u64 = frame->timestamp.u64; 630 633 … … 634 637 { 635 638 pjmedia_zero_samples(sc->get_buf, 636 port->info.samples_per_frame);639 PJMEDIA_PIA_SPF(&port->info)); 637 640 } 638 641 … … 652 655 } else { 653 656 pjmedia_zero_samples(sc->get_buf, 654 port->info.samples_per_frame);657 PJMEDIA_PIA_SPF(&port->info)); 655 658 } 656 659 … … 661 664 store_mono_frame(sc->get_buf, 662 665 (pj_int16_t*)frame->buf, ch, 663 this_port->info.channel_count,664 this_port->info.samples_per_frame/665 this_port->info.channel_count);666 PJMEDIA_PIA_CCNT(&this_port->info), 667 PJMEDIA_PIA_SPF(&this_port->info) / 668 PJMEDIA_PIA_CCNT(&this_port->info)); 666 669 667 670 has_frame = PJ_TRUE; … … 671 674 if (has_frame) { 672 675 frame->type = PJMEDIA_FRAME_TYPE_AUDIO; 673 frame->size = this_port->info.bytes_per_frame;676 frame->size = PJMEDIA_PIA_AVG_FSZ(&this_port->info); 674 677 } else 675 678 frame->type = PJMEDIA_FRAME_TYPE_NONE; … … 695 698 */ 696 699 static pj_status_t rport_put_frame(pjmedia_port *this_port, 697 constpjmedia_frame *frame)700 pjmedia_frame *frame) 698 701 { 699 702 struct reverse_port *rport = (struct reverse_port*) this_port; 700 703 701 pj_assert(frame->size <= rport->base.info.bytes_per_frame);704 pj_assert(frame->size <= PJMEDIA_PIA_AVG_FSZ(&rport->base.info)); 702 705 703 706 /* Handle NULL frame */ … … 731 734 /* Generate zero frame. */ 732 735 pjmedia_zero_samples(rport->tmp_up_buf, 733 this_port->info.samples_per_frame);736 PJMEDIA_PIA_SPF(&this_port->info)); 734 737 735 738 /* Put frame to delay buffer */ … … 739 742 740 743 /* Not sure how to handle partial frame, so better reject for now */ 741 PJ_ASSERT_RETURN(frame->size == this_port->info.bytes_per_frame,744 PJ_ASSERT_RETURN(frame->size == PJMEDIA_PIA_AVG_FSZ(&this_port->info), 742 745 PJ_EINVAL); 743 746 … … 756 759 */ 757 760 pjmedia_copy_samples(rport->tmp_up_buf, (const pj_int16_t*)frame->buf, 758 this_port->info.samples_per_frame);761 PJMEDIA_PIA_SPF(&this_port->info)); 759 762 760 763 /* Put frame to delay buffer */ … … 784 787 785 788 /* Get frame from delay buffer */ 786 frame->size = this_port->info.bytes_per_frame;789 frame->size = PJMEDIA_PIA_AVG_FSZ(&this_port->info); 787 790 frame->type = PJMEDIA_FRAME_TYPE_AUDIO; 788 791 frame->timestamp.u64 = rport->buf[DIR_DOWNSTREAM].ts.u64; -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/stereo_port.c
r2394 r3392 40 40 41 41 static pj_status_t stereo_put_frame(pjmedia_port *this_port, 42 constpjmedia_frame *frame);42 pjmedia_frame *frame); 43 43 static pj_status_t stereo_get_frame(pjmedia_port *this_port, 44 44 pjmedia_frame *frame); … … 61 61 62 62 /* Only supports 16bit samples per frame */ 63 PJ_ASSERT_RETURN(dn_port->info.bits_per_sample == 16, PJMEDIA_ENCBITS); 63 PJ_ASSERT_RETURN(PJMEDIA_PIA_BITS(&dn_port->info) == 16, 64 PJMEDIA_ENCBITS); 64 65 65 66 /* Validate channel counts */ 66 PJ_ASSERT_RETURN(((dn_port->info.channel_count>1 && channel_count==1) || 67 (dn_port->info.channel_count==1 && channel_count>1)), 67 PJ_ASSERT_RETURN(((PJMEDIA_PIA_CCNT(&dn_port->info)>1 && 68 channel_count==1) || 69 (PJMEDIA_PIA_CCNT(&dn_port->info)==1 && 70 channel_count>1)), 68 71 PJ_EINVAL); 69 72 … … 72 75 PJ_ASSERT_RETURN(sport != NULL, PJ_ENOMEM); 73 76 74 samples_per_frame = dn_port->info.samples_per_frame* channel_count /75 dn_port->info.channel_count;77 samples_per_frame = PJMEDIA_PIA_SPF(&dn_port->info) * channel_count / 78 PJMEDIA_PIA_CCNT(&dn_port->info); 76 79 77 80 pjmedia_port_info_init(&sport->base.info, &name, SIGNATURE, 78 dn_port->info.clock_rate,81 PJMEDIA_PIA_SRATE(&dn_port->info), 79 82 channel_count, 80 dn_port->info.bits_per_sample,83 PJMEDIA_PIA_BITS(&dn_port->info), 81 84 samples_per_frame); 82 85 … … 86 89 /* We always need buffer for put_frame */ 87 90 sport->put_buf = (pj_int16_t*) 88 pj_pool_alloc(pool, dn_port->info.bytes_per_frame); 91 pj_pool_alloc(pool, 92 PJMEDIA_PIA_AVG_FSZ(&dn_port->info)); 89 93 90 94 /* See if we need buffer for get_frame */ 91 if ( dn_port->info.channel_count> channel_count) {95 if (PJMEDIA_PIA_CCNT(&dn_port->info) > channel_count) { 92 96 sport->get_buf = (pj_int16_t*) 93 pj_pool_alloc(pool, dn_port->info.bytes_per_frame); 97 pj_pool_alloc(pool, 98 PJMEDIA_PIA_AVG_FSZ(&dn_port->info)); 94 99 } 95 100 … … 107 112 108 113 static pj_status_t stereo_put_frame(pjmedia_port *this_port, 109 constpjmedia_frame *frame)114 pjmedia_frame *frame) 110 115 { 111 116 struct stereo_port *sport = (struct stereo_port*) this_port; 117 const pjmedia_audio_format_detail *s_afd, *dn_afd; 112 118 pjmedia_frame tmp_frame; 113 119 … … 117 123 } 118 124 125 s_afd = pjmedia_format_get_audio_format_detail(&this_port->info.fmt, 1); 126 dn_afd = pjmedia_format_get_audio_format_detail(&sport->dn_port->info.fmt, 127 1); 128 119 129 if (frame->type == PJMEDIA_FRAME_TYPE_AUDIO) { 120 130 tmp_frame.buf = sport->put_buf; 121 if ( sport->dn_port->info.channel_count == 1) {131 if (dn_afd->channel_count == 1) { 122 132 pjmedia_convert_channel_nto1((pj_int16_t*)tmp_frame.buf, 123 133 (const pj_int16_t*)frame->buf, 124 s port->base.info.channel_count,125 sport->base.info.samples_per_frame,134 s_afd->channel_count, 135 PJMEDIA_AFD_SPF(s_afd), 126 136 (sport->options & PJMEDIA_STEREO_MIX), 127 137 0); … … 129 139 pjmedia_convert_channel_1ton((pj_int16_t*)tmp_frame.buf, 130 140 (const pj_int16_t*)frame->buf, 131 sport->dn_port->info.channel_count,132 sport->base.info.samples_per_frame,141 dn_afd->channel_count, 142 PJMEDIA_AFD_SPF(s_afd), 133 143 sport->options); 134 144 } 135 tmp_frame.size = sport->dn_port->info.bytes_per_frame;145 tmp_frame.size = PJMEDIA_AFD_AVG_FSZ(dn_afd); 136 146 } else { 137 147 tmp_frame.buf = frame->buf; … … 151 161 { 152 162 struct stereo_port *sport = (struct stereo_port*) this_port; 163 const pjmedia_audio_format_detail *s_afd, *dn_afd; 153 164 pjmedia_frame tmp_frame; 154 165 pj_status_t status; … … 160 171 } 161 172 173 s_afd = pjmedia_format_get_audio_format_detail(&this_port->info.fmt, 1); 174 dn_afd = pjmedia_format_get_audio_format_detail(&sport->dn_port->info.fmt, 175 1); 176 162 177 tmp_frame.buf = sport->get_buf? sport->get_buf : frame->buf; 163 tmp_frame.size = sport->dn_port->info.bytes_per_frame;178 tmp_frame.size = PJMEDIA_PIA_AVG_FSZ(&sport->dn_port->info); 164 179 tmp_frame.timestamp.u64 = frame->timestamp.u64; 165 180 tmp_frame.type = PJMEDIA_FRAME_TYPE_AUDIO; … … 178 193 } 179 194 180 if (s port->base.info.channel_count == 1) {195 if (s_afd->channel_count == 1) { 181 196 pjmedia_convert_channel_nto1((pj_int16_t*)frame->buf, 182 197 (const pj_int16_t*)tmp_frame.buf, 183 sport->dn_port->info.channel_count,184 sport->dn_port->info.samples_per_frame,198 dn_afd->channel_count, 199 PJMEDIA_AFD_SPF(s_afd), 185 200 (sport->options & PJMEDIA_STEREO_MIX), 0); 186 201 } else { 187 202 pjmedia_convert_channel_1ton((pj_int16_t*)frame->buf, 188 203 (const pj_int16_t*)tmp_frame.buf, 189 s port->base.info.channel_count,190 sport->dn_port->info.samples_per_frame,204 s_afd->channel_count, 205 PJMEDIA_AFD_SPF(dn_afd), 191 206 sport->options); 192 207 } 193 208 194 frame->size = sport->base.info.bytes_per_frame;209 frame->size = PJMEDIA_AFD_AVG_FSZ(s_afd); 195 210 frame->type = PJMEDIA_FRAME_TYPE_AUDIO; 196 211 -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/stream.c
r3387 r3392 78 78 unsigned out_pkt_size; /**< Size of output buffer. */ 79 79 void *out_pkt; /**< Output buffer. */ 80 unsigned out_pkt_len; /**< Length of data in buffer. */ 80 81 pjmedia_rtp_session rtp; /**< RTP session. */ 81 82 }; … … 178 179 received according to 179 180 'erroneous' definition */ 180 pj_uint32_t rtp_rx_last_ts;/**< Last received RTP timestamp181 for timestamp checking */182 181 unsigned rtp_rx_last_cnt;/**< Nb of frames in last pkt */ 183 182 unsigned rtp_rx_check_cnt; … … 209 208 char *trace_jb_buf; /**< Jitter tracing buffer. */ 210 209 #endif 210 211 pj_uint32_t rtp_rx_last_ts; /**< Last received RTP timestamp*/ 212 213 pjmedia_vid_codec *vcodec; /**< Codec instance being used. */ 214 pjmedia_vid_codec_info vcodec_info; /**< Codec param. */ 215 pjmedia_vid_codec_param vcodec_param; /**< Codec param. */ 216 211 217 }; 212 218 … … 472 478 pj_mutex_lock( stream->jb_mutex ); 473 479 474 samples_required = stream->port.info.samples_per_frame;480 samples_required = PJMEDIA_PIA_SPF(&stream->port.info); 475 481 samples_per_frame = stream->codec_param.info.frm_ptime * 476 482 stream->codec_param.info.clock_rate * … … 726 732 */ 727 733 728 samples_required = stream->port.info.samples_per_frame;734 samples_required = PJMEDIA_PIA_SPF(&stream->port.info); 729 735 samples_per_frame = stream->codec_param.info.frm_ptime * 730 736 stream->codec_param.info.clock_rate * … … 877 883 } 878 884 879 digit->duration += stream->port.info.samples_per_frame;885 digit->duration += PJMEDIA_PIA_SPF(&stream->port.info); 880 886 881 887 event->event = (pj_uint8_t)digit->event; … … 1088 1094 /* How many samples are needed */ 1089 1095 count = stream->codec_param.info.enc_ptime * 1090 stream->port.info.clock_rate/ 1000;1096 PJMEDIA_PIA_SRATE(&stream->port.info) / 1000; 1091 1097 1092 1098 /* See if we have enough samples */ … … 1111 1117 */ 1112 1118 static pj_status_t put_frame_imp( pjmedia_port *port, 1113 constpjmedia_frame *frame )1119 pjmedia_frame *frame ) 1114 1120 { 1115 1121 pjmedia_stream *stream = (pjmedia_stream*) port->port_data.pdata; … … 1152 1158 ts_len = (frame->size >> 1) / stream->codec_param.info.channel_cnt; 1153 1159 else if (frame->type == PJMEDIA_FRAME_TYPE_EXTENDED) 1154 ts_len = stream->port.info.samples_per_frame /1155 stream->port.info.channel_count;1160 ts_len = PJMEDIA_PIA_SPF(&stream->port.info) / 1161 PJMEDIA_PIA_CCNT(&stream->port.info); 1156 1162 else 1157 1163 ts_len = 0; … … 1220 1226 } else if (frame->type == PJMEDIA_FRAME_TYPE_AUDIO && 1221 1227 frame->buf == NULL && 1222 stream->port.info.f ormat.id == PJMEDIA_FORMAT_L16 &&1228 stream->port.info.fmt.id == PJMEDIA_FORMAT_L16 && 1223 1229 (stream->dir & PJMEDIA_DIR_ENCODING) && 1224 1230 stream->codec_param.info.frm_ptime * … … 1363 1369 */ 1364 1370 static pj_status_t put_frame( pjmedia_port *port, 1365 constpjmedia_frame *frame )1371 pjmedia_frame *frame ) 1366 1372 { 1367 1373 pjmedia_stream *stream = (pjmedia_stream*) port->port_data.pdata; … … 1411 1417 if (stream->vad_enabled != stream->codec_param.setting.vad && 1412 1418 (stream->tx_duration - stream->ts_vad_disabled) > 1413 stream->port.info.clock_rate * PJMEDIA_STREAM_VAD_SUSPEND_MSEC / 1000) 1419 PJMEDIA_PIA_SRATE(&stream->port.info) * 1420 PJMEDIA_STREAM_VAD_SUSPEND_MSEC / 1000) 1414 1421 { 1415 1422 stream->codec_param.setting.vad = stream->vad_enabled; … … 1574 1581 unsigned payloadlen; 1575 1582 pjmedia_rtp_status seq_st; 1576 pj_bool_t check_pt;1577 1583 pj_status_t status; 1578 1584 pj_bool_t pkt_discarded = PJ_FALSE; … … 1604 1610 * the incoming packet. 1605 1611 */ 1606 check_pt = (hdr->pt != stream->rx_event_pt) && PJMEDIA_STREAM_CHECK_RTP_PT; 1607 pjmedia_rtp_session_update2(&channel->rtp, hdr, &seq_st, check_pt); 1608 #if !PJMEDIA_STREAM_CHECK_RTP_PT 1609 if (!check_pt && hdr->pt != channel->rtp.out_pt && 1610 hdr->pt != stream->rx_event_pt) 1611 { 1612 seq_st.status.flag.badpt = 1; 1613 } 1614 #endif 1612 pjmedia_rtp_session_update2(&channel->rtp, hdr, &seq_st, 1613 hdr->pt != stream->rx_event_pt); 1615 1614 if (seq_st.status.value) { 1616 1615 TRC_ ((stream->port.info.name.ptr, … … 1673 1672 PJ_LOG(4,(stream->port.info.name.ptr, "Jitter buffer reset")); 1674 1673 1674 } else if (stream->vcodec) { 1675 pj_timestamp ts; 1676 pj_uint8_t *p; 1677 pj_size_t p_len; 1678 1679 /* Video stream */ 1680 1681 ts.u64 = pj_ntohl(hdr->ts); 1682 1683 /* Put any buffered bitstream if timestamp is changed, 1684 * in case of RTP packet lost. 1685 */ 1686 if (stream->rtp_rx_last_ts != ts.u64 && channel->out_pkt_len) 1687 { 1688 int seq; 1689 1690 seq = stream->rtp_rx_last_ts/stream->rtp_rx_ts_len_per_frame; 1691 pjmedia_jbuf_put_frame(stream->jb, channel->out_pkt, 1692 channel->out_pkt_len, seq); 1693 channel->out_pkt_len = 0; 1694 } 1695 1696 p = (pj_uint8_t*)channel->out_pkt + channel->out_pkt_len; 1697 p_len = channel->out_pkt_size - channel->out_pkt_len; 1698 1699 /* Parse the payload. */ 1700 status = (*stream->vcodec->op->unpacketize)( 1701 stream->vcodec, 1702 payload, payloadlen, 1703 p, &p_len); 1704 if (status != PJ_SUCCESS) { 1705 LOGERR_((stream->port.info.name.ptr, 1706 "Codec parse() error", 1707 status)); 1708 channel->out_pkt_len = 0; 1709 } else { 1710 channel->out_pkt_len += p_len; 1711 if (channel->out_pkt_len > channel->out_pkt_size) { 1712 channel->out_pkt_len = channel->out_pkt_size; 1713 PJ_LOG(3, (THIS_FILE, "Video bitstream trucated because of" 1714 "not enough buffer")); 1715 } 1716 1717 /* Check if RTP header specifies end of frame mark */ 1718 PJ_TODO(find_better_way_to_find_out_end_of_frame_mark); 1719 if (hdr->m) { 1720 int seq; 1721 1722 seq = (int)(ts.u64/stream->rtp_rx_ts_len_per_frame); 1723 pjmedia_jbuf_put_frame(stream->jb, channel->out_pkt, 1724 channel->out_pkt_len, seq); 1725 channel->out_pkt_len = 0; 1726 } 1727 } 1728 1729 stream->rtp_rx_last_ts = (pj_uint32_t)ts.u64; 1730 1675 1731 } else { 1676 1732 /* … … 1727 1783 * to avoid wrong decision because of silence frames. 1728 1784 */ 1729 if 1730 (peer_frm_ts_diff==stream->port.info.samples_per_frame1785 if(stream->codec_param.info.pt == PJMEDIA_RTP_PT_G722 && 1786 (peer_frm_ts_diff==PJMEDIA_PIA_SPF(&stream->port.info) 1731 1787 || peer_frm_ts_diff == 1732 stream->port.info.samples_per_frame >>1))1788 PJMEDIA_PIA_SPF(&stream->port.info) >>1)) 1733 1789 { 1734 1790 if (peer_frm_ts_diff < stream->rtp_rx_ts_len_per_frame) … … 1883 1939 /* Allocate buffer for outgoing packet. */ 1884 1940 1885 channel->out_pkt_size = sizeof(pjmedia_rtp_hdr) + 1886 stream->codec_param.info.max_bps * 1887 PJMEDIA_MAX_FRAME_DURATION_MS / 1888 8 / 1000; 1889 1890 if (channel->out_pkt_size > PJMEDIA_MAX_MTU) 1891 channel->out_pkt_size = PJMEDIA_MAX_MTU; 1941 if (param->type == PJMEDIA_TYPE_VIDEO) { 1942 channel->out_pkt_size = sizeof(pjmedia_rtp_hdr) + 1943 stream->frame_size; 1944 } else if (param->type == PJMEDIA_TYPE_AUDIO) { 1945 channel->out_pkt_size = sizeof(pjmedia_rtp_hdr) + 1946 stream->codec_param.info.max_bps * 1947 PJMEDIA_MAX_FRAME_DURATION_MS / 1948 8 / 1000; 1949 if (channel->out_pkt_size > PJMEDIA_MAX_MTU) 1950 channel->out_pkt_size = PJMEDIA_MAX_MTU; 1951 } else { 1952 return PJ_ENOTSUP; 1953 } 1892 1954 1893 1955 /* It should big enough to hold (minimally) RTCP SR with an SDES. */ … … 1927 1989 } 1928 1990 1991 1992 static pj_status_t video_stream_create(pjmedia_endpt *endpt, 1993 pj_pool_t *pool, 1994 const pjmedia_stream_info *info, 1995 pjmedia_transport *tp, 1996 void *user_data, 1997 pjmedia_stream **p_stream); 1929 1998 1930 1999 /* … … 1943 2012 pj_str_t name; 1944 2013 unsigned jb_init, jb_max, jb_min_pre, jb_max_pre, len; 2014 pjmedia_audio_format_detail *afd; 1945 2015 char *p; 1946 2016 pj_status_t status; … … 1948 2018 PJ_ASSERT_RETURN(pool && info && p_stream, PJ_EINVAL); 1949 2019 2020 2021 if (info->type == PJMEDIA_TYPE_VIDEO) { 2022 status = video_stream_create(endpt, pool, info, tp, 2023 user_data, &stream); 2024 if (status != PJ_SUCCESS) 2025 goto err_cleanup; 2026 2027 *p_stream = stream; 2028 return PJ_SUCCESS; 2029 } 1950 2030 1951 2031 /* Allocate the media stream: */ … … 1965 2045 info->fmt.clock_rate, info->fmt.channel_cnt, 1966 2046 16, 80); 2047 afd = pjmedia_format_get_audio_format_detail(&stream->port.info.fmt, 1); 1967 2048 1968 2049 /* Init port. */ 1969 2050 1970 pj_strdup(pool, &stream->port.info.encoding_name, &info->fmt.encoding_name); 1971 stream->port.info.clock_rate = info->fmt.clock_rate; 1972 stream->port.info.channel_count = info->fmt.channel_cnt; 2051 //No longer there in 2.0 2052 //pj_strdup(pool, &stream->port.info.encoding_name, &info->fmt.encoding_name); 2053 afd->clock_rate = info->fmt.clock_rate; 2054 afd->channel_count = info->fmt.channel_cnt; 1973 2055 stream->port.port_data.pdata = stream; 1974 2056 … … 2041 2123 2042 2124 /* Set additional info and callbacks. */ 2043 stream->port.info.bits_per_sample = 16; 2044 stream->port.info.samples_per_frame = info->fmt.clock_rate * 2045 stream->codec_param.info.channel_cnt * 2046 stream->codec_param.info.frm_ptime * 2047 stream->codec_param.setting.frm_per_pkt / 2048 1000; 2049 stream->port.info.format.id = stream->codec_param.info.fmt_id; 2125 afd->bits_per_sample = 16; 2126 afd->frame_time_usec = stream->codec_param.info.frm_ptime * 2127 stream->codec_param.setting.frm_per_pkt * 1000; 2128 stream->port.info.fmt.id = stream->codec_param.info.fmt_id; 2050 2129 if (stream->codec_param.info.fmt_id == PJMEDIA_FORMAT_L16) { 2051 2130 /* Raw format */ 2052 stream->port.info.bytes_per_frame = stream->port.info.samples_per_frame * 2053 stream->port.info.bits_per_sample / 8; 2131 afd->avg_bps = afd->max_bps = afd->clock_rate * 2132 afd->bits_per_sample / 8; 2133 2054 2134 2055 2135 stream->port.put_frame = &put_frame; … … 2057 2137 } else { 2058 2138 /* Encoded format */ 2059 stream->port.info.bytes_per_frame = stream->codec_param.info.max_bps * 2060 stream->codec_param.info.frm_ptime * 2061 stream->codec_param.setting.frm_per_pkt / 2062 8 / 1000; 2063 if ((stream->codec_param.info.max_bps * stream->codec_param.info.frm_ptime * 2064 stream->codec_param.setting.frm_per_pkt) % 8000 != 0) 2139 afd->avg_bps = stream->codec_param.info.avg_bps; 2140 afd->max_bps = stream->codec_param.info.max_bps; 2141 2142 /* Not applicable for 2.0 2143 if ((stream->codec_param.info.max_bps * 2144 stream->codec_param.info.frm_ptime * 2145 stream->codec_param.setting.frm_per_pkt) % 8000 != 0) 2065 2146 { 2066 2147 ++stream->port.info.bytes_per_frame; … … 2068 2149 stream->port.info.format.bitrate = stream->codec_param.info.avg_bps; 2069 2150 stream->port.info.format.vad = (stream->codec_param.setting.vad != 0); 2151 */ 2070 2152 2071 2153 stream->port.put_frame = &put_frame; … … 2084 2166 stream->enc_samples_per_pkt = stream->codec_param.info.enc_ptime * 2085 2167 stream->codec_param.info.channel_cnt * 2086 stream->port.info.clock_rate / 1000;2168 afd->clock_rate / 1000; 2087 2169 2088 2170 /* Set buffer size as twice the largest ptime value between … … 2090 2172 */ 2091 2173 2092 ptime = stream->port.info.samples_per_frame * 1000 / 2093 stream->port.info.clock_rate; 2174 ptime = afd->frame_time_usec / 1000; 2094 2175 2095 2176 if (stream->codec_param.info.enc_ptime > ptime) … … 2102 2183 2103 2184 /* Allocate buffer */ 2104 stream->enc_buf_size = stream->port.info.clock_rate * ptime / 1000;2185 stream->enc_buf_size = afd->clock_rate * ptime / 1000; 2105 2186 stream->enc_buf = (pj_int16_t*) 2106 2187 pj_pool_alloc(pool, stream->enc_buf_size * 2); 2107 2188 2108 2189 } else { 2109 stream->enc_samples_per_pkt = stream->port.info.samples_per_frame;2190 stream->enc_samples_per_pkt = PJMEDIA_AFD_SPF(afd); 2110 2191 } 2111 2192 … … 2140 2221 stream->rtp_tx_ts_len_per_pkt = stream->enc_samples_per_pkt / 2141 2222 stream->codec_param.info.channel_cnt; 2142 stream->rtp_rx_ts_len_per_frame = stream->port.info.samples_per_frame /2223 stream->rtp_rx_ts_len_per_frame = PJMEDIA_AFD_SPF(afd) / 2143 2224 stream->codec_param.info.channel_cnt; 2144 2225 … … 2213 2294 rtcp_setting.rtp_ts_base = pj_ntohl(stream->enc->rtp.out_hdr.ts); 2214 2295 rtcp_setting.clock_rate = info->fmt.clock_rate; 2215 rtcp_setting.samples_per_frame = stream->port.info.samples_per_frame;2296 rtcp_setting.samples_per_frame = PJMEDIA_AFD_SPF(afd); 2216 2297 2217 2298 #if defined(PJMEDIA_HANDLE_G722_MPEG_BUG) && (PJMEDIA_HANDLE_G722_MPEG_BUG!=0) … … 2422 2503 pjmedia_codec_mgr_dealloc_codec(stream->codec_mgr, stream->codec); 2423 2504 stream->codec = NULL; 2505 } 2506 2507 if (stream->vcodec) { 2508 stream->vcodec->op->close(stream->vcodec); 2509 pjmedia_vid_codec_mgr_dealloc_codec(NULL, stream->vcodec); 2510 stream->vcodec = NULL; 2424 2511 } 2425 2512 … … 2739 2826 } 2740 2827 2828 static pj_status_t put_vid_frame(pjmedia_port *port, 2829 pjmedia_frame *frame) 2830 { 2831 pjmedia_stream *stream = (pjmedia_stream*) port->port_data.pdata; 2832 pjmedia_channel *channel = stream->enc; 2833 pj_status_t status = 0; 2834 pjmedia_frame frame_out; 2835 unsigned rtp_ts_len; 2836 void *rtphdr; 2837 int rtphdrlen; 2838 unsigned processed = 0; 2839 2840 2841 #if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA != 0 2842 /* If the interval since last sending packet is greater than 2843 * PJMEDIA_STREAM_KA_INTERVAL, send keep-alive packet. 2844 */ 2845 if (stream->use_ka) 2846 { 2847 pj_uint32_t dtx_duration; 2848 2849 dtx_duration = pj_timestamp_diff32(&stream->last_frm_ts_sent, 2850 &frame->timestamp); 2851 if (dtx_duration > 2852 PJMEDIA_STREAM_KA_INTERVAL * stream->port.info.clock_rate) 2853 { 2854 send_keep_alive_packet(stream); 2855 stream->last_frm_ts_sent = frame->timestamp; 2856 } 2857 } 2858 #endif 2859 2860 /* Don't do anything if stream is paused */ 2861 if (channel->paused) { 2862 stream->enc_buf_pos = stream->enc_buf_count = 0; 2863 return PJ_SUCCESS; 2864 } 2865 2866 /* Increment transmit duration */ 2867 rtp_ts_len = stream->rtp_tx_ts_len_per_pkt; 2868 stream->tx_duration += rtp_ts_len; 2869 2870 /* Init frame_out buffer. */ 2871 frame_out.buf = ((char*)channel->out_pkt) + sizeof(pjmedia_rtp_hdr); 2872 frame_out.size = 0; 2873 2874 /* Encode! */ 2875 status = (*stream->vcodec->op->encode)(stream->vcodec, frame, 2876 channel->out_pkt_size - 2877 sizeof(pjmedia_rtp_hdr), 2878 &frame_out); 2879 if (status != PJ_SUCCESS) { 2880 LOGERR_((stream->port.info.name.ptr, 2881 "Codec encode() error", status)); 2882 return status; 2883 } 2884 2885 2886 while (processed < frame_out.size) { 2887 pj_uint8_t *payload, *rtp_pkt; 2888 pj_size_t payload_len; 2889 2890 /* Generate RTP payload */ 2891 status = (*stream->vcodec->op->packetize)( 2892 stream->vcodec, 2893 (pj_uint8_t*)frame_out.buf, 2894 frame_out.size, 2895 &processed, 2896 &payload, &payload_len); 2897 if (status != PJ_SUCCESS) { 2898 LOGERR_((stream->port.info.name.ptr, 2899 "Codec pack() error", status)); 2900 return status; 2901 } 2902 2903 /* Encapsulate. */ 2904 status = pjmedia_rtp_encode_rtp( &channel->rtp, 2905 channel->pt, 2906 (processed==frame_out.size?1:0), 2907 payload_len, 2908 rtp_ts_len, 2909 (const void**)&rtphdr, 2910 &rtphdrlen); 2911 2912 if (status != PJ_SUCCESS) { 2913 LOGERR_((stream->port.info.name.ptr, 2914 "RTP encode_rtp() error", status)); 2915 return status; 2916 } 2917 2918 /* Next packets use same timestamp */ 2919 rtp_ts_len = 0; 2920 2921 rtp_pkt = payload - sizeof(pjmedia_rtp_hdr); 2922 2923 /* Copy RTP header to the beginning of packet */ 2924 pj_memcpy(rtp_pkt, rtphdr, sizeof(pjmedia_rtp_hdr)); 2925 2926 /* Send the RTP packet to the transport. */ 2927 pjmedia_transport_send_rtp(stream->transport, rtp_pkt, 2928 payload_len + sizeof(pjmedia_rtp_hdr)); 2929 } 2930 2931 /* Check if now is the time to transmit RTCP SR/RR report. 2932 * We only do this when stream direction is not "decoding only", because 2933 * when it is, check_tx_rtcp() will be handled by get_frame(). 2934 */ 2935 if (stream->dir != PJMEDIA_DIR_DECODING) { 2936 check_tx_rtcp(stream, pj_ntohl(channel->rtp.out_hdr.ts)); 2937 } 2938 2939 /* Do nothing if we have nothing to transmit */ 2940 if (frame_out.size == 0) { 2941 if (stream->is_streaming) { 2942 PJ_LOG(5,(stream->port.info.name.ptr,"Starting silence")); 2943 stream->is_streaming = PJ_FALSE; 2944 } 2945 2946 return PJ_SUCCESS; 2947 } 2948 2949 2950 /* Set RTP marker bit if currently not streaming */ 2951 if (stream->is_streaming == PJ_FALSE) { 2952 // RTP header M in video packet is usually for end of frame flag. 2953 //pjmedia_rtp_hdr *rtp = (pjmedia_rtp_hdr*) channel->out_pkt; 2954 //rtp->m = 1; 2955 PJ_LOG(5,(stream->port.info.name.ptr,"Start talksprut..")); 2956 } 2957 2958 stream->is_streaming = PJ_TRUE; 2959 2960 /* Update stat */ 2961 pjmedia_rtcp_tx_rtp(&stream->rtcp, frame_out.size); 2962 stream->rtcp.stat.rtp_tx_last_ts = pj_ntohl(stream->enc->rtp.out_hdr.ts); 2963 stream->rtcp.stat.rtp_tx_last_seq = pj_ntohs(stream->enc->rtp.out_hdr.seq); 2964 2965 #if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA!=0 2966 /* Update timestamp of last sending packet. */ 2967 stream->last_frm_ts_sent = frame->timestamp; 2968 #endif 2969 2970 return PJ_SUCCESS; 2971 } 2972 2973 static pj_status_t get_vid_frame(pjmedia_port *port, 2974 pjmedia_frame *frame) 2975 { 2976 pjmedia_stream *stream = (pjmedia_stream*) port->port_data.pdata; 2977 pjmedia_channel *channel = stream->dec; 2978 pj_uint8_t *p_out_samp; 2979 pj_status_t status; 2980 2981 2982 /* Return no frame is channel is paused */ 2983 if (channel->paused) { 2984 frame->type = PJMEDIA_FRAME_TYPE_NONE; 2985 return PJ_SUCCESS; 2986 } 2987 2988 /* Repeat get frame from the jitter buffer and decode the frame 2989 * until we have enough frames according to codec's ptime. 2990 */ 2991 2992 /* Lock jitter buffer mutex first */ 2993 pj_mutex_lock( stream->jb_mutex ); 2994 2995 p_out_samp = (pj_uint8_t*) frame->buf; 2996 { 2997 char frame_type; 2998 pj_size_t frame_size; 2999 pj_uint32_t bit_info; 3000 3001 /* Get frame from jitter buffer. */ 3002 pjmedia_jbuf_get_frame2(stream->jb, channel->out_pkt, &frame_size, 3003 &frame_type, &bit_info); 3004 3005 #if TRACE_JB 3006 trace_jb_get(stream, frame_type, frame_size); 3007 #endif 3008 3009 if (frame_type != PJMEDIA_JB_NORMAL_FRAME) { 3010 const char *with_plc = ""; 3011 3012 /* Activate PLC */ 3013 if (stream->vcodec->op->recover && 3014 //stream->codec_param.setting.plc && 3015 stream->plc_cnt < stream->max_plc_cnt) 3016 { 3017 status = (*stream->codec->op->recover)(stream->codec, 3018 frame->size, 3019 frame); 3020 3021 ++stream->plc_cnt; 3022 with_plc = ", plc invoked"; 3023 } else { 3024 status = -1; 3025 } 3026 3027 if (status != PJ_SUCCESS) { 3028 /* Either PLC failed or PLC not supported/enabled */ 3029 //pjmedia_zero_samples(p_out_samp + samples_count, 3030 // samples_required - samples_count); 3031 frame->size = 0; 3032 } 3033 3034 if (frame_type != stream->jb_last_frm) { 3035 if (frame_type == PJMEDIA_JB_MISSING_FRAME) { 3036 pjmedia_jb_state jb_state; 3037 3038 /* Report changing frame type event */ 3039 pjmedia_jbuf_get_state(stream->jb, &jb_state); 3040 PJ_LOG(5,(stream->port.info.name.ptr, 3041 "Jitter buffer empty (prefetch=%d)%s", 3042 jb_state.prefetch, with_plc)); 3043 } else { 3044 /* Report changing frame type event */ 3045 PJ_LOG(5,(stream->port.info.name.ptr, "Frame lost%s!", 3046 (status == PJ_SUCCESS? ", recovered":""))); 3047 } 3048 3049 stream->jb_last_frm = frame_type; 3050 stream->jb_last_frm_cnt = 1; 3051 } else { 3052 stream->jb_last_frm_cnt++; 3053 } 3054 3055 } else { 3056 /* Got "NORMAL" frame from jitter buffer */ 3057 pjmedia_frame frame_in, frame_out; 3058 3059 stream->plc_cnt = 0; 3060 3061 /* Decode */ 3062 frame_in.buf = channel->out_pkt; 3063 frame_in.size = frame_size; 3064 frame_in.bit_info = bit_info; 3065 frame_in.type = PJMEDIA_FRAME_TYPE_VIDEO; /* ignored */ 3066 3067 frame_out.buf = p_out_samp; 3068 frame_out.size = frame->size; 3069 status = stream->vcodec->op->decode(stream->vcodec, &frame_in, 3070 frame_out.size, &frame_out); 3071 if (status != 0) { 3072 LOGERR_((port->info.name.ptr, "codec decode() error", 3073 status)); 3074 3075 //pjmedia_zero_samples(p_out_samp + samples_count, 3076 // samples_per_frame); 3077 frame_out.size = 0; 3078 } 3079 3080 if (stream->jb_last_frm != frame_type) { 3081 /* Report changing frame type event */ 3082 PJ_LOG(5,(stream->port.info.name.ptr, 3083 "Jitter buffer starts returning normal frames " 3084 "(after %d empty/lost)", 3085 stream->jb_last_frm_cnt, stream->jb_last_frm)); 3086 3087 stream->jb_last_frm = frame_type; 3088 stream->jb_last_frm_cnt = 1; 3089 } else { 3090 stream->jb_last_frm_cnt++; 3091 } 3092 3093 frame->size = frame_out.size; 3094 } 3095 } 3096 3097 3098 /* Unlock jitter buffer mutex. */ 3099 pj_mutex_unlock( stream->jb_mutex ); 3100 3101 return PJ_SUCCESS; 3102 } 3103 3104 static pj_status_t video_stream_create(pjmedia_endpt *endpt, 3105 pj_pool_t *pool, 3106 const pjmedia_stream_info *info, 3107 pjmedia_transport *tp, 3108 void *user_data, 3109 pjmedia_stream **p_stream) 3110 { 3111 enum { M = 32 }; 3112 pjmedia_stream *stream; 3113 pj_str_t name; 3114 unsigned jb_init, jb_max, jb_min_pre, jb_max_pre, len; 3115 pjmedia_video_format_detail *vfd_enc; 3116 char *p; 3117 pj_status_t status; 3118 3119 stream = PJ_POOL_ZALLOC_T(pool, pjmedia_stream); 3120 PJ_ASSERT_RETURN(stream != NULL, PJ_ENOMEM); 3121 PJ_ASSERT_RETURN(pjmedia_vid_codec_mgr_instance(), PJMEDIA_CODEC_EFAILED); 3122 3123 /* Init stream/port name */ 3124 name.ptr = (char*) pj_pool_alloc(pool, M); 3125 name.slen = pj_ansi_snprintf(name.ptr, M, "vstrm%p", stream); 3126 3127 /* Create and initialize codec: */ 3128 stream->vcodec_info = info->vid_codec_info; 3129 status = pjmedia_vid_codec_mgr_alloc_codec(NULL, &info->vid_codec_info, 3130 &stream->vcodec); 3131 if (status != PJ_SUCCESS) 3132 return status; 3133 3134 3135 /* Get codec param: */ 3136 if (info->vid_codec_param) 3137 stream->vcodec_param = *info->vid_codec_param; 3138 else { 3139 status = pjmedia_vid_codec_mgr_get_default_param(NULL, 3140 &info->vid_codec_info, 3141 &stream->vcodec_param); 3142 if (status != PJ_SUCCESS) 3143 return status; 3144 } 3145 3146 vfd_enc = pjmedia_format_get_video_format_detail( 3147 &stream->vcodec_param.enc_fmt, 1); 3148 3149 /* Init stream: */ 3150 stream->endpt = endpt; 3151 stream->dir = info->dir; 3152 stream->user_data = user_data; 3153 stream->rtcp_interval = (PJMEDIA_RTCP_INTERVAL-500 + (pj_rand()%1000)) * 3154 info->vid_codec_info.clock_rate / 1000; 3155 3156 stream->jb_last_frm = PJMEDIA_JB_NORMAL_FRAME; 3157 stream->tx_event_pt = -1; 3158 stream->rx_event_pt = -1; 3159 3160 #if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA!=0 3161 stream->use_ka = info->use_ka; 3162 #endif 3163 3164 /* Build random RTCP CNAME. CNAME has user@host format */ 3165 stream->cname.ptr = p = (char*) pj_pool_alloc(pool, 20); 3166 pj_create_random_string(p, 5); 3167 p += 5; 3168 *p++ = '@'; *p++ = 'p'; *p++ = 'j'; 3169 pj_create_random_string(p, 6); 3170 p += 6; 3171 *p++ = '.'; *p++ = 'o'; *p++ = 'r'; *p++ = 'g'; 3172 stream->cname.slen = p - stream->cname.ptr; 3173 3174 3175 /* Create mutex to protect jitter buffer: */ 3176 3177 status = pj_mutex_create_simple(pool, NULL, &stream->jb_mutex); 3178 if (status != PJ_SUCCESS) 3179 return status; 3180 3181 /* Check for invalid max_bps. */ 3182 // if (stream->codec_param.info.max_bps < stream->codec_param.info.avg_bps) 3183 //stream->codec_param.info.max_bps = stream->codec_param.info.avg_bps; 3184 3185 /* Check for invalid frame per packet. */ 3186 // if (stream->codec_param.setting.frm_per_pkt < 1) 3187 //stream->codec_param.setting.frm_per_pkt = 1; 3188 3189 /* Open the codec. */ 3190 stream->vcodec_param.dir = info->dir; 3191 stream->vcodec_param.enc_mtu = PJMEDIA_MAX_MTU - 40; 3192 status = stream->vcodec->op->init(stream->vcodec, pool); 3193 if (status != PJ_SUCCESS) 3194 return status; 3195 status = stream->vcodec->op->open(stream->vcodec, &stream->vcodec_param); 3196 if (status != PJ_SUCCESS) 3197 return status; 3198 3199 /* Set additional info and callbacks. */ 3200 stream->port.put_frame = &put_vid_frame; 3201 stream->port.get_frame = &get_vid_frame; 3202 3203 /* Get the frame size */ 3204 //stream->frame_size = vfd_enc->max_bps * 3205 // vfd_enc->fps.denum / vfd_enc->fps.num; 3206 stream->frame_size = 128000; 3207 3208 /* How many consecutive PLC frames can be generated */ 3209 stream->max_plc_cnt = MAX_PLC_MSEC * 3210 vfd_enc->fps.num / vfd_enc->fps.denum / 1000; 3211 3212 stream->rtp_rx_check_cnt = 5; 3213 stream->rtp_rx_last_ts = 0; 3214 stream->rtp_rx_last_cnt = 0; 3215 stream->rtp_tx_ts_len_per_pkt = 3216 info->vid_codec_info.clock_rate * 3217 vfd_enc->fps.denum / vfd_enc->fps.num; 3218 stream->rtp_rx_ts_len_per_frame = stream->rtp_tx_ts_len_per_pkt; 3219 3220 /* Init jitter buffer parameters: */ 3221 jb_max = info->jb_max * 3222 vfd_enc->fps.num / vfd_enc->fps.denum / 1000; 3223 jb_min_pre = info->jb_min_pre * 3224 vfd_enc->fps.num / vfd_enc->fps.denum / 1000; 3225 jb_max_pre = info->jb_max_pre * 3226 vfd_enc->fps.num / vfd_enc->fps.denum / 1000; 3227 jb_init = info->jb_init * 3228 vfd_enc->fps.num / vfd_enc->fps.denum / 1000; 3229 3230 /* When JB max frame count==0, set to 0.5s */ 3231 if (jb_max == 0) 3232 jb_max = (vfd_enc->fps.num + vfd_enc->fps.denum/2) / 3233 vfd_enc->fps.denum / 2; 3234 3235 /* When JB max prefetch==0, set to (4/5 * jb_max) */ 3236 if (jb_max_pre == 0) 3237 jb_max_pre = jb_max * 4 / 5; 3238 3239 /* Create jitter buffer */ 3240 status = pjmedia_jbuf_create(pool, &stream->port.info.name, 3241 stream->frame_size, 3242 1000 * vfd_enc->fps.denum / vfd_enc->fps.num, 3243 jb_max, &stream->jb); 3244 if (status != PJ_SUCCESS) 3245 return status; 3246 3247 3248 /* Set up jitter buffer */ 3249 pjmedia_jbuf_set_adaptive( stream->jb, jb_init, jb_min_pre, jb_max_pre); 3250 3251 /* Create decoder channel: */ 3252 3253 status = create_channel( pool, stream, PJMEDIA_DIR_DECODING, 3254 stream->vcodec_param.pt, info, &stream->dec); 3255 if (status != PJ_SUCCESS) 3256 return status; 3257 3258 3259 /* Create encoder channel: */ 3260 3261 status = create_channel( pool, stream, PJMEDIA_DIR_ENCODING, 3262 info->tx_pt, info, &stream->enc); 3263 if (status != PJ_SUCCESS) 3264 return status; 3265 3266 3267 /* Init RTCP session: */ 3268 3269 { 3270 pjmedia_rtcp_session_setting rtcp_setting; 3271 3272 pjmedia_rtcp_session_setting_default(&rtcp_setting); 3273 rtcp_setting.name = stream->port.info.name.ptr; 3274 rtcp_setting.ssrc = info->ssrc; 3275 rtcp_setting.rtp_ts_base = pj_ntohl(stream->enc->rtp.out_hdr.ts); 3276 rtcp_setting.clock_rate = info->vid_codec_info.clock_rate; 3277 rtcp_setting.samples_per_frame = stream->rtp_tx_ts_len_per_pkt; 3278 3279 pjmedia_rtcp_init2(&stream->rtcp, &rtcp_setting); 3280 } 3281 3282 /* Only attach transport when stream is ready. */ 3283 status = pjmedia_transport_attach(tp, stream, &info->rem_addr, 3284 &info->rem_rtcp, 3285 pj_sockaddr_get_len(&info->rem_addr), 3286 &on_rx_rtp, &on_rx_rtcp); 3287 if (status != PJ_SUCCESS) 3288 return status; 3289 3290 stream->transport = tp; 3291 3292 /* Send RTCP SDES */ 3293 len = create_rtcp_sdes(stream, (pj_uint8_t*)stream->enc->out_pkt, 3294 stream->enc->out_pkt_size); 3295 if (len != 0) { 3296 pjmedia_transport_send_rtcp(stream->transport, 3297 stream->enc->out_pkt, len); 3298 } 3299 3300 #if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA!=0 3301 /* NAT hole punching by sending KA packet via RTP transport. */ 3302 if (stream->use_ka) 3303 send_keep_alive_packet(stream); 3304 #endif 3305 3306 #if TRACE_JB 3307 { 3308 char trace_name[PJ_MAXPATH]; 3309 pj_ssize_t len; 3310 3311 pj_ansi_snprintf(trace_name, sizeof(trace_name), 3312 TRACE_JB_PATH_PREFIX "%s.csv", 3313 stream->port.info.name.ptr); 3314 status = pj_file_open(pool, trace_name, PJ_O_RDWR, &stream->trace_jb_fd); 3315 if (status != PJ_SUCCESS) { 3316 stream->trace_jb_fd = TRACE_JB_INVALID_FD; 3317 PJ_LOG(3,(THIS_FILE, "Failed creating RTP trace file '%s'", 3318 trace_name)); 3319 } else { 3320 stream->trace_jb_buf = (char*)pj_pool_alloc(pool, PJ_LOG_MAX_SIZE); 3321 3322 /* Print column header */ 3323 len = pj_ansi_snprintf(stream->trace_jb_buf, PJ_LOG_MAX_SIZE, 3324 "Time, Operation, Size, Frame Count, " 3325 "Frame type, RTP Seq, RTP TS, RTP M, " 3326 "JB size, JB burst level, JB prefetch\n"); 3327 pj_file_write(stream->trace_jb_fd, stream->trace_jb_buf, &len); 3328 pj_file_flush(stream->trace_jb_fd); 3329 } 3330 } 3331 #endif 3332 3333 /* Init some port-info. Some parts of the info will be set later 3334 * once we have more info about the codec. 3335 */ 3336 pjmedia_port_info_init2(&stream->port.info, &name, 3337 PJMEDIA_PORT_SIGNATURE('S', 'T', 'R', 'M'), 3338 info->dir, &stream->vcodec_param.dec_fmt); 3339 3340 /* Init port. */ 3341 stream->port.port_data.pdata = stream; 3342 3343 /* Success! */ 3344 *p_stream = stream; 3345 3346 PJ_LOG(5,(THIS_FILE, "Stream %s created", stream->port.info.name.ptr)); 3347 3348 return PJ_SUCCESS; 3349 } -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/tonegen.c
r2724 r3392 559 559 struct tonegen *tonegen = (struct tonegen*) port; 560 560 short *dst, *end; 561 unsigned clock_rate = tonegen->base.info.clock_rate;561 unsigned clock_rate = PJMEDIA_PIA_SRATE(&tonegen->base.info); 562 562 563 563 PJ_ASSERT_RETURN(port->info.signature == SIGNATURE, PJ_EINVAL); … … 623 623 624 624 dst = (short*) frame->buf; 625 end = dst + port->info.samples_per_frame;625 end = dst + PJMEDIA_PIA_SPF(&port->info); 626 626 627 627 while (dst < end) { … … 637 637 (tonegen->count!=1 || !(dig->flags & PJMEDIA_TONE_INITIALIZED))) 638 638 { 639 init_generate_tone(&tonegen->state, port->info.clock_rate, 639 init_generate_tone(&tonegen->state, 640 PJMEDIA_PIA_SRATE(&port->info), 640 641 dig->freq1, dig->freq2, dig->volume); 641 642 dig->flags |= PJMEDIA_TONE_INITIALIZED; … … 652 653 if (cnt > required) 653 654 cnt = required; 654 generate_tone(&tonegen->state, port->info.channel_count, 655 generate_tone(&tonegen->state, 656 PJMEDIA_PIA_CCNT(&port->info), 655 657 cnt, dst); 656 658 … … 730 732 731 733 frame->type = PJMEDIA_FRAME_TYPE_AUDIO; 732 frame->size = port->info.bytes_per_frame;734 frame->size = PJMEDIA_PIA_AVG_FSZ(&port->info); 733 735 734 736 TRACE_((THIS_FILE, "tonegen_get_frame(): frame created, level=%u", -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/wav_player.c
r2394 r3392 169 169 pj_ssize_t size_to_read, size_read; 170 170 struct file_reader_port *fport; 171 pjmedia_audio_format_detail *ad; 171 172 pj_off_t pos; 173 pj_str_t name; 174 unsigned samples_per_frame; 172 175 pj_status_t status = PJ_SUCCESS; 173 176 … … 332 335 333 336 /* Update port info. */ 334 fport->base.info.channel_count = wave_hdr.fmt_hdr.nchan; 335 fport->base.info.clock_rate = wave_hdr.fmt_hdr.sample_rate; 336 fport->base.info.bits_per_sample = BITS_PER_SAMPLE; 337 fport->base.info.samples_per_frame = fport->base.info.clock_rate * 338 wave_hdr.fmt_hdr.nchan * 339 ptime / 1000; 340 fport->base.info.bytes_per_frame = 341 fport->base.info.samples_per_frame * 342 fport->base.info.bits_per_sample / 8; 343 344 pj_strdup2(pool, &fport->base.info.name, filename); 337 ad = pjmedia_format_get_audio_format_detail(&fport->base.info.fmt, 1); 338 pj_strdup2(pool, &name, filename); 339 samples_per_frame = ptime * wave_hdr.fmt_hdr.sample_rate * 340 wave_hdr.fmt_hdr.nchan / 1000; 341 pjmedia_port_info_init(&fport->base.info, &name, SIGNATURE, 342 wave_hdr.fmt_hdr.sample_rate, 343 wave_hdr.fmt_hdr.nchan, 344 BITS_PER_SAMPLE, 345 samples_per_frame); 345 346 346 347 /* If file is shorter than buffer size, adjust buffer size to file … … 359 360 * doesn't handle this case). 360 361 */ 361 if (fport->base.info.samples_per_frame * fport->bytes_per_sample >= 362 fport->bufsize) 363 { 362 if (samples_per_frame * fport->bytes_per_sample >= fport->bufsize) { 364 363 pj_file_close(fport->fd); 365 364 return PJ_EINVAL; … … 395 394 (int)fport->base.info.name.slen, 396 395 fport->base.info.name.ptr, 397 fport->base.info.clock_rate,398 fport->base.info.channel_count,396 ad->clock_rate, 397 ad->channel_count, 399 398 fport->bufsize / 1000, 400 399 (unsigned long)(fport->fsize / 1000))); -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/wav_playlist.c
r2394 r3392 237 237 { 238 238 struct playlist_port *fport; 239 pjmedia_audio_format_detail *afd; 239 240 pj_off_t pos; 240 241 pj_status_t status; … … 280 281 return PJ_ENOMEM; 281 282 } 283 284 afd = pjmedia_format_get_audio_format_detail(&fport->base.info.fmt, 1); 282 285 283 286 /* start with the first file. */ … … 467 470 */ 468 471 if (!has_wave_info) { 469 fport->base.info.channel_count = wavehdr.fmt_hdr.nchan; 470 fport->base.info.clock_rate = wavehdr.fmt_hdr.sample_rate; 471 fport->base.info.bits_per_sample = wavehdr.fmt_hdr.bits_per_sample; 472 fport->base.info.samples_per_frame = fport->base.info.clock_rate * 473 wavehdr.fmt_hdr.nchan * 474 ptime / 1000; 475 fport->base.info.bytes_per_frame = 476 fport->base.info.samples_per_frame * 477 fport->base.info.bits_per_sample / 8; 472 afd->channel_count = wavehdr.fmt_hdr.nchan; 473 afd->clock_rate = wavehdr.fmt_hdr.sample_rate; 474 afd->bits_per_sample = wavehdr.fmt_hdr.bits_per_sample; 475 afd->frame_time_usec = ptime * 1000; 476 afd->avg_bps = afd->max_bps = afd->clock_rate * 477 afd->channel_count * 478 afd->bits_per_sample / 8; 478 479 479 480 has_wave_info = PJ_TRUE; … … 484 485 * files. 485 486 */ 486 if (wavehdr.fmt_hdr.nchan != fport->base.info.channel_count ||487 wavehdr.fmt_hdr.sample_rate != fport->base.info.clock_rate ||488 wavehdr.fmt_hdr.bits_per_sample != fport->base.info.bits_per_sample)487 if (wavehdr.fmt_hdr.nchan != afd->channel_count || 488 wavehdr.fmt_hdr.sample_rate != afd->clock_rate || 489 wavehdr.fmt_hdr.bits_per_sample != afd->bits_per_sample) 489 490 { 490 491 /* This file has different characteristics than the other … … 520 521 (int)port_label->slen, 521 522 port_label->ptr, 522 fport->base.info.clock_rate,523 fport->base.info.channel_count,523 afd->clock_rate, 524 afd->channel_count, 524 525 fport->bufsize / 1000)); 525 526 -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/wav_writer.c
r2394 r3392 52 52 53 53 static pj_status_t file_put_frame(pjmedia_port *this_port, 54 constpjmedia_frame *frame);54 pjmedia_frame *frame); 55 55 static pj_status_t file_get_frame(pjmedia_port *this_port, 56 56 pjmedia_frame *frame); … … 199 199 200 200 /* Check that buffer size is greater than bytes per frame */ 201 pj_assert(fport->bufsize >= fport->base.info.bytes_per_frame);201 pj_assert(fport->bufsize >= PJMEDIA_PIA_AVG_FSZ(&fport->base.info)); 202 202 203 203 … … 217 217 (int)fport->base.info.name.slen, 218 218 fport->base.info.name.ptr, 219 fport->base.info.clock_rate,219 PJMEDIA_PIA_SRATE(&fport->base.info), 220 220 fport->bufsize / 1000)); 221 221 … … 309 309 */ 310 310 static pj_status_t file_put_frame(pjmedia_port *this_port, 311 constpjmedia_frame *frame)311 pjmedia_frame *frame) 312 312 { 313 313 struct file_port *fport = (struct file_port *)this_port; -
pjproject/branches/projects/2.0-dev/pjmedia/src/test/mips_test.c
r2978 r3392 685 685 686 686 static pj_status_t codec_put_frame(struct pjmedia_port *this_port, 687 constpjmedia_frame *frame)687 pjmedia_frame *frame) 688 688 { 689 689 struct codec_port *cp = (struct codec_port*)this_port; … … 1132 1132 1133 1133 while (pjmedia_circ_buf_get_len(wp->circbuf) < 1134 wp->base.info.samples_per_frame* (CIRC_BUF_FRAME_CNT-1))1134 PJMEDIA_PIA_SPF(&wp->base.info) * (CIRC_BUF_FRAME_CNT-1)) 1135 1135 { 1136 1136 status = pjmedia_port_get_frame(wp->gen_port, frame); … … 1138 1138 1139 1139 status = pjmedia_circ_buf_write(wp->circbuf, (short*)frame->buf, 1140 wp->base.info.samples_per_frame);1140 PJMEDIA_PIA_SPF(&wp->base.info)); 1141 1141 pj_assert(status==PJ_SUCCESS); 1142 1142 } … … 1150 1150 ®2, ®2_len); 1151 1151 1152 del_cnt = wp->base.info.samples_per_frame;1152 del_cnt = PJMEDIA_PIA_SPF(&wp->base.info); 1153 1153 status = pjmedia_wsola_discard(wp->wsola, reg1, reg1_len, reg2, 1154 1154 reg2_len, &del_cnt); … … 2011 2011 2012 2012 static pj_status_t delaybuf_put_frame(struct pjmedia_port *this_port, 2013 constpjmedia_frame *frame)2013 pjmedia_frame *frame) 2014 2014 { 2015 2015 struct delaybuf_port *dp = (struct delaybuf_port*)this_port; … … 2220 2220 2221 2221 /* Port may decide to use different ptime (e.g. iLBC) */ 2222 samples_per_frame = port->info.samples_per_frame;2222 samples_per_frame = PJMEDIA_PIA_SPF(&port->info); 2223 2223 2224 2224 gen_port = create_gen_port(pool, clock_rate, 1, -
pjproject/branches/projects/2.0-dev/pjmedia/src/test/test.c
r2882 r3392 57 57 mem = &caching_pool.factory; 58 58 59 #if HAS_VID_DEV_TEST 60 DO_TEST(vid_dev_test()); 61 #endif 62 63 #if HAS_VID_CODEC_TEST 64 DO_TEST(vid_codec_test()); 65 #endif 66 59 67 #if HAS_SDP_NEG_TEST 60 68 DO_TEST(sdp_neg_test()); -
pjproject/branches/projects/2.0-dev/pjmedia/src/test/test.h
r2882 r3392 24 24 #include <pjlib.h> 25 25 26 #define HAS_VID_DEV_TEST 1 27 #define HAS_VID_CODEC_TEST 1 26 28 #define HAS_SDP_NEG_TEST 1 27 29 #define HAS_JBUF_TEST 1 … … 36 38 int mips_test(void); 37 39 int codec_test_vectors(void); 40 int vid_codec_test(void); 41 int vid_dev_test(void); 38 42 39 43 extern pj_pool_factory *mem; -
pjproject/branches/projects/2.0-dev/pjsip-apps/build/Samples-vc.mak
r3141 r3392 85 85 $(BINDIR)\streamutil.exe \ 86 86 $(BINDIR)\strerror.exe \ 87 $(BINDIR)\tonegen.exe 87 $(BINDIR)\tonegen.exe \ 88 $(BINDIR)\vstreamutil.exe 88 89 89 90 -
pjproject/branches/projects/2.0-dev/pjsip-apps/build/Samples.mak
r3141 r3392 39 39 streamutil \ 40 40 strerror \ 41 tonegen 41 tonegen \ 42 vstreamutil 42 43 43 44 EXES := $(foreach file, $(SAMPLES), $(BINDIR)/$(file)$(HOST_EXE)) -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/pjsystest/systest.c
r3306 r3392 651 651 pjmedia_frame frm; 652 652 short *buf; 653 unsigned i, samples_per_frame, read, len;653 unsigned i, clock_rate, samples_per_frame, read, len; 654 654 unsigned start_pos; 655 655 pj_bool_t first; … … 661 661 *lat_max = 0; 662 662 663 samples_per_frame = wav->info.samples_per_frame; 663 samples_per_frame = PJMEDIA_PIA_SPF(&wav->info); 664 clock_rate = PJMEDIA_PIA_SRATE(&wav->info); 664 665 frm.buf = pj_pool_alloc(pool, samples_per_frame * 2); 665 666 frm.size = samples_per_frame * 2; … … 678 679 } 679 680 680 if (read < 2 * wav->info.clock_rate) {681 if (read < 2 * clock_rate) { 681 682 systest_perror("The WAV file is too short", PJ_SUCCESS); 682 683 return -1; … … 686 687 * (keypad press, etc.) 687 688 */ 688 pjmedia_zero_samples(buf, wav->info.clock_rate / 2);689 pjmedia_zero_samples(buf, clock_rate / 2); 689 690 690 691 /* Loop to calculate latency */ 691 692 start_pos = 0; 692 693 first = PJ_TRUE; 693 while (start_pos < len/2 - wav->info.clock_rate) {694 while (start_pos < len/2 - clock_rate) { 694 695 int max_signal = 0; 695 696 unsigned max_signal_pos = start_pos; … … 699 700 700 701 /* Get the largest signal in the next 0.7s */ 701 for (i=start_pos; i<start_pos + wav->info.clock_rate * 700 / 1000; ++i) {702 for (i=start_pos; i<start_pos + clock_rate * 700 / 1000; ++i) { 702 703 if (abs(buf[i]) > max_signal) { 703 704 max_signal = abs(buf[i]); … … 707 708 708 709 /* Advance 10ms from max_signal_pos */ 709 pos = max_signal_pos + 10 * wav->info.clock_rate / 1000;710 pos = max_signal_pos + 10 * clock_rate / 1000; 710 711 711 712 /* Get the largest signal in the next 800ms */ 712 713 max_signal = 0; 713 714 max_echo_pos = pos; 714 for (i=pos; i<pos+ wav->info.clock_rate * 8 / 10; ++i) {715 for (i=pos; i<pos+clock_rate * 8 / 10; ++i) { 715 716 if (abs(buf[i]) > max_signal) { 716 717 max_signal = abs(buf[i]); … … 719 720 } 720 721 721 lat = (max_echo_pos - max_signal_pos) * 1000 / wav->info.clock_rate;722 lat = (max_echo_pos - max_signal_pos) * 1000 / clock_rate; 722 723 723 724 #if 0 724 725 PJ_LOG(4,(THIS_FILE, "Signal at %dms, echo at %d ms, latency %d ms", 725 max_signal_pos * 1000 / wav->info.clock_rate,726 max_echo_pos * 1000 / wav->info.clock_rate,726 max_signal_pos * 1000 / clock_rate, 727 max_echo_pos * 1000 / clock_rate, 727 728 lat)); 728 729 #endif … … 737 738 /* Advance next loop */ 738 739 if (first) { 739 start_pos = max_signal_pos + wav->info.clock_rate * 9 / 10;740 start_pos = max_signal_pos + clock_rate * 9 / 10; 740 741 first = PJ_FALSE; 741 742 } else { 742 start_pos += wav->info.clock_rate;743 start_pos += clock_rate; 743 744 } 744 745 } -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/aectest.c
r3249 r3392 198 198 199 199 /* play and rec WAVs must have the same clock rate */ 200 if ( wav_play->info.clock_rate != wav_rec->info.clock_rate) {200 if (PJMEDIA_PIA_SRATE(&wav_play->info) != PJMEDIA_PIA_SRATE(&wav_rec->info)) { 201 201 puts("Error: clock rate mismatch in the WAV files"); 202 202 return 1; … … 204 204 205 205 /* .. and channel count */ 206 if ( wav_play->info.channel_count != wav_rec->info.channel_count) {206 if (PJMEDIA_PIA_CCNT(&wav_play->info) != PJMEDIA_PIA_CCNT(&wav_rec->info)) { 207 207 puts("Error: clock rate mismatch in the WAV files"); 208 208 return 1; … … 211 211 /* Create output wav */ 212 212 status = pjmedia_wav_writer_port_create(pool, argv[pj_optind+2], 213 wav_play->info.clock_rate,214 wav_play->info.channel_count,215 wav_play->info.samples_per_frame,216 wav_play->info.bits_per_sample,213 PJMEDIA_PIA_SRATE(&wav_play->info), 214 PJMEDIA_PIA_CCNT(&wav_play->info), 215 PJMEDIA_PIA_SPF(&wav_play->info), 216 PJMEDIA_PIA_BITS(&wav_play->info), 217 217 0, 0, &wav_out); 218 218 if (status != PJ_SUCCESS) { … … 222 222 223 223 /* Create echo canceller */ 224 status = pjmedia_echo_create2(pool, wav_play->info.clock_rate,225 wav_play->info.channel_count,226 wav_play->info.samples_per_frame,224 status = pjmedia_echo_create2(pool, PJMEDIA_PIA_SRATE(&wav_play->info), 225 PJMEDIA_PIA_CCNT(&wav_play->info), 226 PJMEDIA_PIA_SPF(&wav_play->info), 227 227 tail_ms, latency_ms, 228 228 opt, &ec); … … 234 234 235 235 /* Processing loop */ 236 play_frame.buf = pj_pool_alloc(pool, wav_play->info.samples_per_frame<<1);237 rec_frame.buf = pj_pool_alloc(pool, wav_play->info.samples_per_frame<<1);236 play_frame.buf = pj_pool_alloc(pool, PJMEDIA_PIA_SPF(&wav_play->info)<<1); 237 rec_frame.buf = pj_pool_alloc(pool, PJMEDIA_PIA_SPF(&wav_play->info)<<1); 238 238 pj_get_timestamp(&t0); 239 239 for (i=0; i < repeat; ++i) { 240 240 for (;;) { 241 play_frame.size = wav_play->info.samples_per_frame<< 1;241 play_frame.size = PJMEDIA_PIA_SPF(&wav_play->info) << 1; 242 242 status = pjmedia_port_get_frame(wav_play, &play_frame); 243 243 if (status != PJ_SUCCESS) … … 246 246 status = pjmedia_echo_playback(ec, (short*)play_frame.buf); 247 247 248 rec_frame.size = wav_play->info.samples_per_frame<< 1;248 rec_frame.size = PJMEDIA_PIA_SPF(&wav_play->info) << 1; 249 249 status = pjmedia_port_get_frame(wav_rec, &rec_frame); 250 250 if (status != PJ_SUCCESS) … … 265 265 266 266 i = pjmedia_wav_writer_port_get_pos(wav_out) / sizeof(pj_int16_t) * 1000 / 267 (wav_out->info.clock_rate * wav_out->info.channel_count);267 (PJMEDIA_PIA_SRATE(&wav_out->info) * PJMEDIA_PIA_CCNT(&wav_out->info)); 268 268 PJ_LOG(3,(THIS_FILE, "Processed %3d.%03ds audio", 269 269 i / 1000, i % 1000)); -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/auddemo.c
r2558 r3392 145 145 break; 146 146 } 147 sprintf(bitrate, "%u", info.ext_fmt[i]. bitrate);147 sprintf(bitrate, "%u", info.ext_fmt[i].det.aud.avg_bps); 148 148 strcat(formats, bitrate); 149 149 strcat(formats, " "); … … 277 277 278 278 param.dir = PJMEDIA_DIR_CAPTURE; 279 param.clock_rate = wav->info.clock_rate;280 param.samples_per_frame = wav->info.samples_per_frame;281 param.channel_count = wav->info.channel_count;282 param.bits_per_sample = wav->info.bits_per_sample;279 param.clock_rate = PJMEDIA_PIA_SRATE(&wav->info); 280 param.samples_per_frame = PJMEDIA_PIA_SPF(&wav->info); 281 param.channel_count = PJMEDIA_PIA_CCNT(&wav->info); 282 param.bits_per_sample = PJMEDIA_PIA_BITS(&wav->info); 283 283 284 284 status = pjmedia_aud_stream_create(¶m, &wav_rec_cb, NULL, wav, … … 344 344 345 345 param.dir = PJMEDIA_DIR_PLAYBACK; 346 param.clock_rate = wav->info.clock_rate;347 param.samples_per_frame = wav->info.samples_per_frame;348 param.channel_count = wav->info.channel_count;349 param.bits_per_sample = wav->info.bits_per_sample;346 param.clock_rate = PJMEDIA_PIA_SRATE(&wav->info); 347 param.samples_per_frame = PJMEDIA_PIA_SPF(&wav->info); 348 param.channel_count = PJMEDIA_PIA_CCNT(&wav->info); 349 param.bits_per_sample = PJMEDIA_PIA_BITS(&wav->info); 350 350 351 351 status = pjmedia_aud_stream_create(¶m, NULL, &wav_play_cb, wav, -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/jbsim.c
r2938 r3392 531 531 532 532 /* Make sure stream and WAV parameters match */ 533 if ( g_app.tx_wav->info.clock_rate != g_app.tx->port->info.clock_rate||534 g_app.tx_wav->info.channel_count != g_app.tx->port->info.channel_count)533 if (PJMEDIA_PIA_SRATE(&g_app.tx_wav->info) != PJMEDIA_PIA_SRATE(&g_app.tx->port->info) || 534 PJMEDIA_PIA_CCNT(&g_app.tx_wav->info) != PJMEDIA_PIA_CCNT(&g_app.tx->port->info)) 535 535 { 536 536 jbsim_perror("Error: Input WAV file has different clock rate " … … 555 555 status = pjmedia_wav_writer_port_create(g_app.pool, 556 556 g_app.cfg.rx_wav_out, 557 g_app.rx->port->info.clock_rate,558 g_app.rx->port->info.channel_count,559 g_app.rx->port->info.samples_per_frame,560 g_app.rx->port->info.bits_per_sample,557 PJMEDIA_PIA_SRATE(&g_app.rx->port->info), 558 PJMEDIA_PIA_CCNT(&g_app.rx->port->info), 559 PJMEDIA_PIA_SPF(&g_app.rx->port->info), 560 PJMEDIA_PIA_BITS(&g_app.rx->port->info), 561 561 0, 562 562 0, … … 571 571 g_app.framebuf = (pj_int16_t*) 572 572 pj_pool_alloc(g_app.pool, 573 MAX( g_app.rx->port->info.samples_per_frame,574 g_app.tx->port->info.samples_per_frame) * sizeof(pj_int16_t));573 MAX(PJMEDIA_PIA_SPF(&g_app.rx->port->info), 574 PJMEDIA_PIA_SPF(&g_app.tx->port->info)) * sizeof(pj_int16_t)); 575 575 576 576 … … 595 595 frame.type = PJMEDIA_FRAME_TYPE_AUDIO; 596 596 frame.buf = g_app.framebuf; 597 frame.size = dst->info.samples_per_frame* 2;597 frame.size = PJMEDIA_PIA_SPF(&dst->info) * 2; 598 598 599 599 status = pjmedia_port_get_frame(src, &frame); … … 602 602 if (status!= PJ_SUCCESS || frame.type != PJMEDIA_FRAME_TYPE_AUDIO) { 603 603 frame.buf = g_app.framebuf; 604 pjmedia_zero_samples(g_app.framebuf, src->info.samples_per_frame);605 frame.size = src->info.samples_per_frame* 2;604 pjmedia_zero_samples(g_app.framebuf, PJMEDIA_PIA_SPF(&src->info)); 605 frame.size = PJMEDIA_PIA_SPF(&src->info) * 2; 606 606 if (has_frame) 607 607 *has_frame = PJ_FALSE; … … 629 629 630 630 /* packet interval, without jitter */ 631 pkt_interval = port->info.samples_per_frame* 1000 /632 port->info.clock_rate;631 pkt_interval = PJMEDIA_PIA_SPF(&port->info) * 1000 / 632 PJMEDIA_PIA_SRATE(&port->info); 633 633 634 634 while (PJ_TIME_VAL_GTE(*t, strm->state.tx.next_schedule)) { … … 778 778 long pkt_interval; 779 779 780 pkt_interval = port->info.samples_per_frame* 1000 /781 port->info.clock_rate*780 pkt_interval = PJMEDIA_PIA_SPF(&port->info) * 1000 / 781 PJMEDIA_PIA_SRATE(&port->info) * 782 782 g_app.cfg.rx_snd_burst; 783 783 -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/latency.c
r2394 r3392 61 61 lat_max = 0; 62 62 63 samples_per_frame = wav->info.samples_per_frame;63 samples_per_frame = PJMEDIA_PIA_SPF(&wav->info); 64 64 frm.buf = pj_pool_alloc(pool, samples_per_frame * 2); 65 65 frm.size = samples_per_frame * 2; … … 77 77 } 78 78 79 if (read < 2 * wav->info.clock_rate) {79 if (read < 2 * PJMEDIA_PIA_SRATE(&wav->info)) { 80 80 puts("Error: too short"); 81 81 return -1; … … 83 83 84 84 start_pos = 0; 85 while (start_pos < len/2 - wav->info.clock_rate) {85 while (start_pos < len/2 - PJMEDIA_PIA_SRATE(&wav->info)) { 86 86 int max_signal = 0; 87 87 unsigned max_signal_pos = start_pos; … … 91 91 92 92 /* Get the largest signal in the next 0.7s */ 93 for (i=start_pos; i<start_pos + wav->info.clock_rate* 700 / 1000; ++i) {93 for (i=start_pos; i<start_pos + PJMEDIA_PIA_SRATE(&wav->info) * 700 / 1000; ++i) { 94 94 if (abs(buf[i]) > max_signal) { 95 95 max_signal = abs(buf[i]); … … 99 99 100 100 /* Advance 10ms from max_signal_pos */ 101 pos = max_signal_pos + 10 * wav->info.clock_rate/ 1000;101 pos = max_signal_pos + 10 * PJMEDIA_PIA_SRATE(&wav->info) / 1000; 102 102 103 103 /* Get the largest signal in the next 500ms */ 104 104 max_signal = 0; 105 105 max_echo_pos = pos; 106 for (i=pos; i<pos+ wav->info.clock_rate/2; ++i) {106 for (i=pos; i<pos+PJMEDIA_PIA_SRATE(&wav->info)/2; ++i) { 107 107 if (abs(buf[i]) > max_signal) { 108 108 max_signal = abs(buf[i]); … … 111 111 } 112 112 113 lat = (max_echo_pos - max_signal_pos) * 1000 / wav->info.clock_rate;113 lat = (max_echo_pos - max_signal_pos) * 1000 / PJMEDIA_PIA_SRATE(&wav->info); 114 114 115 115 #if 0 … … 125 125 126 126 /* Advance next loop */ 127 start_pos += wav->info.clock_rate;127 start_pos += PJMEDIA_PIA_SRATE(&wav->info); 128 128 } 129 129 -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/level.c
r2394 r3392 125 125 } 126 126 127 if ( file_port->info.samples_per_frame> NSAMPLES) {127 if (PJMEDIA_PIA_SPF(&file_port->info) > NSAMPLES) { 128 128 app_perror(THIS_FILE, "WAV clock rate is too big", PJ_EINVAL); 129 129 return 1; … … 146 146 147 147 level32 = pjmedia_calc_avg_signal(framebuf, 148 file_port->info.samples_per_frame);148 PJMEDIA_PIA_SPF(&file_port->info)); 149 149 level = pjmedia_linear2ulaw(level32) ^ 0xFF; 150 150 151 ms = i * 1000 * file_port->info.samples_per_frame/152 file_port->info.clock_rate;151 ms = i * 1000 * PJMEDIA_PIA_SPF(&file_port->info) / 152 PJMEDIA_PIA_SRATE(&file_port->info); 153 153 printf("%03d.%03d\t%7d\t%7d\n", 154 154 ms/1000, ms%1000, level, level32); -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/mix.c
r2408 r3392 182 182 len = pjmedia_wav_player_get_len(wav_input[i].port); 183 183 len = (pj_ssize_t)(len * 1.0 * clock_rate / 184 wav_input[i].port->info.clock_rate);184 PJMEDIA_PIA_SRATE(&wav_input[i].port->info)); 185 185 if (len > (pj_ssize_t)longest) 186 186 longest = len; … … 200 200 201 201 frame.buf = framebuf; 202 frame.size = cp->info.samples_per_frame* 2;202 frame.size = PJMEDIA_PIA_SPF(&cp->info) * 2; 203 203 pj_assert(frame.size <= sizeof(framebuf)); 204 204 -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/pcaputil.c
r2394 r3392 88 88 if (pos >= 0) { 89 89 unsigned msec; 90 msec = pos / 2 * 1000 / app.wav->info.clock_rate;90 msec = pos / 2 * 1000 / PJMEDIA_PIA_SRATE(&app.wav->info); 91 91 printf("Written: %dm:%02ds.%03d\n", 92 92 msec / 1000 / 60, -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/playfile.c
r2408 r3392 140 140 pool, /* pool */ 141 141 -1, /* use default dev. */ 142 file_port->info.clock_rate,/* clock rate. */143 file_port->info.channel_count,/* # of channels. */144 file_port->info.samples_per_frame, /* samples per frame. */145 file_port->info.bits_per_sample,/* bits per sample. */142 PJMEDIA_PIA_SRATE(&file_port->info),/* clock rate. */ 143 PJMEDIA_PIA_CCNT(&file_port->info),/* # of channels. */ 144 PJMEDIA_PIA_SPF(&file_port->info), /* samples per frame. */ 145 PJMEDIA_PIA_BITS(&file_port->info),/* bits per sample. */ 146 146 0, /* options */ 147 147 &snd_port /* returned port */ -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/playsine.c
r2408 r3392 87 87 88 88 /* Get number of samples */ 89 count = frame->size / 2 / port->info.channel_count;89 count = frame->size / 2 / PJMEDIA_PIA_CCNT(&port->info); 90 90 91 91 left = 0; … … 96 96 ++left; 97 97 98 if ( port->info.channel_count== 2) {98 if (PJMEDIA_PIA_CCNT(&port->info) == 2) { 99 99 *samples++ = sine->samples[right]; 100 100 right += 2; /* higher pitch so we can distinguish left and right. */ … … 127 127 unsigned i; 128 128 unsigned count; 129 pj_str_t name; 129 130 port_data *sine; 130 131 … … 136 137 137 138 /* Fill in port info. */ 138 port->info.bits_per_sample = 16; 139 port->info.channel_count = channel_count; 140 port->info.encoding_name = pj_str("pcm"); 141 port->info.has_info = 1; 142 port->info.name = pj_str("sine generator"); 143 port->info.need_info = 0; 144 port->info.pt = 0xFF; 145 port->info.clock_rate = sampling_rate; 146 port->info.samples_per_frame = sampling_rate * 20 / 1000 * channel_count; 147 port->info.bytes_per_frame = port->info.samples_per_frame * 2; 148 port->info.type = PJMEDIA_TYPE_AUDIO; 139 name = pj_str("sine generator"); 140 pjmedia_port_info_init(&port->info, &name, 141 PJMEDIA_PORT_SIGNATURE('s', 'i', 'n', 'e'), 142 sampling_rate, 143 channel_count, 144 16, sampling_rate * 20 / 1000 * channel_count); 149 145 150 146 /* Set the function to feed frame */ … … 155 151 156 152 /* Create samples */ 157 count = port->info.samples_per_frame/ channel_count;153 count = PJMEDIA_PIA_SPF(&port->info) / channel_count; 158 154 sine->samples = pj_pool_alloc(pool, count * sizeof(pj_int16_t)); 159 155 PJ_ASSERT_RETURN(sine->samples != NULL, PJ_ENOMEM); … … 245 241 pool, /* pool */ 246 242 -1, /* use default dev. */ 247 sine_port->info.clock_rate,/* clock rate. */248 sine_port->info.channel_count,/* # of channels. */249 sine_port->info.samples_per_frame, /* samples per frame. */250 sine_port->info.bits_per_sample,/* bits per sample. */243 PJMEDIA_PIA_SRATE(&sine_port->info),/* clock rate. */ 244 PJMEDIA_PIA_CCNT(&sine_port->info),/* # of channels. */ 245 PJMEDIA_PIA_SPF(&sine_port->info), /* samples per frame. */ 246 PJMEDIA_PIA_BITS(&sine_port->info),/* bits per sample. */ 251 247 0, /* options */ 252 248 &snd_port /* returned port */ -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/recfile.c
r2408 r3392 135 135 pool, /* pool */ 136 136 -1, /* use default dev. */ 137 file_port->info.clock_rate,/* clock rate. */138 file_port->info.channel_count,/* # of channels. */139 file_port->info.samples_per_frame, /* samples per frame. */140 file_port->info.bits_per_sample,/* bits per sample. */137 PJMEDIA_PIA_SRATE(&file_port->info),/* clock rate. */ 138 PJMEDIA_PIA_CCNT(&file_port->info),/* # of channels. */ 139 PJMEDIA_PIA_SPF(&file_port->info), /* samples per frame. */ 140 PJMEDIA_PIA_BITS(&file_port->info),/* bits per sample. */ 141 141 0, /* options */ 142 142 &snd_port /* returned port */ -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/resampleplay.c
r2408 r3392 130 130 131 131 /* File must have same number of channels. */ 132 if ( file_port->info.channel_count!= (unsigned)channel_count) {132 if (PJMEDIA_PIA_CCNT(&file_port->info) != (unsigned)channel_count) { 133 133 PJ_LOG(3,(THIS_FILE, "Error: file has different number of channels. " 134 134 "Perhaps you'd need -c option?")); … … 187 187 188 188 printf("Playing %s at sampling rate %d (original file sampling rate=%d)\n", 189 argv[pj_optind], sampling_rate, file_port->info.clock_rate); 189 argv[pj_optind], sampling_rate, 190 PJMEDIA_PIA_SRATE(&file_port->info)); 190 191 puts(""); 191 192 puts("Press <ENTER> to stop playing and quit"); -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/simpleua.c
r2423 r3392 707 707 inv->pool, /* pool */ 708 708 -1, /* sound dev id */ 709 media_port->info.clock_rate,/* clock rate */710 media_port->info.channel_count,/* channel count */711 media_port->info.samples_per_frame, /* samples per frame*/712 media_port->info.bits_per_sample,/* bits per sample */709 PJMEDIA_PIA_SRATE(&media_port->info),/* clock rate */ 710 PJMEDIA_PIA_CCNT(&media_port->info),/* channel count */ 711 PJMEDIA_PIA_SPF(&media_port->info), /* samples per frame*/ 712 PJMEDIA_PIA_BITS(&media_port->info),/* bits per sample */ 713 713 0, /* options */ 714 714 &g_snd_player); … … 716 716 app_perror( THIS_FILE, "Unable to create sound player", status); 717 717 PJ_LOG(3,(THIS_FILE, "%d %d %d %d", 718 media_port->info.clock_rate,/* clock rate */719 media_port->info.channel_count,/* channel count */720 media_port->info.samples_per_frame, /* samples per frame*/721 media_port->info.bits_per_sample/* bits per sample */718 PJMEDIA_PIA_SRATE(&media_port->info),/* clock rate */ 719 PJMEDIA_PIA_CCNT(&media_port->info),/* channel count */ 720 PJMEDIA_PIA_SPF(&media_port->info), /* samples per frame*/ 721 PJMEDIA_PIA_BITS(&media_port->info) /* bits per sample */ 722 722 )); 723 723 return; … … 733 733 inv->pool, /* pool */ 734 734 -1, /* sound dev id */ 735 media_port->info.clock_rate,/* clock rate */736 media_port->info.channel_count,/* channel count */737 media_port->info.samples_per_frame, /* samples per frame*/738 media_port->info.bits_per_sample,/* bits per sample */735 PJMEDIA_PIA_SRATE(&media_port->info),/* clock rate */ 736 PJMEDIA_PIA_CCNT(&media_port->info),/* channel count */ 737 PJMEDIA_PIA_SPF(&media_port->info), /* samples per frame*/ 738 PJMEDIA_PIA_BITS(&media_port->info),/* bits per sample */ 739 739 0, /* options */ 740 740 &g_snd_rec); -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/stereotest.c
r2408 r3392 190 190 pool, /* pool */ 191 191 dev_id, /* device id. */ 192 file_port->info.clock_rate,/* clock rate. */192 PJMEDIA_PIA_SRATE(&file_port->info),/* clock rate. */ 193 193 snd_ch_cnt, /* # of channels. */ 194 194 snd_ch_cnt * PTIME * /* samples per frame. */ 195 file_port->info.clock_rate/ 1000,196 file_port->info.bits_per_sample,/* bits per sample. */195 PJMEDIA_PIA_SRATE(&file_port->info) / 1000, 196 PJMEDIA_PIA_BITS(&file_port->info),/* bits per sample. */ 197 197 0, /* options */ 198 198 &snd_port /* returned port */ … … 203 203 } 204 204 205 if (snd_ch_cnt != file_port->info.channel_count) {205 if (snd_ch_cnt != PJMEDIA_PIA_CCNT(&file_port->info)) { 206 206 status = pjmedia_stereo_port_create( pool, 207 207 file_port, … … 290 290 291 291 printf("Mode = %s\n", (mode == MODE_PLAY? "playing" : "recording") ); 292 printf("File port channel count = %d\n", file_port->info.channel_count);292 printf("File port channel count = %d\n", PJMEDIA_PIA_CCNT(&file_port->info)); 293 293 printf("Sound port channel count = %d\n", 294 pjmedia_snd_port_get_port(snd_port)->info.channel_count);294 PJMEDIA_PIA_CCNT(&pjmedia_snd_port_get_port(snd_port)->info)); 295 295 puts(""); 296 296 puts("Press <ENTER> to stop and quit"); -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/streamutil.c
r3292 r3392 506 506 unsigned wav_ptime; 507 507 508 wav_ptime = stream_port->info.samples_per_frame * 1000 / 509 stream_port->info.clock_rate; 508 wav_ptime = PJMEDIA_PIA_PTIME(&stream_port->info); 510 509 status = pjmedia_wav_player_port_create(pool, play_file, wav_ptime, 511 510 0, -1, &play_file_port); … … 533 532 534 533 status = pjmedia_wav_writer_port_create(pool, rec_file, 535 stream_port->info.clock_rate,536 stream_port->info.channel_count,537 stream_port->info.samples_per_frame,538 stream_port->info.bits_per_sample,534 PJMEDIA_PIA_SRATE(&stream_port->info), 535 PJMEDIA_PIA_CCNT(&stream_port->info), 536 PJMEDIA_PIA_SPF(&stream_port->info), 537 PJMEDIA_PIA_BITS(&stream_port->info), 539 538 0, 0, &rec_file_port); 540 539 if (status != PJ_SUCCESS) { … … 563 562 if (dir == PJMEDIA_DIR_ENCODING_DECODING) 564 563 status = pjmedia_snd_port_create(pool, -1, -1, 565 stream_port->info.clock_rate,566 stream_port->info.channel_count,567 stream_port->info.samples_per_frame,568 stream_port->info.bits_per_sample,564 PJMEDIA_PIA_SRATE(&stream_port->info), 565 PJMEDIA_PIA_CCNT(&stream_port->info), 566 PJMEDIA_PIA_SPF(&stream_port->info), 567 PJMEDIA_PIA_BITS(&stream_port->info), 569 568 0, &snd_port); 570 569 else if (dir == PJMEDIA_DIR_ENCODING) 571 570 status = pjmedia_snd_port_create_rec(pool, -1, 572 stream_port->info.clock_rate,573 stream_port->info.channel_count,574 stream_port->info.samples_per_frame,575 stream_port->info.bits_per_sample,571 PJMEDIA_PIA_SRATE(&stream_port->info), 572 PJMEDIA_PIA_CCNT(&stream_port->info), 573 PJMEDIA_PIA_SPF(&stream_port->info), 574 PJMEDIA_PIA_BITS(&stream_port->info), 576 575 0, &snd_port); 577 576 else 578 577 status = pjmedia_snd_port_create_player(pool, -1, 579 stream_port->info.clock_rate,580 stream_port->info.channel_count,581 stream_port->info.samples_per_frame,582 stream_port->info.bits_per_sample,578 PJMEDIA_PIA_SRATE(&stream_port->info), 579 PJMEDIA_PIA_CCNT(&stream_port->info), 580 PJMEDIA_PIA_SPF(&stream_port->info), 581 PJMEDIA_PIA_BITS(&stream_port->info), 583 582 0, &snd_port); 584 583 … … 758 757 759 758 760 printf(" Info: audio %.*s@%dHz, %dms/frame, %sB/s (%sB/s +IP hdr)\n", 761 (int)port->info.encoding_name.slen, 762 port->info.encoding_name.ptr, 763 port->info.clock_rate, 764 port->info.samples_per_frame * 1000 / port->info.clock_rate, 759 printf(" Info: audio %dHz, %dms/frame, %sB/s (%sB/s +IP hdr)\n", 760 PJMEDIA_PIA_SRATE(&port->info), 761 PJMEDIA_PIA_PTIME(&port->info), 765 762 good_number(bps, (codec_param->info.avg_bps+7)/8), 766 763 good_number(ipbps, ((codec_param->info.avg_bps+7)/8) + -
pjproject/branches/projects/2.0-dev/pjsip/src/pjsip-ua/sip_100rel.c
r2394 r3392 29 29 #include <pj/pool.h> 30 30 #include <pj/rand.h> 31 #include <pj/string.h> 31 32 32 33 #define THIS_FILE "sip_100rel.c" -
pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_media.c
r3383 r3392 1969 1969 { 1970 1970 need_reopen = (peer_info.format.id != port0_info.format.id || 1971 peer_info.format.bitrate != port0_info.format.bitrate || 1971 peer_info.format.det.aud.avg_bps != 1972 port0_info.format.det.aud.avg_bps || 1972 1973 peer_info.clock_rate != port0_info.clock_rate || 1973 peer_info.channel_count !=port0_info.channel_count);1974 peer_info.channel_count!=port0_info.channel_count); 1974 1975 } 1975 1976 … … 1986 1987 peer_info.bits_per_sample); 1987 1988 if (status != PJ_SUCCESS) { 1988 pjsua_perror(THIS_FILE, "Error opening sound device", status); 1989 pjsua_perror(THIS_FILE, "Error opening sound device", 1990 status); 1989 1991 return status; 1990 1992 } … … 1998 2000 status = open_snd_dev(¶m); 1999 2001 if (status != PJ_SUCCESS) { 2000 pjsua_perror(THIS_FILE, "Error opening sound device", status); 2002 pjsua_perror(THIS_FILE, "Error opening sound device", 2003 status); 2001 2004 return status; 2002 2005 } 2003 2006 } else { 2004 2007 /* Null-audio */ 2005 status = pjsua_set_snd_dev(pjsua_var.cap_dev, pjsua_var.play_dev); 2008 status = pjsua_set_snd_dev(pjsua_var.cap_dev, 2009 pjsua_var.play_dev); 2006 2010 if (status != PJ_SUCCESS) { 2007 pjsua_perror(THIS_FILE, "Error opening sound device", status); 2011 pjsua_perror(THIS_FILE, "Error opening sound device", 2012 status); 2008 2013 return status; 2009 2014 } … … 2142 2147 pool, path, 2143 2148 pjsua_var.mconf_cfg.samples_per_frame * 2144 1000 / pjsua_var.media_cfg.channel_count / 2149 1000 / pjsua_var.media_cfg.channel_count / 2145 2150 pjsua_var.media_cfg.clock_rate, 2146 2151 options, 0, &port); … … 2706 2711 if (!pjsua_var.is_mswitch && 2707 2712 param->ext_fmt.id == PJMEDIA_FORMAT_PCM && 2708 conf_port->info.clock_rate!= param->clock_rate)2713 PJMEDIA_PIA_SRATE(&conf_port->info) != param->clock_rate) 2709 2714 { 2710 2715 pjmedia_port *resample_port; … … 2742 2747 */ 2743 2748 if (pjsua_var.is_mswitch) { 2744 pj_memcpy(&conf_port->info.format, ¶m->ext_fmt, 2745 sizeof(conf_port->info.format)); 2746 conf_port->info.clock_rate = param->clock_rate; 2747 conf_port->info.samples_per_frame = param->samples_per_frame; 2748 conf_port->info.channel_count = param->channel_count; 2749 conf_port->info.bits_per_sample = 16; 2750 } 2749 pj_memcpy(&conf_port->info.fmt, ¶m->ext_fmt, 2750 sizeof(conf_port->info.fmt)); 2751 conf_port->info.fmt.det.aud.clock_rate = param->clock_rate; 2752 conf_port->info.fmt.det.aud.frame_time_usec = param->samples_per_frame* 2753 1000000 / 2754 param->clock_rate; 2755 conf_port->info.fmt.det.aud.channel_count = param->channel_count; 2756 conf_port->info.fmt.det.aud.bits_per_sample = 16; 2757 } 2758 2751 2759 2752 2760 /* Connect sound port to the bridge */ -
pjproject/branches/projects/2.0-dev/tests/pjsua/scripts-sendto/400_fmtp_g7221_with_bitrate.py
r2236 r3392 1 # $Id 1 # $Id$ 2 2 import inc_sip as sip 3 3 import inc_sdp as sdp -
pjproject/branches/projects/2.0-dev/tests/pjsua/scripts-sendto/401_fmtp_g7221_with_bitrate_24000.py
r2236 r3392 1 # $Id 1 # $Id$ 2 2 import inc_sip as sip 3 3 import inc_sdp as sdp -
pjproject/branches/projects/2.0-dev/tests/pjsua/scripts-sendto/401_fmtp_g7221_with_bitrate_32000.py
r2236 r3392 1 # $Id 1 # $Id$ 2 2 import inc_sip as sip 3 3 import inc_sdp as sdp -
pjproject/branches/projects/2.0-dev/tests/pjsua/scripts-sendto/410_fmtp_amrnb_offer_octet_align.py
r2364 r3392 1 # $Id 1 # $Id$ 2 2 import inc_sip as sip 3 3 import inc_sdp as sdp -
pjproject/branches/projects/2.0-dev/tests/pjsua/scripts-sendto/411_fmtp_amrnb_offer_band_eff.py
r2364 r3392 1 # $Id 1 # $Id$ 2 2 import inc_sip as sip 3 3 import inc_sdp as sdp -
pjproject/branches/projects/2.0-dev/tests/pjsua/scripts-sendto/412_fmtp_amrnb_offer_band_eff2.py
r2364 r3392 1 # $Id 1 # $Id$ 2 2 import inc_sip as sip 3 3 import inc_sdp as sdp -
pjproject/branches/projects/2.0-dev/version.mak
r3390 r3392 1 export PJ_VERSION := 1.8.10-trunk1 export PJ_VERSION := 2.0-dev
Note: See TracChangeset
for help on using the changeset viewer.