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