Debian Codegraph @

Xpjproject/aconfigure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for pjproject 2.x.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else case e in #(
189 e) as_have_required=no ;;
190 esac
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else case e in #(
196 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else case e in #(
230 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi ;;
235 esac
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed 'exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi ;;
277 esac
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
321 {
322
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 printf "%s\n" X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\).*/{
353 s//\1/
354 q
355 }
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
362
363 } # as_fn_mkdir_p
364
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
369 {
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
379 then :
380 eval 'as_fn_append ()
381 {
382 eval $1+=\$2
383 }'
384 else case e in #(
385 e) as_fn_append ()
386 {
387 eval $1=\$$1\$2
388 } ;;
389 esac
390 fi # as_fn_append
391
392 # as_fn_arith ARG...
393 # ------------------
394 # Perform arithmetic evaluation on the ARGs, and store the result in the
395 # global $as_val. Take advantage of shells that can avoid forks. The arguments
396 # must be portable across $(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
398 then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else case e in #(
404 e) as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 } ;;
408 esac
409 fi # as_fn_arith
410
411
412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
413 # ----------------------------------------
414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
416 # script with STATUS, using 1 if that was 0.
417 as_fn_error ()
418 {
419 as_status=$1; test $as_status -eq 0 && as_status=1
420 if test "$4"; then
421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 fi
424 printf "%s\n" "$as_me: error: $2" >&2
425 as_fn_exit $as_status
426 } # as_fn_error
427
428 if expr a : '\(a\)' >/dev/null 2>&1 &&
429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
430 as_expr=expr
431 else
432 as_expr=false
433 fi
434
435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 as_basename=basename
437 else
438 as_basename=false
439 fi
440
441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442 as_dirname=dirname
443 else
444 as_dirname=false
445 fi
446
447 as_me=`$as_basename -- "$0" ||
448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
449 X"$0" : 'X\(//\)$' \| \
450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 printf "%s\n" X/"$0" |
452 sed '/^.*\/\([^/][^/]*\)\/*$/{
453 s//\1/
454 q
455 }
456 /^X\/\(\/\/\)$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\).*/{
461 s//\1/
462 q
463 }
464 s/.*/./; q'`
465
466 # Avoid depending upon Character Ranges.
467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
470 as_cr_digits='0123456789'
471 as_cr_alnum=$as_cr_Letters$as_cr_digits
472
473
474 as_lineno_1=$LINENO as_lineno_1a=$LINENO
475 as_lineno_2=$LINENO as_lineno_2a=$LINENO
476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
479 sed -n '
480 p
481 /[$]LINENO/=
482 ' <$as_myself |
483 sed '
484 t clear
485 :clear
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511
512 # Determine whether it's possible to make 'echo' print without a newline.
513 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
514 # for compatibility with existing Makefiles.
515 ECHO_C= ECHO_N= ECHO_T=
516 case `echo -n x` in #(((((
517 -n*)
518 case `echo 'xy\c'` in
519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
520 xy) ECHO_C='\c';;
521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
522 ECHO_T=' ';;
523 esac;;
524 *)
525 ECHO_N='-n';;
526 esac
527
528 # For backward compatibility with old third-party macros, we provide
529 # the shell variables $as_echo and $as_echo_n. New code should use
530 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
531 as_echo='printf %s\n'
532 as_echo_n='printf %s'
533
534 rm -f conf$$ conf$$.exe conf$$.file
535 if test -d conf$$.dir; then
536 rm -f conf$$.dir/conf$$.file
537 else
538 rm -f conf$$.dir
539 mkdir conf$$.dir 2>/dev/null
540 fi
541 if (echo >conf$$.file) 2>/dev/null; then
542 if ln -s conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s='ln -s'
544 # ... but there are two gotchas:
545 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
546 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
547 # In both cases, we have to default to 'cp -pR'.
548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
549 as_ln_s='cp -pR'
550 elif ln conf$$.file conf$$ 2>/dev/null; then
551 as_ln_s=ln
552 else
553 as_ln_s='cp -pR'
554 fi
555 else
556 as_ln_s='cp -pR'
557 fi
558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
559 rmdir conf$$.dir 2>/dev/null
560
561 if mkdir -p . 2>/dev/null; then
562 as_mkdir_p='mkdir -p "$as_dir"'
563 else
564 test -d ./-p && rmdir ./-p
565 as_mkdir_p=false
566 fi
567
568 as_test_x='test -x'
569 as_executable_p=as_fn_executable_p
570
571 # Sed expression to map a string onto a valid CPP name.
572 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
573 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
574
575 # Sed expression to map a string onto a valid variable name.
576 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
578
579
580 test -n "$DJDIR" || exec 7<&0 </dev/null
581 exec 6>&1
582
583 # Name of the host.
584 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
585 # so uname gets run too.
586 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587
588 #
589 # Initializations.
590 #
591 ac_default_prefix=/usr/local
592 ac_clean_files=
593 ac_config_libobj_dir=.
594 LIBOBJS=
595 cross_compiling=no
596 subdirs=
597 MFLAGS=
598 MAKEFLAGS=
599
600 # Identity of this package.
601 PACKAGE_NAME='pjproject'
602 PACKAGE_TARNAME='pjproject'
603 PACKAGE_VERSION='2.x'
604 PACKAGE_STRING='pjproject 2.x'
605 PACKAGE_BUGREPORT=''
606 PACKAGE_URL=''
607
608 # Factoring default headers for most tests.
609 ac_includes_default="\
610 #include <stddef.h>
611 #ifdef HAVE_STDIO_H
612 # include <stdio.h>
613 #endif
614 #ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 #endif
617 #ifdef HAVE_STRING_H
618 # include <string.h>
619 #endif
620 #ifdef HAVE_INTTYPES_H
621 # include <inttypes.h>
622 #endif
623 #ifdef HAVE_STDINT_H
624 # include <stdint.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_SYS_TYPES_H
630 # include <sys/types.h>
631 #endif
632 #ifdef HAVE_SYS_STAT_H
633 # include <sys/stat.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 ac_header_c_list=
640 ac_subst_vars='LTLIBOBJS
641 LIBOBJS
642 ac_main_obj
643 ac_host
644 ac_webrtc_aec3_ldflags
645 ac_webrtc_aec3_cflags
646 ac_webrtc_aec3_instset
647 ac_no_webrtc_aec3
648 ac_webrtc_ldflags
649 ac_webrtc_cflags
650 ac_webrtc_instset
651 ac_no_webrtc
652 ac_no_yuv
653 ac_no_srtp
654 ac_lyra_model_path
655 ac_no_lyra_codec
656 ac_no_bcg729
657 opus_present
658 opus_h_present
659 ac_no_opus
660 silk_present
661 silk_h_present
662 ac_no_silk
663 opencore_amrwb_dec_present
664 opencore_amrwb_dec_h_present
665 opencore_amrwb_enc_present
666 opencore_amrwb_enc_h_present
667 opencore_amrnb_present
668 opencore_amrnb_h_present
669 ac_no_opencore_amrwb
670 ac_no_opencore_amrnb
671 libmbedtls_present
672 mbedtls_h_present
673 libgnutls_present
674 gnutls_h_present
675 libcrypto_present
676 libssl_present
677 openssl_h_present
678 ac_ssl_backend
679 ac_ssl_has_aes_gcm
680 ac_no_ssl
681 ac_mediacodec_cflags
682 ac_no_mediacodec
683 ac_vpx_ldflags
684 ac_vpx_cflags
685 ac_openh264_ldflags
686 ac_openh264_cflags
687 ac_v4l2_ldflags
688 ac_v4l2_cflags
689 SAVED_PKG_CONFIG_PATH
690 ac_ffmpeg_ldflags
691 ac_ffmpeg_cflags
692 ac_has_ffmpeg
693 ac_sdl_ldflags
694 ac_sdl_cflags
695 SDL_CONFIG
696 ac_resample_dll
697 ac_no_ilbc_codec
698 ac_no_speex_codec
699 ac_no_g7221_codec
700 ac_no_g722_codec
701 ac_no_gsm_codec
702 ac_no_l16_codec
703 ac_no_g711_codec
704 ac_no_speex_aec
705 ac_no_large_filter
706 ac_no_small_filter
707 ac_qt_cflags
708 ac_pjmedia_video_has_qt
709 ac_darwin_cflags
710 ac_pjmedia_video_has_ios_opengl
711 ac_pjmedia_video_has_vtoolbox
712 ac_pjmedia_video_has_metal
713 ac_pjmedia_video_has_darwin
714 ac_dshow_ldflags
715 ac_dshow_cflags
716 ac_pjmedia_video_dev_has_dshow
717 ac_android_cflags
718 ac_pjmedia_video_has_android
719 ac_pjmedia_video
720 ac_pjmedia_audiodev_objs
721 ac_oboe_ldflags
722 ac_oboe_cflags
723 ac_pa_cflags
724 ac_external_pa
725 ac_pjmedia_snd
726 ac_pjmedia_resample
727 ac_external_webrtc_aec3
728 ac_external_webrtc
729 ac_external_yuv
730 ac_srtp_shutdown_present
731 ac_srtp_deinit_present
732 ac_external_srtp_lib
733 ac_external_srtp
734 ac_external_gsm
735 ac_external_speex
736 ac_no_pjsua2
737 ac_shared_libraries
738 ac_os_objs
739 ac_std_cpp_lib
740 ac_target_arch
741 PKG_CONFIG
742 ac_cross_compile
743 ac_shlib_suffix
744 ac_cflags
745 ac_build_mak_vars
746 ac_pjdir
747 CC_CFLAGS
748 CC_OPTIMIZE
749 CC_DEF
750 CC_INC
751 CC_OUT
752 LIBEXT2
753 LIBEXT
754 LDOUT
755 LD
756 AR_FLAGS
757 ac_ct_AR
758 AR
759 RANLIB
760 ac_ct_CXX
761 CXXFLAGS
762 CXX
763 OBJEXT
764 EXEEXT
765 ac_ct_CC
766 CPPFLAGS
767 LDFLAGS
768 CFLAGS
769 CC
770 target_os
771 target_vendor
772 target_cpu
773 target
774 host_os
775 host_vendor
776 host_cpu
777 host
778 build_os
779 build_vendor
780 build_cpu
781 build
782 target_alias
783 host_alias
784 build_alias
785 LIBS
786 ECHO_T
787 ECHO_N
788 ECHO_C
789 DEFS
790 mandir
791 localedir
792 libdir
793 psdir
794 pdfdir
795 dvidir
796 htmldir
797 infodir
798 docdir
799 oldincludedir
800 includedir
801 runstatedir
802 localstatedir
803 sharedstatedir
804 sysconfdir
805 datadir
806 datarootdir
807 libexecdir
808 sbindir
809 bindir
810 program_transform_name
811 prefix
812 exec_prefix
813 PACKAGE_URL
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 enable_libuuid
825 enable_floating_point
826 enable_kqueue
827 enable_epoll
828 enable_shared
829 enable_pjsua2
830 with_upnp
831 enable_upnp
832 with_external_speex
833 with_external_gsm
834 with_external_srtp
835 with_external_yuv
836 with_external_webrtc
837 with_external_webrtc_aec3
838 enable_resample
839 enable_sound
840 with_external_pa
841 with_oboe
842 enable_video
843 enable_ext_sound
844 enable_small_filter
845 enable_large_filter
846 enable_speex_aec
847 enable_g711_codec
848 enable_l16_codec
849 enable_gsm_codec
850 enable_g722_codec
851 enable_g7221_codec
852 enable_speex_codec
853 enable_ilbc_codec
854 enable_libsamplerate
855 enable_resample_dll
856 enable_speex_resample
857 with_sdl
858 enable_sdl
859 with_ffmpeg
860 enable_ffmpeg
861 enable_v4l2
862 with_openh264
863 enable_openh264
864 with_vpx
865 enable_vpx
866 enable_ipp
867 with_ipp
868 with_ipp_samples
869 with_ipp_arch
870 enable_android_mediacodec
871 with_ssl
872 with_gnutls
873 with_mbedtls
874 enable_darwin_ssl
875 enable_ssl
876 with_opencore_amrnb
877 with_opencore_amr
878 with_opencore_amrwbenc
879 enable_opencore_amr
880 with_silk
881 enable_silk
882 with_opus
883 enable_opus
884 with_bcg729
885 enable_bcg729
886 with_lyra
887 enable_lyra
888 enable_libsrtp
889 enable_libyuv
890 enable_libwebrtc
891 enable_libwebrtc_aec3
892 '
893 ac_precious_vars='build_alias
894 host_alias
895 target_alias
896 CC
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
901 CXX
902 CXXFLAGS
903 CCC'
904
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 ac_unrecognized_opts=
910 ac_unrecognized_sep=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
927
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 runstatedir='${localstatedir}/run'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: '$ac_useropt'"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: '$ac_useropt'"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -runstatedir | --runstatedir | --runstatedi | --runstated \
1194 | --runstate | --runstat | --runsta | --runst | --runs \
1195 | --run | --ru | --r)
1196 ac_prev=runstatedir ;;
1197 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1198 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1199 | --run=* | --ru=* | --r=*)
1200 runstatedir=$ac_optarg ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1246
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: '$ac_useropt'"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1262
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: '$ac_useropt'"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) as_fn_error $? "unrecognized option: '$ac_option'
1298 Try '$0 --help' for more information"
1299 ;;
1300
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1325 fi
1326
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir runstatedir
1340 do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1355
1356 # There might be people who depend on the old broken behavior: '$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1384
1385
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 printf "%s\n" X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1416 fi
1417 else
1418 ac_srcdir_defaulted=no
1419 fi
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423 fi
1424 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 'configure' configures pjproject 2.x to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print 'checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for '--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or '..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, 'make install' will install all the files in
1479 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than '$ac_default_prefix' using '--prefix',
1481 for instance '--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1507
1508 cat <<\_ACEOF
1509
1510 System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514 _ACEOF
1515 fi
1516
1517 if test -n "$ac_init_help"; then
1518 case $ac_init_help in
1519 short | recursive ) echo "Configuration of pjproject 2.x:";;
1520 esac
1521 cat <<\_ACEOF
1522
1523 Optional Features:
1524 --disable-option-checking ignore unrecognized --enable/--with options
1525 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527 --disable-libuuid Exclude libuuid(default: autodetect)
1528 --disable-floating-point
1529 Disable floating point where possible
1530 --enable-kqueue Use kqueue ioqueue on macos/BSD (experimental)
1531 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
1532 --enable-shared Build shared libraries
1533 --disable-pjsua2 Exclude pjsua2 library and application from the
1534 build
1535 --disable-upnp Disable UPnP (default: not disabled)
1536 --disable-resample Disable resampling implementations
1537 --disable-sound Exclude sound (i.e. use null sound)
1538 --disable-video Disable video feature
1539 --enable-ext-sound PJMEDIA will not provide any sound device backend
1540 --disable-small-filter Exclude small filter in resampling
1541 --disable-large-filter Exclude large filter in resampling
1542 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1543 --disable-g711-codec Exclude G.711 codecs from the build
1544 --disable-l16-codec Exclude Linear/L16 codec family from the build
1545 --disable-gsm-codec Exclude GSM codec in the build
1546 --disable-g722-codec Exclude G.722 codec in the build
1547 --disable-g7221-codec Exclude G.7221 codec in the build
1548 --disable-speex-codec Exclude Speex codecs in the build
1549 --disable-ilbc-codec Exclude iLBC codec in the build
1550 --enable-libsamplerate Link with libsamplerate when available.
1551 --enable-resample-dll Build libresample as shared library
1552 --enable-speex-resample Enable Speex resample
1553 --disable-sdl Disable SDL (default: not disabled)
1554 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1555 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
1556 --disable-openh264 Disable OpenH264 (default: not disabled)
1557 --disable-vpx Disable VPX (default: not disabled)
1558 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1559 package and samples location using IPPROOT and
1560 IPPSAMPLES env var or with --with-ipp and
1561 --with-ipp-samples options
1562 --disable-android-mediacodec
1563 Exclude Android MediaCodec (default: autodetect)
1564 --disable-darwin-ssl Exclude Darwin SSL (default: autodetect)
1565 --disable-ssl Exclude SSL support the build (default: autodetect)
1566 --disable-opencore-amr Exclude OpenCORE AMR support from the build
1567 (default: autodetect)
1568 --disable-silk Exclude SILK support from the build (default:
1569 autodetect)
1570 --disable-opus Exclude OPUS support from the build (default:
1571 autodetect)
1572 --disable-bcg729 Disable bcg729 (default: not disabled)
1573 --disable-lyra Disable lyra (default: not disabled)
1574 --disable-libsrtp Exclude libsrtp in the build
1575 --disable-libyuv Exclude libyuv in the build
1576 --disable-libwebrtc Exclude libwebrtc in the build
1577 --enable-libwebrtc-aec3 Build libwebrtc-aec3 that's included in PJSIP
1578
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-upnp=DIR Specify alternate libupnp prefix
1583 --with-external-speex Use external Speex development files, not the one in
1584 "third_party" directory. When this option is set,
1585 make sure that Speex is accessible to use (hint: use
1586 CFLAGS and LDFLAGS env var to set the include/lib
1587 paths)
1588 --with-external-gsm Use external GSM codec library, not the one in
1589 "third_party" directory. When this option is set,
1590 make sure that the GSM include/lib files are
1591 accessible to use (hint: use CFLAGS and LDFLAGS env
1592 var to set the include/lib paths)
1593 --with-external-srtp Use external SRTP development files, not the one in
1594 "third_party" directory. When this option is set,
1595 make sure that SRTP is accessible to use (hint: use
1596 CFLAGS and LDFLAGS env var to set the include/lib
1597 paths)
1598 --with-external-yuv Use external libyuv development files, not the one
1599 in "third_party" directory. When this option is set,
1600 make sure that libyuv is accessible to use (hint:
1601 use CFLAGS and LDFLAGS env var to set the
1602 include/lib paths)
1603 --with-external-webrtc Use external webrtc development files, not the one
1604 in "third_party" directory. When this option is set,
1605 make sure that webrtc is accessible to use (hint:
1606 use CFLAGS and LDFLAGS env var to set the
1607 include/lib paths)
1608 --with-external-webrtc-aec3
1609 Use external webrtc AEC3 development files, not the
1610 one in "third_party" directory. When this option is
1611 set, make sure that webrtc is accessible to use
1612 (hint: use CFLAGS and LDFLAGS env var to set the
1613 include/lib paths)
1614 --with-external-pa Use external PortAudio development files. When this
1615 option is set, make sure that PortAudio is
1616 accessible to use (hint: use CFLAGS and LDFLAGS env
1617 var to set the include/lib paths)
1618 --with-oboe Enable Android Oboe audio device backend.
1619 --with-sdl=DIR Specify alternate libSDL prefix
1620 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
1621 --with-openh264=DIR Specify alternate OpenH264 prefix
1622 --with-vpx=DIR Specify alternate VPX prefix
1623 --with-ipp=DIR Specify the Intel IPP location
1624 --with-ipp-samples=DIR Specify the Intel IPP samples location
1625 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
1626 "em64t. Default is blank for IA32"
1627 --with-ssl=DIR Specify alternate SSL library prefix. This option
1628 will try to find OpenSSL first, then if not found,
1629 GnuTLS. To skip OpenSSL finding, use --with-gnutls
1630 option instead.
1631 --with-gnutls=DIR Specify alternate GnuTLS prefix
1632 --with-mbedtls=DIR Specify alternate MbedTLS prefix
1633 --with-opencore-amrnb=DIR
1634 This option is obsolete and replaced by
1635 --with-opencore-amr=DIR
1636 --with-opencore-amr=DIR Specify alternate libopencore-amr prefix
1637 --with-opencore-amrwbenc=DIR
1638 Specify alternate libvo-amrwbenc prefix
1639 --with-silk=DIR Specify alternate SILK prefix
1640 --with-opus=DIR Specify alternate OPUS prefix
1641 --with-bcg729=DIR Specify alternate bcg729 prefix
1642 --with-lyra=DIR Specify alternate lyra prefix
1643
1644 Some influential environment variables:
1645 CC C compiler command
1646 CFLAGS C compiler flags
1647 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1648 nonstandard directory <lib dir>
1649 LIBS libraries to pass to the linker, e.g. -l<library>
1650 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1651 you have headers in a nonstandard directory <include dir>
1652 CXX C++ compiler command
1653 CXXFLAGS C++ compiler flags
1654
1655 Use these variables to override the choices made by 'configure' or to help
1656 it to find libraries and programs with nonstandard names/locations.
1657
1658 Report bugs to the package provider.
1659 _ACEOF
1660 ac_status=$?
1661 fi
1662
1663 if test "$ac_init_help" = "recursive"; then
1664 # If there are subdirs, report their specific --help.
1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666 test -d "$ac_dir" ||
1667 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668 continue
1669 ac_builddir=.
1670
1671 case "$ac_dir" in
1672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *)
1674 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1675 # A ".." for each directory in $ac_dir_suffix.
1676 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1677 case $ac_top_builddir_sub in
1678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680 esac ;;
1681 esac
1682 ac_abs_top_builddir=$ac_pwd
1683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1684 # for backward compatibility:
1685 ac_top_builddir=$ac_top_build_prefix
1686
1687 case $srcdir in
1688 .) # We are building in place.
1689 ac_srcdir=.
1690 ac_top_srcdir=$ac_top_builddir_sub
1691 ac_abs_top_srcdir=$ac_pwd ;;
1692 [\\/]* | ?:[\\/]* ) # Absolute name.
1693 ac_srcdir=$srcdir$ac_dir_suffix;
1694 ac_top_srcdir=$srcdir
1695 ac_abs_top_srcdir=$srcdir ;;
1696 *) # Relative name.
1697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1698 ac_top_srcdir=$ac_top_build_prefix$srcdir
1699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1700 esac
1701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1702
1703 cd "$ac_dir" || { ac_status=$?; continue; }
1704 # Check for configure.gnu first; this name is used for a wrapper for
1705 # Metaconfig's "Configure" on case-insensitive file systems.
1706 if test -f "$ac_srcdir/configure.gnu"; then
1707 echo &&
1708 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1709 elif test -f "$ac_srcdir/configure"; then
1710 echo &&
1711 $SHELL "$ac_srcdir/configure" --help=recursive
1712 else
1713 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1714 fi || ac_status=$?
1715 cd "$ac_pwd" || { ac_status=$?; break; }
1716 done
1717 fi
1718
1719 test -n "$ac_init_help" && exit $ac_status
1720 if $ac_init_version; then
1721 cat <<\_ACEOF
1722 pjproject configure 2.x
1723 generated by GNU Autoconf 2.72
1724
1725 Copyright (C) 2023 Free Software Foundation, Inc.
1726 This configure script is free software; the Free Software Foundation
1727 gives unlimited permission to copy, distribute and modify it.
1728 _ACEOF
1729 exit
1730 fi
1731
1732 ## ------------------------ ##
1733 ## Autoconf initialization. ##
1734 ## ------------------------ ##
1735
1736 # ac_fn_c_try_compile LINENO
1737 # --------------------------
1738 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext conftest.beam
1743 if { { ac_try="$ac_compile"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 printf "%s\n" "$ac_try_echo"; } >&5
1750 (eval "$ac_compile") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest.$ac_objext
1762 then :
1763 ac_retval=0
1764 else case e in #(
1765 e) printf "%s\n" "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1 ;;
1769 esac
1770 fi
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_compile
1775
1776 # ac_fn_cxx_try_compile LINENO
1777 # ----------------------------
1778 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_cxx_try_compile ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext conftest.beam
1783 if { { ac_try="$ac_compile"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 printf "%s\n" "$ac_try_echo"; } >&5
1790 (eval "$ac_compile") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1796 fi
1797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_cxx_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest.$ac_objext
1802 then :
1803 ac_retval=0
1804 else case e in #(
1805 e) printf "%s\n" "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1 ;;
1809 esac
1810 fi
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814 } # ac_fn_cxx_try_compile
1815
1816 # ac_fn_cxx_try_link LINENO
1817 # -------------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_cxx_try_link ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 printf "%s\n" "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_cxx_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1844 }
1845 then :
1846 ac_retval=0
1847 else case e in #(
1848 e) printf "%s\n" "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1 ;;
1852 esac
1853 fi
1854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1856 # interfere with the next link command; also delete a directory that is
1857 # left behind by Apple's compiler. We do this before executing the actions.
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1861
1862 } # ac_fn_cxx_try_link
1863
1864 # ac_fn_c_try_link LINENO
1865 # -----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_c_try_link ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1871 if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 printf "%s\n" "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1879 ac_status=$?
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1884 fi
1885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_c_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
1891 test -x conftest$ac_exeext
1892 }
1893 then :
1894 ac_retval=0
1895 else case e in #(
1896 e) printf "%s\n" "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=1 ;;
1900 esac
1901 fi
1902 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1903 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1904 # interfere with the next link command; also delete a directory that is
1905 # left behind by Apple's compiler. We do this before executing the actions.
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 as_fn_set_status $ac_retval
1909
1910 } # ac_fn_c_try_link
1911
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1915 # executables *can* be run.
1916 ac_fn_c_try_run ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 printf "%s\n" "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>&5
1927 ac_status=$?
1928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930 { { case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 printf "%s\n" "$ac_try_echo"; } >&5
1936 (eval "$ac_try") 2>&5
1937 ac_status=$?
1938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; }; }
1940 then :
1941 ac_retval=0
1942 else case e in #(
1943 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1944 printf "%s\n" "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947 ac_retval=$ac_status ;;
1948 esac
1949 fi
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954 } # ac_fn_c_try_run
1955
1956 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1957 # -------------------------------------------------------
1958 # Tests whether HEADER exists and can be compiled using the include files in
1959 # INCLUDES, setting the cache variable VAR accordingly.
1960 ac_fn_c_check_header_compile ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 printf %s "checking for $2... " >&6; }
1965 if eval test \${$3+y}
1966 then :
1967 printf %s "(cached) " >&6
1968 else case e in #(
1969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 $4
1972 #include <$2>
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"
1975 then :
1976 eval "$3=yes"
1977 else case e in #(
1978 e) eval "$3=no" ;;
1979 esac
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1982 esac
1983 fi
1984 eval ac_res=\$$3
1985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 printf "%s\n" "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989 } # ac_fn_c_check_header_compile
1990
1991 # ac_fn_c_check_func LINENO FUNC VAR
1992 # ----------------------------------
1993 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1994 ac_fn_c_check_func ()
1995 {
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 printf %s "checking for $2... " >&6; }
1999 if eval test \${$3+y}
2000 then :
2001 printf %s "(cached) " >&6
2002 else case e in #(
2003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007 #define $2 innocuous_$2
2008
2009 /* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (void); below. */
2011
2012 #include <limits.h>
2013 #undef $2
2014
2015 /* Override any GCC internal prototype to avoid an error.
2016 Use char because int might match the return type of a GCC
2017 builtin and then its argument prototype would still apply. */
2018 #ifdef __cplusplus
2019 extern "C"
2020 #endif
2021 char $2 (void);
2022 /* The GNU C library defines this for functions which it implements
2023 to always fail with ENOSYS. Some functions are actually named
2024 something starting with __ and the normal name is an alias. */
2025 #if defined __stub_$2 || defined __stub___$2
2026 choke me
2027 #endif
2028
2029 int
2030 main (void)
2031 {
2032 return $2 ();
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_link "$LINENO"
2038 then :
2039 eval "$3=yes"
2040 else case e in #(
2041 e) eval "$3=no" ;;
2042 esac
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2045 conftest$ac_exeext conftest.$ac_ext ;;
2046 esac
2047 fi
2048 eval ac_res=\$$3
2049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 printf "%s\n" "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053 } # ac_fn_c_check_func
2054
2055 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056 # -------------------------------------------
2057 # Tests whether TYPE exists after having included INCLUDES, setting cache
2058 # variable VAR accordingly.
2059 ac_fn_c_check_type ()
2060 {
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 printf %s "checking for $2... " >&6; }
2064 if eval test \${$3+y}
2065 then :
2066 printf %s "(cached) " >&6
2067 else case e in #(
2068 e) eval "$3=no"
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main (void)
2074 {
2075 if (sizeof ($2))
2076 return 0;
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"
2082 then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 int
2087 main (void)
2088 {
2089 if (sizeof (($2)))
2090 return 0;
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"
2096 then :
2097
2098 else case e in #(
2099 e) eval "$3=yes" ;;
2100 esac
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2105 esac
2106 fi
2107 eval ac_res=\$$3
2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 printf "%s\n" "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112 } # ac_fn_c_check_type
2113 ac_configure_args_raw=
2114 for ac_arg
2115 do
2116 case $ac_arg in
2117 *\'*)
2118 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2119 esac
2120 as_fn_append ac_configure_args_raw " '$ac_arg'"
2121 done
2122
2123 case $ac_configure_args_raw in
2124 *$as_nl*)
2125 ac_safe_unquote= ;;
2126 *)
2127 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2128 ac_unsafe_a="$ac_unsafe_z#~"
2129 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2130 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2131 esac
2132
2133 cat >config.log <<_ACEOF
2134 This file contains any messages produced by compilers while
2135 running configure, to aid debugging if configure makes a mistake.
2136
2137 It was created by pjproject $as_me 2.x, which was
2138 generated by GNU Autoconf 2.72. Invocation command line was
2139
2140 $ $0$ac_configure_args_raw
2141
2142 _ACEOF
2143 exec 5>>config.log
2144 {
2145 cat <<_ASUNAME
2146 ## --------- ##
2147 ## Platform. ##
2148 ## --------- ##
2149
2150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2155
2156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2158
2159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2166
2167 _ASUNAME
2168
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172 IFS=$as_save_IFS
2173 case $as_dir in #(((
2174 '') as_dir=./ ;;
2175 */) ;;
2176 *) as_dir=$as_dir/ ;;
2177 esac
2178 printf "%s\n" "PATH: $as_dir"
2179 done
2180 IFS=$as_save_IFS
2181
2182 } >&5
2183
2184 cat >&5 <<_ACEOF
2185
2186
2187 ## ----------- ##
2188 ## Core tests. ##
2189 ## ----------- ##
2190
2191 _ACEOF
2192
2193
2194 # Keep a trace of the command line.
2195 # Strip out --no-create and --no-recursion so they do not pile up.
2196 # Strip out --silent because we don't want to record it for future runs.
2197 # Also quote any args containing shell meta-characters.
2198 # Make two passes to allow for proper duplicate-argument suppression.
2199 ac_configure_args=
2200 ac_configure_args0=
2201 ac_configure_args1=
2202 ac_must_keep_next=false
2203 for ac_pass in 1 2
2204 do
2205 for ac_arg
2206 do
2207 case $ac_arg in
2208 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2210 | -silent | --silent | --silen | --sile | --sil)
2211 continue ;;
2212 *\'*)
2213 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 esac
2215 case $ac_pass in
2216 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2217 2)
2218 as_fn_append ac_configure_args1 " '$ac_arg'"
2219 if test $ac_must_keep_next = true; then
2220 ac_must_keep_next=false # Got value, back to normal.
2221 else
2222 case $ac_arg in
2223 *=* | --config-cache | -C | -disable-* | --disable-* \
2224 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2225 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2226 | -with-* | --with-* | -without-* | --without-* | --x)
2227 case "$ac_configure_args0 " in
2228 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2229 esac
2230 ;;
2231 -* ) ac_must_keep_next=true ;;
2232 esac
2233 fi
2234 as_fn_append ac_configure_args " '$ac_arg'"
2235 ;;
2236 esac
2237 done
2238 done
2239 { ac_configure_args0=; unset ac_configure_args0;}
2240 { ac_configure_args1=; unset ac_configure_args1;}
2241
2242 # When interrupted or exit'd, cleanup temporary files, and complete
2243 # config.log. We remove comments because anyway the quotes in there
2244 # would cause problems or look ugly.
2245 # WARNING: Use '\'' to represent an apostrophe within the trap.
2246 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2247 trap 'exit_status=$?
2248 # Sanitize IFS.
2249 IFS=" "" $as_nl"
2250 # Save into config.log some information that might help in debugging.
2251 {
2252 echo
2253
2254 printf "%s\n" "## ---------------- ##
2255 ## Cache variables. ##
2256 ## ---------------- ##"
2257 echo
2258 # The following way of writing the cache mishandles newlines in values,
2259 (
2260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2261 eval ac_val=\$$ac_var
2262 case $ac_val in #(
2263 *${as_nl}*)
2264 case $ac_var in #(
2265 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2267 esac
2268 case $ac_var in #(
2269 _ | IFS | as_nl) ;; #(
2270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271 *) { eval $ac_var=; unset $ac_var;} ;;
2272 esac ;;
2273 esac
2274 done
2275 (set) 2>&1 |
2276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2277 *${as_nl}ac_space=\ *)
2278 sed -n \
2279 "s/'\''/'\''\\\\'\'''\''/g;
2280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2281 ;; #(
2282 *)
2283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2284 ;;
2285 esac |
2286 sort
2287 )
2288 echo
2289
2290 printf "%s\n" "## ----------------- ##
2291 ## Output variables. ##
2292 ## ----------------- ##"
2293 echo
2294 for ac_var in $ac_subst_vars
2295 do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in
2298 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299 esac
2300 printf "%s\n" "$ac_var='\''$ac_val'\''"
2301 done | sort
2302 echo
2303
2304 if test -n "$ac_subst_files"; then
2305 printf "%s\n" "## ------------------- ##
2306 ## File substitutions. ##
2307 ## ------------------- ##"
2308 echo
2309 for ac_var in $ac_subst_files
2310 do
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 printf "%s\n" "$ac_var='\''$ac_val'\''"
2316 done | sort
2317 echo
2318 fi
2319
2320 if test -s confdefs.h; then
2321 printf "%s\n" "## ----------- ##
2322 ## confdefs.h. ##
2323 ## ----------- ##"
2324 echo
2325 cat confdefs.h
2326 echo
2327 fi
2328 test "$ac_signal" != 0 &&
2329 printf "%s\n" "$as_me: caught signal $ac_signal"
2330 printf "%s\n" "$as_me: exit $exit_status"
2331 } >&5
2332 rm -f core *.core core.conftest.* &&
2333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2334 exit $exit_status
2335 ' 0
2336 for ac_signal in 1 2 13 15; do
2337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2338 done
2339 ac_signal=0
2340
2341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2342 rm -f -r conftest* confdefs.h
2343
2344 printf "%s\n" "/* confdefs.h */" > confdefs.h
2345
2346 # Predefined preprocessor variables.
2347
2348 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2349
2350 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2351
2352 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2353
2354 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2355
2356 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2357
2358 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2359
2360
2361 # Let the site file select an alternate cache file if it wants to.
2362 # Prefer an explicitly selected file to automatically selected ones.
2363 if test -n "$CONFIG_SITE"; then
2364 ac_site_files="$CONFIG_SITE"
2365 elif test "x$prefix" != xNONE; then
2366 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2367 else
2368 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2369 fi
2370
2371 for ac_site_file in $ac_site_files
2372 do
2373 case $ac_site_file in #(
2374 */*) :
2375 ;; #(
2376 *) :
2377 ac_site_file=./$ac_site_file ;;
2378 esac
2379 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2381 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2382 sed 's/^/| /' "$ac_site_file" >&5
2383 . "$ac_site_file" \
2384 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2385 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2386 as_fn_error $? "failed to load site script $ac_site_file
2387 See 'config.log' for more details" "$LINENO" 5; }
2388 fi
2389 done
2390
2391 if test -r "$cache_file"; then
2392 # Some versions of bash will fail to source /dev/null (special files
2393 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2394 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2396 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2397 case $cache_file in
2398 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2399 *) . "./$cache_file";;
2400 esac
2401 fi
2402 else
2403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2404 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2405 >$cache_file
2406 fi
2407
2408 # Test code for whether the C compiler supports C89 (global declarations)
2409 ac_c_conftest_c89_globals='
2410 /* Does the compiler advertise C89 conformance?
2411 Do not test the value of __STDC__, because some compilers set it to 0
2412 while being otherwise adequately conformant. */
2413 #if !defined __STDC__
2414 # error "Compiler does not advertise C89 conformance"
2415 #endif
2416
2417 #include <stddef.h>
2418 #include <stdarg.h>
2419 struct stat;
2420 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2421 struct buf { int x; };
2422 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2423 static char *e (char **p, int i)
2424 {
2425 return p[i];
2426 }
2427 static char *f (char * (*g) (char **, int), char **p, ...)
2428 {
2429 char *s;
2430 va_list v;
2431 va_start (v,p);
2432 s = g (p, va_arg (v,int));
2433 va_end (v);
2434 return s;
2435 }
2436
2437 /* C89 style stringification. */
2438 #define noexpand_stringify(a) #a
2439 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2440
2441 /* C89 style token pasting. Exercises some of the corner cases that
2442 e.g. old MSVC gets wrong, but not very hard. */
2443 #define noexpand_concat(a,b) a##b
2444 #define expand_concat(a,b) noexpand_concat(a,b)
2445 extern int vA;
2446 extern int vbee;
2447 #define aye A
2448 #define bee B
2449 int *pvA = &expand_concat(v,aye);
2450 int *pvbee = &noexpand_concat(v,bee);
2451
2452 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2453 function prototypes and stuff, but not \xHH hex character constants.
2454 These do not provoke an error unfortunately, instead are silently treated
2455 as an "x". The following induces an error, until -std is added to get
2456 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2457 array size at least. It is necessary to write \x00 == 0 to get something
2458 that is true only with -std. */
2459 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2460
2461 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2462 inside strings and character constants. */
2463 #define FOO(x) '\''x'\''
2464 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2465
2466 int test (int i, double x);
2467 struct s1 {int (*f) (int a);};
2468 struct s2 {int (*f) (double a);};
2469 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2470 int, int);'
2471
2472 # Test code for whether the C compiler supports C89 (body of main).
2473 ac_c_conftest_c89_main='
2474 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2475 '
2476
2477 # Test code for whether the C compiler supports C99 (global declarations)
2478 ac_c_conftest_c99_globals='
2479 /* Does the compiler advertise C99 conformance? */
2480 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2481 # error "Compiler does not advertise C99 conformance"
2482 #endif
2483
2484 // See if C++-style comments work.
2485
2486 #include <stdbool.h>
2487 extern int puts (const char *);
2488 extern int printf (const char *, ...);
2489 extern int dprintf (int, const char *, ...);
2490 extern void *malloc (size_t);
2491 extern void free (void *);
2492
2493 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2494 // dprintf is used instead of fprintf to avoid needing to declare
2495 // FILE and stderr.
2496 #define debug(...) dprintf (2, __VA_ARGS__)
2497 #define showlist(...) puts (#__VA_ARGS__)
2498 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2499 static void
2500 test_varargs_macros (void)
2501 {
2502 int x = 1234;
2503 int y = 5678;
2504 debug ("Flag");
2505 debug ("X = %d\n", x);
2506 showlist (The first, second, and third items.);
2507 report (x>y, "x is %d but y is %d", x, y);
2508 }
2509
2510 // Check long long types.
2511 #define BIG64 18446744073709551615ull
2512 #define BIG32 4294967295ul
2513 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2514 #if !BIG_OK
2515 #error "your preprocessor is broken"
2516 #endif
2517 #if BIG_OK
2518 #else
2519 #error "your preprocessor is broken"
2520 #endif
2521 static long long int bignum = -9223372036854775807LL;
2522 static unsigned long long int ubignum = BIG64;
2523
2524 struct incomplete_array
2525 {
2526 int datasize;
2527 double data[];
2528 };
2529
2530 struct named_init {
2531 int number;
2532 const wchar_t *name;
2533 double average;
2534 };
2535
2536 typedef const char *ccp;
2537
2538 static inline int
2539 test_restrict (ccp restrict text)
2540 {
2541 // Iterate through items via the restricted pointer.
2542 // Also check for declarations in for loops.
2543 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2544 continue;
2545 return 0;
2546 }
2547
2548 // Check varargs and va_copy.
2549 static bool
2550 test_varargs (const char *format, ...)
2551 {
2552 va_list args;
2553 va_start (args, format);
2554 va_list args_copy;
2555 va_copy (args_copy, args);
2556
2557 const char *str = "";
2558 int number = 0;
2559 float fnumber = 0;
2560
2561 while (*format)
2562 {
2563 switch (*format++)
2564 {
2565 case '\''s'\'': // string
2566 str = va_arg (args_copy, const char *);
2567 break;
2568 case '\''d'\'': // int
2569 number = va_arg (args_copy, int);
2570 break;
2571 case '\''f'\'': // float
2572 fnumber = va_arg (args_copy, double);
2573 break;
2574 default:
2575 break;
2576 }
2577 }
2578 va_end (args_copy);
2579 va_end (args);
2580
2581 return *str && number && fnumber;
2582 }
2583 '
2584
2585 # Test code for whether the C compiler supports C99 (body of main).
2586 ac_c_conftest_c99_main='
2587 // Check bool.
2588 _Bool success = false;
2589 success |= (argc != 0);
2590
2591 // Check restrict.
2592 if (test_restrict ("String literal") == 0)
2593 success = true;
2594 char *restrict newvar = "Another string";
2595
2596 // Check varargs.
2597 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2598 test_varargs_macros ();
2599
2600 // Check flexible array members.
2601 struct incomplete_array *ia =
2602 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2603 ia->datasize = 10;
2604 for (int i = 0; i < ia->datasize; ++i)
2605 ia->data[i] = i * 1.234;
2606 // Work around memory leak warnings.
2607 free (ia);
2608
2609 // Check named initializers.
2610 struct named_init ni = {
2611 .number = 34,
2612 .name = L"Test wide string",
2613 .average = 543.34343,
2614 };
2615
2616 ni.number = 58;
2617
2618 int dynamic_array[ni.number];
2619 dynamic_array[0] = argv[0][0];
2620 dynamic_array[ni.number - 1] = 543;
2621
2622 // work around unused variable warnings
2623 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2624 || dynamic_array[ni.number - 1] != 543);
2625 '
2626
2627 # Test code for whether the C compiler supports C11 (global declarations)
2628 ac_c_conftest_c11_globals='
2629 /* Does the compiler advertise C11 conformance? */
2630 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2631 # error "Compiler does not advertise C11 conformance"
2632 #endif
2633
2634 // Check _Alignas.
2635 char _Alignas (double) aligned_as_double;
2636 char _Alignas (0) no_special_alignment;
2637 extern char aligned_as_int;
2638 char _Alignas (0) _Alignas (int) aligned_as_int;
2639
2640 // Check _Alignof.
2641 enum
2642 {
2643 int_alignment = _Alignof (int),
2644 int_array_alignment = _Alignof (int[100]),
2645 char_alignment = _Alignof (char)
2646 };
2647 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2648
2649 // Check _Noreturn.
2650 int _Noreturn does_not_return (void) { for (;;) continue; }
2651
2652 // Check _Static_assert.
2653 struct test_static_assert
2654 {
2655 int x;
2656 _Static_assert (sizeof (int) <= sizeof (long int),
2657 "_Static_assert does not work in struct");
2658 long int y;
2659 };
2660
2661 // Check UTF-8 literals.
2662 #define u8 syntax error!
2663 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2664
2665 // Check duplicate typedefs.
2666 typedef long *long_ptr;
2667 typedef long int *long_ptr;
2668 typedef long_ptr long_ptr;
2669
2670 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2671 struct anonymous
2672 {
2673 union {
2674 struct { int i; int j; };
2675 struct { int k; long int l; } w;
2676 };
2677 int m;
2678 } v1;
2679 '
2680
2681 # Test code for whether the C compiler supports C11 (body of main).
2682 ac_c_conftest_c11_main='
2683 _Static_assert ((offsetof (struct anonymous, i)
2684 == offsetof (struct anonymous, w.k)),
2685 "Anonymous union alignment botch");
2686 v1.i = 2;
2687 v1.w.k = 5;
2688 ok |= v1.i != 5;
2689 '
2690
2691 # Test code for whether the C compiler supports C11 (complete).
2692 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2693 ${ac_c_conftest_c99_globals}
2694 ${ac_c_conftest_c11_globals}
2695
2696 int
2697 main (int argc, char **argv)
2698 {
2699 int ok = 0;
2700 ${ac_c_conftest_c89_main}
2701 ${ac_c_conftest_c99_main}
2702 ${ac_c_conftest_c11_main}
2703 return ok;
2704 }
2705 "
2706
2707 # Test code for whether the C compiler supports C99 (complete).
2708 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2709 ${ac_c_conftest_c99_globals}
2710
2711 int
2712 main (int argc, char **argv)
2713 {
2714 int ok = 0;
2715 ${ac_c_conftest_c89_main}
2716 ${ac_c_conftest_c99_main}
2717 return ok;
2718 }
2719 "
2720
2721 # Test code for whether the C compiler supports C89 (complete).
2722 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2723
2724 int
2725 main (int argc, char **argv)
2726 {
2727 int ok = 0;
2728 ${ac_c_conftest_c89_main}
2729 return ok;
2730 }
2731 "
2732
2733 # Test code for whether the C++ compiler supports C++98 (global declarations)
2734 ac_cxx_conftest_cxx98_globals='
2735 // Does the compiler advertise C++98 conformance?
2736 #if !defined __cplusplus || __cplusplus < 199711L
2737 # error "Compiler does not advertise C++98 conformance"
2738 #endif
2739
2740 // These inclusions are to reject old compilers that
2741 // lack the unsuffixed header files.
2742 #include <cstdlib>
2743 #include <exception>
2744
2745 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2746 extern void assert (int);
2747 namespace std {
2748 extern int strcmp (const char *, const char *);
2749 }
2750
2751 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2752 using std::exception;
2753 using std::strcmp;
2754
2755 namespace {
2756
2757 void test_exception_syntax()
2758 {
2759 try {
2760 throw "test";
2761 } catch (const char *s) {
2762 // Extra parentheses suppress a warning when building autoconf itself,
2763 // due to lint rules shared with more typical C programs.
2764 assert (!(strcmp) (s, "test"));
2765 }
2766 }
2767
2768 template <typename T> struct test_template
2769 {
2770 T const val;
2771 explicit test_template(T t) : val(t) {}
2772 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2773 };
2774
2775 } // anonymous namespace
2776 '
2777
2778 # Test code for whether the C++ compiler supports C++98 (body of main)
2779 ac_cxx_conftest_cxx98_main='
2780 assert (argc);
2781 assert (! argv[0]);
2782 {
2783 test_exception_syntax ();
2784 test_template<double> tt (2.0);
2785 assert (tt.add (4) == 6.0);
2786 assert (true && !false);
2787 }
2788 '
2789
2790 # Test code for whether the C++ compiler supports C++11 (global declarations)
2791 ac_cxx_conftest_cxx11_globals='
2792 // Does the compiler advertise C++ 2011 conformance?
2793 #if !defined __cplusplus || __cplusplus < 201103L
2794 # error "Compiler does not advertise C++11 conformance"
2795 #endif
2796
2797 namespace cxx11test
2798 {
2799 constexpr int get_val() { return 20; }
2800
2801 struct testinit
2802 {
2803 int i;
2804 double d;
2805 };
2806
2807 class delegate
2808 {
2809 public:
2810 delegate(int n) : n(n) {}
2811 delegate(): delegate(2354) {}
2812
2813 virtual int getval() { return this->n; };
2814 protected:
2815 int n;
2816 };
2817
2818 class overridden : public delegate
2819 {
2820 public:
2821 overridden(int n): delegate(n) {}
2822 virtual int getval() override final { return this->n * 2; }
2823 };
2824
2825 class nocopy
2826 {
2827 public:
2828 nocopy(int i): i(i) {}
2829 nocopy() = default;
2830 nocopy(const nocopy&) = delete;
2831 nocopy & operator=(const nocopy&) = delete;
2832 private:
2833 int i;
2834 };
2835
2836 // for testing lambda expressions
2837 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2838 {
2839 return f(v);
2840 }
2841
2842 // for testing variadic templates and trailing return types
2843 template <typename V> auto sum(V first) -> V
2844 {
2845 return first;
2846 }
2847 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2848 {
2849 return first + sum(rest...);
2850 }
2851 }
2852 '
2853
2854 # Test code for whether the C++ compiler supports C++11 (body of main)
2855 ac_cxx_conftest_cxx11_main='
2856 {
2857 // Test auto and decltype
2858 auto a1 = 6538;
2859 auto a2 = 48573953.4;
2860 auto a3 = "String literal";
2861
2862 int total = 0;
2863 for (auto i = a3; *i; ++i) { total += *i; }
2864
2865 decltype(a2) a4 = 34895.034;
2866 }
2867 {
2868 // Test constexpr
2869 short sa[cxx11test::get_val()] = { 0 };
2870 }
2871 {
2872 // Test initializer lists
2873 cxx11test::testinit il = { 4323, 435234.23544 };
2874 }
2875 {
2876 // Test range-based for
2877 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2878 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2879 for (auto &x : array) { x += 23; }
2880 }
2881 {
2882 // Test lambda expressions
2883 using cxx11test::eval;
2884 assert (eval ([](int x) { return x*2; }, 21) == 42);
2885 double d = 2.0;
2886 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2887 assert (d == 5.0);
2888 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2889 assert (d == 5.0);
2890 }
2891 {
2892 // Test use of variadic templates
2893 using cxx11test::sum;
2894 auto a = sum(1);
2895 auto b = sum(1, 2);
2896 auto c = sum(1.0, 2.0, 3.0);
2897 }
2898 {
2899 // Test constructor delegation
2900 cxx11test::delegate d1;
2901 cxx11test::delegate d2();
2902 cxx11test::delegate d3(45);
2903 }
2904 {
2905 // Test override and final
2906 cxx11test::overridden o1(55464);
2907 }
2908 {
2909 // Test nullptr
2910 char *c = nullptr;
2911 }
2912 {
2913 // Test template brackets
2914 test_template<::test_template<int>> v(test_template<int>(12));
2915 }
2916 {
2917 // Unicode literals
2918 char const *utf8 = u8"UTF-8 string \u2500";
2919 char16_t const *utf16 = u"UTF-8 string \u2500";
2920 char32_t const *utf32 = U"UTF-32 string \u2500";
2921 }
2922 '
2923
2924 # Test code for whether the C compiler supports C++11 (complete).
2925 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2926 ${ac_cxx_conftest_cxx11_globals}
2927
2928 int
2929 main (int argc, char **argv)
2930 {
2931 int ok = 0;
2932 ${ac_cxx_conftest_cxx98_main}
2933 ${ac_cxx_conftest_cxx11_main}
2934 return ok;
2935 }
2936 "
2937
2938 # Test code for whether the C compiler supports C++98 (complete).
2939 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2940 int
2941 main (int argc, char **argv)
2942 {
2943 int ok = 0;
2944 ${ac_cxx_conftest_cxx98_main}
2945 return ok;
2946 }
2947 "
2948
2949 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2950 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2951 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2952 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2953 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2954 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2955 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2956 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2957 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2958
2959 # Auxiliary files required by this configure script.
2960 ac_aux_files="config.guess config.sub"
2961
2962 # Locations in which to look for auxiliary files.
2963 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2964
2965 # Search for a directory containing all of the required auxiliary files,
2966 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2967 # If we don't find one directory that contains all the files we need,
2968 # we report the set of missing files from the *first* directory in
2969 # $ac_aux_dir_candidates and give up.
2970 ac_missing_aux_files=""
2971 ac_first_candidate=:
2972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 as_found=false
2975 for as_dir in $ac_aux_dir_candidates
2976 do
2977 IFS=$as_save_IFS
2978 case $as_dir in #(((
2979 '') as_dir=./ ;;
2980 */) ;;
2981 *) as_dir=$as_dir/ ;;
2982 esac
2983 as_found=:
2984
2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2986 ac_aux_dir_found=yes
2987 ac_install_sh=
2988 for ac_aux in $ac_aux_files
2989 do
2990 # As a special case, if "install-sh" is required, that requirement
2991 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2992 # and $ac_install_sh is set appropriately for whichever one is found.
2993 if test x"$ac_aux" = x"install-sh"
2994 then
2995 if test -f "${as_dir}install-sh"; then
2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2997 ac_install_sh="${as_dir}install-sh -c"
2998 elif test -f "${as_dir}install.sh"; then
2999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3000 ac_install_sh="${as_dir}install.sh -c"
3001 elif test -f "${as_dir}shtool"; then
3002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3003 ac_install_sh="${as_dir}shtool install -c"
3004 else
3005 ac_aux_dir_found=no
3006 if $ac_first_candidate; then
3007 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3008 else
3009 break
3010 fi
3011 fi
3012 else
3013 if test -f "${as_dir}${ac_aux}"; then
3014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3015 else
3016 ac_aux_dir_found=no
3017 if $ac_first_candidate; then
3018 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3019 else
3020 break
3021 fi
3022 fi
3023 fi
3024 done
3025 if test "$ac_aux_dir_found" = yes; then
3026 ac_aux_dir="$as_dir"
3027 break
3028 fi
3029 ac_first_candidate=false
3030
3031 as_found=false
3032 done
3033 IFS=$as_save_IFS
3034 if $as_found
3035 then :
3036
3037 else case e in #(
3038 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3039 esac
3040 fi
3041
3042
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 if test -f "${ac_aux_dir}config.guess"; then
3048 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3049 fi
3050 if test -f "${ac_aux_dir}config.sub"; then
3051 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3052 fi
3053 if test -f "$ac_aux_dir/configure"; then
3054 ac_configure="$SHELL ${ac_aux_dir}configure"
3055 fi
3056
3057 # Check that the precious variables saved in the cache have kept the same
3058 # value.
3059 ac_cache_corrupted=false
3060 for ac_var in $ac_precious_vars; do
3061 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3062 eval ac_new_set=\$ac_env_${ac_var}_set
3063 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3064 eval ac_new_val=\$ac_env_${ac_var}_value
3065 case $ac_old_set,$ac_new_set in
3066 set,)
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3068 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3069 ac_cache_corrupted=: ;;
3070 ,set)
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3072 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3073 ac_cache_corrupted=: ;;
3074 ,);;
3075 *)
3076 if test "x$ac_old_val" != "x$ac_new_val"; then
3077 # differences in whitespace do not lead to failure.
3078 ac_old_val_w=`echo x $ac_old_val`
3079 ac_new_val_w=`echo x $ac_new_val`
3080 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3082 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3083 ac_cache_corrupted=:
3084 else
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3086 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3087 eval $ac_var=\$ac_old_val
3088 fi
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3090 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3092 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3093 fi;;
3094 esac
3095 # Pass precious variables to config.status.
3096 if test "$ac_new_set" = set; then
3097 case $ac_new_val in
3098 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3099 *) ac_arg=$ac_var=$ac_new_val ;;
3100 esac
3101 case " $ac_configure_args " in
3102 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3103 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3104 esac
3105 fi
3106 done
3107 if $ac_cache_corrupted; then
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3109 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3111 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3112 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3113 and start over" "$LINENO" 5
3114 fi
3115 ## -------------------- ##
3116 ## Main body of script. ##
3117 ## -------------------- ##
3118
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125
3126
3127 host_orig="$host"
3128
3129
3130
3131
3132 # Make sure we can run config.sub.
3133 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3134 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3135
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3137 printf %s "checking build system type... " >&6; }
3138 if test ${ac_cv_build+y}
3139 then :
3140 printf %s "(cached) " >&6
3141 else case e in #(
3142 e) ac_build_alias=$build_alias
3143 test "x$ac_build_alias" = x &&
3144 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3145 test "x$ac_build_alias" = x &&
3146 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3147 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3148 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3149 ;;
3150 esac
3151 fi
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3153 printf "%s\n" "$ac_cv_build" >&6; }
3154 case $ac_cv_build in
3155 *-*-*) ;;
3156 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3157 esac
3158 build=$ac_cv_build
3159 ac_save_IFS=$IFS; IFS='-'
3160 set x $ac_cv_build
3161 shift
3162 build_cpu=$1
3163 build_vendor=$2
3164 shift; shift
3165 # Remember, the first character of IFS is used to create $*,
3166 # except with old shells:
3167 build_os=$*
3168 IFS=$ac_save_IFS
3169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3170
3171
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3173 printf %s "checking host system type... " >&6; }
3174 if test ${ac_cv_host+y}
3175 then :
3176 printf %s "(cached) " >&6
3177 else case e in #(
3178 e) if test "x$host_alias" = x; then
3179 ac_cv_host=$ac_cv_build
3180 else
3181 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3182 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3183 fi
3184 ;;
3185 esac
3186 fi
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3188 printf "%s\n" "$ac_cv_host" >&6; }
3189 case $ac_cv_host in
3190 *-*-*) ;;
3191 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3192 esac
3193 host=$ac_cv_host
3194 ac_save_IFS=$IFS; IFS='-'
3195 set x $ac_cv_host
3196 shift
3197 host_cpu=$1
3198 host_vendor=$2
3199 shift; shift
3200 # Remember, the first character of IFS is used to create $*,
3201 # except with old shells:
3202 host_os=$*
3203 IFS=$ac_save_IFS
3204 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3205
3206
3207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3208 printf %s "checking target system type... " >&6; }
3209 if test ${ac_cv_target+y}
3210 then :
3211 printf %s "(cached) " >&6
3212 else case e in #(
3213 e) if test "x$target_alias" = x; then
3214 ac_cv_target=$ac_cv_host
3215 else
3216 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3217 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3218 fi
3219 ;;
3220 esac
3221 fi
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3223 printf "%s\n" "$ac_cv_target" >&6; }
3224 case $ac_cv_target in
3225 *-*-*) ;;
3226 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3227 esac
3228 target=$ac_cv_target
3229 ac_save_IFS=$IFS; IFS='-'
3230 set x $ac_cv_target
3231 shift
3232 target_cpu=$1
3233 target_vendor=$2
3234 shift; shift
3235 # Remember, the first character of IFS is used to create $*,
3236 # except with old shells:
3237 target_os=$*
3238 IFS=$ac_save_IFS
3239 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3240
3241
3242 # The aliases save the names the user supplied, while $host etc.
3243 # will get canonicalized.
3244 test -n "$target_alias" &&
3245 test "$program_prefix$program_suffix$program_transform_name" = \
3246 NONENONEs,x,x, &&
3247 program_prefix=${target_alias}-
3248 ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h"
3249
3250
3251 ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak"
3252
3253
3254 if test "$CFLAGS" = ""; then
3255 CFLAGS="-O2"
3256 fi
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 printf %s "checking for $ac_word... " >&6; }
3277 if test ${ac_cv_prog_CC+y}
3278 then :
3279 printf %s "(cached) " >&6
3280 else case e in #(
3281 e) if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 case $as_dir in #(((
3289 '') as_dir=./ ;;
3290 */) ;;
3291 *) as_dir=$as_dir/ ;;
3292 esac
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi ;;
3304 esac
3305 fi
3306 CC=$ac_cv_prog_CC
3307 if test -n "$CC"; then
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 printf "%s\n" "$CC" >&6; }
3310 else
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 printf "%s\n" "no" >&6; }
3313 fi
3314
3315
3316 fi
3317 if test -z "$ac_cv_prog_CC"; then
3318 ac_ct_CC=$CC
3319 # Extract the first word of "gcc", so it can be a program name with args.
3320 set dummy gcc; ac_word=$2
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 printf %s "checking for $ac_word... " >&6; }
3323 if test ${ac_cv_prog_ac_ct_CC+y}
3324 then :
3325 printf %s "(cached) " >&6
3326 else case e in #(
3327 e) if test -n "$ac_ct_CC"; then
3328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 case $as_dir in #(((
3335 '') as_dir=./ ;;
3336 */) ;;
3337 *) as_dir=$as_dir/ ;;
3338 esac
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_ac_ct_CC="gcc"
3342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345 done
3346 done
3347 IFS=$as_save_IFS
3348
3349 fi ;;
3350 esac
3351 fi
3352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355 printf "%s\n" "$ac_ct_CC" >&6; }
3356 else
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 printf "%s\n" "no" >&6; }
3359 fi
3360
3361 if test "x$ac_ct_CC" = x; then
3362 CC=""
3363 else
3364 case $cross_compiling:$ac_tool_warned in
3365 yes:)
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368 ac_tool_warned=yes ;;
3369 esac
3370 CC=$ac_ct_CC
3371 fi
3372 else
3373 CC="$ac_cv_prog_CC"
3374 fi
3375
3376 if test -z "$CC"; then
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3379 set dummy ${ac_tool_prefix}cc; ac_word=$2
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 printf %s "checking for $ac_word... " >&6; }
3382 if test ${ac_cv_prog_CC+y}
3383 then :
3384 printf %s "(cached) " >&6
3385 else case e in #(
3386 e) if test -n "$CC"; then
3387 ac_cv_prog_CC="$CC" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392 IFS=$as_save_IFS
3393 case $as_dir in #(((
3394 '') as_dir=./ ;;
3395 */) ;;
3396 *) as_dir=$as_dir/ ;;
3397 esac
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_CC="${ac_tool_prefix}cc"
3401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404 done
3405 done
3406 IFS=$as_save_IFS
3407
3408 fi ;;
3409 esac
3410 fi
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 printf "%s\n" "$CC" >&6; }
3415 else
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 printf "%s\n" "no" >&6; }
3418 fi
3419
3420
3421 fi
3422 fi
3423 if test -z "$CC"; then
3424 # Extract the first word of "cc", so it can be a program name with args.
3425 set dummy cc; ac_word=$2
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 printf %s "checking for $ac_word... " >&6; }
3428 if test ${ac_cv_prog_CC+y}
3429 then :
3430 printf %s "(cached) " >&6
3431 else case e in #(
3432 e) if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434 else
3435 ac_prog_rejected=no
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439 IFS=$as_save_IFS
3440 case $as_dir in #(((
3441 '') as_dir=./ ;;
3442 */) ;;
3443 *) as_dir=$as_dir/ ;;
3444 esac
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3447 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3448 ac_prog_rejected=yes
3449 continue
3450 fi
3451 ac_cv_prog_CC="cc"
3452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3453 break 2
3454 fi
3455 done
3456 done
3457 IFS=$as_save_IFS
3458
3459 if test $ac_prog_rejected = yes; then
3460 # We found a bogon in the path, so make sure we never use it.
3461 set dummy $ac_cv_prog_CC
3462 shift
3463 if test $# != 0; then
3464 # We chose a different compiler from the bogus one.
3465 # However, it has the same basename, so the bogon will be chosen
3466 # first if we set CC to just the basename; use the full file name.
3467 shift
3468 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3469 fi
3470 fi
3471 fi ;;
3472 esac
3473 fi
3474 CC=$ac_cv_prog_CC
3475 if test -n "$CC"; then
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477 printf "%s\n" "$CC" >&6; }
3478 else
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 printf "%s\n" "no" >&6; }
3481 fi
3482
3483
3484 fi
3485 if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog in cl.exe
3488 do
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 printf %s "checking for $ac_word... " >&6; }
3493 if test ${ac_cv_prog_CC+y}
3494 then :
3495 printf %s "(cached) " >&6
3496 else case e in #(
3497 e) if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503 IFS=$as_save_IFS
3504 case $as_dir in #(((
3505 '') as_dir=./ ;;
3506 */) ;;
3507 *) as_dir=$as_dir/ ;;
3508 esac
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515 done
3516 done
3517 IFS=$as_save_IFS
3518
3519 fi ;;
3520 esac
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 printf "%s\n" "$CC" >&6; }
3526 else
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 printf "%s\n" "no" >&6; }
3529 fi
3530
3531
3532 test -n "$CC" && break
3533 done
3534 fi
3535 if test -z "$CC"; then
3536 ac_ct_CC=$CC
3537 for ac_prog in cl.exe
3538 do
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 printf %s "checking for $ac_word... " >&6; }
3543 if test ${ac_cv_prog_ac_ct_CC+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else case e in #(
3547 e) if test -n "$ac_ct_CC"; then
3548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553 IFS=$as_save_IFS
3554 case $as_dir in #(((
3555 '') as_dir=./ ;;
3556 */) ;;
3557 *) as_dir=$as_dir/ ;;
3558 esac
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_ac_ct_CC="$ac_prog"
3562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi ;;
3570 esac
3571 fi
3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 printf "%s\n" "$ac_ct_CC" >&6; }
3576 else
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 printf "%s\n" "no" >&6; }
3579 fi
3580
3581
3582 test -n "$ac_ct_CC" && break
3583 done
3584
3585 if test "x$ac_ct_CC" = x; then
3586 CC=""
3587 else
3588 case $cross_compiling:$ac_tool_warned in
3589 yes:)
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594 CC=$ac_ct_CC
3595 fi
3596 fi
3597
3598 fi
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}clang; ac_word=$2
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 printf %s "checking for $ac_word... " >&6; }
3605 if test ${ac_cv_prog_CC+y}
3606 then :
3607 printf %s "(cached) " >&6
3608 else case e in #(
3609 e) if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 case $as_dir in #(((
3617 '') as_dir=./ ;;
3618 */) ;;
3619 *) as_dir=$as_dir/ ;;
3620 esac
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_CC="${ac_tool_prefix}clang"
3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 fi ;;
3632 esac
3633 fi
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 printf "%s\n" "$CC" >&6; }
3638 else
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 printf "%s\n" "no" >&6; }
3641 fi
3642
3643
3644 fi
3645 if test -z "$ac_cv_prog_CC"; then
3646 ac_ct_CC=$CC
3647 # Extract the first word of "clang", so it can be a program name with args.
3648 set dummy clang; ac_word=$2
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 printf %s "checking for $ac_word... " >&6; }
3651 if test ${ac_cv_prog_ac_ct_CC+y}
3652 then :
3653 printf %s "(cached) " >&6
3654 else case e in #(
3655 e) if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661 IFS=$as_save_IFS
3662 case $as_dir in #(((
3663 '') as_dir=./ ;;
3664 */) ;;
3665 *) as_dir=$as_dir/ ;;
3666 esac
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_ac_ct_CC="clang"
3670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3671 break 2
3672 fi
3673 done
3674 done
3675 IFS=$as_save_IFS
3676
3677 fi ;;
3678 esac
3679 fi
3680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3681 if test -n "$ac_ct_CC"; then
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3683 printf "%s\n" "$ac_ct_CC" >&6; }
3684 else
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 printf "%s\n" "no" >&6; }
3687 fi
3688
3689 if test "x$ac_ct_CC" = x; then
3690 CC=""
3691 else
3692 case $cross_compiling:$ac_tool_warned in
3693 yes:)
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696 ac_tool_warned=yes ;;
3697 esac
3698 CC=$ac_ct_CC
3699 fi
3700 else
3701 CC="$ac_cv_prog_CC"
3702 fi
3703
3704 fi
3705
3706
3707 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3708 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3709 as_fn_error $? "no acceptable C compiler found in \$PATH
3710 See 'config.log' for more details" "$LINENO" 5; }
3711
3712 # Provide some information about the compiler.
3713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3714 set X $ac_compile
3715 ac_compiler=$2
3716 for ac_option in --version -v -V -qversion -version; do
3717 { { ac_try="$ac_compiler $ac_option >&5"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 printf "%s\n" "$ac_try_echo"; } >&5
3724 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3725 ac_status=$?
3726 if test -s conftest.err; then
3727 sed '10a\
3728 ... rest of stderr output deleted ...
3729 10q' conftest.err >conftest.er1
3730 cat conftest.er1 >&5
3731 fi
3732 rm -f conftest.er1 conftest.err
3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }
3735 done
3736
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 int
3741 main (void)
3742 {
3743
3744 ;
3745 return 0;
3746 }
3747 _ACEOF
3748 ac_clean_files_save=$ac_clean_files
3749 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3750 # Try to create an executable without -o first, disregard a.out.
3751 # It will help us diagnose broken compilers, and finding out an intuition
3752 # of exeext.
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3754 printf %s "checking whether the C compiler works... " >&6; }
3755 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3756
3757 # The possible output files:
3758 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3759
3760 ac_rmfiles=
3761 for ac_file in $ac_files
3762 do
3763 case $ac_file in
3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3765 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3766 esac
3767 done
3768 rm -f $ac_rmfiles
3769
3770 if { { ac_try="$ac_link_default"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 printf "%s\n" "$ac_try_echo"; } >&5
3777 (eval "$ac_link_default") 2>&5
3778 ac_status=$?
3779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }
3781 then :
3782 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3783 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3784 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3785 # so that the user can short-circuit this test for compilers unknown to
3786 # Autoconf.
3787 for ac_file in $ac_files ''
3788 do
3789 test -f "$ac_file" || continue
3790 case $ac_file in
3791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3792 ;;
3793 [ab].out )
3794 # We found the default executable, but exeext='' is most
3795 # certainly right.
3796 break;;
3797 *.* )
3798 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3799 then :; else
3800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3801 fi
3802 # We set ac_cv_exeext here because the later test for it is not
3803 # safe: cross compilers may not add the suffix if given an '-o'
3804 # argument, so we may need to know it at that point already.
3805 # Even if this section looks crufty: it has the advantage of
3806 # actually working.
3807 break;;
3808 * )
3809 break;;
3810 esac
3811 done
3812 test "$ac_cv_exeext" = no && ac_cv_exeext=
3813
3814 else case e in #(
3815 e) ac_file='' ;;
3816 esac
3817 fi
3818 if test -z "$ac_file"
3819 then :
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 printf "%s\n" "no" >&6; }
3822 printf "%s\n" "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3826 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3827 as_fn_error 77 "C compiler cannot create executables
3828 See 'config.log' for more details" "$LINENO" 5; }
3829 else case e in #(
3830 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3831 printf "%s\n" "yes" >&6; } ;;
3832 esac
3833 fi
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835 printf %s "checking for C compiler default output file name... " >&6; }
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3837 printf "%s\n" "$ac_file" >&6; }
3838 ac_exeext=$ac_cv_exeext
3839
3840 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3841 ac_clean_files=$ac_clean_files_save
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843 printf %s "checking for suffix of executables... " >&6; }
3844 if { { ac_try="$ac_link"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 printf "%s\n" "$ac_try_echo"; } >&5
3851 (eval "$ac_link") 2>&5
3852 ac_status=$?
3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 then :
3856 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3857 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3858 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3859 # 'rm'.
3860 for ac_file in conftest.exe conftest conftest.*; do
3861 test -f "$ac_file" || continue
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3865 break;;
3866 * ) break;;
3867 esac
3868 done
3869 else case e in #(
3870 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3871 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3873 See 'config.log' for more details" "$LINENO" 5; } ;;
3874 esac
3875 fi
3876 rm -f conftest conftest$ac_cv_exeext
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3878 printf "%s\n" "$ac_cv_exeext" >&6; }
3879
3880 rm -f conftest.$ac_ext
3881 EXEEXT=$ac_cv_exeext
3882 ac_exeext=$EXEEXT
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885 #include <stdio.h>
3886 int
3887 main (void)
3888 {
3889 FILE *f = fopen ("conftest.out", "w");
3890 if (!f)
3891 return 1;
3892 return ferror (f) || fclose (f) != 0;
3893
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 ac_clean_files="$ac_clean_files conftest.out"
3899 # Check that the compiler produces executables we can run. If not, either
3900 # the compiler is broken, or we cross compile.
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3902 printf %s "checking whether we are cross compiling... " >&6; }
3903 if test "$cross_compiling" != yes; then
3904 { { ac_try="$ac_link"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 printf "%s\n" "$ac_try_echo"; } >&5
3911 (eval "$ac_link") 2>&5
3912 ac_status=$?
3913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }
3915 if { ac_try='./conftest$ac_cv_exeext'
3916 { { case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 printf "%s\n" "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3923 ac_status=$?
3924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3926 cross_compiling=no
3927 else
3928 if test "$cross_compiling" = maybe; then
3929 cross_compiling=yes
3930 else
3931 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3932 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3933 as_fn_error 77 "cannot run C compiled programs.
3934 If you meant to cross compile, use '--host'.
3935 See 'config.log' for more details" "$LINENO" 5; }
3936 fi
3937 fi
3938 fi
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3940 printf "%s\n" "$cross_compiling" >&6; }
3941
3942 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3943 conftest.o conftest.obj conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3946 printf %s "checking for suffix of object files... " >&6; }
3947 if test ${ac_cv_objext+y}
3948 then :
3949 printf %s "(cached) " >&6
3950 else case e in #(
3951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953
3954 int
3955 main (void)
3956 {
3957
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 rm -f conftest.o conftest.obj
3963 if { { ac_try="$ac_compile"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 printf "%s\n" "$ac_try_echo"; } >&5
3970 (eval "$ac_compile") 2>&5
3971 ac_status=$?
3972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }
3974 then :
3975 for ac_file in conftest.o conftest.obj conftest.*; do
3976 test -f "$ac_file" || continue;
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3979 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3980 break;;
3981 esac
3982 done
3983 else case e in #(
3984 e) printf "%s\n" "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3988 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3989 as_fn_error $? "cannot compute suffix of object files: cannot compile
3990 See 'config.log' for more details" "$LINENO" 5; } ;;
3991 esac
3992 fi
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3994 esac
3995 fi
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3997 printf "%s\n" "$ac_cv_objext" >&6; }
3998 OBJEXT=$ac_cv_objext
3999 ac_objext=$OBJEXT
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4001 printf %s "checking whether the compiler supports GNU C... " >&6; }
4002 if test ${ac_cv_c_compiler_gnu+y}
4003 then :
4004 printf %s "(cached) " >&6
4005 else case e in #(
4006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008
4009 int
4010 main (void)
4011 {
4012 #ifndef __GNUC__
4013 choke me
4014 #endif
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"
4021 then :
4022 ac_compiler_gnu=yes
4023 else case e in #(
4024 e) ac_compiler_gnu=no ;;
4025 esac
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4029 ;;
4030 esac
4031 fi
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4033 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035
4036 if test $ac_compiler_gnu = yes; then
4037 GCC=yes
4038 else
4039 GCC=
4040 fi
4041 ac_test_CFLAGS=${CFLAGS+y}
4042 ac_save_CFLAGS=$CFLAGS
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4044 printf %s "checking whether $CC accepts -g... " >&6; }
4045 if test ${ac_cv_prog_cc_g+y}
4046 then :
4047 printf %s "(cached) " >&6
4048 else case e in #(
4049 e) ac_save_c_werror_flag=$ac_c_werror_flag
4050 ac_c_werror_flag=yes
4051 ac_cv_prog_cc_g=no
4052 CFLAGS="-g"
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055
4056 int
4057 main (void)
4058 {
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"
4065 then :
4066 ac_cv_prog_cc_g=yes
4067 else case e in #(
4068 e) CFLAGS=""
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main (void)
4074 {
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"
4081 then :
4082
4083 else case e in #(
4084 e) ac_c_werror_flag=$ac_save_c_werror_flag
4085 CFLAGS="-g"
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088
4089 int
4090 main (void)
4091 {
4092
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"
4098 then :
4099 ac_cv_prog_cc_g=yes
4100 fi
4101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4102 esac
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4105 esac
4106 fi
4107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4108 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4109 esac
4110 fi
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4112 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4113 if test $ac_test_CFLAGS; then
4114 CFLAGS=$ac_save_CFLAGS
4115 elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4117 CFLAGS="-g -O2"
4118 else
4119 CFLAGS="-g"
4120 fi
4121 else
4122 if test "$GCC" = yes; then
4123 CFLAGS="-O2"
4124 else
4125 CFLAGS=
4126 fi
4127 fi
4128 ac_prog_cc_stdc=no
4129 if test x$ac_prog_cc_stdc = xno
4130 then :
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4132 printf %s "checking for $CC option to enable C11 features... " >&6; }
4133 if test ${ac_cv_prog_cc_c11+y}
4134 then :
4135 printf %s "(cached) " >&6
4136 else case e in #(
4137 e) ac_cv_prog_cc_c11=no
4138 ac_save_CC=$CC
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 $ac_c_conftest_c11_program
4142 _ACEOF
4143 for ac_arg in '' -std=gnu11
4144 do
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"
4147 then :
4148 ac_cv_prog_cc_c11=$ac_arg
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext conftest.beam
4151 test "x$ac_cv_prog_cc_c11" != "xno" && break
4152 done
4153 rm -f conftest.$ac_ext
4154 CC=$ac_save_CC ;;
4155 esac
4156 fi
4157
4158 if test "x$ac_cv_prog_cc_c11" = xno
4159 then :
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4161 printf "%s\n" "unsupported" >&6; }
4162 else case e in #(
4163 e) if test "x$ac_cv_prog_cc_c11" = x
4164 then :
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4166 printf "%s\n" "none needed" >&6; }
4167 else case e in #(
4168 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4169 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4170 CC="$CC $ac_cv_prog_cc_c11" ;;
4171 esac
4172 fi
4173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4174 ac_prog_cc_stdc=c11 ;;
4175 esac
4176 fi
4177 fi
4178 if test x$ac_prog_cc_stdc = xno
4179 then :
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4181 printf %s "checking for $CC option to enable C99 features... " >&6; }
4182 if test ${ac_cv_prog_cc_c99+y}
4183 then :
4184 printf %s "(cached) " >&6
4185 else case e in #(
4186 e) ac_cv_prog_cc_c99=no
4187 ac_save_CC=$CC
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 $ac_c_conftest_c99_program
4191 _ACEOF
4192 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4193 do
4194 CC="$ac_save_CC $ac_arg"
4195 if ac_fn_c_try_compile "$LINENO"
4196 then :
4197 ac_cv_prog_cc_c99=$ac_arg
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext conftest.beam
4200 test "x$ac_cv_prog_cc_c99" != "xno" && break
4201 done
4202 rm -f conftest.$ac_ext
4203 CC=$ac_save_CC ;;
4204 esac
4205 fi
4206
4207 if test "x$ac_cv_prog_cc_c99" = xno
4208 then :
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4210 printf "%s\n" "unsupported" >&6; }
4211 else case e in #(
4212 e) if test "x$ac_cv_prog_cc_c99" = x
4213 then :
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4215 printf "%s\n" "none needed" >&6; }
4216 else case e in #(
4217 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4218 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4219 CC="$CC $ac_cv_prog_cc_c99" ;;
4220 esac
4221 fi
4222 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4223 ac_prog_cc_stdc=c99 ;;
4224 esac
4225 fi
4226 fi
4227 if test x$ac_prog_cc_stdc = xno
4228 then :
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4230 printf %s "checking for $CC option to enable C89 features... " >&6; }
4231 if test ${ac_cv_prog_cc_c89+y}
4232 then :
4233 printf %s "(cached) " >&6
4234 else case e in #(
4235 e) ac_cv_prog_cc_c89=no
4236 ac_save_CC=$CC
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 $ac_c_conftest_c89_program
4240 _ACEOF
4241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4242 do
4243 CC="$ac_save_CC $ac_arg"
4244 if ac_fn_c_try_compile "$LINENO"
4245 then :
4246 ac_cv_prog_cc_c89=$ac_arg
4247 fi
4248 rm -f core conftest.err conftest.$ac_objext conftest.beam
4249 test "x$ac_cv_prog_cc_c89" != "xno" && break
4250 done
4251 rm -f conftest.$ac_ext
4252 CC=$ac_save_CC ;;
4253 esac
4254 fi
4255
4256 if test "x$ac_cv_prog_cc_c89" = xno
4257 then :
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4259 printf "%s\n" "unsupported" >&6; }
4260 else case e in #(
4261 e) if test "x$ac_cv_prog_cc_c89" = x
4262 then :
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4264 printf "%s\n" "none needed" >&6; }
4265 else case e in #(
4266 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4267 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4268 CC="$CC $ac_cv_prog_cc_c89" ;;
4269 esac
4270 fi
4271 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4272 ac_prog_cc_stdc=c89 ;;
4273 esac
4274 fi
4275 fi
4276
4277 ac_ext=c
4278 ac_cpp='$CPP $CPPFLAGS'
4279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282
4283
4284
4285
4286
4287
4288
4289 ac_ext=cpp
4290 ac_cpp='$CXXCPP $CPPFLAGS'
4291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4294 if test -z "$CXX"; then
4295 if test -n "$CCC"; then
4296 CXX=$CCC
4297 else
4298 if test -n "$ac_tool_prefix"; then
4299 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4300 do
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 printf %s "checking for $ac_word... " >&6; }
4305 if test ${ac_cv_prog_CXX+y}
4306 then :
4307 printf %s "(cached) " >&6
4308 else case e in #(
4309 e) if test -n "$CXX"; then
4310 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315 IFS=$as_save_IFS
4316 case $as_dir in #(((
4317 '') as_dir=./ ;;
4318 */) ;;
4319 *) as_dir=$as_dir/ ;;
4320 esac
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 fi ;;
4332 esac
4333 fi
4334 CXX=$ac_cv_prog_CXX
4335 if test -n "$CXX"; then
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4337 printf "%s\n" "$CXX" >&6; }
4338 else
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 printf "%s\n" "no" >&6; }
4341 fi
4342
4343
4344 test -n "$CXX" && break
4345 done
4346 fi
4347 if test -z "$CXX"; then
4348 ac_ct_CXX=$CXX
4349 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4350 do
4351 # Extract the first word of "$ac_prog", so it can be a program name with args.
4352 set dummy $ac_prog; ac_word=$2
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 printf %s "checking for $ac_word... " >&6; }
4355 if test ${ac_cv_prog_ac_ct_CXX+y}
4356 then :
4357 printf %s "(cached) " >&6
4358 else case e in #(
4359 e) if test -n "$ac_ct_CXX"; then
4360 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365 IFS=$as_save_IFS
4366 case $as_dir in #(((
4367 '') as_dir=./ ;;
4368 */) ;;
4369 *) as_dir=$as_dir/ ;;
4370 esac
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4373 ac_cv_prog_ac_ct_CXX="$ac_prog"
4374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4375 break 2
4376 fi
4377 done
4378 done
4379 IFS=$as_save_IFS
4380
4381 fi ;;
4382 esac
4383 fi
4384 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4385 if test -n "$ac_ct_CXX"; then
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4387 printf "%s\n" "$ac_ct_CXX" >&6; }
4388 else
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 printf "%s\n" "no" >&6; }
4391 fi
4392
4393
4394 test -n "$ac_ct_CXX" && break
4395 done
4396
4397 if test "x$ac_ct_CXX" = x; then
4398 CXX="g++"
4399 else
4400 case $cross_compiling:$ac_tool_warned in
4401 yes:)
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4403 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4404 ac_tool_warned=yes ;;
4405 esac
4406 CXX=$ac_ct_CXX
4407 fi
4408 fi
4409
4410 fi
4411 fi
4412 # Provide some information about the compiler.
4413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4414 set X $ac_compile
4415 ac_compiler=$2
4416 for ac_option in --version -v -V -qversion; do
4417 { { ac_try="$ac_compiler $ac_option >&5"
4418 case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 printf "%s\n" "$ac_try_echo"; } >&5
4424 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4425 ac_status=$?
4426 if test -s conftest.err; then
4427 sed '10a\
4428 ... rest of stderr output deleted ...
4429 10q' conftest.err >conftest.er1
4430 cat conftest.er1 >&5
4431 fi
4432 rm -f conftest.er1 conftest.err
4433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }
4435 done
4436
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4438 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4439 if test ${ac_cv_cxx_compiler_gnu+y}
4440 then :
4441 printf %s "(cached) " >&6
4442 else case e in #(
4443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445
4446 int
4447 main (void)
4448 {
4449 #ifndef __GNUC__
4450 choke me
4451 #endif
4452
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_cxx_try_compile "$LINENO"
4458 then :
4459 ac_compiler_gnu=yes
4460 else case e in #(
4461 e) ac_compiler_gnu=no ;;
4462 esac
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4465 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4466 ;;
4467 esac
4468 fi
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4470 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4472
4473 if test $ac_compiler_gnu = yes; then
4474 GXX=yes
4475 else
4476 GXX=
4477 fi
4478 ac_test_CXXFLAGS=${CXXFLAGS+y}
4479 ac_save_CXXFLAGS=$CXXFLAGS
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4481 printf %s "checking whether $CXX accepts -g... " >&6; }
4482 if test ${ac_cv_prog_cxx_g+y}
4483 then :
4484 printf %s "(cached) " >&6
4485 else case e in #(
4486 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4487 ac_cxx_werror_flag=yes
4488 ac_cv_prog_cxx_g=no
4489 CXXFLAGS="-g"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492
4493 int
4494 main (void)
4495 {
4496
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"
4502 then :
4503 ac_cv_prog_cxx_g=yes
4504 else case e in #(
4505 e) CXXFLAGS=""
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508
4509 int
4510 main (void)
4511 {
4512
4513 ;
4514 return 0;
4515 }
4516 _ACEOF
4517 if ac_fn_cxx_try_compile "$LINENO"
4518 then :
4519
4520 else case e in #(
4521 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4522 CXXFLAGS="-g"
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 int
4527 main (void)
4528 {
4529
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_cxx_try_compile "$LINENO"
4535 then :
4536 ac_cv_prog_cxx_g=yes
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4539 esac
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4542 esac
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4545 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4546 esac
4547 fi
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4549 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4550 if test $ac_test_CXXFLAGS; then
4551 CXXFLAGS=$ac_save_CXXFLAGS
4552 elif test $ac_cv_prog_cxx_g = yes; then
4553 if test "$GXX" = yes; then
4554 CXXFLAGS="-g -O2"
4555 else
4556 CXXFLAGS="-g"
4557 fi
4558 else
4559 if test "$GXX" = yes; then
4560 CXXFLAGS="-O2"
4561 else
4562 CXXFLAGS=
4563 fi
4564 fi
4565 ac_prog_cxx_stdcxx=no
4566 if test x$ac_prog_cxx_stdcxx = xno
4567 then :
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4569 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4570 if test ${ac_cv_prog_cxx_cxx11+y}
4571 then :
4572 printf %s "(cached) " >&6
4573 else case e in #(
4574 e) ac_cv_prog_cxx_cxx11=no
4575 ac_save_CXX=$CXX
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578 $ac_cxx_conftest_cxx11_program
4579 _ACEOF
4580 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4581 do
4582 CXX="$ac_save_CXX $ac_arg"
4583 if ac_fn_cxx_try_compile "$LINENO"
4584 then :
4585 ac_cv_prog_cxx_cxx11=$ac_arg
4586 fi
4587 rm -f core conftest.err conftest.$ac_objext conftest.beam
4588 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4589 done
4590 rm -f conftest.$ac_ext
4591 CXX=$ac_save_CXX ;;
4592 esac
4593 fi
4594
4595 if test "x$ac_cv_prog_cxx_cxx11" = xno
4596 then :
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4598 printf "%s\n" "unsupported" >&6; }
4599 else case e in #(
4600 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4601 then :
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4603 printf "%s\n" "none needed" >&6; }
4604 else case e in #(
4605 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4606 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4607 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4608 esac
4609 fi
4610 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4611 ac_prog_cxx_stdcxx=cxx11 ;;
4612 esac
4613 fi
4614 fi
4615 if test x$ac_prog_cxx_stdcxx = xno
4616 then :
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4618 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4619 if test ${ac_cv_prog_cxx_cxx98+y}
4620 then :
4621 printf %s "(cached) " >&6
4622 else case e in #(
4623 e) ac_cv_prog_cxx_cxx98=no
4624 ac_save_CXX=$CXX
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 $ac_cxx_conftest_cxx98_program
4628 _ACEOF
4629 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4630 do
4631 CXX="$ac_save_CXX $ac_arg"
4632 if ac_fn_cxx_try_compile "$LINENO"
4633 then :
4634 ac_cv_prog_cxx_cxx98=$ac_arg
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext conftest.beam
4637 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4638 done
4639 rm -f conftest.$ac_ext
4640 CXX=$ac_save_CXX ;;
4641 esac
4642 fi
4643
4644 if test "x$ac_cv_prog_cxx_cxx98" = xno
4645 then :
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4647 printf "%s\n" "unsupported" >&6; }
4648 else case e in #(
4649 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4650 then :
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4652 printf "%s\n" "none needed" >&6; }
4653 else case e in #(
4654 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4655 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4656 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4657 esac
4658 fi
4659 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4660 ac_prog_cxx_stdcxx=cxx98 ;;
4661 esac
4662 fi
4663 fi
4664
4665 ac_ext=c
4666 ac_cpp='$CPP $CPPFLAGS'
4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670
4671 ac_ext=c
4672 ac_cpp='$CPP $CPPFLAGS'
4673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676
4677
4678 ac_ext=cpp
4679 ac_cpp='$CXXCPP $CPPFLAGS'
4680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4683
4684
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687
4688 int
4689 main (void)
4690 {
4691
4692 ;
4693 return 0;
4694 }
4695 _ACEOF
4696 if ac_fn_cxx_try_link "$LINENO"
4697 then :
4698
4699 else case e in #(
4700 e) as_fn_error $? "C++ compiler does not work" "$LINENO" 5 ;;
4701 esac
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4704 conftest$ac_exeext conftest.$ac_ext
4705 ac_ext=c
4706 ac_cpp='$CPP $CPPFLAGS'
4707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710
4711
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 printf %s "checking for $ac_word... " >&6; }
4717 if test ${ac_cv_prog_RANLIB+y}
4718 then :
4719 printf %s "(cached) " >&6
4720 else case e in #(
4721 e) if test -n "$RANLIB"; then
4722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727 IFS=$as_save_IFS
4728 case $as_dir in #(((
4729 '') as_dir=./ ;;
4730 */) ;;
4731 *) as_dir=$as_dir/ ;;
4732 esac
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi ;;
4744 esac
4745 fi
4746 RANLIB=$ac_cv_prog_RANLIB
4747 if test -n "$RANLIB"; then
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4749 printf "%s\n" "$RANLIB" >&6; }
4750 else
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 printf "%s\n" "no" >&6; }
4753 fi
4754
4755
4756 fi
4757 if test -z "$ac_cv_prog_RANLIB"; then
4758 ac_ct_RANLIB=$RANLIB
4759 # Extract the first word of "ranlib", so it can be a program name with args.
4760 set dummy ranlib; ac_word=$2
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 printf %s "checking for $ac_word... " >&6; }
4763 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4764 then :
4765 printf %s "(cached) " >&6
4766 else case e in #(
4767 e) if test -n "$ac_ct_RANLIB"; then
4768 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773 IFS=$as_save_IFS
4774 case $as_dir in #(((
4775 '') as_dir=./ ;;
4776 */) ;;
4777 *) as_dir=$as_dir/ ;;
4778 esac
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_ac_ct_RANLIB="ranlib"
4782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4783 break 2
4784 fi
4785 done
4786 done
4787 IFS=$as_save_IFS
4788
4789 fi ;;
4790 esac
4791 fi
4792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4793 if test -n "$ac_ct_RANLIB"; then
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4795 printf "%s\n" "$ac_ct_RANLIB" >&6; }
4796 else
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 printf "%s\n" "no" >&6; }
4799 fi
4800
4801 if test "x$ac_ct_RANLIB" = x; then
4802 RANLIB=":"
4803 else
4804 case $cross_compiling:$ac_tool_warned in
4805 yes:)
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4807 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4808 ac_tool_warned=yes ;;
4809 esac
4810 RANLIB=$ac_ct_RANLIB
4811 fi
4812 else
4813 RANLIB="$ac_cv_prog_RANLIB"
4814 fi
4815
4816 if test -n "$ac_tool_prefix"; then
4817 for ac_prog in ar gar
4818 do
4819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 printf %s "checking for $ac_word... " >&6; }
4823 if test ${ac_cv_prog_AR+y}
4824 then :
4825 printf %s "(cached) " >&6
4826 else case e in #(
4827 e) if test -n "$AR"; then
4828 ac_cv_prog_AR="$AR" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 case $as_dir in #(((
4835 '') as_dir=./ ;;
4836 */) ;;
4837 *) as_dir=$as_dir/ ;;
4838 esac
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4841 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4843 break 2
4844 fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi ;;
4850 esac
4851 fi
4852 AR=$ac_cv_prog_AR
4853 if test -n "$AR"; then
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4855 printf "%s\n" "$AR" >&6; }
4856 else
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 printf "%s\n" "no" >&6; }
4859 fi
4860
4861
4862 test -n "$AR" && break
4863 done
4864 fi
4865 if test -z "$AR"; then
4866 ac_ct_AR=$AR
4867 for ac_prog in ar gar
4868 do
4869 # Extract the first word of "$ac_prog", so it can be a program name with args.
4870 set dummy $ac_prog; ac_word=$2
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 printf %s "checking for $ac_word... " >&6; }
4873 if test ${ac_cv_prog_ac_ct_AR+y}
4874 then :
4875 printf %s "(cached) " >&6
4876 else case e in #(
4877 e) if test -n "$ac_ct_AR"; then
4878 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883 IFS=$as_save_IFS
4884 case $as_dir in #(((
4885 '') as_dir=./ ;;
4886 */) ;;
4887 *) as_dir=$as_dir/ ;;
4888 esac
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_ac_ct_AR="$ac_prog"
4892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895 done
4896 done
4897 IFS=$as_save_IFS
4898
4899 fi ;;
4900 esac
4901 fi
4902 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4903 if test -n "$ac_ct_AR"; then
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4905 printf "%s\n" "$ac_ct_AR" >&6; }
4906 else
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 printf "%s\n" "no" >&6; }
4909 fi
4910
4911
4912 test -n "$ac_ct_AR" && break
4913 done
4914
4915 if test "x$ac_ct_AR" = x; then
4916 AR=":"
4917 else
4918 case $cross_compiling:$ac_tool_warned in
4919 yes:)
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922 ac_tool_warned=yes ;;
4923 esac
4924 AR=$ac_ct_AR
4925 fi
4926 fi
4927
4928
4929 if test "$AR_FLAGS" = ""; then AR_FLAGS="rv"; fi
4930
4931 if test "$LD" = ""; then LD="$CXX"; fi
4932
4933 if test "$LDOUT" = ""; then LDOUT="-o "; fi
4934
4935 if test "$OBJEXT" = ""; then OBJEXT='o'; fi
4936
4937 if test "$LIBEXT" = ""; then LIBEXT='a'; fi
4938
4939 if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
4940
4941 if test "$CC_OUT" = ""; then CC_OUT="-c -o "; fi
4942
4943 if test "$CC_INC" = ""; then CC_INC="-I"; fi
4944
4945 if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
4946
4947 if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
4948
4949 if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
4950
4951
4952
4953
4954
4955
4956 case $host in
4957 *mingw* | *cygw* | *win32* | *w32* )
4958 if pwd -W 2&> /dev/null; then
4959 ac_pjdir=`pwd -W`
4960 else
4961 # We're probably cross-compiling mingw on Linux
4962 ac_pjdir=`pwd`
4963 fi
4964 ;;
4965 *)
4966 ac_pjdir=`pwd`
4967 ;;
4968 esac
4969
4970
4971 case $target in
4972 *mingw* | *cygw* | *win32* | *w32* )
4973 ac_shlib_suffix=dll
4974 ;;
4975 *darwin*)
4976 ac_shlib_suffix=dylib
4977 ;;
4978 *)
4979 ac_shlib_suffix=so
4980 ;;
4981 esac
4982
4983
4984 if test "$build" = "$host"; then
4985 ac_cross_compile=
4986 else
4987 ac_cross_compile=${host_orig}-
4988 fi
4989
4990
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4992 printf %s "checking for pthread_create in -lpthread... " >&6; }
4993 if test ${ac_cv_lib_pthread_pthread_create+y}
4994 then :
4995 printf %s "(cached) " >&6
4996 else case e in #(
4997 e) ac_check_lib_save_LIBS=$LIBS
4998 LIBS="-lpthread $LIBS"
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001
5002 /* Override any GCC internal prototype to avoid an error.
5003 Use char because int might match the return type of a GCC
5004 builtin and then its argument prototype would still apply.
5005 The 'extern "C"' is for builds by C++ compilers;
5006 although this is not generally supported in C code supporting it here
5007 has little cost and some practical benefit (sr 110532). */
5008 #ifdef __cplusplus
5009 extern "C"
5010 #endif
5011 char pthread_create (void);
5012 int
5013 main (void)
5014 {
5015 return pthread_create ();
5016 ;
5017 return 0;
5018 }
5019 _ACEOF
5020 if ac_fn_c_try_link "$LINENO"
5021 then :
5022 ac_cv_lib_pthread_pthread_create=yes
5023 else case e in #(
5024 e) ac_cv_lib_pthread_pthread_create=no ;;
5025 esac
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5028 conftest$ac_exeext conftest.$ac_ext
5029 LIBS=$ac_check_lib_save_LIBS ;;
5030 esac
5031 fi
5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5033 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
5034 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
5035 then :
5036 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
5037
5038 LIBS="-lpthread $LIBS"
5039
5040 fi
5041
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
5043 printf %s "checking for puts in -lwsock32... " >&6; }
5044 if test ${ac_cv_lib_wsock32_puts+y}
5045 then :
5046 printf %s "(cached) " >&6
5047 else case e in #(
5048 e) ac_check_lib_save_LIBS=$LIBS
5049 LIBS="-lwsock32 $LIBS"
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052
5053 /* Override any GCC internal prototype to avoid an error.
5054 Use char because int might match the return type of a GCC
5055 builtin and then its argument prototype would still apply.
5056 The 'extern "C"' is for builds by C++ compilers;
5057 although this is not generally supported in C code supporting it here
5058 has little cost and some practical benefit (sr 110532). */
5059 #ifdef __cplusplus
5060 extern "C"
5061 #endif
5062 char puts (void);
5063 int
5064 main (void)
5065 {
5066 return puts ();
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 if ac_fn_c_try_link "$LINENO"
5072 then :
5073 ac_cv_lib_wsock32_puts=yes
5074 else case e in #(
5075 e) ac_cv_lib_wsock32_puts=no ;;
5076 esac
5077 fi
5078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5079 conftest$ac_exeext conftest.$ac_ext
5080 LIBS=$ac_check_lib_save_LIBS ;;
5081 esac
5082 fi
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
5084 printf "%s\n" "$ac_cv_lib_wsock32_puts" >&6; }
5085 if test "x$ac_cv_lib_wsock32_puts" = xyes
5086 then :
5087 printf "%s\n" "#define HAVE_LIBWSOCK32 1" >>confdefs.h
5088
5089 LIBS="-lwsock32 $LIBS"
5090
5091 fi
5092
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
5094 printf %s "checking for puts in -lws2_32... " >&6; }
5095 if test ${ac_cv_lib_ws2_32_puts+y}
5096 then :
5097 printf %s "(cached) " >&6
5098 else case e in #(
5099 e) ac_check_lib_save_LIBS=$LIBS
5100 LIBS="-lws2_32 $LIBS"
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103
5104 /* Override any GCC internal prototype to avoid an error.
5105 Use char because int might match the return type of a GCC
5106 builtin and then its argument prototype would still apply.
5107 The 'extern "C"' is for builds by C++ compilers;
5108 although this is not generally supported in C code supporting it here
5109 has little cost and some practical benefit (sr 110532). */
5110 #ifdef __cplusplus
5111 extern "C"
5112 #endif
5113 char puts (void);
5114 int
5115 main (void)
5116 {
5117 return puts ();
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_c_try_link "$LINENO"
5123 then :
5124 ac_cv_lib_ws2_32_puts=yes
5125 else case e in #(
5126 e) ac_cv_lib_ws2_32_puts=no ;;
5127 esac
5128 fi
5129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5130 conftest$ac_exeext conftest.$ac_ext
5131 LIBS=$ac_check_lib_save_LIBS ;;
5132 esac
5133 fi
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
5135 printf "%s\n" "$ac_cv_lib_ws2_32_puts" >&6; }
5136 if test "x$ac_cv_lib_ws2_32_puts" = xyes
5137 then :
5138 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
5139
5140 LIBS="-lws2_32 $LIBS"
5141
5142 fi
5143
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
5145 printf %s "checking for puts in -lole32... " >&6; }
5146 if test ${ac_cv_lib_ole32_puts+y}
5147 then :
5148 printf %s "(cached) " >&6
5149 else case e in #(
5150 e) ac_check_lib_save_LIBS=$LIBS
5151 LIBS="-lole32 $LIBS"
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154
5155 /* Override any GCC internal prototype to avoid an error.
5156 Use char because int might match the return type of a GCC
5157 builtin and then its argument prototype would still apply.
5158 The 'extern "C"' is for builds by C++ compilers;
5159 although this is not generally supported in C code supporting it here
5160 has little cost and some practical benefit (sr 110532). */
5161 #ifdef __cplusplus
5162 extern "C"
5163 #endif
5164 char puts (void);
5165 int
5166 main (void)
5167 {
5168 return puts ();
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 if ac_fn_c_try_link "$LINENO"
5174 then :
5175 ac_cv_lib_ole32_puts=yes
5176 else case e in #(
5177 e) ac_cv_lib_ole32_puts=no ;;
5178 esac
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5181 conftest$ac_exeext conftest.$ac_ext
5182 LIBS=$ac_check_lib_save_LIBS ;;
5183 esac
5184 fi
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
5186 printf "%s\n" "$ac_cv_lib_ole32_puts" >&6; }
5187 if test "x$ac_cv_lib_ole32_puts" = xyes
5188 then :
5189 printf "%s\n" "#define HAVE_LIBOLE32 1" >>confdefs.h
5190
5191 LIBS="-lole32 $LIBS"
5192
5193 fi
5194
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
5196 printf %s "checking for puts in -lwinmm... " >&6; }
5197 if test ${ac_cv_lib_winmm_puts+y}
5198 then :
5199 printf %s "(cached) " >&6
5200 else case e in #(
5201 e) ac_check_lib_save_LIBS=$LIBS
5202 LIBS="-lwinmm $LIBS"
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205
5206 /* Override any GCC internal prototype to avoid an error.
5207 Use char because int might match the return type of a GCC
5208 builtin and then its argument prototype would still apply.
5209 The 'extern "C"' is for builds by C++ compilers;
5210 although this is not generally supported in C code supporting it here
5211 has little cost and some practical benefit (sr 110532). */
5212 #ifdef __cplusplus
5213 extern "C"
5214 #endif
5215 char puts (void);
5216 int
5217 main (void)
5218 {
5219 return puts ();
5220 ;
5221 return 0;
5222 }
5223 _ACEOF
5224 if ac_fn_c_try_link "$LINENO"
5225 then :
5226 ac_cv_lib_winmm_puts=yes
5227 else case e in #(
5228 e) ac_cv_lib_winmm_puts=no ;;
5229 esac
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5232 conftest$ac_exeext conftest.$ac_ext
5233 LIBS=$ac_check_lib_save_LIBS ;;
5234 esac
5235 fi
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
5237 printf "%s\n" "$ac_cv_lib_winmm_puts" >&6; }
5238 if test "x$ac_cv_lib_winmm_puts" = xyes
5239 then :
5240 printf "%s\n" "#define HAVE_LIBWINMM 1" >>confdefs.h
5241
5242 LIBS="-lwinmm $LIBS"
5243
5244 fi
5245
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
5247 printf %s "checking for puts in -lsocket... " >&6; }
5248 if test ${ac_cv_lib_socket_puts+y}
5249 then :
5250 printf %s "(cached) " >&6
5251 else case e in #(
5252 e) ac_check_lib_save_LIBS=$LIBS
5253 LIBS="-lsocket $LIBS"
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256
5257 /* Override any GCC internal prototype to avoid an error.
5258 Use char because int might match the return type of a GCC
5259 builtin and then its argument prototype would still apply.
5260 The 'extern "C"' is for builds by C++ compilers;
5261 although this is not generally supported in C code supporting it here
5262 has little cost and some practical benefit (sr 110532). */
5263 #ifdef __cplusplus
5264 extern "C"
5265 #endif
5266 char puts (void);
5267 int
5268 main (void)
5269 {
5270 return puts ();
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 if ac_fn_c_try_link "$LINENO"
5276 then :
5277 ac_cv_lib_socket_puts=yes
5278 else case e in #(
5279 e) ac_cv_lib_socket_puts=no ;;
5280 esac
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5283 conftest$ac_exeext conftest.$ac_ext
5284 LIBS=$ac_check_lib_save_LIBS ;;
5285 esac
5286 fi
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
5288 printf "%s\n" "$ac_cv_lib_socket_puts" >&6; }
5289 if test "x$ac_cv_lib_socket_puts" = xyes
5290 then :
5291 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
5292
5293 LIBS="-lsocket $LIBS"
5294
5295 fi
5296
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
5298 printf %s "checking for puts in -lrt... " >&6; }
5299 if test ${ac_cv_lib_rt_puts+y}
5300 then :
5301 printf %s "(cached) " >&6
5302 else case e in #(
5303 e) ac_check_lib_save_LIBS=$LIBS
5304 LIBS="-lrt $LIBS"
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307
5308 /* Override any GCC internal prototype to avoid an error.
5309 Use char because int might match the return type of a GCC
5310 builtin and then its argument prototype would still apply.
5311 The 'extern "C"' is for builds by C++ compilers;
5312 although this is not generally supported in C code supporting it here
5313 has little cost and some practical benefit (sr 110532). */
5314 #ifdef __cplusplus
5315 extern "C"
5316 #endif
5317 char puts (void);
5318 int
5319 main (void)
5320 {
5321 return puts ();
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_link "$LINENO"
5327 then :
5328 ac_cv_lib_rt_puts=yes
5329 else case e in #(
5330 e) ac_cv_lib_rt_puts=no ;;
5331 esac
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5334 conftest$ac_exeext conftest.$ac_ext
5335 LIBS=$ac_check_lib_save_LIBS ;;
5336 esac
5337 fi
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
5339 printf "%s\n" "$ac_cv_lib_rt_puts" >&6; }
5340 if test "x$ac_cv_lib_rt_puts" = xyes
5341 then :
5342 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
5343
5344 LIBS="-lrt $LIBS"
5345
5346 fi
5347
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5349 printf %s "checking for sin in -lm... " >&6; }
5350 if test ${ac_cv_lib_m_sin+y}
5351 then :
5352 printf %s "(cached) " >&6
5353 else case e in #(
5354 e) ac_check_lib_save_LIBS=$LIBS
5355 LIBS="-lm $LIBS"
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358
5359 /* Override any GCC internal prototype to avoid an error.
5360 Use char because int might match the return type of a GCC
5361 builtin and then its argument prototype would still apply.
5362 The 'extern "C"' is for builds by C++ compilers;
5363 although this is not generally supported in C code supporting it here
5364 has little cost and some practical benefit (sr 110532). */
5365 #ifdef __cplusplus
5366 extern "C"
5367 #endif
5368 char sin (void);
5369 int
5370 main (void)
5371 {
5372 return sin ();
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_link "$LINENO"
5378 then :
5379 ac_cv_lib_m_sin=yes
5380 else case e in #(
5381 e) ac_cv_lib_m_sin=no ;;
5382 esac
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5385 conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS ;;
5387 esac
5388 fi
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5390 printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
5391 if test "x$ac_cv_lib_m_sin" = xyes
5392 then :
5393 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
5394
5395 LIBS="-lm $LIBS"
5396
5397 fi
5398
5399 for ac_prog in $host_cpu-$host_os-pkg-config $host-pkg-config pkg-config
5400 do
5401 # Extract the first word of "$ac_prog", so it can be a program name with args.
5402 set dummy $ac_prog; ac_word=$2
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 printf %s "checking for $ac_word... " >&6; }
5405 if test ${ac_cv_prog_PKG_CONFIG+y}
5406 then :
5407 printf %s "(cached) " >&6
5408 else case e in #(
5409 e) if test -n "$PKG_CONFIG"; then
5410 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415 IFS=$as_save_IFS
5416 case $as_dir in #(((
5417 '') as_dir=./ ;;
5418 */) ;;
5419 *) as_dir=$as_dir/ ;;
5420 esac
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5423 ac_cv_prog_PKG_CONFIG="$ac_prog"
5424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5425 break 2
5426 fi
5427 done
5428 done
5429 IFS=$as_save_IFS
5430
5431 fi ;;
5432 esac
5433 fi
5434 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5435 if test -n "$PKG_CONFIG"; then
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5437 printf "%s\n" "$PKG_CONFIG" >&6; }
5438 else
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 printf "%s\n" "no" >&6; }
5441 fi
5442
5443
5444 test -n "$PKG_CONFIG" && break
5445 done
5446 test -n "$PKG_CONFIG" || PKG_CONFIG="none"
5447
5448
5449 # Check whether --enable-libuuid was given.
5450 if test ${enable_libuuid+y}
5451 then :
5452 enableval=$enable_libuuid;
5453 if test "$enable_libuuid" = "no"; then
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libuuid disabled... yes" >&5
5455 printf "%s\n" "Checking if libuuid disabled... yes" >&6; }
5456 ac_has_uuid_lib=0
5457 fi
5458
5459 else case e in #(
5460 e)
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5462 printf %s "checking for uuid_generate in -luuid... " >&6; }
5463 if test ${ac_cv_lib_uuid_uuid_generate+y}
5464 then :
5465 printf %s "(cached) " >&6
5466 else case e in #(
5467 e) ac_check_lib_save_LIBS=$LIBS
5468 LIBS="-luuid $LIBS"
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471
5472 /* Override any GCC internal prototype to avoid an error.
5473 Use char because int might match the return type of a GCC
5474 builtin and then its argument prototype would still apply.
5475 The 'extern "C"' is for builds by C++ compilers;
5476 although this is not generally supported in C code supporting it here
5477 has little cost and some practical benefit (sr 110532). */
5478 #ifdef __cplusplus
5479 extern "C"
5480 #endif
5481 char uuid_generate (void);
5482 int
5483 main (void)
5484 {
5485 return uuid_generate ();
5486 ;
5487 return 0;
5488 }
5489 _ACEOF
5490 if ac_fn_c_try_link "$LINENO"
5491 then :
5492 ac_cv_lib_uuid_uuid_generate=yes
5493 else case e in #(
5494 e) ac_cv_lib_uuid_uuid_generate=no ;;
5495 esac
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5498 conftest$ac_exeext conftest.$ac_ext
5499 LIBS=$ac_check_lib_save_LIBS ;;
5500 esac
5501 fi
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5503 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
5504 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
5505 then :
5506 printf "%s\n" "#define HAVE_LIBUUID 1" >>confdefs.h
5507
5508 LIBS="-luuid $LIBS"
5509
5510 fi
5511
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5513 printf %s "checking for uuid_generate in -luuid... " >&6; }
5514 if test ${ac_cv_lib_uuid_uuid_generate+y}
5515 then :
5516 printf %s "(cached) " >&6
5517 else case e in #(
5518 e) ac_check_lib_save_LIBS=$LIBS
5519 LIBS="-luuid $LIBS"
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522
5523 /* Override any GCC internal prototype to avoid an error.
5524 Use char because int might match the return type of a GCC
5525 builtin and then its argument prototype would still apply.
5526 The 'extern "C"' is for builds by C++ compilers;
5527 although this is not generally supported in C code supporting it here
5528 has little cost and some practical benefit (sr 110532). */
5529 #ifdef __cplusplus
5530 extern "C"
5531 #endif
5532 char uuid_generate (void);
5533 int
5534 main (void)
5535 {
5536 return uuid_generate ();
5537 ;
5538 return 0;
5539 }
5540 _ACEOF
5541 if ac_fn_c_try_link "$LINENO"
5542 then :
5543 ac_cv_lib_uuid_uuid_generate=yes
5544 else case e in #(
5545 e) ac_cv_lib_uuid_uuid_generate=no ;;
5546 esac
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5549 conftest$ac_exeext conftest.$ac_ext
5550 LIBS=$ac_check_lib_save_LIBS ;;
5551 esac
5552 fi
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5554 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
5555 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
5556 then :
5557 ac_has_uuid_lib=1
5558 fi
5559
5560
5561 ;;
5562 esac
5563 fi
5564
5565
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5567 printf %s "checking for library containing gethostbyname... " >&6; }
5568 if test ${ac_cv_search_gethostbyname+y}
5569 then :
5570 printf %s "(cached) " >&6
5571 else case e in #(
5572 e) ac_func_search_save_LIBS=$LIBS
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575
5576 /* Override any GCC internal prototype to avoid an error.
5577 Use char because int might match the return type of a GCC
5578 builtin and then its argument prototype would still apply.
5579 The 'extern "C"' is for builds by C++ compilers;
5580 although this is not generally supported in C code supporting it here
5581 has little cost and some practical benefit (sr 110532). */
5582 #ifdef __cplusplus
5583 extern "C"
5584 #endif
5585 char gethostbyname (void);
5586 int
5587 main (void)
5588 {
5589 return gethostbyname ();
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 for ac_lib in '' nsl
5595 do
5596 if test -z "$ac_lib"; then
5597 ac_res="none required"
5598 else
5599 ac_res=-l$ac_lib
5600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5601 fi
5602 if ac_fn_c_try_link "$LINENO"
5603 then :
5604 ac_cv_search_gethostbyname=$ac_res
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5607 conftest$ac_exeext
5608 if test ${ac_cv_search_gethostbyname+y}
5609 then :
5610 break
5611 fi
5612 done
5613 if test ${ac_cv_search_gethostbyname+y}
5614 then :
5615
5616 else case e in #(
5617 e) ac_cv_search_gethostbyname=no ;;
5618 esac
5619 fi
5620 rm conftest.$ac_ext
5621 LIBS=$ac_func_search_save_LIBS ;;
5622 esac
5623 fi
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5625 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
5626 ac_res=$ac_cv_search_gethostbyname
5627 if test "$ac_res" != no
5628 then :
5629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5630
5631 fi
5632
5633
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
5635 printf "%s\n" "Setting PJ_M_NAME to $target_cpu" >&6; }
5636 printf "%s\n" "#define PJ_M_NAME \"$target_cpu\"" >>confdefs.h
5637
5638
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
5640 printf %s "checking memory alignment... " >&6; }
5641 case $target in
5642 sparc64-* | ia64-* | x86_64-* | arm64-* | aarch64-* | mips64* )
5643 printf "%s\n" "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
5644
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
5646 printf "%s\n" "8 bytes" >&6; }
5647 ;;
5648 * )
5649 printf "%s\n" "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
5650
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
5652 printf "%s\n" "4 bytes (default)" >&6; }
5653 ;;
5654 esac
5655
5656
5657 ac_header= ac_cache=
5658 for ac_item in $ac_header_c_list
5659 do
5660 if test $ac_cache; then
5661 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5662 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5663 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5664 fi
5665 ac_header= ac_cache=
5666 elif test $ac_header; then
5667 ac_cache=$ac_item
5668 else
5669 ac_header=$ac_item
5670 fi
5671 done
5672
5673
5674
5675
5676
5677
5678
5679
5680 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5681 then :
5682
5683 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5684
5685 fi
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5687 printf %s "checking whether byte ordering is bigendian... " >&6; }
5688 if test ${ac_cv_c_bigendian+y}
5689 then :
5690 printf %s "(cached) " >&6
5691 else case e in #(
5692 e) ac_cv_c_bigendian=unknown
5693 # See if we're dealing with a universal compiler.
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #ifndef __APPLE_CC__
5697 not a universal capable compiler
5698 #endif
5699 typedef int dummy;
5700
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"
5703 then :
5704
5705 # Check for potential -arch flags. It is not universal unless
5706 # there are at least two -arch flags with different values.
5707 ac_arch=
5708 ac_prev=
5709 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5710 if test -n "$ac_prev"; then
5711 case $ac_word in
5712 i?86 | x86_64 | ppc | ppc64)
5713 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5714 ac_arch=$ac_word
5715 else
5716 ac_cv_c_bigendian=universal
5717 break
5718 fi
5719 ;;
5720 esac
5721 ac_prev=
5722 elif test "x$ac_word" = "x-arch"; then
5723 ac_prev=arch
5724 fi
5725 done
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5728 if test $ac_cv_c_bigendian = unknown; then
5729 # See if sys/param.h defines the BYTE_ORDER macro.
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 #include <sys/types.h>
5733 #include <sys/param.h>
5734
5735 int
5736 main (void)
5737 {
5738 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
5739 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
5740 && LITTLE_ENDIAN)
5741 bogus endian macros
5742 #endif
5743
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"
5749 then :
5750 # It does; now see whether it defined to BIG_ENDIAN or not.
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #include <sys/types.h>
5754 #include <sys/param.h>
5755
5756 int
5757 main (void)
5758 {
5759 #if BYTE_ORDER != BIG_ENDIAN
5760 not big endian
5761 #endif
5762
5763 ;
5764 return 0;
5765 }
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"
5768 then :
5769 ac_cv_c_bigendian=yes
5770 else case e in #(
5771 e) ac_cv_c_bigendian=no ;;
5772 esac
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5777 fi
5778 if test $ac_cv_c_bigendian = unknown; then
5779 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 #include <limits.h>
5783
5784 int
5785 main (void)
5786 {
5787 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5788 bogus endian macros
5789 #endif
5790
5791 ;
5792 return 0;
5793 }
5794 _ACEOF
5795 if ac_fn_c_try_compile "$LINENO"
5796 then :
5797 # It does; now see whether it defined to _BIG_ENDIAN or not.
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #include <limits.h>
5801
5802 int
5803 main (void)
5804 {
5805 #ifndef _BIG_ENDIAN
5806 not big endian
5807 #endif
5808
5809 ;
5810 return 0;
5811 }
5812 _ACEOF
5813 if ac_fn_c_try_compile "$LINENO"
5814 then :
5815 ac_cv_c_bigendian=yes
5816 else case e in #(
5817 e) ac_cv_c_bigendian=no ;;
5818 esac
5819 fi
5820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5823 fi
5824 if test $ac_cv_c_bigendian = unknown; then
5825 # Compile a test program.
5826 if test "$cross_compiling" = yes
5827 then :
5828 # Try to guess by grepping values from an object file.
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831 unsigned short int ascii_mm[] =
5832 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5833 unsigned short int ascii_ii[] =
5834 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5835 int use_ascii (int i) {
5836 return ascii_mm[i] + ascii_ii[i];
5837 }
5838 unsigned short int ebcdic_ii[] =
5839 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5840 unsigned short int ebcdic_mm[] =
5841 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5842 int use_ebcdic (int i) {
5843 return ebcdic_mm[i] + ebcdic_ii[i];
5844 }
5845 int
5846 main (int argc, char **argv)
5847 {
5848 /* Intimidate the compiler so that it does not
5849 optimize the arrays away. */
5850 char *p = argv[0];
5851 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
5852 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
5853 return use_ascii (argc) == use_ebcdic (*p);
5854 }
5855 _ACEOF
5856 if ac_fn_c_try_link "$LINENO"
5857 then :
5858 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
5859 ac_cv_c_bigendian=yes
5860 fi
5861 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
5862 if test "$ac_cv_c_bigendian" = unknown; then
5863 ac_cv_c_bigendian=no
5864 else
5865 # finding both strings is unlikely to happen, but who knows?
5866 ac_cv_c_bigendian=unknown
5867 fi
5868 fi
5869 fi
5870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5871 conftest$ac_exeext conftest.$ac_ext
5872 else case e in #(
5873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 $ac_includes_default
5876 int
5877 main (void)
5878 {
5879
5880 /* Are we little or big endian? From Harbison&Steele. */
5881 union
5882 {
5883 long int l;
5884 char c[sizeof (long int)];
5885 } u;
5886 u.l = 1;
5887 return u.c[sizeof (long int) - 1] == 1;
5888
5889 ;
5890 return 0;
5891 }
5892 _ACEOF
5893 if ac_fn_c_try_run "$LINENO"
5894 then :
5895 ac_cv_c_bigendian=no
5896 else case e in #(
5897 e) ac_cv_c_bigendian=yes ;;
5898 esac
5899 fi
5900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5901 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5902 esac
5903 fi
5904
5905 fi ;;
5906 esac
5907 fi
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5909 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5910 case $ac_cv_c_bigendian in #(
5911 yes)
5912 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5913 ;; #(
5914 no)
5915 ;; #(
5916 universal)
5917
5918 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5919
5920 ;; #(
5921 *)
5922 as_fn_error $? "unknown endianness
5923 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5924 esac
5925
5926
5927 if test "x$ac_cv_c_bigendian" = "xyes"; then
5928 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
5929 ac_cflags="$ac_cflags -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
5930 else
5931 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
5932 ac_cflags="$ac_cflags -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
5933 fi
5934
5935
5936
5937 case $target in
5938 *android*)
5939 printf "%s\n" "#define PJ_ANDROID 1" >>confdefs.h
5940
5941 ac_target_arch=$TARGET_ABI
5942 ac_std_cpp_lib=$STD_CPP_LIB
5943 ;;
5944 *mingw* | *cygw* | *win32* | *w32* )
5945 printf "%s\n" "#define PJ_WIN32 1" >>confdefs.h
5946
5947 printf "%s\n" "#define PJ_WIN32_WINNT 0x0501" >>confdefs.h
5948
5949 printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
5950
5951 case $target in
5952 *_64-w64-mingw* )
5953 printf "%s\n" "#define PJ_WIN64 1" >>confdefs.h
5954
5955 ;;
5956 esac
5957 ;;
5958 *darwin*)
5959 printf "%s\n" "#define PJ_DARWINOS 1" >>confdefs.h
5960
5961 ac_target_arch=$ARCH_VAL
5962 ;;
5963 *linux*)
5964 printf "%s\n" "#define PJ_LINUX 1" >>confdefs.h
5965
5966 ;;
5967 *bsd*)
5968 printf "%s\n" "#define PJ_BSD 1" >>confdefs.h
5969
5970 ;;
5971 *rtems*)
5972 printf "%s\n" "#define PJ_RTEMS 1" >>confdefs.h
5973
5974 ;;
5975 *sunos* | *solaris* )
5976 printf "%s\n" "#define PJ_SUNOS 1" >>confdefs.h
5977
5978 ;;
5979 *)
5980 ;;
5981 esac
5982
5983 # Check whether --enable-floating-point was given.
5984 if test ${enable_floating_point+y}
5985 then :
5986 enableval=$enable_floating_point;
5987 if test "$enable_floating_point" = "no"; then
5988 printf "%s\n" "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
5989
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
5991 printf "%s\n" "Checking if floating point is disabled... yes" >&6; }
5992 fi
5993
5994 else case e in #(
5995 e)
5996 printf "%s\n" "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
5997
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
5999 printf "%s\n" "Checking if floating point is disabled... no" >&6; }
6000
6001 ;;
6002 esac
6003 fi
6004
6005
6006
6007 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
6008 if test "x$ac_cv_header_arpa_inet_h" = xyes
6009 then :
6010 printf "%s\n" "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
6011
6012 fi
6013
6014 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
6015 if test "x$ac_cv_header_assert_h" = xyes
6016 then :
6017 printf "%s\n" "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
6018
6019 fi
6020
6021 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
6022 if test "x$ac_cv_header_ctype_h" = xyes
6023 then :
6024 printf "%s\n" "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
6025
6026 fi
6027
6028
6029 case $target in
6030 *mingw* | *cygw* | *win32* | *w32* )
6031 printf "%s\n" "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
6032
6033 ;;
6034 *)
6035 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
6036 if test "x$ac_cv_header_errno_h" = xyes
6037 then :
6038 printf "%s\n" "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
6039
6040 fi
6041
6042 ;;
6043 esac
6044
6045 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
6046 if test "x$ac_cv_header_fcntl_h" = xyes
6047 then :
6048 printf "%s\n" "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
6049
6050 fi
6051
6052 ac_fn_c_check_header_compile "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
6053 if test "x$ac_cv_header_linux_socket_h" = xyes
6054 then :
6055 printf "%s\n" "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
6056
6057 fi
6058
6059 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
6060 if test "x$ac_cv_header_limits_h" = xyes
6061 then :
6062 printf "%s\n" "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
6063
6064 fi
6065
6066 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
6067 if test "x$ac_cv_header_malloc_h" = xyes
6068 then :
6069 printf "%s\n" "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
6070
6071 fi
6072
6073 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
6074 if test "x$ac_cv_header_netdb_h" = xyes
6075 then :
6076 printf "%s\n" "#define PJ_HAS_NETDB_H 1" >>confdefs.h
6077
6078 fi
6079
6080 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
6081 if test "x$ac_cv_header_netinet_in_systm_h" = xyes
6082 then :
6083 printf "%s\n" "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
6084
6085 fi
6086
6087 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
6088 if test "x$ac_cv_header_netinet_in_h" = xyes
6089 then :
6090 printf "%s\n" "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
6091
6092 fi
6093
6094 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
6095 #if PJ_HAS_SYS_TYPES_H
6096 # include <sys/types.h>
6097 #endif
6098 #if PJ_HAS_NETINET_IN_SYSTM_H
6099 # include <netinet/in_systm.h>
6100 #endif
6101 #if PJ_HAS_NETINET_IN_H
6102 # include <netinet/in.h>
6103 #endif
6104
6105
6106 "
6107 if test "x$ac_cv_header_netinet_ip_h" = xyes
6108 then :
6109 printf "%s\n" "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
6110
6111 fi
6112
6113
6114 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
6115 if test "x$ac_cv_header_netinet_tcp_h" = xyes
6116 then :
6117 printf "%s\n" "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
6118
6119 fi
6120
6121 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6122 if test "x$ac_cv_header_ifaddrs_h" = xyes
6123 then :
6124 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6125 if test "x$ac_cv_func_getifaddrs" = xyes
6126 then :
6127 printf "%s\n" "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
6128
6129 fi
6130
6131 fi
6132
6133 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
6134 if test "x$ac_cv_header_semaphore_h" = xyes
6135 then :
6136 printf "%s\n" "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
6137
6138 fi
6139
6140 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
6141 if test "x$ac_cv_header_setjmp_h" = xyes
6142 then :
6143 printf "%s\n" "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
6144
6145 fi
6146
6147 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6148 if test "x$ac_cv_header_stdarg_h" = xyes
6149 then :
6150 printf "%s\n" "#define PJ_HAS_STDARG_H 1" >>confdefs.h
6151
6152 fi
6153
6154 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
6155 if test "x$ac_cv_header_stddef_h" = xyes
6156 then :
6157 printf "%s\n" "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
6158
6159 fi
6160
6161 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
6162 if test "x$ac_cv_header_stdio_h" = xyes
6163 then :
6164 printf "%s\n" "#define PJ_HAS_STDIO_H 1" >>confdefs.h
6165
6166 fi
6167
6168 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6169 if test "x$ac_cv_header_stdint_h" = xyes
6170 then :
6171 printf "%s\n" "#define PJ_HAS_STDINT_H 1" >>confdefs.h
6172
6173 fi
6174
6175 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6176 if test "x$ac_cv_header_stdlib_h" = xyes
6177 then :
6178 printf "%s\n" "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
6179
6180 fi
6181
6182 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6183 if test "x$ac_cv_header_string_h" = xyes
6184 then :
6185 printf "%s\n" "#define PJ_HAS_STRING_H 1" >>confdefs.h
6186
6187 fi
6188
6189 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6190 if test "x$ac_cv_header_inttypes_h" = xyes
6191 then :
6192 printf "%s\n" "#define PJ_HAS_INTTYPES_H 1" >>confdefs.h
6193
6194 fi
6195
6196 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
6197 if test "x$ac_cv_header_sys_ioctl_h" = xyes
6198 then :
6199 printf "%s\n" "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
6200
6201 fi
6202
6203 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
6204 if test "x$ac_cv_header_sys_select_h" = xyes
6205 then :
6206 printf "%s\n" "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
6207
6208 fi
6209
6210 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6211 if test "x$ac_cv_header_sys_socket_h" = xyes
6212 then :
6213 printf "%s\n" "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
6214
6215 fi
6216
6217 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6218 if test "x$ac_cv_header_sys_time_h" = xyes
6219 then :
6220 printf "%s\n" "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
6221
6222 fi
6223
6224 ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
6225 if test "x$ac_cv_header_sys_timeb_h" = xyes
6226 then :
6227 printf "%s\n" "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
6228
6229 fi
6230
6231 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
6232 if test "x$ac_cv_header_sys_types_h" = xyes
6233 then :
6234 printf "%s\n" "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
6235
6236 fi
6237
6238 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
6239 if test "x$ac_cv_header_sys_filio_h" = xyes
6240 then :
6241 printf "%s\n" "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
6242
6243 fi
6244
6245 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
6246 if test "x$ac_cv_header_sys_sockio_h" = xyes
6247 then :
6248 printf "%s\n" "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
6249
6250 fi
6251
6252 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
6253 if test "x$ac_cv_header_sys_utsname_h" = xyes
6254 then :
6255 printf "%s\n" "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
6256
6257 fi
6258
6259 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
6260 if test "x$ac_cv_header_time_h" = xyes
6261 then :
6262 printf "%s\n" "#define PJ_HAS_TIME_H 1" >>confdefs.h
6263
6264 fi
6265
6266 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6267 if test "x$ac_cv_header_unistd_h" = xyes
6268 then :
6269 printf "%s\n" "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
6270
6271 fi
6272
6273 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
6274 if test "x$ac_cv_header_execinfo_h" = xyes
6275 then :
6276 printf "%s\n" "#define PJ_HAS_EXECINFO_H 1" >>confdefs.h
6277
6278 fi
6279
6280 ac_fn_c_check_header_compile "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
6281 if test "x$ac_cv_header_winsock_h" = xyes
6282 then :
6283 printf "%s\n" "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
6284
6285 fi
6286
6287 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
6288 if test "x$ac_cv_header_winsock2_h" = xyes
6289 then :
6290 printf "%s\n" "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
6291
6292 fi
6293
6294 ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "
6295 #if PJ_HAS_WINSOCK2_H
6296 # include <winsock2.h>
6297 #elif PJ_HAS_WINSOCK_H
6298 # include <winsock.h>
6299 #endif
6300
6301
6302 "
6303 if test "x$ac_cv_header_mswsock_h" = xyes
6304 then :
6305 printf "%s\n" "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
6306
6307 fi
6308
6309
6310 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
6311 if test "x$ac_cv_header_ws2tcpip_h" = xyes
6312 then :
6313 printf "%s\n" "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
6314
6315 fi
6316
6317 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
6318 if test "x$ac_cv_header_uuid_uuid_h" = xyes
6319 then :
6320 ac_has_uuid_h=1
6321 fi
6322
6323 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
6324 #if PJ_HAS_SYS_TYPES_H
6325 # include <sys/types.h>
6326 #endif
6327 #if PJ_HAS_SYS_SOCKET_H
6328 # include <sys/socket.h>
6329 #endif
6330
6331
6332 "
6333 if test "x$ac_cv_header_net_if_h" = xyes
6334 then :
6335 printf "%s\n" "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
6336
6337 fi
6338
6339
6340 case $target in
6341 *android*)
6342 ac_fn_c_check_header_compile "$LINENO" "linux/android_alarm.h" "ac_cv_header_linux_android_alarm_h" "$ac_includes_default"
6343 if test "x$ac_cv_header_linux_android_alarm_h" = xyes
6344 then :
6345 printf "%s\n" "#define PJ_HAS_ANDROID_ALARM_H 1" >>confdefs.h
6346
6347 fi
6348
6349 ;;
6350 esac
6351
6352 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
6353 if test "x$ac_cv_func_localtime_r" = xyes
6354 then :
6355 printf "%s\n" "#define PJ_HAS_LOCALTIME_R 1" >>confdefs.h
6356
6357 fi
6358
6359
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
6361 printf "%s\n" "Setting PJ_OS_NAME to $target" >&6; }
6362 printf "%s\n" "#define PJ_OS_NAME \"$target\"" >>confdefs.h
6363
6364
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
6366 printf "%s\n" "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
6367 printf "%s\n" "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
6368
6369
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
6371 printf "%s\n" "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
6372 printf "%s\n" "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
6373
6374
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
6376 printf "%s\n" "Setting PJ_HAS_MALLOC to 1" >&6; }
6377 printf "%s\n" "#define PJ_HAS_MALLOC 1" >>confdefs.h
6378
6379
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
6381 printf "%s\n" "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
6382 printf "%s\n" "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
6383
6384
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
6386 printf "%s\n" "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
6387 printf "%s\n" "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
6388
6389
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
6391 printf %s "checking if inet_aton() is available... " >&6; }
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394
6395
6396 #include <sys/types.h>
6397 #include <sys/socket.h>
6398 #include <arpa/inet.h>
6399 int
6400 main (void)
6401 {
6402 inet_aton(0, 0);
6403 ;
6404 return 0;
6405 }
6406
6407 _ACEOF
6408 if ac_fn_c_try_compile "$LINENO"
6409 then :
6410
6411 printf "%s\n" "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
6412
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6414 printf "%s\n" "yes" >&6; }
6415
6416 else case e in #(
6417 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 printf "%s\n" "no" >&6; }
6419 ;;
6420 esac
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6423
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
6425 printf %s "checking if inet_pton() is available... " >&6; }
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428
6429
6430 #include <sys/types.h>
6431 #include <sys/socket.h>
6432 #include <arpa/inet.h>
6433 int
6434 main (void)
6435 {
6436 inet_pton(0, 0, 0);
6437 ;
6438 return 0;
6439 }
6440
6441 _ACEOF
6442 if ac_fn_c_try_compile "$LINENO"
6443 then :
6444
6445 printf "%s\n" "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
6446
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6448 printf "%s\n" "yes" >&6; }
6449
6450 else case e in #(
6451 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 printf "%s\n" "no" >&6; }
6453 ;;
6454 esac
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6457
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
6459 printf %s "checking if inet_ntop() is available... " >&6; }
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462
6463
6464 #include <sys/types.h>
6465 #include <sys/socket.h>
6466 #include <arpa/inet.h>
6467 int
6468 main (void)
6469 {
6470 inet_ntop(0, 0, 0, 0);
6471 ;
6472 return 0;
6473 }
6474
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"
6477 then :
6478
6479 printf "%s\n" "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
6480
6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6482 printf "%s\n" "yes" >&6; }
6483
6484 else case e in #(
6485 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 printf "%s\n" "no" >&6; }
6487 ;;
6488 esac
6489 fi
6490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6491
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
6493 printf %s "checking if getaddrinfo() is available... " >&6; }
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496
6497
6498 #include <sys/types.h>
6499 #include <sys/socket.h>
6500 #include <netdb.h>
6501 int
6502 main (void)
6503 {
6504 getaddrinfo(0, 0, 0, 0);
6505 ;
6506 return 0;
6507 }
6508
6509 _ACEOF
6510 if ac_fn_c_try_compile "$LINENO"
6511 then :
6512
6513 printf "%s\n" "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
6514
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6516 printf "%s\n" "yes" >&6; }
6517
6518 else case e in #(
6519 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 printf "%s\n" "no" >&6; }
6521 ;;
6522 esac
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6525
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair() is available" >&5
6527 printf %s "checking if socketpair() is available... " >&6; }
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530
6531
6532 #include <sys/types.h>
6533 #include <sys/socket.h>
6534 int
6535 main (void)
6536 {
6537 socketpair(0, 0, 0, 0);
6538 ;
6539 return 0;
6540 }
6541
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"
6544 then :
6545
6546 printf "%s\n" "#define PJ_SOCK_HAS_SOCKETPAIR 1" >>confdefs.h
6547
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6549 printf "%s\n" "yes" >&6; }
6550
6551 else case e in #(
6552 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 printf "%s\n" "no" >&6; }
6554 ;;
6555 esac
6556 fi
6557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6558
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
6560 printf %s "checking if sockaddr_in has sin_len member... " >&6; }
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563
6564
6565 #include <sys/types.h>
6566 #include <sys/socket.h>
6567 #include <netinet/in.h>
6568 #include <arpa/inet.h>
6569 int
6570 main (void)
6571 {
6572 struct sockaddr_in a; a.sin_len=0;
6573 ;
6574 return 0;
6575 }
6576
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"
6579 then :
6580
6581 printf "%s\n" "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
6582
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6584 printf "%s\n" "yes" >&6; }
6585
6586 else case e in #(
6587 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 printf "%s\n" "no" >&6; }
6589 ;;
6590 esac
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6593
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
6595 printf %s "checking if socklen_t is available... " >&6; }
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598
6599
6600 #include <sys/types.h>
6601 #include <sys/socket.h>
6602 int
6603 main (void)
6604 {
6605 socklen_t xxx = 0;
6606 ;
6607 return 0;
6608 }
6609
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"
6612 then :
6613
6614 printf "%s\n" "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
6615
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6617 printf "%s\n" "yes" >&6; }
6618
6619 else case e in #(
6620 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 printf "%s\n" "no" >&6; }
6622 ;;
6623 esac
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6626
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPV6_V6ONLY is available" >&5
6628 printf %s "checking if IPV6_V6ONLY is available... " >&6; }
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631
6632
6633 #include <sys/socket.h>
6634 #include <netinet/in.h>
6635 int
6636 main (void)
6637 {
6638 int opt = IPV6_V6ONLY;
6639 ;
6640 return 0;
6641 }
6642
6643 _ACEOF
6644 if ac_fn_c_try_compile "$LINENO"
6645 then :
6646
6647 printf "%s\n" "#define PJ_SOCK_HAS_IPV6_V6ONLY 1" >>confdefs.h
6648
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6650 printf "%s\n" "yes" >&6; }
6651
6652 else case e in #(
6653 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 printf "%s\n" "no" >&6; }
6655 ;;
6656 esac
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6659
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
6661 printf %s "checking if SO_ERROR is available... " >&6; }
6662 case $target in
6663 *mingw* | *cygw* | *win32* | *w32* )
6664 printf "%s\n" "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
6665
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6667 printf "%s\n" "yes" >&6; }
6668 ;;
6669 *)
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672
6673
6674 #include <sys/types.h>
6675 #include <sys/socket.h>
6676 #include <netinet/in.h>
6677 #include <arpa/inet.h>
6678 int
6679 main (void)
6680 {
6681 int i=SO_ERROR;
6682 ;
6683 return 0;
6684 }
6685
6686 _ACEOF
6687 if ac_fn_c_try_compile "$LINENO"
6688 then :
6689
6690 printf "%s\n" "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
6691
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6693 printf "%s\n" "yes" >&6; }
6694
6695 else case e in #(
6696 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 printf "%s\n" "no" >&6; }
6698 ;;
6699 esac
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6702 ;;
6703 esac
6704
6705
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
6707 printf %s "checking if pthread_rwlock_t is available... " >&6; }
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710
6711 #include <pthread.h>
6712 int
6713 main (void)
6714 {
6715 pthread_rwlock_t *x;
6716 ;
6717 return 0;
6718 }
6719
6720 _ACEOF
6721 if ac_fn_c_try_compile "$LINENO"
6722 then :
6723
6724 printf "%s\n" "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
6725
6726 ac_rwmutex="yes"
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6728 printf "%s\n" "yes" >&6; }
6729
6730 else case e in #(
6731 e)
6732 printf "%s\n" "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
6733
6734 ac_rwmutex="no"
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 printf "%s\n" "no" >&6; }
6737
6738 ;;
6739 esac
6740 fi
6741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6742
6743 if test "$ac_rwmutex" = "no"; then
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
6745 printf %s "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748
6749
6750 #define _POSIX_READER_WRITER_LOCKS
6751 #include <pthread.h>
6752 int
6753 main (void)
6754 {
6755 pthread_rwlock_t *x;
6756 ;
6757 return 0;
6758 }
6759
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"
6762 then :
6763
6764 printf "%s\n" "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
6765
6766 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6768 printf "%s\n" "yes" >&6; }
6769
6770 else case e in #(
6771 e)
6772 printf "%s\n" "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
6773
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 printf "%s\n" "no" >&6; }
6776
6777 ;;
6778 esac
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6781 fi
6782
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
6784 printf %s "checking if pthread_mutexattr_settype() is available... " >&6; }
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787
6788 #include <pthread.h>
6789 int
6790 main (void)
6791 {
6792 pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
6793 ;
6794 return 0;
6795 }
6796
6797 _ACEOF
6798 if ac_fn_c_try_compile "$LINENO"
6799 then :
6800
6801 printf "%s\n" "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
6802
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6804 printf "%s\n" "yes" >&6; }
6805
6806 else case e in #(
6807 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 printf "%s\n" "no" >&6; }
6809 ;;
6810 esac
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6813
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
6815 printf %s "checking if pthread_mutexattr_t has recursive member... " >&6; }
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818
6819 #include <pthread.h>
6820 int
6821 main (void)
6822 {
6823 pthread_mutexattr_t attr; attr.recursive=1;
6824 ;
6825 return 0;
6826 }
6827
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"
6830 then :
6831
6832 printf "%s\n" "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
6833
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6835 printf "%s\n" "yes" >&6; }
6836
6837 else case e in #(
6838 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 printf "%s\n" "no" >&6; }
6840 ;;
6841 esac
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6844
6845
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
6847 printf %s "checking ioqueue backend... " >&6; }
6848
6849 case $target in
6850 *darwin* | *bsd*)
6851 # Check whether --enable-kqueue was given.
6852 if test ${enable_kqueue+y}
6853 then :
6854 enableval=$enable_kqueue;
6855 if test "$enable_kqueue" = "yes"; then
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: kqueue()" >&5
6857 printf "%s\n" "kqueue()" >&6; }
6858 printf "%s\n" "#define PJ_IOQUEUE_IMP PJ_IOQUEUE_IMP_KQUEUE" >>confdefs.h
6859
6860 else
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: select()" >&5
6862 printf "%s\n" "select()" >&6; }
6863 printf "%s\n" "#define PJ_IOQUEUE_IMP PJ_IOQUEUE_IMP_SELECT" >>confdefs.h
6864
6865 fi
6866
6867 else case e in #(
6868 e)
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: select()" >&5
6870 printf "%s\n" "select()" >&6; }
6871 printf "%s\n" "#define PJ_IOQUEUE_IMP PJ_IOQUEUE_IMP_SELECT" >>confdefs.h
6872
6873
6874 ;;
6875 esac
6876 fi
6877
6878 ;;
6879 *)
6880 # Check whether --enable-epoll was given.
6881 if test ${enable_epoll+y}
6882 then :
6883 enableval=$enable_epoll;
6884 if test "$enable_epoll" = "yes"; then
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
6886 printf "%s\n" "/dev/epoll" >&6; }
6887 printf "%s\n" "#define PJ_IOQUEUE_IMP PJ_IOQUEUE_IMP_EPOLL" >>confdefs.h
6888
6889 else
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: select()" >&5
6891 printf "%s\n" "select()" >&6; }
6892 printf "%s\n" "#define PJ_IOQUEUE_IMP PJ_IOQUEUE_IMP_SELECT" >>confdefs.h
6893
6894 fi
6895
6896 else case e in #(
6897 e)
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: select()" >&5
6899 printf "%s\n" "select()" >&6; }
6900 printf "%s\n" "#define PJ_IOQUEUE_IMP PJ_IOQUEUE_IMP_SELECT" >>confdefs.h
6901
6902
6903 ;;
6904 esac
6905 fi
6906
6907 ;;
6908 esac
6909
6910
6911 # Check whether --enable-shared was given.
6912 if test ${enable_shared+y}
6913 then :
6914 enableval=$enable_shared;
6915 if test "$enable_shared" = "yes"; then
6916 ac_shared_libraries=1
6917 CFLAGS="$CFLAGS -fPIC"
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building shared libraries... yes" >&5
6919 printf "%s\n" "Building shared libraries... yes" >&6; }
6920 fi
6921
6922 else case e in #(
6923 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building shared libraries... no" >&5
6924 printf "%s\n" "Building shared libraries... no" >&6; }
6925 ;;
6926 esac
6927 fi
6928
6929
6930
6931 # Check whether --enable-pjsua2 was given.
6932 if test ${enable_pjsua2+y}
6933 then :
6934 enableval=$enable_pjsua2;
6935 if test "$enable_pjsua2" = "no"; then
6936 ac_no_pjsua2=1
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building pjsua2 library and application... no" >&5
6938 printf "%s\n" "Building pjsua2 library and application... no" >&6; }
6939 fi
6940
6941 else case e in #(
6942 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building pjsua2 library and application... yes" >&5
6943 printf "%s\n" "Building pjsua2 library and application... yes" >&6; }
6944 ;;
6945 esac
6946 fi
6947
6948
6949
6950 case $target in
6951 *mingw* | *cygw* | *win32* | *w32* )
6952 ac_os_objs="$ac_os_objs file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o sock_qos_bsd.o unicode_win32.o"
6953 ;;
6954 *)
6955 ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
6956 case $target in
6957 *-apple-darwin_ios*)
6958 ac_os_objs="$ac_os_objs os_info_iphone.o os_core_darwin.o"
6959 ;;
6960 *darwin*)
6961 ac_os_objs="$ac_os_objs os_core_darwin.o"
6962 ;;
6963 esac
6964
6965 # QoS
6966 case $target in
6967 *darwin*)
6968 ac_os_objs="$ac_os_objs sock_qos_darwin.o sock_qos_bsd.o"
6969 ;;
6970 *)
6971 ac_os_objs="$ac_os_objs sock_qos_bsd.o"
6972 ;;
6973 esac
6974
6975 # SSL
6976 case $target in
6977 *darwin*)
6978 ac_os_objs="$ac_os_objs ssl_sock_apple.o"
6979 ;;
6980 esac
6981
6982 # UUID
6983 case $target in
6984 *android*)
6985 ac_os_objs="$ac_os_objs guid_android.o"
6986 ;;
6987 *darwin*)
6988 ac_os_objs="$ac_os_objs guid_darwin.o"
6989 ;;
6990 *bsd*)
6991 ac_os_objs="$ac_os_objs guid_bsd.o"
6992 ;;
6993 *)
6994 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
6995 ac_os_objs="$ac_os_objs guid_uuid.o"
6996 else
6997 ac_os_objs="$ac_os_objs guid_simple.o"
6998 fi
6999 ;;
7000 esac
7001 ;;
7002 esac
7003
7004
7005
7006 # Check whether --with-upnp was given.
7007 if test ${with_upnp+y}
7008 then :
7009 withval=$with_upnp;
7010 else case e in #(
7011 e) with_upnp=no
7012 ;;
7013 esac
7014 fi
7015
7016
7017 if test "x$ac_cross_compile" != "x" -a "x$with_upnp" = "xno"; then
7018 enable_upnp=no
7019 fi
7020
7021 # Check whether --enable-upnp was given.
7022 if test ${enable_upnp+y}
7023 then :
7024 enableval=$enable_upnp;
7025 if test "$enable_upnp" = "no"; then
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if UPnP is disabled... yes" >&5
7027 printf "%s\n" "Checking if UPnP is disabled... yes" >&6; }
7028 fi
7029
7030 else case e in #(
7031 e)
7032 if test "x$with_upnp" != "xno" -a "x$with_upnp" != "x"; then
7033 UPNP_PREFIX=$with_upnp
7034 UPNP_CFLAGS="-I$UPNP_PREFIX/upnp/inc -I$UPNP_PREFIX/ixml/inc"
7035 UPNP_LDFLAGS="-L$UPNP_PREFIX/upnp/.libs -L$UPNP_PREFIX/imxl/.libs"
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using UPnP prefix... $with_upnp" >&5
7037 printf "%s\n" "Using UPnP prefix... $with_upnp" >&6; }
7038 else
7039 UPNP_CFLAGS=""
7040 UPNP_LDFLAGS=""
7041 fi
7042
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking UPnP usability" >&5
7044 printf %s "checking UPnP usability... " >&6; }
7045
7046 UPNP_LIBS="-lupnp -lixml"
7047
7048 SAVED_LIBS="$LIBS"
7049 SAVED_LDFLAGS="$LDFLAGS"
7050 SAVED_CFLAGS="$CFLAGS"
7051
7052 LIBS="$UPNP_LIBS $LIBS"
7053 LDFLAGS="$UPNP_LDFLAGS $LDFLAGS"
7054 CFLAGS="$UPNP_CFLAGS $CFLAGS"
7055
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058
7059
7060 #include <upnp/upnp.h>
7061 int
7062 main (void)
7063 {
7064 UpnpInit2(NULL, 0);
7065 ;
7066 return 0;
7067 }
7068
7069 _ACEOF
7070 if ac_fn_c_try_link "$LINENO"
7071 then :
7072
7073 CFLAGS="$CFLAGS -DPJNATH_HAS_UPNP=1 $UPNP_CFLAGS"
7074 LDFLAGS="$LDFLAGS $UPNP_LDFLAGS $UPNP_LIBS"
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7076 printf "%s\n" "yes" >&6; }
7077
7078 else case e in #(
7079 e)
7080 LIBS="$SAVED_LIBS"
7081 LDFLAGS="$SAVED_LDFLAGS"
7082 CFLAGS="$SAVED_CFLAGS"
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 printf "%s\n" "no" >&6; }
7085
7086 ;;
7087 esac
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7090 conftest$ac_exeext conftest.$ac_ext
7091
7092 ;;
7093 esac
7094 fi
7095
7096
7097
7098 ac_external_speex=0
7099
7100
7101 # Check whether --with-external-speex was given.
7102 if test ${with_external_speex+y}
7103 then :
7104 withval=$with_external_speex;
7105 if test "x$with_external_speex" != "xno"; then
7106 # Test Speex installation
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
7108 printf %s "checking if external Speex devkit is installed... " >&6; }
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111
7112
7113 #include <speex/speex.h>
7114 #include <speex/speex_echo.h>
7115 int
7116 main (void)
7117 {
7118 speex_echo_state_init(0, 0); speex_encoder_init(0);
7119 ;
7120 return 0;
7121 }
7122
7123 _ACEOF
7124 if ac_fn_c_try_compile "$LINENO"
7125 then :
7126
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
7128 printf "%s\n" "yes!!" >&6; }
7129 printf "%s\n" "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
7130
7131 ac_external_speex="1"
7132
7133 else case e in #(
7134 e)
7135 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
7136
7137 ;;
7138 esac
7139 fi
7140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7141 fi
7142
7143
7144 fi
7145
7146
7147 ac_external_gsm=0
7148
7149
7150 # Check whether --with-external-gsm was given.
7151 if test ${with_external_gsm+y}
7152 then :
7153 withval=$with_external_gsm;
7154 if test "x$with_external_gsm" != "xno"; then
7155 # Test GSM library installation
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
7157 printf %s "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160
7161 #include <gsm/gsm.h>
7162 int
7163 main (void)
7164 {
7165 gsm_create();
7166 ;
7167 return 0;
7168 }
7169
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"
7172 then :
7173
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
7175 printf "%s\n" "yes!!" >&6; }
7176 printf "%s\n" "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
7177
7178 printf "%s\n" "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
7179
7180 ac_external_gsm="1"
7181
7182 else case e in #(
7183 e)
7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 printf "%s\n" "no" >&6; }
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
7187 printf %s "checking if external GSM devkit is installed as gsm.h... " >&6; }
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7190
7191
7192 #include <gsm.h>
7193 int
7194 main (void)
7195 {
7196 gsm_create();
7197 ;
7198 return 0;
7199 }
7200
7201 _ACEOF
7202 if ac_fn_c_try_compile "$LINENO"
7203 then :
7204
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
7206 printf "%s\n" "yes!!" >&6; }
7207 printf "%s\n" "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
7208
7209 printf "%s\n" "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
7210
7211 ac_external_gsm="1"
7212
7213 else case e in #(
7214 e)
7215 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
7216
7217 ;;
7218 esac
7219 fi
7220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7221
7222 ;;
7223 esac
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7226 fi
7227
7228
7229 fi
7230
7231
7232
7233 ac_external_srtp=0
7234
7235
7236
7237 # Check whether --with-external-srtp was given.
7238 if test ${with_external_srtp+y}
7239 then :
7240 withval=$with_external_srtp;
7241 if test "x$with_external_srtp" != "xno"; then
7242 # Test SRTP installation
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external SRTP devkit is installed" >&5
7244 printf %s "checking if external SRTP devkit is installed... " >&6; }
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247
7248
7249 #include <srtp2/srtp.h>
7250 int
7251 main (void)
7252 {
7253 srtp_init();
7254 ;
7255 return 0;
7256 }
7257
7258 _ACEOF
7259 if ac_fn_c_try_compile "$LINENO"
7260 then :
7261
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes: version 2.x" >&5
7263 printf "%s\n" "yes: version 2.x" >&6; }
7264 ac_external_srtp="2"
7265 ac_external_srtp_lib="srtp2"
7266
7267 else case e in #(
7268 e)
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271
7272
7273 #include <srtp/srtp.h>
7274 int
7275 main (void)
7276 {
7277 srtp_init();
7278 ;
7279 return 0;
7280 }
7281
7282 _ACEOF
7283 if ac_fn_c_try_compile "$LINENO"
7284 then :
7285
7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes: version 1.x" >&5
7287 printf "%s\n" "yes: version 1.x" >&6; }
7288 ac_external_srtp="1"
7289 ac_external_srtp_lib="srtp"
7290
7291 else case e in #(
7292 e)
7293 as_fn_error $? "Unable to use SRTP. If SRTP development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
7294
7295 ;;
7296 esac
7297 fi
7298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7299
7300 ;;
7301 esac
7302 fi
7303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7304 fi
7305
7306
7307 fi
7308
7309
7310 if test "x$ac_external_srtp" != "x0"; then
7311 ac_srtp_deinit_present=0
7312
7313 ac_srtp_shutdown_present=0
7314
7315 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ac_external_srtp_lib""_srtp_deinit" | sed "$as_sed_sh"`
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_deinit in -l$ac_external_srtp_lib" >&5
7317 printf %s "checking for srtp_deinit in -l$ac_external_srtp_lib... " >&6; }
7318 if eval test \${$as_ac_Lib+y}
7319 then :
7320 printf %s "(cached) " >&6
7321 else case e in #(
7322 e) ac_check_lib_save_LIBS=$LIBS
7323 LIBS="-l$ac_external_srtp_lib $LIBS"
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326
7327 /* Override any GCC internal prototype to avoid an error.
7328 Use char because int might match the return type of a GCC
7329 builtin and then its argument prototype would still apply.
7330 The 'extern "C"' is for builds by C++ compilers;
7331 although this is not generally supported in C code supporting it here
7332 has little cost and some practical benefit (sr 110532). */
7333 #ifdef __cplusplus
7334 extern "C"
7335 #endif
7336 char srtp_deinit (void);
7337 int
7338 main (void)
7339 {
7340 return srtp_deinit ();
7341 ;
7342 return 0;
7343 }
7344 _ACEOF
7345 if ac_fn_c_try_link "$LINENO"
7346 then :
7347 eval "$as_ac_Lib=yes"
7348 else case e in #(
7349 e) eval "$as_ac_Lib=no" ;;
7350 esac
7351 fi
7352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7353 conftest$ac_exeext conftest.$ac_ext
7354 LIBS=$ac_check_lib_save_LIBS ;;
7355 esac
7356 fi
7357 eval ac_res=\$$as_ac_Lib
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7359 printf "%s\n" "$ac_res" >&6; }
7360 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
7361 then :
7362 ac_srtp_deinit_present=1
7363 fi
7364
7365 if test "x$ac_srtp_deinit_present" != "x1"; then
7366 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ac_external_srtp_lib""_srtp_shutdown" | sed "$as_sed_sh"`
7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_shutdown in -l$ac_external_srtp_lib" >&5
7368 printf %s "checking for srtp_shutdown in -l$ac_external_srtp_lib... " >&6; }
7369 if eval test \${$as_ac_Lib+y}
7370 then :
7371 printf %s "(cached) " >&6
7372 else case e in #(
7373 e) ac_check_lib_save_LIBS=$LIBS
7374 LIBS="-l$ac_external_srtp_lib $LIBS"
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377
7378 /* Override any GCC internal prototype to avoid an error.
7379 Use char because int might match the return type of a GCC
7380 builtin and then its argument prototype would still apply.
7381 The 'extern "C"' is for builds by C++ compilers;
7382 although this is not generally supported in C code supporting it here
7383 has little cost and some practical benefit (sr 110532). */
7384 #ifdef __cplusplus
7385 extern "C"
7386 #endif
7387 char srtp_shutdown (void);
7388 int
7389 main (void)
7390 {
7391 return srtp_shutdown ();
7392 ;
7393 return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_link "$LINENO"
7397 then :
7398 eval "$as_ac_Lib=yes"
7399 else case e in #(
7400 e) eval "$as_ac_Lib=no" ;;
7401 esac
7402 fi
7403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7404 conftest$ac_exeext conftest.$ac_ext
7405 LIBS=$ac_check_lib_save_LIBS ;;
7406 esac
7407 fi
7408 eval ac_res=\$$as_ac_Lib
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7410 printf "%s\n" "$ac_res" >&6; }
7411 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
7412 then :
7413 ac_srtp_shutdown_present=1
7414 fi
7415
7416 fi
7417 fi
7418
7419 ac_external_yuv=0
7420
7421
7422 # Check whether --with-external-yuv was given.
7423 if test ${with_external_yuv+y}
7424 then :
7425 withval=$with_external_yuv;
7426 if test "x$with_external_yuv" != "xno"; then
7427 # Test libyuv installation
7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external libyuv devkit is installed" >&5
7429 printf %s "checking if external libyuv devkit is installed... " >&6; }
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432
7433
7434 #include <libyuv.h>
7435 int
7436 main (void)
7437 {
7438 RGB24ToI420(0,0,0,0,0,0,0,0,0,0);
7439 ;
7440 return 0;
7441 }
7442
7443 _ACEOF
7444 if ac_fn_c_try_compile "$LINENO"
7445 then :
7446
7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
7448 printf "%s\n" "yes!!" >&6; }
7449 ac_external_yuv="1"
7450
7451 else case e in #(
7452 e)
7453 as_fn_error $? "Unable to use external libyuv. If libyuv development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
7454
7455 ;;
7456 esac
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7459 fi
7460
7461
7462 fi
7463
7464
7465
7466 ac_external_webrtc=0
7467
7468
7469 # Check whether --with-external-webrtc was given.
7470 if test ${with_external_webrtc+y}
7471 then :
7472 withval=$with_external_webrtc;
7473 if test "x$with_external_webrtc" != "xno"; then
7474 # Test webrtc installation
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external webrtc devkit is installed" >&5
7476 printf %s "checking if external webrtc devkit is installed... " >&6; }
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479
7480
7481 #include <webrtc/modules/audio_processing/aec/aec_core.h>
7482 #include <webrtc/modules/audio_processing/aec/include/echo_cancellation.h>
7483 int
7484 main (void)
7485 {
7486 WebRtcAec_Create();
7487 ;
7488 return 0;
7489 }
7490
7491 _ACEOF
7492 if ac_fn_c_try_compile "$LINENO"
7493 then :
7494
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
7496 printf "%s\n" "yes!!" >&6; }
7497 ac_external_webrtc="1"
7498
7499 else case e in #(
7500 e)
7501 as_fn_error $? "Unable to use external webrtc. If webrtc development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
7502
7503 ;;
7504 esac
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7507 fi
7508
7509
7510 fi
7511
7512
7513
7514 ac_external_webrtc_aec3=0
7515
7516
7517 # Check whether --with-external-webrtc-aec3 was given.
7518 if test ${with_external_webrtc_aec3+y}
7519 then :
7520 withval=$with_external_webrtc_aec3;
7521 if test "x$with_external_webrtc_aec3" != "xno"; then
7522 # Test webrtc AEC3 installation
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external webrtc AEC3 is installed" >&5
7524 printf %s "checking if external webrtc AEC3 is installed... " >&6; }
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527
7528
7529 #include "modules/audio_processing/aec3/echo_canceller3.h"
7530 int
7531 main (void)
7532 {
7533 EchoCanceller3 ec(EchoCanceller3Config(), 16000, 1, 1);
7534 ;
7535 return 0;
7536 }
7537
7538 _ACEOF
7539 if ac_fn_c_try_compile "$LINENO"
7540 then :
7541
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
7543 printf "%s\n" "yes!!" >&6; }
7544 ac_external_webrtc_aec3="1"
7545
7546 else case e in #(
7547 e)
7548 as_fn_error $? "Unable to use external webrtc AEC3. If webrtc development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
7549
7550 ;;
7551 esac
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7554 fi
7555
7556
7557 fi
7558
7559
7560
7561 ac_pjmedia_resample=libresample
7562
7563 # Check whether --enable-resample was given.
7564 if test ${enable_resample+y}
7565 then :
7566 enableval=$enable_resample;
7567 if test "$enable_resample" = "no"; then
7568 ac_pjmedia_resample=none
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if resampling is disabled...yes" >&5
7570 printf "%s\n" "Checking if resampling is disabled...yes" >&6; }
7571 fi
7572
7573
7574 fi
7575
7576
7577
7578 # Check whether --enable-sound was given.
7579 if test ${enable_sound+y}
7580 then :
7581 enableval=$enable_sound;
7582 if test "$enable_sound" = "no"; then
7583 ac_pjmedia_snd=null
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
7585 printf "%s\n" "Checking if sound is disabled... yes" >&6; }
7586 fi
7587
7588
7589 fi
7590
7591
7592 ac_external_pa=0
7593
7594
7595 # Check whether --with-external-pa was given.
7596 if test ${with_external_pa+y}
7597 then :
7598 withval=$with_external_pa;
7599 if test "x$with_external_pa" != "xno"; then
7600 # Test PortAudio installation
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
7602 printf %s "checking if external PortAudio devkit is installed... " >&6; }
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605
7606
7607 #include <portaudio.h>
7608 int
7609 main (void)
7610 {
7611 Pa_Initialize();
7612 ;
7613 return 0;
7614 }
7615
7616 _ACEOF
7617 if ac_fn_c_try_compile "$LINENO"
7618 then :
7619
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
7621 printf "%s\n" "yes!!" >&6; }
7622 ac_external_pa="1"
7623
7624 else case e in #(
7625 e)
7626 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
7627
7628 ;;
7629 esac
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7632 fi
7633
7634
7635 fi
7636
7637
7638
7639 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
7640 if test "x$ac_cv_header_sys_soundcard_h" = xyes
7641 then :
7642 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
7643 fi
7644
7645 ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
7646 if test "x$ac_cv_header_linux_soundcard_h" = xyes
7647 then :
7648 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
7649 fi
7650
7651 ac_fn_c_check_header_compile "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
7652 if test "x$ac_cv_header_machine_soundcard_h" = xyes
7653 then :
7654 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
7655 fi
7656
7657
7658 if test "x$ac_cv_c_bigendian" = "xyes"; then
7659 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
7660 else
7661 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
7662 fi
7663
7664
7665
7666
7667 # Check whether --with-oboe was given.
7668 if test ${with_oboe+y}
7669 then :
7670 withval=$with_oboe;
7671 if test "x$with_oboe" != "xno" -a "x$with_oboe" != "x"; then
7672 OBOE_PREFIX=$with_oboe
7673 OBOE_CFLAGS="-I$OBOE_PREFIX/prefab/modules/oboe/include"
7674 OBOE_LDFLAGS="-L$OBOE_PREFIX/prefab/modules/oboe/libs/android.$TARGET_ABI"
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Oboe prefix... $with_oboe" >&5
7676 printf "%s\n" "Using Oboe prefix... $with_oboe" >&6; }
7677 else
7678 OBOE_CFLAGS=""
7679 OBOE_LDFLAGS=""
7680 fi
7681
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oboe usability" >&5
7683 printf %s "checking Oboe usability... " >&6; }
7684
7685 OBOE_LIBS="-loboe -lOpenSLES -llog"
7686
7687 SAVED_LIBS="$LIBS"
7688 SAVED_LDFLAGS="$LDFLAGS"
7689 SAVED_CXXFLAGS="$CXXFLAGS"
7690
7691 LIBS="$OBOE_LIBS $LIBS"
7692 LDFLAGS="$OBOE_LDFLAGS $LDFLAGS"
7693 CXXFLAGS="$OBOE_CFLAGS $CXXFLAGS"
7694
7695 ac_ext=cpp
7696 ac_cpp='$CXXCPP $CPPFLAGS'
7697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7700
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703
7704
7705 #include <oboe/Oboe.h>
7706 int
7707 main (void)
7708 {
7709 oboe::AudioStreamBuilder sb; sb.setDeviceId(0);
7710 ;
7711 return 0;
7712 }
7713
7714 _ACEOF
7715 if ac_fn_cxx_try_link "$LINENO"
7716 then :
7717
7718 ac_oboe_cflags="-DPJMEDIA_AUDIO_DEV_HAS_OBOE=1 $OBOE_CFLAGS"
7719 ac_oboe_ldflags="$OBOE_LDFLAGS $OBOE_LIBS"
7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7721 printf "%s\n" "yes" >&6; }
7722
7723 else case e in #(
7724 e)
7725 LIBS="$SAVED_LIBS"
7726 LDFLAGS="$SAVED_LDFLAGS"
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 printf "%s\n" "no" >&6; }
7729
7730 ;;
7731 esac
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7734 conftest$ac_exeext conftest.$ac_ext
7735 ac_ext=c
7736 ac_cpp='$CPP $CPPFLAGS'
7737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740
7741
7742 # Put back original CXXFLAGS as app won't needed it.
7743 CXXFLAGS="$SAVED_CFLAGS"
7744
7745
7746 fi
7747
7748
7749
7750 if test "$enable_sound" = "no"; then
7751 true;
7752 else
7753
7754 case $target in
7755 *android*)
7756 if test "x$ac_oboe_cflags" != "x"; then
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... Oboe" >&5
7758 printf "%s\n" "Checking sound device backend... Oboe" >&6; }
7759 else
7760 LIBS="$LIBS -lOpenSLES"
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... Android" >&5
7762 printf "%s\n" "Checking sound device backend... Android" >&6; }
7763 fi
7764 ;;
7765 *-apple-darwin_ios*)
7766 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit -framework AVFoundation"
7767 ac_pjmedia_audiodev_objs="coreaudio_dev.o"
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
7769 printf "%s\n" "Checking sound device backend... AudioUnit" >&6; }
7770 ;;
7771 *darwin*)
7772 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
7773 ac_pjmedia_audiodev_objs="coreaudio_dev.o"
7774 if test "`uname -r`" = "6.8"; then
7775 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
7776 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
7777 #ac_pjmedia_snd=pa_old_darwinos
7778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
7779 printf "%s\n" "Checking sound device backend... old coreaudio" >&6; }
7780 else
7781 ac_pjmedia_snd=coreaudio
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
7783 printf "%s\n" "Checking sound device backend... coreaudio" >&6; }
7784 fi
7785 ;;
7786 *cygwin* | *mingw*)
7787 ac_pjmedia_snd=win32
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
7789 printf "%s\n" "Checking sound device backend... win32 sound" >&6; }
7790 ;;
7791 *rtems*)
7792 ac_pjmedia_snd=null
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
7794 printf "%s\n" "Checking sound device backend... null sound" >&6; }
7795 ;;
7796 *)
7797 if test "x$ac_external_pa" != "x1"; then
7798 ac_fn_c_check_header_compile "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
7799 if test "x$ac_cv_header_alsa_version_h" = xyes
7800 then :
7801 LIBS="$LIBS -lasound"
7802 ac_pjmedia_snd=alsa
7803 fi
7804
7805 if test "x$ac_pjmedia_snd" = "xalsa"; then
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... alsa" >&5
7807 printf "%s\n" "Checking sound device backend... alsa" >&6; }
7808 else
7809 ac_pjmedia_snd=null
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
7811 printf "%s\n" "Checking sound device backend... null sound" >&6; }
7812 fi
7813 fi
7814 ;;
7815 esac
7816 fi
7817
7818
7819
7820 # Disable video on mingw by default (but respect --enable-video=yes)
7821 case $target in
7822 *mingw*)
7823 if test ! "$enable_video" = "yes"; then
7824 enable_video="no"
7825 fi
7826 ;;
7827 esac
7828
7829 # Check whether --enable-video was given.
7830 if test ${enable_video+y}
7831 then :
7832 enableval=$enable_video;
7833 if test "$enable_video" = "no"; then
7834 #AC_DEFINE(PJMEDIA_HAS_VIDEO,0)
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5
7836 printf "%s\n" "Video is disabled" >&6; }
7837 enable_sdl="no"
7838 enable_ffmpeg="no"
7839 enable_v4l2="no"
7840 enable_openh264="no"
7841 enable_libyuv="no"
7842 enable_vpx="no"
7843 fi
7844
7845 fi
7846
7847
7848 case $target in
7849 *android*)
7850 LIBS="$LIBS -llog"
7851 ;;
7852 *-apple-darwin_ios*)
7853 LIBS="$LIBS -framework UIKit"
7854 ;;
7855 *darwin*)
7856 LIBS="$LIBS -framework Foundation -framework AppKit"
7857 ;;
7858 esac
7859
7860 if test "$enable_video" = "no"; then
7861 true;
7862 else
7863 case $target in
7864 *android*)
7865 ac_pjmedia_video=android_os
7866
7867
7868 SAVED_LIBS="$LIBS"
7869 LIBS="-lGLESv2 -lEGL -landroid -lc"
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872
7873
7874 int
7875 main (void)
7876 {
7877
7878 ;
7879 return 0;
7880 }
7881
7882 _ACEOF
7883 if ac_fn_c_try_link "$LINENO"
7884 then :
7885 ac_pjmedia_video_has_android=yes
7886 else case e in #(
7887 e) ac_pjmedia_video_has_android=no
7888 ;;
7889 esac
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7892 conftest$ac_exeext conftest.$ac_ext
7893 LIBS="$SAVED_LIBS"
7894 if test "$ac_pjmedia_video_has_android" = "yes"; then
7895 ac_android_cflags="-DPJMEDIA_VIDEO_DEV_HAS_ANDROID_OPENGL=1"
7896 LIBS="$LIBS -lGLESv2 -lEGL -landroid"
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGL ES 2 is available... yes" >&5
7898 printf "%s\n" "Checking if OpenGL ES 2 is available... yes" >&6; }
7899 else
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGL ES 2 is available... no" >&5
7901 printf "%s\n" "Checking if OpenGL ES 2 is available... no" >&6; }
7902 fi
7903 ac_android_cflags="$ac_android_cflags -DPJMEDIA_VIDEO_DEV_HAS_ANDROID=1"
7904 ;;
7905 *mingw*)
7906 if test "$enable_video" = "yes"; then
7907 ac_pjmedia_video=windows_os
7908
7909 ac_pjmedia_video_dev_has_dshow=yes
7910
7911 ac_dshow_cflags="-DPJMEDIA_HAS_VIDEO=1 -DPJMEDIA_VIDEO_DEV_HAS_DSHOW=1"
7912
7913 ac_dshow_ldflags=" -lstdc++ -lquartz -lole32 -loleaut32 -lrpcrt4 -lwinmm -luuid -lmingwex -lstrmiids "
7914 LIBS="$LIBS -lstdc++ -lquartz -lole32 -loleaut32 -lrpcrt4 -lwinmm -luuid -lmingwex -lstrmiids "
7915 fi
7916 ;;
7917 *darwin*)
7918 ac_pjmedia_video=darwin_os
7919
7920
7921
7922
7923
7924 SAVED_LIBS="$LIBS"
7925
7926 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929
7930 int
7931 main (void)
7932 {
7933
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_link "$LINENO"
7939 then :
7940 ac_pjmedia_video_has_darwin=yes
7941 else case e in #(
7942 e) ac_pjmedia_video_has_darwin=no
7943 ;;
7944 esac
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7947 conftest$ac_exeext conftest.$ac_ext
7948
7949 LIBS="-framework VideoToolbox"
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952
7953 int
7954 main (void)
7955 {
7956
7957 ;
7958 return 0;
7959 }
7960 _ACEOF
7961 if ac_fn_c_try_link "$LINENO"
7962 then :
7963 ac_pjmedia_video_has_vtoolbox=yes
7964 else case e in #(
7965 e) ac_pjmedia_video_has_vtoolbox=no ;;
7966 esac
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7969 conftest$ac_exeext conftest.$ac_ext
7970
7971 LIBS="-framework Metal"
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974
7975 int
7976 main (void)
7977 {
7978
7979 ;
7980 return 0;
7981 }
7982 _ACEOF
7983 if ac_fn_c_try_link "$LINENO"
7984 then :
7985 ac_pjmedia_video_has_metal=yes
7986 else case e in #(
7987 e) ac_pjmedia_video_has_metal=no ;;
7988 esac
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7991 conftest$ac_exeext conftest.$ac_ext
7992
7993 LIBS="-framework OpenGLES"
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996
7997 int
7998 main (void)
7999 {
8000
8001 ;
8002 return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_link "$LINENO"
8006 then :
8007 ac_pjmedia_video_has_ios_opengl=yes
8008 else case e in #(
8009 e) ac_pjmedia_video_has_ios_opengl=no ;;
8010 esac
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8013 conftest$ac_exeext conftest.$ac_ext
8014
8015 LIBS="$SAVED_LIBS"
8016 if test "$ac_pjmedia_video_has_darwin" = "yes"; then
8017 ac_darwin_cflags="-DPJMEDIA_VIDEO_DEV_HAS_DARWIN=1"
8018 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
8020 printf "%s\n" "Checking if AVFoundation framework is available... yes" >&6; }
8021 else
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
8023 printf "%s\n" "Checking if AVFoundation framework is available... no" >&6; }
8024 fi
8025
8026 if test "$ac_pjmedia_video_has_metal" = "yes"; then
8027 ac_darwin_cflags+=" -DPJMEDIA_VIDEO_DEV_HAS_METAL=1"
8028 LIBS="$LIBS -framework Metal -framework MetalKit"
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Metal framework is available... yes" >&5
8030 printf "%s\n" "Checking if Metal framework is available... yes" >&6; }
8031 else
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Metal framework is available... no" >&5
8033 printf "%s\n" "Checking if Metal framework is available... no" >&6; }
8034 fi
8035
8036 if test "$ac_pjmedia_video_has_vtoolbox" = "yes"; then
8037 #ac_darwin_cflags+=" -DPJMEDIA_HAS_VID_TOOLBOX_CODEC=1"
8038 LIBS="$LIBS -framework VideoToolbox"
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if VideoToolbox framework is available... yes" >&5
8040 printf "%s\n" "Checking if VideoToolbox framework is available... yes" >&6; }
8041 else
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if VideoToolbox framework is available... no" >&5
8043 printf "%s\n" "Checking if VideoToolbox framework is available... no" >&6; }
8044 fi
8045
8046 if test "$ac_pjmedia_video_has_ios_opengl" = "yes"; then
8047 ac_darwin_cflags+=" -DPJMEDIA_VIDEO_DEV_HAS_IOS_OPENGL=1"
8048 LIBS="$LIBS -framework OpenGLES"
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGLES framework is available... yes" >&5
8050 printf "%s\n" "Checking if OpenGLES framework is available... yes" >&6; }
8051 else
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGLES framework is available... no" >&5
8053 printf "%s\n" "Checking if OpenGLES framework is available... no" >&6; }
8054 fi
8055
8056 if false; then
8057 # QTKit is deprecated, see ticket #1931.
8058 ac_pjmedia_video=mac_os
8059
8060
8061 SAVED_LIBS="$LIBS"
8062 LIBS="-framework QTKit"
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065
8066 int
8067 main (void)
8068 {
8069
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_link "$LINENO"
8075 then :
8076 ac_pjmedia_video_has_qt=yes
8077 else case e in #(
8078 e) ac_pjmedia_video_has_qt=no ;;
8079 esac
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8082 conftest$ac_exeext conftest.$ac_ext
8083 LIBS="$SAVED_LIBS"
8084 if test "$ac_pjmedia_video_has_qt" = "yes"; then
8085 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
8086 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
8088 printf "%s\n" "Checking if QTKit framework is available... yes" >&6; }
8089 else
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
8091 printf "%s\n" "Checking if QTKit framework is available... no" >&6; }
8092 fi
8093 fi
8094 ;;
8095 esac
8096 fi
8097
8098 # Check whether --enable-ext_sound was given.
8099 if test ${enable_ext_sound+y}
8100 then :
8101 enableval=$enable_ext_sound;
8102 if test "$enable_ext_sound" = "yes"; then
8103 ac_pjmedia_snd=external
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
8105 printf "%s\n" "Checking if external sound is set... yes" >&6; }
8106 fi
8107
8108
8109 fi
8110
8111
8112
8113 # Check whether --enable-small-filter was given.
8114 if test ${enable_small_filter+y}
8115 then :
8116 enableval=$enable_small_filter;
8117 if test "$enable_small_filter" = "no"; then
8118 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
8120 printf "%s\n" "Checking if small filter is disabled... yes" >&6; }
8121 fi
8122
8123 else case e in #(
8124 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
8125 printf "%s\n" "Checking if small filter is disabled... no" >&6; }
8126 ;;
8127 esac
8128 fi
8129
8130
8131
8132 # Check whether --enable-large-filter was given.
8133 if test ${enable_large_filter+y}
8134 then :
8135 enableval=$enable_large_filter;
8136 if test "$enable_large_filter" = "no"; then
8137 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
8139 printf "%s\n" "Checking if large filter is disabled... yes" >&6; }
8140 fi
8141
8142 else case e in #(
8143 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
8144 printf "%s\n" "Checking if large filter is disabled... no" >&6; }
8145 ;;
8146 esac
8147 fi
8148
8149
8150
8151 # Check whether --enable-speex-aec was given.
8152 if test ${enable_speex_aec+y}
8153 then :
8154 enableval=$enable_speex_aec;
8155 if test "$enable_speex_aec" = "no"; then
8156 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
8158 printf "%s\n" "Checking if Speex AEC is disabled...yes" >&6; }
8159 fi
8160
8161 else case e in #(
8162 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
8163 printf "%s\n" "Checking if Speex AEC is disabled...no" >&6; }
8164 ;;
8165 esac
8166 fi
8167
8168
8169
8170 # Check whether --enable-g711-codec was given.
8171 if test ${enable_g711_codec+y}
8172 then :
8173 enableval=$enable_g711_codec;
8174 if test "$enable_g711_codec" = "no"; then
8175 ac_no_g711_codec=1
8176 printf "%s\n" "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
8177
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
8179 printf "%s\n" "Checking if G.711 codec is disabled...yes" >&6; }
8180 fi
8181
8182 else case e in #(
8183 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
8184 printf "%s\n" "Checking if G.711 codec is disabled...no" >&6; }
8185 ;;
8186 esac
8187 fi
8188
8189
8190
8191
8192 # Check whether --enable-l16-codec was given.
8193 if test ${enable_l16_codec+y}
8194 then :
8195 enableval=$enable_l16_codec;
8196 if test "$enable_l16_codec" = "no"; then
8197 ac_no_l16_codec=1
8198 printf "%s\n" "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
8199
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
8201 printf "%s\n" "Checking if L16 codecs are disabled...yes" >&6; }
8202 fi
8203
8204 else case e in #(
8205 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
8206 printf "%s\n" "Checking if L16 codec is disabled...no" >&6; }
8207 ;;
8208 esac
8209 fi
8210
8211
8212
8213 # Check whether --enable-gsm-codec was given.
8214 if test ${enable_gsm_codec+y}
8215 then :
8216 enableval=$enable_gsm_codec;
8217 if test "$enable_gsm_codec" = "no"; then
8218 ac_no_gsm_codec=1
8219 printf "%s\n" "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
8220
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
8222 printf "%s\n" "Checking if GSM codec is disabled...yes" >&6; }
8223 fi
8224
8225 else case e in #(
8226 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
8227 printf "%s\n" "Checking if GSM codec is disabled...no" >&6; }
8228 ;;
8229 esac
8230 fi
8231
8232
8233
8234 # Check whether --enable-g722-codec was given.
8235 if test ${enable_g722_codec+y}
8236 then :
8237 enableval=$enable_g722_codec;
8238 if test "$enable_g722_codec" = "no"; then
8239 ac_no_g722_codec=1
8240 printf "%s\n" "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
8241
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
8243 printf "%s\n" "Checking if G.722 codec is disabled...yes" >&6; }
8244 fi
8245
8246 else case e in #(
8247 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
8248 printf "%s\n" "Checking if G.722 codec is disabled...no" >&6; }
8249 ;;
8250 esac
8251 fi
8252
8253
8254
8255 # Check whether --enable-g7221-codec was given.
8256 if test ${enable_g7221_codec+y}
8257 then :
8258 enableval=$enable_g7221_codec;
8259 if test "$enable_g7221_codec" = "no"; then
8260 ac_no_g7221_codec=1
8261 printf "%s\n" "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
8262
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
8264 printf "%s\n" "Checking if G.722.1 codec is disabled...yes" >&6; }
8265 fi
8266
8267 else case e in #(
8268 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
8269 printf "%s\n" "Checking if G.722.1 codec is disabled...no" >&6; }
8270 ;;
8271 esac
8272 fi
8273
8274
8275
8276 # Check whether --enable-speex-codec was given.
8277 if test ${enable_speex_codec+y}
8278 then :
8279 enableval=$enable_speex_codec;
8280 if test "$enable_speex_codec" = "no"; then
8281 ac_no_speex_codec=1
8282 printf "%s\n" "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
8283
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
8285 printf "%s\n" "Checking if Speex codec is disabled...yes" >&6; }
8286 fi
8287
8288 else case e in #(
8289 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
8290 printf "%s\n" "Checking if Speex codec is disabled...no" >&6; }
8291 ;;
8292 esac
8293 fi
8294
8295
8296
8297 # Check whether --enable-ilbc-codec was given.
8298 if test ${enable_ilbc_codec+y}
8299 then :
8300 enableval=$enable_ilbc_codec;
8301 if test "$enable_ilbc_codec" = "no"; then
8302 ac_no_ilbc_codec=1
8303 printf "%s\n" "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
8304
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
8306 printf "%s\n" "Checking if iLBC codec is disabled...yes" >&6; }
8307 fi
8308
8309 else case e in #(
8310 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
8311 printf "%s\n" "Checking if iLBC codec is disabled...no" >&6; }
8312 ;;
8313 esac
8314 fi
8315
8316
8317 # Check whether --enable-libsamplerate was given.
8318 if test ${enable_libsamplerate+y}
8319 then :
8320 enableval=$enable_libsamplerate;
8321 if test "$enable_libsamplerate" = "yes"; then
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsamplerate is enabled...yes" >&5
8323 printf "%s\n" "Checking if libsamplerate is enabled...yes" >&6; }
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
8325 printf %s "checking for src_new in -lsamplerate... " >&6; }
8326 if test ${ac_cv_lib_samplerate_src_new+y}
8327 then :
8328 printf %s "(cached) " >&6
8329 else case e in #(
8330 e) ac_check_lib_save_LIBS=$LIBS
8331 LIBS="-lsamplerate $LIBS"
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334
8335 /* Override any GCC internal prototype to avoid an error.
8336 Use char because int might match the return type of a GCC
8337 builtin and then its argument prototype would still apply.
8338 The 'extern "C"' is for builds by C++ compilers;
8339 although this is not generally supported in C code supporting it here
8340 has little cost and some practical benefit (sr 110532). */
8341 #ifdef __cplusplus
8342 extern "C"
8343 #endif
8344 char src_new (void);
8345 int
8346 main (void)
8347 {
8348 return src_new ();
8349 ;
8350 return 0;
8351 }
8352 _ACEOF
8353 if ac_fn_c_try_link "$LINENO"
8354 then :
8355 ac_cv_lib_samplerate_src_new=yes
8356 else case e in #(
8357 e) ac_cv_lib_samplerate_src_new=no ;;
8358 esac
8359 fi
8360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8361 conftest$ac_exeext conftest.$ac_ext
8362 LIBS=$ac_check_lib_save_LIBS ;;
8363 esac
8364 fi
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
8366 printf "%s\n" "$ac_cv_lib_samplerate_src_new" >&6; }
8367 if test "x$ac_cv_lib_samplerate_src_new" = xyes
8368 then :
8369 printf "%s\n" "#define HAVE_LIBSAMPLERATE 1" >>confdefs.h
8370
8371 LIBS="-lsamplerate $LIBS"
8372
8373 fi
8374
8375 ac_pjmedia_resample=libsamplerate
8376 else
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsamplerate is enabled...no" >&5
8378 printf "%s\n" "Checking if libsamplerate is enabled...no" >&6; }
8379 fi
8380
8381 else case e in #(
8382 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsamplerate is enabled...no" >&5
8383 printf "%s\n" "Checking if libsamplerate is enabled...no" >&6; }
8384 ;;
8385 esac
8386 fi
8387
8388
8389
8390 # Check whether --enable-resample_dll was given.
8391 if test ${enable_resample_dll+y}
8392 then :
8393 enableval=$enable_resample_dll;
8394 if test "$enable_resample_dll" = "yes"; then
8395 ac_resample_dll=1
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
8397 printf "%s\n" "Building libresample as shared library... yes" >&6; }
8398 fi
8399
8400 else case e in #(
8401 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
8402 printf "%s\n" "Building libresample as shared library... no" >&6; }
8403 ;;
8404 esac
8405 fi
8406
8407
8408 # Check whether --enable-speex-resample was given.
8409 if test ${enable_speex_resample+y}
8410 then :
8411 enableval=$enable_speex_resample;
8412 if test "$enable_speex_resample" = "yes"; then
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex resample is enabled... yes" >&5
8414 printf "%s\n" "Checking if Speex resample is enabled... yes" >&6; }
8415 ac_pjmedia_resample=speex
8416 else
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex resample is enabled... no" >&5
8418 printf "%s\n" "Checking if Speex resample is enabled... no" >&6; }
8419 fi
8420
8421 else case e in #(
8422 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex resample is enabled... no" >&5
8423 printf "%s\n" "Checking if Speex resample is enabled... no" >&6; }
8424 ;;
8425 esac
8426 fi
8427
8428
8429
8430 # Check whether --with-sdl was given.
8431 if test ${with_sdl+y}
8432 then :
8433 withval=$with_sdl;
8434 else case e in #(
8435 e) with_sdl=no
8436 ;;
8437 esac
8438 fi
8439
8440
8441 if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then
8442 enable_sdl=no
8443 fi
8444
8445 # Check whether --enable-sdl was given.
8446 if test ${enable_sdl+y}
8447 then :
8448 enableval=$enable_sdl;
8449 if test "$enable_sdl" = "no"; then
8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
8451 printf "%s\n" "Checking if SDL is disabled... yes" >&6; }
8452 fi
8453
8454 else case e in #(
8455 e)
8456 if test "x$with_sdl" != "xyes" -a "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
8458 printf "%s\n" "Using SDL prefix... $with_sdl" >&6; }
8459 for ac_prog in sdl2-config sdl-config
8460 do
8461 # Extract the first word of "$ac_prog", so it can be a program name with args.
8462 set dummy $ac_prog; ac_word=$2
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 printf %s "checking for $ac_word... " >&6; }
8465 if test ${ac_cv_path_SDL_CONFIG+y}
8466 then :
8467 printf %s "(cached) " >&6
8468 else case e in #(
8469 e) case $SDL_CONFIG in
8470 [\\/]* | ?:[\\/]*)
8471 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
8472 ;;
8473 *)
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $with_sdl/bin
8476 do
8477 IFS=$as_save_IFS
8478 case $as_dir in #(((
8479 '') as_dir=./ ;;
8480 */) ;;
8481 *) as_dir=$as_dir/ ;;
8482 esac
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8485 ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext"
8486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489 done
8490 done
8491 IFS=$as_save_IFS
8492
8493 ;;
8494 esac ;;
8495 esac
8496 fi
8497 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
8498 if test -n "$SDL_CONFIG"; then
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
8500 printf "%s\n" "$SDL_CONFIG" >&6; }
8501 else
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 printf "%s\n" "no" >&6; }
8504 fi
8505
8506
8507 test -n "$SDL_CONFIG" && break
8508 done
8509
8510 else
8511 for ac_prog in sdl2-config sdl-config
8512 do
8513 # Extract the first word of "$ac_prog", so it can be a program name with args.
8514 set dummy $ac_prog; ac_word=$2
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 printf %s "checking for $ac_word... " >&6; }
8517 if test ${ac_cv_path_SDL_CONFIG+y}
8518 then :
8519 printf %s "(cached) " >&6
8520 else case e in #(
8521 e) case $SDL_CONFIG in
8522 [\\/]* | ?:[\\/]*)
8523 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
8524 ;;
8525 *)
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 for as_dir in $PATH
8528 do
8529 IFS=$as_save_IFS
8530 case $as_dir in #(((
8531 '') as_dir=./ ;;
8532 */) ;;
8533 *) as_dir=$as_dir/ ;;
8534 esac
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8537 ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext"
8538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8539 break 2
8540 fi
8541 done
8542 done
8543 IFS=$as_save_IFS
8544
8545 ;;
8546 esac ;;
8547 esac
8548 fi
8549 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
8550 if test -n "$SDL_CONFIG"; then
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
8552 printf "%s\n" "$SDL_CONFIG" >&6; }
8553 else
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 printf "%s\n" "no" >&6; }
8556 fi
8557
8558
8559 test -n "$SDL_CONFIG" && break
8560 done
8561
8562 fi
8563
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SDL availability" >&5
8565 printf %s "checking SDL availability... " >&6; }
8566 if test "x$SDL_CONFIG" = "x"; then
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8568 printf "%s\n" "not found" >&6; }
8569 elif (sh -c "$SDL_CONFIG --version" | grep -e '^1\.3' -e '^2\.') then
8570
8571
8572 ac_sdl_cflags=`$SDL_CONFIG --cflags`
8573 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
8574 ac_sdl_ldflags=`$SDL_CONFIG --libs`
8575 ac_sdl_ldflags=`echo "${ac_sdl_ldflags}" | sed -e 's/-mwindows//g'`
8576 LIBS="$LIBS $ac_sdl_ldflags"
8577 else
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
8579 printf "%s\n" "Unsupported SDL version" >&6; }
8580 fi
8581
8582 ;;
8583 esac
8584 fi
8585
8586
8587
8588 # Check whether --with-ffmpeg was given.
8589 if test ${with_ffmpeg+y}
8590 then :
8591 withval=$with_ffmpeg;
8592 else case e in #(
8593 e) with_ffmpeg=no
8594 ;;
8595 esac
8596 fi
8597
8598
8599 if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then
8600 enable_ffmpeg=no
8601 fi
8602
8603 # Check whether --enable-ffmpeg was given.
8604 if test ${enable_ffmpeg+y}
8605 then :
8606 enableval=$enable_ffmpeg;
8607 ac_has_ffmpeg=0
8608
8609 if test "$enable_ffmpeg" = "no"; then
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
8611 printf "%s\n" "Checking if ffmpeg is disabled... yes" >&6; }
8612 fi
8613
8614 else case e in #(
8615 e)
8616
8617
8618
8619 FFMPEG_PREFIX=""
8620
8621 SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
8622 if test "x$with_ffmpeg" != "xyes" -a "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
8623 FFMPEG_PREFIX=$with_ffmpeg
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
8625 printf "%s\n" "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
8626 export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
8627 fi
8628
8629 if test "$PKG_CONFIG" != "none"; then
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
8631 printf %s "checking ffmpeg packages... " >&6; }
8632 av_pkg=""
8633 if $PKG_CONFIG --exists libavdevice; then
8634 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
8635 av_pkg="$av_pkg libavdevice"
8636 fi
8637 if $PKG_CONFIG --exists libavformat; then
8638 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
8639 av_pkg="$av_pkg libavformat"
8640 fi
8641 if $PKG_CONFIG --exists libavcodec; then
8642 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
8643 av_pkg="$av_pkg libavcodec"
8644 fi
8645 if $PKG_CONFIG --exists libswscale; then
8646 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
8647 av_pkg="$av_pkg libswscale"
8648 fi
8649 if $PKG_CONFIG --exists libavutil; then
8650 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
8651 av_pkg="$av_pkg libavutil"
8652 fi
8653
8654 if test "x$av_pkg" = "x"; then
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
8656 printf "%s\n" "none detected (check the prefix)! **" >&6; }
8657 else
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
8659 printf "%s\n" "$av_pkg" >&6; }
8660 fi
8661
8662 ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
8663 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
8664
8665 else
8666
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&5
8668 printf "%s\n" "*** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&6; }
8669
8670 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
8671 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
8672 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
8673
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
8675 printf %s "checking for avdevice_version in -lavdevice... " >&6; }
8676 if test ${ac_cv_lib_avdevice_avdevice_version+y}
8677 then :
8678 printf %s "(cached) " >&6
8679 else case e in #(
8680 e) ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-lavdevice $LIBS"
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684
8685 /* Override any GCC internal prototype to avoid an error.
8686 Use char because int might match the return type of a GCC
8687 builtin and then its argument prototype would still apply.
8688 The 'extern "C"' is for builds by C++ compilers;
8689 although this is not generally supported in C code supporting it here
8690 has little cost and some practical benefit (sr 110532). */
8691 #ifdef __cplusplus
8692 extern "C"
8693 #endif
8694 char avdevice_version (void);
8695 int
8696 main (void)
8697 {
8698 return avdevice_version ();
8699 ;
8700 return 0;
8701 }
8702 _ACEOF
8703 if ac_fn_c_try_link "$LINENO"
8704 then :
8705 ac_cv_lib_avdevice_avdevice_version=yes
8706 else case e in #(
8707 e) ac_cv_lib_avdevice_avdevice_version=no ;;
8708 esac
8709 fi
8710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8711 conftest$ac_exeext conftest.$ac_ext
8712 LIBS=$ac_check_lib_save_LIBS ;;
8713 esac
8714 fi
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
8716 printf "%s\n" "$ac_cv_lib_avdevice_avdevice_version" >&6; }
8717 if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes
8718 then :
8719
8720 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
8721 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
8722 fi
8723
8724
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
8726 printf %s "checking for av_malloc in -lavutil... " >&6; }
8727 if test ${ac_cv_lib_avutil_av_malloc+y}
8728 then :
8729 printf %s "(cached) " >&6
8730 else case e in #(
8731 e) ac_check_lib_save_LIBS=$LIBS
8732 LIBS="-lavutil $LIBS"
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735
8736 /* Override any GCC internal prototype to avoid an error.
8737 Use char because int might match the return type of a GCC
8738 builtin and then its argument prototype would still apply.
8739 The 'extern "C"' is for builds by C++ compilers;
8740 although this is not generally supported in C code supporting it here
8741 has little cost and some practical benefit (sr 110532). */
8742 #ifdef __cplusplus
8743 extern "C"
8744 #endif
8745 char av_malloc (void);
8746 int
8747 main (void)
8748 {
8749 return av_malloc ();
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_link "$LINENO"
8755 then :
8756 ac_cv_lib_avutil_av_malloc=yes
8757 else case e in #(
8758 e) ac_cv_lib_avutil_av_malloc=no ;;
8759 esac
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8762 conftest$ac_exeext conftest.$ac_ext
8763 LIBS=$ac_check_lib_save_LIBS ;;
8764 esac
8765 fi
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
8767 printf "%s\n" "$ac_cv_lib_avutil_av_malloc" >&6; }
8768 if test "x$ac_cv_lib_avutil_av_malloc" = xyes
8769 then :
8770
8771 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
8772 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
8773 fi
8774
8775
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
8777 printf %s "checking for avcodec_init in -lavcodec... " >&6; }
8778 if test ${ac_cv_lib_avcodec_avcodec_init+y}
8779 then :
8780 printf %s "(cached) " >&6
8781 else case e in #(
8782 e) ac_check_lib_save_LIBS=$LIBS
8783 LIBS="-lavcodec -lavutil $LIBS"
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786
8787 /* Override any GCC internal prototype to avoid an error.
8788 Use char because int might match the return type of a GCC
8789 builtin and then its argument prototype would still apply.
8790 The 'extern "C"' is for builds by C++ compilers;
8791 although this is not generally supported in C code supporting it here
8792 has little cost and some practical benefit (sr 110532). */
8793 #ifdef __cplusplus
8794 extern "C"
8795 #endif
8796 char avcodec_init (void);
8797 int
8798 main (void)
8799 {
8800 return avcodec_init ();
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"
8806 then :
8807 ac_cv_lib_avcodec_avcodec_init=yes
8808 else case e in #(
8809 e) ac_cv_lib_avcodec_avcodec_init=no ;;
8810 esac
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8813 conftest$ac_exeext conftest.$ac_ext
8814 LIBS=$ac_check_lib_save_LIBS ;;
8815 esac
8816 fi
8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
8818 printf "%s\n" "$ac_cv_lib_avcodec_avcodec_init" >&6; }
8819 if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes
8820 then :
8821
8822 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
8823 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
8824 fi
8825
8826
8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
8828 printf %s "checking for av_register_all in -lavformat... " >&6; }
8829 if test ${ac_cv_lib_avformat_av_register_all+y}
8830 then :
8831 printf %s "(cached) " >&6
8832 else case e in #(
8833 e) ac_check_lib_save_LIBS=$LIBS
8834 LIBS="-lavformat -lavcodec -lavutil $LIBS"
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8837
8838 /* Override any GCC internal prototype to avoid an error.
8839 Use char because int might match the return type of a GCC
8840 builtin and then its argument prototype would still apply.
8841 The 'extern "C"' is for builds by C++ compilers;
8842 although this is not generally supported in C code supporting it here
8843 has little cost and some practical benefit (sr 110532). */
8844 #ifdef __cplusplus
8845 extern "C"
8846 #endif
8847 char av_register_all (void);
8848 int
8849 main (void)
8850 {
8851 return av_register_all ();
8852 ;
8853 return 0;
8854 }
8855 _ACEOF
8856 if ac_fn_c_try_link "$LINENO"
8857 then :
8858 ac_cv_lib_avformat_av_register_all=yes
8859 else case e in #(
8860 e) ac_cv_lib_avformat_av_register_all=no ;;
8861 esac
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8864 conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS ;;
8866 esac
8867 fi
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
8869 printf "%s\n" "$ac_cv_lib_avformat_av_register_all" >&6; }
8870 if test "x$ac_cv_lib_avformat_av_register_all" = xyes
8871 then :
8872
8873 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
8874 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
8875 fi
8876
8877
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
8879 printf %s "checking for sws_scale in -lswscale... " >&6; }
8880 if test ${ac_cv_lib_swscale_sws_scale+y}
8881 then :
8882 printf %s "(cached) " >&6
8883 else case e in #(
8884 e) ac_check_lib_save_LIBS=$LIBS
8885 LIBS="-lswscale -lavutil $LIBS"
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888
8889 /* Override any GCC internal prototype to avoid an error.
8890 Use char because int might match the return type of a GCC
8891 builtin and then its argument prototype would still apply.
8892 The 'extern "C"' is for builds by C++ compilers;
8893 although this is not generally supported in C code supporting it here
8894 has little cost and some practical benefit (sr 110532). */
8895 #ifdef __cplusplus
8896 extern "C"
8897 #endif
8898 char sws_scale (void);
8899 int
8900 main (void)
8901 {
8902 return sws_scale ();
8903 ;
8904 return 0;
8905 }
8906 _ACEOF
8907 if ac_fn_c_try_link "$LINENO"
8908 then :
8909 ac_cv_lib_swscale_sws_scale=yes
8910 else case e in #(
8911 e) ac_cv_lib_swscale_sws_scale=no ;;
8912 esac
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8915 conftest$ac_exeext conftest.$ac_ext
8916 LIBS=$ac_check_lib_save_LIBS ;;
8917 esac
8918 fi
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
8920 printf "%s\n" "$ac_cv_lib_swscale_sws_scale" >&6; }
8921 if test "x$ac_cv_lib_swscale_sws_scale" = xyes
8922 then :
8923
8924 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
8925 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
8926 fi
8927
8928
8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
8930 printf %s "checking for avcore_version in -lavcore... " >&6; }
8931 if test ${ac_cv_lib_avcore_avcore_version+y}
8932 then :
8933 printf %s "(cached) " >&6
8934 else case e in #(
8935 e) ac_check_lib_save_LIBS=$LIBS
8936 LIBS="-lavcore $LIBS"
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939
8940 /* Override any GCC internal prototype to avoid an error.
8941 Use char because int might match the return type of a GCC
8942 builtin and then its argument prototype would still apply.
8943 The 'extern "C"' is for builds by C++ compilers;
8944 although this is not generally supported in C code supporting it here
8945 has little cost and some practical benefit (sr 110532). */
8946 #ifdef __cplusplus
8947 extern "C"
8948 #endif
8949 char avcore_version (void);
8950 int
8951 main (void)
8952 {
8953 return avcore_version ();
8954 ;
8955 return 0;
8956 }
8957 _ACEOF
8958 if ac_fn_c_try_link "$LINENO"
8959 then :
8960 ac_cv_lib_avcore_avcore_version=yes
8961 else case e in #(
8962 e) ac_cv_lib_avcore_avcore_version=no ;;
8963 esac
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8966 conftest$ac_exeext conftest.$ac_ext
8967 LIBS=$ac_check_lib_save_LIBS ;;
8968 esac
8969 fi
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
8971 printf "%s\n" "$ac_cv_lib_avcore_avcore_version" >&6; }
8972 if test "x$ac_cv_lib_avcore_avcore_version" = xyes
8973 then :
8974
8975 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
8976 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
8977 fi
8978
8979 fi
8980
8981 ac_fn_c_check_type "$LINENO" "enum AVPixelFormat" "ac_cv_type_enum_AVPixelFormat" "#include <libavformat/avformat.h>
8982 "
8983 if test "x$ac_cv_type_enum_AVPixelFormat" = xyes
8984 then :
8985
8986 printf "%s\n" "#define HAVE_ENUM_AVPIXELFORMAT 1" >>confdefs.h
8987
8988
8989 else case e in #(
8990 e)
8991 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_USE_OLD_FFMPEG=1" ;;
8992 esac
8993 fi
8994
8995
8996 LIBS="$LIBS $ac_ffmpeg_ldflags"
8997 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
8998
8999 ;;
9000 esac
9001 fi
9002
9003
9004 # Check whether --enable-v4l2 was given.
9005 if test ${enable_v4l2+y}
9006 then :
9007 enableval=$enable_v4l2;
9008 if test "$enable_v4l2" = "no"; then
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
9010 printf "%s\n" "Checking if V4L2 is disabled... yes" >&6; }
9011 fi
9012
9013 else case e in #(
9014 e)
9015
9016
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
9018 printf %s "checking for v4l2_open in -lv4l2... " >&6; }
9019 if test ${ac_cv_lib_v4l2_v4l2_open+y}
9020 then :
9021 printf %s "(cached) " >&6
9022 else case e in #(
9023 e) ac_check_lib_save_LIBS=$LIBS
9024 LIBS="-lv4l2 $LIBS"
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027
9028 /* Override any GCC internal prototype to avoid an error.
9029 Use char because int might match the return type of a GCC
9030 builtin and then its argument prototype would still apply.
9031 The 'extern "C"' is for builds by C++ compilers;
9032 although this is not generally supported in C code supporting it here
9033 has little cost and some practical benefit (sr 110532). */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 char v4l2_open (void);
9038 int
9039 main (void)
9040 {
9041 return v4l2_open ();
9042 ;
9043 return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_c_try_link "$LINENO"
9047 then :
9048 ac_cv_lib_v4l2_v4l2_open=yes
9049 else case e in #(
9050 e) ac_cv_lib_v4l2_v4l2_open=no ;;
9051 esac
9052 fi
9053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9054 conftest$ac_exeext conftest.$ac_ext
9055 LIBS=$ac_check_lib_save_LIBS ;;
9056 esac
9057 fi
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
9059 printf "%s\n" "$ac_cv_lib_v4l2_v4l2_open" >&6; }
9060 if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes
9061 then :
9062
9063 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
9064 ac_v4l2_ldflags="-lv4l2"
9065 LIBS="$LIBS -lv4l2"
9066 fi
9067
9068
9069 ;;
9070 esac
9071 fi
9072
9073
9074
9075 # Check whether --with-openh264 was given.
9076 if test ${with_openh264+y}
9077 then :
9078 withval=$with_openh264;
9079 else case e in #(
9080 e) with_openh264=no
9081 ;;
9082 esac
9083 fi
9084
9085
9086 if test "x$ac_cross_compile" != "x" -a "x$with_openh264" = "xno"; then
9087 enable_openh264=no
9088 fi
9089
9090
9091
9092 # Check whether --enable-openh264 was given.
9093 if test ${enable_openh264+y}
9094 then :
9095 enableval=$enable_openh264;
9096 if test "$enable_openh264" = "no"; then
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenH264 is disabled... yes" >&5
9098 printf "%s\n" "Checking if OpenH264 is disabled... yes" >&6; }
9099 fi
9100
9101 else case e in #(
9102 e)
9103 if test "x$with_openh264" != "xno" -a "x$with_openh264" != "x"; then
9104 OPENH264_PREFIX=$with_openh264
9105 OPENH264_CFLAGS="-I$OPENH264_PREFIX/include"
9106 OPENH264_LDFLAGS="-L$OPENH264_PREFIX/lib"
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OpenH264 prefix... $with_openh264" >&5
9108 printf "%s\n" "Using OpenH264 prefix... $with_openh264" >&6; }
9109 else
9110 OPENH264_CFLAGS=""
9111 OPENH264_LDFLAGS=""
9112 fi
9113
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenH264 usability" >&5
9115 printf %s "checking OpenH264 usability... " >&6; }
9116
9117 OPENH264_LIBS="-lopenh264 -lstdc++"
9118
9119 SAVED_LIBS="$LIBS"
9120 SAVED_LDFLAGS="$LDFLAGS"
9121 SAVED_CFLAGS="$CFLAGS"
9122
9123 LIBS="$OPENH264_LIBS $LIBS"
9124 LDFLAGS="$OPENH264_LDFLAGS $LDFLAGS"
9125 CFLAGS="$OPENH264_CFLAGS $CFLAGS"
9126
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9129
9130
9131 #include <wels/codec_api.h>
9132 #include <wels/codec_app_def.h>
9133 int
9134 main (void)
9135 {
9136 WelsCreateSVCEncoder(0);
9137 ;
9138 return 0;
9139 }
9140
9141 _ACEOF
9142 if ac_fn_c_try_link "$LINENO"
9143 then :
9144
9145 ac_openh264_cflags="-DPJMEDIA_HAS_OPENH264_CODEC=1 $OPENH264_CFLAGS"
9146 ac_openh264_ldflags="$OPENH264_LDFLAGS $OPENH264_LIBS"
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9148 printf "%s\n" "yes" >&6; }
9149
9150 else case e in #(
9151 e)
9152 LIBS="$SAVED_LIBS"
9153 LDFLAGS="$SAVED_LDFLAGS"
9154 CFLAGS="$SAVED_CFLAGS"
9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 printf "%s\n" "no" >&6; }
9157
9158 ;;
9159 esac
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9162 conftest$ac_exeext conftest.$ac_ext
9163
9164 ;;
9165 esac
9166 fi
9167
9168
9169
9170 # Check whether --with-vpx was given.
9171 if test ${with_vpx+y}
9172 then :
9173 withval=$with_vpx;
9174 else case e in #(
9175 e) with_vpx=no
9176 ;;
9177 esac
9178 fi
9179
9180
9181 if test "x$ac_cross_compile" != "x" -a "x$with_vpx" = "xno"; then
9182 enable_vpx=no
9183 fi
9184
9185
9186
9187 # Check whether --enable-vpx was given.
9188 if test ${enable_vpx+y}
9189 then :
9190 enableval=$enable_vpx;
9191 if test "$enable_vpx" = "no"; then
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if VPX is disabled... yes" >&5
9193 printf "%s\n" "Checking if VPX is disabled... yes" >&6; }
9194 fi
9195
9196 else case e in #(
9197 e)
9198 if test "x$with_vpx" != "xno" -a "x$with_vpx" != "x"; then
9199 VPX_PREFIX=$with_vpx
9200 VPX_CFLAGS="-I$VPX_PREFIX/include"
9201 VPX_LDFLAGS="-L$VPX_PREFIX/lib"
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using VPX prefix... $with_vpx" >&5
9203 printf "%s\n" "Using VPX prefix... $with_vpx" >&6; }
9204 else
9205 VPX_CFLAGS=""
9206 VPX_LDFLAGS=""
9207 fi
9208
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking VPX usability" >&5
9210 printf %s "checking VPX usability... " >&6; }
9211
9212 VPX_LIBS="-lvpx"
9213
9214 SAVED_LIBS="$LIBS"
9215 SAVED_LDFLAGS="$LDFLAGS"
9216 SAVED_CFLAGS="$CFLAGS"
9217
9218 LIBS="$VPX_LIBS $LIBS"
9219 LDFLAGS="$VPX_LDFLAGS $LDFLAGS"
9220 CFLAGS="$VPX_CFLAGS $CFLAGS"
9221
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224
9225
9226 #include <vpx/vpx_encoder.h>
9227 #include <vpx/vp8cx.h>
9228 int
9229 main (void)
9230 {
9231 vpx_codec_iface_t *(*enc_if)() = &vpx_codec_vp8_cx;
9232 ;
9233 return 0;
9234 }
9235
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"
9238 then :
9239
9240 ac_vpx_cflags="-DPJMEDIA_HAS_VPX_CODEC=1 $VPX_CFLAGS"
9241 ac_vpx_ldflags="$VPX_LDFLAGS $VPX_LIBS"
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9243 printf "%s\n" "yes" >&6; }
9244
9245 else case e in #(
9246 e)
9247 LIBS="$SAVED_LIBS"
9248 LDFLAGS="$SAVED_LDFLAGS"
9249 CFLAGS="$SAVED_CFLAGS"
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 printf "%s\n" "no" >&6; }
9252
9253 ;;
9254 esac
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9257 conftest$ac_exeext conftest.$ac_ext
9258
9259 ;;
9260 esac
9261 fi
9262
9263
9264 # Check whether --enable-ipp was given.
9265 if test ${enable_ipp+y}
9266 then :
9267 enableval=$enable_ipp;
9268 else case e in #(
9269 e) enable_ipp=no
9270 ;;
9271 esac
9272 fi
9273
9274
9275
9276 # Check whether --with-ipp was given.
9277 if test ${with_ipp+y}
9278 then :
9279 withval=$with_ipp;
9280 else case e in #(
9281 e) with_ipp=no
9282 ;;
9283 esac
9284 fi
9285
9286
9287
9288 # Check whether --with-ipp-samples was given.
9289 if test ${with_ipp_samples+y}
9290 then :
9291 withval=$with_ipp_samples;
9292 else case e in #(
9293 e) with_ipp_samples=no
9294 ;;
9295 esac
9296 fi
9297
9298
9299
9300 # Check whether --with-ipp-arch was given.
9301 if test ${with_ipp_arch+y}
9302 then :
9303 withval=$with_ipp_arch;
9304 else case e in #(
9305 e) with_ipp_arch=no
9306 ;;
9307 esac
9308 fi
9309
9310
9311 if test "x$enable_ipp" != "xno"; then
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
9313 printf %s "checking Intel IPP location... " >&6; }
9314
9315 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
9317 printf "%s\n" "$with_ipp" >&6; }
9318 IPPROOT=$with_ipp
9319 elif test "x$IPPROOT" = "x"; then
9320 if test -d /opt/intel/ipp; then
9321 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
9323 printf "%s\n" "autodetected in $IPPROOT" >&6; }
9324 fi
9325 else
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
9327 printf "%s\n" "$IPPROOT" >&6; }
9328 fi
9329
9330 if test "x$with_ipp_arch" != "xno"; then
9331 IPP_SUFFIX=$with_ipp_arch
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
9333 printf "%s\n" "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
9334 else
9335 IPP_SUFFIX=""
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
9337 printf "%s\n" "IPP arch suffix is set to empty" >&6; }
9338 fi
9339
9340 if test x$IPPROOT = x; then
9341 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
9342 elif test ! -d $IPPROOT; then
9343 as_fn_error $? "not found" "$LINENO" 5
9344 elif test ! -d $IPPROOT/include; then
9345 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
9346 else
9347 # IPP directory looks okay.
9348 # Remove trailing backslash
9349 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
9350
9351 SAVED_CFLAGS="$CFLAGS"
9352 SAVED_LDFLAGS="$LDFLAGS"
9353 SAVED_LIBS="$LIBS"
9354
9355 IPP_CFLAGS="-I$IPPROOT/include"
9356 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
9357
9358 # Some differences between Mac OS X and Linux
9359 case $target in
9360 *darwin* )
9361 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
9362 ;;
9363 *)
9364 # Find out where the libraries live.
9365 IPP7_ARCH=""
9366 if test -d $IPPROOT/lib/intel64; then
9367 IPP7_ARCH="intel64"
9368 elif test -d $IPPROOT/lib/ia32; then
9369 IPP7_ARCH="ia32"
9370 elif test -d $IPPROOT/lib/mic; then
9371 IPP7_ARCH="mic"
9372 fi
9373
9374 if test -z "$IPP7_ARCH"; then
9375 # IPP6 (and possibly below)
9376 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
9377 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
9378 else
9379 # IPP7
9380 if ! test -d $IPPROOT/../compiler; then
9381 as_fn_error $? "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
9382 fi
9383 IPP_CFLAGS="$IPP_CFLAGS"
9384 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
9385 IPP_LIBS="$IPP_LIBS -liomp5"
9386 fi
9387 ;;
9388 esac
9389
9390 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
9391 #Static:
9392 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
9393
9394 CFLAGS="$CFLAGS $IPP_CFLAGS"
9395 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
9396 LIBS="$IPP_LIBS $LIBS"
9397
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
9399 printf %s "checking Intel IPP usability... " >&6; }
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402
9403
9404 #include <ippcore.h>
9405 int
9406 main (void)
9407 {
9408 ippStaticInit();
9409 ;
9410 return 0;
9411 }
9412
9413 _ACEOF
9414 if ac_fn_c_try_link "$LINENO"
9415 then :
9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9417 printf "%s\n" "yes" >&6; }
9418 else case e in #(
9419 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9420 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9421 as_fn_error $? "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info
9422 See 'config.log' for more details" "$LINENO" 5; }
9423 ;;
9424 esac
9425 fi
9426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9427 conftest$ac_exeext conftest.$ac_ext
9428
9429 CFLAGS="$SAVED_CFLAGS"
9430 LDFLAGS="$SAVED_LDFLAGS"
9431 LIBS="$SAVED_LIBS"
9432 fi
9433
9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
9435 printf %s "checking Intel IPP samples location... " >&6; }
9436
9437 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
9439 printf "%s\n" "$with_ipp_samples" >&6; }
9440 IPPSAMPLES=$with_ipp_samples
9441 elif test "x$IPPSAMPLES" = "x"; then
9442 if test -d /opt/intel/ipp-samples; then
9443 IPPSAMPLES=/opt/intel/ipp-samples
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
9445 printf "%s\n" "autodetected in $IPPSAMPLES" >&6; }
9446 fi
9447 else
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
9449 printf "%s\n" "$IPPSAMPLES" >&6; }
9450 fi
9451
9452 if test x$IPPSAMPLES = x; then
9453 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
9454 elif test ! -d $IPPSAMPLES; then
9455 as_fn_error $? "not found" "$LINENO" 5
9456 elif test ! -d $IPPSAMPLES/speech-codecs; then
9457 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
9458 else
9459 # Remove trailing backslash
9460 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
9461
9462 # Guess the libusc.a/libspeech.a build location
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
9464 printf %s "checking Intel IPP USC build location... " >&6; }
9465 if test -d $IPPSAMPLES/speech-codecs/bin; then
9466 IPPVER=5
9467 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
9468 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
9469 IPPVER=6
9470 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
9471 # gcc compiler
9472 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
9473 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
9474 # icc compiler
9475 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
9476 else
9477 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9478 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9479 as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
9480 See 'config.log' for more details" "$LINENO" 5; }
9481 fi
9482 else
9483 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9484 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9485 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?
9486 See 'config.log' for more details" "$LINENO" 5; }
9487 fi
9488
9489 # Test the directory
9490 if test ! -d $IPPSAMP_DIR; then
9491 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9492 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9493 as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
9494 See 'config.log' for more details" "$LINENO" 5; }
9495 exit 1;
9496 fi
9497
9498 if test "x$IPPVER" = "x5"; then
9499 IPPSAMP_LIBS="libusc.a"
9500 IPPSAMP_LDLIBS="-lusc"
9501 elif test "x$IPPVER" = "x6"; then
9502 IPPSAMP_LIBS="libspeech.a"
9503 IPPSAMP_LDLIBS="-lspeech"
9504 else
9505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9506 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9507 as_fn_error $? "bug in this script: unsupported IPP version
9508 See 'config.log' for more details" "$LINENO" 5; }
9509 fi
9510
9511 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
9512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9513 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9514 as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
9515 See 'config.log' for more details" "$LINENO" 5; }
9516 fi
9517
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
9519 printf "%s\n" "$IPPSAMP_DIR" >&6; }
9520
9521 SAVED_CFLAGS="$CFLAGS"
9522 SAVED_LDFLAGS="$LDFLAGS"
9523 SAVED_LIBS="$LIBS"
9524
9525 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
9526 CFLAGS="$CFLAGS $IPPSAMP_INC"
9527 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
9528 LIBS="$IPPSAMP_LDLIBS $LIBS"
9529
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
9531 printf %s "checking Intel IPP USC usability... " >&6; }
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534
9535
9536 #include <usc.h>
9537 int
9538 main (void)
9539 {
9540 extern USC_Fxns USC_G729AFP_Fxns;
9541 ;
9542 return 0;
9543 }
9544
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"
9547 then :
9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9549 printf "%s\n" "yes" >&6; }
9550 else case e in #(
9551 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9552 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9553 as_fn_error $? "no
9554 See 'config.log' for more details" "$LINENO" 5; }
9555 ;;
9556 esac
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9559 conftest$ac_exeext conftest.$ac_ext
9560
9561 CFLAGS="$SAVED_CFLAGS"
9562 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
9563 LIBS="$IPP_LIBS $SAVED_LIBS"
9564
9565 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
9566 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
9567 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
9568 fi
9569
9570 CFLAGS="$CFLAGS $IPP_CFLAGS"
9571 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
9572 LIBS="$LIBS $IPP_LIBS"
9573
9574 ac_build_mak_vars="$ac_build_mak_vars\n\
9575 export IPP_CFLAGS=$IPP_CFLAGS\n\
9576 export IPP_LDFLAGS=$IPP_LDFLAGS\n\
9577 export IPP_LIBS=$IPP_LIBS"
9578 else
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
9580 printf "%s\n" "Skipping Intel IPP settings (not wanted)" >&6; }
9581 fi
9582
9583
9584
9585
9586 # Check whether --enable-android-mediacodec was given.
9587 if test ${enable_android_mediacodec+y}
9588 then :
9589 enableval=$enable_android_mediacodec;
9590 if test "$enable_android_mediacodec" = "no"; then
9591 ac_no_mediacodec=1
9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Android MediaCodec support is disabled... yes" >&5
9593 printf "%s\n" "Checking if Android MediaCodec support is disabled... yes" >&6; }
9594 fi
9595
9596 else case e in #(
9597 e)
9598 case $target in
9599 *android*)
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AMediaCodec_createDecoderByType in -lmediandk" >&5
9601 printf %s "checking for AMediaCodec_createDecoderByType in -lmediandk... " >&6; }
9602 if test ${ac_cv_lib_mediandk_AMediaCodec_createDecoderByType+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e) ac_check_lib_save_LIBS=$LIBS
9607 LIBS="-lmediandk $LIBS"
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply.
9614 The 'extern "C"' is for builds by C++ compilers;
9615 although this is not generally supported in C code supporting it here
9616 has little cost and some practical benefit (sr 110532). */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 char AMediaCodec_createDecoderByType (void);
9621 int
9622 main (void)
9623 {
9624 return AMediaCodec_createDecoderByType ();
9625 ;
9626 return 0;
9627 }
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"
9630 then :
9631 ac_cv_lib_mediandk_AMediaCodec_createDecoderByType=yes
9632 else case e in #(
9633 e) ac_cv_lib_mediandk_AMediaCodec_createDecoderByType=no ;;
9634 esac
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS ;;
9639 esac
9640 fi
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mediandk_AMediaCodec_createDecoderByType" >&5
9642 printf "%s\n" "$ac_cv_lib_mediandk_AMediaCodec_createDecoderByType" >&6; }
9643 if test "x$ac_cv_lib_mediandk_AMediaCodec_createDecoderByType" = xyes
9644 then :
9645
9646 ac_pjmedia_has_amediacodec=1 && LIBS="-lmediandk $LIBS"
9647 fi
9648
9649
9650 if test "x$ac_pjmedia_has_amediacodec" = "x1"; then
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Android AMediaCodec library is available... yes" >&5
9652 printf "%s\n" "Checking if Android AMediaCodec library is available... yes" >&6; }
9653 printf "%s\n" "#define PJMEDIA_HAS_ANDROID_MEDIACODEC 1" >>confdefs.h
9654
9655 ac_mediacodec_cflags="-DPJMEDIA_HAS_ANDROID_MEDIACODEC=1 -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -Werror=unguarded-availability"
9656 else
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Android AMediaCodec library is available... no" >&5
9658 printf "%s\n" "Checking if Android AMediaCodec library is available... no" >&6; }
9659 fi
9660 ;;
9661 *)
9662 ac_no_mediacodec=1
9663 ;;
9664 esac
9665
9666 ;;
9667 esac
9668 fi
9669
9670
9671
9672
9673 # Check whether --with-ssl was given.
9674 if test ${with_ssl+y}
9675 then :
9676 withval=$with_ssl;
9677 else case e in #(
9678 e) with_ssl=no
9679 ;;
9680 esac
9681 fi
9682
9683
9684
9685 # Check whether --with-gnutls was given.
9686 if test ${with_gnutls+y}
9687 then :
9688 withval=$with_gnutls;
9689 else case e in #(
9690 e) with_gnutls=no
9691 ;;
9692 esac
9693 fi
9694
9695
9696
9697 # Check whether --with-mbedtls was given.
9698 if test ${with_mbedtls+y}
9699 then :
9700 withval=$with_mbedtls;
9701 else case e in #(
9702 e) with_mbedtls=no
9703 ;;
9704 esac
9705 fi
9706
9707
9708 if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno" -a "x$with_gnutls" = "xno" -a "x$with_mbedtls" = "xno"; then
9709 enable_ssl=no
9710 fi
9711
9712
9713 ac_ssl_has_aes_gcm=0
9714
9715
9716
9717 # Check whether --enable-darwin-ssl was given.
9718 if test ${enable_darwin_ssl+y}
9719 then :
9720 enableval=$enable_darwin_ssl;
9721 if test "$enable_darwin_ssl" = "no"; then
9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Darwin SSL support is disabled... yes" >&5
9723 printf "%s\n" "Checking if Darwin SSL support is disabled... yes" >&6; }
9724 fi
9725
9726 else case e in #(
9727 e)
9728 case $target in
9729 *darwin*)
9730 SAVED_CFLAGS="$CFLAGS"
9731 CFLAGS="-Werror"
9732 SAVED_LIBS="$LIBS"
9733
9734 LIBS="-framework Security"
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737
9738
9739 #include <Security/SecureTransport.h>
9740 int
9741 main (void)
9742 {
9743 if (__builtin_available(macOS 10.12, iOS 10.0, *)) {
9744 SSLContextRef ssl_ctx;
9745 SSLReHandshake(ssl_ctx);
9746 }
9747 ;
9748 return 0;
9749 }
9750
9751 _ACEOF
9752 if ac_fn_c_try_compile "$LINENO"
9753 then :
9754 ac_ssl_backend=darwin
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9757
9758 CFLAGS="$SAVED_CFLAGS"
9759 LIBS="$SAVED_LIBS"
9760 if test "x$ac_ssl_backend" = "xdarwin"; then
9761 printf "%s\n" "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
9762
9763 printf "%s\n" "#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_DARWIN" >>confdefs.h
9764
9765 LIBS="$LIBS -framework Security"
9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Darwin SSL is available... yes" >&5
9767 printf "%s\n" "Checking if Darwin SSL is available... yes" >&6; }
9768 else
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Darwin SSL is available... no" >&5
9770 printf "%s\n" "Checking if Darwin SSL is available... no" >&6; }
9771 fi
9772 ;;
9773 esac
9774
9775 ;;
9776 esac
9777 fi
9778
9779
9780 # Check whether --enable-ssl was given.
9781 if test ${enable_ssl+y}
9782 then :
9783 enableval=$enable_ssl;
9784 if test "$enable_ssl" = "no"; then
9785 ac_no_ssl=1
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
9787 printf "%s\n" "Checking if SSL support is disabled... yes" >&6; }
9788 fi
9789
9790 else case e in #(
9791 e)
9792 if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
9793 CFLAGS="$CFLAGS -I$with_ssl/include"
9794 CPPFLAGS="$CPPFLAGS -I$with_ssl/include"
9795 LDFLAGS="$LDFLAGS -L$with_ssl/lib"
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5
9797 printf "%s\n" "Using SSL prefix... $with_ssl" >&6; }
9798 fi
9799
9800 if test "x$with_gnutls" = "xno" -a "x$with_mbedtls" = "xno"; then
9801 # We still need to check for OpenSSL installations even if
9802 # we find Darwin SSL above since DTLS requires OpenSSL.
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
9804 printf "%s\n" "checking for OpenSSL installations.." >&6; }
9805
9806
9807
9808 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9809 if test "x$ac_cv_header_openssl_ssl_h" = xyes
9810 then :
9811 openssl_h_present=1
9812 fi
9813
9814
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
9816 printf %s "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
9817 if test ${ac_cv_lib_crypto_ERR_load_BIO_strings+y}
9818 then :
9819 printf %s "(cached) " >&6
9820 else case e in #(
9821 e) ac_check_lib_save_LIBS=$LIBS
9822 LIBS="-lcrypto $LIBS"
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply.
9829 The 'extern "C"' is for builds by C++ compilers;
9830 although this is not generally supported in C code supporting it here
9831 has little cost and some practical benefit (sr 110532). */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char ERR_load_BIO_strings (void);
9836 int
9837 main (void)
9838 {
9839 return ERR_load_BIO_strings ();
9840 ;
9841 return 0;
9842 }
9843 _ACEOF
9844 if ac_fn_c_try_link "$LINENO"
9845 then :
9846 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
9847 else case e in #(
9848 e) ac_cv_lib_crypto_ERR_load_BIO_strings=no ;;
9849 esac
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9852 conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS ;;
9854 esac
9855 fi
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
9857 printf "%s\n" "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
9858 if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes
9859 then :
9860
9861 libcrypto_present=1 && LIBS="-lcrypto $LIBS"
9862 else case e in #(
9863 e)
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ERR_get_error in -lcrypto" >&5
9865 printf %s "checking for ERR_get_error in -lcrypto... " >&6; }
9866 if test ${ac_cv_lib_crypto_ERR_get_error+y}
9867 then :
9868 printf %s "(cached) " >&6
9869 else case e in #(
9870 e) ac_check_lib_save_LIBS=$LIBS
9871 LIBS="-lcrypto $LIBS"
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9874
9875 /* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply.
9878 The 'extern "C"' is for builds by C++ compilers;
9879 although this is not generally supported in C code supporting it here
9880 has little cost and some practical benefit (sr 110532). */
9881 #ifdef __cplusplus
9882 extern "C"
9883 #endif
9884 char ERR_get_error (void);
9885 int
9886 main (void)
9887 {
9888 return ERR_get_error ();
9889 ;
9890 return 0;
9891 }
9892 _ACEOF
9893 if ac_fn_c_try_link "$LINENO"
9894 then :
9895 ac_cv_lib_crypto_ERR_get_error=yes
9896 else case e in #(
9897 e) ac_cv_lib_crypto_ERR_get_error=no ;;
9898 esac
9899 fi
9900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9901 conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS ;;
9903 esac
9904 fi
9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_get_error" >&5
9906 printf "%s\n" "$ac_cv_lib_crypto_ERR_get_error" >&6; }
9907 if test "x$ac_cv_lib_crypto_ERR_get_error" = xyes
9908 then :
9909 libcrypto_present=1 && LIBS="-lcrypto $LIBS"
9910 fi
9911
9912
9913 ;;
9914 esac
9915 fi
9916
9917
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
9919 printf %s "checking for SSL_CTX_new in -lssl... " >&6; }
9920 if test ${ac_cv_lib_ssl_SSL_CTX_new+y}
9921 then :
9922 printf %s "(cached) " >&6
9923 else case e in #(
9924 e) ac_check_lib_save_LIBS=$LIBS
9925 LIBS="-lssl $LIBS"
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928
9929 /* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply.
9932 The 'extern "C"' is for builds by C++ compilers;
9933 although this is not generally supported in C code supporting it here
9934 has little cost and some practical benefit (sr 110532). */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 char SSL_CTX_new (void);
9939 int
9940 main (void)
9941 {
9942 return SSL_CTX_new ();
9943 ;
9944 return 0;
9945 }
9946 _ACEOF
9947 if ac_fn_c_try_link "$LINENO"
9948 then :
9949 ac_cv_lib_ssl_SSL_CTX_new=yes
9950 else case e in #(
9951 e) ac_cv_lib_ssl_SSL_CTX_new=no ;;
9952 esac
9953 fi
9954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS ;;
9957 esac
9958 fi
9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
9960 printf "%s\n" "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
9961 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
9962 then :
9963 libssl_present=1 && LIBS="-lssl $LIBS"
9964 fi
9965
9966
9967 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
9969 printf "%s\n" "OpenSSL library found, SSL support enabled" >&6; }
9970
9971 # Check if SRTP should be compiled with OpenSSL
9972 # support, to enable cryptos such as AES GCM.
9973
9974 # EVP_CIPHER_CTX is now opaque in OpenSSL 1.1.0, libsrtp 1.5.4 uses it as a transparent type.
9975 # Update 2.7: our bundled libsrtp has been upgraded to 2.1.0,
9976 # so we can omit EVP_CIPHER_CTX definition check now.
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9979
9980
9981 #include <openssl/evp.h>
9982 int
9983 main (void)
9984 {
9985 EVP_CIPHER_CTX *ctx;EVP_aes_128_gcm();
9986 ;
9987 return 0;
9988 }
9989
9990 _ACEOF
9991 if ac_fn_c_try_compile "$LINENO"
9992 then :
9993
9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
9995 printf %s "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
9996 if test ${ac_cv_lib_crypto_EVP_aes_128_gcm+y}
9997 then :
9998 printf %s "(cached) " >&6
9999 else case e in #(
10000 e) ac_check_lib_save_LIBS=$LIBS
10001 LIBS="-lcrypto $LIBS"
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004
10005 /* Override any GCC internal prototype to avoid an error.
10006 Use char because int might match the return type of a GCC
10007 builtin and then its argument prototype would still apply.
10008 The 'extern "C"' is for builds by C++ compilers;
10009 although this is not generally supported in C code supporting it here
10010 has little cost and some practical benefit (sr 110532). */
10011 #ifdef __cplusplus
10012 extern "C"
10013 #endif
10014 char EVP_aes_128_gcm (void);
10015 int
10016 main (void)
10017 {
10018 return EVP_aes_128_gcm ();
10019 ;
10020 return 0;
10021 }
10022 _ACEOF
10023 if ac_fn_c_try_link "$LINENO"
10024 then :
10025 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
10026 else case e in #(
10027 e) ac_cv_lib_crypto_EVP_aes_128_gcm=no ;;
10028 esac
10029 fi
10030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS ;;
10033 esac
10034 fi
10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
10036 printf "%s\n" "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
10037 if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes
10038 then :
10039 ac_ssl_has_aes_gcm=1
10040 fi
10041
10042
10043
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10046
10047 if test "x$ac_ssl_has_aes_gcm" = "x1"; then
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenSSL has AES GCM support, SRTP will use OpenSSL" >&5
10049 printf "%s\n" "OpenSSL has AES GCM support, SRTP will use OpenSSL" >&6; }
10050 else
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenSSL AES GCM support not found, SRTP will only support AES CM cryptos" >&5
10052 printf "%s\n" "OpenSSL AES GCM support not found, SRTP will only support AES CM cryptos" >&6; }
10053 fi
10054
10055 if test "x$ac_ssl_backend" = "x"; then
10056 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
10057 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
10058 printf "%s\n" "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
10059
10060 printf "%s\n" "#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_OPENSSL" >>confdefs.h
10061
10062 ac_ssl_backend="openssl"
10063 fi
10064 else
10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found **" >&5
10066 printf "%s\n" "** OpenSSL libraries not found **" >&6; }
10067 fi
10068 fi
10069
10070 if test "x$ac_ssl_backend" = "x"; then
10071 if test "x$with_gnutls" != "xno" -a "x$with_gnutls" != "x"; then
10072 CFLAGS="$CFLAGS -I$with_gnutls/include"
10073 LDFLAGS="$LDFLAGS -L$with_gnutls/lib"
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using GnuTLS prefix... $with_gnutls" >&5
10075 printf "%s\n" "Using GnuTLS prefix... $with_gnutls" >&6; }
10076 fi
10077
10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for GnuTLS installations.." >&5
10079 printf "%s\n" "checking for GnuTLS installations.." >&6; }
10080
10081
10082 ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10083 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
10084 then :
10085 gnutls_h_present=1
10086 fi
10087
10088
10089 if test "$PKG_CONFIG" != "none"; then
10090 if $PKG_CONFIG --exists gnutls; then
10091 LIBS="$LIBS `$PKG_CONFIG --libs gnutls`"
10092 libgnutls_present=1
10093 else
10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_certificate_set_x509_system_trust in -lgnutls" >&5
10095 printf %s "checking for gnutls_certificate_set_x509_system_trust in -lgnutls... " >&6; }
10096 if test ${ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust+y}
10097 then :
10098 printf %s "(cached) " >&6
10099 else case e in #(
10100 e) ac_check_lib_save_LIBS=$LIBS
10101 LIBS="-lgnutls $LIBS"
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply.
10108 The 'extern "C"' is for builds by C++ compilers;
10109 although this is not generally supported in C code supporting it here
10110 has little cost and some practical benefit (sr 110532). */
10111 #ifdef __cplusplus
10112 extern "C"
10113 #endif
10114 char gnutls_certificate_set_x509_system_trust (void);
10115 int
10116 main (void)
10117 {
10118 return gnutls_certificate_set_x509_system_trust ();
10119 ;
10120 return 0;
10121 }
10122 _ACEOF
10123 if ac_fn_c_try_link "$LINENO"
10124 then :
10125 ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust=yes
10126 else case e in #(
10127 e) ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust=no ;;
10128 esac
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10131 conftest$ac_exeext conftest.$ac_ext
10132 LIBS=$ac_check_lib_save_LIBS ;;
10133 esac
10134 fi
10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" >&5
10136 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" >&6; }
10137 if test "x$ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" = xyes
10138 then :
10139
10140 libgnutls_present=1 && LIBS="$LIBS -lgnutls"
10141 fi
10142
10143 fi
10144 else
10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, disabling gnutls. ***" >&5
10146 printf "%s\n" "*** Warning: neither pkg-config nor python is available, disabling gnutls. ***" >&6; }
10147 fi
10148
10149 if test "x$gnutls_h_present" = "x1" -a "x$libgnutls_present" = "x1"; then
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GnuTLS library found, SSL support enabled" >&5
10151 printf "%s\n" "GnuTLS library found, SSL support enabled" >&6; }
10152 printf "%s\n" "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
10153
10154 printf "%s\n" "#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_GNUTLS" >>confdefs.h
10155
10156 ac_ssl_backend="gnutls"
10157 else
10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** No GnuTLS libraries found, disabling SSL support **" >&5
10159 printf "%s\n" "** No GnuTLS libraries found, disabling SSL support **" >&6; }
10160 fi
10161
10162 fi
10163
10164 if test "x$ac_ssl_backend" = "x"; then
10165 if test "x$with_mbedtls" != "xno" -a "x$with_mbedtls" != "x"; then
10166 CFLAGS="$CFLAGS -I$with_mbedtls/include"
10167 LDFLAGS="$LDFLAGS -L$with_mbedtls/lib"
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using MbedTLS prefix... $with_mbedtls" >&5
10169 printf "%s\n" "Using MbedTLS prefix... $with_mbedtls" >&6; }
10170 fi
10171
10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for MbedTLS installations.." >&5
10173 printf "%s\n" "checking for MbedTLS installations.." >&6; }
10174
10175
10176 ac_fn_c_check_header_compile "$LINENO" "mbedtls/version.h" "ac_cv_header_mbedtls_version_h" "$ac_includes_default"
10177 if test "x$ac_cv_header_mbedtls_version_h" = xyes
10178 then :
10179 mbedtls_h_present=1
10180 fi
10181
10182
10183 if test "$PKG_CONFIG" != "none"; then
10184 if $PKG_CONFIG --exists mbedtls mbedcrypto mbedx509; then
10185 LIBS="$LIBS `$PKG_CONFIG --libs mbedtls mbedcrypto mbedx509`"
10186 libmbedtls_present=1
10187 else
10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_version_get_number in -lmbedtls" >&5
10189 printf %s "checking for mbedtls_version_get_number in -lmbedtls... " >&6; }
10190 if test ${ac_cv_lib_mbedtls_mbedtls_version_get_number+y}
10191 then :
10192 printf %s "(cached) " >&6
10193 else case e in #(
10194 e) ac_check_lib_save_LIBS=$LIBS
10195 LIBS="-lmbedtls $LIBS"
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198
10199 /* Override any GCC internal prototype to avoid an error.
10200 Use char because int might match the return type of a GCC
10201 builtin and then its argument prototype would still apply.
10202 The 'extern "C"' is for builds by C++ compilers;
10203 although this is not generally supported in C code supporting it here
10204 has little cost and some practical benefit (sr 110532). */
10205 #ifdef __cplusplus
10206 extern "C"
10207 #endif
10208 char mbedtls_version_get_number (void);
10209 int
10210 main (void)
10211 {
10212 return mbedtls_version_get_number ();
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"
10218 then :
10219 ac_cv_lib_mbedtls_mbedtls_version_get_number=yes
10220 else case e in #(
10221 e) ac_cv_lib_mbedtls_mbedtls_version_get_number=no ;;
10222 esac
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS ;;
10227 esac
10228 fi
10229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_version_get_number" >&5
10230 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_version_get_number" >&6; }
10231 if test "x$ac_cv_lib_mbedtls_mbedtls_version_get_number" = xyes
10232 then :
10233
10234 libmbedtls_present=1 && LIBS="$LIBS -lmbedtls"
10235 fi
10236
10237 fi
10238 else
10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, disabling mbedtls. ***" >&5
10240 printf "%s\n" "*** Warning: neither pkg-config nor python is available, disabling mbedtls. ***" >&6; }
10241 fi
10242
10243 if test "x$mbedtls_h_present" = "x1" -a "x$libmbedtls_present" = "x1"; then
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: MbedTLS library found, SSL support enabled" >&5
10245 printf "%s\n" "MbedTLS library found, SSL support enabled" >&6; }
10246 printf "%s\n" "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
10247
10248 printf "%s\n" "#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_MBEDTLS" >>confdefs.h
10249
10250 ac_ssl_backend="mbedtls"
10251 else
10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** No MbedTLS libraries found, disabling SSL support **" >&5
10253 printf "%s\n" "** No MbedTLS libraries found, disabling SSL support **" >&6; }
10254 fi
10255
10256 fi
10257
10258 ;;
10259 esac
10260 fi
10261
10262
10263
10264 # Check whether --with-opencore-amrnb was given.
10265 if test ${with_opencore_amrnb+y}
10266 then :
10267 withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5
10268 else case e in #(
10269 e) true;
10270 ;;
10271 esac
10272 fi
10273
10274
10275
10276 # Check whether --with-opencore-amr was given.
10277 if test ${with_opencore_amr+y}
10278 then :
10279 withval=$with_opencore_amr;
10280 else case e in #(
10281 e) with_opencore_amr=no
10282 ;;
10283 esac
10284 fi
10285
10286
10287 if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr" = "xno"; then
10288 enable_opencore_amr=no
10289 fi
10290
10291
10292 # Check whether --with-opencore-amrwbenc was given.
10293 if test ${with_opencore_amrwbenc+y}
10294 then :
10295 withval=$with_opencore_amrwbenc;
10296 else case e in #(
10297 e) with_opencore_amrwbenc=no
10298 ;;
10299 esac
10300 fi
10301
10302
10303 if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrwbenc" = "xno"; then
10304 enable_opencore_amrwbenc=no
10305 fi
10306
10307
10308
10309
10310 # Check whether --enable-opencore_amr was given.
10311 if test ${enable_opencore_amr+y}
10312 then :
10313 enableval=$enable_opencore_amr;
10314 if test "$enable_opencore_amr" = "no"; then
10315 ac_no_opencore_amrnb=1
10316 ac_no_opencore_amrwb=1
10317 printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
10318
10319 printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
10320
10321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR support is disabled... yes" >&5
10322 printf "%s\n" "Checking if OpenCORE AMR support is disabled... yes" >&6; }
10323 fi
10324
10325 else case e in #(
10326 e)
10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR installations.." >&5
10328 printf "%s\n" "checking for OpenCORE AMR installations.." >&6; }
10329 if test "x$with_opencore_amr" != "xno" -a "x$with_opencore_amr" != "x"; then
10330 CFLAGS="$CFLAGS -I$with_opencore_amr/include"
10331 CPPFLAGS="$CPPFLAGS -I$with_opencore_amr/include"
10332 LDFLAGS="$LDFLAGS -L$with_opencore_amr/lib"
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR prefix... $with_opencore_amr" >&5
10334 printf "%s\n" "Using OpenCORE AMR prefix... $with_opencore_amr" >&6; }
10335 fi
10336
10337 if test "x$with_opencore_amrwbenc" != "xno" -a "x$with_opencore_amrwbenc" != "x"; then
10338 CFLAGS="$CFLAGS -I$with_opencore_amrwbenc/include"
10339 CPPFLAGS="$CPPFLAGS -I$with_opencore_amrwbenc/include"
10340 LDFLAGS="$LDFLAGS -L$with_opencore_amrwbenc/lib"
10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&5
10342 printf "%s\n" "Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&6; }
10343 fi
10344
10345
10346
10347 ac_fn_c_check_header_compile "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
10348 if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes
10349 then :
10350 opencore_amrnb_h_present=1
10351 fi
10352
10353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
10354 printf %s "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
10355 if test ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+y}
10356 then :
10357 printf %s "(cached) " >&6
10358 else case e in #(
10359 e) ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lopencore-amrnb $LIBS"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply.
10367 The 'extern "C"' is for builds by C++ compilers;
10368 although this is not generally supported in C code supporting it here
10369 has little cost and some practical benefit (sr 110532). */
10370 #ifdef __cplusplus
10371 extern "C"
10372 #endif
10373 char Encoder_Interface_init (void);
10374 int
10375 main (void)
10376 {
10377 return Encoder_Interface_init ();
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 if ac_fn_c_try_link "$LINENO"
10383 then :
10384 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
10385 else case e in #(
10386 e) ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no ;;
10387 esac
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10390 conftest$ac_exeext conftest.$ac_ext
10391 LIBS=$ac_check_lib_save_LIBS ;;
10392 esac
10393 fi
10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
10395 printf "%s\n" "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
10396 if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes
10397 then :
10398
10399 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
10400 fi
10401
10402
10403 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
10405 printf "%s\n" "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
10406 printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
10407
10408 else
10409 ac_no_opencore_amrnb=1
10410 printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
10411
10412 fi
10413
10414
10415
10416
10417
10418 ac_fn_c_check_header_compile "$LINENO" "vo-amrwbenc/enc_if.h" "ac_cv_header_vo_amrwbenc_enc_if_h" "$ac_includes_default"
10419 if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = xyes
10420 then :
10421 opencore_amrwb_enc_h_present=1
10422 fi
10423
10424 ac_fn_c_check_header_compile "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default"
10425 if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = xyes
10426 then :
10427 opencore_amrwb_dec_h_present=1
10428 fi
10429
10430
10431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for D_IF_init in -lopencore-amrwb" >&5
10432 printf %s "checking for D_IF_init in -lopencore-amrwb... " >&6; }
10433 if test ${ac_cv_lib_opencore_amrwb_D_IF_init+y}
10434 then :
10435 printf %s "(cached) " >&6
10436 else case e in #(
10437 e) ac_check_lib_save_LIBS=$LIBS
10438 LIBS="-lopencore-amrwb $LIBS"
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441
10442 /* Override any GCC internal prototype to avoid an error.
10443 Use char because int might match the return type of a GCC
10444 builtin and then its argument prototype would still apply.
10445 The 'extern "C"' is for builds by C++ compilers;
10446 although this is not generally supported in C code supporting it here
10447 has little cost and some practical benefit (sr 110532). */
10448 #ifdef __cplusplus
10449 extern "C"
10450 #endif
10451 char D_IF_init (void);
10452 int
10453 main (void)
10454 {
10455 return D_IF_init ();
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 if ac_fn_c_try_link "$LINENO"
10461 then :
10462 ac_cv_lib_opencore_amrwb_D_IF_init=yes
10463 else case e in #(
10464 e) ac_cv_lib_opencore_amrwb_D_IF_init=no ;;
10465 esac
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10468 conftest$ac_exeext conftest.$ac_ext
10469 LIBS=$ac_check_lib_save_LIBS ;;
10470 esac
10471 fi
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrwb_D_IF_init" >&5
10473 printf "%s\n" "$ac_cv_lib_opencore_amrwb_D_IF_init" >&6; }
10474 if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = xyes
10475 then :
10476
10477 opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb"
10478 fi
10479
10480
10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for E_IF_init in -lvo-amrwbenc" >&5
10482 printf %s "checking for E_IF_init in -lvo-amrwbenc... " >&6; }
10483 if test ${ac_cv_lib_vo_amrwbenc_E_IF_init+y}
10484 then :
10485 printf %s "(cached) " >&6
10486 else case e in #(
10487 e) ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-lvo-amrwbenc $LIBS"
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply.
10495 The 'extern "C"' is for builds by C++ compilers;
10496 although this is not generally supported in C code supporting it here
10497 has little cost and some practical benefit (sr 110532). */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char E_IF_init (void);
10502 int
10503 main (void)
10504 {
10505 return E_IF_init ();
10506 ;
10507 return 0;
10508 }
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"
10511 then :
10512 ac_cv_lib_vo_amrwbenc_E_IF_init=yes
10513 else case e in #(
10514 e) ac_cv_lib_vo_amrwbenc_E_IF_init=no ;;
10515 esac
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10518 conftest$ac_exeext conftest.$ac_ext
10519 LIBS=$ac_check_lib_save_LIBS ;;
10520 esac
10521 fi
10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vo_amrwbenc_E_IF_init" >&5
10523 printf "%s\n" "$ac_cv_lib_vo_amrwbenc_E_IF_init" >&6; }
10524 if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = xyes
10525 then :
10526
10527 opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc"
10528 fi
10529
10530
10531 if test "x$opencore_amrwb_enc_h_present" = "x1" -a "x$opencore_amrwb_dec_h_present" = "x1" -a "x$opencore_amrwb_enc_present" = "x1" -a "x$opencore_amrwb_dec_present" = "x1"; then
10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-WB library found, AMR-WB support enabled" >&5
10533 printf "%s\n" "OpenCORE AMR-WB library found, AMR-WB support enabled" >&6; }
10534 printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 1" >>confdefs.h
10535
10536 else
10537 ac_no_opencore_amrwb=1
10538 printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
10539
10540 fi
10541
10542 ;;
10543 esac
10544 fi
10545
10546
10547
10548 # Check whether --with-silk was given.
10549 if test ${with_silk+y}
10550 then :
10551 withval=$with_silk;
10552 else case e in #(
10553 e) with_silk=no
10554 ;;
10555 esac
10556 fi
10557
10558
10559 if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then
10560 enable_silk=no
10561 fi
10562
10563
10564 # Check whether --enable-silk was given.
10565 if test ${enable_silk+y}
10566 then :
10567 enableval=$enable_silk;
10568 if test "$enable_silk" = "no"; then
10569 ac_no_silk=1
10570 printf "%s\n" "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
10571
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if SILK support is disabled... yes" >&5
10573 printf "%s\n" "Checking if SILK support is disabled... yes" >&6; }
10574 fi
10575
10576 else case e in #(
10577 e)
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for SILK installations.." >&5
10579 printf "%s\n" "checking for SILK installations.." >&6; }
10580 if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then
10581 CFLAGS="$CFLAGS -I$with_silk/interface"
10582 CPPFLAGS="$CPPFLAGS -I$with_silk/interface"
10583 LDFLAGS="$LDFLAGS -L$with_silk"
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using SILK prefix... $with_silk" >&5
10585 printf "%s\n" "Using SILK prefix... $with_silk" >&6; }
10586 fi
10587
10588
10589
10590 ac_fn_c_check_header_compile "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default"
10591 if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = xyes
10592 then :
10593 silk_h_present=1
10594 fi
10595
10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK" >&5
10597 printf %s "checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... " >&6; }
10598 if test ${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+y}
10599 then :
10600 printf %s "(cached) " >&6
10601 else case e in #(
10602 e) ac_check_lib_save_LIBS=$LIBS
10603 LIBS="-lSKP_SILK_SDK $LIBS"
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply.
10610 The 'extern "C"' is for builds by C++ compilers;
10611 although this is not generally supported in C code supporting it here
10612 has little cost and some practical benefit (sr 110532). */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char SKP_Silk_SDK_get_version (void);
10617 int
10618 main (void)
10619 {
10620 return SKP_Silk_SDK_get_version ();
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"
10626 then :
10627 ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=yes
10628 else case e in #(
10629 e) ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=no ;;
10630 esac
10631 fi
10632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10633 conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_lib_save_LIBS ;;
10635 esac
10636 fi
10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&5
10638 printf "%s\n" "$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&6; }
10639 if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = xyes
10640 then :
10641
10642 silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK"
10643 fi
10644
10645
10646 if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SILK library found, SILK support enabled" >&5
10648 printf "%s\n" "SILK library found, SILK support enabled" >&6; }
10649 printf "%s\n" "#define PJMEDIA_HAS_SILK_CODEC 1" >>confdefs.h
10650
10651 else
10652 ac_no_silk=1
10653 printf "%s\n" "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
10654
10655 fi
10656
10657 ;;
10658 esac
10659 fi
10660
10661
10662 if test "x$ac_cross_compile" != "x" -a "x$with_opus" = "xno"; then
10663 enable_opus=no
10664 fi
10665
10666
10667 # Check whether --with-opus was given.
10668 if test ${with_opus+y}
10669 then :
10670 withval=$with_opus;
10671 else case e in #(
10672 e) with_opus=no
10673 ;;
10674 esac
10675 fi
10676
10677
10678
10679 # Check whether --enable-opus was given.
10680 if test ${enable_opus+y}
10681 then :
10682 enableval=$enable_opus;
10683 if test "$enable_opus" = "no"; then
10684 ac_no_opus=1
10685 printf "%s\n" "#define PJMEDIA_HAS_OPUS_CODEC 0" >>confdefs.h
10686
10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OPUS support is disabled... yes" >&5
10688 printf "%s\n" "Checking if OPUS support is disabled... yes" >&6; }
10689 fi
10690
10691 else case e in #(
10692 e)
10693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for OPUS installations.." >&5
10694 printf "%s\n" "checking for OPUS installations.." >&6; }
10695 if test "x$with_opus" != "xno" -a "x$with_opus" != "x"; then
10696 CFLAGS="$CFLAGS -I$with_opus/include"
10697 CPPFLAGS="$CPPFLAGS -I$with_opus/include"
10698 LDFLAGS="$LDFLAGS -L$with_opus/lib"
10699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OPUS prefix... $with_opus" >&5
10700 printf "%s\n" "Using OPUS prefix... $with_opus" >&6; }
10701 fi
10702
10703
10704 ac_fn_c_check_header_compile "$LINENO" "opus/opus.h" "ac_cv_header_opus_opus_h" "$ac_includes_default"
10705 if test "x$ac_cv_header_opus_opus_h" = xyes
10706 then :
10707 opus_h_present=1
10708 fi
10709
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opus_repacketizer_get_size in -lopus" >&5
10711 printf %s "checking for opus_repacketizer_get_size in -lopus... " >&6; }
10712 if test ${ac_cv_lib_opus_opus_repacketizer_get_size+y}
10713 then :
10714 printf %s "(cached) " >&6
10715 else case e in #(
10716 e) ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-lopus $LIBS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply.
10724 The 'extern "C"' is for builds by C++ compilers;
10725 although this is not generally supported in C code supporting it here
10726 has little cost and some practical benefit (sr 110532). */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char opus_repacketizer_get_size (void);
10731 int
10732 main (void)
10733 {
10734 return opus_repacketizer_get_size ();
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"
10740 then :
10741 ac_cv_lib_opus_opus_repacketizer_get_size=yes
10742 else case e in #(
10743 e) ac_cv_lib_opus_opus_repacketizer_get_size=no ;;
10744 esac
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS ;;
10749 esac
10750 fi
10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opus_opus_repacketizer_get_size" >&5
10752 printf "%s\n" "$ac_cv_lib_opus_opus_repacketizer_get_size" >&6; }
10753 if test "x$ac_cv_lib_opus_opus_repacketizer_get_size" = xyes
10754 then :
10755
10756 opus_present=1 && LIBS="-lopus $LIBS"
10757 fi
10758
10759
10760 if test "x$opus_h_present" = "x1" -a "x$opus_present" = "x1"; then
10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OPUS library found, OPUS support enabled" >&5
10762 printf "%s\n" "OPUS library found, OPUS support enabled" >&6; }
10763 printf "%s\n" "#define PJMEDIA_HAS_OPUS_CODEC 1" >>confdefs.h
10764
10765 else
10766 ac_no_opus=1
10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OPUS library not found, OPUS support disabled" >&5
10768 printf "%s\n" "OPUS library not found, OPUS support disabled" >&6; }
10769 printf "%s\n" "#define PJMEDIA_HAS_OPUS_CODEC 0" >>confdefs.h
10770
10771 fi
10772
10773 ;;
10774 esac
10775 fi
10776
10777
10778
10779 # Check whether --with-bcg729 was given.
10780 if test ${with_bcg729+y}
10781 then :
10782 withval=$with_bcg729;
10783 else case e in #(
10784 e) with_bcg729=no
10785 ;;
10786 esac
10787 fi
10788
10789
10790 if test "x$ac_cross_compile" != "x" -a "x$with_bcg729" = "xno"; then
10791 enable_bcg729=no
10792 fi
10793
10794
10795 # Check whether --enable-bcg729 was given.
10796 if test ${enable_bcg729+y}
10797 then :
10798 enableval=$enable_bcg729;
10799 if test "$enable_bcg729" = "no"; then
10800 ac_no_bcg729=1
10801 printf "%s\n" "#define PJMEDIA_HAS_BCG729 0" >>confdefs.h
10802
10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if bcg729 is disabled... yes" >&5
10804 printf "%s\n" "Checking if bcg729 is disabled... yes" >&6; }
10805 fi
10806
10807 else case e in #(
10808 e)
10809 if test "x$with_bcg729" != "xno" -a "x$with_bcg729" != "x"; then
10810 BCG729_PREFIX=$with_bcg729
10811 BCG729_CFLAGS="-I$BCG729_PREFIX/include"
10812 BCG729_LDFLAGS="-L$BCG729_PREFIX/lib"
10813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using bcg729 prefix... $with_bcg729" >&5
10814 printf "%s\n" "Using bcg729 prefix... $with_bcg729" >&6; }
10815 else
10816 BCG729_CFLAGS=""
10817 BCG729_LDFLAGS=""
10818 fi
10819
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bcg729 usability" >&5
10821 printf %s "checking bcg729 usability... " >&6; }
10822
10823 BCG729_LIBS="-lbcg729"
10824
10825 SAVED_LIBS="$LIBS"
10826 SAVED_LDFLAGS="$LDFLAGS"
10827 SAVED_CFLAGS="$CFLAGS"
10828
10829 LIBS="$BCG729_LIBS $LIBS"
10830 LDFLAGS="$BCG729_LDFLAGS $LDFLAGS"
10831 CFLAGS="$BCG729_CFLAGS $CFLAGS"
10832
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835
10836
10837 #include <bcg729/encoder.h>
10838 #include <bcg729/decoder.h>
10839 int
10840 main (void)
10841 {
10842 initBcg729EncoderChannel(0);
10843 ;
10844 return 0;
10845 }
10846
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"
10849 then :
10850
10851 printf "%s\n" "#define PJMEDIA_HAS_BCG729 1" >>confdefs.h
10852
10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10854 printf "%s\n" "yes" >&6; }
10855
10856 else case e in #(
10857 e)
10858 ac_no_bcg729=1
10859 printf "%s\n" "#define PJMEDIA_HAS_BCG729 0" >>confdefs.h
10860
10861 LIBS="$SAVED_LIBS"
10862 LDFLAGS="$SAVED_LDFLAGS"
10863 CFLAGS="$SAVED_CFLAGS"
10864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865 printf "%s\n" "no" >&6; }
10866
10867 ;;
10868 esac
10869 fi
10870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10871 conftest$ac_exeext conftest.$ac_ext
10872
10873 ;;
10874 esac
10875 fi
10876
10877
10878
10879 # Check whether --with-lyra was given.
10880 if test ${with_lyra+y}
10881 then :
10882 withval=$with_lyra;
10883 else case e in #(
10884 e) with_lyra=no
10885 ;;
10886 esac
10887 fi
10888
10889
10890 if test "x$ac_cross_compile" != "x" -a "x$with_lyra" = "xno"; then
10891 enable_lyra=no
10892 fi
10893
10894
10895
10896 # Check whether --enable-lyra was given.
10897 if test ${enable_lyra+y}
10898 then :
10899 enableval=$enable_lyra;
10900 if test "$enable_lyra" = "no"; then
10901 ac_no_lyra_codec=1
10902 printf "%s\n" "#define PJMEDIA_HAS_LYRA_CODEC 0" >>confdefs.h
10903
10904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if lyra is disabled... yes" >&5
10905 printf "%s\n" "Checking if lyra is disabled... yes" >&6; }
10906 fi
10907
10908 else case e in #(
10909 e)
10910 if test "x$with_lyra" != "xno" -a "x$with_lyra" != "x"; then
10911 LYRA_PREFIX=$with_lyra
10912 LYRA_CPPFLAGS="-DGLOG_DEPRECATED=__attribute__((deprecated)) -DGLOG_EXPORT=__attribute__((visibility(\"default\"))) -DGLOG_NO_EXPORT=__attribute__((visibility(\"default\")))"
10913 LYRA_CXXFLAGS="-std=c++17 -Wno-deprecated-builtins -I$LYRA_PREFIX/include/com_google_absl -I$LYRA_PREFIX/include/gulrak_filesystem -I$LYRA_PREFIX/include/com_google_glog/src -I$LYRA_PREFIX"
10914 LYRA_LDFLAGS="-L$LYRA_PREFIX/lib"
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using lyra prefix... $with_lyra" >&5
10916 printf "%s\n" "Using lyra prefix... $with_lyra" >&6; }
10917 else
10918 LYRA_CXXFLAGS=""
10919 LYRA_LDFLAGS=""
10920 fi
10921
10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lyra usability" >&5
10923 printf %s "checking lyra usability... " >&6; }
10924
10925 LYRA_LIBS="-llyra"
10926
10927 SAVED_LIBS="$LIBS"
10928 SAVED_LDFLAGS="$LDFLAGS"
10929 SAVED_CXXFLAGS="$CXXFLAGS"
10930 SAVED_CPPFLAGS="$CPPFLAGS"
10931
10932 LIBS="$LYRA_LIBS $LIBS"
10933 LDFLAGS="$LYRA_LDFLAGS $LDFLAGS"
10934 CXXFLAGS="$LYRA_CXXFLAGS $CXXFLAGS"
10935 CPPFLAGS="$LYRA_CPPFLAGS $CPPFLAGS"
10936
10937 ac_ext=cpp
10938 ac_cpp='$CXXCPP $CPPFLAGS'
10939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10942
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10945
10946
10947 #include "lyra_decoder.h"
10948 int
10949 main (void)
10950 {
10951 std::unique_ptr<chromemedia::codec::LyraDecoder> dec = chromemedia::codec::LyraDecoder::Create(8000,1,"");
10952 ;
10953 return 0;
10954 }
10955
10956 _ACEOF
10957 if ac_fn_cxx_try_link "$LINENO"
10958 then :
10959
10960 ac_lyra_model_path="$LYRA_PREFIX/model_coeffs"
10961 printf "%s\n" "#define PJMEDIA_HAS_LYRA_CODEC 1" >>confdefs.h
10962
10963 LYRA_CPPFLAGS="'-DGLOG_DEPRECATED=__attribute__((deprecated))' '-DGLOG_EXPORT=__attribute__((visibility(\"default\")))' '-DGLOG_NO_EXPORT=__attribute__((visibility(\"default\")))'"
10964 CXXFLAGS="$LYRA_CPPFLAGS $CXXFLAGS"
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10966 printf "%s\n" "yes" >&6; }
10967
10968 else case e in #(
10969 e)
10970 ac_no_lyra_codec=1
10971 LIBS="$SAVED_LIBS"
10972 LDFLAGS="$SAVED_LDFLAGS"
10973 CXXFLAGS="$SAVED_CXXFLAGS"
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 printf "%s\n" "no" >&6; }
10976
10977 ;;
10978 esac
10979 fi
10980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10981 conftest$ac_exeext conftest.$ac_ext
10982 ac_ext=c
10983 ac_cpp='$CPP $CPPFLAGS'
10984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10987
10988 CPPFLAGS="$SAVED_CPPFLAGS"
10989
10990 ;;
10991 esac
10992 fi
10993
10994
10995
10996 # Check whether --enable-libsrtp was given.
10997 if test ${enable_libsrtp+y}
10998 then :
10999 enableval=$enable_libsrtp;
11000 if test "$enable_libsrtp" = "no"; then
11001 ac_no_srtp=1
11002 CFLAGS="$CFLAGS -DPJMEDIA_HAS_SRTP=0"
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsrtp is disabled...yes" >&5
11004 printf "%s\n" "Checking if libsrtp is disabled...yes" >&6; }
11005 fi
11006
11007 else case e in #(
11008 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsrtp is disabled...no" >&5
11009 printf "%s\n" "Checking if libsrtp is disabled...no" >&6; }
11010 ;;
11011 esac
11012 fi
11013
11014
11015
11016 # Check whether --enable-libyuv was given.
11017 if test ${enable_libyuv+y}
11018 then :
11019 enableval=$enable_libyuv;
11020 if test "$enable_libyuv" = "no"; then
11021 ac_no_yuv=1
11022 printf "%s\n" "#define PJMEDIA_HAS_LIBYUV 0" >>confdefs.h
11023
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...yes" >&5
11025 printf "%s\n" "Checking if libyuv is disabled...yes" >&6; }
11026 fi
11027
11028 else case e in #(
11029 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...no" >&5
11030 printf "%s\n" "Checking if libyuv is disabled...no" >&6; }
11031 ;;
11032 esac
11033 fi
11034
11035
11036 SAVED_CFLAGS="$CFLAGS"
11037 case $target_cpu in
11038 arm*)
11039 CFLAGS="-mfpu=neon $CFLAGS"
11040 ;;
11041 aarch64*)
11042 CFLAGS="-march=armv8-a+simd $CFLAGS"
11043 ;;
11044 esac
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11047
11048 int
11049 main (void)
11050 {
11051
11052 ;
11053 return 0;
11054 }
11055 _ACEOF
11056 if ac_fn_c_try_compile "$LINENO"
11057 then :
11058 ax_cv_support_neon_ext=yes
11059 else case e in #(
11060 e) ax_cv_support_neon_ext=no
11061 ;;
11062 esac
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11065 CFLAGS="$SAVED_CFLAGS"
11066
11067
11068
11069
11070
11071 # Check whether --enable-libwebrtc was given.
11072 if test ${enable_libwebrtc+y}
11073 then :
11074 enableval=$enable_libwebrtc;
11075 if test "$enable_libwebrtc" = "no"; then
11076 ac_no_webrtc=1
11077 printf "%s\n" "#define PJMEDIA_HAS_LIBWEBRTC 0" >>confdefs.h
11078
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc is disabled...yes" >&5
11080 printf "%s\n" "Checking if libwebrtc is disabled...yes" >&6; }
11081 fi
11082
11083 else case e in #(
11084 e)
11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc is disabled...no" >&5
11086 printf "%s\n" "Checking if libwebrtc is disabled...no" >&6; }
11087 case $target in
11088 *-apple-darwin_ios*)
11089 case $target in
11090 arm64* | aarch64*)
11091 ac_webrtc_instset=neon
11092 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
11093 ;;
11094 *arm*)
11095 ac_webrtc_instset=neon
11096 ;;
11097 *)
11098 ac_webrtc_instset=sse2
11099 ;;
11100 esac
11101 ;;
11102 *android*)
11103 case $TARGET_ABI in
11104 armeabi-v7a)
11105 ac_webrtc_instset=neon
11106 ac_webrtc_cflags="-mfloat-abi=softfp -mfpu=neon"
11107 ;;
11108 armeabi)
11109 ac_webrtc_instset=neon
11110 ac_webrtc_cflags="-mthumb -mfloat-abi=softfp -mfpu=neon -march=armv7"
11111 ;;
11112 arm64*)
11113 ac_webrtc_instset=neon
11114 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
11115 ;;
11116 mips64*)
11117 ac_webrtc_instset=generic
11118 ;;
11119 mips*)
11120 ac_webrtc_instset=mips
11121 ;;
11122 x86*)
11123 ac_webrtc_instset=sse2
11124 ;;
11125 *)
11126 ac_webrtc_instset=generic
11127 ;;
11128 esac
11129 ;;
11130 *mingw* | *cygw*)
11131 ac_webrtc_instset=sse2
11132 ac_webrtc_cflags="-msse2"
11133 ;;
11134 *win32* | *w32* | *darwin* | *linux*)
11135 case $target in
11136 arm*gnueabihf)
11137 if test "x$ax_cv_support_neon_ext" = "xyes"; then
11138 ac_webrtc_instset=neon
11139 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM_V7 -mfloat-abi=hard -mfpu=neon"
11140 else
11141 ac_webrtc_instset=generic
11142 fi
11143 ;;
11144 aarch64*)
11145 if test "x$ax_cv_support_neon_ext" = "xyes"; then
11146 ac_webrtc_instset=neon
11147 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
11148 else
11149 ac_webrtc_instset=generic
11150 fi
11151 ;;
11152 arm-apple-darwin*)
11153 ac_webrtc_instset=neon
11154 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
11155 ;;
11156 loongarch*)
11157 ac_webrtc_instset=generic
11158 ;;
11159 riscv*)
11160 ac_webrtc_instset=generic
11161 ;;
11162 *)
11163 ac_webrtc_instset=sse2
11164 ;;
11165 esac
11166 ;;
11167 *)
11168 ;;
11169 esac
11170
11171 ;;
11172 esac
11173 fi
11174
11175
11176
11177
11178
11179
11180
11181 # Check whether --enable-libwebrtc_aec3 was given.
11182 if test ${enable_libwebrtc_aec3+y}
11183 then :
11184 enableval=$enable_libwebrtc_aec3;
11185 if test "$enable_libwebrtc_aec3" = "yes"; then
11186 # Test if we can build WebRtc AEC3
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if WebRtc AEC3 can be compiled with C++17" >&5
11188 printf %s "checking if WebRtc AEC3 can be compiled with C++17... " >&6; }
11189
11190 SAVED_CXXFLAGS="$CXXFLAGS"
11191 CXXFLAGS="$CXXFLAGS -std=c++17"
11192
11193 ac_ext=cpp
11194 ac_cpp='$CXXCPP $CPPFLAGS'
11195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11198
11199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h. */
11201
11202
11203 int
11204 main (void)
11205 {
11206
11207 ;
11208 return 0;
11209 }
11210
11211 _ACEOF
11212 if ac_fn_cxx_try_link "$LINENO"
11213 then :
11214
11215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11216 printf "%s\n" "yes" >&6; }
11217 LD="$CXX"
11218
11219 else case e in #(
11220 e)
11221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 printf "%s\n" "no" >&6; }
11223 CXXFLAGS="$SAVED_CXXFLAGS"
11224 ac_no_webrtc_aec3=1
11225 printf "%s\n" "#define PJMEDIA_HAS_LIBWEBRTC_AEC3 0" >>confdefs.h
11226
11227
11228 ;;
11229 esac
11230 fi
11231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11232 conftest$ac_exeext conftest.$ac_ext
11233 ac_ext=c
11234 ac_cpp='$CPP $CPPFLAGS'
11235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11238
11239
11240 case $target in
11241 *-apple-darwin_ios*)
11242 case $target in
11243 arm64* | aarch64*)
11244 ac_webrtc_aec3_instset=neon
11245 ac_webrtc_aec3_cflags="-DWEBRTC_ARCH_ARM64"
11246 ;;
11247 *arm*)
11248 ac_webrtc_aec3_instset=neon
11249 ;;
11250 *)
11251 ac_webrtc_aec3_instset=sse2
11252 ;;
11253 esac
11254 ac_webrtc_aec3_cflags+=" -DWEBRTC_IOS=1"
11255 ;;
11256 *android*)
11257 case $TARGET_ABI in
11258 armeabi-v7a)
11259 ac_webrtc_aec3_instset=neon
11260 ac_webrtc_aec3_cflags="-mfloat-abi=softfp -mfpu=neon"
11261 ;;
11262 armeabi)
11263 ac_webrtc_aec3_instset=neon
11264 ac_webrtc_aec3_cflags="-mthumb -mfloat-abi=softfp -mfpu=neon -march=armv7"
11265 ;;
11266 arm64*)
11267 ac_webrtc_aec3_instset=neon
11268 ac_webrtc_aec3_cflags="-DWEBRTC_ARCH_ARM64"
11269 ;;
11270 x86*)
11271 ac_webrtc_aec3_instset=sse2
11272 ;;
11273 esac
11274 ac_webrtc_aec3_cflags+=" -DWEBRTC_ANDROID=1"
11275 ;;
11276 *mingw* | *cygw*)
11277 ac_webrtc_aec3_instset=sse2
11278 ac_webrtc_aec3_cflags="-msse2"
11279 ;;
11280 *win32* | *w32* | *darwin* | *linux*)
11281 case $target in
11282 arm*gnueabihf)
11283 if test "x$ax_cv_support_neon_ext" = "xyes"; then
11284 ac_webrtc_aec3_instset=neon
11285 ac_webrtc_aec3_cflags="-DWEBRTC_ARCH_ARM_V7 -mfloat-abi=hard -mfpu=neon"
11286 else
11287 ac_webrtc_aec3_instset=generic
11288 fi
11289 ;;
11290 aarch64*)
11291 if test "x$ax_cv_support_neon_ext" = "xyes"; then
11292 ac_webrtc_aec3_instset=neon
11293 ac_webrtc_aec3_cflags="-DWEBRTC_ARCH_ARM64"
11294 else
11295 ac_webrtc_aec3_instset=generic
11296 fi
11297 ;;
11298 arm-apple-darwin*)
11299 ac_webrtc_aec3_instset=neon
11300 ac_webrtc_aec3_cflags="-DWEBRTC_ARCH_ARM64"
11301 ;;
11302 loongarch*)
11303 ac_webrtc_aec3_instset=generic
11304 ;;
11305 riscv*)
11306 ac_webrtc_aec3_instset=generic
11307 ;;
11308 *)
11309 ac_webrtc_aec3_instset=sse2
11310 ;;
11311 esac
11312 case $target in
11313 *darwin*)
11314 ac_webrtc_aec3_cflags+=" -DWEBRTC_MAC=1"
11315 ;;
11316 *linux*)
11317 ac_webrtc_aec3_cflags+=" -DWEBRTC_LINUX=1"
11318 ;;
11319 esac
11320 ;;
11321 *)
11322 ;;
11323 esac
11324 ac_webrtc_aec3_cflags+=" -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_POSIX=1"
11325 else
11326 ac_no_webrtc_aec3=1
11327 printf "%s\n" "#define PJMEDIA_HAS_LIBWEBRTC_AEC3 0" >>confdefs.h
11328
11329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc-aec3 is enabled...no" >&5
11330 printf "%s\n" "Checking if libwebrtc-aec3 is enabled...no" >&6; }
11331 fi
11332
11333 else case e in #(
11334 e)
11335 ac_no_webrtc_aec3=1
11336 printf "%s\n" "#define PJMEDIA_HAS_LIBWEBRTC_AEC3 0" >>confdefs.h
11337
11338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc-aec3 is enabled...no" >&5
11339 printf "%s\n" "Checking if libwebrtc-aec3 is enabled...no" >&6; }
11340
11341 ;;
11342 esac
11343 fi
11344
11345
11346
11347
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
11349 printf %s "checking if select() needs correct nfds... " >&6; }
11350 case $target in
11351 *rtems*)
11352 printf "%s\n" "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
11353
11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 printf "%s\n" "yes" >&6; }
11356 ;;
11357 *)
11358 printf "%s\n" "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
11359
11360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
11361 printf "%s\n" "no (default)" >&6; }
11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
11363 printf "%s\n" "** Decided that select() doesn't need correct nfds (please check)" >&6; }
11364 ;;
11365 esac
11366
11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
11368 printf %s "checking if pj_thread_create() should enforce stack size... " >&6; }
11369 case $target in
11370 *rtems*)
11371 printf "%s\n" "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
11372
11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374 printf "%s\n" "yes" >&6; }
11375 ;;
11376 *)
11377 printf "%s\n" "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
11378
11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
11380 printf "%s\n" "no (default)" >&6; }
11381 ;;
11382 esac
11383
11384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
11385 printf %s "checking if pj_thread_create() should allocate stack... " >&6; }
11386 case $target in
11387 *rtems*)
11388 printf "%s\n" "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
11389
11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11391 printf "%s\n" "yes" >&6; }
11392 ;;
11393 *)
11394 printf "%s\n" "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
11395
11396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
11397 printf "%s\n" "no (default)" >&6; }
11398 ;;
11399 esac
11400
11401 case $target in
11402 *mingw* | *cygw* | *win32* | *w32* )
11403 printf "%s\n" "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
11404
11405 ;;
11406 *)
11407 printf "%s\n" "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
11408
11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
11410 printf "%s\n" "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
11411 ;;
11412 esac
11413
11414 case $target in
11415 *mingw* | *cygw* | *win32* | *w32* )
11416 printf "%s\n" "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
11417
11418 ;;
11419 *)
11420 printf "%s\n" "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
11421
11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
11423 printf "%s\n" "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
11424 ;;
11425 esac
11426
11427
11428 case $target in
11429 *linux* | *darwin* | *bsd*)
11430 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
11431 if test "x$ac_cv_header_pthread_np_h" = xyes
11432 then :
11433 printf "%s\n" "#define PJ_HAS_PTHREAD_NP_H 1" >>confdefs.h
11434
11435 fi
11436
11437 ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
11438 if test "x$ac_cv_func_pthread_setname_np" = xyes
11439 then :
11440 printf "%s\n" "#define PJ_HAS_PTHREAD_SETNAME_NP 1" >>confdefs.h
11441
11442 fi
11443
11444 ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np"
11445 if test "x$ac_cv_func_pthread_set_name_np" = xyes
11446 then :
11447 printf "%s\n" "#define PJ_HAS_PTHREAD_SET_NAME_NP 1" >>confdefs.h
11448
11449 fi
11450
11451 ;;
11452 esac
11453
11454
11455
11456 ac_host=unix
11457
11458
11459 case $target in
11460 *rtems*)
11461 ac_main_obj=main_rtems.o
11462 ;;
11463 *)
11464 ac_main_obj=main.o
11465 ;;
11466 esac
11467
11468
11469 ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
11470 cat >confcache <<\_ACEOF
11471 # This file is a shell script that caches the results of configure
11472 # tests run on this system so they can be shared between configure
11473 # scripts and configure runs, see configure's option --config-cache.
11474 # It is not useful on other systems. If it contains results you don't
11475 # want to keep, you may remove or edit it.
11476 #
11477 # config.status only pays attention to the cache file if you give it
11478 # the --recheck option to rerun configure.
11479 #
11480 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11481 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11482 # following values.
11483
11484 _ACEOF
11485
11486 # The following way of writing the cache mishandles newlines in values,
11487 # but we know of no workaround that is simple, portable, and efficient.
11488 # So, we kill variables containing newlines.
11489 # Ultrix sh set writes to stderr and can't be redirected directly,
11490 # and sets the high bit in the cache file unless we assign to the vars.
11491 (
11492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11493 eval ac_val=\$$ac_var
11494 case $ac_val in #(
11495 *${as_nl}*)
11496 case $ac_var in #(
11497 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11498 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11499 esac
11500 case $ac_var in #(
11501 _ | IFS | as_nl) ;; #(
11502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11503 *) { eval $ac_var=; unset $ac_var;} ;;
11504 esac ;;
11505 esac
11506 done
11507
11508 (set) 2>&1 |
11509 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11510 *${as_nl}ac_space=\ *)
11511 # 'set' does not quote correctly, so add quotes: double-quote
11512 # substitution turns \\\\ into \\, and sed turns \\ into \.
11513 sed -n \
11514 "s/'/'\\\\''/g;
11515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11516 ;; #(
11517 *)
11518 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11520 ;;
11521 esac |
11522 sort
11523 ) |
11524 sed '
11525 /^ac_cv_env_/b end
11526 t clear
11527 :clear
11528 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11529 t end
11530 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11531 :end' >>confcache
11532 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11533 if test -w "$cache_file"; then
11534 if test "x$cache_file" != "x/dev/null"; then
11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11536 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11537 if test ! -f "$cache_file" || test -h "$cache_file"; then
11538 cat confcache >"$cache_file"
11539 else
11540 case $cache_file in #(
11541 */* | ?:*)
11542 mv -f confcache "$cache_file"$$ &&
11543 mv -f "$cache_file"$$ "$cache_file" ;; #(
11544 *)
11545 mv -f confcache "$cache_file" ;;
11546 esac
11547 fi
11548 fi
11549 else
11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11551 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11552 fi
11553 fi
11554 rm -f confcache
11555
11556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11557 # Let make expand exec_prefix.
11558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11559
11560 DEFS=-DHAVE_CONFIG_H
11561
11562 ac_libobjs=
11563 ac_ltlibobjs=
11564 U=
11565 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11566 # 1. Remove the extension, and $U if already installed.
11567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11568 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11570 # will be set to the directory where LIBOBJS objects are built.
11571 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11572 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11573 done
11574 LIBOBJS=$ac_libobjs
11575
11576 LTLIBOBJS=$ac_ltlibobjs
11577
11578
11579
11580
11581 : "${CONFIG_STATUS=./config.status}"
11582 ac_write_fail=0
11583 ac_clean_files_save=$ac_clean_files
11584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11586 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11587 as_write_fail=0
11588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11589 #! $SHELL
11590 # Generated by $as_me.
11591 # Run this file to recreate the current configuration.
11592 # Compiler output produced by configure, useful for debugging
11593 # configure, is in config.log if it exists.
11594
11595 debug=false
11596 ac_cs_recheck=false
11597 ac_cs_silent=false
11598
11599 SHELL=\${CONFIG_SHELL-$SHELL}
11600 export SHELL
11601 _ASEOF
11602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11603 ## -------------------- ##
11604 ## M4sh Initialization. ##
11605 ## -------------------- ##
11606
11607 # Be more Bourne compatible
11608 DUALCASE=1; export DUALCASE # for MKS sh
11609 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11610 then :
11611 emulate sh
11612 NULLCMD=:
11613 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11614 # is contrary to our usage. Disable this feature.
11615 alias -g '${1+"$@"}'='"$@"'
11616 setopt NO_GLOB_SUBST
11617 else case e in #(
11618 e) case `(set -o) 2>/dev/null` in #(
11619 *posix*) :
11620 set -o posix ;; #(
11621 *) :
11622 ;;
11623 esac ;;
11624 esac
11625 fi
11626
11627
11628
11629 # Reset variables that may have inherited troublesome values from
11630 # the environment.
11631
11632 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11633 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11634 # side effect of setting IFS to empty, thus disabling word splitting.)
11635 # Quoting is to prevent editors from complaining about space-tab.
11636 as_nl='
11637 '
11638 export as_nl
11639 IFS=" "" $as_nl"
11640
11641 PS1='$ '
11642 PS2='> '
11643 PS4='+ '
11644
11645 # Ensure predictable behavior from utilities with locale-dependent output.
11646 LC_ALL=C
11647 export LC_ALL
11648 LANGUAGE=C
11649 export LANGUAGE
11650
11651 # We cannot yet rely on "unset" to work, but we need these variables
11652 # to be unset--not just set to an empty or harmless value--now, to
11653 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11654 # also avoids known problems related to "unset" and subshell syntax
11655 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11656 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11657 do eval test \${$as_var+y} \
11658 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11659 done
11660
11661 # Ensure that fds 0, 1, and 2 are open.
11662 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11663 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11664 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11665
11666 # The user is always right.
11667 if ${PATH_SEPARATOR+false} :; then
11668 PATH_SEPARATOR=:
11669 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11670 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11671 PATH_SEPARATOR=';'
11672 }
11673 fi
11674
11675
11676 # Find who we are. Look in the path if we contain no directory separator.
11677 as_myself=
11678 case $0 in #((
11679 *[\\/]* ) as_myself=$0 ;;
11680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681 for as_dir in $PATH
11682 do
11683 IFS=$as_save_IFS
11684 case $as_dir in #(((
11685 '') as_dir=./ ;;
11686 */) ;;
11687 *) as_dir=$as_dir/ ;;
11688 esac
11689 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11690 done
11691 IFS=$as_save_IFS
11692
11693 ;;
11694 esac
11695 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11696 # in which case we are not to be found in the path.
11697 if test "x$as_myself" = x; then
11698 as_myself=$0
11699 fi
11700 if test ! -f "$as_myself"; then
11701 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11702 exit 1
11703 fi
11704
11705
11706
11707 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11708 # ----------------------------------------
11709 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11710 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11711 # script with STATUS, using 1 if that was 0.
11712 as_fn_error ()
11713 {
11714 as_status=$1; test $as_status -eq 0 && as_status=1
11715 if test "$4"; then
11716 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11718 fi
11719 printf "%s\n" "$as_me: error: $2" >&2
11720 as_fn_exit $as_status
11721 } # as_fn_error
11722
11723
11724 # as_fn_set_status STATUS
11725 # -----------------------
11726 # Set $? to STATUS, without forking.
11727 as_fn_set_status ()
11728 {
11729 return $1
11730 } # as_fn_set_status
11731
11732 # as_fn_exit STATUS
11733 # -----------------
11734 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11735 as_fn_exit ()
11736 {
11737 set +e
11738 as_fn_set_status $1
11739 exit $1
11740 } # as_fn_exit
11741
11742 # as_fn_unset VAR
11743 # ---------------
11744 # Portably unset VAR.
11745 as_fn_unset ()
11746 {
11747 { eval $1=; unset $1;}
11748 }
11749 as_unset=as_fn_unset
11750
11751 # as_fn_append VAR VALUE
11752 # ----------------------
11753 # Append the text in VALUE to the end of the definition contained in VAR. Take
11754 # advantage of any shell optimizations that allow amortized linear growth over
11755 # repeated appends, instead of the typical quadratic growth present in naive
11756 # implementations.
11757 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11758 then :
11759 eval 'as_fn_append ()
11760 {
11761 eval $1+=\$2
11762 }'
11763 else case e in #(
11764 e) as_fn_append ()
11765 {
11766 eval $1=\$$1\$2
11767 } ;;
11768 esac
11769 fi # as_fn_append
11770
11771 # as_fn_arith ARG...
11772 # ------------------
11773 # Perform arithmetic evaluation on the ARGs, and store the result in the
11774 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11775 # must be portable across $(()) and expr.
11776 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11777 then :
11778 eval 'as_fn_arith ()
11779 {
11780 as_val=$(( $* ))
11781 }'
11782 else case e in #(
11783 e) as_fn_arith ()
11784 {
11785 as_val=`expr "$@" || test $? -eq 1`
11786 } ;;
11787 esac
11788 fi # as_fn_arith
11789
11790
11791 if expr a : '\(a\)' >/dev/null 2>&1 &&
11792 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11793 as_expr=expr
11794 else
11795 as_expr=false
11796 fi
11797
11798 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11799 as_basename=basename
11800 else
11801 as_basename=false
11802 fi
11803
11804 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11805 as_dirname=dirname
11806 else
11807 as_dirname=false
11808 fi
11809
11810 as_me=`$as_basename -- "$0" ||
11811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11812 X"$0" : 'X\(//\)$' \| \
11813 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11814 printf "%s\n" X/"$0" |
11815 sed '/^.*\/\([^/][^/]*\)\/*$/{
11816 s//\1/
11817 q
11818 }
11819 /^X\/\(\/\/\)$/{
11820 s//\1/
11821 q
11822 }
11823 /^X\/\(\/\).*/{
11824 s//\1/
11825 q
11826 }
11827 s/.*/./; q'`
11828
11829 # Avoid depending upon Character Ranges.
11830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11833 as_cr_digits='0123456789'
11834 as_cr_alnum=$as_cr_Letters$as_cr_digits
11835
11836
11837 # Determine whether it's possible to make 'echo' print without a newline.
11838 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11839 # for compatibility with existing Makefiles.
11840 ECHO_C= ECHO_N= ECHO_T=
11841 case `echo -n x` in #(((((
11842 -n*)
11843 case `echo 'xy\c'` in
11844 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11845 xy) ECHO_C='\c';;
11846 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11847 ECHO_T=' ';;
11848 esac;;
11849 *)
11850 ECHO_N='-n';;
11851 esac
11852
11853 # For backward compatibility with old third-party macros, we provide
11854 # the shell variables $as_echo and $as_echo_n. New code should use
11855 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11856 as_echo='printf %s\n'
11857 as_echo_n='printf %s'
11858
11859 rm -f conf$$ conf$$.exe conf$$.file
11860 if test -d conf$$.dir; then
11861 rm -f conf$$.dir/conf$$.file
11862 else
11863 rm -f conf$$.dir
11864 mkdir conf$$.dir 2>/dev/null
11865 fi
11866 if (echo >conf$$.file) 2>/dev/null; then
11867 if ln -s conf$$.file conf$$ 2>/dev/null; then
11868 as_ln_s='ln -s'
11869 # ... but there are two gotchas:
11870 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11871 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11872 # In both cases, we have to default to 'cp -pR'.
11873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11874 as_ln_s='cp -pR'
11875 elif ln conf$$.file conf$$ 2>/dev/null; then
11876 as_ln_s=ln
11877 else
11878 as_ln_s='cp -pR'
11879 fi
11880 else
11881 as_ln_s='cp -pR'
11882 fi
11883 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11884 rmdir conf$$.dir 2>/dev/null
11885
11886
11887 # as_fn_mkdir_p
11888 # -------------
11889 # Create "$as_dir" as a directory, including parents if necessary.
11890 as_fn_mkdir_p ()
11891 {
11892
11893 case $as_dir in #(
11894 -*) as_dir=./$as_dir;;
11895 esac
11896 test -d "$as_dir" || eval $as_mkdir_p || {
11897 as_dirs=
11898 while :; do
11899 case $as_dir in #(
11900 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11901 *) as_qdir=$as_dir;;
11902 esac
11903 as_dirs="'$as_qdir' $as_dirs"
11904 as_dir=`$as_dirname -- "$as_dir" ||
11905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11906 X"$as_dir" : 'X\(//\)[^/]' \| \
11907 X"$as_dir" : 'X\(//\)$' \| \
11908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11909 printf "%s\n" X"$as_dir" |
11910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11911 s//\1/
11912 q
11913 }
11914 /^X\(\/\/\)[^/].*/{
11915 s//\1/
11916 q
11917 }
11918 /^X\(\/\/\)$/{
11919 s//\1/
11920 q
11921 }
11922 /^X\(\/\).*/{
11923 s//\1/
11924 q
11925 }
11926 s/.*/./; q'`
11927 test -d "$as_dir" && break
11928 done
11929 test -z "$as_dirs" || eval "mkdir $as_dirs"
11930 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11931
11932
11933 } # as_fn_mkdir_p
11934 if mkdir -p . 2>/dev/null; then
11935 as_mkdir_p='mkdir -p "$as_dir"'
11936 else
11937 test -d ./-p && rmdir ./-p
11938 as_mkdir_p=false
11939 fi
11940
11941
11942 # as_fn_executable_p FILE
11943 # -----------------------
11944 # Test if FILE is an executable regular file.
11945 as_fn_executable_p ()
11946 {
11947 test -f "$1" && test -x "$1"
11948 } # as_fn_executable_p
11949 as_test_x='test -x'
11950 as_executable_p=as_fn_executable_p
11951
11952 # Sed expression to map a string onto a valid CPP name.
11953 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11954 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
11955
11956 # Sed expression to map a string onto a valid variable name.
11957 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11958 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
11959
11960
11961 exec 6>&1
11962 ## ----------------------------------- ##
11963 ## Main body of $CONFIG_STATUS script. ##
11964 ## ----------------------------------- ##
11965 _ASEOF
11966 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11967
11968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11969 # Save the log message, to keep $0 and so on meaningful, and to
11970 # report actual input values of CONFIG_FILES etc. instead of their
11971 # values after options handling.
11972 ac_log="
11973 This file was extended by pjproject $as_me 2.x, which was
11974 generated by GNU Autoconf 2.72. Invocation command line was
11975
11976 CONFIG_FILES = $CONFIG_FILES
11977 CONFIG_HEADERS = $CONFIG_HEADERS
11978 CONFIG_LINKS = $CONFIG_LINKS
11979 CONFIG_COMMANDS = $CONFIG_COMMANDS
11980 $ $0 $@
11981
11982 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11983 "
11984
11985 _ACEOF
11986
11987 case $ac_config_files in *"
11988 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11989 esac
11990
11991 case $ac_config_headers in *"
11992 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11993 esac
11994
11995
11996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11997 # Files that config.status was made for.
11998 config_files="$ac_config_files"
11999 config_headers="$ac_config_headers"
12000
12001 _ACEOF
12002
12003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12004 ac_cs_usage="\
12005 '$as_me' instantiates files and other configuration actions
12006 from templates according to the current configuration. Unless the files
12007 and actions are specified as TAGs, all are instantiated by default.
12008
12009 Usage: $0 [OPTION]... [TAG]...
12010
12011 -h, --help print this help, then exit
12012 -V, --version print version number and configuration settings, then exit
12013 --config print configuration, then exit
12014 -q, --quiet, --silent
12015 do not print progress messages
12016 -d, --debug don't remove temporary files
12017 --recheck update $as_me by reconfiguring in the same conditions
12018 --file=FILE[:TEMPLATE]
12019 instantiate the configuration file FILE
12020 --header=FILE[:TEMPLATE]
12021 instantiate the configuration header FILE
12022
12023 Configuration files:
12024 $config_files
12025
12026 Configuration headers:
12027 $config_headers
12028
12029 Report bugs to the package provider."
12030
12031 _ACEOF
12032 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12033 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12035 ac_cs_config='$ac_cs_config_escaped'
12036 ac_cs_version="\\
12037 pjproject config.status 2.x
12038 configured by $0, generated by GNU Autoconf 2.72,
12039 with options \\"\$ac_cs_config\\"
12040
12041 Copyright (C) 2023 Free Software Foundation, Inc.
12042 This config.status script is free software; the Free Software Foundation
12043 gives unlimited permission to copy, distribute and modify it."
12044
12045 ac_pwd='$ac_pwd'
12046 srcdir='$srcdir'
12047 test -n "\$AWK" || AWK=awk
12048 _ACEOF
12049
12050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12051 # The default lists apply if the user does not specify any file.
12052 ac_need_defaults=:
12053 while test $# != 0
12054 do
12055 case $1 in
12056 --*=?*)
12057 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12058 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12059 ac_shift=:
12060 ;;
12061 --*=)
12062 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12063 ac_optarg=
12064 ac_shift=:
12065 ;;
12066 *)
12067 ac_option=$1
12068 ac_optarg=$2
12069 ac_shift=shift
12070 ;;
12071 esac
12072
12073 case $ac_option in
12074 # Handling of the options.
12075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12076 ac_cs_recheck=: ;;
12077 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12078 printf "%s\n" "$ac_cs_version"; exit ;;
12079 --config | --confi | --conf | --con | --co | --c )
12080 printf "%s\n" "$ac_cs_config"; exit ;;
12081 --debug | --debu | --deb | --de | --d | -d )
12082 debug=: ;;
12083 --file | --fil | --fi | --f )
12084 $ac_shift
12085 case $ac_optarg in
12086 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12087 '') as_fn_error $? "missing file argument" ;;
12088 esac
12089 as_fn_append CONFIG_FILES " '$ac_optarg'"
12090 ac_need_defaults=false;;
12091 --header | --heade | --head | --hea )
12092 $ac_shift
12093 case $ac_optarg in
12094 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12095 esac
12096 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12097 ac_need_defaults=false;;
12098 --he | --h)
12099 # Conflict between --help and --header
12100 as_fn_error $? "ambiguous option: '$1'
12101 Try '$0 --help' for more information.";;
12102 --help | --hel | -h )
12103 printf "%s\n" "$ac_cs_usage"; exit ;;
12104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12105 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12106 ac_cs_silent=: ;;
12107
12108 # This is an error.
12109 -*) as_fn_error $? "unrecognized option: '$1'
12110 Try '$0 --help' for more information." ;;
12111
12112 *) as_fn_append ac_config_targets " $1"
12113 ac_need_defaults=false ;;
12114
12115 esac
12116 shift
12117 done
12118
12119 ac_configure_extra_args=
12120
12121 if $ac_cs_silent; then
12122 exec 6>/dev/null
12123 ac_configure_extra_args="$ac_configure_extra_args --silent"
12124 fi
12125
12126 _ACEOF
12127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12128 if \$ac_cs_recheck; then
12129 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12130 shift
12131 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12132 CONFIG_SHELL='$SHELL'
12133 export CONFIG_SHELL
12134 exec "\$@"
12135 fi
12136
12137 _ACEOF
12138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12139 exec 5>>config.log
12140 {
12141 echo
12142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12143 ## Running $as_me. ##
12144 _ASBOX
12145 printf "%s\n" "$ac_log"
12146 } >&5
12147
12148 _ACEOF
12149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12150 _ACEOF
12151
12152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12153
12154 # Handling of arguments.
12155 for ac_config_target in $ac_config_targets
12156 do
12157 case $ac_config_target in
12158 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
12159 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
12160 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
12161 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
12162 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
12163 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
12164 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
12165 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
12166 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
12167 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
12168 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
12169 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
12170 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
12171
12172 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12173 esac
12174 done
12175
12176
12177 # If the user did not use the arguments to specify the items to instantiate,
12178 # then the envvar interface is used. Set only those that are not.
12179 # We use the long form for the default assignment because of an extremely
12180 # bizarre bug on SunOS 4.1.3.
12181 if $ac_need_defaults; then
12182 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12183 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12184 fi
12185
12186 # Have a temporary directory for convenience. Make it in the build tree
12187 # simply because there is no reason against having it here, and in addition,
12188 # creating and moving files from /tmp can sometimes cause problems.
12189 # Hook for its removal unless debugging.
12190 # Note that there is a small window in which the directory will not be cleaned:
12191 # after its creation but before its name has been assigned to '$tmp'.
12192 $debug ||
12193 {
12194 tmp= ac_tmp=
12195 trap 'exit_status=$?
12196 : "${ac_tmp:=$tmp}"
12197 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12198 ' 0
12199 trap 'as_fn_exit 1' 1 2 13 15
12200 }
12201 # Create a (secure) tmp directory for tmp files.
12202
12203 {
12204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12205 test -d "$tmp"
12206 } ||
12207 {
12208 tmp=./conf$$-$RANDOM
12209 (umask 077 && mkdir "$tmp")
12210 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12211 ac_tmp=$tmp
12212
12213 # Set up the scripts for CONFIG_FILES section.
12214 # No need to generate them if there are no CONFIG_FILES.
12215 # This happens for instance with './config.status config.h'.
12216 if test -n "$CONFIG_FILES"; then
12217
12218
12219 ac_cr=`echo X | tr X '\015'`
12220 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12221 # But we know of no other shell where ac_cr would be empty at this
12222 # point, so we can use a bashism as a fallback.
12223 if test "x$ac_cr" = x; then
12224 eval ac_cr=\$\'\\r\'
12225 fi
12226 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12227 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12228 ac_cs_awk_cr='\\r'
12229 else
12230 ac_cs_awk_cr=$ac_cr
12231 fi
12232
12233 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12234 _ACEOF
12235
12236
12237 {
12238 echo "cat >conf$$subs.awk <<_ACEOF" &&
12239 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12240 echo "_ACEOF"
12241 } >conf$$subs.sh ||
12242 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12243 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12244 ac_delim='%!_!# '
12245 for ac_last_try in false false false false false :; do
12246 . ./conf$$subs.sh ||
12247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12248
12249 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12250 if test $ac_delim_n = $ac_delim_num; then
12251 break
12252 elif $ac_last_try; then
12253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12254 else
12255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12256 fi
12257 done
12258 rm -f conf$$subs.sh
12259
12260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12261 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12262 _ACEOF
12263 sed -n '
12264 h
12265 s/^/S["/; s/!.*/"]=/
12266 p
12267 g
12268 s/^[^!]*!//
12269 :repl
12270 t repl
12271 s/'"$ac_delim"'$//
12272 t delim
12273 :nl
12274 h
12275 s/\(.\{148\}\)..*/\1/
12276 t more1
12277 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12278 p
12279 n
12280 b repl
12281 :more1
12282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12283 p
12284 g
12285 s/.\{148\}//
12286 t nl
12287 :delim
12288 h
12289 s/\(.\{148\}\)..*/\1/
12290 t more2
12291 s/["\\]/\\&/g; s/^/"/; s/$/"/
12292 p
12293 b
12294 :more2
12295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12296 p
12297 g
12298 s/.\{148\}//
12299 t delim
12300 ' <conf$$subs.awk | sed '
12301 /^[^""]/{
12302 N
12303 s/\n//
12304 }
12305 ' >>$CONFIG_STATUS || ac_write_fail=1
12306 rm -f conf$$subs.awk
12307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12308 _ACAWK
12309 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12310 for (key in S) S_is_set[key] = 1
12311 FS = ""
12312
12313 }
12314 {
12315 line = $ 0
12316 nfields = split(line, field, "@")
12317 substed = 0
12318 len = length(field[1])
12319 for (i = 2; i < nfields; i++) {
12320 key = field[i]
12321 keylen = length(key)
12322 if (S_is_set[key]) {
12323 value = S[key]
12324 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12325 len += length(value) + length(field[++i])
12326 substed = 1
12327 } else
12328 len += 1 + keylen
12329 }
12330
12331 print line
12332 }
12333
12334 _ACAWK
12335 _ACEOF
12336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12337 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12338 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12339 else
12340 cat
12341 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12342 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12343 _ACEOF
12344
12345 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12346 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12347 # trailing colons and then remove the whole line if VPATH becomes empty
12348 # (actually we leave an empty line to preserve line numbers).
12349 if test "x$srcdir" = x.; then
12350 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12351 h
12352 s///
12353 s/^/:/
12354 s/[ ]*$/:/
12355 s/:\$(srcdir):/:/g
12356 s/:\${srcdir}:/:/g
12357 s/:@srcdir@:/:/g
12358 s/^:*//
12359 s/:*$//
12360 x
12361 s/\(=[ ]*\).*/\1/
12362 G
12363 s/\n//
12364 s/^[^=]*=[ ]*$//
12365 }'
12366 fi
12367
12368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12369 fi # test -n "$CONFIG_FILES"
12370
12371 # Set up the scripts for CONFIG_HEADERS section.
12372 # No need to generate them if there are no CONFIG_HEADERS.
12373 # This happens for instance with './config.status Makefile'.
12374 if test -n "$CONFIG_HEADERS"; then
12375 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12376 BEGIN {
12377 _ACEOF
12378
12379 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12380 # here-document in config.status, that substitutes the proper values into
12381 # config.h.in to produce config.h.
12382
12383 # Create a delimiter string that does not exist in confdefs.h, to ease
12384 # handling of long lines.
12385 ac_delim='%!_!# '
12386 for ac_last_try in false false :; do
12387 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12388 if test -z "$ac_tt"; then
12389 break
12390 elif $ac_last_try; then
12391 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12392 else
12393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12394 fi
12395 done
12396
12397 # For the awk script, D is an array of macro values keyed by name,
12398 # likewise P contains macro parameters if any. Preserve backslash
12399 # newline sequences.
12400
12401 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12402 sed -n '
12403 s/.\{148\}/&'"$ac_delim"'/g
12404 t rset
12405 :rset
12406 s/^[ ]*#[ ]*define[ ][ ]*/ /
12407 t def
12408 d
12409 :def
12410 s/\\$//
12411 t bsnl
12412 s/["\\]/\\&/g
12413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12414 D["\1"]=" \3"/p
12415 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12416 d
12417 :bsnl
12418 s/["\\]/\\&/g
12419 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12420 D["\1"]=" \3\\\\\\n"\\/p
12421 t cont
12422 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12423 t cont
12424 d
12425 :cont
12426 n
12427 s/.\{148\}/&'"$ac_delim"'/g
12428 t clear
12429 :clear
12430 s/\\$//
12431 t bsnlc
12432 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12433 d
12434 :bsnlc
12435 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12436 b cont
12437 ' <confdefs.h | sed '
12438 s/'"$ac_delim"'/"\\\
12439 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12440
12441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12442 for (key in D) D_is_set[key] = 1
12443 FS = ""
12444 }
12445 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12446 line = \$ 0
12447 split(line, arg, " ")
12448 if (arg[1] == "#") {
12449 defundef = arg[2]
12450 mac1 = arg[3]
12451 } else {
12452 defundef = substr(arg[1], 2)
12453 mac1 = arg[2]
12454 }
12455 split(mac1, mac2, "(") #)
12456 macro = mac2[1]
12457 prefix = substr(line, 1, index(line, defundef) - 1)
12458 if (D_is_set[macro]) {
12459 # Preserve the white space surrounding the "#".
12460 print prefix "define", macro P[macro] D[macro]
12461 next
12462 } else {
12463 # Replace #undef with comments. This is necessary, for example,
12464 # in the case of _POSIX_SOURCE, which is predefined and required
12465 # on some systems where configure will not decide to define it.
12466 if (defundef == "undef") {
12467 print "/*", prefix defundef, macro, "*/"
12468 next
12469 }
12470 }
12471 }
12472 { print }
12473 _ACAWK
12474 _ACEOF
12475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12476 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12477 fi # test -n "$CONFIG_HEADERS"
12478
12479
12480 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12481 shift
12482 for ac_tag
12483 do
12484 case $ac_tag in
12485 :[FHLC]) ac_mode=$ac_tag; continue;;
12486 esac
12487 case $ac_mode$ac_tag in
12488 :[FHL]*:*);;
12489 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12490 :[FH]-) ac_tag=-:-;;
12491 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12492 esac
12493 ac_save_IFS=$IFS
12494 IFS=:
12495 set x $ac_tag
12496 IFS=$ac_save_IFS
12497 shift
12498 ac_file=$1
12499 shift
12500
12501 case $ac_mode in
12502 :L) ac_source=$1;;
12503 :[FH])
12504 ac_file_inputs=
12505 for ac_f
12506 do
12507 case $ac_f in
12508 -) ac_f="$ac_tmp/stdin";;
12509 *) # Look for the file first in the build tree, then in the source tree
12510 # (if the path is not absolute). The absolute path cannot be DOS-style,
12511 # because $ac_f cannot contain ':'.
12512 test -f "$ac_f" ||
12513 case $ac_f in
12514 [\\/$]*) false;;
12515 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12516 esac ||
12517 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12518 esac
12519 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12520 as_fn_append ac_file_inputs " '$ac_f'"
12521 done
12522
12523 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12524 # use $as_me), people would be surprised to read:
12525 # /* config.h. Generated by config.status. */
12526 configure_input='Generated from '`
12527 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12528 `' by configure.'
12529 if test x"$ac_file" != x-; then
12530 configure_input="$ac_file. $configure_input"
12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12532 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12533 fi
12534 # Neutralize special characters interpreted by sed in replacement strings.
12535 case $configure_input in #(
12536 *\&* | *\|* | *\\* )
12537 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12538 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12539 *) ac_sed_conf_input=$configure_input;;
12540 esac
12541
12542 case $ac_tag in
12543 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12545 esac
12546 ;;
12547 esac
12548
12549 ac_dir=`$as_dirname -- "$ac_file" ||
12550 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12551 X"$ac_file" : 'X\(//\)[^/]' \| \
12552 X"$ac_file" : 'X\(//\)$' \| \
12553 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12554 printf "%s\n" X"$ac_file" |
12555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12556 s//\1/
12557 q
12558 }
12559 /^X\(\/\/\)[^/].*/{
12560 s//\1/
12561 q
12562 }
12563 /^X\(\/\/\)$/{
12564 s//\1/
12565 q
12566 }
12567 /^X\(\/\).*/{
12568 s//\1/
12569 q
12570 }
12571 s/.*/./; q'`
12572 as_dir="$ac_dir"; as_fn_mkdir_p
12573 ac_builddir=.
12574
12575 case "$ac_dir" in
12576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12577 *)
12578 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12579 # A ".." for each directory in $ac_dir_suffix.
12580 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12581 case $ac_top_builddir_sub in
12582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12584 esac ;;
12585 esac
12586 ac_abs_top_builddir=$ac_pwd
12587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12588 # for backward compatibility:
12589 ac_top_builddir=$ac_top_build_prefix
12590
12591 case $srcdir in
12592 .) # We are building in place.
12593 ac_srcdir=.
12594 ac_top_srcdir=$ac_top_builddir_sub
12595 ac_abs_top_srcdir=$ac_pwd ;;
12596 [\\/]* | ?:[\\/]* ) # Absolute name.
12597 ac_srcdir=$srcdir$ac_dir_suffix;
12598 ac_top_srcdir=$srcdir
12599 ac_abs_top_srcdir=$srcdir ;;
12600 *) # Relative name.
12601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12602 ac_top_srcdir=$ac_top_build_prefix$srcdir
12603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12604 esac
12605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12606
12607
12608 case $ac_mode in
12609 :F)
12610 #
12611 # CONFIG_FILE
12612 #
12613
12614 _ACEOF
12615
12616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12617 # If the template does not know about datarootdir, expand it.
12618 # FIXME: This hack should be removed a few years after 2.60.
12619 ac_datarootdir_hack=; ac_datarootdir_seen=
12620 ac_sed_dataroot='
12621 /datarootdir/ {
12622 p
12623 q
12624 }
12625 /@datadir@/p
12626 /@docdir@/p
12627 /@infodir@/p
12628 /@localedir@/p
12629 /@mandir@/p'
12630 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12631 *datarootdir*) ac_datarootdir_seen=yes;;
12632 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12634 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12635 _ACEOF
12636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12637 ac_datarootdir_hack='
12638 s&@datadir@&$datadir&g
12639 s&@docdir@&$docdir&g
12640 s&@infodir@&$infodir&g
12641 s&@localedir@&$localedir&g
12642 s&@mandir@&$mandir&g
12643 s&\\\${datarootdir}&$datarootdir&g' ;;
12644 esac
12645 _ACEOF
12646
12647 # Neutralize VPATH when '$srcdir' = '.'.
12648 # Shell code in configure.ac might set extrasub.
12649 # FIXME: do we really want to maintain this feature?
12650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12651 ac_sed_extra="$ac_vpsub
12652 $extrasub
12653 _ACEOF
12654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12655 :t
12656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12657 s|@configure_input@|$ac_sed_conf_input|;t t
12658 s&@top_builddir@&$ac_top_builddir_sub&;t t
12659 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12660 s&@srcdir@&$ac_srcdir&;t t
12661 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12662 s&@top_srcdir@&$ac_top_srcdir&;t t
12663 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12664 s&@builddir@&$ac_builddir&;t t
12665 s&@abs_builddir@&$ac_abs_builddir&;t t
12666 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12667 $ac_datarootdir_hack
12668 "
12669 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12670 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12671
12672 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12673 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12675 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12677 which seems to be undefined. Please make sure it is defined" >&5
12678 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12679 which seems to be undefined. Please make sure it is defined" >&2;}
12680
12681 rm -f "$ac_tmp/stdin"
12682 case $ac_file in
12683 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12684 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12685 esac \
12686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12687 ;;
12688 :H)
12689 #
12690 # CONFIG_HEADER
12691 #
12692 if test x"$ac_file" != x-; then
12693 {
12694 printf "%s\n" "/* $configure_input */" >&1 \
12695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12696 } >"$ac_tmp/config.h" \
12697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12698 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12700 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12701 else
12702 rm -f "$ac_file"
12703 mv "$ac_tmp/config.h" "$ac_file" \
12704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12705 fi
12706 else
12707 printf "%s\n" "/* $configure_input */" >&1 \
12708 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12709 || as_fn_error $? "could not create -" "$LINENO" 5
12710 fi
12711 ;;
12712
12713
12714 esac
12715
12716 done # for ac_tag
12717
12718
12719 as_fn_exit 0
12720 _ACEOF
12721 ac_clean_files=$ac_clean_files_save
12722
12723 test $ac_write_fail = 0 ||
12724 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12725
12726
12727 # configure is writing to config.log, and then calls config.status.
12728 # config.status does its own redirection, appending to config.log.
12729 # Unfortunately, on DOS this fails, as config.log is still kept open
12730 # by configure, so config.status won't be able to write to it; its
12731 # output is simply discarded. So we exec the FD to /dev/null,
12732 # effectively closing config.log, so it can be properly (re)opened and
12733 # appended to by config.status. When coming back to configure, we
12734 # need to make the FD available again.
12735 if test "$no_create" != yes; then
12736 ac_cs_success=:
12737 ac_config_status_args=
12738 test "$silent" = yes &&
12739 ac_config_status_args="$ac_config_status_args --quiet"
12740 exec 5>/dev/null
12741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12742 exec 5>>config.log
12743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12744 # would make configure fail if this is the last instruction.
12745 $ac_cs_success || as_fn_exit 1
12746 fi
12747 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12749 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12750 fi
12751
12752
12753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
12754
12755 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.
12756
12757 Further customizations can be put in:
12758 - 'user.mak'
12759 - 'pjlib/include/pj/config_site.h'
12760
12761 The next step now is to run 'make dep' and 'make'.
12762 " >&5
12763 printf "%s\n" "
12764
12765 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.
12766
12767 Further customizations can be put in:
12768 - 'user.mak'
12769 - 'pjlib/include/pj/config_site.h'
12770
12771 The next step now is to run 'make dep' and 'make'.
12772 " >&6; }
12773
12774