2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for pjproject 2.x.
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in #(
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46
as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83
# We need space, tab and new line, in precisely that order. Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
89
# Find who we are. Look in the path if we contain no directory separator.
92
*[\\/]* ) as_myself=$0 ;;
93
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
test -z "$as_dir" && as_dir=.
98
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
109
if test ! -f "$as_myself"; then
110
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there. '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
# Use a proper internal environment variable to ensure we don't fall
136
# into an infinite loop, continuously re-executing ourselves.
137
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
_as_can_reexec=no; export _as_can_reexec;
139
# We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147
*v*x* | *x*v* ) as_opts=-vx ;;
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
# We don't want this to propagate to other subprocesses.
159
{ _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
# is contrary to our usage. Disable this feature.
166
alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
case \`(set -o) 2>/dev/null\` in #(
177
as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
exitcode=1; echo positional parameters were not saved.
193
test x\$exitcode = x0 || exit 1
195
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
test \$(( 1 + 1 )) = 2 || exit 1"
200
if (eval "$as_required") 2>/dev/null; then :
205
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213
test -z "$as_dir" && as_dir=.
217
for as_base in sh bash ksh sh5; do
218
# Try only shells that exist, to save several forks.
219
as_shell=$as_dir/$as_base
220
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
CONFIG_SHELL=$as_shell as_have_required=yes
223
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233
CONFIG_SHELL=$SHELL as_have_required=yes
238
if test "x$CONFIG_SHELL" != x; then :
240
# We cannot yet assume a decent shell, so we have to provide a
241
# neutralization value for shells without unset; and this also
242
# works around shells that cannot unset nonexistent variables.
243
# Preserve -v and -x to the replacement shell.
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248
*v*x* | *x*v* ) as_opts=-vx ;;
253
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254
# Admittedly, this is quite paranoid, since all the known shells bail
255
# out after a failed `exec'.
256
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260
if test x$as_have_required = xno; then :
261
$as_echo "$0: This script requires a shell more modern than all"
262
$as_echo "$0: the shells that I found on your system."
263
if test x${ZSH_VERSION+set} = xset ; then
264
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
267
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268
$0: including any error possibly output before this
269
$0: message. Then install a modern shell, or manually run
270
$0: the script under such a shell if you do have one."
276
SHELL=${CONFIG_SHELL-/bin/sh}
278
# Unset more variables known to interfere with behavior of common tools.
279
CLICOLOR_FORCE= GREP_OPTIONS=
280
unset CLICOLOR_FORCE GREP_OPTIONS
282
## --------------------- ##
283
## M4sh Shell Functions. ##
284
## --------------------- ##
287
# Portably unset VAR.
290
{ eval $1=; unset $1;}
294
# as_fn_set_status STATUS
295
# -----------------------
296
# Set $? to STATUS, without forking.
304
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314
# Create "$as_dir" as a directory, including parents if necessary.
319
-*) as_dir=./$as_dir;;
321
test -d "$as_dir" || eval $as_mkdir_p || {
325
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328
as_dirs="'$as_qdir' $as_dirs"
329
as_dir=`$as_dirname -- "$as_dir" ||
330
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331
X"$as_dir" : 'X\(//\)[^/]' \| \
332
X"$as_dir" : 'X\(//\)$' \| \
333
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334
$as_echo X"$as_dir" |
335
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352
test -d "$as_dir" && break
354
test -z "$as_dirs" || eval "mkdir $as_dirs"
355
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
# as_fn_executable_p FILE
361
# -----------------------
362
# Test if FILE is an executable regular file.
363
as_fn_executable_p ()
365
test -f "$1" && test -x "$1"
366
} # as_fn_executable_p
367
# as_fn_append VAR VALUE
368
# ----------------------
369
# Append the text in VALUE to the end of the definition contained in VAR. Take
370
# advantage of any shell optimizations that allow amortized linear growth over
371
# repeated appends, instead of the typical quadratic growth present in naive
373
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374
eval 'as_fn_append ()
387
# Perform arithmetic evaluation on the ARGs, and store the result in the
388
# global $as_val. Take advantage of shells that can avoid forks. The arguments
389
# must be portable across $(()) and expr.
390
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398
as_val=`expr "$@" || test $? -eq 1`
403
# as_fn_error STATUS ERROR [LINENO LOG_FD]
404
# ----------------------------------------
405
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407
# script with STATUS, using 1 if that was 0.
410
as_status=$1; test $as_status -eq 0 && as_status=1
412
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415
$as_echo "$as_me: error: $2" >&2
416
as_fn_exit $as_status
419
if expr a : '\(a\)' >/dev/null 2>&1 &&
420
test "X`expr 00001 : '.*\(...\)'`" = X001; then
426
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438
as_me=`$as_basename -- "$0" ||
439
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440
X"$0" : 'X\(//\)$' \| \
441
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443
sed '/^.*\/\([^/][^/]*\)\/*$/{
457
# Avoid depending upon Character Ranges.
458
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
as_cr_digits='0123456789'
462
as_cr_alnum=$as_cr_Letters$as_cr_digits
465
as_lineno_1=$LINENO as_lineno_1a=$LINENO
466
as_lineno_2=$LINENO as_lineno_2a=$LINENO
467
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485
chmod +x "$as_me.lineno" ||
486
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489
# already done that, so ensure we don't try to do so again and fall
490
# in an infinite loop. This has already happened in practice.
491
_as_can_reexec=no; export _as_can_reexec
492
# Don't try to exec as it changes $[0], causing all sort of problems
493
# (the dirname of $[0] is not the place where we might find the
494
# original and so on. Autoconf is especially sensitive to this).
496
# Exit status is that of the last command.
500
ECHO_C= ECHO_N= ECHO_T=
501
case `echo -n x` in #(((((
503
case `echo 'xy\c'` in
504
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
506
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513
rm -f conf$$ conf$$.exe conf$$.file
514
if test -d conf$$.dir; then
515
rm -f conf$$.dir/conf$$.file
518
mkdir conf$$.dir 2>/dev/null
520
if (echo >conf$$.file) 2>/dev/null; then
521
if ln -s conf$$.file conf$$ 2>/dev/null; then
523
# ... but there are two gotchas:
524
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526
# In both cases, we have to default to `cp -pR'.
527
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529
elif ln conf$$.file conf$$ 2>/dev/null; then
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
rmdir conf$$.dir 2>/dev/null
540
if mkdir -p . 2>/dev/null; then
541
as_mkdir_p='mkdir -p "$as_dir"'
543
test -d ./-p && rmdir ./-p
548
as_executable_p=as_fn_executable_p
550
# Sed expression to map a string onto a valid CPP name.
551
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
# Sed expression to map a string onto a valid variable name.
554
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
test -n "$DJDIR" || exec 7<&0 </dev/null
561
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562
# so uname gets run too.
563
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
ac_default_prefix=/usr/local
570
ac_config_libobj_dir=.
577
# Identity of this package.
578
PACKAGE_NAME='pjproject'
579
PACKAGE_TARNAME='pjproject'
580
PACKAGE_VERSION='2.x'
581
PACKAGE_STRING='pjproject 2.x'
585
# Factoring default headers for most tests.
586
ac_includes_default="\
588
#ifdef HAVE_SYS_TYPES_H
589
# include <sys/types.h>
591
#ifdef HAVE_SYS_STAT_H
592
# include <sys/stat.h>
598
# ifdef HAVE_STDLIB_H
603
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608
#ifdef HAVE_STRINGS_H
609
# include <strings.h>
611
#ifdef HAVE_INTTYPES_H
612
# include <inttypes.h>
621
ac_subst_vars='LTLIBOBJS
626
opencore_amrnb_present
627
opencore_amrnb_h_present
636
SAVED_PKG_CONFIG_PATH
655
ac_pjmedia_video_has_qt
657
ac_pjmedia_video_has_ios
734
program_transform_name
747
enable_option_checking
748
enable_floating_point
781
enable_opencore_amrnb
783
ac_precious_vars='build_alias
797
# Initialize some variables set by options.
799
ac_init_version=false
800
ac_unrecognized_opts=
802
# The variables have the same names as the options, with
803
# dashes changed to underlines.
811
program_transform_name=s,x,x,
819
# Installation directory options.
820
# These are left unexpanded so users can "make install exec_prefix=/foo"
821
# and all the variables that are supposed to be based on exec_prefix
822
# by default will actually change.
823
# Use braces instead of parens because sh, perl, etc. also accept them.
824
# (The list follows the same order as the GNU Coding Standards.)
825
bindir='${exec_prefix}/bin'
826
sbindir='${exec_prefix}/sbin'
827
libexecdir='${exec_prefix}/libexec'
828
datarootdir='${prefix}/share'
829
datadir='${datarootdir}'
830
sysconfdir='${prefix}/etc'
831
sharedstatedir='${prefix}/com'
832
localstatedir='${prefix}/var'
833
includedir='${prefix}/include'
834
oldincludedir='/usr/include'
835
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836
infodir='${datarootdir}/info'
841
libdir='${exec_prefix}/lib'
842
localedir='${datarootdir}/locale'
843
mandir='${datarootdir}/man'
849
# If the previous option needs an argument, assign it.
850
if test -n "$ac_prev"; then
851
eval $ac_prev=\$ac_option
857
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862
# Accept the important Cygnus configure options, so we can diagnose typos.
864
case $ac_dashdash$ac_option in
868
-bindir | --bindir | --bindi | --bind | --bin | --bi)
870
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873
-build | --build | --buil | --bui | --bu)
874
ac_prev=build_alias ;;
875
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
876
build_alias=$ac_optarg ;;
878
-cache-file | --cache-file | --cache-fil | --cache-fi \
879
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880
ac_prev=cache_file ;;
881
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883
cache_file=$ac_optarg ;;
886
cache_file=config.cache ;;
888
-datadir | --datadir | --datadi | --datad)
890
-datadir=* | --datadir=* | --datadi=* | --datad=*)
891
datadir=$ac_optarg ;;
893
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894
| --dataroo | --dataro | --datar)
895
ac_prev=datarootdir ;;
896
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898
datarootdir=$ac_optarg ;;
900
-disable-* | --disable-*)
901
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902
# Reject names that are not valid shell variable names.
903
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904
as_fn_error $? "invalid feature name: $ac_useropt"
905
ac_useropt_orig=$ac_useropt
906
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907
case $ac_user_opts in
911
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912
ac_unrecognized_sep=', ';;
914
eval enable_$ac_useropt=no ;;
916
-docdir | --docdir | --docdi | --doc | --do)
918
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926
-enable-* | --enable-*)
927
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928
# Reject names that are not valid shell variable names.
929
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930
as_fn_error $? "invalid feature name: $ac_useropt"
931
ac_useropt_orig=$ac_useropt
932
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933
case $ac_user_opts in
937
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938
ac_unrecognized_sep=', ';;
940
eval enable_$ac_useropt=\$ac_optarg ;;
942
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944
| --exec | --exe | --ex)
945
ac_prev=exec_prefix ;;
946
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948
| --exec=* | --exe=* | --ex=*)
949
exec_prefix=$ac_optarg ;;
951
-gas | --gas | --ga | --g)
952
# Obsolete; use --with-gas.
955
-help | --help | --hel | --he | -h)
957
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958
ac_init_help=recursive ;;
959
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960
ac_init_help=short ;;
962
-host | --host | --hos | --ho)
963
ac_prev=host_alias ;;
964
-host=* | --host=* | --hos=* | --ho=*)
965
host_alias=$ac_optarg ;;
967
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971
htmldir=$ac_optarg ;;
973
-includedir | --includedir | --includedi | --included | --include \
974
| --includ | --inclu | --incl | --inc)
975
ac_prev=includedir ;;
976
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977
| --includ=* | --inclu=* | --incl=* | --inc=*)
978
includedir=$ac_optarg ;;
980
-infodir | --infodir | --infodi | --infod | --info | --inf)
982
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983
infodir=$ac_optarg ;;
985
-libdir | --libdir | --libdi | --libd)
987
-libdir=* | --libdir=* | --libdi=* | --libd=*)
990
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991
| --libexe | --libex | --libe)
992
ac_prev=libexecdir ;;
993
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994
| --libexe=* | --libex=* | --libe=*)
995
libexecdir=$ac_optarg ;;
997
-localedir | --localedir | --localedi | --localed | --locale)
999
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000
localedir=$ac_optarg ;;
1002
-localstatedir | --localstatedir | --localstatedi | --localstated \
1003
| --localstate | --localstat | --localsta | --localst | --locals)
1004
ac_prev=localstatedir ;;
1005
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007
localstatedir=$ac_optarg ;;
1009
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012
mandir=$ac_optarg ;;
1014
-nfp | --nfp | --nf)
1015
# Obsolete; use --without-fp.
1018
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019
| --no-cr | --no-c | -n)
1022
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028
| --oldin | --oldi | --old | --ol | --o)
1029
ac_prev=oldincludedir ;;
1030
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033
oldincludedir=$ac_optarg ;;
1035
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038
prefix=$ac_optarg ;;
1040
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1041
| --program-pre | --program-pr | --program-p)
1042
ac_prev=program_prefix ;;
1043
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1044
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045
program_prefix=$ac_optarg ;;
1047
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1048
| --program-suf | --program-su | --program-s)
1049
ac_prev=program_suffix ;;
1050
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1051
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052
program_suffix=$ac_optarg ;;
1054
-program-transform-name | --program-transform-name \
1055
| --program-transform-nam | --program-transform-na \
1056
| --program-transform-n | --program-transform- \
1057
| --program-transform | --program-transfor \
1058
| --program-transfo | --program-transf \
1059
| --program-trans | --program-tran \
1060
| --progr-tra | --program-tr | --program-t)
1061
ac_prev=program_transform_name ;;
1062
-program-transform-name=* | --program-transform-name=* \
1063
| --program-transform-nam=* | --program-transform-na=* \
1064
| --program-transform-n=* | --program-transform-=* \
1065
| --program-transform=* | --program-transfor=* \
1066
| --program-transfo=* | --program-transf=* \
1067
| --program-trans=* | --program-tran=* \
1068
| --progr-tra=* | --program-tr=* | --program-t=*)
1069
program_transform_name=$ac_optarg ;;
1071
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074
pdfdir=$ac_optarg ;;
1076
-psdir | --psdir | --psdi | --psd | --ps)
1078
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082
| -silent | --silent | --silen | --sile | --sil)
1085
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089
sbindir=$ac_optarg ;;
1091
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1092
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093
| --sharedst | --shareds | --shared | --share | --shar \
1095
ac_prev=sharedstatedir ;;
1096
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100
sharedstatedir=$ac_optarg ;;
1102
-site | --site | --sit)
1104
-site=* | --site=* | --sit=*)
1107
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110
srcdir=$ac_optarg ;;
1112
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113
| --syscon | --sysco | --sysc | --sys | --sy)
1114
ac_prev=sysconfdir ;;
1115
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117
sysconfdir=$ac_optarg ;;
1119
-target | --target | --targe | --targ | --tar | --ta | --t)
1120
ac_prev=target_alias ;;
1121
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122
target_alias=$ac_optarg ;;
1124
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1127
-version | --version | --versio | --versi | --vers | -V)
1128
ac_init_version=: ;;
1131
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132
# Reject names that are not valid shell variable names.
1133
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134
as_fn_error $? "invalid package name: $ac_useropt"
1135
ac_useropt_orig=$ac_useropt
1136
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137
case $ac_user_opts in
1141
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142
ac_unrecognized_sep=', ';;
1144
eval with_$ac_useropt=\$ac_optarg ;;
1146
-without-* | --without-*)
1147
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148
# Reject names that are not valid shell variable names.
1149
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150
as_fn_error $? "invalid package name: $ac_useropt"
1151
ac_useropt_orig=$ac_useropt
1152
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153
case $ac_user_opts in
1157
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158
ac_unrecognized_sep=', ';;
1160
eval with_$ac_useropt=no ;;
1163
# Obsolete; use --with-x.
1166
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167
| --x-incl | --x-inc | --x-in | --x-i)
1168
ac_prev=x_includes ;;
1169
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171
x_includes=$ac_optarg ;;
1173
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1174
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175
ac_prev=x_libraries ;;
1176
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178
x_libraries=$ac_optarg ;;
1180
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1181
Try \`$0 --help' for more information"
1185
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186
# Reject names that are not valid shell variable names.
1187
case $ac_envvar in #(
1188
'' | [0-9]* | *[!_$as_cr_alnum]* )
1189
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191
eval $ac_envvar=\$ac_optarg
1192
export $ac_envvar ;;
1195
# FIXME: should be removed in autoconf 3.0.
1196
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205
if test -n "$ac_prev"; then
1206
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207
as_fn_error $? "missing argument to $ac_option"
1210
if test -n "$ac_unrecognized_opts"; then
1211
case $enable_option_checking in
1213
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218
# Check all directory arguments for consistency.
1219
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220
datadir sysconfdir sharedstatedir localstatedir includedir \
1221
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222
libdir localedir mandir
1224
eval ac_val=\$$ac_var
1225
# Remove trailing slashes.
1228
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229
eval $ac_var=\$ac_val;;
1231
# Be sure to have absolute directory names.
1233
[\\/$]* | ?:[\\/]* ) continue;;
1234
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239
# There might be people who depend on the old broken behavior: `$host'
1240
# used to hold the argument of --host etc.
1241
# FIXME: To remove some day.
1244
target=$target_alias
1246
# FIXME: To remove some day.
1247
if test "x$host_alias" != x; then
1248
if test "x$build_alias" = x; then
1249
cross_compiling=maybe
1250
elif test "x$build_alias" != "x$host_alias"; then
1256
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
test "$silent" = yes && exec 6>/dev/null
1261
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262
ac_ls_di=`ls -di .` &&
1263
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264
as_fn_error $? "working directory cannot be determined"
1265
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266
as_fn_error $? "pwd does not report name of working directory"
1269
# Find the source files, if location was not specified.
1270
if test -z "$srcdir"; then
1271
ac_srcdir_defaulted=yes
1272
# Try the directory containing this script, then the parent directory.
1273
ac_confdir=`$as_dirname -- "$as_myself" ||
1274
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275
X"$as_myself" : 'X\(//\)[^/]' \| \
1276
X"$as_myself" : 'X\(//\)$' \| \
1277
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278
$as_echo X"$as_myself" |
1279
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297
if test ! -r "$srcdir/$ac_unique_file"; then
1301
ac_srcdir_defaulted=no
1303
if test ! -r "$srcdir/$ac_unique_file"; then
1304
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311
# When building in place, set srcdir=.
1312
if test "$ac_abs_confdir" = "$ac_pwd"; then
1315
# Remove unnecessary trailing slashes from srcdir.
1316
# Double slashes in file names in object file debugging info
1317
# mess up M-x gdb in Emacs.
1319
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321
for ac_var in $ac_precious_vars; do
1322
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323
eval ac_env_${ac_var}_value=\$${ac_var}
1324
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329
# Report the --help message.
1331
if test "$ac_init_help" = "long"; then
1332
# Omit some internal or obsolete options to make the list less imposing.
1333
# This message is too long to be a string in the A/UX 3.1 sh.
1335
\`configure' configures pjproject 2.x to adapt to many kinds of systems.
1337
Usage: $0 [OPTION]... [VAR=VALUE]...
1339
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340
VAR=VALUE. See below for descriptions of some of the useful variables.
1342
Defaults for the options are specified in brackets.
1345
-h, --help display this help and exit
1346
--help=short display options specific to this package
1347
--help=recursive display the short help of all the included packages
1348
-V, --version display version information and exit
1349
-q, --quiet, --silent do not print \`checking ...' messages
1350
--cache-file=FILE cache test results in FILE [disabled]
1351
-C, --config-cache alias for \`--cache-file=config.cache'
1352
-n, --no-create do not create output files
1353
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
Installation directories:
1356
--prefix=PREFIX install architecture-independent files in PREFIX
1357
[$ac_default_prefix]
1358
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361
By default, \`make install' will install all the files in
1362
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364
for instance \`--prefix=\$HOME'.
1366
For better control, use the options below.
1368
Fine tuning of the installation directories:
1369
--bindir=DIR user executables [EPREFIX/bin]
1370
--sbindir=DIR system admin executables [EPREFIX/sbin]
1371
--libexecdir=DIR program executables [EPREFIX/libexec]
1372
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375
--libdir=DIR object code libraries [EPREFIX/lib]
1376
--includedir=DIR C header files [PREFIX/include]
1377
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1378
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380
--infodir=DIR info documentation [DATAROOTDIR/info]
1381
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382
--mandir=DIR man documentation [DATAROOTDIR/man]
1383
--docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1384
--htmldir=DIR html documentation [DOCDIR]
1385
--dvidir=DIR dvi documentation [DOCDIR]
1386
--pdfdir=DIR pdf documentation [DOCDIR]
1387
--psdir=DIR ps documentation [DOCDIR]
1393
--build=BUILD configure for building on BUILD [guessed]
1394
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1395
--target=TARGET configure for building compilers for TARGET [HOST]
1399
if test -n "$ac_init_help"; then
1400
case $ac_init_help in
1401
short | recursive ) echo "Configuration of pjproject 2.x:";;
1406
--disable-option-checking ignore unrecognized --enable/--with options
1407
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409
--disable-floating-point
1410
Disable floating point where possible
1411
--enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
1412
--disable-sound Exclude sound (i.e. use null sound)
1413
--disable-oss Disable OSS audio (default: not disabled)
1414
--disable-video Disable video feature
1415
--enable-ext-sound PJMEDIA will not provide any sound device backend
1416
--disable-small-filter Exclude small filter in resampling
1417
--disable-large-filter Exclude large filter in resampling
1418
--disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1419
--disable-g711-codec Exclude G.711 codecs from the build
1420
--disable-l16-codec Exclude Linear/L16 codec family from the build
1421
--disable-gsm-codec Exclude GSM codec in the build
1422
--disable-g722-codec Exclude G.722 codec in the build
1423
--disable-g7221-codec Exclude G.7221 codec in the build
1424
--disable-speex-codec Exclude Speex codecs in the build
1425
--disable-ilbc-codec Exclude iLBC codec in the build
1426
--enable-libsamplerate Link with libsamplerate when available. Note that
1427
PJMEDIA_RESAMPLE_IMP must also be configured
1428
--enable-resample-dll Build libresample as shared library
1429
--disable-sdl Disable SDL (default: not disabled)
1430
--disable-ffmpeg Disable ffmpeg (default: not disabled)
1431
--disable-v4l2 Disable Video4Linux2 (default: not disabled)
1432
--enable-ipp Enable Intel IPP support. Specify the Intel IPP
1433
package and samples location using IPPROOT and
1434
IPPSAMPLES env var or with --with-ipp and
1435
--with-ipp-samples options
1436
--disable-ssl Exclude SSL support the build (default: autodetect)
1438
--disable-opencore-amrnb
1439
Exclude OpenCORE AMR-NB support from the build
1440
(default: autodetect)
1444
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446
--with-external-speex Use external Speex development files, not the one in
1447
"third_party" directory. When this option is set,
1448
make sure that Speex is accessible to use (hint: use
1449
CFLAGS and LDFLAGS env var to set the include/lib
1451
--with-external-gsm Use external GSM codec library, not the one in
1452
"third_party" directory. When this option is set,
1453
make sure that the GSM include/lib files are
1454
accessible to use (hint: use CFLAGS and LDFLAGS env
1455
var to set the include/lib paths)
1456
--with-external-pa Use external PortAudio development files, not the
1457
one in "third_party" directory. When this option is
1458
set, make sure that PortAudio is accessible to use
1459
(hint: use CFLAGS and LDFLAGS env var to set the
1461
--with-sdl=DIR Specify alternate libSDL prefix
1462
--with-ffmpeg=DIR Specify alternate FFMPEG prefix
1463
--with-ipp=DIR Specify the Intel IPP location
1464
--with-ipp-samples=DIR Specify the Intel IPP samples location
1465
--with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
1466
"em64t. Default is blank for IA32"
1467
--with-ssl=DIR Specify alternate libssl prefix
1468
--with-opencore-amrnb=DIR
1469
Specify alternate libopencore-amrnb prefix
1471
Some influential environment variables:
1472
CC C compiler command
1473
CFLAGS C compiler flags
1474
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475
nonstandard directory <lib dir>
1476
LIBS libraries to pass to the linker, e.g. -l<library>
1477
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478
you have headers in a nonstandard directory <include dir>
1479
CXX C++ compiler command
1480
CXXFLAGS C++ compiler flags
1483
Use these variables to override the choices made by `configure' or to help
1484
it to find libraries and programs with nonstandard names/locations.
1486
Report bugs to the package provider.
1491
if test "$ac_init_help" = "recursive"; then
1492
# If there are subdirs, report their specific --help.
1493
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494
test -d "$ac_dir" ||
1495
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503
# A ".." for each directory in $ac_dir_suffix.
1504
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505
case $ac_top_builddir_sub in
1506
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510
ac_abs_top_builddir=$ac_pwd
1511
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512
# for backward compatibility:
1513
ac_top_builddir=$ac_top_build_prefix
1516
.) # We are building in place.
1518
ac_top_srcdir=$ac_top_builddir_sub
1519
ac_abs_top_srcdir=$ac_pwd ;;
1520
[\\/]* | ?:[\\/]* ) # Absolute name.
1521
ac_srcdir=$srcdir$ac_dir_suffix;
1522
ac_top_srcdir=$srcdir
1523
ac_abs_top_srcdir=$srcdir ;;
1525
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526
ac_top_srcdir=$ac_top_build_prefix$srcdir
1527
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
cd "$ac_dir" || { ac_status=$?; continue; }
1532
# Check for guested configure.
1533
if test -f "$ac_srcdir/configure.gnu"; then
1535
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536
elif test -f "$ac_srcdir/configure"; then
1538
$SHELL "$ac_srcdir/configure" --help=recursive
1540
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542
cd "$ac_pwd" || { ac_status=$?; break; }
1546
test -n "$ac_init_help" && exit $ac_status
1547
if $ac_init_version; then
1549
pjproject configure 2.x
1550
generated by GNU Autoconf 2.69
1552
Copyright (C) 2012 Free Software Foundation, Inc.
1553
This configure script is free software; the Free Software Foundation
1554
gives unlimited permission to copy, distribute and modify it.
1559
## ------------------------ ##
1560
## Autoconf initialization. ##
1561
## ------------------------ ##
1563
# ac_fn_c_try_compile LINENO
1564
# --------------------------
1565
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566
ac_fn_c_try_compile ()
1568
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569
rm -f conftest.$ac_objext
1570
if { { ac_try="$ac_compile"
1572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573
*) ac_try_echo=$ac_try;;
1575
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576
$as_echo "$ac_try_echo"; } >&5
1577
(eval "$ac_compile") 2>conftest.err
1579
if test -s conftest.err; then
1580
grep -v '^ *+' conftest.err >conftest.er1
1581
cat conftest.er1 >&5
1582
mv -f conftest.er1 conftest.err
1584
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585
test $ac_status = 0; } && {
1586
test -z "$ac_c_werror_flag" ||
1587
test ! -s conftest.err
1588
} && test -s conftest.$ac_objext; then :
1591
$as_echo "$as_me: failed program was:" >&5
1592
sed 's/^/| /' conftest.$ac_ext >&5
1596
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597
as_fn_set_status $ac_retval
1599
} # ac_fn_c_try_compile
1601
# ac_fn_cxx_try_compile LINENO
1602
# ----------------------------
1603
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1604
ac_fn_cxx_try_compile ()
1606
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607
rm -f conftest.$ac_objext
1608
if { { ac_try="$ac_compile"
1610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611
*) ac_try_echo=$ac_try;;
1613
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614
$as_echo "$ac_try_echo"; } >&5
1615
(eval "$ac_compile") 2>conftest.err
1617
if test -s conftest.err; then
1618
grep -v '^ *+' conftest.err >conftest.er1
1619
cat conftest.er1 >&5
1620
mv -f conftest.er1 conftest.err
1622
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623
test $ac_status = 0; } && {
1624
test -z "$ac_cxx_werror_flag" ||
1625
test ! -s conftest.err
1626
} && test -s conftest.$ac_objext; then :
1629
$as_echo "$as_me: failed program was:" >&5
1630
sed 's/^/| /' conftest.$ac_ext >&5
1634
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
as_fn_set_status $ac_retval
1637
} # ac_fn_cxx_try_compile
1639
# ac_fn_c_try_link LINENO
1640
# -----------------------
1641
# Try to link conftest.$ac_ext, and return whether this succeeded.
1644
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645
rm -f conftest.$ac_objext conftest$ac_exeext
1646
if { { ac_try="$ac_link"
1648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649
*) ac_try_echo=$ac_try;;
1651
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652
$as_echo "$ac_try_echo"; } >&5
1653
(eval "$ac_link") 2>conftest.err
1655
if test -s conftest.err; then
1656
grep -v '^ *+' conftest.err >conftest.er1
1657
cat conftest.er1 >&5
1658
mv -f conftest.er1 conftest.err
1660
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661
test $ac_status = 0; } && {
1662
test -z "$ac_c_werror_flag" ||
1663
test ! -s conftest.err
1664
} && test -s conftest$ac_exeext && {
1665
test "$cross_compiling" = yes ||
1666
test -x conftest$ac_exeext
1670
$as_echo "$as_me: failed program was:" >&5
1671
sed 's/^/| /' conftest.$ac_ext >&5
1675
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1676
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1677
# interfere with the next link command; also delete a directory that is
1678
# left behind by Apple's compiler. We do this before executing the actions.
1679
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1680
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
as_fn_set_status $ac_retval
1683
} # ac_fn_c_try_link
1685
# ac_fn_c_try_run LINENO
1686
# ----------------------
1687
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688
# that executables *can* be run.
1691
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692
if { { ac_try="$ac_link"
1694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695
*) ac_try_echo=$ac_try;;
1697
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698
$as_echo "$ac_try_echo"; } >&5
1699
(eval "$ac_link") 2>&5
1701
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703
{ { case "(($ac_try" in
1704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705
*) ac_try_echo=$ac_try;;
1707
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708
$as_echo "$ac_try_echo"; } >&5
1709
(eval "$ac_try") 2>&5
1711
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712
test $ac_status = 0; }; }; then :
1715
$as_echo "$as_me: program exited with status $ac_status" >&5
1716
$as_echo "$as_me: failed program was:" >&5
1717
sed 's/^/| /' conftest.$ac_ext >&5
1719
ac_retval=$ac_status
1721
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
as_fn_set_status $ac_retval
1727
# ac_fn_c_try_cpp LINENO
1728
# ----------------------
1729
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733
if { { ac_try="$ac_cpp conftest.$ac_ext"
1735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736
*) ac_try_echo=$ac_try;;
1738
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739
$as_echo "$ac_try_echo"; } >&5
1740
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742
if test -s conftest.err; then
1743
grep -v '^ *+' conftest.err >conftest.er1
1744
cat conftest.er1 >&5
1745
mv -f conftest.er1 conftest.err
1747
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748
test $ac_status = 0; } > conftest.i && {
1749
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750
test ! -s conftest.err
1754
$as_echo "$as_me: failed program was:" >&5
1755
sed 's/^/| /' conftest.$ac_ext >&5
1759
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
as_fn_set_status $ac_retval
1764
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765
# -------------------------------------------------------
1766
# Tests whether HEADER exists and can be compiled using the include files in
1767
# INCLUDES, setting the cache variable VAR accordingly.
1768
ac_fn_c_check_header_compile ()
1770
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772
$as_echo_n "checking for $2... " >&6; }
1773
if eval \${$3+:} false; then :
1774
$as_echo_n "(cached) " >&6
1776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777
/* end confdefs.h. */
1781
if ac_fn_c_try_compile "$LINENO"; then :
1786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790
$as_echo "$ac_res" >&6; }
1791
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
} # ac_fn_c_check_header_compile
1795
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796
# -------------------------------------------------------
1797
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798
# the include files in INCLUDES and setting the cache variable VAR
1800
ac_fn_c_check_header_mongrel ()
1802
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803
if eval \${$3+:} false; then :
1804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805
$as_echo_n "checking for $2... " >&6; }
1806
if eval \${$3+:} false; then :
1807
$as_echo_n "(cached) " >&6
1810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811
$as_echo "$ac_res" >&6; }
1813
# Is the header compilable?
1814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815
$as_echo_n "checking $2 usability... " >&6; }
1816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817
/* end confdefs.h. */
1821
if ac_fn_c_try_compile "$LINENO"; then :
1822
ac_header_compiler=yes
1824
ac_header_compiler=no
1826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828
$as_echo "$ac_header_compiler" >&6; }
1830
# Is the header present?
1831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832
$as_echo_n "checking $2 presence... " >&6; }
1833
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834
/* end confdefs.h. */
1837
if ac_fn_c_try_cpp "$LINENO"; then :
1838
ac_header_preproc=yes
1840
ac_header_preproc=no
1842
rm -f conftest.err conftest.i conftest.$ac_ext
1843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844
$as_echo "$ac_header_preproc" >&6; }
1846
# So? What about this header?
1847
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868
$as_echo_n "checking for $2... " >&6; }
1869
if eval \${$3+:} false; then :
1870
$as_echo_n "(cached) " >&6
1872
eval "$3=\$ac_header_compiler"
1875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876
$as_echo "$ac_res" >&6; }
1878
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
} # ac_fn_c_check_header_mongrel
1882
# ac_fn_c_check_func LINENO FUNC VAR
1883
# ----------------------------------
1884
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1885
ac_fn_c_check_func ()
1887
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889
$as_echo_n "checking for $2... " >&6; }
1890
if eval \${$3+:} false; then :
1891
$as_echo_n "(cached) " >&6
1893
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894
/* end confdefs.h. */
1895
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897
#define $2 innocuous_$2
1899
/* System header to define __stub macros and hopefully few prototypes,
1900
which can conflict with char $2 (); below.
1901
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902
<limits.h> exists even on freestanding compilers. */
1905
# include <limits.h>
1907
# include <assert.h>
1912
/* Override any GCC internal prototype to avoid an error.
1913
Use char because int might match the return type of a GCC
1914
builtin and then its argument prototype would still apply. */
1919
/* The GNU C library defines this for functions which it implements
1920
to always fail with ENOSYS. Some functions are actually named
1921
something starting with __ and the normal name is an alias. */
1922
#if defined __stub_$2 || defined __stub___$2
1934
if ac_fn_c_try_link "$LINENO"; then :
1939
rm -f core conftest.err conftest.$ac_objext \
1940
conftest$ac_exeext conftest.$ac_ext
1943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944
$as_echo "$ac_res" >&6; }
1945
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
} # ac_fn_c_check_func
1948
cat >config.log <<_ACEOF
1949
This file contains any messages produced by compilers while
1950
running configure, to aid debugging if configure makes a mistake.
1952
It was created by pjproject $as_me 2.x, which was
1953
generated by GNU Autoconf 2.69. Invocation command line was
1965
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1974
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1975
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1976
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1978
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1979
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1980
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988
test -z "$as_dir" && as_dir=.
1989
$as_echo "PATH: $as_dir"
2005
# Keep a trace of the command line.
2006
# Strip out --no-create and --no-recursion so they do not pile up.
2007
# Strip out --silent because we don't want to record it for future runs.
2008
# Also quote any args containing shell meta-characters.
2009
# Make two passes to allow for proper duplicate-argument suppression.
2013
ac_must_keep_next=false
2019
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021
| -silent | --silent | --silen | --sile | --sil)
2024
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2027
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029
as_fn_append ac_configure_args1 " '$ac_arg'"
2030
if test $ac_must_keep_next = true; then
2031
ac_must_keep_next=false # Got value, back to normal.
2034
*=* | --config-cache | -C | -disable-* | --disable-* \
2035
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037
| -with-* | --with-* | -without-* | --without-* | --x)
2038
case "$ac_configure_args0 " in
2039
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2042
-* ) ac_must_keep_next=true ;;
2045
as_fn_append ac_configure_args " '$ac_arg'"
2050
{ ac_configure_args0=; unset ac_configure_args0;}
2051
{ ac_configure_args1=; unset ac_configure_args1;}
2053
# When interrupted or exit'd, cleanup temporary files, and complete
2054
# config.log. We remove comments because anyway the quotes in there
2055
# would cause problems or look ugly.
2056
# WARNING: Use '\'' to represent an apostrophe within the trap.
2057
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058
trap 'exit_status=$?
2059
# Save into config.log some information that might help in debugging.
2063
$as_echo "## ---------------- ##
2064
## Cache variables. ##
2065
## ---------------- ##"
2067
# The following way of writing the cache mishandles newlines in values,
2069
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070
eval ac_val=\$$ac_var
2074
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2078
_ | IFS | as_nl) ;; #(
2079
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080
*) { eval $ac_var=; unset $ac_var;} ;;
2085
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086
*${as_nl}ac_space=\ *)
2088
"s/'\''/'\''\\\\'\'''\''/g;
2089
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2092
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2099
$as_echo "## ----------------- ##
2100
## Output variables. ##
2101
## ----------------- ##"
2103
for ac_var in $ac_subst_vars
2105
eval ac_val=\$$ac_var
2107
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109
$as_echo "$ac_var='\''$ac_val'\''"
2113
if test -n "$ac_subst_files"; then
2114
$as_echo "## ------------------- ##
2115
## File substitutions. ##
2116
## ------------------- ##"
2118
for ac_var in $ac_subst_files
2120
eval ac_val=\$$ac_var
2122
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124
$as_echo "$ac_var='\''$ac_val'\''"
2129
if test -s confdefs.h; then
2130
$as_echo "## ----------- ##
2137
test "$ac_signal" != 0 &&
2138
$as_echo "$as_me: caught signal $ac_signal"
2139
$as_echo "$as_me: exit $exit_status"
2141
rm -f core *.core core.conftest.* &&
2142
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2145
for ac_signal in 1 2 13 15; do
2146
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2151
rm -f -r conftest* confdefs.h
2153
$as_echo "/* confdefs.h */" > confdefs.h
2155
# Predefined preprocessor variables.
2157
cat >>confdefs.h <<_ACEOF
2158
#define PACKAGE_NAME "$PACKAGE_NAME"
2161
cat >>confdefs.h <<_ACEOF
2162
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2165
cat >>confdefs.h <<_ACEOF
2166
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2169
cat >>confdefs.h <<_ACEOF
2170
#define PACKAGE_STRING "$PACKAGE_STRING"
2173
cat >>confdefs.h <<_ACEOF
2174
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2177
cat >>confdefs.h <<_ACEOF
2178
#define PACKAGE_URL "$PACKAGE_URL"
2182
# Let the site file select an alternate cache file if it wants to.
2183
# Prefer an explicitly selected file to automatically selected ones.
2186
if test -n "$CONFIG_SITE"; then
2187
# We do not want a PATH search for config.site.
2188
case $CONFIG_SITE in #((
2189
-*) ac_site_file1=./$CONFIG_SITE;;
2190
*/*) ac_site_file1=$CONFIG_SITE;;
2191
*) ac_site_file1=./$CONFIG_SITE;;
2193
elif test "x$prefix" != xNONE; then
2194
ac_site_file1=$prefix/share/config.site
2195
ac_site_file2=$prefix/etc/config.site
2197
ac_site_file1=$ac_default_prefix/share/config.site
2198
ac_site_file2=$ac_default_prefix/etc/config.site
2200
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2202
test "x$ac_site_file" = xNONE && continue
2203
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206
sed 's/^/| /' "$ac_site_file" >&5
2208
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210
as_fn_error $? "failed to load site script $ac_site_file
2211
See \`config.log' for more details" "$LINENO" 5; }
2215
if test -r "$cache_file"; then
2216
# Some versions of bash will fail to source /dev/null (special files
2217
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2218
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220
$as_echo "$as_me: loading cache $cache_file" >&6;}
2222
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2223
*) . "./$cache_file";;
2227
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228
$as_echo "$as_me: creating cache $cache_file" >&6;}
2232
# Check that the precious variables saved in the cache have kept the same
2234
ac_cache_corrupted=false
2235
for ac_var in $ac_precious_vars; do
2236
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237
eval ac_new_set=\$ac_env_${ac_var}_set
2238
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239
eval ac_new_val=\$ac_env_${ac_var}_value
2240
case $ac_old_set,$ac_new_set in
2242
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2244
ac_cache_corrupted=: ;;
2246
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2248
ac_cache_corrupted=: ;;
2251
if test "x$ac_old_val" != "x$ac_new_val"; then
2252
# differences in whitespace do not lead to failure.
2253
ac_old_val_w=`echo x $ac_old_val`
2254
ac_new_val_w=`echo x $ac_new_val`
2255
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258
ac_cache_corrupted=:
2260
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262
eval $ac_var=\$ac_old_val
2264
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2265
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2266
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2267
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2270
# Pass precious variables to config.status.
2271
if test "$ac_new_set" = set; then
2273
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2274
*) ac_arg=$ac_var=$ac_new_val ;;
2276
case " $ac_configure_args " in
2277
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2278
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2282
if $ac_cache_corrupted; then
2283
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2289
## -------------------- ##
2290
## Main body of script. ##
2291
## -------------------- ##
2294
ac_cpp='$CPP $CPPFLAGS'
2295
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2305
if test -f "$ac_dir/install-sh"; then
2307
ac_install_sh="$ac_aux_dir/install-sh -c"
2309
elif test -f "$ac_dir/install.sh"; then
2311
ac_install_sh="$ac_aux_dir/install.sh -c"
2313
elif test -f "$ac_dir/shtool"; then
2315
ac_install_sh="$ac_aux_dir/shtool install -c"
2319
if test -z "$ac_aux_dir"; then
2320
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2323
# These three variables are undocumented and unsupported,
2324
# and are intended to be withdrawn in a future Autoconf release.
2325
# They can cause serious problems if a builder's source tree is in a directory
2326
# whose full name contains unusual characters.
2327
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2328
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2329
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2332
# Make sure we can run config.sub.
2333
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2334
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2337
$as_echo_n "checking build system type... " >&6; }
2338
if ${ac_cv_build+:} false; then :
2339
$as_echo_n "(cached) " >&6
2341
ac_build_alias=$build_alias
2342
test "x$ac_build_alias" = x &&
2343
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2344
test "x$ac_build_alias" = x &&
2345
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2346
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2347
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2351
$as_echo "$ac_cv_build" >&6; }
2352
case $ac_cv_build in
2354
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2357
ac_save_IFS=$IFS; IFS='-'
2363
# Remember, the first character of IFS is used to create $*,
2364
# except with old shells:
2367
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2371
$as_echo_n "checking host system type... " >&6; }
2372
if ${ac_cv_host+:} false; then :
2373
$as_echo_n "(cached) " >&6
2375
if test "x$host_alias" = x; then
2376
ac_cv_host=$ac_cv_build
2378
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2379
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2384
$as_echo "$ac_cv_host" >&6; }
2387
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2390
ac_save_IFS=$IFS; IFS='-'
2396
# Remember, the first character of IFS is used to create $*,
2397
# except with old shells:
2400
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2404
$as_echo_n "checking target system type... " >&6; }
2405
if ${ac_cv_target+:} false; then :
2406
$as_echo_n "(cached) " >&6
2408
if test "x$target_alias" = x; then
2409
ac_cv_target=$ac_cv_host
2411
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2412
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2417
$as_echo "$ac_cv_target" >&6; }
2418
case $ac_cv_target in
2420
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2422
target=$ac_cv_target
2423
ac_save_IFS=$IFS; IFS='-'
2429
# Remember, the first character of IFS is used to create $*,
2430
# except with old shells:
2433
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2436
# The aliases save the names the user supplied, while $host etc.
2437
# will get canonicalized.
2438
test -n "$target_alias" &&
2439
test "$program_prefix$program_suffix$program_transform_name" = \
2441
program_prefix=${target_alias}-
2442
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"
2444
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 third_party/build/portaudio/os-auto.mak"
2448
if test "$CFLAGS" = ""; then
2454
CXXFLAGS="$CFLAGS $CXXFLAGS"
2457
ac_cpp='$CPP $CPPFLAGS'
2458
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
if test -n "$ac_tool_prefix"; then
2462
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2463
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465
$as_echo_n "checking for $ac_word... " >&6; }
2466
if ${ac_cv_prog_CC+:} false; then :
2467
$as_echo_n "(cached) " >&6
2469
if test -n "$CC"; then
2470
ac_cv_prog_CC="$CC" # Let the user override the test.
2472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476
test -z "$as_dir" && as_dir=.
2477
for ac_exec_ext in '' $ac_executable_extensions; do
2478
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2480
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490
if test -n "$CC"; then
2491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2492
$as_echo "$CC" >&6; }
2494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495
$as_echo "no" >&6; }
2500
if test -z "$ac_cv_prog_CC"; then
2502
# Extract the first word of "gcc", so it can be a program name with args.
2503
set dummy gcc; ac_word=$2
2504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505
$as_echo_n "checking for $ac_word... " >&6; }
2506
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2507
$as_echo_n "(cached) " >&6
2509
if test -n "$ac_ct_CC"; then
2510
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516
test -z "$as_dir" && as_dir=.
2517
for ac_exec_ext in '' $ac_executable_extensions; do
2518
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519
ac_cv_prog_ac_ct_CC="gcc"
2520
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2530
if test -n "$ac_ct_CC"; then
2531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2532
$as_echo "$ac_ct_CC" >&6; }
2534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535
$as_echo "no" >&6; }
2538
if test "x$ac_ct_CC" = x; then
2541
case $cross_compiling:$ac_tool_warned in
2543
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545
ac_tool_warned=yes ;;
2553
if test -z "$CC"; then
2554
if test -n "$ac_tool_prefix"; then
2555
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2556
set dummy ${ac_tool_prefix}cc; ac_word=$2
2557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558
$as_echo_n "checking for $ac_word... " >&6; }
2559
if ${ac_cv_prog_CC+:} false; then :
2560
$as_echo_n "(cached) " >&6
2562
if test -n "$CC"; then
2563
ac_cv_prog_CC="$CC" # Let the user override the test.
2565
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569
test -z "$as_dir" && as_dir=.
2570
for ac_exec_ext in '' $ac_executable_extensions; do
2571
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572
ac_cv_prog_CC="${ac_tool_prefix}cc"
2573
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583
if test -n "$CC"; then
2584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2585
$as_echo "$CC" >&6; }
2587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588
$as_echo "no" >&6; }
2594
if test -z "$CC"; then
2595
# Extract the first word of "cc", so it can be a program name with args.
2596
set dummy cc; ac_word=$2
2597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598
$as_echo_n "checking for $ac_word... " >&6; }
2599
if ${ac_cv_prog_CC+:} false; then :
2600
$as_echo_n "(cached) " >&6
2602
if test -n "$CC"; then
2603
ac_cv_prog_CC="$CC" # Let the user override the test.
2606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610
test -z "$as_dir" && as_dir=.
2611
for ac_exec_ext in '' $ac_executable_extensions; do
2612
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2614
ac_prog_rejected=yes
2618
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625
if test $ac_prog_rejected = yes; then
2626
# We found a bogon in the path, so make sure we never use it.
2627
set dummy $ac_cv_prog_CC
2629
if test $# != 0; then
2630
# We chose a different compiler from the bogus one.
2631
# However, it has the same basename, so the bogon will be chosen
2632
# first if we set CC to just the basename; use the full file name.
2634
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2640
if test -n "$CC"; then
2641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642
$as_echo "$CC" >&6; }
2644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645
$as_echo "no" >&6; }
2650
if test -z "$CC"; then
2651
if test -n "$ac_tool_prefix"; then
2652
for ac_prog in cl.exe
2654
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657
$as_echo_n "checking for $ac_word... " >&6; }
2658
if ${ac_cv_prog_CC+:} false; then :
2659
$as_echo_n "(cached) " >&6
2661
if test -n "$CC"; then
2662
ac_cv_prog_CC="$CC" # Let the user override the test.
2664
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668
test -z "$as_dir" && as_dir=.
2669
for ac_exec_ext in '' $ac_executable_extensions; do
2670
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682
if test -n "$CC"; then
2683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2684
$as_echo "$CC" >&6; }
2686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687
$as_echo "no" >&6; }
2691
test -n "$CC" && break
2694
if test -z "$CC"; then
2696
for ac_prog in cl.exe
2698
# Extract the first word of "$ac_prog", so it can be a program name with args.
2699
set dummy $ac_prog; ac_word=$2
2700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701
$as_echo_n "checking for $ac_word... " >&6; }
2702
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2703
$as_echo_n "(cached) " >&6
2705
if test -n "$ac_ct_CC"; then
2706
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712
test -z "$as_dir" && as_dir=.
2713
for ac_exec_ext in '' $ac_executable_extensions; do
2714
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715
ac_cv_prog_ac_ct_CC="$ac_prog"
2716
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726
if test -n "$ac_ct_CC"; then
2727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2728
$as_echo "$ac_ct_CC" >&6; }
2730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731
$as_echo "no" >&6; }
2735
test -n "$ac_ct_CC" && break
2738
if test "x$ac_ct_CC" = x; then
2741
case $cross_compiling:$ac_tool_warned in
2743
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745
ac_tool_warned=yes ;;
2754
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2755
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2756
as_fn_error $? "no acceptable C compiler found in \$PATH
2757
See \`config.log' for more details" "$LINENO" 5; }
2759
# Provide some information about the compiler.
2760
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2763
for ac_option in --version -v -V -qversion; do
2764
{ { ac_try="$ac_compiler $ac_option >&5"
2766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767
*) ac_try_echo=$ac_try;;
2769
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770
$as_echo "$ac_try_echo"; } >&5
2771
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2773
if test -s conftest.err; then
2775
... rest of stderr output deleted ...
2776
10q' conftest.err >conftest.er1
2777
cat conftest.er1 >&5
2779
rm -f conftest.er1 conftest.err
2780
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781
test $ac_status = 0; }
2784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785
/* end confdefs.h. */
2795
ac_clean_files_save=$ac_clean_files
2796
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2797
# Try to create an executable without -o first, disregard a.out.
2798
# It will help us diagnose broken compilers, and finding out an intuition
2800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2801
$as_echo_n "checking whether the C compiler works... " >&6; }
2802
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2804
# The possible output files:
2805
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2808
for ac_file in $ac_files
2811
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2812
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817
if { { ac_try="$ac_link_default"
2819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820
*) ac_try_echo=$ac_try;;
2822
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823
$as_echo "$ac_try_echo"; } >&5
2824
(eval "$ac_link_default") 2>&5
2826
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827
test $ac_status = 0; }; then :
2828
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2831
# so that the user can short-circuit this test for compilers unknown to
2833
for ac_file in $ac_files ''
2835
test -f "$ac_file" || continue
2837
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2840
# We found the default executable, but exeext='' is most
2844
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848
# We set ac_cv_exeext here because the later test for it is not
2849
# safe: cross compilers may not add the suffix if given an `-o'
2850
# argument, so we may need to know it at that point already.
2851
# Even if this section looks crufty: it has the advantage of
2858
test "$ac_cv_exeext" = no && ac_cv_exeext=
2863
if test -z "$ac_file"; then :
2864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865
$as_echo "no" >&6; }
2866
$as_echo "$as_me: failed program was:" >&5
2867
sed 's/^/| /' conftest.$ac_ext >&5
2869
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871
as_fn_error 77 "C compiler cannot create executables
2872
See \`config.log' for more details" "$LINENO" 5; }
2874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2875
$as_echo "yes" >&6; }
2877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2878
$as_echo_n "checking for C compiler default output file name... " >&6; }
2879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2880
$as_echo "$ac_file" >&6; }
2881
ac_exeext=$ac_cv_exeext
2883
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2884
ac_clean_files=$ac_clean_files_save
2885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2886
$as_echo_n "checking for suffix of executables... " >&6; }
2887
if { { ac_try="$ac_link"
2889
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890
*) ac_try_echo=$ac_try;;
2892
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893
$as_echo "$ac_try_echo"; } >&5
2894
(eval "$ac_link") 2>&5
2896
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897
test $ac_status = 0; }; then :
2898
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2899
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2900
# work properly (i.e., refer to `conftest.exe'), while it won't with
2902
for ac_file in conftest.exe conftest conftest.*; do
2903
test -f "$ac_file" || continue
2905
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2906
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2912
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2915
See \`config.log' for more details" "$LINENO" 5; }
2917
rm -f conftest conftest$ac_cv_exeext
2918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2919
$as_echo "$ac_cv_exeext" >&6; }
2921
rm -f conftest.$ac_ext
2922
EXEEXT=$ac_cv_exeext
2924
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925
/* end confdefs.h. */
2930
FILE *f = fopen ("conftest.out", "w");
2931
return ferror (f) || fclose (f) != 0;
2937
ac_clean_files="$ac_clean_files conftest.out"
2938
# Check that the compiler produces executables we can run. If not, either
2939
# the compiler is broken, or we cross compile.
2940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2941
$as_echo_n "checking whether we are cross compiling... " >&6; }
2942
if test "$cross_compiling" != yes; then
2943
{ { ac_try="$ac_link"
2945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946
*) ac_try_echo=$ac_try;;
2948
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949
$as_echo "$ac_try_echo"; } >&5
2950
(eval "$ac_link") 2>&5
2952
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953
test $ac_status = 0; }
2954
if { ac_try='./conftest$ac_cv_exeext'
2955
{ { case "(($ac_try" in
2956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957
*) ac_try_echo=$ac_try;;
2959
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2960
$as_echo "$ac_try_echo"; } >&5
2961
(eval "$ac_try") 2>&5
2963
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964
test $ac_status = 0; }; }; then
2967
if test "$cross_compiling" = maybe; then
2970
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972
as_fn_error $? "cannot run C compiled programs.
2973
If you meant to cross compile, use \`--host'.
2974
See \`config.log' for more details" "$LINENO" 5; }
2978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2979
$as_echo "$cross_compiling" >&6; }
2981
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2982
ac_clean_files=$ac_clean_files_save
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2984
$as_echo_n "checking for suffix of object files... " >&6; }
2985
if ${ac_cv_objext+:} false; then :
2986
$as_echo_n "(cached) " >&6
2988
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989
/* end confdefs.h. */
2999
rm -f conftest.o conftest.obj
3000
if { { ac_try="$ac_compile"
3002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003
*) ac_try_echo=$ac_try;;
3005
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006
$as_echo "$ac_try_echo"; } >&5
3007
(eval "$ac_compile") 2>&5
3009
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010
test $ac_status = 0; }; then :
3011
for ac_file in conftest.o conftest.obj conftest.*; do
3012
test -f "$ac_file" || continue;
3014
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3015
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3020
$as_echo "$as_me: failed program was:" >&5
3021
sed 's/^/| /' conftest.$ac_ext >&5
3023
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025
as_fn_error $? "cannot compute suffix of object files: cannot compile
3026
See \`config.log' for more details" "$LINENO" 5; }
3028
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3031
$as_echo "$ac_cv_objext" >&6; }
3032
OBJEXT=$ac_cv_objext
3034
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3035
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3036
if ${ac_cv_c_compiler_gnu+:} false; then :
3037
$as_echo_n "(cached) " >&6
3039
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040
/* end confdefs.h. */
3053
if ac_fn_c_try_compile "$LINENO"; then :
3058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3063
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3064
if test $ac_compiler_gnu = yes; then
3069
ac_test_CFLAGS=${CFLAGS+set}
3070
ac_save_CFLAGS=$CFLAGS
3071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3072
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3073
if ${ac_cv_prog_cc_g+:} false; then :
3074
$as_echo_n "(cached) " >&6
3076
ac_save_c_werror_flag=$ac_c_werror_flag
3077
ac_c_werror_flag=yes
3080
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081
/* end confdefs.h. */
3091
if ac_fn_c_try_compile "$LINENO"; then :
3095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096
/* end confdefs.h. */
3106
if ac_fn_c_try_compile "$LINENO"; then :
3109
ac_c_werror_flag=$ac_save_c_werror_flag
3111
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112
/* end confdefs.h. */
3122
if ac_fn_c_try_compile "$LINENO"; then :
3125
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130
ac_c_werror_flag=$ac_save_c_werror_flag
3132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3133
$as_echo "$ac_cv_prog_cc_g" >&6; }
3134
if test "$ac_test_CFLAGS" = set; then
3135
CFLAGS=$ac_save_CFLAGS
3136
elif test $ac_cv_prog_cc_g = yes; then
3137
if test "$GCC" = yes; then
3143
if test "$GCC" = yes; then
3149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3150
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3151
if ${ac_cv_prog_cc_c89+:} false; then :
3152
$as_echo_n "(cached) " >&6
3154
ac_cv_prog_cc_c89=no
3156
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157
/* end confdefs.h. */
3161
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3162
struct buf { int x; };
3163
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3164
static char *e (p, i)
3170
static char *f (char * (*g) (char **, int), char **p, ...)
3175
s = g (p, va_arg (v,int));
3180
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3181
function prototypes and stuff, but not '\xHH' hex character constants.
3182
These don't provoke an error unfortunately, instead are silently treated
3183
as 'x'. The following induces an error, until -std is added to get
3184
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3185
array size at least. It's necessary to write '\x00'==0 to get something
3186
that's true only with -std. */
3187
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3190
inside strings and character constants. */
3192
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3194
int test (int i, double x);
3195
struct s1 {int (*f) (int a);};
3196
struct s2 {int (*f) (double a);};
3197
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3203
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3208
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3209
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3211
CC="$ac_save_CC $ac_arg"
3212
if ac_fn_c_try_compile "$LINENO"; then :
3213
ac_cv_prog_cc_c89=$ac_arg
3215
rm -f core conftest.err conftest.$ac_objext
3216
test "x$ac_cv_prog_cc_c89" != "xno" && break
3218
rm -f conftest.$ac_ext
3223
case "x$ac_cv_prog_cc_c89" in
3225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3226
$as_echo "none needed" >&6; } ;;
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3229
$as_echo "unsupported" >&6; } ;;
3231
CC="$CC $ac_cv_prog_cc_c89"
3232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3233
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3235
if test "x$ac_cv_prog_cc_c89" != xno; then :
3240
ac_cpp='$CPP $CPPFLAGS'
3241
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246
ac_cpp='$CXXCPP $CPPFLAGS'
3247
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3250
if test -z "$CXX"; then
3251
if test -n "$CCC"; then
3254
if test -n "$ac_tool_prefix"; then
3255
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3257
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3258
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260
$as_echo_n "checking for $ac_word... " >&6; }
3261
if ${ac_cv_prog_CXX+:} false; then :
3262
$as_echo_n "(cached) " >&6
3264
if test -n "$CXX"; then
3265
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271
test -z "$as_dir" && as_dir=.
3272
for ac_exec_ext in '' $ac_executable_extensions; do
3273
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3275
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285
if test -n "$CXX"; then
3286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3287
$as_echo "$CXX" >&6; }
3289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290
$as_echo "no" >&6; }
3294
test -n "$CXX" && break
3297
if test -z "$CXX"; then
3299
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3301
# Extract the first word of "$ac_prog", so it can be a program name with args.
3302
set dummy $ac_prog; ac_word=$2
3303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304
$as_echo_n "checking for $ac_word... " >&6; }
3305
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3306
$as_echo_n "(cached) " >&6
3308
if test -n "$ac_ct_CXX"; then
3309
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315
test -z "$as_dir" && as_dir=.
3316
for ac_exec_ext in '' $ac_executable_extensions; do
3317
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318
ac_cv_prog_ac_ct_CXX="$ac_prog"
3319
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3329
if test -n "$ac_ct_CXX"; then
3330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3331
$as_echo "$ac_ct_CXX" >&6; }
3333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334
$as_echo "no" >&6; }
3338
test -n "$ac_ct_CXX" && break
3341
if test "x$ac_ct_CXX" = x; then
3344
case $cross_compiling:$ac_tool_warned in
3346
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348
ac_tool_warned=yes ;;
3356
# Provide some information about the compiler.
3357
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3360
for ac_option in --version -v -V -qversion; do
3361
{ { ac_try="$ac_compiler $ac_option >&5"
3363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364
*) ac_try_echo=$ac_try;;
3366
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367
$as_echo "$ac_try_echo"; } >&5
3368
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3370
if test -s conftest.err; then
3372
... rest of stderr output deleted ...
3373
10q' conftest.err >conftest.er1
3374
cat conftest.er1 >&5
3376
rm -f conftest.er1 conftest.err
3377
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378
test $ac_status = 0; }
3381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3382
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3383
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3384
$as_echo_n "(cached) " >&6
3386
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387
/* end confdefs.h. */
3400
if ac_fn_cxx_try_compile "$LINENO"; then :
3405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3410
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3411
if test $ac_compiler_gnu = yes; then
3416
ac_test_CXXFLAGS=${CXXFLAGS+set}
3417
ac_save_CXXFLAGS=$CXXFLAGS
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3419
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3420
if ${ac_cv_prog_cxx_g+:} false; then :
3421
$as_echo_n "(cached) " >&6
3423
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3424
ac_cxx_werror_flag=yes
3427
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428
/* end confdefs.h. */
3438
if ac_fn_cxx_try_compile "$LINENO"; then :
3439
ac_cv_prog_cxx_g=yes
3442
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443
/* end confdefs.h. */
3453
if ac_fn_cxx_try_compile "$LINENO"; then :
3456
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3458
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459
/* end confdefs.h. */
3469
if ac_fn_cxx_try_compile "$LINENO"; then :
3470
ac_cv_prog_cxx_g=yes
3472
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3480
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3481
if test "$ac_test_CXXFLAGS" = set; then
3482
CXXFLAGS=$ac_save_CXXFLAGS
3483
elif test $ac_cv_prog_cxx_g = yes; then
3484
if test "$GXX" = yes; then
3490
if test "$GXX" = yes; then
3497
ac_cpp='$CPP $CPPFLAGS'
3498
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503
ac_cpp='$CPP $CPPFLAGS'
3504
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
if test -z "$CROSS_COMPILE"; then
3510
CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3513
if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
3515
if test "$LD" = ""; then LD="$CC"; fi
3517
if test "$LDOUT" = ""; then LDOUT="-o "; fi
3519
if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
3521
if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3523
if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3525
if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3527
if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
3529
if test "$CC_INC" = ""; then CC_INC="-I"; fi
3531
if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3533
if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3535
if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3544
*mingw* | *cygw* | *win32* | *w32* )
3545
if pwd -W 2&> /dev/null; then
3548
# We're probably cross-compiling mingw on Linux
3559
*mingw* | *cygw* | *win32* | *w32* )
3563
ac_shlib_suffix=dylib
3571
if test "$build" = "$host"; then
3574
ac_cross_compile=${host_orig}-
3578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3579
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3580
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
3581
$as_echo_n "(cached) " >&6
3583
ac_check_lib_save_LIBS=$LIBS
3584
LIBS="-lpthread $LIBS"
3585
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586
/* end confdefs.h. */
3588
/* Override any GCC internal prototype to avoid an error.
3589
Use char because int might match the return type of a GCC
3590
builtin and then its argument prototype would still apply. */
3594
char pthread_create ();
3598
return pthread_create ();
3603
if ac_fn_c_try_link "$LINENO"; then :
3604
ac_cv_lib_pthread_pthread_create=yes
3606
ac_cv_lib_pthread_pthread_create=no
3608
rm -f core conftest.err conftest.$ac_objext \
3609
conftest$ac_exeext conftest.$ac_ext
3610
LIBS=$ac_check_lib_save_LIBS
3612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3613
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3614
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
3615
cat >>confdefs.h <<_ACEOF
3616
#define HAVE_LIBPTHREAD 1
3619
LIBS="-lpthread $LIBS"
3623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3624
$as_echo_n "checking for puts in -lwsock32... " >&6; }
3625
if ${ac_cv_lib_wsock32_puts+:} false; then :
3626
$as_echo_n "(cached) " >&6
3628
ac_check_lib_save_LIBS=$LIBS
3629
LIBS="-lwsock32 $LIBS"
3630
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631
/* end confdefs.h. */
3633
/* Override any GCC internal prototype to avoid an error.
3634
Use char because int might match the return type of a GCC
3635
builtin and then its argument prototype would still apply. */
3648
if ac_fn_c_try_link "$LINENO"; then :
3649
ac_cv_lib_wsock32_puts=yes
3651
ac_cv_lib_wsock32_puts=no
3653
rm -f core conftest.err conftest.$ac_objext \
3654
conftest$ac_exeext conftest.$ac_ext
3655
LIBS=$ac_check_lib_save_LIBS
3657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3658
$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3659
if test "x$ac_cv_lib_wsock32_puts" = xyes; then :
3660
cat >>confdefs.h <<_ACEOF
3661
#define HAVE_LIBWSOCK32 1
3664
LIBS="-lwsock32 $LIBS"
3668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3669
$as_echo_n "checking for puts in -lws2_32... " >&6; }
3670
if ${ac_cv_lib_ws2_32_puts+:} false; then :
3671
$as_echo_n "(cached) " >&6
3673
ac_check_lib_save_LIBS=$LIBS
3674
LIBS="-lws2_32 $LIBS"
3675
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676
/* end confdefs.h. */
3678
/* Override any GCC internal prototype to avoid an error.
3679
Use char because int might match the return type of a GCC
3680
builtin and then its argument prototype would still apply. */
3693
if ac_fn_c_try_link "$LINENO"; then :
3694
ac_cv_lib_ws2_32_puts=yes
3696
ac_cv_lib_ws2_32_puts=no
3698
rm -f core conftest.err conftest.$ac_objext \
3699
conftest$ac_exeext conftest.$ac_ext
3700
LIBS=$ac_check_lib_save_LIBS
3702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3703
$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3704
if test "x$ac_cv_lib_ws2_32_puts" = xyes; then :
3705
cat >>confdefs.h <<_ACEOF
3706
#define HAVE_LIBWS2_32 1
3709
LIBS="-lws2_32 $LIBS"
3713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3714
$as_echo_n "checking for puts in -lole32... " >&6; }
3715
if ${ac_cv_lib_ole32_puts+:} false; then :
3716
$as_echo_n "(cached) " >&6
3718
ac_check_lib_save_LIBS=$LIBS
3719
LIBS="-lole32 $LIBS"
3720
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721
/* end confdefs.h. */
3723
/* Override any GCC internal prototype to avoid an error.
3724
Use char because int might match the return type of a GCC
3725
builtin and then its argument prototype would still apply. */
3738
if ac_fn_c_try_link "$LINENO"; then :
3739
ac_cv_lib_ole32_puts=yes
3741
ac_cv_lib_ole32_puts=no
3743
rm -f core conftest.err conftest.$ac_objext \
3744
conftest$ac_exeext conftest.$ac_ext
3745
LIBS=$ac_check_lib_save_LIBS
3747
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3748
$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3749
if test "x$ac_cv_lib_ole32_puts" = xyes; then :
3750
cat >>confdefs.h <<_ACEOF
3751
#define HAVE_LIBOLE32 1
3754
LIBS="-lole32 $LIBS"
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3759
$as_echo_n "checking for puts in -lwinmm... " >&6; }
3760
if ${ac_cv_lib_winmm_puts+:} false; then :
3761
$as_echo_n "(cached) " >&6
3763
ac_check_lib_save_LIBS=$LIBS
3764
LIBS="-lwinmm $LIBS"
3765
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766
/* end confdefs.h. */
3768
/* Override any GCC internal prototype to avoid an error.
3769
Use char because int might match the return type of a GCC
3770
builtin and then its argument prototype would still apply. */
3783
if ac_fn_c_try_link "$LINENO"; then :
3784
ac_cv_lib_winmm_puts=yes
3786
ac_cv_lib_winmm_puts=no
3788
rm -f core conftest.err conftest.$ac_objext \
3789
conftest$ac_exeext conftest.$ac_ext
3790
LIBS=$ac_check_lib_save_LIBS
3792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3793
$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3794
if test "x$ac_cv_lib_winmm_puts" = xyes; then :
3795
cat >>confdefs.h <<_ACEOF
3796
#define HAVE_LIBWINMM 1
3799
LIBS="-lwinmm $LIBS"
3803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3804
$as_echo_n "checking for puts in -lsocket... " >&6; }
3805
if ${ac_cv_lib_socket_puts+:} false; then :
3806
$as_echo_n "(cached) " >&6
3808
ac_check_lib_save_LIBS=$LIBS
3809
LIBS="-lsocket $LIBS"
3810
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811
/* end confdefs.h. */
3813
/* Override any GCC internal prototype to avoid an error.
3814
Use char because int might match the return type of a GCC
3815
builtin and then its argument prototype would still apply. */
3828
if ac_fn_c_try_link "$LINENO"; then :
3829
ac_cv_lib_socket_puts=yes
3831
ac_cv_lib_socket_puts=no
3833
rm -f core conftest.err conftest.$ac_objext \
3834
conftest$ac_exeext conftest.$ac_ext
3835
LIBS=$ac_check_lib_save_LIBS
3837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3838
$as_echo "$ac_cv_lib_socket_puts" >&6; }
3839
if test "x$ac_cv_lib_socket_puts" = xyes; then :
3840
cat >>confdefs.h <<_ACEOF
3841
#define HAVE_LIBSOCKET 1
3844
LIBS="-lsocket $LIBS"
3848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3849
$as_echo_n "checking for puts in -lrt... " >&6; }
3850
if ${ac_cv_lib_rt_puts+:} false; then :
3851
$as_echo_n "(cached) " >&6
3853
ac_check_lib_save_LIBS=$LIBS
3855
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856
/* end confdefs.h. */
3858
/* Override any GCC internal prototype to avoid an error.
3859
Use char because int might match the return type of a GCC
3860
builtin and then its argument prototype would still apply. */
3873
if ac_fn_c_try_link "$LINENO"; then :
3874
ac_cv_lib_rt_puts=yes
3876
ac_cv_lib_rt_puts=no
3878
rm -f core conftest.err conftest.$ac_objext \
3879
conftest$ac_exeext conftest.$ac_ext
3880
LIBS=$ac_check_lib_save_LIBS
3882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3883
$as_echo "$ac_cv_lib_rt_puts" >&6; }
3884
if test "x$ac_cv_lib_rt_puts" = xyes; then :
3885
cat >>confdefs.h <<_ACEOF
3886
#define HAVE_LIBRT 1
3893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3894
$as_echo_n "checking for puts in -lnsl... " >&6; }
3895
if ${ac_cv_lib_nsl_puts+:} false; then :
3896
$as_echo_n "(cached) " >&6
3898
ac_check_lib_save_LIBS=$LIBS
3900
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901
/* end confdefs.h. */
3903
/* Override any GCC internal prototype to avoid an error.
3904
Use char because int might match the return type of a GCC
3905
builtin and then its argument prototype would still apply. */
3918
if ac_fn_c_try_link "$LINENO"; then :
3919
ac_cv_lib_nsl_puts=yes
3921
ac_cv_lib_nsl_puts=no
3923
rm -f core conftest.err conftest.$ac_objext \
3924
conftest$ac_exeext conftest.$ac_ext
3925
LIBS=$ac_check_lib_save_LIBS
3927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3928
$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3929
if test "x$ac_cv_lib_nsl_puts" = xyes; then :
3930
cat >>confdefs.h <<_ACEOF
3931
#define HAVE_LIBNSL 1
3938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3939
$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3940
if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
3941
$as_echo_n "(cached) " >&6
3943
ac_check_lib_save_LIBS=$LIBS
3945
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946
/* end confdefs.h. */
3948
/* Override any GCC internal prototype to avoid an error.
3949
Use char because int might match the return type of a GCC
3950
builtin and then its argument prototype would still apply. */
3954
char uuid_generate ();
3958
return uuid_generate ();
3963
if ac_fn_c_try_link "$LINENO"; then :
3964
ac_cv_lib_uuid_uuid_generate=yes
3966
ac_cv_lib_uuid_uuid_generate=no
3968
rm -f core conftest.err conftest.$ac_objext \
3969
conftest$ac_exeext conftest.$ac_ext
3970
LIBS=$ac_check_lib_save_LIBS
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3973
$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3974
if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
3975
cat >>confdefs.h <<_ACEOF
3976
#define HAVE_LIBUUID 1
3983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3984
$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3985
if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
3986
$as_echo_n "(cached) " >&6
3988
ac_check_lib_save_LIBS=$LIBS
3990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991
/* end confdefs.h. */
3993
/* Override any GCC internal prototype to avoid an error.
3994
Use char because int might match the return type of a GCC
3995
builtin and then its argument prototype would still apply. */
3999
char uuid_generate ();
4003
return uuid_generate ();
4008
if ac_fn_c_try_link "$LINENO"; then :
4009
ac_cv_lib_uuid_uuid_generate=yes
4011
ac_cv_lib_uuid_uuid_generate=no
4013
rm -f core conftest.err conftest.$ac_objext \
4014
conftest$ac_exeext conftest.$ac_ext
4015
LIBS=$ac_check_lib_save_LIBS
4017
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4018
$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4019
if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
4025
$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
4026
cat >>confdefs.h <<_ACEOF
4027
#define PJ_M_NAME "$target_cpu"
4031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
4032
$as_echo_n "checking memory alignment... " >&6; }
4034
sparc64-* | ia64-* | x86_64-* )
4035
$as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
4038
$as_echo "8 bytes" >&6; }
4041
$as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
4043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
4044
$as_echo "4 bytes (default)" >&6; }
4050
ac_cpp='$CPP $CPPFLAGS'
4051
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4055
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4056
# On Suns, sometimes $CPP names a directory.
4057
if test -n "$CPP" && test -d "$CPP"; then
4060
if test -z "$CPP"; then
4061
if ${ac_cv_prog_CPP+:} false; then :
4062
$as_echo_n "(cached) " >&6
4064
# Double quotes because CPP needs to be expanded
4065
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4068
for ac_c_preproc_warn_flag in '' yes
4070
# Use a header file that comes with gcc, so configuring glibc
4071
# with a fresh cross-compiler works.
4072
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4073
# <limits.h> exists even on freestanding compilers.
4074
# On the NeXT, cc -E runs the code through the compiler's parser,
4075
# not just through cpp. "Syntax error" is here to catch this case.
4076
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077
/* end confdefs.h. */
4079
# include <limits.h>
4081
# include <assert.h>
4085
if ac_fn_c_try_cpp "$LINENO"; then :
4088
# Broken: fails on valid input.
4091
rm -f conftest.err conftest.i conftest.$ac_ext
4093
# OK, works on sane cases. Now check whether nonexistent headers
4094
# can be detected and how.
4095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096
/* end confdefs.h. */
4097
#include <ac_nonexistent.h>
4099
if ac_fn_c_try_cpp "$LINENO"; then :
4100
# Broken: success on invalid input.
4103
# Passes both tests.
4107
rm -f conftest.err conftest.i conftest.$ac_ext
4110
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4111
rm -f conftest.i conftest.err conftest.$ac_ext
4112
if $ac_preproc_ok; then :
4124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4125
$as_echo "$CPP" >&6; }
4127
for ac_c_preproc_warn_flag in '' yes
4129
# Use a header file that comes with gcc, so configuring glibc
4130
# with a fresh cross-compiler works.
4131
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4132
# <limits.h> exists even on freestanding compilers.
4133
# On the NeXT, cc -E runs the code through the compiler's parser,
4134
# not just through cpp. "Syntax error" is here to catch this case.
4135
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136
/* end confdefs.h. */
4138
# include <limits.h>
4140
# include <assert.h>
4144
if ac_fn_c_try_cpp "$LINENO"; then :
4147
# Broken: fails on valid input.
4150
rm -f conftest.err conftest.i conftest.$ac_ext
4152
# OK, works on sane cases. Now check whether nonexistent headers
4153
# can be detected and how.
4154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155
/* end confdefs.h. */
4156
#include <ac_nonexistent.h>
4158
if ac_fn_c_try_cpp "$LINENO"; then :
4159
# Broken: success on invalid input.
4162
# Passes both tests.
4166
rm -f conftest.err conftest.i conftest.$ac_ext
4169
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4170
rm -f conftest.i conftest.err conftest.$ac_ext
4171
if $ac_preproc_ok; then :
4174
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4177
See \`config.log' for more details" "$LINENO" 5; }
4181
ac_cpp='$CPP $CPPFLAGS'
4182
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4188
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4189
if ${ac_cv_path_GREP+:} false; then :
4190
$as_echo_n "(cached) " >&6
4192
if test -z "$GREP"; then
4193
ac_path_GREP_found=false
4194
# Loop through the user's path and test for each of PROGNAME-LIST
4195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4199
test -z "$as_dir" && as_dir=.
4200
for ac_prog in grep ggrep; do
4201
for ac_exec_ext in '' $ac_executable_extensions; do
4202
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4203
as_fn_executable_p "$ac_path_GREP" || continue
4204
# Check for GNU ac_path_GREP and select it if it is found.
4205
# Check for GNU $ac_path_GREP
4206
case `"$ac_path_GREP" --version 2>&1` in
4208
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4211
$as_echo_n 0123456789 >"conftest.in"
4214
cat "conftest.in" "conftest.in" >"conftest.tmp"
4215
mv "conftest.tmp" "conftest.in"
4216
cp "conftest.in" "conftest.nl"
4217
$as_echo 'GREP' >> "conftest.nl"
4218
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4220
as_fn_arith $ac_count + 1 && ac_count=$as_val
4221
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4222
# Best one so far, save it but keep looking for a better one
4223
ac_cv_path_GREP="$ac_path_GREP"
4224
ac_path_GREP_max=$ac_count
4226
# 10*(2^10) chars as input seems more than enough
4227
test $ac_count -gt 10 && break
4229
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232
$ac_path_GREP_found && break 3
4237
if test -z "$ac_cv_path_GREP"; then
4238
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4241
ac_cv_path_GREP=$GREP
4245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4246
$as_echo "$ac_cv_path_GREP" >&6; }
4247
GREP="$ac_cv_path_GREP"
4250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4251
$as_echo_n "checking for egrep... " >&6; }
4252
if ${ac_cv_path_EGREP+:} false; then :
4253
$as_echo_n "(cached) " >&6
4255
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4256
then ac_cv_path_EGREP="$GREP -E"
4258
if test -z "$EGREP"; then
4259
ac_path_EGREP_found=false
4260
# Loop through the user's path and test for each of PROGNAME-LIST
4261
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4265
test -z "$as_dir" && as_dir=.
4266
for ac_prog in egrep; do
4267
for ac_exec_ext in '' $ac_executable_extensions; do
4268
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4269
as_fn_executable_p "$ac_path_EGREP" || continue
4270
# Check for GNU ac_path_EGREP and select it if it is found.
4271
# Check for GNU $ac_path_EGREP
4272
case `"$ac_path_EGREP" --version 2>&1` in
4274
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4277
$as_echo_n 0123456789 >"conftest.in"
4280
cat "conftest.in" "conftest.in" >"conftest.tmp"
4281
mv "conftest.tmp" "conftest.in"
4282
cp "conftest.in" "conftest.nl"
4283
$as_echo 'EGREP' >> "conftest.nl"
4284
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286
as_fn_arith $ac_count + 1 && ac_count=$as_val
4287
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4288
# Best one so far, save it but keep looking for a better one
4289
ac_cv_path_EGREP="$ac_path_EGREP"
4290
ac_path_EGREP_max=$ac_count
4292
# 10*(2^10) chars as input seems more than enough
4293
test $ac_count -gt 10 && break
4295
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4298
$ac_path_EGREP_found && break 3
4303
if test -z "$ac_cv_path_EGREP"; then
4304
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4307
ac_cv_path_EGREP=$EGREP
4312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4313
$as_echo "$ac_cv_path_EGREP" >&6; }
4314
EGREP="$ac_cv_path_EGREP"
4317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4318
$as_echo_n "checking for ANSI C header files... " >&6; }
4319
if ${ac_cv_header_stdc+:} false; then :
4320
$as_echo_n "(cached) " >&6
4322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323
/* end confdefs.h. */
4337
if ac_fn_c_try_compile "$LINENO"; then :
4338
ac_cv_header_stdc=yes
4340
ac_cv_header_stdc=no
4342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344
if test $ac_cv_header_stdc = yes; then
4345
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4346
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347
/* end confdefs.h. */
4351
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352
$EGREP "memchr" >/dev/null 2>&1; then :
4355
ac_cv_header_stdc=no
4361
if test $ac_cv_header_stdc = yes; then
4362
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4363
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364
/* end confdefs.h. */
4368
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4369
$EGREP "free" >/dev/null 2>&1; then :
4372
ac_cv_header_stdc=no
4378
if test $ac_cv_header_stdc = yes; then
4379
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4380
if test "$cross_compiling" = yes; then :
4383
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384
/* end confdefs.h. */
4387
#if ((' ' & 0x0FF) == 0x020)
4388
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4389
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4391
# define ISLOWER(c) \
4392
(('a' <= (c) && (c) <= 'i') \
4393
|| ('j' <= (c) && (c) <= 'r') \
4394
|| ('s' <= (c) && (c) <= 'z'))
4395
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4398
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4403
for (i = 0; i < 256; i++)
4404
if (XOR (islower (i), ISLOWER (i))
4405
|| toupper (i) != TOUPPER (i))
4410
if ac_fn_c_try_run "$LINENO"; then :
4413
ac_cv_header_stdc=no
4415
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4416
conftest.$ac_objext conftest.beam conftest.$ac_ext
4421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4422
$as_echo "$ac_cv_header_stdc" >&6; }
4423
if test $ac_cv_header_stdc = yes; then
4425
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4429
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4430
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4431
inttypes.h stdint.h unistd.h
4433
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4436
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4437
cat >>confdefs.h <<_ACEOF
4438
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4447
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4448
if ${ac_cv_c_bigendian+:} false; then :
4449
$as_echo_n "(cached) " >&6
4451
ac_cv_c_bigendian=unknown
4452
# See if we're dealing with a universal compiler.
4453
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454
/* end confdefs.h. */
4455
#ifndef __APPLE_CC__
4456
not a universal capable compiler
4461
if ac_fn_c_try_compile "$LINENO"; then :
4463
# Check for potential -arch flags. It is not universal unless
4464
# there are at least two -arch flags with different values.
4467
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4468
if test -n "$ac_prev"; then
4470
i?86 | x86_64 | ppc | ppc64)
4471
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4474
ac_cv_c_bigendian=universal
4480
elif test "x$ac_word" = "x-arch"; then
4485
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486
if test $ac_cv_c_bigendian = unknown; then
4487
# See if sys/param.h defines the BYTE_ORDER macro.
4488
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489
/* end confdefs.h. */
4490
#include <sys/types.h>
4491
#include <sys/param.h>
4496
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4497
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4506
if ac_fn_c_try_compile "$LINENO"; then :
4507
# It does; now see whether it defined to BIG_ENDIAN or not.
4508
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509
/* end confdefs.h. */
4510
#include <sys/types.h>
4511
#include <sys/param.h>
4516
#if BYTE_ORDER != BIG_ENDIAN
4524
if ac_fn_c_try_compile "$LINENO"; then :
4525
ac_cv_c_bigendian=yes
4527
ac_cv_c_bigendian=no
4529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533
if test $ac_cv_c_bigendian = unknown; then
4534
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4535
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536
/* end confdefs.h. */
4542
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4550
if ac_fn_c_try_compile "$LINENO"; then :
4551
# It does; now see whether it defined to _BIG_ENDIAN or not.
4552
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553
/* end confdefs.h. */
4567
if ac_fn_c_try_compile "$LINENO"; then :
4568
ac_cv_c_bigendian=yes
4570
ac_cv_c_bigendian=no
4572
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576
if test $ac_cv_c_bigendian = unknown; then
4577
# Compile a test program.
4578
if test "$cross_compiling" = yes; then :
4579
# Try to guess by grepping values from an object file.
4580
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581
/* end confdefs.h. */
4582
short int ascii_mm[] =
4583
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4584
short int ascii_ii[] =
4585
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4586
int use_ascii (int i) {
4587
return ascii_mm[i] + ascii_ii[i];
4589
short int ebcdic_ii[] =
4590
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4591
short int ebcdic_mm[] =
4592
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4593
int use_ebcdic (int i) {
4594
return ebcdic_mm[i] + ebcdic_ii[i];
4601
return use_ascii (foo) == use_ebcdic (foo);
4606
if ac_fn_c_try_compile "$LINENO"; then :
4607
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4608
ac_cv_c_bigendian=yes
4610
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4611
if test "$ac_cv_c_bigendian" = unknown; then
4612
ac_cv_c_bigendian=no
4614
# finding both strings is unlikely to happen, but who knows?
4615
ac_cv_c_bigendian=unknown
4619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622
/* end confdefs.h. */
4623
$ac_includes_default
4628
/* Are we little or big endian? From Harbison&Steele. */
4632
char c[sizeof (long int)];
4635
return u.c[sizeof (long int) - 1] == 1;
4641
if ac_fn_c_try_run "$LINENO"; then :
4642
ac_cv_c_bigendian=no
4644
ac_cv_c_bigendian=yes
4646
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4647
conftest.$ac_objext conftest.beam conftest.$ac_ext
4652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4653
$as_echo "$ac_cv_c_bigendian" >&6; }
4654
case $ac_cv_c_bigendian in #(
4656
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4662
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4666
as_fn_error $? "unknown endianness
4667
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4671
if test "x$ac_cv_c_bigendian" = "xyes"; then
4672
CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4674
CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4678
*mingw* | *cygw* | *win32* | *w32* )
4679
$as_echo "#define PJ_WIN32 1" >>confdefs.h
4681
$as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
4683
$as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
4687
$as_echo "#define PJ_DARWINOS 1" >>confdefs.h
4691
$as_echo "#define PJ_LINUX 1" >>confdefs.h
4695
$as_echo "#define PJ_RTEMS 1" >>confdefs.h
4698
*sunos* | *solaris* )
4699
$as_echo "#define PJ_SUNOS 1" >>confdefs.h
4709
# Check whether --enable-floating-point was given.
4710
if test "${enable_floating_point+set}" = set; then :
4711
enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
4712
$as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
4714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4715
$as_echo "Checking if floating point is disabled... yes" >&6; }
4719
$as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
4721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4722
$as_echo "Checking if floating point is disabled... no" >&6; }
4723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4724
$as_echo_n "checking for fmod in -lm... " >&6; }
4725
if ${ac_cv_lib_m_fmod+:} false; then :
4726
$as_echo_n "(cached) " >&6
4728
ac_check_lib_save_LIBS=$LIBS
4730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731
/* end confdefs.h. */
4733
/* Override any GCC internal prototype to avoid an error.
4734
Use char because int might match the return type of a GCC
4735
builtin and then its argument prototype would still apply. */
4748
if ac_fn_c_try_link "$LINENO"; then :
4749
ac_cv_lib_m_fmod=yes
4753
rm -f core conftest.err conftest.$ac_objext \
4754
conftest$ac_exeext conftest.$ac_ext
4755
LIBS=$ac_check_lib_save_LIBS
4757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4758
$as_echo "$ac_cv_lib_m_fmod" >&6; }
4759
if test "x$ac_cv_lib_m_fmod" = xyes; then :
4760
cat >>confdefs.h <<_ACEOF
4773
ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4774
if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
4775
$as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
4780
ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4781
if test "x$ac_cv_header_assert_h" = xyes; then :
4782
$as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
4787
ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4788
if test "x$ac_cv_header_ctype_h" = xyes; then :
4789
$as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
4796
*mingw* | *cygw* | *win32* | *w32* )
4797
$as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
4801
ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4802
if test "x$ac_cv_header_errno_h" = xyes; then :
4803
$as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
4811
ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4812
if test "x$ac_cv_header_fcntl_h" = xyes; then :
4813
$as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
4818
ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4819
if test "x$ac_cv_header_linux_socket_h" = xyes; then :
4820
$as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
4825
ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4826
if test "x$ac_cv_header_limits_h" = xyes; then :
4827
$as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
4832
ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4833
if test "x$ac_cv_header_malloc_h" = xyes; then :
4834
$as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
4839
ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4840
if test "x$ac_cv_header_netdb_h" = xyes; then :
4841
$as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
4846
ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4847
if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
4848
$as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
4853
ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4854
if test "x$ac_cv_header_netinet_in_h" = xyes; then :
4855
$as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
4860
ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H
4861
# include <sys/types.h>
4863
#if PJ_HAS_NETINET_IN_SYSTM_H
4864
# include <netinet/in_systm.h>
4866
#if PJ_HAS_NETINET_IN_H
4867
# include <netinet/in.h>
4871
if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
4872
$as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
4877
ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4878
if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
4879
$as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
4884
ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4885
if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
4886
ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4887
if test "x$ac_cv_func_getifaddrs" = xyes; then :
4888
$as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
4895
ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4896
if test "x$ac_cv_header_semaphore_h" = xyes; then :
4897
$as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
4902
ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4903
if test "x$ac_cv_header_setjmp_h" = xyes; then :
4904
$as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
4909
ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4910
if test "x$ac_cv_header_stdarg_h" = xyes; then :
4911
$as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
4916
ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4917
if test "x$ac_cv_header_stddef_h" = xyes; then :
4918
$as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
4923
ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4924
if test "x$ac_cv_header_stdio_h" = xyes; then :
4925
$as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
4930
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4931
if test "x$ac_cv_header_stdint_h" = xyes; then :
4932
$as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
4937
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4938
if test "x$ac_cv_header_stdlib_h" = xyes; then :
4939
$as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
4944
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4945
if test "x$ac_cv_header_string_h" = xyes; then :
4946
$as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
4951
ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4952
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4953
$as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
4958
ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4959
if test "x$ac_cv_header_sys_select_h" = xyes; then :
4960
$as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
4965
ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4966
if test "x$ac_cv_header_sys_socket_h" = xyes; then :
4967
$as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
4972
ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4973
if test "x$ac_cv_header_sys_time_h" = xyes; then :
4974
$as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
4979
ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4980
if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
4981
$as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
4986
ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4987
if test "x$ac_cv_header_sys_types_h" = xyes; then :
4988
$as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
4993
ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4994
if test "x$ac_cv_header_sys_filio_h" = xyes; then :
4995
$as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
5000
ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
5001
if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
5002
$as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
5007
ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
5008
if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
5009
$as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
5014
ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
5015
if test "x$ac_cv_header_time_h" = xyes; then :
5016
$as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
5021
ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5022
if test "x$ac_cv_header_unistd_h" = xyes; then :
5023
$as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
5028
ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
5029
if test "x$ac_cv_header_winsock_h" = xyes; then :
5030
$as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
5035
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5036
if test "x$ac_cv_header_winsock2_h" = xyes; then :
5037
$as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
5042
ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H
5043
# include <winsock2.h>
5044
#elif PJ_HAS_WINSOCK_H
5045
# include <winsock.h>
5049
if test "x$ac_cv_header_mswsock_h" = xyes; then :
5050
$as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
5055
ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
5056
if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
5057
$as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
5062
ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
5063
if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
5068
ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H
5069
# include <sys/types.h>
5071
#if PJ_HAS_SYS_SOCKET_H
5073
# include <sys/socket.h>
5077
if test "x$ac_cv_header_net_if_h" = xyes; then :
5078
$as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
5083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5084
$as_echo "Setting PJ_OS_NAME to $target" >&6; }
5085
cat >>confdefs.h <<_ACEOF
5086
#define PJ_OS_NAME "$target"
5090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5091
$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5092
$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
5095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5096
$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5097
$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
5100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5101
$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5102
$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
5105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5106
$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5107
$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
5110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5111
$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5112
$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
5115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5116
$as_echo_n "checking if inet_aton() is available... " >&6; }
5117
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118
/* end confdefs.h. */
5119
#include <sys/types.h>
5120
#include <sys/socket.h>
5121
#include <arpa/inet.h>
5130
if ac_fn_c_try_compile "$LINENO"; then :
5131
$as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
5133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5134
$as_echo "yes" >&6; }
5136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137
$as_echo "no" >&6; }
5139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5142
$as_echo_n "checking if inet_pton() is available... " >&6; }
5143
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144
/* end confdefs.h. */
5145
#include <sys/types.h>
5146
#include <sys/socket.h>
5147
#include <arpa/inet.h>
5156
if ac_fn_c_try_compile "$LINENO"; then :
5157
$as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160
$as_echo "yes" >&6; }
5162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163
$as_echo "no" >&6; }
5165
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5168
$as_echo_n "checking if inet_ntop() is available... " >&6; }
5169
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170
/* end confdefs.h. */
5171
#include <sys/types.h>
5172
#include <sys/socket.h>
5173
#include <arpa/inet.h>
5177
inet_ntop(0, 0, 0, 0);
5182
if ac_fn_c_try_compile "$LINENO"; then :
5183
$as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
5185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5186
$as_echo "yes" >&6; }
5188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189
$as_echo "no" >&6; }
5191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5194
$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5195
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196
/* end confdefs.h. */
5197
#include <sys/types.h>
5198
#include <sys/socket.h>
5203
getaddrinfo(0, 0, 0, 0);
5208
if ac_fn_c_try_compile "$LINENO"; then :
5209
$as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
5211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212
$as_echo "yes" >&6; }
5214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215
$as_echo "no" >&6; }
5217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5220
$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222
/* end confdefs.h. */
5223
#include <sys/types.h>
5224
#include <sys/socket.h>
5225
#include <netinet/in.h>
5226
#include <arpa/inet.h>
5230
struct sockaddr_in a; a.sin_len=0;
5235
if ac_fn_c_try_compile "$LINENO"; then :
5236
$as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
5238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239
$as_echo "yes" >&6; }
5241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242
$as_echo "no" >&6; }
5244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5247
$as_echo_n "checking if socklen_t is available... " >&6; }
5248
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249
/* end confdefs.h. */
5250
#include <sys/types.h>
5251
#include <sys/socket.h>
5260
if ac_fn_c_try_compile "$LINENO"; then :
5261
$as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
5263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264
$as_echo "yes" >&6; }
5266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267
$as_echo "no" >&6; }
5269
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5272
$as_echo_n "checking if SO_ERROR is available... " >&6; }
5274
*mingw* | *cygw* | *win32* | *w32* )
5275
$as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
5277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5278
$as_echo "yes" >&6; }
5281
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282
/* end confdefs.h. */
5283
#include <sys/types.h>
5284
#include <sys/socket.h>
5285
#include <netinet/in.h>
5286
#include <arpa/inet.h>
5295
if ac_fn_c_try_compile "$LINENO"; then :
5296
$as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
5298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299
$as_echo "yes" >&6; }
5301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302
$as_echo "no" >&6; }
5304
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5310
$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312
/* end confdefs.h. */
5313
#include <pthread.h>
5317
pthread_rwlock_t *x;
5322
if ac_fn_c_try_compile "$LINENO"; then :
5323
$as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
5326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5327
$as_echo "yes" >&6; }
5329
$as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
5332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333
$as_echo "no" >&6; }
5335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337
if test "$ac_rwmutex" = "no"; then
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5339
$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341
/* end confdefs.h. */
5342
#define _POSIX_READER_WRITER_LOCKS
5343
#include <pthread.h>
5347
pthread_rwlock_t *x;
5352
if ac_fn_c_try_compile "$LINENO"; then :
5353
$as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
5355
CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
5356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5357
$as_echo "yes" >&6; }
5359
$as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
5361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362
$as_echo "no" >&6; }
5364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5368
$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370
/* end confdefs.h. */
5371
#include <pthread.h>
5375
pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5380
if ac_fn_c_try_compile "$LINENO"; then :
5381
$as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
5383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384
$as_echo "yes" >&6; }
5386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387
$as_echo "no" >&6; }
5389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5392
$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5393
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394
/* end confdefs.h. */
5395
#include <pthread.h>
5399
pthread_mutexattr_t attr;
5405
if ac_fn_c_try_compile "$LINENO"; then :
5406
$as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
5408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5409
$as_echo "yes" >&6; }
5411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412
$as_echo "no" >&6; }
5414
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5418
$as_echo_n "checking ioqueue backend... " >&6; }
5419
# Check whether --enable-epoll was given.
5420
if test "${enable_epoll+set}" = set; then :
5421
enableval=$enable_epoll;
5422
ac_os_objs=ioqueue_epoll.o
5423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5424
$as_echo "/dev/epoll" >&6; }
5428
ac_os_objs=ioqueue_select.o
5429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5430
$as_echo "select()" >&6; }
5437
*mingw* | *cygw* | *win32* | *w32* )
5438
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"
5441
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"
5444
ac_os_objs="$ac_os_objs os_info_iphone.o"
5448
if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5449
ac_os_objs="$ac_os_objs guid_uuid.o"
5451
ac_os_objs="$ac_os_objs guid_simple.o"
5458
ac_os_objs="$ac_os_objs os_core_darwin.o"
5466
# Check whether --with-external-speex was given.
5467
if test "${with_external_speex+set}" = set; then :
5468
withval=$with_external_speex;
5469
if test "x$with_external_speex" != "xno"; then
5470
# Test Speex installation
5471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5472
$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5473
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474
/* end confdefs.h. */
5475
#include <speex/speex.h>
5476
#include <speex/speex_echo.h>
5481
speex_echo_state_init(0, 0); speex_encoder_init(0);
5486
if ac_fn_c_try_compile "$LINENO"; then :
5487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5488
$as_echo "yes!!" >&6; }
5489
$as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
5491
ac_external_speex="1"
5494
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
5496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506
# Check whether --with-external-gsm was given.
5507
if test "${with_external_gsm+set}" = set; then :
5508
withval=$with_external_gsm;
5509
if test "x$with_external_gsm" != "xno"; then
5510
# Test GSM library installation
5511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5512
$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5513
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514
/* end confdefs.h. */
5515
#include <gsm/gsm.h>
5524
if ac_fn_c_try_compile "$LINENO"; then :
5525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5526
$as_echo "yes!!" >&6; }
5527
$as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5529
$as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
5535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536
$as_echo "no" >&6; }
5537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5538
$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5539
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540
/* end confdefs.h. */
5550
if ac_fn_c_try_compile "$LINENO"; then :
5551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5552
$as_echo "yes!!" >&6; }
5553
$as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5555
$as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
5560
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
5564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578
# Check whether --enable-sound was given.
5579
if test "${enable_sound+set}" = set; then :
5580
enableval=$enable_sound; if test "$enable_sound" = "no"; then
5582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5583
$as_echo "Checking if sound is disabled... yes" >&6; }
5592
# Check whether --with-external-pa was given.
5593
if test "${with_external_pa+set}" = set; then :
5594
withval=$with_external_pa;
5595
if test "x$with_external_pa" != "xno"; then
5596
# Test PortAudio installation
5597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5598
$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5599
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600
/* end confdefs.h. */
5601
#include <portaudio.h>
5611
if ac_fn_c_try_compile "$LINENO"; then :
5612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5613
$as_echo "yes!!" >&6; }
5617
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
5619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627
ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5628
if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
5629
ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5633
ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5634
if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
5635
ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5639
ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5640
if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
5641
ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5646
if test "x$ac_cv_c_bigendian" = "xyes"; then
5647
ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5649
ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5652
if test "$enable_sound" = "no"; then
5657
LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
5658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5659
$as_echo "Checking sound device backend... AudioUnit" >&6; }
5662
LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5663
if test "`uname -r`" = "6.8"; then
5664
#ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
5665
#AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5666
ac_pjmedia_snd=pa_old_darwinos
5667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5668
$as_echo "Checking sound device backend... old coreaudio" >&6; }
5670
ac_pjmedia_snd=pa_darwinos
5671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5672
$as_echo "Checking sound device backend... coreaudio" >&6; }
5676
ac_pjmedia_snd=pa_win32
5677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5678
$as_echo "Checking sound device backend... win32 sound" >&6; }
5682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5683
$as_echo "Checking sound device backend... null sound" >&6; }
5686
ac_pjmedia_snd=pa_unix
5687
ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5688
if test "x$ac_cv_header_alsa_version_h" = xyes; then :
5691
LIBS="$LIBS -lasound"
5699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5700
$as_echo "Checking sound device backend... unix" >&6; }
5704
# Check whether --enable-oss was given.
5705
if test "${enable_oss+set}" = set; then :
5706
enableval=$enable_oss;
5707
if test "$enable_oss" = "no"; then
5709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5710
$as_echo "Checking if OSS audio is disabled... yes" >&6; }
5721
# Check whether --enable-video was given.
5722
if test "${enable_video+set}" = set; then :
5723
enableval=$enable_video; if test "$enable_video" = "no"; then
5724
#AC_DEFINE(PJMEDIA_HAS_VIDEO,0)
5725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5
5726
$as_echo "Video is disabled" >&6; }
5736
LIBS="$LIBS -framework UIKit"
5739
LIBS="$LIBS -framework Foundation -framework AppKit"
5743
if test "$enable_video" = "no"; then
5748
ac_pjmedia_video=iphone_os
5752
LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
5753
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754
/* end confdefs.h. */
5764
if ac_fn_c_try_link "$LINENO"; then :
5765
ac_pjmedia_video_has_ios=yes
5767
ac_pjmedia_video_has_ios=no
5769
rm -f core conftest.err conftest.$ac_objext \
5770
conftest$ac_exeext conftest.$ac_ext
5772
if test "$ac_pjmedia_video_has_ios" = "yes"; then
5773
ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
5774
LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
5775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
5776
$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
5778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
5779
$as_echo "Checking if AVFoundation framework is available... no" >&6; }
5783
ac_pjmedia_video=mac_os
5787
LIBS="-framework QTKit"
5788
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789
/* end confdefs.h. */
5799
if ac_fn_c_try_link "$LINENO"; then :
5800
ac_pjmedia_video_has_qt=yes
5802
ac_pjmedia_video_has_qt=no
5804
rm -f core conftest.err conftest.$ac_objext \
5805
conftest$ac_exeext conftest.$ac_ext
5807
if test "$ac_pjmedia_video_has_qt" = "yes"; then
5808
ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
5809
LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
5810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5811
$as_echo "Checking if QTKit framework is available... yes" >&6; }
5813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5814
$as_echo "Checking if QTKit framework is available... no" >&6; }
5820
# Check whether --enable-ext_sound was given.
5821
if test "${enable_ext_sound+set}" = set; then :
5822
enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
5823
ac_pjmedia_snd=external
5824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5825
$as_echo "Checking if external sound is set... yes" >&6; }
5832
# Check whether --enable-small-filter was given.
5833
if test "${enable_small_filter+set}" = set; then :
5834
enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
5835
ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
5836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5837
$as_echo "Checking if small filter is disabled... yes" >&6; }
5840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5841
$as_echo "Checking if small filter is disabled... no" >&6; }
5846
# Check whether --enable-large-filter was given.
5847
if test "${enable_large_filter+set}" = set; then :
5848
enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
5849
ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
5850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5851
$as_echo "Checking if large filter is disabled... yes" >&6; }
5854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5855
$as_echo "Checking if large filter is disabled... no" >&6; }
5860
# Check whether --enable-speex-aec was given.
5861
if test "${enable_speex_aec+set}" = set; then :
5862
enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
5863
ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
5864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5865
$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
5868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5869
$as_echo "Checking if Speex AEC is disabled...no" >&6; }
5874
# Check whether --enable-g711-codec was given.
5875
if test "${enable_g711_codec+set}" = set; then :
5876
enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
5878
$as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5881
$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
5884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5885
$as_echo "Checking if G.711 codec is disabled...no" >&6; }
5891
# Check whether --enable-l16-codec was given.
5892
if test "${enable_l16_codec+set}" = set; then :
5893
enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
5895
$as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
5897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5898
$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
5901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5902
$as_echo "Checking if L16 codec is disabled...no" >&6; }
5908
# Check whether --enable-gsm-codec was given.
5909
if test "${enable_gsm_codec+set}" = set; then :
5910
enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
5912
$as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
5914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5915
$as_echo "Checking if GSM codec is disabled...yes" >&6; }
5918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5919
$as_echo "Checking if GSM codec is disabled...no" >&6; }
5924
# Check whether --enable-g722-codec was given.
5925
if test "${enable_g722_codec+set}" = set; then :
5926
enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
5928
$as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
5930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5931
$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
5934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5935
$as_echo "Checking if G.722 codec is disabled...no" >&6; }
5940
# Check whether --enable-g7221-codec was given.
5941
if test "${enable_g7221_codec+set}" = set; then :
5942
enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5944
$as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
5946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5947
$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
5950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5951
$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
5956
# Check whether --enable-speex-codec was given.
5957
if test "${enable_speex_codec+set}" = set; then :
5958
enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
5960
$as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
5962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5963
$as_echo "Checking if Speex codec is disabled...yes" >&6; }
5966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5967
$as_echo "Checking if Speex codec is disabled...no" >&6; }
5972
# Check whether --enable-ilbc-codec was given.
5973
if test "${enable_ilbc_codec+set}" = set; then :
5974
enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
5976
$as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
5978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5979
$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
5982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5983
$as_echo "Checking if iLBC codec is disabled...no" >&6; }
5987
# Check whether --enable-libsamplerate was given.
5988
if test "${enable_libsamplerate+set}" = set; then :
5989
enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5990
$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5991
if ${ac_cv_lib_samplerate_src_new+:} false; then :
5992
$as_echo_n "(cached) " >&6
5994
ac_check_lib_save_LIBS=$LIBS
5995
LIBS="-lsamplerate $LIBS"
5996
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997
/* end confdefs.h. */
5999
/* Override any GCC internal prototype to avoid an error.
6000
Use char because int might match the return type of a GCC
6001
builtin and then its argument prototype would still apply. */
6014
if ac_fn_c_try_link "$LINENO"; then :
6015
ac_cv_lib_samplerate_src_new=yes
6017
ac_cv_lib_samplerate_src_new=no
6019
rm -f core conftest.err conftest.$ac_objext \
6020
conftest$ac_exeext conftest.$ac_ext
6021
LIBS=$ac_check_lib_save_LIBS
6023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
6024
$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
6025
if test "x$ac_cv_lib_samplerate_src_new" = xyes; then :
6026
cat >>confdefs.h <<_ACEOF
6027
#define HAVE_LIBSAMPLERATE 1
6030
LIBS="-lsamplerate $LIBS"
6035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
6036
$as_echo "Skipping libsamplerate detection" >&6; }
6042
# Check whether --enable-resample_dll was given.
6043
if test "${enable_resample_dll+set}" = set; then :
6044
enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
6046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
6047
$as_echo "Building libresample as shared library... yes" >&6; }
6050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
6051
$as_echo "Building libresample as shared library... no" >&6; }
6057
# Check whether --with-sdl was given.
6058
if test "${with_sdl+set}" = set; then :
6066
if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then
6070
# Check whether --enable-sdl was given.
6071
if test "${enable_sdl+set}" = set; then :
6072
enableval=$enable_sdl;
6073
if test "$enable_sdl" = "no"; then
6074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
6075
$as_echo "Checking if SDL is disabled... yes" >&6; }
6080
if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
6081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6082
$as_echo "Using SDL prefix... $with_sdl" >&6; }
6083
for ac_prog in sdl2-config sdl-config
6085
# Extract the first word of "$ac_prog", so it can be a program name with args.
6086
set dummy $ac_prog; ac_word=$2
6087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088
$as_echo_n "checking for $ac_word... " >&6; }
6089
if ${ac_cv_path_SDL_CONFIG+:} false; then :
6090
$as_echo_n "(cached) " >&6
6094
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6097
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098
for as_dir in $with_sdl/bin
6101
test -z "$as_dir" && as_dir=.
6102
for ac_exec_ext in '' $ac_executable_extensions; do
6103
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104
ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6105
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6116
if test -n "$SDL_CONFIG"; then
6117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6118
$as_echo "$SDL_CONFIG" >&6; }
6120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121
$as_echo "no" >&6; }
6125
test -n "$SDL_CONFIG" && break
6129
for ac_prog in sdl2-config sdl-config
6131
# Extract the first word of "$ac_prog", so it can be a program name with args.
6132
set dummy $ac_prog; ac_word=$2
6133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134
$as_echo_n "checking for $ac_word... " >&6; }
6135
if ${ac_cv_path_SDL_CONFIG+:} false; then :
6136
$as_echo_n "(cached) " >&6
6140
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147
test -z "$as_dir" && as_dir=.
6148
for ac_exec_ext in '' $ac_executable_extensions; do
6149
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150
ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6151
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6162
if test -n "$SDL_CONFIG"; then
6163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6164
$as_echo "$SDL_CONFIG" >&6; }
6166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167
$as_echo "no" >&6; }
6171
test -n "$SDL_CONFIG" && break
6176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability" >&5
6177
$as_echo_n "checking SDL availability... " >&6; }
6178
if test "x$SDL_CONFIG" = "x"; then
6179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6180
$as_echo "not found" >&6; }
6181
elif (sh -c "$SDL_CONFIG --version" | grep -e '^1\.3' -e '^2\.') then
6184
ac_sdl_cflags=`$SDL_CONFIG --cflags`
6185
ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
6186
ac_sdl_ldflags=`$SDL_CONFIG --libs`
6187
LIBS="$LIBS $ac_sdl_ldflags"
6189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6190
$as_echo "Unsupported SDL version" >&6; }
6198
# Check whether --with-ffmpeg was given.
6199
if test "${with_ffmpeg+set}" = set; then :
6200
withval=$with_ffmpeg;
6207
if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then
6211
# Check whether --enable-ffmpeg was given.
6212
if test "${enable_ffmpeg+set}" = set; then :
6213
enableval=$enable_ffmpeg;
6216
if test "$enable_ffmpeg" = "no"; then
6217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6218
$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
6228
SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
6229
if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6230
FFMPEG_PREFIX=$with_ffmpeg
6231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6232
$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
6233
export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
6236
for ac_prog in pkg-config "python pkgconfig.py"
6238
# Extract the first word of "$ac_prog", so it can be a program name with args.
6239
set dummy $ac_prog; ac_word=$2
6240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241
$as_echo_n "checking for $ac_word... " >&6; }
6242
if ${ac_cv_prog_PKG_CONFIG+:} false; then :
6243
$as_echo_n "(cached) " >&6
6245
if test -n "$PKG_CONFIG"; then
6246
ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252
test -z "$as_dir" && as_dir=.
6253
for ac_exec_ext in '' $ac_executable_extensions; do
6254
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255
ac_cv_prog_PKG_CONFIG="$ac_prog"
6256
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265
PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6266
if test -n "$PKG_CONFIG"; then
6267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6268
$as_echo "$PKG_CONFIG" >&6; }
6270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271
$as_echo "no" >&6; }
6275
test -n "$PKG_CONFIG" && break
6277
test -n "$PKG_CONFIG" || PKG_CONFIG="none"
6280
if test "$PKG_CONFIG" != "none"; then
6281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
6282
$as_echo_n "checking ffmpeg packages... " >&6; }
6284
if $PKG_CONFIG --exists libdevice; then
6285
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6286
av_pkg="$av_pkg libdevice"
6288
if $PKG_CONFIG --exists libavformat; then
6289
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6290
av_pkg="$av_pkg libavformat"
6292
if $PKG_CONFIG --exists libavcodec; then
6293
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6294
av_pkg="$av_pkg libavcodec"
6296
if $PKG_CONFIG --exists libswscale; then
6297
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6298
av_pkg="$av_pkg libswscale"
6300
if $PKG_CONFIG --exists libavutil; then
6301
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6302
av_pkg="$av_pkg libavutil"
6304
if $PKG_CONFIG --exists libavcore; then
6305
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6306
av_pkg="$av_pkg libavcore"
6309
if test "x$av_pkg" == "x"; then
6310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
6311
$as_echo "none detected (check the prefix)! **" >&6; }
6313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
6314
$as_echo "$av_pkg" >&6; }
6317
ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
6318
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
6322
{ $as_echo "$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
6323
$as_echo "*** 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; }
6325
LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
6326
LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
6327
CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
6329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
6330
$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
6331
if ${ac_cv_lib_avdevice_avdevice_version+:} false; then :
6332
$as_echo_n "(cached) " >&6
6334
ac_check_lib_save_LIBS=$LIBS
6335
LIBS="-lavdevice $LIBS"
6336
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337
/* end confdefs.h. */
6339
/* Override any GCC internal prototype to avoid an error.
6340
Use char because int might match the return type of a GCC
6341
builtin and then its argument prototype would still apply. */
6345
char avdevice_version ();
6349
return avdevice_version ();
6354
if ac_fn_c_try_link "$LINENO"; then :
6355
ac_cv_lib_avdevice_avdevice_version=yes
6357
ac_cv_lib_avdevice_avdevice_version=no
6359
rm -f core conftest.err conftest.$ac_objext \
6360
conftest$ac_exeext conftest.$ac_ext
6361
LIBS=$ac_check_lib_save_LIBS
6363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6364
$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
6365
if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes; then :
6366
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6367
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
6372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
6373
$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
6374
if ${ac_cv_lib_avutil_av_malloc+:} false; then :
6375
$as_echo_n "(cached) " >&6
6377
ac_check_lib_save_LIBS=$LIBS
6378
LIBS="-lavutil $LIBS"
6379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380
/* end confdefs.h. */
6382
/* Override any GCC internal prototype to avoid an error.
6383
Use char because int might match the return type of a GCC
6384
builtin and then its argument prototype would still apply. */
6392
return av_malloc ();
6397
if ac_fn_c_try_link "$LINENO"; then :
6398
ac_cv_lib_avutil_av_malloc=yes
6400
ac_cv_lib_avutil_av_malloc=no
6402
rm -f core conftest.err conftest.$ac_objext \
6403
conftest$ac_exeext conftest.$ac_ext
6404
LIBS=$ac_check_lib_save_LIBS
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6407
$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
6408
if test "x$ac_cv_lib_avutil_av_malloc" = xyes; then :
6409
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6410
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
6415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6416
$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
6417
if ${ac_cv_lib_avcodec_avcodec_init+:} false; then :
6418
$as_echo_n "(cached) " >&6
6420
ac_check_lib_save_LIBS=$LIBS
6421
LIBS="-lavcodec -lavutil
6423
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424
/* end confdefs.h. */
6426
/* Override any GCC internal prototype to avoid an error.
6427
Use char because int might match the return type of a GCC
6428
builtin and then its argument prototype would still apply. */
6432
char avcodec_init ();
6436
return avcodec_init ();
6441
if ac_fn_c_try_link "$LINENO"; then :
6442
ac_cv_lib_avcodec_avcodec_init=yes
6444
ac_cv_lib_avcodec_avcodec_init=no
6446
rm -f core conftest.err conftest.$ac_objext \
6447
conftest$ac_exeext conftest.$ac_ext
6448
LIBS=$ac_check_lib_save_LIBS
6450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6451
$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
6452
if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes; then :
6453
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6454
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6459
$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
6460
if ${ac_cv_lib_avformat_av_register_all+:} false; then :
6461
$as_echo_n "(cached) " >&6
6463
ac_check_lib_save_LIBS=$LIBS
6464
LIBS="-lavformat -lavcodec -lavutil
6466
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467
/* end confdefs.h. */
6469
/* Override any GCC internal prototype to avoid an error.
6470
Use char because int might match the return type of a GCC
6471
builtin and then its argument prototype would still apply. */
6475
char av_register_all ();
6479
return av_register_all ();
6484
if ac_fn_c_try_link "$LINENO"; then :
6485
ac_cv_lib_avformat_av_register_all=yes
6487
ac_cv_lib_avformat_av_register_all=no
6489
rm -f core conftest.err conftest.$ac_objext \
6490
conftest$ac_exeext conftest.$ac_ext
6491
LIBS=$ac_check_lib_save_LIBS
6493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6494
$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
6495
if test "x$ac_cv_lib_avformat_av_register_all" = xyes; then :
6496
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6497
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6502
$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
6503
if ${ac_cv_lib_swscale_sws_scale+:} false; then :
6504
$as_echo_n "(cached) " >&6
6506
ac_check_lib_save_LIBS=$LIBS
6507
LIBS="-lswscale -lavutil
6509
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510
/* end confdefs.h. */
6512
/* Override any GCC internal prototype to avoid an error.
6513
Use char because int might match the return type of a GCC
6514
builtin and then its argument prototype would still apply. */
6522
return sws_scale ();
6527
if ac_fn_c_try_link "$LINENO"; then :
6528
ac_cv_lib_swscale_sws_scale=yes
6530
ac_cv_lib_swscale_sws_scale=no
6532
rm -f core conftest.err conftest.$ac_objext \
6533
conftest$ac_exeext conftest.$ac_ext
6534
LIBS=$ac_check_lib_save_LIBS
6536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6537
$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
6538
if test "x$ac_cv_lib_swscale_sws_scale" = xyes; then :
6539
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6540
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
6545
$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
6546
if ${ac_cv_lib_avcore_avcore_version+:} false; then :
6547
$as_echo_n "(cached) " >&6
6549
ac_check_lib_save_LIBS=$LIBS
6550
LIBS="-lavcore $LIBS"
6551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552
/* end confdefs.h. */
6554
/* Override any GCC internal prototype to avoid an error.
6555
Use char because int might match the return type of a GCC
6556
builtin and then its argument prototype would still apply. */
6560
char avcore_version ();
6564
return avcore_version ();
6569
if ac_fn_c_try_link "$LINENO"; then :
6570
ac_cv_lib_avcore_avcore_version=yes
6572
ac_cv_lib_avcore_avcore_version=no
6574
rm -f core conftest.err conftest.$ac_objext \
6575
conftest$ac_exeext conftest.$ac_ext
6576
LIBS=$ac_check_lib_save_LIBS
6578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6579
$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
6580
if test "x$ac_cv_lib_avcore_avcore_version" = xyes; then :
6581
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6582
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
6590
LIBS="$LIBS $ac_ffmpeg_ldflags"
6591
export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
6597
# Check whether --enable-v4l2 was given.
6598
if test "${enable_v4l2+set}" = set; then :
6599
enableval=$enable_v4l2;
6600
if test "$enable_v4l2" = "no"; then
6601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6602
$as_echo "Checking if V4L2 is disabled... yes" >&6; }
6609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6610
$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
6611
if ${ac_cv_lib_v4l2_v4l2_open+:} false; then :
6612
$as_echo_n "(cached) " >&6
6614
ac_check_lib_save_LIBS=$LIBS
6616
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617
/* end confdefs.h. */
6619
/* Override any GCC internal prototype to avoid an error.
6620
Use char because int might match the return type of a GCC
6621
builtin and then its argument prototype would still apply. */
6629
return v4l2_open ();
6634
if ac_fn_c_try_link "$LINENO"; then :
6635
ac_cv_lib_v4l2_v4l2_open=yes
6637
ac_cv_lib_v4l2_v4l2_open=no
6639
rm -f core conftest.err conftest.$ac_objext \
6640
conftest$ac_exeext conftest.$ac_ext
6641
LIBS=$ac_check_lib_save_LIBS
6643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6644
$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
6645
if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then :
6646
ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6647
ac_v4l2_ldflags="-lv4l2"
6657
# Check whether --enable-ipp was given.
6658
if test "${enable_ipp+set}" = set; then :
6659
enableval=$enable_ipp;
6667
# Check whether --with-ipp was given.
6668
if test "${with_ipp+set}" = set; then :
6677
# Check whether --with-ipp-samples was given.
6678
if test "${with_ipp_samples+set}" = set; then :
6679
withval=$with_ipp_samples;
6687
# Check whether --with-ipp-arch was given.
6688
if test "${with_ipp_arch+set}" = set; then :
6689
withval=$with_ipp_arch;
6696
if test "x$enable_ipp" != "xno"; then
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6698
$as_echo_n "checking Intel IPP location... " >&6; }
6700
if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
6701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6702
$as_echo "$with_ipp" >&6; }
6704
elif test "x$IPPROOT" = "x"; then
6705
if test -d /opt/intel/ipp; then
6706
IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
6707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6708
$as_echo "autodetected in $IPPROOT" >&6; }
6711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6712
$as_echo "$IPPROOT" >&6; }
6715
if test "x$with_ipp_arch" != "xno"; then
6716
IPP_SUFFIX=$with_ipp_arch
6717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6718
$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
6721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6722
$as_echo "IPP arch suffix is set to empty" >&6; }
6725
if test x$IPPROOT = x; then
6726
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
6727
elif test ! -d $IPPROOT; then
6728
as_fn_error $? "not found" "$LINENO" 5
6729
elif test ! -d $IPPROOT/include; then
6730
as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
6732
# IPP directory looks okay.
6733
# Remove trailing backslash
6734
IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
6736
SAVED_CFLAGS="$CFLAGS"
6737
SAVED_LDFLAGS="$LDFLAGS"
6740
IPP_CFLAGS="-I$IPPROOT/include"
6741
IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
6744
# Some differences between Mac OS X and Linux
6747
IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6750
# Find out where the libraries live.
6752
if test -d $IPPROOT/lib/intel64; then
6754
elif test -d $IPPROOT/lib/ia32; then
6756
elif test -d $IPPROOT/lib/mic; then
6760
if test -z "$IPP7_ARCH"; then
6761
# IPP6 (and possibly below)
6762
IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6763
IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
6766
if ! test -d $IPPROOT/../compiler; then
6767
as_fn_error $? "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
6769
IPP_CFLAGS="$IPP_CFLAGS"
6770
IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6771
IPP_LIBS="$IPP_LIBS -liomp5"
6776
#IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6778
#IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6780
CFLAGS="$CFLAGS $IPP_CFLAGS"
6781
LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6782
LIBS="$IPP_LIBS $LIBS"
6785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6786
$as_echo_n "checking Intel IPP usability... " >&6; }
6787
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788
/* end confdefs.h. */
6789
#include <ippcore.h>
6799
if ac_fn_c_try_link "$LINENO"; then :
6800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6801
$as_echo "ok" >&6; }
6803
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6804
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6805
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
6806
See \`config.log' for more details" "$LINENO" 5; }
6808
rm -f core conftest.err conftest.$ac_objext \
6809
conftest$ac_exeext conftest.$ac_ext
6811
CFLAGS="$SAVED_CFLAGS"
6812
LDFLAGS="$SAVED_LDFLAGS"
6816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6817
$as_echo_n "checking Intel IPP samples location... " >&6; }
6819
if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
6820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6821
$as_echo "$with_ipp_samples" >&6; }
6822
IPPSAMPLES=$with_ipp_samples
6823
elif test "x$IPPSAMPLES" = "x"; then
6824
if test -d /opt/intel/ipp-samples; then
6825
IPPSAMPLES=/opt/intel/ipp-samples
6826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6827
$as_echo "autodetected in $IPPSAMPLES" >&6; }
6830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6831
$as_echo "$IPPSAMPLES" >&6; }
6834
if test x$IPPSAMPLES = x; then
6835
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
6836
elif test ! -d $IPPSAMPLES; then
6837
as_fn_error $? "not found" "$LINENO" 5
6838
elif test ! -d $IPPSAMPLES/speech-codecs; then
6839
as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
6841
# Remove trailing backslash
6842
IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6844
# Guess the libusc.a/libspeech.a build location
6845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6846
$as_echo_n "checking Intel IPP USC build location... " >&6; }
6847
if test -d $IPPSAMPLES/speech-codecs/bin; then
6849
IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6850
elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6852
if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6854
IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6855
elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6857
IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6859
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6860
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6861
as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6862
See \`config.log' for more details" "$LINENO" 5; }
6865
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6866
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6867
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?
6868
See \`config.log' for more details" "$LINENO" 5; }
6871
# Test the directory
6872
if test ! -d $IPPSAMP_DIR; then
6873
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6874
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6875
as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6876
See \`config.log' for more details" "$LINENO" 5; }
6880
if test "x$IPPVER" = "x5"; then
6881
IPPSAMP_LIBS="libusc.a"
6882
IPPSAMP_LDLIBS="-lusc"
6883
elif test "x$IPPVER" = "x6"; then
6884
IPPSAMP_LIBS="libspeech.a"
6885
IPPSAMP_LDLIBS="-lspeech"
6887
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6888
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6889
as_fn_error $? "bug in this script: unsupported IPP version
6890
See \`config.log' for more details" "$LINENO" 5; }
6893
if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
6894
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6895
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6896
as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6897
See \`config.log' for more details" "$LINENO" 5; }
6900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6901
$as_echo "$IPPSAMP_DIR" >&6; }
6903
SAVED_CFLAGS="$CFLAGS"
6904
SAVED_LDFLAGS="$LDFLAGS"
6907
IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6908
CFLAGS="$CFLAGS $IPPSAMP_INC"
6909
LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6910
LIBS="$IPPSAMP_LDLIBS $LIBS"
6912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6913
$as_echo_n "checking Intel IPP USC usability... " >&6; }
6914
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915
/* end confdefs.h. */
6921
extern USC_Fxns USC_G729AFP_Fxns;
6926
if ac_fn_c_try_link "$LINENO"; then :
6927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6928
$as_echo "ok" >&6; }
6930
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6931
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6932
as_fn_error $? "failed
6933
See \`config.log' for more details" "$LINENO" 5; }
6935
rm -f core conftest.err conftest.$ac_objext \
6936
conftest$ac_exeext conftest.$ac_ext
6938
CFLAGS="$SAVED_CFLAGS"
6939
LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6940
LIBS="$IPP_LIBS $SAVED_LIBS"
6942
IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6943
IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6944
IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
6947
CFLAGS="$CFLAGS $IPP_CFLAGS"
6948
LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6949
LIBS="$LIBS $IPP_LIBS"
6951
ac_build_mak_vars="$ac_build_mak_vars\n\
6952
export IPP_CFLAGS=$IPP_CFLAGS\n\
6953
export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6954
export IPP_LIBS=$IPP_LIBS"
6956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6957
$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
6963
# Check whether --with-ssl was given.
6964
if test "${with_ssl+set}" = set; then :
6972
if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno"; then
6977
# Check whether --enable-ssl was given.
6978
if test "${enable_ssl+set}" = set; then :
6979
enableval=$enable_ssl;
6980
if test "$enable_ssl" = "no"; then
6982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6983
$as_echo "Checking if SSL support is disabled... yes" >&6; }
6988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6989
$as_echo "checking for OpenSSL installations.." >&6; }
6990
if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
6991
CFLAGS="$CFLAGS -I$with_ssl/include"
6992
LDFLAGS="$LDFLAGS -L$with_ssl/lib"
6993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5
6994
$as_echo "Using SSL prefix... $with_ssl" >&6; }
6999
ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
7000
if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
7005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
7006
$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
7007
if ${ac_cv_lib_crypto_ERR_load_BIO_strings+:} false; then :
7008
$as_echo_n "(cached) " >&6
7010
ac_check_lib_save_LIBS=$LIBS
7011
LIBS="-lcrypto $LIBS"
7012
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013
/* end confdefs.h. */
7015
/* Override any GCC internal prototype to avoid an error.
7016
Use char because int might match the return type of a GCC
7017
builtin and then its argument prototype would still apply. */
7021
char ERR_load_BIO_strings ();
7025
return ERR_load_BIO_strings ();
7030
if ac_fn_c_try_link "$LINENO"; then :
7031
ac_cv_lib_crypto_ERR_load_BIO_strings=yes
7033
ac_cv_lib_crypto_ERR_load_BIO_strings=no
7035
rm -f core conftest.err conftest.$ac_objext \
7036
conftest$ac_exeext conftest.$ac_ext
7037
LIBS=$ac_check_lib_save_LIBS
7039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
7040
$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
7041
if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes; then :
7042
libcrypto_present=1 && LIBS="$LIBS -lcrypto"
7045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
7046
$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
7047
if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
7048
$as_echo_n "(cached) " >&6
7050
ac_check_lib_save_LIBS=$LIBS
7052
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053
/* end confdefs.h. */
7055
/* Override any GCC internal prototype to avoid an error.
7056
Use char because int might match the return type of a GCC
7057
builtin and then its argument prototype would still apply. */
7061
char SSL_library_init ();
7065
return SSL_library_init ();
7070
if ac_fn_c_try_link "$LINENO"; then :
7071
ac_cv_lib_ssl_SSL_library_init=yes
7073
ac_cv_lib_ssl_SSL_library_init=no
7075
rm -f core conftest.err conftest.$ac_objext \
7076
conftest$ac_exeext conftest.$ac_ext
7077
LIBS=$ac_check_lib_save_LIBS
7079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7080
$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
7081
if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
7082
libssl_present=1 && LIBS="$LIBS -lssl"
7085
if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
7086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
7087
$as_echo "OpenSSL library found, SSL support enabled" >&6; }
7088
# PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
7089
#AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
7090
$as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
7093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
7094
$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
7101
# Check whether --with-opencore-amrnb was given.
7102
if test "${with_opencore_amrnb+set}" = set; then :
7103
withval=$with_opencore_amrnb;
7105
with_opencore_amrnb=no
7110
if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrnb" = "xno"; then
7111
enable_opencore_amrnb=no
7115
# Check whether --enable-opencore_amrnb was given.
7116
if test "${enable_opencore_amrnb+set}" = set; then :
7117
enableval=$enable_opencore_amrnb;
7118
if test "$enable_opencore_amrnb" = "no"; then
7119
ac_no_opencore_amrnb=1
7120
$as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
7122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
7123
$as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; }
7128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5
7129
$as_echo "checking for OpenCORE AMR-NB installations.." >&6; }
7130
if test "x$with_opencore_amrnb" != "xno" -a "x$with_opencore_amrnb" != "x"; then
7131
CFLAGS="$CFLAGS -I$with_opencore_amrnb/include"
7132
LDFLAGS="$LDFLAGS -L$with_opencore_amrnb/lib"
7133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&5
7134
$as_echo "Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&6; }
7138
ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
7139
if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes; then :
7140
opencore_amrnb_h_present=1
7144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
7145
$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
7146
if ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+:} false; then :
7147
$as_echo_n "(cached) " >&6
7149
ac_check_lib_save_LIBS=$LIBS
7150
LIBS="-lopencore-amrnb $LIBS"
7151
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152
/* end confdefs.h. */
7154
/* Override any GCC internal prototype to avoid an error.
7155
Use char because int might match the return type of a GCC
7156
builtin and then its argument prototype would still apply. */
7160
char Encoder_Interface_init ();
7164
return Encoder_Interface_init ();
7169
if ac_fn_c_try_link "$LINENO"; then :
7170
ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
7172
ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
7174
rm -f core conftest.err conftest.$ac_objext \
7175
conftest$ac_exeext conftest.$ac_ext
7176
LIBS=$ac_check_lib_save_LIBS
7178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
7179
$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
7180
if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes; then :
7181
opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
7184
if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
7185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
7186
$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
7187
$as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
7190
ac_no_opencore_amrnb=1
7191
$as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
7200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
7201
$as_echo_n "checking if select() needs correct nfds... " >&6; }
7203
*rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
7205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7206
$as_echo "yes" >&6; }
7208
*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
7210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7211
$as_echo "no (default)" >&6; }
7212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7213
$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
7217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
7218
$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
7220
*rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
7222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7223
$as_echo "yes" >&6; }
7225
*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
7227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7228
$as_echo "no (default)" >&6; }
7232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
7233
$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
7235
*rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7238
$as_echo "yes" >&6; }
7240
*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
7242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7243
$as_echo "no (default)" >&6; }
7248
*mingw* | *cygw* | *win32* | *w32* )
7249
$as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
7252
*) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
7254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7255
$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
7260
*mingw* | *cygw* | *win32* | *w32* )
7261
$as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
7264
*) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
7266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7267
$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
7273
ac_linux_poll=select
7280
ac_main_obj=main_rtems.o
7288
ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
7289
cat >confcache <<\_ACEOF
7290
# This file is a shell script that caches the results of configure
7291
# tests run on this system so they can be shared between configure
7292
# scripts and configure runs, see configure's option --config-cache.
7293
# It is not useful on other systems. If it contains results you don't
7294
# want to keep, you may remove or edit it.
7296
# config.status only pays attention to the cache file if you give it
7297
# the --recheck option to rerun configure.
7299
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7300
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7305
# The following way of writing the cache mishandles newlines in values,
7306
# but we know of no workaround that is simple, portable, and efficient.
7307
# So, we kill variables containing newlines.
7308
# Ultrix sh set writes to stderr and can't be redirected directly,
7309
# and sets the high bit in the cache file unless we assign to the vars.
7311
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7312
eval ac_val=\$$ac_var
7316
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7317
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7320
_ | IFS | as_nl) ;; #(
7321
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7322
*) { eval $ac_var=; unset $ac_var;} ;;
7328
case $as_nl`(ac_space=' '; set) 2>&1` in #(
7329
*${as_nl}ac_space=\ *)
7330
# `set' does not quote correctly, so add quotes: double-quote
7331
# substitution turns \\\\ into \\, and sed turns \\ into \.
7334
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7337
# `set' quotes correctly as required by POSIX, so do not add quotes.
7338
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7347
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7349
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7351
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7352
if test -w "$cache_file"; then
7353
if test "x$cache_file" != "x/dev/null"; then
7354
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7355
$as_echo "$as_me: updating cache $cache_file" >&6;}
7356
if test ! -f "$cache_file" || test -h "$cache_file"; then
7357
cat confcache >"$cache_file"
7359
case $cache_file in #(
7361
mv -f confcache "$cache_file"$$ &&
7362
mv -f "$cache_file"$$ "$cache_file" ;; #(
7364
mv -f confcache "$cache_file" ;;
7369
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7370
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7375
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7376
# Let make expand exec_prefix.
7377
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7379
DEFS=-DHAVE_CONFIG_H
7384
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7385
# 1. Remove the extension, and $U if already installed.
7386
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7387
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7388
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7389
# will be set to the directory where LIBOBJS objects are built.
7390
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7391
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7395
LTLIBOBJS=$ac_ltlibobjs
7400
: "${CONFIG_STATUS=./config.status}"
7402
ac_clean_files_save=$ac_clean_files
7403
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7404
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7405
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7407
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7409
# Generated by $as_me.
7410
# Run this file to recreate the current configuration.
7411
# Compiler output produced by configure, useful for debugging
7412
# configure, is in config.log if it exists.
7418
SHELL=\${CONFIG_SHELL-$SHELL}
7421
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7422
## -------------------- ##
7423
## M4sh Initialization. ##
7424
## -------------------- ##
7426
# Be more Bourne compatible
7427
DUALCASE=1; export DUALCASE # for MKS sh
7428
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7431
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7432
# is contrary to our usage. Disable this feature.
7433
alias -g '${1+"$@"}'='"$@"'
7434
setopt NO_GLOB_SUBST
7436
case `(set -o) 2>/dev/null` in #(
7448
# Printing a long string crashes Solaris 7 /usr/bin/printf.
7449
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7450
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7451
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7452
# Prefer a ksh shell builtin over an external printf program on Solaris,
7453
# but without wasting forks for bash or zsh.
7454
if test -z "$BASH_VERSION$ZSH_VERSION" \
7455
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7456
as_echo='print -r --'
7457
as_echo_n='print -rn --'
7458
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7459
as_echo='printf %s\n'
7460
as_echo_n='printf %s'
7462
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7463
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7464
as_echo_n='/usr/ucb/echo -n'
7466
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7467
as_echo_n_body='eval
7471
expr "X$arg" : "X\\(.*\\)$as_nl";
7472
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7474
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7476
export as_echo_n_body
7477
as_echo_n='sh -c $as_echo_n_body as_echo'
7480
as_echo='sh -c $as_echo_body as_echo'
7483
# The user is always right.
7484
if test "${PATH_SEPARATOR+set}" != set; then
7486
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7487
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7494
# We need space, tab and new line, in precisely that order. Quoting is
7495
# there to prevent editors from complaining about space-tab.
7496
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7497
# splitting by setting IFS to empty value.)
7500
# Find who we are. Look in the path if we contain no directory separator.
7503
*[\\/]* ) as_myself=$0 ;;
7504
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508
test -z "$as_dir" && as_dir=.
7509
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7515
# We did not find ourselves, most probably we were run as `sh COMMAND'
7516
# in which case we are not to be found in the path.
7517
if test "x$as_myself" = x; then
7520
if test ! -f "$as_myself"; then
7521
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7525
# Unset variables that we do not need and which cause bugs (e.g. in
7526
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7527
# suppresses any "Segmentation fault" message there. '((' could
7528
# trigger a bug in pdksh 5.2.14.
7529
for as_var in BASH_ENV ENV MAIL MAILPATH
7530
do eval test x\${$as_var+set} = xset \
7531
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7544
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7547
# as_fn_error STATUS ERROR [LINENO LOG_FD]
7548
# ----------------------------------------
7549
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7550
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7551
# script with STATUS, using 1 if that was 0.
7554
as_status=$1; test $as_status -eq 0 && as_status=1
7556
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7557
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7559
$as_echo "$as_me: error: $2" >&2
7560
as_fn_exit $as_status
7564
# as_fn_set_status STATUS
7565
# -----------------------
7566
# Set $? to STATUS, without forking.
7570
} # as_fn_set_status
7574
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7584
# Portably unset VAR.
7587
{ eval $1=; unset $1;}
7589
as_unset=as_fn_unset
7590
# as_fn_append VAR VALUE
7591
# ----------------------
7592
# Append the text in VALUE to the end of the definition contained in VAR. Take
7593
# advantage of any shell optimizations that allow amortized linear growth over
7594
# repeated appends, instead of the typical quadratic growth present in naive
7596
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7597
eval 'as_fn_append ()
7608
# as_fn_arith ARG...
7609
# ------------------
7610
# Perform arithmetic evaluation on the ARGs, and store the result in the
7611
# global $as_val. Take advantage of shells that can avoid forks. The arguments
7612
# must be portable across $(()) and expr.
7613
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7614
eval 'as_fn_arith ()
7621
as_val=`expr "$@" || test $? -eq 1`
7626
if expr a : '\(a\)' >/dev/null 2>&1 &&
7627
test "X`expr 00001 : '.*\(...\)'`" = X001; then
7633
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7634
as_basename=basename
7639
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7645
as_me=`$as_basename -- "$0" ||
7646
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7647
X"$0" : 'X\(//\)$' \| \
7648
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7650
sed '/^.*\/\([^/][^/]*\)\/*$/{
7664
# Avoid depending upon Character Ranges.
7665
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7666
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7667
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7668
as_cr_digits='0123456789'
7669
as_cr_alnum=$as_cr_Letters$as_cr_digits
7671
ECHO_C= ECHO_N= ECHO_T=
7672
case `echo -n x` in #(((((
7674
case `echo 'xy\c'` in
7675
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
7677
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7684
rm -f conf$$ conf$$.exe conf$$.file
7685
if test -d conf$$.dir; then
7686
rm -f conf$$.dir/conf$$.file
7689
mkdir conf$$.dir 2>/dev/null
7691
if (echo >conf$$.file) 2>/dev/null; then
7692
if ln -s conf$$.file conf$$ 2>/dev/null; then
7694
# ... but there are two gotchas:
7695
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7696
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7697
# In both cases, we have to default to `cp -pR'.
7698
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7700
elif ln conf$$.file conf$$ 2>/dev/null; then
7708
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7709
rmdir conf$$.dir 2>/dev/null
7714
# Create "$as_dir" as a directory, including parents if necessary.
7719
-*) as_dir=./$as_dir;;
7721
test -d "$as_dir" || eval $as_mkdir_p || {
7725
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7726
*) as_qdir=$as_dir;;
7728
as_dirs="'$as_qdir' $as_dirs"
7729
as_dir=`$as_dirname -- "$as_dir" ||
7730
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7731
X"$as_dir" : 'X\(//\)[^/]' \| \
7732
X"$as_dir" : 'X\(//\)$' \| \
7733
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7734
$as_echo X"$as_dir" |
7735
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7752
test -d "$as_dir" && break
7754
test -z "$as_dirs" || eval "mkdir $as_dirs"
7755
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7759
if mkdir -p . 2>/dev/null; then
7760
as_mkdir_p='mkdir -p "$as_dir"'
7762
test -d ./-p && rmdir ./-p
7767
# as_fn_executable_p FILE
7768
# -----------------------
7769
# Test if FILE is an executable regular file.
7770
as_fn_executable_p ()
7772
test -f "$1" && test -x "$1"
7773
} # as_fn_executable_p
7775
as_executable_p=as_fn_executable_p
7777
# Sed expression to map a string onto a valid CPP name.
7778
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7780
# Sed expression to map a string onto a valid variable name.
7781
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7785
## ----------------------------------- ##
7786
## Main body of $CONFIG_STATUS script. ##
7787
## ----------------------------------- ##
7789
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7791
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7792
# Save the log message, to keep $0 and so on meaningful, and to
7793
# report actual input values of CONFIG_FILES etc. instead of their
7794
# values after options handling.
7796
This file was extended by pjproject $as_me 2.x, which was
7797
generated by GNU Autoconf 2.69. Invocation command line was
7799
CONFIG_FILES = $CONFIG_FILES
7800
CONFIG_HEADERS = $CONFIG_HEADERS
7801
CONFIG_LINKS = $CONFIG_LINKS
7802
CONFIG_COMMANDS = $CONFIG_COMMANDS
7805
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7810
case $ac_config_files in *"
7811
"*) set x $ac_config_files; shift; ac_config_files=$*;;
7814
case $ac_config_headers in *"
7815
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7819
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7820
# Files that config.status was made for.
7821
config_files="$ac_config_files"
7822
config_headers="$ac_config_headers"
7826
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7828
\`$as_me' instantiates files and other configuration actions
7829
from templates according to the current configuration. Unless the files
7830
and actions are specified as TAGs, all are instantiated by default.
7832
Usage: $0 [OPTION]... [TAG]...
7834
-h, --help print this help, then exit
7835
-V, --version print version number and configuration settings, then exit
7836
--config print configuration, then exit
7837
-q, --quiet, --silent
7838
do not print progress messages
7839
-d, --debug don't remove temporary files
7840
--recheck update $as_me by reconfiguring in the same conditions
7841
--file=FILE[:TEMPLATE]
7842
instantiate the configuration file FILE
7843
--header=FILE[:TEMPLATE]
7844
instantiate the configuration header FILE
7846
Configuration files:
7849
Configuration headers:
7852
Report bugs to the package provider."
7855
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7856
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7858
pjproject config.status 2.x
7859
configured by $0, generated by GNU Autoconf 2.69,
7860
with options \\"\$ac_cs_config\\"
7862
Copyright (C) 2012 Free Software Foundation, Inc.
7863
This config.status script is free software; the Free Software Foundation
7864
gives unlimited permission to copy, distribute and modify it."
7868
test -n "\$AWK" || AWK=awk
7871
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7872
# The default lists apply if the user does not specify any file.
7878
ac_option=`expr "X$1" : 'X\([^=]*\)='`
7879
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7883
ac_option=`expr "X$1" : 'X\([^=]*\)='`
7895
# Handling of the options.
7896
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7898
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7899
$as_echo "$ac_cs_version"; exit ;;
7900
--config | --confi | --conf | --con | --co | --c )
7901
$as_echo "$ac_cs_config"; exit ;;
7902
--debug | --debu | --deb | --de | --d | -d )
7904
--file | --fil | --fi | --f )
7907
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7908
'') as_fn_error $? "missing file argument" ;;
7910
as_fn_append CONFIG_FILES " '$ac_optarg'"
7911
ac_need_defaults=false;;
7912
--header | --heade | --head | --hea )
7915
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7917
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7918
ac_need_defaults=false;;
7920
# Conflict between --help and --header
7921
as_fn_error $? "ambiguous option: \`$1'
7922
Try \`$0 --help' for more information.";;
7923
--help | --hel | -h )
7924
$as_echo "$ac_cs_usage"; exit ;;
7925
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7926
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7930
-*) as_fn_error $? "unrecognized option: \`$1'
7931
Try \`$0 --help' for more information." ;;
7933
*) as_fn_append ac_config_targets " $1"
7934
ac_need_defaults=false ;;
7940
ac_configure_extra_args=
7942
if $ac_cs_silent; then
7944
ac_configure_extra_args="$ac_configure_extra_args --silent"
7948
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7949
if \$ac_cs_recheck; then
7950
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7952
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7953
CONFIG_SHELL='$SHELL'
7959
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7963
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7964
## Running $as_me. ##
7970
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7973
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7975
# Handling of arguments.
7976
for ac_config_target in $ac_config_targets
7978
case $ac_config_target in
7979
"pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7980
"pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7981
"pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7982
"pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7983
"pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7984
"build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7985
"build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
7986
"build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
7987
"pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7988
"pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7989
"pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7990
"pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
7991
"third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
7992
"third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
7994
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7999
# If the user did not use the arguments to specify the items to instantiate,
8000
# then the envvar interface is used. Set only those that are not.
8001
# We use the long form for the default assignment because of an extremely
8002
# bizarre bug on SunOS 4.1.3.
8003
if $ac_need_defaults; then
8004
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8005
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8008
# Have a temporary directory for convenience. Make it in the build tree
8009
# simply because there is no reason against having it here, and in addition,
8010
# creating and moving files from /tmp can sometimes cause problems.
8011
# Hook for its removal unless debugging.
8012
# Note that there is a small window in which the directory will not be cleaned:
8013
# after its creation but before its name has been assigned to `$tmp'.
8017
trap 'exit_status=$?
8019
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8021
trap 'as_fn_exit 1' 1 2 13 15
8023
# Create a (secure) tmp directory for tmp files.
8026
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8030
tmp=./conf$$-$RANDOM
8031
(umask 077 && mkdir "$tmp")
8032
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8035
# Set up the scripts for CONFIG_FILES section.
8036
# No need to generate them if there are no CONFIG_FILES.
8037
# This happens for instance with `./config.status config.h'.
8038
if test -n "$CONFIG_FILES"; then
8041
ac_cr=`echo X | tr X '\015'`
8042
# On cygwin, bash can eat \r inside `` if the user requested igncr.
8043
# But we know of no other shell where ac_cr would be empty at this
8044
# point, so we can use a bashism as a fallback.
8045
if test "x$ac_cr" = x; then
8046
eval ac_cr=\$\'\\r\'
8048
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8049
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8055
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8060
echo "cat >conf$$subs.awk <<_ACEOF" &&
8061
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8064
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8065
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8067
for ac_last_try in false false false false false :; do
8068
. ./conf$$subs.sh ||
8069
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8071
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8072
if test $ac_delim_n = $ac_delim_num; then
8074
elif $ac_last_try; then
8075
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8077
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8082
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8083
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8087
s/^/S["/; s/!.*/"]=/
8097
s/\(.\{148\}\)..*/\1/
8099
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8104
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8111
s/\(.\{148\}\)..*/\1/
8113
s/["\\]/\\&/g; s/^/"/; s/$/"/
8117
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8122
' <conf$$subs.awk | sed '
8127
' >>$CONFIG_STATUS || ac_write_fail=1
8128
rm -f conf$$subs.awk
8129
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8131
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8132
for (key in S) S_is_set[key] = 1
8138
nfields = split(line, field, "@")
8140
len = length(field[1])
8141
for (i = 2; i < nfields; i++) {
8143
keylen = length(key)
8144
if (S_is_set[key]) {
8146
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8147
len += length(value) + length(field[++i])
8158
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8159
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8160
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8163
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8164
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8167
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8168
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8169
# trailing colons and then remove the whole line if VPATH becomes empty
8170
# (actually we leave an empty line to preserve line numbers).
8171
if test "x$srcdir" = x.; then
8172
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8190
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8191
fi # test -n "$CONFIG_FILES"
8193
# Set up the scripts for CONFIG_HEADERS section.
8194
# No need to generate them if there are no CONFIG_HEADERS.
8195
# This happens for instance with `./config.status Makefile'.
8196
if test -n "$CONFIG_HEADERS"; then
8197
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8201
# Transform confdefs.h into an awk script `defines.awk', embedded as
8202
# here-document in config.status, that substitutes the proper values into
8203
# config.h.in to produce config.h.
8205
# Create a delimiter string that does not exist in confdefs.h, to ease
8206
# handling of long lines.
8208
for ac_last_try in false false :; do
8209
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8210
if test -z "$ac_tt"; then
8212
elif $ac_last_try; then
8213
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8215
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8219
# For the awk script, D is an array of macro values keyed by name,
8220
# likewise P contains macro parameters if any. Preserve backslash
8221
# newline sequences.
8223
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8225
s/.\{148\}/&'"$ac_delim"'/g
8228
s/^[ ]*#[ ]*define[ ][ ]*/ /
8235
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8237
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8241
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8242
D["\1"]=" \3\\\\\\n"\\/p
8244
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8249
s/.\{148\}/&'"$ac_delim"'/g
8254
s/["\\]/\\&/g; s/^/"/; s/$/"/p
8257
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8259
' <confdefs.h | sed '
8260
s/'"$ac_delim"'/"\\\
8261
"/g' >>$CONFIG_STATUS || ac_write_fail=1
8263
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8264
for (key in D) D_is_set[key] = 1
8267
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8269
split(line, arg, " ")
8270
if (arg[1] == "#") {
8274
defundef = substr(arg[1], 2)
8277
split(mac1, mac2, "(") #)
8279
prefix = substr(line, 1, index(line, defundef) - 1)
8280
if (D_is_set[macro]) {
8281
# Preserve the white space surrounding the "#".
8282
print prefix "define", macro P[macro] D[macro]
8285
# Replace #undef with comments. This is necessary, for example,
8286
# in the case of _POSIX_SOURCE, which is predefined and required
8287
# on some systems where configure will not decide to define it.
8288
if (defundef == "undef") {
8289
print "/*", prefix defundef, macro, "*/"
8297
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8298
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8299
fi # test -n "$CONFIG_HEADERS"
8302
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8307
:[FHLC]) ac_mode=$ac_tag; continue;;
8309
case $ac_mode$ac_tag in
8311
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8312
:[FH]-) ac_tag=-:-;;
8313
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8330
-) ac_f="$ac_tmp/stdin";;
8331
*) # Look for the file first in the build tree, then in the source tree
8332
# (if the path is not absolute). The absolute path cannot be DOS-style,
8333
# because $ac_f cannot contain `:'.
8337
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8339
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8341
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8342
as_fn_append ac_file_inputs " '$ac_f'"
8345
# Let's still pretend it is `configure' which instantiates (i.e., don't
8346
# use $as_me), people would be surprised to read:
8347
# /* config.h. Generated by config.status. */
8348
configure_input='Generated from '`
8349
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8351
if test x"$ac_file" != x-; then
8352
configure_input="$ac_file. $configure_input"
8353
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8354
$as_echo "$as_me: creating $ac_file" >&6;}
8356
# Neutralize special characters interpreted by sed in replacement strings.
8357
case $configure_input in #(
8358
*\&* | *\|* | *\\* )
8359
ac_sed_conf_input=`$as_echo "$configure_input" |
8360
sed 's/[\\\\&|]/\\\\&/g'`;; #(
8361
*) ac_sed_conf_input=$configure_input;;
8365
*:-:* | *:-) cat >"$ac_tmp/stdin" \
8366
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8371
ac_dir=`$as_dirname -- "$ac_file" ||
8372
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8373
X"$ac_file" : 'X\(//\)[^/]' \| \
8374
X"$ac_file" : 'X\(//\)$' \| \
8375
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8376
$as_echo X"$ac_file" |
8377
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8394
as_dir="$ac_dir"; as_fn_mkdir_p
8398
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8400
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8401
# A ".." for each directory in $ac_dir_suffix.
8402
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8403
case $ac_top_builddir_sub in
8404
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8405
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8408
ac_abs_top_builddir=$ac_pwd
8409
ac_abs_builddir=$ac_pwd$ac_dir_suffix
8410
# for backward compatibility:
8411
ac_top_builddir=$ac_top_build_prefix
8414
.) # We are building in place.
8416
ac_top_srcdir=$ac_top_builddir_sub
8417
ac_abs_top_srcdir=$ac_pwd ;;
8418
[\\/]* | ?:[\\/]* ) # Absolute name.
8419
ac_srcdir=$srcdir$ac_dir_suffix;
8420
ac_top_srcdir=$srcdir
8421
ac_abs_top_srcdir=$srcdir ;;
8423
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8424
ac_top_srcdir=$ac_top_build_prefix$srcdir
8425
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8427
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8438
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8439
# If the template does not know about datarootdir, expand it.
8440
# FIXME: This hack should be removed a few years after 2.60.
8441
ac_datarootdir_hack=; ac_datarootdir_seen=
8452
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8453
*datarootdir*) ac_datarootdir_seen=yes;;
8454
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8455
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8456
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8458
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8459
ac_datarootdir_hack='
8460
s&@datadir@&$datadir&g
8461
s&@docdir@&$docdir&g
8462
s&@infodir@&$infodir&g
8463
s&@localedir@&$localedir&g
8464
s&@mandir@&$mandir&g
8465
s&\\\${datarootdir}&$datarootdir&g' ;;
8469
# Neutralize VPATH when `$srcdir' = `.'.
8470
# Shell code in configure.ac might set extrasub.
8471
# FIXME: do we really want to maintain this feature?
8472
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8473
ac_sed_extra="$ac_vpsub
8476
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8478
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8479
s|@configure_input@|$ac_sed_conf_input|;t t
8480
s&@top_builddir@&$ac_top_builddir_sub&;t t
8481
s&@top_build_prefix@&$ac_top_build_prefix&;t t
8482
s&@srcdir@&$ac_srcdir&;t t
8483
s&@abs_srcdir@&$ac_abs_srcdir&;t t
8484
s&@top_srcdir@&$ac_top_srcdir&;t t
8485
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8486
s&@builddir@&$ac_builddir&;t t
8487
s&@abs_builddir@&$ac_abs_builddir&;t t
8488
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8489
$ac_datarootdir_hack
8491
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8492
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8494
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8495
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8496
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8497
"$ac_tmp/out"`; test -z "$ac_out"; } &&
8498
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8499
which seems to be undefined. Please make sure it is defined" >&5
8500
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8501
which seems to be undefined. Please make sure it is defined" >&2;}
8503
rm -f "$ac_tmp/stdin"
8505
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8506
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8508
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8514
if test x"$ac_file" != x-; then
8516
$as_echo "/* $configure_input */" \
8517
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8518
} >"$ac_tmp/config.h" \
8519
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8520
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8521
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8522
$as_echo "$as_me: $ac_file is unchanged" >&6;}
8525
mv "$ac_tmp/config.h" "$ac_file" \
8526
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8529
$as_echo "/* $configure_input */" \
8530
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8531
|| as_fn_error $? "could not create -" "$LINENO" 5
8543
ac_clean_files=$ac_clean_files_save
8545
test $ac_write_fail = 0 ||
8546
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8549
# configure is writing to config.log, and then calls config.status.
8550
# config.status does its own redirection, appending to config.log.
8551
# Unfortunately, on DOS this fails, as config.log is still kept open
8552
# by configure, so config.status won't be able to write to it; its
8553
# output is simply discarded. So we exec the FD to /dev/null,
8554
# effectively closing config.log, so it can be properly (re)opened and
8555
# appended to by config.status. When coming back to configure, we
8556
# need to make the FD available again.
8557
if test "$no_create" != yes; then
8559
ac_config_status_args=
8560
test "$silent" = yes &&
8561
ac_config_status_args="$ac_config_status_args --quiet"
8563
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8565
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8566
# would make configure fail if this is the last instruction.
8567
$ac_cs_success || as_fn_exit 1
8569
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8570
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8571
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
8578
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.
8580
Further customizations can be put in:
8582
- 'pjlib/include/pj/config_site.h'
8584
The next step now is to run 'make dep' and 'make'.
8588
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.
8590
Further customizations can be put in:
8592
- 'pjlib/include/pj/config_site.h'
8594
The next step now is to run 'make dep' and 'make'.