blob: a6460f009750376300a4fc8910a27785184aba07 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonoe1105232011-10-26 06:49:34 +00003# Generated by GNU Autoconf 2.65 for pjproject 1.x.
4#
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005#
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Benny Prijonoe1105232011-10-26 06:49:34 +00007# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Benny Prijonoe1105232011-10-26 06:49:34 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000016
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonoe1105232011-10-26 06:49:34 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +000020 emulate sh
21 NULLCMD=:
Benny Prijonoe1105232011-10-26 06:49:34 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000025 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000026else
Benny Prijonoe1105232011-10-26 06:49:34 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000032esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000033fi
34
35
Benny Prijonoe1105232011-10-26 06:49:34 +000036as_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
Benny Prijonod5233702010-01-13 13:09:45 +000073
Benny Prijono7e0d75f2006-12-25 20:34:14 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonoe1105232011-10-26 06:49:34 +000076 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 }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000081fi
82
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000083
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.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonoe1105232011-10-26 06:49:34 +000092case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000095for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +000099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000101IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000102
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
Benny Prijonoe1105232011-10-26 06:49:34 +0000111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000113fi
114
Benny Prijonoe1105232011-10-26 06:49:34 +0000115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
Benny Prijonoe1105232011-10-26 06:49:34 +0000128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
Benny Prijono6a0a49a2011-10-18 11:17:23 +0000132
Benny Prijonoe1105232011-10-26 06:49:34 +0000133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
Benny Prijonoe1105232011-10-26 06:49:34 +0000388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000393
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonoe1105232011-10-26 06:49:34 +0000398$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
Benny Prijonoe1105232011-10-26 06:49:34 +0000413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000419
420
Benny Prijonoe1105232011-10-26 06:49:34 +0000421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000430 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000435 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000438 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000439 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000440 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000441 chmod +x "$as_me.lineno" ||
Benny Prijonoe1105232011-10-26 06:49:34 +0000442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000448 # Exit status is that of the last command.
449 exit
450}
451
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000452ECHO_C= ECHO_N= ECHO_T=
Benny Prijonoe1105232011-10-26 06:49:34 +0000453case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000454-n*)
Benny Prijonoe1105232011-10-26 06:49:34 +0000455 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonoe1105232011-10-26 06:49:34 +0000457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000460 esac;;
461*)
462 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000463esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000464
465rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
Benny Prijonoe1105232011-10-26 06:49:34 +0000470 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000471fi
Benny Prijonoe1105232011-10-26 06:49:34 +0000472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000484 as_ln_s='cp -p'
Benny Prijonoe1105232011-10-26 06:49:34 +0000485 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000486else
487 as_ln_s='cp -p'
488fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000491
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000492if mkdir -p . 2>/dev/null; then
Benny Prijonoe1105232011-10-26 06:49:34 +0000493 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +0000494else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000497fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000498
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
Benny Prijonoe1105232011-10-26 06:49:34 +0000510 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000511 else
Benny Prijonoe1105232011-10-26 06:49:34 +0000512 case $1 in #(
513 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514 esac;
Benny Prijonoe1105232011-10-26 06:49:34 +0000515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000528
Benny Prijonoe1105232011-10-26 06:49:34 +0000529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000541ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000542ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000543LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000544cross_compiling=no
545subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000546MFLAGS=
547MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000548
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000549# Identity of this package.
550PACKAGE_NAME='pjproject'
551PACKAGE_TARNAME='pjproject'
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000552PACKAGE_VERSION='1.x'
553PACKAGE_STRING='pjproject 1.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000554PACKAGE_BUGREPORT=''
Benny Prijonoe1105232011-10-26 06:49:34 +0000555PACKAGE_URL=''
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000556
557# Factoring default headers for most tests.
558ac_includes_default="\
559#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000560#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000561# include <sys/types.h>
562#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000563#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564# include <sys/stat.h>
565#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000566#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000567# include <stdlib.h>
568# include <stddef.h>
569#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000570# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000571# include <stdlib.h>
572# endif
573#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000574#ifdef HAVE_STRING_H
575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000576# include <memory.h>
577# endif
578# include <string.h>
579#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000580#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000581# include <strings.h>
582#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000583#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000584# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000585#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000586#ifdef HAVE_STDINT_H
587# include <stdint.h>
588#endif
589#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000590# include <unistd.h>
591#endif"
592
Benny Prijonoe1105232011-10-26 06:49:34 +0000593ac_subst_vars='LTLIBOBJS
Sauw Minge7dbbc82011-10-24 09:28:13 +0000594LIBOBJS
Benny Prijonoe1105232011-10-26 06:49:34 +0000595ac_main_obj
596ac_host
597ac_linux_poll
598ac_cross_compile
599opencore_amrnb_present
600opencore_amrnb_h_present
601ac_no_opencore_amrnb
602libcrypto_present
603libssl_present
604openssl_h_present
605ac_no_ssl
606ac_v4l2_ldflags
607ac_v4l2_cflags
608ac_ffmpeg_ldflags
609ac_ffmpeg_cflags
610ac_has_ffmpeg
611ac_sdl_ldflags
612ac_sdl_cflags
613ac_no_ilbc_codec
614ac_no_speex_codec
615ac_no_g7221_codec
616ac_no_g722_codec
617ac_no_gsm_codec
618ac_no_l16_codec
619ac_no_g711_codec
620ac_no_speex_aec
621ac_no_large_filter
622ac_no_small_filter
623ac_qt_cflags
624ac_pjmedia_video_has_qt
625ac_ios_cflags
626ac_pjmedia_video_has_ios
627ac_pjmedia_video
628ac_pa_use_oss
629ac_pa_use_alsa
630ac_pa_cflags
631ac_external_pa
632ac_pjmedia_snd
633ac_external_gsm
634ac_external_speex
635ac_os_objs
636EGREP
637GREP
638CPP
639ac_build_mak_vars
640ac_pjdir
641CC_CFLAGS
642CC_OPTIMIZE
643CC_DEF
644CC_INC
645CC_OUT
646LIBEXT2
647LIBEXT
648RANLIB
649LDOUT
650LD
651AR
652ac_ct_CXX
653CXXFLAGS
654CXX
655OBJEXT
656EXEEXT
657ac_ct_CC
658CPPFLAGS
659LDFLAGS
660CFLAGS
661CC
662target_os
663target_vendor
664target_cpu
665target
666host_os
667host_vendor
668host_cpu
669host
670build_os
671build_vendor
672build_cpu
673build
674target_alias
675host_alias
676build_alias
677LIBS
678ECHO_T
679ECHO_N
680ECHO_C
681DEFS
682mandir
683localedir
684libdir
685psdir
686pdfdir
687dvidir
688htmldir
689infodir
690docdir
691oldincludedir
692includedir
693localstatedir
694sharedstatedir
695sysconfdir
696datadir
697datarootdir
698libexecdir
699sbindir
700bindir
701program_transform_name
702prefix
703exec_prefix
704PACKAGE_URL
705PACKAGE_BUGREPORT
706PACKAGE_STRING
707PACKAGE_VERSION
708PACKAGE_TARNAME
709PACKAGE_NAME
710PATH_SEPARATOR
711SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000712ac_subst_files=''
Benny Prijonoe1105232011-10-26 06:49:34 +0000713ac_user_opts='
714enable_option_checking
715enable_floating_point
716enable_epoll
717with_external_speex
718with_external_gsm
719enable_sound
720with_external_pa
721enable_oss
722enable_ext_sound
723enable_small_filter
724enable_large_filter
725enable_speex_aec
726enable_g711_codec
727enable_l16_codec
728enable_gsm_codec
729enable_g722_codec
730enable_g7221_codec
731enable_speex_codec
732enable_ilbc_codec
733enable_libsamplerate
734with_sdl
735enable_sdl
736enable_ffmpeg
737with_ffmpeg
738enable_v4l2
739enable_ipp
740with_ipp
741with_ipp_samples
742with_ipp_arch
743enable_ssl
744enable_opencore_amrnb
745'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000746 ac_precious_vars='build_alias
747host_alias
748target_alias
749CC
750CFLAGS
751LDFLAGS
752LIBS
753CPPFLAGS
754CXX
755CXXFLAGS
756CCC
757CPP'
758
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000759
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
Benny Prijonoe1105232011-10-26 06:49:34 +0000763ac_unrecognized_opts=
764ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000787# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000796includedir='${prefix}/include'
797oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799infodir='${datarootdir}/info'
800htmldir='${docdir}'
801dvidir='${docdir}'
802pdfdir='${docdir}'
803psdir='${docdir}'
804libdir='${exec_prefix}/lib'
805localedir='${datarootdir}/locale'
806mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000807
808ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000809ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000810for ac_option
811do
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000814 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000815 ac_prev=
816 continue
817 fi
818
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000819 case $ac_option in
820 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *) ac_optarg=yes ;;
822 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000823
824 # Accept the important Cygnus configure options, so we can diagnose typos.
825
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000850 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000851 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000853 datadir=$ac_optarg ;;
854
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000862 -disable-* | --disable-*)
Benny Prijonoe1105232011-10-26 06:49:34 +0000863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000864 # Reject names that are not valid shell variable names.
Benny Prijonoe1105232011-10-26 06:49:34 +0000865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871"enable_$ac_useropt"
872"*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000887
888 -enable-* | --enable-*)
Benny Prijonoe1105232011-10-26 06:49:34 +0000889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000890 # Reject names that are not valid shell variable names.
Benny Prijonoe1105232011-10-26 06:49:34 +0000891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000964 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000965 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000981 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 ac_prev=sbindir ;;
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 | --sbi=* | --sb=*)
1051 sbindir=$ac_optarg ;;
1052
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1056 | --sha | --sh)
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 | --sha=* | --sh=*)
1062 sharedstatedir=$ac_optarg ;;
1063
1064 -site | --site | --sit)
1065 ac_prev=site ;;
1066 -site=* | --site=* | --sit=*)
1067 site=$ac_optarg ;;
1068
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 ac_prev=srcdir ;;
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1073
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1080
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1085
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 verbose=yes ;;
1088
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1091
1092 -with-* | --with-*)
Benny Prijonoe1105232011-10-26 06:49:34 +00001093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001094 # Reject names that are not valid shell variable names.
Benny Prijonoe1105232011-10-26 06:49:34 +00001095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101"with_$ac_useropt"
1102"*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001107
1108 -without-* | --without-*)
Benny Prijonoe1105232011-10-26 06:49:34 +00001109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001110 # Reject names that are not valid shell variable names.
Benny Prijonoe1105232011-10-26 06:49:34 +00001111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117"with_$ac_useropt"
1118"*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001123
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1127
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1134
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1141
Benny Prijonoe1105232011-10-26 06:49:34 +00001142 -*) as_fn_error "unrecognized option: \`$ac_option'
1143Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001144 ;;
1145
1146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
Benny Prijonoe1105232011-10-26 06:49:34 +00001149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1152 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001153 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001154 export $ac_envvar ;;
1155
1156 *)
1157 # FIXME: should be removed in autoconf 3.0.
Benny Prijonoe1105232011-10-26 06:49:34 +00001158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoe1105232011-10-26 06:49:34 +00001160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 ;;
1163
1164 esac
1165done
1166
1167if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijonoe1105232011-10-26 06:49:34 +00001169 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001170fi
1171
Benny Prijonoe1105232011-10-26 06:49:34 +00001172if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1174 no) ;;
1175 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 esac
1178fi
1179
1180# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001181for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001185do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001186 eval ac_val=\$$ac_var
Benny Prijonoe1105232011-10-26 06:49:34 +00001187 # Remove trailing slashes.
1188 case $ac_val in
1189 */ )
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1192 esac
1193 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001194 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001197 esac
Benny Prijonoe1105232011-10-26 06:49:34 +00001198 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001203# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001208# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001209if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
Benny Prijonoe1105232011-10-26 06:49:34 +00001212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001224
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijonoe1105232011-10-26 06:49:34 +00001228 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001229test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijonoe1105232011-10-26 06:49:34 +00001230 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001231
1232
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001233# Find the source files, if location was not specified.
1234if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001236 # Try the directory containing this script, then the parent directory.
Benny Prijonoe1105232011-10-26 06:49:34 +00001237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\).*/{
1256 s//\1/
1257 q
1258 }
1259 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001260 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001261 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001262 srcdir=..
1263 fi
1264else
1265 ac_srcdir_defaulted=no
1266fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001267if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijonoe1105232011-10-26 06:49:34 +00001269 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001270fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272ac_abs_confdir=`(
Benny Prijonoe1105232011-10-26 06:49:34 +00001273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001274 pwd)`
1275# When building in place, set srcdir=.
1276if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1278fi
1279# Remove unnecessary trailing slashes from srcdir.
1280# Double slashes in file names in object file debugging info
1281# mess up M-x gdb in Emacs.
1282case $srcdir in
1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284esac
1285for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001291
1292#
1293# Report the --help message.
1294#
1295if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001298 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001299\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001300
1301Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304VAR=VALUE. See below for descriptions of some of the useful variables.
1305
1306Defaults for the options are specified in brackets.
1307
1308Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001319Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijonoe1105232011-10-26 06:49:34 +00001321 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijonoe1105232011-10-26 06:49:34 +00001323 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001324
1325By default, \`make install' will install all the files in
1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328for instance \`--prefix=\$HOME'.
1329
1330For better control, use the options below.
1331
1332Fine tuning of the installation directories:
Benny Prijonoe1105232011-10-26 06:49:34 +00001333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001352_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001353
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001354 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001355
1356System types:
1357 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001358 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001359 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001360_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001361fi
1362
1363if test -n "$ac_init_help"; then
1364 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001365 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001366 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001367 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001368
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001369Optional Features:
Benny Prijonoe1105232011-10-26 06:49:34 +00001370 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --disable-floating-point
1374 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001375 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001376 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001377 --disable-oss Disable OSS audio (default: not disabled)
Benny Prijonoebb2c332008-07-28 23:40:58 +00001378 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001379 --disable-small-filter Exclude small filter in resampling
1380 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001381 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1382 --disable-g711-codec Exclude G.711 codecs from the build
1383 --disable-l16-codec Exclude Linear/L16 codec family from the build
1384 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001385 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001386 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001387 --disable-speex-codec Exclude Speex codecs in the build
1388 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001389 --enable-libsamplerate Link with libsamplerate when available. Note that
1390 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoc45d9512010-12-10 11:04:30 +00001391 --disable-sdl Disable SDL (default: not disabled)
1392 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1393 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001394 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1395 package and samples location using IPPROOT and
1396 IPPSAMPLES env var or with --with-ipp and
1397 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001398 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001399
Sauw Minge7dbbc82011-10-24 09:28:13 +00001400 --disable-opencore-amrnb
1401 Exclude OpenCORE AMR-NB support from the build
1402 (default: autodetect)
1403
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001404
Benny Prijonofe0c1272010-01-13 16:28:15 +00001405Optional Packages:
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001408 --with-external-speex Use external Speex development files, not the one in
1409 "third_party" directory. When this option is set,
1410 make sure that Speex is accessible to use (hint: use
1411 CFLAGS and LDFLAGS env var to set the include/lib
1412 paths)
1413 --with-external-gsm Use external GSM codec library, not the one in
1414 "third_party" directory. When this option is set,
1415 make sure that the GSM include/lib files are
1416 accessible to use (hint: use CFLAGS and LDFLAGS env
1417 var to set the include/lib paths)
1418 --with-external-pa Use external PortAudio development files, not the
1419 one in "third_party" directory. When this option is
1420 set, make sure that PortAudio is accessible to use
1421 (hint: use CFLAGS and LDFLAGS env var to set the
1422 include/lib paths)
Benny Prijono5b0af632011-07-20 03:16:25 +00001423 --with-sdl=DIR Specify alternate libSDL prefix
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001424 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001425 --with-ipp=DIR Specify the Intel IPP location
1426 --with-ipp-samples=DIR Specify the Intel IPP samples location
1427 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001428 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001429
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001430Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001435 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijonoe1105232011-10-26 06:49:34 +00001436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001437 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001438 CXX C++ compiler command
1439 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001440 CPP C preprocessor
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
Benny Prijonoe1105232011-10-26 06:49:34 +00001445Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001446_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001447ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001448fi
1449
1450if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijonoe1105232011-10-26 06:49:34 +00001453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001456 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001457
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001458case "$ac_dir" in
1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460*)
Benny Prijonoe1105232011-10-26 06:49:34 +00001461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001462 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonoe1105232011-10-26 06:49:34 +00001463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001473
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001474case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001475 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001476 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001480 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001487esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001489
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001498 else
Benny Prijonoe1105232011-10-26 06:49:34 +00001499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001502 done
1503fi
1504
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001505test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001506if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001507 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001508pjproject configure 1.x
Benny Prijonoe1105232011-10-26 06:49:34 +00001509generated by GNU Autoconf 2.65
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001510
Benny Prijonoe1105232011-10-26 06:49:34 +00001511Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001514_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001515 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001516fi
Benny Prijonoe1105232011-10-26 06:49:34 +00001517
1518## ------------------------ ##
1519## Autoconf initialization. ##
1520## ------------------------ ##
1521
1522# ac_fn_c_try_compile LINENO
1523# --------------------------
1524# Try to compile conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_compile ()
1526{
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549else
1550 $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1
1554fi
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 as_fn_set_status $ac_retval
1557
1558} # ac_fn_c_try_compile
1559
1560# ac_fn_cxx_try_compile LINENO
1561# ----------------------------
1562# Try to compile conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_cxx_try_compile ()
1564{
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_cxx_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587else
1588 $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592fi
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 as_fn_set_status $ac_retval
1595
1596} # ac_fn_cxx_try_compile
1597
1598# ac_fn_c_try_link LINENO
1599# -----------------------
1600# Try to link conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_link ()
1602{
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1626 }; then :
1627 ac_retval=0
1628else
1629 $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633fi
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 as_fn_set_status $ac_retval
1641
1642} # ac_fn_c_try_link
1643
1644# ac_fn_c_try_run LINENO
1645# ----------------------
1646# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1647# that executables *can* be run.
1648ac_fn_c_try_run ()
1649{
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_link"
1652case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>&5
1659 ac_status=$?
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1662 { { case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_try") 2>&5
1669 ac_status=$?
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; }; }; then :
1672 ac_retval=0
1673else
1674 $as_echo "$as_me: program exited with status $ac_status" >&5
1675 $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=$ac_status
1679fi
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_run
1685
1686# ac_fn_c_try_cpp LINENO
1687# ----------------------
1688# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_cpp ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } >/dev/null && {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 }; then :
1711 ac_retval=0
1712else
1713 $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717fi
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_cpp
1722
1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724# -------------------------------------------------------
1725# Tests whether HEADER exists and can be compiled using the include files in
1726# INCLUDES, setting the cache variable VAR accordingly.
1727ac_fn_c_check_header_compile ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
1732if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 $as_echo_n "(cached) " >&6
1734else
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h. */
1737$4
1738#include <$2>
1739_ACEOF
1740if ac_fn_c_try_compile "$LINENO"; then :
1741 eval "$3=yes"
1742else
1743 eval "$3=no"
1744fi
1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746fi
1747eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749$as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751
1752} # ac_fn_c_check_header_compile
1753
1754# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757# the include files in INCLUDES and setting the cache variable VAR
1758# accordingly.
1759ac_fn_c_check_header_mongrel ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1766 $as_echo_n "(cached) " >&6
1767fi
1768eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771else
1772 # Is the header compilable?
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774$as_echo_n "checking $2 usability... " >&6; }
1775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h. */
1777$4
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"; then :
1781 ac_header_compiler=yes
1782else
1783 ac_header_compiler=no
1784fi
1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787$as_echo "$ac_header_compiler" >&6; }
1788
1789# Is the header present?
1790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791$as_echo_n "checking $2 presence... " >&6; }
1792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_cpp "$LINENO"; then :
1797 ac_header_preproc=yes
1798else
1799 ac_header_preproc=no
1800fi
1801rm -f conftest.err conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803$as_echo "$ac_header_preproc" >&6; }
1804
1805# So? What about this header?
1806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1807 yes:no: )
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812 ;;
1813 no:yes:* )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1817$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1821$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 ;;
1825esac
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1830else
1831 eval "$3=\$ac_header_compiler"
1832fi
1833eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836fi
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839} # ac_fn_c_check_header_mongrel
1840
1841# ac_fn_c_check_func LINENO FUNC VAR
1842# ----------------------------------
1843# Tests whether FUNC exists, setting the cache variable VAR accordingly
1844ac_fn_c_check_func ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1851else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h. */
1854/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1856#define $2 innocuous_$2
1857
1858/* System header to define __stub macros and hopefully few prototypes,
1859 which can conflict with char $2 (); below.
1860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1861 <limits.h> exists even on freestanding compilers. */
1862
1863#ifdef __STDC__
1864# include <limits.h>
1865#else
1866# include <assert.h>
1867#endif
1868
1869#undef $2
1870
1871/* Override any GCC internal prototype to avoid an error.
1872 Use char because int might match the return type of a GCC
1873 builtin and then its argument prototype would still apply. */
1874#ifdef __cplusplus
1875extern "C"
1876#endif
1877char $2 ();
1878/* The GNU C library defines this for functions which it implements
1879 to always fail with ENOSYS. Some functions are actually named
1880 something starting with __ and the normal name is an alias. */
1881#if defined __stub_$2 || defined __stub___$2
1882choke me
1883#endif
1884
1885int
1886main ()
1887{
1888return $2 ();
1889 ;
1890 return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_link "$LINENO"; then :
1894 eval "$3=yes"
1895else
1896 eval "$3=no"
1897fi
1898rm -f core conftest.err conftest.$ac_objext \
1899 conftest$ac_exeext conftest.$ac_ext
1900fi
1901eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
1906} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001907cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001908This file contains any messages produced by compilers while
1909running configure, to aid debugging if configure makes a mistake.
1910
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001911It was created by pjproject $as_me 1.x, which was
Benny Prijonoe1105232011-10-26 06:49:34 +00001912generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001913
1914 $ $0 $@
1915
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001916_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001917exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001918{
1919cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001920## --------- ##
1921## Platform. ##
1922## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001923
1924hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929
1930/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1932
1933/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1934/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1935/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001936/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001937/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1938/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1939/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1940
1941_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001942
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00001948 $as_echo "PATH: $as_dir"
1949 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001950IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001951
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001952} >&5
1953
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001954cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001955
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001956
1957## ----------- ##
1958## Core tests. ##
1959## ----------- ##
1960
1961_ACEOF
1962
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001963
1964# Keep a trace of the command line.
1965# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001966# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001967# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001968# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001969ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001970ac_configure_args0=
1971ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001972ac_must_keep_next=false
1973for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001974do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001975 for ac_arg
1976 do
1977 case $ac_arg in
1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980 | -silent | --silent | --silen | --sile | --sil)
1981 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001982 *\'*)
Benny Prijonoe1105232011-10-26 06:49:34 +00001983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001984 esac
1985 case $ac_pass in
Benny Prijonoe1105232011-10-26 06:49:34 +00001986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001987 2)
Benny Prijonoe1105232011-10-26 06:49:34 +00001988 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001989 if test $ac_must_keep_next = true; then
1990 ac_must_keep_next=false # Got value, back to normal.
1991 else
1992 case $ac_arg in
1993 *=* | --config-cache | -C | -disable-* | --disable-* \
1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996 | -with-* | --with-* | -without-* | --without-* | --x)
1997 case "$ac_configure_args0 " in
1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999 esac
2000 ;;
2001 -* ) ac_must_keep_next=true ;;
2002 esac
2003 fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002004 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002005 ;;
2006 esac
2007 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002008done
Benny Prijonoe1105232011-10-26 06:49:34 +00002009{ ac_configure_args0=; unset ac_configure_args0;}
2010{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002011
2012# When interrupted or exit'd, cleanup temporary files, and complete
2013# config.log. We remove comments because anyway the quotes in there
2014# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002015# WARNING: Use '\'' to represent an apostrophe within the trap.
2016# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002017trap 'exit_status=$?
2018 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002019 {
2020 echo
2021
2022 cat <<\_ASBOX
2023## ---------------- ##
2024## Cache variables. ##
2025## ---------------- ##
2026_ASBOX
2027 echo
2028 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002029(
2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in #(
2033 *${as_nl}*)
2034 case $ac_var in #(
Benny Prijonoe1105232011-10-26 06:49:34 +00002035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002037 esac
2038 case $ac_var in #(
2039 _ | IFS | as_nl) ;; #(
Benny Prijonoe1105232011-10-26 06:49:34 +00002040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002042 esac ;;
2043 esac
2044 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002045 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002048 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002049 "s/'\''/'\''\\\\'\'''\''/g;
2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002052 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002054 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002055 esac |
2056 sort
2057)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002058 echo
2059
2060 cat <<\_ASBOX
2061## ----------------- ##
2062## Output variables. ##
2063## ----------------- ##
2064_ASBOX
2065 echo
2066 for ac_var in $ac_subst_vars
2067 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002068 eval ac_val=\$$ac_var
2069 case $ac_val in
Benny Prijonoe1105232011-10-26 06:49:34 +00002070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002071 esac
Benny Prijonoe1105232011-10-26 06:49:34 +00002072 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002073 done | sort
2074 echo
2075
2076 if test -n "$ac_subst_files"; then
2077 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002078## ------------------- ##
2079## File substitutions. ##
2080## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002081_ASBOX
2082 echo
2083 for ac_var in $ac_subst_files
2084 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002085 eval ac_val=\$$ac_var
2086 case $ac_val in
Benny Prijonoe1105232011-10-26 06:49:34 +00002087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002088 esac
Benny Prijonoe1105232011-10-26 06:49:34 +00002089 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002090 done | sort
2091 echo
2092 fi
2093
2094 if test -s confdefs.h; then
2095 cat <<\_ASBOX
2096## ----------- ##
2097## confdefs.h. ##
2098## ----------- ##
2099_ASBOX
2100 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002101 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002102 echo
2103 fi
2104 test "$ac_signal" != 0 &&
Benny Prijonoe1105232011-10-26 06:49:34 +00002105 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002107 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002108 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002110 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002111' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002112for ac_signal in 1 2 13 15; do
Benny Prijonoe1105232011-10-26 06:49:34 +00002113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002114done
2115ac_signal=0
2116
2117# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002118rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002119
Benny Prijonoe1105232011-10-26 06:49:34 +00002120$as_echo "/* confdefs.h */" > confdefs.h
2121
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002122# Predefined preprocessor variables.
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_NAME "$PACKAGE_NAME"
2126_ACEOF
2127
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130_ACEOF
2131
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_VERSION "$PACKAGE_VERSION"
2134_ACEOF
2135
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_STRING "$PACKAGE_STRING"
2138_ACEOF
2139
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142_ACEOF
2143
Benny Prijonoe1105232011-10-26 06:49:34 +00002144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_URL "$PACKAGE_URL"
2146_ACEOF
2147
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002148
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002149# Let the site file select an alternate cache file if it wants to.
Benny Prijonoe1105232011-10-26 06:49:34 +00002150# Prefer an explicitly selected file to automatically selected ones.
2151ac_site_file1=NONE
2152ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002153if test -n "$CONFIG_SITE"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002154 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002155elif test "x$prefix" != xNONE; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002156 ac_site_file1=$prefix/share/config.site
2157 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002158else
Benny Prijonoe1105232011-10-26 06:49:34 +00002159 ac_site_file1=$ac_default_prefix/share/config.site
2160 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002161fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002162for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002163do
Benny Prijonoe1105232011-10-26 06:49:34 +00002164 test "x$ac_site_file" = xNONE && continue
2165 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2167$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002168 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002169 . "$ac_site_file"
2170 fi
2171done
2172
2173if test -r "$cache_file"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002174 # Some versions of bash will fail to source /dev/null (special files
2175 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002179 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002180 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002182 esac
2183 fi
2184else
Benny Prijonoe1105232011-10-26 06:49:34 +00002185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002187 >$cache_file
2188fi
2189
2190# Check that the precious variables saved in the cache have kept the same
2191# value.
2192ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002193for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2195 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002196 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2197 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002198 case $ac_old_set,$ac_new_set in
2199 set,)
Benny Prijonoe1105232011-10-26 06:49:34 +00002200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2201$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002202 ac_cache_corrupted=: ;;
2203 ,set)
Benny Prijonoe1105232011-10-26 06:49:34 +00002204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2205$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002206 ac_cache_corrupted=: ;;
2207 ,);;
2208 *)
2209 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002210 # differences in whitespace do not lead to failure.
2211 ac_old_val_w=`echo x $ac_old_val`
2212 ac_new_val_w=`echo x $ac_new_val`
2213 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2215$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2216 ac_cache_corrupted=:
2217 else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2219$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2220 eval $ac_var=\$ac_old_val
2221 fi
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2223$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2225$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002226 fi;;
2227 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002228 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002229 if test "$ac_new_set" = set; then
2230 case $ac_new_val in
Benny Prijonoe1105232011-10-26 06:49:34 +00002231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002232 *) ac_arg=$ac_var=$ac_new_val ;;
2233 esac
2234 case " $ac_configure_args " in
2235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijonoe1105232011-10-26 06:49:34 +00002236 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002237 esac
2238 fi
2239done
2240if $ac_cache_corrupted; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2244$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2245 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002246fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002247## -------------------- ##
2248## Main body of script. ##
2249## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002250
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002251ac_ext=c
2252ac_cpp='$CPP $CPPFLAGS'
2253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002257
2258
Benny Prijono5b818b22006-09-17 22:58:51 +00002259host_orig="$host"
2260
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002261ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002262for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijonoe1105232011-10-26 06:49:34 +00002263 for ac_t in install-sh install.sh shtool; do
2264 if test -f "$ac_dir/$ac_t"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/$ac_t -c"
2267 break 2
2268 fi
2269 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002270done
2271if test -z "$ac_aux_dir"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002272 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002273fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002274
2275# These three variables are undocumented and unsupported,
2276# and are intended to be withdrawn in a future Autoconf release.
2277# They can cause serious problems if a builder's source tree is in a directory
2278# whose full name contains unusual characters.
2279ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002283
2284# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002285$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijonoe1105232011-10-26 06:49:34 +00002286 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002287
Benny Prijonoe1105232011-10-26 06:49:34 +00002288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2289$as_echo_n "checking build system type... " >&6; }
2290if test "${ac_cv_build+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002292else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002293 ac_build_alias=$build_alias
2294test "x$ac_build_alias" = x &&
2295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2296test "x$ac_build_alias" = x &&
Benny Prijonoe1105232011-10-26 06:49:34 +00002297 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002298ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijonoe1105232011-10-26 06:49:34 +00002299 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002300
2301fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2303$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002304case $ac_cv_build in
2305*-*-*) ;;
Benny Prijonoe1105232011-10-26 06:49:34 +00002306*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002307esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002308build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002309ac_save_IFS=$IFS; IFS='-'
2310set x $ac_cv_build
2311shift
2312build_cpu=$1
2313build_vendor=$2
2314shift; shift
2315# Remember, the first character of IFS is used to create $*,
2316# except with old shells:
2317build_os=$*
2318IFS=$ac_save_IFS
2319case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002320
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002321
Benny Prijonoe1105232011-10-26 06:49:34 +00002322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2323$as_echo_n "checking host system type... " >&6; }
2324if test "${ac_cv_host+set}" = set; then :
2325 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002326else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002327 if test "x$host_alias" = x; then
2328 ac_cv_host=$ac_cv_build
2329else
2330 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijonoe1105232011-10-26 06:49:34 +00002331 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002332fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002333
2334fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2336$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002337case $ac_cv_host in
2338*-*-*) ;;
Benny Prijonoe1105232011-10-26 06:49:34 +00002339*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002340esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002341host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002342ac_save_IFS=$IFS; IFS='-'
2343set x $ac_cv_host
2344shift
2345host_cpu=$1
2346host_vendor=$2
2347shift; shift
2348# Remember, the first character of IFS is used to create $*,
2349# except with old shells:
2350host_os=$*
2351IFS=$ac_save_IFS
2352case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002353
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002354
Benny Prijonoe1105232011-10-26 06:49:34 +00002355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2356$as_echo_n "checking target system type... " >&6; }
2357if test "${ac_cv_target+set}" = set; then :
2358 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002359else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002360 if test "x$target_alias" = x; then
2361 ac_cv_target=$ac_cv_host
2362else
2363 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijonoe1105232011-10-26 06:49:34 +00002364 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002365fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002366
2367fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2369$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002370case $ac_cv_target in
2371*-*-*) ;;
Benny Prijonoe1105232011-10-26 06:49:34 +00002372*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002373esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002374target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002375ac_save_IFS=$IFS; IFS='-'
2376set x $ac_cv_target
2377shift
2378target_cpu=$1
2379target_vendor=$2
2380shift; shift
2381# Remember, the first character of IFS is used to create $*,
2382# except with old shells:
2383target_os=$*
2384IFS=$ac_save_IFS
2385case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002386
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002387
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002388# The aliases save the names the user supplied, while $host etc.
2389# will get canonicalized.
2390test -n "$target_alias" &&
2391 test "$program_prefix$program_suffix$program_transform_name" = \
2392 NONENONEs,x,x, &&
2393 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002394ac_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"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002395
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002396ac_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"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002397
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002398
Benny Prijono12483112007-03-12 10:44:38 +00002399
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002400if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002401 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002402else
2403 CFLAGS="$CFLAGS"
2404fi
2405
2406CXXFLAGS="$CFLAGS $CXXFLAGS"
2407
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2415set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonoe1105232011-10-26 06:49:34 +00002416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417$as_echo_n "checking for $ac_word... " >&6; }
2418if test "${ac_cv_prog_CC+set}" = set; then :
2419 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002420else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00002429 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijonoe1105232011-10-26 06:49:34 +00002432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002433 break 2
2434 fi
2435done
Benny Prijonoe1105232011-10-26 06:49:34 +00002436 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002437IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002438
2439fi
2440fi
2441CC=$ac_cv_prog_CC
2442if test -n "$CC"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2444$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002445else
Benny Prijonoe1105232011-10-26 06:49:34 +00002446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002448fi
2449
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002450
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002451fi
2452if test -z "$ac_cv_prog_CC"; then
2453 ac_ct_CC=$CC
2454 # Extract the first word of "gcc", so it can be a program name with args.
2455set dummy gcc; ac_word=$2
Benny Prijonoe1105232011-10-26 06:49:34 +00002456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
2458if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2459 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002460else
2461 if test -n "$ac_ct_CC"; then
2462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00002469 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002471 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijonoe1105232011-10-26 06:49:34 +00002472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002473 break 2
2474 fi
2475done
Benny Prijonoe1105232011-10-26 06:49:34 +00002476 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002477IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002478
2479fi
2480fi
2481ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482if test -n "$ac_ct_CC"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2484$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002485else
Benny Prijonoe1105232011-10-26 06:49:34 +00002486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002488fi
2489
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002490 if test "x$ac_ct_CC" = x; then
2491 CC=""
2492 else
2493 case $cross_compiling:$ac_tool_warned in
2494yes:)
Benny Prijonoe1105232011-10-26 06:49:34 +00002495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002497ac_tool_warned=yes ;;
2498esac
2499 CC=$ac_ct_CC
2500 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002501else
2502 CC="$ac_cv_prog_CC"
2503fi
2504
2505if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002506 if test -n "$ac_tool_prefix"; then
2507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002508set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonoe1105232011-10-26 06:49:34 +00002509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510$as_echo_n "checking for $ac_word... " >&6; }
2511if test "${ac_cv_prog_CC+set}" = set; then :
2512 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002513else
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2516else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00002522 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002524 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijonoe1105232011-10-26 06:49:34 +00002525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002526 break 2
2527 fi
2528done
Benny Prijonoe1105232011-10-26 06:49:34 +00002529 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002530IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002531
2532fi
2533fi
2534CC=$ac_cv_prog_CC
2535if test -n "$CC"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2537$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002538else
Benny Prijonoe1105232011-10-26 06:49:34 +00002539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002541fi
2542
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002543
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002544 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002545fi
2546if test -z "$CC"; then
2547 # Extract the first word of "cc", so it can be a program name with args.
2548set dummy cc; ac_word=$2
Benny Prijonoe1105232011-10-26 06:49:34 +00002549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
2551if test "${ac_cv_prog_CC+set}" = set; then :
2552 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002553else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00002563 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002565 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2566 ac_prog_rejected=yes
2567 continue
2568 fi
2569 ac_cv_prog_CC="cc"
Benny Prijonoe1105232011-10-26 06:49:34 +00002570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002571 break 2
2572 fi
2573done
Benny Prijonoe1105232011-10-26 06:49:34 +00002574 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002575IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002576
2577if test $ac_prog_rejected = yes; then
2578 # We found a bogon in the path, so make sure we never use it.
2579 set dummy $ac_cv_prog_CC
2580 shift
2581 if test $# != 0; then
2582 # We chose a different compiler from the bogus one.
2583 # However, it has the same basename, so the bogon will be chosen
2584 # first if we set CC to just the basename; use the full file name.
2585 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002587 fi
2588fi
2589fi
2590fi
2591CC=$ac_cv_prog_CC
2592if test -n "$CC"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2594$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002595else
Benny Prijonoe1105232011-10-26 06:49:34 +00002596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002598fi
2599
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002600
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002601fi
2602if test -z "$CC"; then
2603 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002604 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002605 do
2606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonoe1105232011-10-26 06:49:34 +00002608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609$as_echo_n "checking for $ac_word... " >&6; }
2610if test "${ac_cv_prog_CC+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002612else
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2615else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00002621 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijonoe1105232011-10-26 06:49:34 +00002624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002625 break 2
2626 fi
2627done
Benny Prijonoe1105232011-10-26 06:49:34 +00002628 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002629IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002630
2631fi
2632fi
2633CC=$ac_cv_prog_CC
2634if test -n "$CC"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002637else
Benny Prijonoe1105232011-10-26 06:49:34 +00002638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002640fi
2641
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002642
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002643 test -n "$CC" && break
2644 done
2645fi
2646if test -z "$CC"; then
2647 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002648 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002649do
2650 # Extract the first word of "$ac_prog", so it can be a program name with args.
2651set dummy $ac_prog; ac_word=$2
Benny Prijonoe1105232011-10-26 06:49:34 +00002652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653$as_echo_n "checking for $ac_word... " >&6; }
2654if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2655 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002656else
2657 if test -n "$ac_ct_CC"; then
2658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00002665 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002667 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijonoe1105232011-10-26 06:49:34 +00002668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002669 break 2
2670 fi
2671done
Benny Prijonoe1105232011-10-26 06:49:34 +00002672 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002673IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002674
2675fi
2676fi
2677ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678if test -n "$ac_ct_CC"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00002679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2680$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002681else
Benny Prijonoe1105232011-10-26 06:49:34 +00002682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002684fi
2685
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002686
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002687 test -n "$ac_ct_CC" && break
2688done
2689
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002690 if test "x$ac_ct_CC" = x; then
2691 CC=""
2692 else
2693 case $cross_compiling:$ac_tool_warned in
2694yes:)
Benny Prijonoe1105232011-10-26 06:49:34 +00002695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002697ac_tool_warned=yes ;;
2698esac
2699 CC=$ac_ct_CC
2700 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002701fi
2702
2703fi
2704
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002705
Benny Prijonoe1105232011-10-26 06:49:34 +00002706test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708as_fn_error "no acceptable C compiler found in \$PATH
2709See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002710
2711# Provide some information about the compiler.
Benny Prijonoe1105232011-10-26 06:49:34 +00002712$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2713set X $ac_compile
2714ac_compiler=$2
2715for ac_option in --version -v -V -qversion; do
2716 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
Benny Prijonoe1105232011-10-26 06:49:34 +00002721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2722$as_echo "$ac_try_echo"; } >&5
2723 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002724 ac_status=$?
Benny Prijonoe1105232011-10-26 06:49:34 +00002725 if test -s conftest.err; then
2726 sed '10a\
2727... rest of stderr output deleted ...
2728 10q' conftest.err >conftest.er1
2729 cat conftest.er1 >&5
2730 fi
2731 rm -f conftest.er1 conftest.err
2732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733 test $ac_status = 0; }
2734done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002735
Benny Prijonoe1105232011-10-26 06:49:34 +00002736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002737/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002738
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002739int
2740main ()
2741{
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747ac_clean_files_save=$ac_clean_files
Benny Prijonoe1105232011-10-26 06:49:34 +00002748ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002749# Try to create an executable without -o first, disregard a.out.
2750# It will help us diagnose broken compilers, and finding out an intuition
2751# of exeext.
Benny Prijonoe1105232011-10-26 06:49:34 +00002752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2753$as_echo_n "checking whether the C compiler works... " >&6; }
2754ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755
2756# The possible output files:
2757ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2758
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002759ac_rmfiles=
2760for ac_file in $ac_files
2761do
2762 case $ac_file in
Benny Prijonoe1105232011-10-26 06:49:34 +00002763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002764 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2765 esac
2766done
2767rm -f $ac_rmfiles
2768
Benny Prijonoe1105232011-10-26 06:49:34 +00002769if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
Benny Prijonoe1105232011-10-26 06:49:34 +00002774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002776 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002777 ac_status=$?
Benny Prijonoe1105232011-10-26 06:49:34 +00002778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002780 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2781# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2782# in a Makefile. We should not override ac_cv_exeext if it was cached,
2783# so that the user can short-circuit this test for compilers unknown to
2784# Autoconf.
2785for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002786do
2787 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002788 case $ac_file in
Benny Prijonoe1105232011-10-26 06:49:34 +00002789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002790 ;;
2791 [ab].out )
2792 # We found the default executable, but exeext='' is most
2793 # certainly right.
2794 break;;
2795 *.* )
Benny Prijonoe1105232011-10-26 06:49:34 +00002796 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002797 then :; else
2798 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799 fi
2800 # We set ac_cv_exeext here because the later test for it is not
2801 # safe: cross compilers may not add the suffix if given an `-o'
2802 # argument, so we may need to know it at that point already.
2803 # Even if this section looks crufty: it has the advantage of
2804 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002805 break;;
2806 * )
2807 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002808 esac
2809done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002810test "$ac_cv_exeext" = no && ac_cv_exeext=
2811
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002812else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002813 ac_file=''
2814fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002815if test -z "$ac_file"; then :
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
2818$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002819sed 's/^/| /' conftest.$ac_ext >&5
2820
Benny Prijonoe1105232011-10-26 06:49:34 +00002821{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823{ as_fn_set_status 77
2824as_fn_error "C compiler cannot create executables
2825See \`config.log' for more details." "$LINENO" 5; }; }
2826else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2828$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002829fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2831$as_echo_n "checking for C compiler default output file name... " >&6; }
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2833$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002834ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002835
Benny Prijonoe1105232011-10-26 06:49:34 +00002836rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002837ac_clean_files=$ac_clean_files_save
Benny Prijonoe1105232011-10-26 06:49:34 +00002838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2839$as_echo_n "checking for suffix of executables... " >&6; }
2840if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002841case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
Benny Prijonoe1105232011-10-26 06:49:34 +00002845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002847 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002848 ac_status=$?
Benny Prijonoe1105232011-10-26 06:49:34 +00002849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002851 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2852# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2853# work properly (i.e., refer to `conftest.exe'), while it won't with
2854# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002855for ac_file in conftest.exe conftest conftest.*; do
2856 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002857 case $ac_file in
Benny Prijonoe1105232011-10-26 06:49:34 +00002858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002859 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002860 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002861 * ) break;;
2862 esac
2863done
2864else
Benny Prijonoe1105232011-10-26 06:49:34 +00002865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2867as_fn_error "cannot compute suffix of executables: cannot compile and link
2868See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002869fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002870rm -f conftest conftest$ac_cv_exeext
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2872$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002873
2874rm -f conftest.$ac_ext
2875EXEEXT=$ac_cv_exeext
2876ac_exeext=$EXEEXT
Benny Prijonoe1105232011-10-26 06:49:34 +00002877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878/* end confdefs.h. */
2879#include <stdio.h>
2880int
2881main ()
2882{
2883FILE *f = fopen ("conftest.out", "w");
2884 return ferror (f) || fclose (f) != 0;
2885
2886 ;
2887 return 0;
2888}
Sauw Minge7dbbc82011-10-24 09:28:13 +00002889_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00002890ac_clean_files="$ac_clean_files conftest.out"
2891# Check that the compiler produces executables we can run. If not, either
2892# the compiler is broken, or we cross compile.
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2894$as_echo_n "checking whether we are cross compiling... " >&6; }
2895if test "$cross_compiling" != yes; then
2896 { { ac_try="$ac_link"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902$as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_link") 2>&5
2904 ac_status=$?
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }
2907 if { ac_try='./conftest$ac_cv_exeext'
2908 { { case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911esac
2912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913$as_echo "$ac_try_echo"; } >&5
2914 (eval "$ac_try") 2>&5
2915 ac_status=$?
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }; }; then
2918 cross_compiling=no
2919 else
2920 if test "$cross_compiling" = maybe; then
2921 cross_compiling=yes
2922 else
2923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2925as_fn_error "cannot run C compiled programs.
2926If you meant to cross compile, use \`--host'.
2927See \`config.log' for more details." "$LINENO" 5; }
2928 fi
2929 fi
2930fi
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2932$as_echo "$cross_compiling" >&6; }
2933
2934rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2935ac_clean_files=$ac_clean_files_save
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2937$as_echo_n "checking for suffix of object files... " >&6; }
2938if test "${ac_cv_objext+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
2940else
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002942/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.o conftest.obj
Benny Prijonoe1105232011-10-26 06:49:34 +00002953if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
Benny Prijonoe1105232011-10-26 06:49:34 +00002958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002960 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002961 ac_status=$?
Benny Prijonoe1105232011-10-26 06:49:34 +00002962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002964 for ac_file in conftest.o conftest.obj conftest.*; do
2965 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002966 case $ac_file in
Benny Prijonoe1105232011-10-26 06:49:34 +00002967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2969 break;;
2970 esac
2971done
2972else
Benny Prijonoe1105232011-10-26 06:49:34 +00002973 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002974sed 's/^/| /' conftest.$ac_ext >&5
2975
Benny Prijonoe1105232011-10-26 06:49:34 +00002976{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978as_fn_error "cannot compute suffix of object files: cannot compile
2979See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002980fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002981rm -f conftest.$ac_cv_objext conftest.$ac_ext
2982fi
Benny Prijonoe1105232011-10-26 06:49:34 +00002983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2984$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002985OBJEXT=$ac_cv_objext
2986ac_objext=$OBJEXT
Benny Prijonoe1105232011-10-26 06:49:34 +00002987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2988$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2989if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002991else
Benny Prijonoe1105232011-10-26 06:49:34 +00002992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002993/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002994
2995int
2996main ()
2997{
2998#ifndef __GNUC__
2999 choke me
3000#endif
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003006if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003007 ac_compiler_gnu=yes
3008else
Benny Prijonoe1105232011-10-26 06:49:34 +00003009 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003010fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003012ac_cv_c_compiler_gnu=$ac_compiler_gnu
3013
3014fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3016$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3017if test $ac_compiler_gnu = yes; then
3018 GCC=yes
3019else
3020 GCC=
3021fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003022ac_test_CFLAGS=${CFLAGS+set}
3023ac_save_CFLAGS=$CFLAGS
Benny Prijonoe1105232011-10-26 06:49:34 +00003024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3025$as_echo_n "checking whether $CC accepts -g... " >&6; }
3026if test "${ac_cv_prog_cc_g+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003028else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003029 ac_save_c_werror_flag=$ac_c_werror_flag
3030 ac_c_werror_flag=yes
3031 ac_cv_prog_cc_g=no
3032 CFLAGS="-g"
Benny Prijonoe1105232011-10-26 06:49:34 +00003033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003034/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003035
3036int
3037main ()
3038{
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003044if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003045 ac_cv_prog_cc_g=yes
3046else
Benny Prijonoe1105232011-10-26 06:49:34 +00003047 CFLAGS=""
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003049/* end confdefs.h. */
3050
3051int
3052main ()
3053{
3054
3055 ;
3056 return 0;
3057}
3058_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003059if ac_fn_c_try_compile "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00003060
Benny Prijonoe1105232011-10-26 06:49:34 +00003061else
3062 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003063 CFLAGS="-g"
Benny Prijonoe1105232011-10-26 06:49:34 +00003064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003065/* end confdefs.h. */
3066
3067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003075if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003076 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003077fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003079fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_c_werror_flag=$ac_save_c_werror_flag
3084fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3086$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003087if test "$ac_test_CFLAGS" = set; then
3088 CFLAGS=$ac_save_CFLAGS
3089elif test $ac_cv_prog_cc_g = yes; then
3090 if test "$GCC" = yes; then
3091 CFLAGS="-g -O2"
3092 else
3093 CFLAGS="-g"
3094 fi
3095else
3096 if test "$GCC" = yes; then
3097 CFLAGS="-O2"
3098 else
3099 CFLAGS=
3100 fi
3101fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3103$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3104if test "${ac_cv_prog_cc_c89+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003106else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003107 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003108ac_save_CC=$CC
Benny Prijonoe1105232011-10-26 06:49:34 +00003109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003110/* end confdefs.h. */
3111#include <stdarg.h>
3112#include <stdio.h>
3113#include <sys/types.h>
3114#include <sys/stat.h>
3115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3116struct buf { int x; };
3117FILE * (*rcsopen) (struct buf *, struct stat *, int);
3118static char *e (p, i)
3119 char **p;
3120 int i;
3121{
3122 return p[i];
3123}
3124static char *f (char * (*g) (char **, int), char **p, ...)
3125{
3126 char *s;
3127 va_list v;
3128 va_start (v,p);
3129 s = g (p, va_arg (v,int));
3130 va_end (v);
3131 return s;
3132}
3133
3134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3135 function prototypes and stuff, but not '\xHH' hex character constants.
3136 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003137 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3139 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003140 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003141int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3142
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003143/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3144 inside strings and character constants. */
3145#define FOO(x) 'x'
3146int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3147
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003148int test (int i, double x);
3149struct s1 {int (*f) (int a);};
3150struct s2 {int (*f) (double a);};
3151int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3152int argc;
3153char **argv;
3154int
3155main ()
3156{
3157return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3158 ;
3159 return 0;
3160}
3161_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003162for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3163 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003164do
3165 CC="$ac_save_CC $ac_arg"
Benny Prijonoe1105232011-10-26 06:49:34 +00003166 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003167 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003168fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003169rm -f core conftest.err conftest.$ac_objext
3170 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003171done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003172rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003173CC=$ac_save_CC
3174
3175fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003176# AC_CACHE_VAL
3177case "x$ac_cv_prog_cc_c89" in
3178 x)
Benny Prijonoe1105232011-10-26 06:49:34 +00003179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3180$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003181 xno)
Benny Prijonoe1105232011-10-26 06:49:34 +00003182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3183$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003184 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003185 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijonoe1105232011-10-26 06:49:34 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3187$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003188esac
Benny Prijonoe1105232011-10-26 06:49:34 +00003189if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003190
Benny Prijonoe1105232011-10-26 06:49:34 +00003191fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003192
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003193ac_ext=c
3194ac_cpp='$CPP $CPPFLAGS'
3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003199ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003200ac_cpp='$CXXCPP $CPPFLAGS'
3201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003204if test -z "$CXX"; then
3205 if test -n "$CCC"; then
3206 CXX=$CCC
3207 else
3208 if test -n "$ac_tool_prefix"; then
3209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003210 do
3211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonoe1105232011-10-26 06:49:34 +00003213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if test "${ac_cv_prog_CXX+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003217else
3218 if test -n "$CXX"; then
3219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3220else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00003226 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijonoe1105232011-10-26 06:49:34 +00003229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003230 break 2
3231 fi
3232done
Benny Prijonoe1105232011-10-26 06:49:34 +00003233 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003234IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003235
3236fi
3237fi
3238CXX=$ac_cv_prog_CXX
3239if test -n "$CXX"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00003240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3241$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003242else
Benny Prijonoe1105232011-10-26 06:49:34 +00003243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003245fi
3246
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003247
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003248 test -n "$CXX" && break
3249 done
3250fi
3251if test -z "$CXX"; then
3252 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003254do
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256set dummy $ac_prog; ac_word=$2
Benny Prijonoe1105232011-10-26 06:49:34 +00003257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258$as_echo_n "checking for $ac_word... " >&6; }
3259if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003261else
3262 if test -n "$ac_ct_CXX"; then
3263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3264else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00003270 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003272 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijonoe1105232011-10-26 06:49:34 +00003273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003274 break 2
3275 fi
3276done
Benny Prijonoe1105232011-10-26 06:49:34 +00003277 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003278IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003279
3280fi
3281fi
3282ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3283if test -n "$ac_ct_CXX"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00003284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3285$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003286else
Benny Prijonoe1105232011-10-26 06:49:34 +00003287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003289fi
3290
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003291
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003292 test -n "$ac_ct_CXX" && break
3293done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003294
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003295 if test "x$ac_ct_CXX" = x; then
3296 CXX="g++"
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299yes:)
Benny Prijonoe1105232011-10-26 06:49:34 +00003300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003302ac_tool_warned=yes ;;
3303esac
3304 CXX=$ac_ct_CXX
3305 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003306fi
3307
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003308 fi
3309fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003310# Provide some information about the compiler.
Benny Prijonoe1105232011-10-26 06:49:34 +00003311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3312set X $ac_compile
3313ac_compiler=$2
3314for ac_option in --version -v -V -qversion; do
3315 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
Benny Prijonoe1105232011-10-26 06:49:34 +00003320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003323 ac_status=$?
Benny Prijonoe1105232011-10-26 06:49:34 +00003324 if test -s conftest.err; then
3325 sed '10a\
3326... rest of stderr output deleted ...
3327 10q' conftest.err >conftest.er1
3328 cat conftest.er1 >&5
3329 fi
3330 rm -f conftest.er1 conftest.err
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }
3333done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003334
Benny Prijonoe1105232011-10-26 06:49:34 +00003335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3336$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3337if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3338 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003339else
Benny Prijonoe1105232011-10-26 06:49:34 +00003340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003341/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003342
3343int
3344main ()
3345{
3346#ifndef __GNUC__
3347 choke me
3348#endif
3349
3350 ;
3351 return 0;
3352}
3353_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003354if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003355 ac_compiler_gnu=yes
3356else
Benny Prijonoe1105232011-10-26 06:49:34 +00003357 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003358fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003360ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3361
3362fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3364$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3365if test $ac_compiler_gnu = yes; then
3366 GXX=yes
3367else
3368 GXX=
3369fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003370ac_test_CXXFLAGS=${CXXFLAGS+set}
3371ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijonoe1105232011-10-26 06:49:34 +00003372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3373$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3374if test "${ac_cv_prog_cxx_g+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003376else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003377 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3378 ac_cxx_werror_flag=yes
3379 ac_cv_prog_cxx_g=no
3380 CXXFLAGS="-g"
Benny Prijonoe1105232011-10-26 06:49:34 +00003381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003382/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003383
3384int
3385main ()
3386{
3387
3388 ;
3389 return 0;
3390}
3391_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003392if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003393 ac_cv_prog_cxx_g=yes
3394else
Benny Prijonoe1105232011-10-26 06:49:34 +00003395 CXXFLAGS=""
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003397/* end confdefs.h. */
3398
3399int
3400main ()
3401{
3402
3403 ;
3404 return 0;
3405}
3406_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003407if ac_fn_cxx_try_compile "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00003408
Benny Prijonoe1105232011-10-26 06:49:34 +00003409else
3410 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003411 CXXFLAGS="-g"
Benny Prijonoe1105232011-10-26 06:49:34 +00003412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003413/* end confdefs.h. */
3414
3415int
3416main ()
3417{
3418
3419 ;
3420 return 0;
3421}
3422_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003423if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003424 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003425fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003427fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3432fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3434$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003435if test "$ac_test_CXXFLAGS" = set; then
3436 CXXFLAGS=$ac_save_CXXFLAGS
3437elif test $ac_cv_prog_cxx_g = yes; then
3438 if test "$GXX" = yes; then
3439 CXXFLAGS="-g -O2"
3440 else
3441 CXXFLAGS="-g"
3442 fi
3443else
3444 if test "$GXX" = yes; then
3445 CXXFLAGS="-O2"
3446 else
3447 CXXFLAGS=
3448 fi
3449fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003450ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003456ac_ext=c
3457ac_cpp='$CPP $CPPFLAGS'
3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003462
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003463if test -z "$CROSS_COMPILE"; then
3464 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3465fi
3466
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003467if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003468
3469if test "$LD" = ""; then LD="$CC"; fi
3470
Sauw Minge7dbbc82011-10-24 09:28:13 +00003471if test "$LDOUT" = ""; then LDOUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003472
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003473if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003474
3475if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3476
3477if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3478
3479if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3480
Sauw Minge7dbbc82011-10-24 09:28:13 +00003481if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003482
3483if test "$CC_INC" = ""; then CC_INC="-I"; fi
3484
3485if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3486
3487if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3488
3489if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3490
3491
3492
3493
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003494
Benny Prijono0822c192008-08-21 20:59:58 +00003495
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003496
3497case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003498 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003499 if pwd -W 2&> /dev/null; then
3500 ac_pjdir=`pwd -W`
3501 else
3502 # We're probably cross-compiling mingw on Linux
3503 ac_pjdir=`pwd`
3504 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003505 ;;
3506 *)
3507 ac_pjdir=`pwd`
3508 ;;
3509esac
Benny Prijono12483112007-03-12 10:44:38 +00003510
3511
Benny Prijonoe1105232011-10-26 06:49:34 +00003512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3513$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3514if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003516else
3517 ac_check_lib_save_LIBS=$LIBS
3518LIBS="-lpthread $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003520/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003521
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003522/* Override any GCC internal prototype to avoid an error.
3523 Use char because int might match the return type of a GCC
3524 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003525#ifdef __cplusplus
3526extern "C"
3527#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003528char pthread_create ();
3529int
3530main ()
3531{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003532return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003533 ;
3534 return 0;
3535}
3536_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003537if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003538 ac_cv_lib_pthread_pthread_create=yes
3539else
Benny Prijonoe1105232011-10-26 06:49:34 +00003540 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003541fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003542rm -f core conftest.err conftest.$ac_objext \
3543 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003544LIBS=$ac_check_lib_save_LIBS
3545fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3547$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3548if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003549 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003550#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003551_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003552
3553 LIBS="-lpthread $LIBS"
3554
3555fi
3556
Benny Prijonoe1105232011-10-26 06:49:34 +00003557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3558$as_echo_n "checking for puts in -lwsock32... " >&6; }
3559if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003561else
3562 ac_check_lib_save_LIBS=$LIBS
3563LIBS="-lwsock32 $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003565/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003566
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003567/* Override any GCC internal prototype to avoid an error.
3568 Use char because int might match the return type of a GCC
3569 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003570#ifdef __cplusplus
3571extern "C"
3572#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003573char puts ();
3574int
3575main ()
3576{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003577return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003578 ;
3579 return 0;
3580}
3581_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003582if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003583 ac_cv_lib_wsock32_puts=yes
3584else
Benny Prijonoe1105232011-10-26 06:49:34 +00003585 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003586fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003587rm -f core conftest.err conftest.$ac_objext \
3588 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003589LIBS=$ac_check_lib_save_LIBS
3590fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3592$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3593if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003594 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003595#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003596_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003597
3598 LIBS="-lwsock32 $LIBS"
3599
3600fi
3601
Benny Prijonoe1105232011-10-26 06:49:34 +00003602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3603$as_echo_n "checking for puts in -lws2_32... " >&6; }
3604if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003606else
3607 ac_check_lib_save_LIBS=$LIBS
3608LIBS="-lws2_32 $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003610/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003611
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003612/* Override any GCC internal prototype to avoid an error.
3613 Use char because int might match the return type of a GCC
3614 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003615#ifdef __cplusplus
3616extern "C"
3617#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003618char puts ();
3619int
3620main ()
3621{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003622return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003623 ;
3624 return 0;
3625}
3626_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003627if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003628 ac_cv_lib_ws2_32_puts=yes
3629else
Benny Prijonoe1105232011-10-26 06:49:34 +00003630 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003632rm -f core conftest.err conftest.$ac_objext \
3633 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003634LIBS=$ac_check_lib_save_LIBS
3635fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3637$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3638if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003639 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003640#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003641_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003642
3643 LIBS="-lws2_32 $LIBS"
3644
3645fi
3646
Benny Prijonoe1105232011-10-26 06:49:34 +00003647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3648$as_echo_n "checking for puts in -lole32... " >&6; }
3649if test "${ac_cv_lib_ole32_puts+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003651else
3652 ac_check_lib_save_LIBS=$LIBS
3653LIBS="-lole32 $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003655/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003656
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003657/* Override any GCC internal prototype to avoid an error.
3658 Use char because int might match the return type of a GCC
3659 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003660#ifdef __cplusplus
3661extern "C"
3662#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003663char puts ();
3664int
3665main ()
3666{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003667return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003668 ;
3669 return 0;
3670}
3671_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003672if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003673 ac_cv_lib_ole32_puts=yes
3674else
Benny Prijonoe1105232011-10-26 06:49:34 +00003675 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003676fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003677rm -f core conftest.err conftest.$ac_objext \
3678 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003679LIBS=$ac_check_lib_save_LIBS
3680fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3682$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3683if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003684 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003685#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003686_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003687
3688 LIBS="-lole32 $LIBS"
3689
3690fi
3691
Benny Prijonoe1105232011-10-26 06:49:34 +00003692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3693$as_echo_n "checking for puts in -lwinmm... " >&6; }
3694if test "${ac_cv_lib_winmm_puts+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003696else
3697 ac_check_lib_save_LIBS=$LIBS
3698LIBS="-lwinmm $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003700/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003701
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003702/* Override any GCC internal prototype to avoid an error.
3703 Use char because int might match the return type of a GCC
3704 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003705#ifdef __cplusplus
3706extern "C"
3707#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003708char puts ();
3709int
3710main ()
3711{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003712return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003713 ;
3714 return 0;
3715}
3716_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003717if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003718 ac_cv_lib_winmm_puts=yes
3719else
Benny Prijonoe1105232011-10-26 06:49:34 +00003720 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003721fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003722rm -f core conftest.err conftest.$ac_objext \
3723 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003724LIBS=$ac_check_lib_save_LIBS
3725fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3727$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3728if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003729 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003730#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003731_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003732
3733 LIBS="-lwinmm $LIBS"
3734
3735fi
3736
Benny Prijonoe1105232011-10-26 06:49:34 +00003737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3738$as_echo_n "checking for puts in -lsocket... " >&6; }
3739if test "${ac_cv_lib_socket_puts+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003741else
3742 ac_check_lib_save_LIBS=$LIBS
3743LIBS="-lsocket $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003745/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003746
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003747/* Override any GCC internal prototype to avoid an error.
3748 Use char because int might match the return type of a GCC
3749 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003750#ifdef __cplusplus
3751extern "C"
3752#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003753char puts ();
3754int
3755main ()
3756{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003757return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003758 ;
3759 return 0;
3760}
3761_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003762if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003763 ac_cv_lib_socket_puts=yes
3764else
Benny Prijonoe1105232011-10-26 06:49:34 +00003765 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003766fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003767rm -f core conftest.err conftest.$ac_objext \
3768 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003769LIBS=$ac_check_lib_save_LIBS
3770fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3772$as_echo "$ac_cv_lib_socket_puts" >&6; }
3773if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003774 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003776_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003777
3778 LIBS="-lsocket $LIBS"
3779
3780fi
3781
Benny Prijonoe1105232011-10-26 06:49:34 +00003782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3783$as_echo_n "checking for puts in -lrt... " >&6; }
3784if test "${ac_cv_lib_rt_puts+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003786else
3787 ac_check_lib_save_LIBS=$LIBS
3788LIBS="-lrt $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003790/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003791
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003792/* Override any GCC internal prototype to avoid an error.
3793 Use char because int might match the return type of a GCC
3794 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003795#ifdef __cplusplus
3796extern "C"
3797#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003798char puts ();
3799int
3800main ()
3801{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003802return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003803 ;
3804 return 0;
3805}
3806_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003807if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003808 ac_cv_lib_rt_puts=yes
3809else
Benny Prijonoe1105232011-10-26 06:49:34 +00003810 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003811fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003812rm -f core conftest.err conftest.$ac_objext \
3813 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003814LIBS=$ac_check_lib_save_LIBS
3815fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3817$as_echo "$ac_cv_lib_rt_puts" >&6; }
3818if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003819 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003820#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003821_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003822
3823 LIBS="-lrt $LIBS"
3824
3825fi
3826
Benny Prijonoe1105232011-10-26 06:49:34 +00003827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3828$as_echo_n "checking for puts in -lnsl... " >&6; }
3829if test "${ac_cv_lib_nsl_puts+set}" = set; then :
3830 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003831else
3832 ac_check_lib_save_LIBS=$LIBS
3833LIBS="-lnsl $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003835/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003836
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003837/* Override any GCC internal prototype to avoid an error.
3838 Use char because int might match the return type of a GCC
3839 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003840#ifdef __cplusplus
3841extern "C"
3842#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003843char puts ();
3844int
3845main ()
3846{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003847return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003848 ;
3849 return 0;
3850}
3851_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003852if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003853 ac_cv_lib_nsl_puts=yes
3854else
Benny Prijonoe1105232011-10-26 06:49:34 +00003855 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003856fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003857rm -f core conftest.err conftest.$ac_objext \
3858 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003859LIBS=$ac_check_lib_save_LIBS
3860fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3862$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3863if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003864 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003865#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003866_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003867
3868 LIBS="-lnsl $LIBS"
3869
3870fi
3871
Benny Prijonoe1105232011-10-26 06:49:34 +00003872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3873$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3874if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003876else
3877 ac_check_lib_save_LIBS=$LIBS
3878LIBS="-luuid $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003880/* end confdefs.h. */
3881
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003882/* Override any GCC internal prototype to avoid an error.
3883 Use char because int might match the return type of a GCC
3884 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003885#ifdef __cplusplus
3886extern "C"
3887#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003888char uuid_generate ();
3889int
3890main ()
3891{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003892return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003893 ;
3894 return 0;
3895}
3896_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003897if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003898 ac_cv_lib_uuid_uuid_generate=yes
3899else
Benny Prijonoe1105232011-10-26 06:49:34 +00003900 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003901fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003902rm -f core conftest.err conftest.$ac_objext \
3903 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003904LIBS=$ac_check_lib_save_LIBS
3905fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3907$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3908if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003909 cat >>confdefs.h <<_ACEOF
3910#define HAVE_LIBUUID 1
3911_ACEOF
3912
3913 LIBS="-luuid $LIBS"
3914
3915fi
3916
Benny Prijonoe1105232011-10-26 06:49:34 +00003917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3918$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3919if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003921else
3922 ac_check_lib_save_LIBS=$LIBS
3923LIBS="-luuid $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00003924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003925/* end confdefs.h. */
3926
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003927/* Override any GCC internal prototype to avoid an error.
3928 Use char because int might match the return type of a GCC
3929 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003930#ifdef __cplusplus
3931extern "C"
3932#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003933char uuid_generate ();
3934int
3935main ()
3936{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003937return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003938 ;
3939 return 0;
3940}
3941_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00003942if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003943 ac_cv_lib_uuid_uuid_generate=yes
3944else
Benny Prijonoe1105232011-10-26 06:49:34 +00003945 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003946fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003947rm -f core conftest.err conftest.$ac_objext \
3948 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003949LIBS=$ac_check_lib_save_LIBS
3950fi
Benny Prijonoe1105232011-10-26 06:49:34 +00003951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3952$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3953if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003954 ac_has_uuid_lib=1
3955fi
3956
3957
Benny Prijonoe1105232011-10-26 06:49:34 +00003958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
3959$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003960cat >>confdefs.h <<_ACEOF
3961#define PJ_M_NAME "$target_cpu"
3962_ACEOF
3963
3964
Benny Prijonoe1105232011-10-26 06:49:34 +00003965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
3966$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003967case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00003968 sparc64-* | ia64-* | x86_64-* )
Benny Prijonoe1105232011-10-26 06:49:34 +00003969 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003970
Benny Prijonoe1105232011-10-26 06:49:34 +00003971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
3972$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003973 ;;
3974 * )
Benny Prijonoe1105232011-10-26 06:49:34 +00003975 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003976
Benny Prijonoe1105232011-10-26 06:49:34 +00003977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
3978$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003979 ;;
3980esac
3981
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003982
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003983ac_ext=c
3984ac_cpp='$CPP $CPPFLAGS'
3985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijonoe1105232011-10-26 06:49:34 +00003988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3989$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003990# On Suns, sometimes $CPP names a directory.
3991if test -n "$CPP" && test -d "$CPP"; then
3992 CPP=
3993fi
3994if test -z "$CPP"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00003995 if test "${ac_cv_prog_CPP+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003997else
3998 # Double quotes because CPP needs to be expanded
3999 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4000 do
4001 ac_preproc_ok=false
4002for ac_c_preproc_warn_flag in '' yes
4003do
4004 # Use a header file that comes with gcc, so configuring glibc
4005 # with a fresh cross-compiler works.
4006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 # <limits.h> exists even on freestanding compilers.
4008 # On the NeXT, cc -E runs the code through the compiler's parser,
4009 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonoe1105232011-10-26 06:49:34 +00004010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004011/* end confdefs.h. */
4012#ifdef __STDC__
4013# include <limits.h>
4014#else
4015# include <assert.h>
4016#endif
4017 Syntax error
4018_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004019if ac_fn_c_try_cpp "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00004020
Benny Prijonoe1105232011-10-26 06:49:34 +00004021else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004022 # Broken: fails on valid input.
4023continue
4024fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004025rm -f conftest.err conftest.$ac_ext
4026
4027 # OK, works on sane cases. Now check whether nonexistent headers
4028 # can be detected and how.
Benny Prijonoe1105232011-10-26 06:49:34 +00004029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004030/* end confdefs.h. */
4031#include <ac_nonexistent.h>
4032_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004033if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004034 # Broken: success on invalid input.
4035continue
4036else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004037 # Passes both tests.
4038ac_preproc_ok=:
4039break
4040fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004041rm -f conftest.err conftest.$ac_ext
4042
4043done
4044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4045rm -f conftest.err conftest.$ac_ext
Benny Prijonoe1105232011-10-26 06:49:34 +00004046if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004047 break
4048fi
4049
4050 done
4051 ac_cv_prog_CPP=$CPP
4052
4053fi
4054 CPP=$ac_cv_prog_CPP
4055else
4056 ac_cv_prog_CPP=$CPP
4057fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4059$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004060ac_preproc_ok=false
4061for ac_c_preproc_warn_flag in '' yes
4062do
4063 # Use a header file that comes with gcc, so configuring glibc
4064 # with a fresh cross-compiler works.
4065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4066 # <limits.h> exists even on freestanding compilers.
4067 # On the NeXT, cc -E runs the code through the compiler's parser,
4068 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonoe1105232011-10-26 06:49:34 +00004069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004070/* end confdefs.h. */
4071#ifdef __STDC__
4072# include <limits.h>
4073#else
4074# include <assert.h>
4075#endif
4076 Syntax error
4077_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004078if ac_fn_c_try_cpp "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00004079
Benny Prijonoe1105232011-10-26 06:49:34 +00004080else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004081 # Broken: fails on valid input.
4082continue
4083fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004084rm -f conftest.err conftest.$ac_ext
4085
4086 # OK, works on sane cases. Now check whether nonexistent headers
4087 # can be detected and how.
Benny Prijonoe1105232011-10-26 06:49:34 +00004088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004089/* end confdefs.h. */
4090#include <ac_nonexistent.h>
4091_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004092if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004093 # Broken: success on invalid input.
4094continue
4095else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004096 # Passes both tests.
4097ac_preproc_ok=:
4098break
4099fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004100rm -f conftest.err conftest.$ac_ext
4101
4102done
4103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104rm -f conftest.err conftest.$ac_ext
Benny Prijonoe1105232011-10-26 06:49:34 +00004105if $ac_preproc_ok; then :
4106
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004107else
Benny Prijonoe1105232011-10-26 06:49:34 +00004108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110as_fn_error "C preprocessor \"$CPP\" fails sanity check
4111See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004112fi
4113
4114ac_ext=c
4115ac_cpp='$CPP $CPPFLAGS'
4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
4120
Benny Prijonoe1105232011-10-26 06:49:34 +00004121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4122$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4123if test "${ac_cv_path_GREP+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004125else
Benny Prijonoe1105232011-10-26 06:49:34 +00004126 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004127 ac_path_GREP_found=false
Benny Prijonoe1105232011-10-26 06:49:34 +00004128 # Loop through the user's path and test for each of PROGNAME-LIST
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00004134 for ac_prog in grep ggrep; do
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4137 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4138# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004139 # Check for GNU $ac_path_GREP
4140case `"$ac_path_GREP" --version 2>&1` in
4141*GNU*)
4142 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4143*)
4144 ac_count=0
Benny Prijonoe1105232011-10-26 06:49:34 +00004145 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004146 while :
4147 do
4148 cat "conftest.in" "conftest.in" >"conftest.tmp"
4149 mv "conftest.tmp" "conftest.in"
4150 cp "conftest.in" "conftest.nl"
Benny Prijonoe1105232011-10-26 06:49:34 +00004151 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004152 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonoe1105232011-10-26 06:49:34 +00004154 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004155 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4156 # Best one so far, save it but keep looking for a better one
4157 ac_cv_path_GREP="$ac_path_GREP"
4158 ac_path_GREP_max=$ac_count
4159 fi
4160 # 10*(2^10) chars as input seems more than enough
4161 test $ac_count -gt 10 && break
4162 done
4163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164esac
4165
Benny Prijonoe1105232011-10-26 06:49:34 +00004166 $ac_path_GREP_found && break 3
4167 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004168 done
Benny Prijonoe1105232011-10-26 06:49:34 +00004169 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004170IFS=$as_save_IFS
Benny Prijonoe1105232011-10-26 06:49:34 +00004171 if test -z "$ac_cv_path_GREP"; then
4172 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004174else
4175 ac_cv_path_GREP=$GREP
4176fi
4177
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004178fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4180$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004181 GREP="$ac_cv_path_GREP"
4182
4183
Benny Prijonoe1105232011-10-26 06:49:34 +00004184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4185$as_echo_n "checking for egrep... " >&6; }
4186if test "${ac_cv_path_EGREP+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004188else
4189 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4190 then ac_cv_path_EGREP="$GREP -E"
4191 else
Benny Prijonoe1105232011-10-26 06:49:34 +00004192 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004193 ac_path_EGREP_found=false
Benny Prijonoe1105232011-10-26 06:49:34 +00004194 # Loop through the user's path and test for each of PROGNAME-LIST
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00004200 for ac_prog in egrep; do
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4203 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4204# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004205 # Check for GNU $ac_path_EGREP
4206case `"$ac_path_EGREP" --version 2>&1` in
4207*GNU*)
4208 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4209*)
4210 ac_count=0
Benny Prijonoe1105232011-10-26 06:49:34 +00004211 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004212 while :
4213 do
4214 cat "conftest.in" "conftest.in" >"conftest.tmp"
4215 mv "conftest.tmp" "conftest.in"
4216 cp "conftest.in" "conftest.nl"
Benny Prijonoe1105232011-10-26 06:49:34 +00004217 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004218 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonoe1105232011-10-26 06:49:34 +00004220 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004221 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4222 # Best one so far, save it but keep looking for a better one
4223 ac_cv_path_EGREP="$ac_path_EGREP"
4224 ac_path_EGREP_max=$ac_count
4225 fi
4226 # 10*(2^10) chars as input seems more than enough
4227 test $ac_count -gt 10 && break
4228 done
4229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230esac
4231
Benny Prijonoe1105232011-10-26 06:49:34 +00004232 $ac_path_EGREP_found && break 3
4233 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004234 done
Benny Prijonoe1105232011-10-26 06:49:34 +00004235 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004236IFS=$as_save_IFS
Benny Prijonoe1105232011-10-26 06:49:34 +00004237 if test -z "$ac_cv_path_EGREP"; then
4238 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004240else
4241 ac_cv_path_EGREP=$EGREP
4242fi
4243
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004244 fi
4245fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4247$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004248 EGREP="$ac_cv_path_EGREP"
4249
4250
Benny Prijonoe1105232011-10-26 06:49:34 +00004251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4252$as_echo_n "checking for ANSI C header files... " >&6; }
4253if test "${ac_cv_header_stdc+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004255else
Benny Prijonoe1105232011-10-26 06:49:34 +00004256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004257/* end confdefs.h. */
4258#include <stdlib.h>
4259#include <stdarg.h>
4260#include <string.h>
4261#include <float.h>
4262
4263int
4264main ()
4265{
4266
4267 ;
4268 return 0;
4269}
4270_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004271if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004272 ac_cv_header_stdc=yes
4273else
Benny Prijonoe1105232011-10-26 06:49:34 +00004274 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004275fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277
4278if test $ac_cv_header_stdc = yes; then
4279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijonoe1105232011-10-26 06:49:34 +00004280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004281/* end confdefs.h. */
4282#include <string.h>
4283
4284_ACEOF
4285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonoe1105232011-10-26 06:49:34 +00004286 $EGREP "memchr" >/dev/null 2>&1; then :
4287
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004288else
4289 ac_cv_header_stdc=no
4290fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004291rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004292
4293fi
4294
4295if test $ac_cv_header_stdc = yes; then
4296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijonoe1105232011-10-26 06:49:34 +00004297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004298/* end confdefs.h. */
4299#include <stdlib.h>
4300
4301_ACEOF
4302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonoe1105232011-10-26 06:49:34 +00004303 $EGREP "free" >/dev/null 2>&1; then :
4304
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004305else
4306 ac_cv_header_stdc=no
4307fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004308rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004309
4310fi
4311
4312if test $ac_cv_header_stdc = yes; then
4313 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijonoe1105232011-10-26 06:49:34 +00004314 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004315 :
4316else
Benny Prijonoe1105232011-10-26 06:49:34 +00004317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004318/* end confdefs.h. */
4319#include <ctype.h>
4320#include <stdlib.h>
4321#if ((' ' & 0x0FF) == 0x020)
4322# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4323# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4324#else
4325# define ISLOWER(c) \
4326 (('a' <= (c) && (c) <= 'i') \
4327 || ('j' <= (c) && (c) <= 'r') \
4328 || ('s' <= (c) && (c) <= 'z'))
4329# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4330#endif
4331
4332#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4333int
4334main ()
4335{
4336 int i;
4337 for (i = 0; i < 256; i++)
4338 if (XOR (islower (i), ISLOWER (i))
4339 || toupper (i) != TOUPPER (i))
4340 return 2;
4341 return 0;
4342}
4343_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004344if ac_fn_c_try_run "$LINENO"; then :
4345
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004346else
Benny Prijonoe1105232011-10-26 06:49:34 +00004347 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004348fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4350 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004351fi
4352
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004353fi
4354fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4356$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004357if test $ac_cv_header_stdc = yes; then
4358
Benny Prijonoe1105232011-10-26 06:49:34 +00004359$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004360
4361fi
4362
4363# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004364for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4365 inttypes.h stdint.h unistd.h
Benny Prijonoe1105232011-10-26 06:49:34 +00004366do :
4367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4368ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4369"
4370eval as_val=\$$as_ac_Header
4371 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004372 cat >>confdefs.h <<_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004373#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004374_ACEOF
4375
4376fi
4377
4378done
4379
4380
Benny Prijonoe1105232011-10-26 06:49:34 +00004381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4382$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4383if test "${ac_cv_c_bigendian+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004385else
Benny Prijonoe1105232011-10-26 06:49:34 +00004386 ac_cv_c_bigendian=unknown
4387 # See if we're dealing with a universal compiler.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h. */
4390#ifndef __APPLE_CC__
4391 not a universal capable compiler
4392 #endif
4393 typedef int dummy;
4394
Benny Prijonod5233702010-01-13 13:09:45 +00004395_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004396if ac_fn_c_try_compile "$LINENO"; then :
4397
4398 # Check for potential -arch flags. It is not universal unless
4399 # there are at least two -arch flags with different values.
4400 ac_arch=
4401 ac_prev=
4402 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4403 if test -n "$ac_prev"; then
4404 case $ac_word in
4405 i?86 | x86_64 | ppc | ppc64)
4406 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4407 ac_arch=$ac_word
4408 else
4409 ac_cv_c_bigendian=universal
4410 break
4411 fi
4412 ;;
4413 esac
4414 ac_prev=
4415 elif test "x$ac_word" = "x-arch"; then
4416 ac_prev=arch
4417 fi
4418 done
4419fi
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 if test $ac_cv_c_bigendian = unknown; then
4422 # See if sys/param.h defines the BYTE_ORDER macro.
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004424/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004425#include <sys/types.h>
Benny Prijonoe1105232011-10-26 06:49:34 +00004426 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004427
4428int
4429main ()
4430{
Benny Prijonoe1105232011-10-26 06:49:34 +00004431#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4432 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4433 && LITTLE_ENDIAN)
4434 bogus endian macros
4435 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004436
4437 ;
4438 return 0;
4439}
4440_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004441if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004442 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijonoe1105232011-10-26 06:49:34 +00004443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004444/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004445#include <sys/types.h>
Benny Prijonoe1105232011-10-26 06:49:34 +00004446 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004447
4448int
4449main ()
4450{
4451#if BYTE_ORDER != BIG_ENDIAN
Benny Prijonoe1105232011-10-26 06:49:34 +00004452 not big endian
4453 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004454
4455 ;
4456 return 0;
4457}
4458_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004459if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004460 ac_cv_c_bigendian=yes
4461else
Benny Prijonoe1105232011-10-26 06:49:34 +00004462 ac_cv_c_bigendian=no
Sauw Minge7dbbc82011-10-24 09:28:13 +00004463fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoe1105232011-10-26 06:49:34 +00004465fi
4466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 fi
4468 if test $ac_cv_c_bigendian = unknown; then
4469 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00004471/* end confdefs.h. */
Benny Prijonoe1105232011-10-26 06:49:34 +00004472#include <limits.h>
4473
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004474int
4475main ()
4476{
Benny Prijonoe1105232011-10-26 06:49:34 +00004477#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4478 bogus endian macros
4479 #endif
4480
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004481 ;
4482 return 0;
4483}
4484_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004485if ac_fn_c_try_compile "$LINENO"; then :
4486 # It does; now see whether it defined to _BIG_ENDIAN or not.
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488/* end confdefs.h. */
4489#include <limits.h>
4490
4491int
4492main ()
4493{
4494#ifndef _BIG_ENDIAN
4495 not big endian
4496 #endif
4497
4498 ;
4499 return 0;
4500}
4501_ACEOF
4502if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004503 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004504else
Benny Prijonoe1105232011-10-26 06:49:34 +00004505 ac_cv_c_bigendian=no
Benny Prijono6a0a49a2011-10-18 11:17:23 +00004506fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508fi
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 fi
4511 if test $ac_cv_c_bigendian = unknown; then
4512 # Compile a test program.
4513 if test "$cross_compiling" = yes; then :
4514 # Try to guess by grepping values from an object file.
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h. */
4517short int ascii_mm[] =
4518 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4519 short int ascii_ii[] =
4520 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4521 int use_ascii (int i) {
4522 return ascii_mm[i] + ascii_ii[i];
4523 }
4524 short int ebcdic_ii[] =
4525 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4526 short int ebcdic_mm[] =
4527 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4528 int use_ebcdic (int i) {
4529 return ebcdic_mm[i] + ebcdic_ii[i];
4530 }
4531 extern int foo;
Sauw Minge7dbbc82011-10-24 09:28:13 +00004532
Benny Prijonoe1105232011-10-26 06:49:34 +00004533int
4534main ()
4535{
4536return use_ascii (foo) == use_ebcdic (foo);
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541if ac_fn_c_try_compile "$LINENO"; then :
4542 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4543 ac_cv_c_bigendian=yes
4544 fi
4545 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4546 if test "$ac_cv_c_bigendian" = unknown; then
4547 ac_cv_c_bigendian=no
4548 else
4549 # finding both strings is unlikely to happen, but who knows?
4550 ac_cv_c_bigendian=unknown
4551 fi
4552 fi
4553fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004555else
Benny Prijonoe1105232011-10-26 06:49:34 +00004556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004557/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004558$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004559int
4560main ()
4561{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004562
Benny Prijonoe1105232011-10-26 06:49:34 +00004563 /* Are we little or big endian? From Harbison&Steele. */
4564 union
4565 {
4566 long int l;
4567 char c[sizeof (long int)];
4568 } u;
4569 u.l = 1;
4570 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004571
4572 ;
4573 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004574}
4575_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004576if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004577 ac_cv_c_bigendian=no
4578else
Benny Prijonoe1105232011-10-26 06:49:34 +00004579 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004580fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4582 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004583fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004584
Benny Prijonoe1105232011-10-26 06:49:34 +00004585 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004586fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4588$as_echo "$ac_cv_c_bigendian" >&6; }
4589 case $ac_cv_c_bigendian in #(
4590 yes)
4591 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4592;; #(
4593 no)
4594 ;; #(
4595 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004596
Benny Prijonoe1105232011-10-26 06:49:34 +00004597$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004598
Benny Prijonoe1105232011-10-26 06:49:34 +00004599 ;; #(
4600 *)
4601 as_fn_error "unknown endianness
4602 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4603 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004604
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004605
Sauw Minge7dbbc82011-10-24 09:28:13 +00004606if test "x$ac_cv_c_bigendian" = "xyes"; then
4607 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4608else
4609 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4610fi
4611
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004612case $target in
4613 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoe1105232011-10-26 06:49:34 +00004614 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004615
Benny Prijonoe1105232011-10-26 06:49:34 +00004616 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004617
Benny Prijonoe1105232011-10-26 06:49:34 +00004618 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004619
4620 ;;
4621 *darwin*)
Benny Prijonoe1105232011-10-26 06:49:34 +00004622 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004623
4624 ;;
4625 *linux*)
Benny Prijonoe1105232011-10-26 06:49:34 +00004626 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004627
4628 ;;
4629 *rtems*)
Benny Prijonoe1105232011-10-26 06:49:34 +00004630 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004631
4632 ;;
4633 *sunos* | *solaris* )
Benny Prijonoe1105232011-10-26 06:49:34 +00004634 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004635
4636 ;;
4637 *)
4638 ;;
4639esac
4640
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004641
4642
4643
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004644# Check whether --enable-floating-point was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00004645if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004646 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00004647 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004648
Benny Prijonoe1105232011-10-26 06:49:34 +00004649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4650$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004651 fi
4652else
4653
Benny Prijonoe1105232011-10-26 06:49:34 +00004654 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004655
Benny Prijonoe1105232011-10-26 06:49:34 +00004656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4657$as_echo "Checking if floating point is disabled... no" >&6; }
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4659$as_echo_n "checking for fmod in -lm... " >&6; }
4660if test "${ac_cv_lib_m_fmod+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004662else
4663 ac_check_lib_save_LIBS=$LIBS
4664LIBS="-lm $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00004665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004666/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004667
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004668/* Override any GCC internal prototype to avoid an error.
4669 Use char because int might match the return type of a GCC
4670 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004671#ifdef __cplusplus
4672extern "C"
4673#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004674char fmod ();
4675int
4676main ()
4677{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004678return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004679 ;
4680 return 0;
4681}
4682_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00004683if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004684 ac_cv_lib_m_fmod=yes
4685else
Benny Prijonoe1105232011-10-26 06:49:34 +00004686 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004687fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004688rm -f core conftest.err conftest.$ac_objext \
4689 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004690LIBS=$ac_check_lib_save_LIBS
4691fi
Benny Prijonoe1105232011-10-26 06:49:34 +00004692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4693$as_echo "$ac_cv_lib_m_fmod" >&6; }
4694if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004695 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004696#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004697_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004698
4699 LIBS="-lm $LIBS"
4700
4701fi
4702
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004703
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004704fi
4705
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004706
4707
Benny Prijonoe1105232011-10-26 06:49:34 +00004708ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4709if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4710 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004711
4712fi
4713
4714
Benny Prijonoe1105232011-10-26 06:49:34 +00004715ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4716if test "x$ac_cv_header_assert_h" = x""yes; then :
4717 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004718
4719fi
4720
4721
Benny Prijonoe1105232011-10-26 06:49:34 +00004722ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4723if test "x$ac_cv_header_ctype_h" = x""yes; then :
4724 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004725
4726fi
4727
4728
4729
4730case $target in
4731 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoe1105232011-10-26 06:49:34 +00004732 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004733
4734 ;;
4735 *)
Benny Prijonoe1105232011-10-26 06:49:34 +00004736 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4737if test "x$ac_cv_header_errno_h" = x""yes; then :
4738 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004739
4740fi
4741
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004742
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004743 ;;
4744esac
4745
Benny Prijonoe1105232011-10-26 06:49:34 +00004746ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4747if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4748 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004749
4750fi
4751
4752
Benny Prijonoe1105232011-10-26 06:49:34 +00004753ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4754if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4755 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004756
4757fi
4758
4759
Benny Prijonoe1105232011-10-26 06:49:34 +00004760ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4761if test "x$ac_cv_header_limits_h" = x""yes; then :
4762 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004763
4764fi
4765
4766
Benny Prijonoe1105232011-10-26 06:49:34 +00004767ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4768if test "x$ac_cv_header_malloc_h" = x""yes; then :
4769 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004770
4771fi
4772
4773
Benny Prijonoe1105232011-10-26 06:49:34 +00004774ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4775if test "x$ac_cv_header_netdb_h" = x""yes; then :
4776 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004777
4778fi
4779
4780
Benny Prijonoe1105232011-10-26 06:49:34 +00004781ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4782if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4783 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004784
4785fi
4786
4787
Benny Prijonoe1105232011-10-26 06:49:34 +00004788ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4789if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4790 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijonoe3e65802011-02-28 07:44:19 +00004791
4792fi
4793
4794
Benny Prijonoe1105232011-10-26 06:49:34 +00004795ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00004796 # include <sys/types.h>
4797 #endif
4798 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004799 # include <netinet/in_systm.h>
4800 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004801 #if PJ_HAS_NETINET_IN_H
4802 # include <netinet/in.h>
4803 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004804
Benny Prijonoe1105232011-10-26 06:49:34 +00004805"
4806if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4807 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004808
Sauw Minge7dbbc82011-10-24 09:28:13 +00004809fi
4810
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004811
Benny Prijonoe1105232011-10-26 06:49:34 +00004812ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4813if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4814 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004815
Sauw Minge7dbbc82011-10-24 09:28:13 +00004816fi
4817
Sauw Minge7dbbc82011-10-24 09:28:13 +00004818
Benny Prijonoe1105232011-10-26 06:49:34 +00004819ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4820if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
4821 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4822if test "x$ac_cv_func_getifaddrs" = x""yes; then :
4823 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004824
4825fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004826
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004827fi
4828
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004829
Benny Prijonoe1105232011-10-26 06:49:34 +00004830ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4831if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4832 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004833
Sauw Minge7dbbc82011-10-24 09:28:13 +00004834fi
4835
Sauw Minge7dbbc82011-10-24 09:28:13 +00004836
Benny Prijonoe1105232011-10-26 06:49:34 +00004837ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4838if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4839 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004840
Sauw Minge7dbbc82011-10-24 09:28:13 +00004841fi
4842
Sauw Minge7dbbc82011-10-24 09:28:13 +00004843
Benny Prijonoe1105232011-10-26 06:49:34 +00004844ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4845if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4846 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004847
4848fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004849
Sauw Minge7dbbc82011-10-24 09:28:13 +00004850
Benny Prijonoe1105232011-10-26 06:49:34 +00004851ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4852if test "x$ac_cv_header_stddef_h" = x""yes; then :
4853 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004854
Sauw Minge7dbbc82011-10-24 09:28:13 +00004855fi
4856
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004857
Benny Prijonoe1105232011-10-26 06:49:34 +00004858ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4859if test "x$ac_cv_header_stdio_h" = x""yes; then :
4860 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Sauw Ming68c14572011-07-20 03:00:48 +00004861
Sauw Ming68c14572011-07-20 03:00:48 +00004862fi
4863
Sauw Ming68c14572011-07-20 03:00:48 +00004864
Benny Prijonoe1105232011-10-26 06:49:34 +00004865ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4866if test "x$ac_cv_header_stdint_h" = x""yes; then :
4867 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004868
Sauw Minge7dbbc82011-10-24 09:28:13 +00004869fi
4870
Sauw Minge7dbbc82011-10-24 09:28:13 +00004871
Benny Prijonoe1105232011-10-26 06:49:34 +00004872ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4873if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4874 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004875
Sauw Minge7dbbc82011-10-24 09:28:13 +00004876fi
4877
Sauw Minge7dbbc82011-10-24 09:28:13 +00004878
Benny Prijonoe1105232011-10-26 06:49:34 +00004879ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4880if test "x$ac_cv_header_string_h" = x""yes; then :
4881 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004882
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004883fi
4884
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004885
Benny Prijonoe1105232011-10-26 06:49:34 +00004886ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4887if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4888 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004889
Sauw Minge7dbbc82011-10-24 09:28:13 +00004890fi
4891
Sauw Minge7dbbc82011-10-24 09:28:13 +00004892
Benny Prijonoe1105232011-10-26 06:49:34 +00004893ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4894if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4895 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004896
Sauw Minge7dbbc82011-10-24 09:28:13 +00004897fi
4898
Sauw Minge7dbbc82011-10-24 09:28:13 +00004899
Benny Prijonoe1105232011-10-26 06:49:34 +00004900ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4901if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4902 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004903
4904fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004905
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004906
Benny Prijonoe1105232011-10-26 06:49:34 +00004907ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4908if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4909 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004910
Sauw Minge7dbbc82011-10-24 09:28:13 +00004911fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004912
Sauw Minge7dbbc82011-10-24 09:28:13 +00004913
Benny Prijonoe1105232011-10-26 06:49:34 +00004914ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4915if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4916 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004917
Sauw Minge7dbbc82011-10-24 09:28:13 +00004918fi
4919
Sauw Minge7dbbc82011-10-24 09:28:13 +00004920
Benny Prijonoe1105232011-10-26 06:49:34 +00004921ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4922if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4923 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004924
Sauw Minge7dbbc82011-10-24 09:28:13 +00004925fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004926
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004927
Benny Prijonoe1105232011-10-26 06:49:34 +00004928ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4929if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4930 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004931
Sauw Minge7dbbc82011-10-24 09:28:13 +00004932fi
4933
Sauw Minge7dbbc82011-10-24 09:28:13 +00004934
Benny Prijonoe1105232011-10-26 06:49:34 +00004935ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4936if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4937 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004938
Sauw Minge7dbbc82011-10-24 09:28:13 +00004939fi
4940
Sauw Minge7dbbc82011-10-24 09:28:13 +00004941
Benny Prijonoe1105232011-10-26 06:49:34 +00004942ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
4943if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
4944 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004945
4946fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004947
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004948
Benny Prijonoe1105232011-10-26 06:49:34 +00004949ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4950if test "x$ac_cv_header_time_h" = x""yes; then :
4951 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Sauw Ming68c14572011-07-20 03:00:48 +00004952
Sauw Minge7dbbc82011-10-24 09:28:13 +00004953fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004954
Sauw Minge7dbbc82011-10-24 09:28:13 +00004955
Benny Prijonoe1105232011-10-26 06:49:34 +00004956ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4957if test "x$ac_cv_header_unistd_h" = x""yes; then :
4958 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004959
Sauw Minge7dbbc82011-10-24 09:28:13 +00004960fi
4961
Sauw Minge7dbbc82011-10-24 09:28:13 +00004962
Benny Prijonoe1105232011-10-26 06:49:34 +00004963ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4964if test "x$ac_cv_header_winsock_h" = x""yes; then :
4965 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004966
Sauw Minge7dbbc82011-10-24 09:28:13 +00004967fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004968
Sauw Ming6a970a32011-03-01 05:25:27 +00004969
Benny Prijonoe1105232011-10-26 06:49:34 +00004970ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4971if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4972 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004973
Sauw Minge7dbbc82011-10-24 09:28:13 +00004974fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004975
Sauw Minge7dbbc82011-10-24 09:28:13 +00004976
Benny Prijonoe1105232011-10-26 06:49:34 +00004977ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H
Benny Prijonoa9948e62008-03-25 14:03:01 +00004978 # include <winsock2.h>
4979 #elif PJ_HAS_WINSOCK_H
4980 # include <winsock.h>
4981 #endif
4982
Benny Prijonoe1105232011-10-26 06:49:34 +00004983"
4984if test "x$ac_cv_header_mswsock_h" = x""yes; then :
4985 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00004986
4987fi
4988
4989
Benny Prijonoe1105232011-10-26 06:49:34 +00004990ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
4991if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
4992 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00004993
4994fi
4995
4996
Benny Prijonoe1105232011-10-26 06:49:34 +00004997ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
4998if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004999 ac_has_uuid_h=1
5000fi
5001
5002
Benny Prijonoe1105232011-10-26 06:49:34 +00005003ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00005004 # include <sys/types.h>
5005 #endif
5006 #if PJ_HAS_SYS_SOCKET_H
5007
Benny Prijono188ba7e2008-03-25 13:53:16 +00005008 # include <sys/socket.h>
5009 #endif
5010
Benny Prijonoe1105232011-10-26 06:49:34 +00005011"
5012if test "x$ac_cv_header_net_if_h" = x""yes; then :
5013 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00005014
5015fi
5016
Benny Prijono188ba7e2008-03-25 13:53:16 +00005017
Benny Prijonoe1105232011-10-26 06:49:34 +00005018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5019$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005020cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005021#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005022_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005023
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005024
Benny Prijonoe1105232011-10-26 06:49:34 +00005025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5026$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5027$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005028
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005029
Benny Prijonoe1105232011-10-26 06:49:34 +00005030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5031$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5032$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005033
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005034
Benny Prijonoe1105232011-10-26 06:49:34 +00005035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5036$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5037$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005038
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005039
Benny Prijonoe1105232011-10-26 06:49:34 +00005040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5041$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5042$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005043
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005044
Benny Prijonoe1105232011-10-26 06:49:34 +00005045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5046$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5047$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005048
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005049
Benny Prijonoe1105232011-10-26 06:49:34 +00005050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5051$as_echo_n "checking if inet_aton() is available... " >&6; }
5052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005053/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005054#include <sys/types.h>
5055 #include <sys/socket.h>
5056 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005057int
5058main ()
5059{
5060inet_aton(0, 0);
5061 ;
5062 return 0;
5063}
5064_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005065if ac_fn_c_try_compile "$LINENO"; then :
5066 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005067
Benny Prijonoe1105232011-10-26 06:49:34 +00005068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5069$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005070else
Benny Prijonoe1105232011-10-26 06:49:34 +00005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005073fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075
Benny Prijonoe1105232011-10-26 06:49:34 +00005076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5077$as_echo_n "checking if inet_pton() is available... " >&6; }
5078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005079/* end confdefs.h. */
5080#include <sys/types.h>
5081 #include <sys/socket.h>
5082 #include <arpa/inet.h>
5083int
5084main ()
5085{
5086inet_pton(0, 0, 0);
5087 ;
5088 return 0;
5089}
5090_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005091if ac_fn_c_try_compile "$LINENO"; then :
5092 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005093
Benny Prijonoe1105232011-10-26 06:49:34 +00005094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005096else
Benny Prijonoe1105232011-10-26 06:49:34 +00005097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005099fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101
Benny Prijonoe1105232011-10-26 06:49:34 +00005102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5103$as_echo_n "checking if inet_ntop() is available... " >&6; }
5104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005105/* end confdefs.h. */
5106#include <sys/types.h>
5107 #include <sys/socket.h>
5108 #include <arpa/inet.h>
5109int
5110main ()
5111{
5112inet_ntop(0, 0, 0, 0);
5113 ;
5114 return 0;
5115}
5116_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005117if ac_fn_c_try_compile "$LINENO"; then :
5118 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005119
Benny Prijonoe1105232011-10-26 06:49:34 +00005120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5121$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005122else
Benny Prijonoe1105232011-10-26 06:49:34 +00005123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005125fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127
Benny Prijonoe1105232011-10-26 06:49:34 +00005128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5129$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005131/* end confdefs.h. */
5132#include <sys/types.h>
5133 #include <sys/socket.h>
5134 #include <netdb.h>
5135int
5136main ()
5137{
5138getaddrinfo(0, 0, 0, 0);
5139 ;
5140 return 0;
5141}
5142_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005143if ac_fn_c_try_compile "$LINENO"; then :
5144 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005145
Benny Prijonoe1105232011-10-26 06:49:34 +00005146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5147$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005148else
Benny Prijonoe1105232011-10-26 06:49:34 +00005149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005151fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153
Benny Prijonoe1105232011-10-26 06:49:34 +00005154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5155$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005157/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005158#include <sys/types.h>
5159 #include <sys/socket.h>
5160 #include <netinet/in.h>
5161 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005162int
5163main ()
5164{
5165struct sockaddr_in a; a.sin_len=0;
5166 ;
5167 return 0;
5168}
5169_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005170if ac_fn_c_try_compile "$LINENO"; then :
5171 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005172
Benny Prijonoe1105232011-10-26 06:49:34 +00005173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5174$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005175else
Benny Prijonoe1105232011-10-26 06:49:34 +00005176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005178fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180
Benny Prijonoe1105232011-10-26 06:49:34 +00005181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5182$as_echo_n "checking if socklen_t is available... " >&6; }
5183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005184/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005185#include <sys/types.h>
5186 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005187int
5188main ()
5189{
5190socklen_t xxx = 0;
5191 ;
5192 return 0;
5193}
5194_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005195if ac_fn_c_try_compile "$LINENO"; then :
5196 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005197
Benny Prijonoe1105232011-10-26 06:49:34 +00005198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5199$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005200else
Benny Prijonoe1105232011-10-26 06:49:34 +00005201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005203fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205
Benny Prijonoe1105232011-10-26 06:49:34 +00005206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5207$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005208case $target in
5209 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoe1105232011-10-26 06:49:34 +00005210 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005211
Benny Prijonoe1105232011-10-26 06:49:34 +00005212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5213$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005214 ;;
5215 *)
Benny Prijonoe1105232011-10-26 06:49:34 +00005216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005217/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005218#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005219 #include <sys/socket.h>
5220 #include <netinet/in.h>
5221 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005222int
5223main ()
5224{
5225int i=SO_ERROR;
5226 ;
5227 return 0;
5228}
5229_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005230if ac_fn_c_try_compile "$LINENO"; then :
5231 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005232
Benny Prijonoe1105232011-10-26 06:49:34 +00005233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5234$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005235else
Benny Prijonoe1105232011-10-26 06:49:34 +00005236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005238fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005240 ;;
5241esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005242
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005243
Benny Prijonoe1105232011-10-26 06:49:34 +00005244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5245$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005247/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005248#include <pthread.h>
5249int
5250main ()
5251{
5252pthread_rwlock_t *x;
5253 ;
5254 return 0;
5255}
5256_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005257if ac_fn_c_try_compile "$LINENO"; then :
5258 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005259
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005260 ac_rwmutex="yes"
Benny Prijonoe1105232011-10-26 06:49:34 +00005261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5262$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005263else
Benny Prijonoe1105232011-10-26 06:49:34 +00005264 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005265
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005266 ac_rwmutex="no"
Benny Prijonoe1105232011-10-26 06:49:34 +00005267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005269fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005271
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005272if test "$ac_rwmutex" = "no"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00005273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5274$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005276/* end confdefs.h. */
5277#define _POSIX_READER_WRITER_LOCKS
5278 #include <pthread.h>
5279int
5280main ()
5281{
5282pthread_rwlock_t *x;
5283 ;
5284 return 0;
5285}
5286_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005287if ac_fn_c_try_compile "$LINENO"; then :
5288 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005289
5290 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijonoe1105232011-10-26 06:49:34 +00005291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5292$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005293else
Benny Prijonoe1105232011-10-26 06:49:34 +00005294 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005295
Benny Prijonoe1105232011-10-26 06:49:34 +00005296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005298fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300fi
5301
Benny Prijonoe1105232011-10-26 06:49:34 +00005302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5303$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005305/* end confdefs.h. */
5306#include <pthread.h>
5307int
5308main ()
5309{
5310pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5311 ;
5312 return 0;
5313}
5314_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005315if ac_fn_c_try_compile "$LINENO"; then :
5316 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005317
Benny Prijonoe1105232011-10-26 06:49:34 +00005318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5319$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005320else
Benny Prijonoe1105232011-10-26 06:49:34 +00005321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005323fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325
Benny Prijonoe1105232011-10-26 06:49:34 +00005326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5327$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005329/* end confdefs.h. */
5330#include <pthread.h>
5331int
5332main ()
5333{
5334pthread_mutexattr_t attr;
5335 attr.recursive=1;
5336 ;
5337 return 0;
5338}
5339_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005340if ac_fn_c_try_compile "$LINENO"; then :
5341 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005342
Benny Prijonoe1105232011-10-26 06:49:34 +00005343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5344$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005345else
Benny Prijonoe1105232011-10-26 06:49:34 +00005346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005348fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005350
Benny Prijono99eec382008-09-18 21:22:16 +00005351
Benny Prijonoe1105232011-10-26 06:49:34 +00005352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5353$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005354# Check whether --enable-epoll was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005355if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005356 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005357 ac_os_objs=ioqueue_epoll.o
Benny Prijonoe1105232011-10-26 06:49:34 +00005358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5359$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005360
5361else
5362
5363 ac_os_objs=ioqueue_select.o
Benny Prijonoe1105232011-10-26 06:49:34 +00005364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5365$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005366
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005367fi
5368
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005369
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005370
5371case $target in
5372 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005373 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"
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005374 ;;
5375 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005376 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"
Sauw Ming6a970a32011-03-01 05:25:27 +00005377 case $target in
5378 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +00005379 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005380 ;;
5381 esac
Benny Prijono4e48b512007-05-16 13:41:00 +00005382 # UUID
5383 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5384 ac_os_objs="$ac_os_objs guid_uuid.o"
5385 else
5386 ac_os_objs="$ac_os_objs guid_simple.o"
5387 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005388 ;;
5389esac
5390
Sauw Ming68c14572011-07-20 03:00:48 +00005391case $target in
5392 *darwin*)
5393 ac_os_objs="$ac_os_objs os_core_darwin.o"
5394 ;;
5395esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005396
5397
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005398ac_external_speex=0
5399
5400
5401# Check whether --with-external-speex was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005402if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005403 withval=$with_external_speex;
5404 if test "x$with_external_speex" != "xno"; then
5405 # Test Speex installation
Benny Prijonoe1105232011-10-26 06:49:34 +00005406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5407$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005409/* end confdefs.h. */
5410#include <speex/speex.h>
5411 #include <speex/speex_echo.h>
5412
5413int
5414main ()
5415{
5416speex_echo_state_init(0, 0); speex_encoder_init(0);
5417 ;
5418 return 0;
5419}
5420_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005421if ac_fn_c_try_compile "$LINENO"; then :
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5423$as_echo "yes!!" >&6; }
5424 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005425
5426 ac_external_speex="1"
5427
5428else
Benny Prijonoe1105232011-10-26 06:49:34 +00005429 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
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 fi
5433
5434
5435fi
5436
5437
5438ac_external_gsm=0
5439
5440
5441# Check whether --with-external-gsm was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005442if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005443 withval=$with_external_gsm;
5444 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005445 # Test GSM library installation
Benny Prijonoe1105232011-10-26 06:49:34 +00005446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5447$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005449/* end confdefs.h. */
5450#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005451int
5452main ()
5453{
5454gsm_create();
5455 ;
5456 return 0;
5457}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005458_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005459if ac_fn_c_try_compile "$LINENO"; then :
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5461$as_echo "yes!!" >&6; }
5462 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005463
Benny Prijonoe1105232011-10-26 06:49:34 +00005464 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005465
5466 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005467
5468else
Benny Prijono46bd0842010-02-12 14:12:41 +00005469
Benny Prijonoe1105232011-10-26 06:49:34 +00005470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471$as_echo "no" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5473$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00005475/* end confdefs.h. */
5476#include <gsm.h>
5477int
5478main ()
5479{
5480gsm_create();
5481 ;
5482 return 0;
5483}
5484_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005485if ac_fn_c_try_compile "$LINENO"; then :
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5487$as_echo "yes!!" >&6; }
5488 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005489
Benny Prijonoe1105232011-10-26 06:49:34 +00005490 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005491
5492 ac_external_gsm="1"
5493
5494else
Benny Prijonoe1105232011-10-26 06:49:34 +00005495 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
Benny Prijonod4306432010-05-01 22:05:41 +00005496
5497
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005498fi
Benny Prijonod4306432010-05-01 22:05:41 +00005499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005500
Benny Prijonod4306432010-05-01 22:05:41 +00005501
5502fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 fi
5505
5506
5507fi
5508
5509
5510
5511
Benny Prijono4e48b512007-05-16 13:41:00 +00005512
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005513# Check whether --enable-sound was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005514if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005515 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005516 ac_pjmedia_snd=null
Benny Prijonoe1105232011-10-26 06:49:34 +00005517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5518$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005519 fi
5520
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005521fi
5522
Benny Prijono1d971622006-09-10 22:27:40 +00005523
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005524ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005525
Benny Prijono27c98722007-04-09 21:28:15 +00005526
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005527# Check whether --with-external-pa was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005528if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005529 withval=$with_external_pa;
5530 if test "x$with_external_pa" != "xno"; then
5531 # Test PortAudio installation
Benny Prijonoe1105232011-10-26 06:49:34 +00005532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5533$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005535/* end confdefs.h. */
5536#include <portaudio.h>
5537
5538int
5539main ()
5540{
5541Pa_Initialize();
5542 ;
5543 return 0;
5544}
5545_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005546if ac_fn_c_try_compile "$LINENO"; then :
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5548$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005549 ac_external_pa="1"
5550
5551else
Benny Prijonoe1105232011-10-26 06:49:34 +00005552 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
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005553fi
5554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005555 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005556
Benny Prijono27c98722007-04-09 21:28:15 +00005557
5558fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005559
5560
5561
Benny Prijonoe1105232011-10-26 06:49:34 +00005562ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5563if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005564 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5565fi
5566
5567
Benny Prijonoe1105232011-10-26 06:49:34 +00005568ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5569if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005570 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5571fi
5572
5573
Benny Prijonoe1105232011-10-26 06:49:34 +00005574ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5575if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005576 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5577fi
5578
5579
5580
Benny Prijono3e091672008-01-09 15:43:02 +00005581if test "x$ac_cv_c_bigendian" = "xyes"; then
5582 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5583else
5584 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5585fi
5586
Benny Prijono1d971622006-09-10 22:27:40 +00005587if test "$enable_sound" = "no"; then
5588 true;
5589else
5590 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005591 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +00005592 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Benny Prijonoe1105232011-10-26 06:49:34 +00005593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5594$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005595 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005596 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005597 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5598 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005599 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005600 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5601 ac_pjmedia_snd=pa_old_darwinos
Benny Prijonoe1105232011-10-26 06:49:34 +00005602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5603$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005604 else
5605 ac_pjmedia_snd=pa_darwinos
Benny Prijonoe1105232011-10-26 06:49:34 +00005606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5607$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005608 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005609 ;;
5610 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005611 ac_pjmedia_snd=pa_win32
Benny Prijonoe1105232011-10-26 06:49:34 +00005612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5613$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005614 ;;
5615 *rtems*)
5616 ac_pjmedia_snd=null
Benny Prijonoe1105232011-10-26 06:49:34 +00005617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5618$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005619 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005620 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005621 ac_pjmedia_snd=pa_unix
Benny Prijonoe1105232011-10-26 06:49:34 +00005622 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5623if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005624 ac_pa_use_alsa=1
5625
5626 LIBS="$LIBS -lasound"
5627
5628else
5629 ac_pa_use_alsa=0
5630
5631fi
5632
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005633
Benny Prijonoe1105232011-10-26 06:49:34 +00005634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5635$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005636
5637 ac_pa_use_oss=1
5638
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005639 # Check whether --enable-oss was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005640if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005641 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005642 if test "$enable_oss" = "no"; then
5643 ac_pa_use_oss=0
Benny Prijonoe1105232011-10-26 06:49:34 +00005644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5645$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005646 fi
5647
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005648fi
5649
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005650 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005651 esac
5652fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005653
Sauw Ming6e6c2152010-12-14 13:03:10 +00005654
5655if test "$enable_video" = "no"; then
5656 true;
5657else
5658 case $target in
5659 arm-apple-darwin*)
5660 ac_pjmedia_video=iphone_os
5661
Sauw Ming24c39a32011-08-16 05:44:46 +00005662
5663 SAVED_LIBS="$LIBS"
5664 LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijonoe1105232011-10-26 06:49:34 +00005665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005666/* end confdefs.h. */
5667
5668int
5669main ()
5670{
5671
5672 ;
5673 return 0;
5674}
5675_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005676if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming24c39a32011-08-16 05:44:46 +00005677 ac_pjmedia_video_has_ios=yes
5678else
Benny Prijonoe1105232011-10-26 06:49:34 +00005679 ac_pjmedia_video_has_ios=no
Sauw Ming24c39a32011-08-16 05:44:46 +00005680fi
Benny Prijonoe1105232011-10-26 06:49:34 +00005681rm -f core conftest.err conftest.$ac_objext \
5682 conftest$ac_exeext conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005683 LIBS="$SAVED_LIBS"
5684 if test "$ac_pjmedia_video_has_ios" = "yes"; then
5685 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
5686 LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijonoe1105232011-10-26 06:49:34 +00005687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
5688$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005689 else
Benny Prijonoe1105232011-10-26 06:49:34 +00005690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
5691$as_echo "Checking if AVFoundation framework is available... no" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005692 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00005693 ;;
5694 *darwin*)
5695 ac_pjmedia_video=mac_os
5696
5697
5698 SAVED_LIBS="$LIBS"
5699 LIBS="-framework QTKit"
Benny Prijonoe1105232011-10-26 06:49:34 +00005700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005701/* end confdefs.h. */
5702
5703int
5704main ()
5705{
5706
5707 ;
5708 return 0;
5709}
5710_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005711if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00005712 ac_pjmedia_video_has_qt=yes
5713else
Benny Prijonoe1105232011-10-26 06:49:34 +00005714 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +00005715fi
Benny Prijonoe1105232011-10-26 06:49:34 +00005716rm -f core conftest.err conftest.$ac_objext \
5717 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005718 LIBS="$SAVED_LIBS"
5719 if test "$ac_pjmedia_video_has_qt" = "yes"; then
5720 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Sauw Ming21bd3fd2011-04-06 11:30:18 +00005721 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL"
Benny Prijonoe1105232011-10-26 06:49:34 +00005722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5723$as_echo "Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005724 else
Benny Prijonoe1105232011-10-26 06:49:34 +00005725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5726$as_echo "Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005727 fi
5728 ;;
5729 esac
5730fi
5731
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005732# Check whether --enable-ext_sound was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005733if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005734 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005735 ac_pjmedia_snd=external
Benny Prijonoe1105232011-10-26 06:49:34 +00005736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5737$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005738 fi
5739
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005740fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005741
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005742
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005743
5744# Check whether --enable-small-filter was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005745if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005746 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005747 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonoe1105232011-10-26 06:49:34 +00005748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5749$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005750 fi
5751else
Benny Prijonoe1105232011-10-26 06:49:34 +00005752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5753$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005754fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005755
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005756
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005757
5758# Check whether --enable-large-filter was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005759if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005760 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005761 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonoe1105232011-10-26 06:49:34 +00005762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5763$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005764 fi
5765else
Benny Prijonoe1105232011-10-26 06:49:34 +00005766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5767$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005768fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005769
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005770
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005771
5772# Check whether --enable-speex-aec was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005773if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005774 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005775 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonoe1105232011-10-26 06:49:34 +00005776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5777$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005778 fi
5779else
Benny Prijonoe1105232011-10-26 06:49:34 +00005780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5781$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005782fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005783
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005784
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005785
5786# Check whether --enable-g711-codec was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005787if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005788 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005789 ac_no_g711_codec=1
Benny Prijonoe1105232011-10-26 06:49:34 +00005790 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005791
Benny Prijonoe1105232011-10-26 06:49:34 +00005792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5793$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005794 fi
5795else
Benny Prijonoe1105232011-10-26 06:49:34 +00005796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5797$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005798fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005799
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005800
5801
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005802
5803# Check whether --enable-l16-codec was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005804if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005805 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005806 ac_no_l16_codec=1
Benny Prijonoe1105232011-10-26 06:49:34 +00005807 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005808
Benny Prijonoe1105232011-10-26 06:49:34 +00005809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5810$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005811 fi
5812else
Benny Prijonoe1105232011-10-26 06:49:34 +00005813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5814$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005815fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005816
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005817
5818
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005819
5820# Check whether --enable-gsm-codec was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005821if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005822 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005823 ac_no_gsm_codec=1
Benny Prijonoe1105232011-10-26 06:49:34 +00005824 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005825
Benny Prijonoe1105232011-10-26 06:49:34 +00005826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5827$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005828 fi
5829else
Benny Prijonoe1105232011-10-26 06:49:34 +00005830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5831$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005832fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005833
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005834
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005835
5836# Check whether --enable-g722-codec was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005837if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005838 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005839 ac_no_g722_codec=1
Benny Prijonoe1105232011-10-26 06:49:34 +00005840 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005841
Benny Prijonoe1105232011-10-26 06:49:34 +00005842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5843$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005844 fi
5845else
Benny Prijonoe1105232011-10-26 06:49:34 +00005846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5847$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005848fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005849
5850
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005851
5852# Check whether --enable-g7221-codec was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005853if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005854 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5855 ac_no_g7221_codec=1
Benny Prijonoe1105232011-10-26 06:49:34 +00005856 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005857
Benny Prijonoe1105232011-10-26 06:49:34 +00005858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5859$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005860 fi
5861else
Benny Prijonoe1105232011-10-26 06:49:34 +00005862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5863$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005864fi
5865
5866
5867
5868# Check whether --enable-speex-codec was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005869if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005870 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005871 ac_no_speex_codec=1
Benny Prijonoe1105232011-10-26 06:49:34 +00005872 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005873
Benny Prijonoe1105232011-10-26 06:49:34 +00005874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5875$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005876 fi
5877else
Benny Prijonoe1105232011-10-26 06:49:34 +00005878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5879$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005880fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005881
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005882
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005883
5884# Check whether --enable-ilbc-codec was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005885if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005886 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005887 ac_no_ilbc_codec=1
Benny Prijonoe1105232011-10-26 06:49:34 +00005888 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005889
Benny Prijonoe1105232011-10-26 06:49:34 +00005890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5891$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005892 fi
5893else
Benny Prijonoe1105232011-10-26 06:49:34 +00005894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5895$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005896fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005897
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005898
5899# Check whether --enable-libsamplerate was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005900if test "${enable_libsamplerate+set}" = set; then :
5901 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5902$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5903if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005905else
5906 ac_check_lib_save_LIBS=$LIBS
5907LIBS="-lsamplerate $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00005908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005909/* end confdefs.h. */
5910
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005911/* Override any GCC internal prototype to avoid an error.
5912 Use char because int might match the return type of a GCC
5913 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005914#ifdef __cplusplus
5915extern "C"
5916#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005917char src_new ();
5918int
5919main ()
5920{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005921return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005922 ;
5923 return 0;
5924}
5925_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00005926if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005927 ac_cv_lib_samplerate_src_new=yes
5928else
Benny Prijonoe1105232011-10-26 06:49:34 +00005929 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005930fi
Benny Prijonoe1105232011-10-26 06:49:34 +00005931rm -f core conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005933LIBS=$ac_check_lib_save_LIBS
5934fi
Benny Prijonoe1105232011-10-26 06:49:34 +00005935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
5936$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
5937if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005938 cat >>confdefs.h <<_ACEOF
5939#define HAVE_LIBSAMPLERATE 1
5940_ACEOF
5941
5942 LIBS="-lsamplerate $LIBS"
5943
5944fi
5945
5946else
Benny Prijonoe1105232011-10-26 06:49:34 +00005947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
5948$as_echo "Skipping libsamplerate detection" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00005949
5950fi
5951
5952
5953
5954# Check whether --with-sdl was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005955if test "${with_sdl+set}" = set; then :
Benny Prijono5b0af632011-07-20 03:16:25 +00005956 withval=$with_sdl;
5957else
5958 with_sdl=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005959
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005960fi
Benny Prijono0822c192008-08-21 20:59:58 +00005961
5962
Benny Prijonoc45d9512010-12-10 11:04:30 +00005963# Check whether --enable-sdl was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005964if test "${enable_sdl+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00005965 enableval=$enable_sdl;
5966 if test "$enable_sdl" = "no"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00005967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
5968$as_echo "Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00005969 fi
5970
5971else
5972
Benny Prijono5b0af632011-07-20 03:16:25 +00005973 SDL_CONFIG="sdl-config"
5974 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
5975 SDL_CONFIG=$with_sdl/bin/sdl-config
Benny Prijonoe1105232011-10-26 06:49:34 +00005976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
5977$as_echo "Using SDL prefix... $with_sdl" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00005978 fi
5979
Benny Prijonoe1105232011-10-26 06:49:34 +00005980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5
5981$as_echo_n "checking SDL availability..... " >&6; }
Sauw Ming1d8ceb12011-08-24 05:54:25 +00005982 if (sh -c "$SDL_CONFIG --version" | grep 1.3) then
Benny Prijonoc45d9512010-12-10 11:04:30 +00005983
5984
Benny Prijono5b0af632011-07-20 03:16:25 +00005985 ac_sdl_cflags=`$SDL_CONFIG --cflags`
Benny Prijonoc45d9512010-12-10 11:04:30 +00005986 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
Benny Prijono5b0af632011-07-20 03:16:25 +00005987 ac_sdl_ldflags=`$SDL_CONFIG --libs`
Benny Prijono69b1f822010-12-10 11:33:01 +00005988 LIBS="$LIBS $ac_sdl_ldflags"
Sauw Ming1d8ceb12011-08-24 05:54:25 +00005989 else
Benny Prijonoe1105232011-10-26 06:49:34 +00005990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
5991$as_echo "Unsupported SDL version" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00005992 fi
Benny Prijono550a1a62007-10-16 08:54:00 +00005993
Benny Prijono0822c192008-08-21 20:59:58 +00005994fi
5995
5996
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005997
Benny Prijonoc45d9512010-12-10 11:04:30 +00005998# Check whether --enable-ffmpeg was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00005999if test "${enable_ffmpeg+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006000 enableval=$enable_ffmpeg;
6001 ac_has_ffmpeg=0
6002
6003 if test "$enable_ffmpeg" = "no"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6005$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006006 fi
6007
6008else
6009
6010
6011
6012
Benny Prijonoe1105232011-10-26 06:49:34 +00006013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
6014$as_echo_n "checking for deflate in -lz... " >&6; }
6015if test "${ac_cv_lib_z_deflate+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006017else
6018 ac_check_lib_save_LIBS=$LIBS
6019LIBS="-lz $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006021/* end confdefs.h. */
6022
6023/* Override any GCC internal prototype to avoid an error.
6024 Use char because int might match the return type of a GCC
6025 builtin and then its argument prototype would still apply. */
6026#ifdef __cplusplus
6027extern "C"
6028#endif
6029char deflate ();
6030int
6031main ()
6032{
6033return deflate ();
6034 ;
6035 return 0;
6036}
6037_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006038if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006039 ac_cv_lib_z_deflate=yes
6040else
Benny Prijonoe1105232011-10-26 06:49:34 +00006041 ac_cv_lib_z_deflate=no
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006042fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006043rm -f core conftest.err conftest.$ac_objext \
6044 conftest$ac_exeext conftest.$ac_ext
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006045LIBS=$ac_check_lib_save_LIBS
6046fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
6048$as_echo "$ac_cv_lib_z_deflate" >&6; }
6049if test "x$ac_cv_lib_z_deflate" = x""yes; then :
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006050 cat >>confdefs.h <<_ACEOF
6051#define HAVE_LIBZ 1
6052_ACEOF
6053
6054 LIBS="-lz $LIBS"
6055
6056fi
6057
Benny Prijonoe1105232011-10-26 06:49:34 +00006058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x264_free in -lx264" >&5
6059$as_echo_n "checking for x264_free in -lx264... " >&6; }
6060if test "${ac_cv_lib_x264_x264_free+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062else
6063 ac_check_lib_save_LIBS=$LIBS
6064LIBS="-lx264 $LIBS"
6065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h. */
6067
6068/* Override any GCC internal prototype to avoid an error.
6069 Use char because int might match the return type of a GCC
6070 builtin and then its argument prototype would still apply. */
6071#ifdef __cplusplus
6072extern "C"
6073#endif
6074char x264_free ();
6075int
6076main ()
6077{
6078return x264_free ();
6079 ;
6080 return 0;
6081}
6082_ACEOF
6083if ac_fn_c_try_link "$LINENO"; then :
6084 ac_cv_lib_x264_x264_free=yes
6085else
6086 ac_cv_lib_x264_x264_free=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext \
6089 conftest$ac_exeext conftest.$ac_ext
6090LIBS=$ac_check_lib_save_LIBS
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_x264_x264_free" >&5
6093$as_echo "$ac_cv_lib_x264_x264_free" >&6; }
6094if test "x$ac_cv_lib_x264_x264_free" = x""yes; then :
6095 cat >>confdefs.h <<_ACEOF
6096#define HAVE_LIBX264 1
6097_ACEOF
6098
6099 LIBS="-lx264 $LIBS"
6100
6101fi
6102
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006103
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006104 FFMPEG_PREFIX=""
6105 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6106 FFMPEG_PREFIX=$with_ffmpeg
Benny Prijonoe1105232011-10-26 06:49:34 +00006107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6108$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006109 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
Sauw Ming01095d82011-07-14 08:46:19 +00006110 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006111 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
6112 fi
6113
Benny Prijonoe1105232011-10-26 06:49:34 +00006114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
6115$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
6116if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006118else
6119 ac_check_lib_save_LIBS=$LIBS
6120LIBS="-lavdevice $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006122/* end confdefs.h. */
6123
6124/* Override any GCC internal prototype to avoid an error.
6125 Use char because int might match the return type of a GCC
6126 builtin and then its argument prototype would still apply. */
6127#ifdef __cplusplus
6128extern "C"
6129#endif
6130char avdevice_version ();
6131int
6132main ()
6133{
6134return avdevice_version ();
6135 ;
6136 return 0;
6137}
6138_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006139if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006140 ac_cv_lib_avdevice_avdevice_version=yes
6141else
Benny Prijonoe1105232011-10-26 06:49:34 +00006142 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006143fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006144rm -f core conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006146LIBS=$ac_check_lib_save_LIBS
6147fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6149$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
6150if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006151 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6152 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
6153
6154
6155fi
6156
Benny Prijonoe1105232011-10-26 06:49:34 +00006157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6158$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
6159if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006161else
6162 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006163LIBS="-lavformat -lavcodec -lavutil
6164 $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006166/* end confdefs.h. */
6167
6168/* Override any GCC internal prototype to avoid an error.
6169 Use char because int might match the return type of a GCC
6170 builtin and then its argument prototype would still apply. */
6171#ifdef __cplusplus
6172extern "C"
6173#endif
6174char av_register_all ();
6175int
6176main ()
6177{
6178return av_register_all ();
6179 ;
6180 return 0;
6181}
6182_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006183if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006184 ac_cv_lib_avformat_av_register_all=yes
6185else
Benny Prijonoe1105232011-10-26 06:49:34 +00006186 ac_cv_lib_avformat_av_register_all=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006187fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006188rm -f core conftest.err conftest.$ac_objext \
6189 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006190LIBS=$ac_check_lib_save_LIBS
6191fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6193$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
6194if test "x$ac_cv_lib_avformat_av_register_all" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006195 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6196 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6197
Benny Prijonoc45d9512010-12-10 11:04:30 +00006198fi
6199
Benny Prijonoe1105232011-10-26 06:49:34 +00006200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6201$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
6202if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006204else
6205 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006206LIBS="-lavcodec -lavutil
6207 $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006209/* end confdefs.h. */
6210
6211/* Override any GCC internal prototype to avoid an error.
6212 Use char because int might match the return type of a GCC
6213 builtin and then its argument prototype would still apply. */
6214#ifdef __cplusplus
6215extern "C"
6216#endif
6217char avcodec_init ();
6218int
6219main ()
6220{
6221return avcodec_init ();
6222 ;
6223 return 0;
6224}
6225_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006226if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006227 ac_cv_lib_avcodec_avcodec_init=yes
6228else
Benny Prijonoe1105232011-10-26 06:49:34 +00006229 ac_cv_lib_avcodec_avcodec_init=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006230fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006231rm -f core conftest.err conftest.$ac_objext \
6232 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006233LIBS=$ac_check_lib_save_LIBS
6234fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6236$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
6237if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006238 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6239 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6240
Benny Prijonoc45d9512010-12-10 11:04:30 +00006241fi
6242
Benny Prijonoe1105232011-10-26 06:49:34 +00006243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6244$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
6245if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006247else
6248 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006249LIBS="-lswscale -lavutil
6250 $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006252/* end confdefs.h. */
6253
6254/* Override any GCC internal prototype to avoid an error.
6255 Use char because int might match the return type of a GCC
6256 builtin and then its argument prototype would still apply. */
6257#ifdef __cplusplus
6258extern "C"
6259#endif
6260char sws_scale ();
6261int
6262main ()
6263{
6264return sws_scale ();
6265 ;
6266 return 0;
6267}
6268_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006269if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006270 ac_cv_lib_swscale_sws_scale=yes
6271else
Benny Prijonoe1105232011-10-26 06:49:34 +00006272 ac_cv_lib_swscale_sws_scale=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006273fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006274rm -f core conftest.err conftest.$ac_objext \
6275 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006276LIBS=$ac_check_lib_save_LIBS
6277fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6279$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
6280if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006281 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6282 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6283
Benny Prijonoc45d9512010-12-10 11:04:30 +00006284fi
6285
Benny Prijonoe1105232011-10-26 06:49:34 +00006286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
6287$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
6288if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then :
6289 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006290else
6291 ac_check_lib_save_LIBS=$LIBS
6292LIBS="-lavutil $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006294/* end confdefs.h. */
6295
6296/* Override any GCC internal prototype to avoid an error.
6297 Use char because int might match the return type of a GCC
6298 builtin and then its argument prototype would still apply. */
6299#ifdef __cplusplus
6300extern "C"
6301#endif
6302char av_malloc ();
6303int
6304main ()
6305{
6306return av_malloc ();
6307 ;
6308 return 0;
6309}
6310_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006311if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006312 ac_cv_lib_avutil_av_malloc=yes
6313else
Benny Prijonoe1105232011-10-26 06:49:34 +00006314 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006315fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006316rm -f core conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006318LIBS=$ac_check_lib_save_LIBS
6319fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6321$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
6322if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006323 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6324 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
6325
6326
6327fi
6328
Benny Prijonoe1105232011-10-26 06:49:34 +00006329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
6330$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
6331if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006333else
6334 ac_check_lib_save_LIBS=$LIBS
6335LIBS="-lavcore $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006337/* end confdefs.h. */
6338
6339/* Override any GCC internal prototype to avoid an error.
6340 Use char because int might match the return type of a GCC
6341 builtin and then its argument prototype would still apply. */
6342#ifdef __cplusplus
6343extern "C"
6344#endif
6345char avcore_version ();
6346int
6347main ()
6348{
6349return avcore_version ();
6350 ;
6351 return 0;
6352}
6353_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006354if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006355 ac_cv_lib_avcore_avcore_version=yes
6356else
Benny Prijonoe1105232011-10-26 06:49:34 +00006357 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006358fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006359rm -f core conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006361LIBS=$ac_check_lib_save_LIBS
6362fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6364$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
6365if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006366 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6367 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
6368
6369
6370fi
6371
Benny Prijono69b1f822010-12-10 11:33:01 +00006372 LIBS="$LIBS $ac_ffmpeg_ldflags"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006373
6374
6375fi
6376
6377
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006378
6379# Check whether --with-ffmpeg was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00006380if test "${with_ffmpeg+set}" = set; then :
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006381 withval=$with_ffmpeg;
6382else
6383 with_ffmpeg=no
6384
6385fi
6386
6387
6388
Benny Prijonoc45d9512010-12-10 11:04:30 +00006389# Check whether --enable-v4l2 was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00006390if test "${enable_v4l2+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006391 enableval=$enable_v4l2;
6392 if test "$enable_v4l2" = "no"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6394$as_echo "Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006395 fi
6396
6397else
6398
6399
6400
Benny Prijonoe1105232011-10-26 06:49:34 +00006401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6402$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
6403if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006405else
6406 ac_check_lib_save_LIBS=$LIBS
6407LIBS="-lv4l2 $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006409/* end confdefs.h. */
6410
6411/* Override any GCC internal prototype to avoid an error.
6412 Use char because int might match the return type of a GCC
6413 builtin and then its argument prototype would still apply. */
6414#ifdef __cplusplus
6415extern "C"
6416#endif
6417char v4l2_open ();
6418int
6419main ()
6420{
6421return v4l2_open ();
6422 ;
6423 return 0;
6424}
6425_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006426if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006427 ac_cv_lib_v4l2_v4l2_open=yes
6428else
Benny Prijonoe1105232011-10-26 06:49:34 +00006429 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006430fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006431rm -f core conftest.err conftest.$ac_objext \
6432 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006433LIBS=$ac_check_lib_save_LIBS
6434fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6436$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
6437if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006438 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6439 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +00006440 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006441
6442
6443fi
6444
6445
6446fi
6447
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006448
6449# Check whether --enable-ipp was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00006450if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006451 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006452else
6453 enable_ipp=no
6454
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006455fi
Benny Prijono0822c192008-08-21 20:59:58 +00006456
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006457
Benny Prijono3965f192010-02-10 18:46:05 +00006458
6459# Check whether --with-ipp was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00006460if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006461 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006462else
6463 with_ipp=no
6464
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006465fi
Benny Prijono0822c192008-08-21 20:59:58 +00006466
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006467
Benny Prijono3965f192010-02-10 18:46:05 +00006468
6469# Check whether --with-ipp-samples was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00006470if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006471 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00006472else
6473 with_ipp_samples=no
6474
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006475fi
6476
Benny Prijono0822c192008-08-21 20:59:58 +00006477
Benny Prijono3965f192010-02-10 18:46:05 +00006478
6479# Check whether --with-ipp-arch was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00006480if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006481 withval=$with_ipp_arch;
6482else
6483 with_ipp_arch=no
6484
6485fi
6486
6487
Benny Prijono0822c192008-08-21 20:59:58 +00006488if test "x$enable_ipp" != "xno"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6490$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006491
6492 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6494$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006495 IPPROOT=$with_ipp
6496 elif test "x$IPPROOT" = "x"; then
6497 if test -d /opt/intel/ipp; then
6498 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijonoe1105232011-10-26 06:49:34 +00006499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6500$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006501 fi
6502 else
Benny Prijonoe1105232011-10-26 06:49:34 +00006503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6504$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006505 fi
6506
Benny Prijono3965f192010-02-10 18:46:05 +00006507 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00006508 IPP_SUFFIX=$with_ipp_arch
Benny Prijonoe1105232011-10-26 06:49:34 +00006509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6510$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006511 else
6512 IPP_SUFFIX=""
Benny Prijonoe1105232011-10-26 06:49:34 +00006513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6514$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006515 fi
6516
Benny Prijono0822c192008-08-21 20:59:58 +00006517 if test x$IPPROOT = x; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006518 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
Benny Prijono0822c192008-08-21 20:59:58 +00006519 elif test ! -d $IPPROOT; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006520 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006521 elif test ! -d $IPPROOT/include; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006522 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006523 else
6524 # IPP directory looks okay.
6525 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00006526 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00006527
6528 SAVED_CFLAGS="$CFLAGS"
6529 SAVED_LDFLAGS="$LDFLAGS"
6530 SAVED_LIBS="$LIBS"
6531
6532 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006533 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +00006534
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006535#
Benny Prijono46bd0842010-02-12 14:12:41 +00006536 # Some differences between Mac OS X and Linux
6537 case $target in
6538 *darwin* )
6539 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6540 ;;
6541 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006542 # Find out where the libraries live.
6543 IPP7_ARCH=""
6544 if test -d $IPPROOT/lib/intel64; then
6545 IPP7_ARCH="intel64"
6546 elif test -d $IPPROOT/lib/ia32; then
6547 IPP7_ARCH="ia32"
6548 elif test -d $IPPROOT/lib/mic; then
6549 IPP7_ARCH="mic"
6550 fi
6551
6552 if test -z "$IPP7_ARCH"; then
6553 # IPP6 (and possibly below)
6554 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6555 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
6556 else
6557 # IPP7
6558 if ! test -d $IPPROOT/../compiler; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006559 as_fn_error "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006560 fi
6561 IPP_CFLAGS="$IPP_CFLAGS"
6562 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6563 IPP_LIBS="$IPP_LIBS -liomp5"
6564 fi
Benny Prijono46bd0842010-02-12 14:12:41 +00006565 ;;
6566 esac
6567
Benny Prijono0822c192008-08-21 20:59:58 +00006568 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00006569 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00006570 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6571
6572 CFLAGS="$CFLAGS $IPP_CFLAGS"
6573 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6574 LIBS="$IPP_LIBS $LIBS"
6575
6576
Benny Prijonoe1105232011-10-26 06:49:34 +00006577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6578$as_echo_n "checking Intel IPP usability... " >&6; }
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006580/* end confdefs.h. */
6581#include <ippcore.h>
6582
6583int
6584main ()
6585{
6586ippStaticInit();
6587 ;
6588 return 0;
6589}
6590_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006591if ac_fn_c_try_link "$LINENO"; then :
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6593$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006594else
Benny Prijonoe1105232011-10-26 06:49:34 +00006595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6597{ as_fn_set_status run with --help for more info
6598as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
6599See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00006600fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006601rm -f core conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006603
6604 CFLAGS="$SAVED_CFLAGS"
6605 LDFLAGS="$SAVED_LDFLAGS"
6606 LIBS="$SAVED_LIBS"
6607 fi
6608
Benny Prijonoe1105232011-10-26 06:49:34 +00006609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6610$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006611
6612 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6614$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006615 IPPSAMPLES=$with_ipp_samples
6616 elif test "x$IPPSAMPLES" = "x"; then
6617 if test -d /opt/intel/ipp-samples; then
6618 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijonoe1105232011-10-26 06:49:34 +00006619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6620$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006621 fi
6622 else
Benny Prijonoe1105232011-10-26 06:49:34 +00006623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6624$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006625 fi
6626
6627 if test x$IPPSAMPLES = x; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006628 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
Benny Prijono0822c192008-08-21 20:59:58 +00006629 elif test ! -d $IPPSAMPLES; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006630 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006631 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006632 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006633 else
6634 # Remove trailing backslash
6635 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6636
Benny Prijono3965f192010-02-10 18:46:05 +00006637 # Guess the libusc.a/libspeech.a build location
Benny Prijonoe1105232011-10-26 06:49:34 +00006638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6639$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006640 if test -d $IPPSAMPLES/speech-codecs/bin; then
6641 IPPVER=5
6642 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6643 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6644 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00006645 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6646 # gcc compiler
6647 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6648 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6649 # icc compiler
6650 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6651 else
Benny Prijonoe1105232011-10-26 06:49:34 +00006652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6654as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6655See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006656 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006657 else
Benny Prijonoe1105232011-10-26 06:49:34 +00006658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6660as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6661See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006662 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006663
6664 # Test the directory
6665 if test ! -d $IPPSAMP_DIR; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6668as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6669See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006670 exit 1;
6671 fi
6672
6673 if test "x$IPPVER" = "x5"; then
6674 IPPSAMP_LIBS="libusc.a"
6675 IPPSAMP_LDLIBS="-lusc"
6676 elif test "x$IPPVER" = "x6"; then
6677 IPPSAMP_LIBS="libspeech.a"
6678 IPPSAMP_LDLIBS="-lspeech"
6679 else
Benny Prijonoe1105232011-10-26 06:49:34 +00006680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6682as_fn_error "bug in this script: unsupported IPP version
6683See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006684 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006685
6686 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6689as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6690See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006691 fi
6692
Benny Prijonoe1105232011-10-26 06:49:34 +00006693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6694$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006695
6696 SAVED_CFLAGS="$CFLAGS"
6697 SAVED_LDFLAGS="$LDFLAGS"
6698 SAVED_LIBS="$LIBS"
6699
Benny Prijono3965f192010-02-10 18:46:05 +00006700 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6701 CFLAGS="$CFLAGS $IPPSAMP_INC"
6702 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6703 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006704
Benny Prijonoe1105232011-10-26 06:49:34 +00006705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6706$as_echo_n "checking Intel IPP USC usability... " >&6; }
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006708/* end confdefs.h. */
6709#include <usc.h>
6710
6711int
6712main ()
6713{
6714extern USC_Fxns USC_G729AFP_Fxns;
6715 ;
6716 return 0;
6717}
6718_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006719if ac_fn_c_try_link "$LINENO"; then :
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6721$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006722else
Benny Prijonoe1105232011-10-26 06:49:34 +00006723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6725as_fn_error "failed
6726See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006727fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006728rm -f core conftest.err conftest.$ac_objext \
6729 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006730
6731 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006732 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6733 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006734
Benny Prijono3965f192010-02-10 18:46:05 +00006735 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6736 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6737 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006738 fi
6739
Benny Prijono3965f192010-02-10 18:46:05 +00006740 CFLAGS="$CFLAGS $IPP_CFLAGS"
6741 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6742 LIBS="$LIBS $IPP_LIBS"
6743
Benny Prijono0822c192008-08-21 20:59:58 +00006744 ac_build_mak_vars="$ac_build_mak_vars\n\
6745export IPP_CFLAGS=$IPP_CFLAGS\n\
6746export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6747export IPP_LIBS=$IPP_LIBS"
6748else
Benny Prijonoe1105232011-10-26 06:49:34 +00006749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6750$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006751fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006752
6753
6754
6755
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006756# Check whether --enable-ssl was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00006757if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006758 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006759 if test "$enable_ssl" = "no"; then
6760 ac_no_ssl=1
Benny Prijonoe1105232011-10-26 06:49:34 +00006761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6762$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006763 fi
6764
6765else
6766
Benny Prijonoe1105232011-10-26 06:49:34 +00006767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6768$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006769
6770
6771
Benny Prijonoe1105232011-10-26 06:49:34 +00006772 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
6773if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006774 openssl_h_present=1
6775fi
6776
6777
Benny Prijonoe1105232011-10-26 06:49:34 +00006778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
6779$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
6780if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
6781 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006782else
6783 ac_check_lib_save_LIBS=$LIBS
6784LIBS="-lcrypto $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006786/* end confdefs.h. */
6787
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006788/* Override any GCC internal prototype to avoid an error.
6789 Use char because int might match the return type of a GCC
6790 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006791#ifdef __cplusplus
6792extern "C"
6793#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006794char ERR_load_BIO_strings ();
6795int
6796main ()
6797{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006798return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006799 ;
6800 return 0;
6801}
6802_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006803if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006804 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6805else
Benny Prijonoe1105232011-10-26 06:49:34 +00006806 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006807fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006808rm -f core conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006810LIBS=$ac_check_lib_save_LIBS
6811fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6813$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
6814if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006815 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6816fi
6817
Benny Prijonoe1105232011-10-26 06:49:34 +00006818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6819$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6820if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006822else
6823 ac_check_lib_save_LIBS=$LIBS
6824LIBS="-lssl $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006826/* end confdefs.h. */
6827
6828/* Override any GCC internal prototype to avoid an error.
6829 Use char because int might match the return type of a GCC
6830 builtin and then its argument prototype would still apply. */
6831#ifdef __cplusplus
6832extern "C"
6833#endif
6834char SSL_library_init ();
6835int
6836main ()
6837{
6838return SSL_library_init ();
6839 ;
6840 return 0;
6841}
6842_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006843if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006844 ac_cv_lib_ssl_SSL_library_init=yes
6845else
Benny Prijonoe1105232011-10-26 06:49:34 +00006846 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006847fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006848rm -f core conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006850LIBS=$ac_check_lib_save_LIBS
6851fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6853$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6854if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006855 libssl_present=1 && LIBS="$LIBS -lssl"
6856fi
6857
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006858 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
6860$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00006861 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
6862 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijonoe1105232011-10-26 06:49:34 +00006863 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00006864
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006865 else
Benny Prijonoe1105232011-10-26 06:49:34 +00006866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
6867$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006868 fi
6869
6870fi
6871
6872
6873
6874# Check whether --enable-opencore_amrnb was given.
Benny Prijonoe1105232011-10-26 06:49:34 +00006875if test "${enable_opencore_amrnb+set}" = set; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006876 enableval=$enable_opencore_amrnb;
6877 if test "$enable_opencore_amrnb" = "no"; then
6878 ac_no_opencore_amrnb=1
Benny Prijonoe1105232011-10-26 06:49:34 +00006879 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00006880
Benny Prijonoe1105232011-10-26 06:49:34 +00006881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
6882$as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006883 fi
6884
6885else
6886
Benny Prijonoe1105232011-10-26 06:49:34 +00006887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5
6888$as_echo "checking for OpenCORE AMR-NB installations.." >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006889
6890
Benny Prijonoe1105232011-10-26 06:49:34 +00006891 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
6892if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = x""yes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006893 opencore_amrnb_h_present=1
6894fi
6895
6896
Benny Prijonoe1105232011-10-26 06:49:34 +00006897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
6898$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
6899if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
Sauw Minge7dbbc82011-10-24 09:28:13 +00006901else
6902 ac_check_lib_save_LIBS=$LIBS
6903LIBS="-lopencore-amrnb $LIBS"
Benny Prijonoe1105232011-10-26 06:49:34 +00006904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00006905/* end confdefs.h. */
6906
6907/* Override any GCC internal prototype to avoid an error.
6908 Use char because int might match the return type of a GCC
6909 builtin and then its argument prototype would still apply. */
6910#ifdef __cplusplus
6911extern "C"
6912#endif
6913char Encoder_Interface_init ();
6914int
6915main ()
6916{
6917return Encoder_Interface_init ();
6918 ;
6919 return 0;
6920}
6921_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00006922if ac_fn_c_try_link "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006923 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
6924else
Benny Prijonoe1105232011-10-26 06:49:34 +00006925 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
Sauw Minge7dbbc82011-10-24 09:28:13 +00006926fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006927rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00006929LIBS=$ac_check_lib_save_LIBS
6930fi
Benny Prijonoe1105232011-10-26 06:49:34 +00006931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
6932$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
6933if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = x""yes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006934 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
6935fi
6936
6937 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00006938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
6939$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
6940 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00006941
6942 else
6943 ac_no_opencore_amrnb=1
Benny Prijonoe1105232011-10-26 06:49:34 +00006944 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00006945
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006946 fi
6947
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006948fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006949
6950
6951
6952
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006953
Benny Prijonoe1105232011-10-26 06:49:34 +00006954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
6955$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006956case $target in
Benny Prijonoe1105232011-10-26 06:49:34 +00006957 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006958
Benny Prijonoe1105232011-10-26 06:49:34 +00006959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6960$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006961 ;;
Benny Prijonoe1105232011-10-26 06:49:34 +00006962 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006963
Benny Prijonoe1105232011-10-26 06:49:34 +00006964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6965$as_echo "no (default)" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
6967$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006968 ;;
6969esac
6970
Benny Prijonoe1105232011-10-26 06:49:34 +00006971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
6972$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006973case $target in
Benny Prijonoe1105232011-10-26 06:49:34 +00006974 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006975
Benny Prijonoe1105232011-10-26 06:49:34 +00006976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6977$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006978 ;;
Benny Prijonoe1105232011-10-26 06:49:34 +00006979 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006980
Benny Prijonoe1105232011-10-26 06:49:34 +00006981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6982$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006983 ;;
6984esac
6985
Benny Prijonoe1105232011-10-26 06:49:34 +00006986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
6987$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006988case $target in
Benny Prijonoe1105232011-10-26 06:49:34 +00006989 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006990
Benny Prijonoe1105232011-10-26 06:49:34 +00006991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006993 ;;
Benny Prijonoe1105232011-10-26 06:49:34 +00006994 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006995
Benny Prijonoe1105232011-10-26 06:49:34 +00006996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6997$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006998 ;;
6999esac
7000
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007001case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007002 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoe1105232011-10-26 06:49:34 +00007003 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007004
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007005 ;;
Benny Prijonoe1105232011-10-26 06:49:34 +00007006 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007007
Benny Prijonoe1105232011-10-26 06:49:34 +00007008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7009$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007010 ;;
7011esac
7012
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007013case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007014 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoe1105232011-10-26 06:49:34 +00007015 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007016
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007017 ;;
Benny Prijonoe1105232011-10-26 06:49:34 +00007018 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007019
Benny Prijonoe1105232011-10-26 06:49:34 +00007020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7021$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007022 ;;
7023esac
7024
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007025
7026
7027
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007028if test "$build" = "$host"; then
7029 ac_cross_compile=
7030else
Benny Prijono5b818b22006-09-17 22:58:51 +00007031 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007032fi
7033ac_linux_poll=select
7034
7035ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007036
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007037
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007038case $target in
7039 *rtems*)
7040 ac_main_obj=main_rtems.o
7041 ;;
7042 *)
7043 ac_main_obj=main.o
7044 ;;
7045esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007046
Benny Prijono0822c192008-08-21 20:59:58 +00007047
7048ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007049cat >confcache <<\_ACEOF
7050# This file is a shell script that caches the results of configure
7051# tests run on this system so they can be shared between configure
7052# scripts and configure runs, see configure's option --config-cache.
7053# It is not useful on other systems. If it contains results you don't
7054# want to keep, you may remove or edit it.
7055#
7056# config.status only pays attention to the cache file if you give it
7057# the --recheck option to rerun configure.
7058#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007059# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007060# loading this file, other *unset* `ac_cv_foo' will be assigned the
7061# following values.
7062
7063_ACEOF
7064
7065# The following way of writing the cache mishandles newlines in values,
7066# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007067# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007068# Ultrix sh set writes to stderr and can't be redirected directly,
7069# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007070(
7071 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7072 eval ac_val=\$$ac_var
7073 case $ac_val in #(
7074 *${as_nl}*)
7075 case $ac_var in #(
Benny Prijonoe1105232011-10-26 06:49:34 +00007076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7077$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007078 esac
7079 case $ac_var in #(
7080 _ | IFS | as_nl) ;; #(
Benny Prijonoe1105232011-10-26 06:49:34 +00007081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7082 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007083 esac ;;
7084 esac
7085 done
7086
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007087 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7089 *${as_nl}ac_space=\ *)
Benny Prijonoe1105232011-10-26 06:49:34 +00007090 # `set' does not quote correctly, so add quotes: double-quote
7091 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007092 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007093 "s/'/'\\\\''/g;
7094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007095 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007096 *)
7097 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007099 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007100 esac |
7101 sort
7102) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007103 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007104 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007105 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007106 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7108 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7110 :end' >>confcache
7111if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7112 if test -w "$cache_file"; then
7113 test "x$cache_file" != "x/dev/null" &&
Benny Prijonoe1105232011-10-26 06:49:34 +00007114 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7115$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007116 cat confcache >$cache_file
7117 else
Benny Prijonoe1105232011-10-26 06:49:34 +00007118 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7119$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007120 fi
7121fi
7122rm -f confcache
7123
7124test "x$prefix" = xNONE && prefix=$ac_default_prefix
7125# Let make expand exec_prefix.
7126test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7127
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007128DEFS=-DHAVE_CONFIG_H
7129
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007130ac_libobjs=
7131ac_ltlibobjs=
7132for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7133 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007134 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijonoe1105232011-10-26 06:49:34 +00007135 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7137 # will be set to the directory where LIBOBJS objects are built.
Benny Prijonoe1105232011-10-26 06:49:34 +00007138 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7139 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007140done
7141LIBOBJS=$ac_libobjs
7142
7143LTLIBOBJS=$ac_ltlibobjs
7144
7145
7146
Benny Prijonoe1105232011-10-26 06:49:34 +00007147
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007148: ${CONFIG_STATUS=./config.status}
Benny Prijonoe1105232011-10-26 06:49:34 +00007149ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007150ac_clean_files_save=$ac_clean_files
7151ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijonoe1105232011-10-26 06:49:34 +00007152{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7153$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7154as_write_fail=0
7155cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007156#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007157# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007158# Run this file to recreate the current configuration.
7159# Compiler output produced by configure, useful for debugging
7160# configure, is in config.log if it exists.
7161
7162debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007163ac_cs_recheck=false
7164ac_cs_silent=false
Sauw Minge7dbbc82011-10-24 09:28:13 +00007165
Benny Prijonoe1105232011-10-26 06:49:34 +00007166SHELL=\${CONFIG_SHELL-$SHELL}
7167export SHELL
7168_ASEOF
7169cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7170## -------------------- ##
7171## M4sh Initialization. ##
7172## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007173
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007174# Be more Bourne compatible
7175DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonoe1105232011-10-26 06:49:34 +00007176if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007177 emulate sh
7178 NULLCMD=:
Benny Prijonoe1105232011-10-26 06:49:34 +00007179 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007180 # is contrary to our usage. Disable this feature.
7181 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007182 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00007183else
Benny Prijonoe1105232011-10-26 06:49:34 +00007184 case `(set -o) 2>/dev/null` in #(
7185 *posix*) :
7186 set -o posix ;; #(
7187 *) :
7188 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007189esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007190fi
7191
7192
Benny Prijonoe1105232011-10-26 06:49:34 +00007193as_nl='
7194'
7195export as_nl
7196# Printing a long string crashes Solaris 7 /usr/bin/printf.
7197as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7198as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7199as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7200# Prefer a ksh shell builtin over an external printf program on Solaris,
7201# but without wasting forks for bash or zsh.
7202if test -z "$BASH_VERSION$ZSH_VERSION" \
7203 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7204 as_echo='print -r --'
7205 as_echo_n='print -rn --'
7206elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7207 as_echo='printf %s\n'
7208 as_echo_n='printf %s'
7209else
7210 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7211 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7212 as_echo_n='/usr/ucb/echo -n'
7213 else
7214 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7215 as_echo_n_body='eval
7216 arg=$1;
7217 case $arg in #(
7218 *"$as_nl"*)
7219 expr "X$arg" : "X\\(.*\\)$as_nl";
7220 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7221 esac;
7222 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7223 '
7224 export as_echo_n_body
7225 as_echo_n='sh -c $as_echo_n_body as_echo'
7226 fi
7227 export as_echo_body
7228 as_echo='sh -c $as_echo_body as_echo'
7229fi
Benny Prijonod5233702010-01-13 13:09:45 +00007230
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007231# The user is always right.
7232if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonoe1105232011-10-26 06:49:34 +00007233 PATH_SEPARATOR=:
7234 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7235 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7236 PATH_SEPARATOR=';'
7237 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007238fi
7239
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007240
7241# IFS
7242# We need space, tab and new line, in precisely that order. Quoting is
7243# there to prevent editors from complaining about space-tab.
7244# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7245# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007246IFS=" "" $as_nl"
7247
7248# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonoe1105232011-10-26 06:49:34 +00007249case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007250 *[\\/]* ) as_myself=$0 ;;
7251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
Benny Prijonoe1105232011-10-26 06:49:34 +00007256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7257 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007258IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007259
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007260 ;;
7261esac
7262# We did not find ourselves, most probably we were run as `sh COMMAND'
7263# in which case we are not to be found in the path.
7264if test "x$as_myself" = x; then
7265 as_myself=$0
7266fi
7267if test ! -f "$as_myself"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00007268 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7269 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007270fi
7271
Benny Prijonoe1105232011-10-26 06:49:34 +00007272# Unset variables that we do not need and which cause bugs (e.g. in
7273# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7274# suppresses any "Segmentation fault" message there. '((' could
7275# trigger a bug in pdksh 5.2.14.
7276for as_var in BASH_ENV ENV MAIL MAILPATH
7277do eval test x\${$as_var+set} = xset \
7278 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007279done
7280PS1='$ '
7281PS2='> '
7282PS4='+ '
7283
7284# NLS nuisances.
Benny Prijonoe1105232011-10-26 06:49:34 +00007285LC_ALL=C
7286export LC_ALL
7287LANGUAGE=C
7288export LANGUAGE
Benny Prijono6a0a49a2011-10-18 11:17:23 +00007289
Benny Prijonoe1105232011-10-26 06:49:34 +00007290# CDPATH.
7291(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7292
7293
7294# as_fn_error ERROR [LINENO LOG_FD]
7295# ---------------------------------
7296# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7297# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7298# script with status $?, using 1 if that was 0.
7299as_fn_error ()
7300{
7301 as_status=$?; test $as_status -eq 0 && as_status=1
7302 if test "$3"; then
7303 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7304 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7305 fi
7306 $as_echo "$as_me: error: $1" >&2
7307 as_fn_exit $as_status
7308} # as_fn_error
7309
7310
7311# as_fn_set_status STATUS
7312# -----------------------
7313# Set $? to STATUS, without forking.
7314as_fn_set_status ()
7315{
7316 return $1
7317} # as_fn_set_status
7318
7319# as_fn_exit STATUS
7320# -----------------
7321# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7322as_fn_exit ()
7323{
7324 set +e
7325 as_fn_set_status $1
7326 exit $1
7327} # as_fn_exit
7328
7329# as_fn_unset VAR
7330# ---------------
7331# Portably unset VAR.
7332as_fn_unset ()
7333{
7334 { eval $1=; unset $1;}
7335}
7336as_unset=as_fn_unset
7337# as_fn_append VAR VALUE
7338# ----------------------
7339# Append the text in VALUE to the end of the definition contained in VAR. Take
7340# advantage of any shell optimizations that allow amortized linear growth over
7341# repeated appends, instead of the typical quadratic growth present in naive
7342# implementations.
7343if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7344 eval 'as_fn_append ()
7345 {
7346 eval $1+=\$2
7347 }'
7348else
7349 as_fn_append ()
7350 {
7351 eval $1=\$$1\$2
7352 }
7353fi # as_fn_append
7354
7355# as_fn_arith ARG...
7356# ------------------
7357# Perform arithmetic evaluation on the ARGs, and store the result in the
7358# global $as_val. Take advantage of shells that can avoid forks. The arguments
7359# must be portable across $(()) and expr.
7360if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7361 eval 'as_fn_arith ()
7362 {
7363 as_val=$(( $* ))
7364 }'
7365else
7366 as_fn_arith ()
7367 {
7368 as_val=`expr "$@" || test $? -eq 1`
7369 }
7370fi # as_fn_arith
7371
7372
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007373if expr a : '\(a\)' >/dev/null 2>&1 &&
7374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7375 as_expr=expr
7376else
7377 as_expr=false
7378fi
7379
7380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7381 as_basename=basename
7382else
7383 as_basename=false
7384fi
7385
Benny Prijonoe1105232011-10-26 06:49:34 +00007386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7387 as_dirname=dirname
7388else
7389 as_dirname=false
7390fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007391
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007392as_me=`$as_basename -- "$0" ||
7393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7394 X"$0" : 'X\(//\)$' \| \
7395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonoe1105232011-10-26 06:49:34 +00007396$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007397 sed '/^.*\/\([^/][^/]*\)\/*$/{
7398 s//\1/
7399 q
7400 }
7401 /^X\/\(\/\/\)$/{
7402 s//\1/
7403 q
7404 }
7405 /^X\/\(\/\).*/{
7406 s//\1/
7407 q
7408 }
7409 s/.*/./; q'`
7410
Benny Prijonoe1105232011-10-26 06:49:34 +00007411# Avoid depending upon Character Ranges.
7412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7415as_cr_digits='0123456789'
7416as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007417
7418ECHO_C= ECHO_N= ECHO_T=
Benny Prijonoe1105232011-10-26 06:49:34 +00007419case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007420-n*)
Benny Prijonoe1105232011-10-26 06:49:34 +00007421 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007422 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonoe1105232011-10-26 06:49:34 +00007423 xy) ECHO_C='\c';;
7424 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7425 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007426 esac;;
7427*)
7428 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007429esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007430
7431rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007432if test -d conf$$.dir; then
7433 rm -f conf$$.dir/conf$$.file
7434else
7435 rm -f conf$$.dir
Benny Prijonoe1105232011-10-26 06:49:34 +00007436 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007437fi
Benny Prijonoe1105232011-10-26 06:49:34 +00007438if (echo >conf$$.file) 2>/dev/null; then
7439 if ln -s conf$$.file conf$$ 2>/dev/null; then
7440 as_ln_s='ln -s'
7441 # ... but there are two gotchas:
7442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7444 # In both cases, we have to default to `cp -p'.
7445 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7446 as_ln_s='cp -p'
7447 elif ln conf$$.file conf$$ 2>/dev/null; then
7448 as_ln_s=ln
7449 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007450 as_ln_s='cp -p'
Benny Prijonoe1105232011-10-26 06:49:34 +00007451 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007452else
7453 as_ln_s='cp -p'
7454fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007455rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7456rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007457
Benny Prijonoe1105232011-10-26 06:49:34 +00007458
7459# as_fn_mkdir_p
7460# -------------
7461# Create "$as_dir" as a directory, including parents if necessary.
7462as_fn_mkdir_p ()
7463{
7464
7465 case $as_dir in #(
7466 -*) as_dir=./$as_dir;;
7467 esac
7468 test -d "$as_dir" || eval $as_mkdir_p || {
7469 as_dirs=
7470 while :; do
7471 case $as_dir in #(
7472 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7473 *) as_qdir=$as_dir;;
7474 esac
7475 as_dirs="'$as_qdir' $as_dirs"
7476 as_dir=`$as_dirname -- "$as_dir" ||
7477$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7478 X"$as_dir" : 'X\(//\)[^/]' \| \
7479 X"$as_dir" : 'X\(//\)$' \| \
7480 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7481$as_echo X"$as_dir" |
7482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7483 s//\1/
7484 q
7485 }
7486 /^X\(\/\/\)[^/].*/{
7487 s//\1/
7488 q
7489 }
7490 /^X\(\/\/\)$/{
7491 s//\1/
7492 q
7493 }
7494 /^X\(\/\).*/{
7495 s//\1/
7496 q
7497 }
7498 s/.*/./; q'`
7499 test -d "$as_dir" && break
7500 done
7501 test -z "$as_dirs" || eval "mkdir $as_dirs"
7502 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7503
7504
7505} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007506if mkdir -p . 2>/dev/null; then
Benny Prijonoe1105232011-10-26 06:49:34 +00007507 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00007508else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007509 test -d ./-p && rmdir ./-p
7510 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00007511fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007512
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007513if test -x / >/dev/null 2>&1; then
7514 as_test_x='test -x'
7515else
7516 if ls -dL / >/dev/null 2>&1; then
7517 as_ls_L_option=L
7518 else
7519 as_ls_L_option=
7520 fi
7521 as_test_x='
7522 eval sh -c '\''
7523 if test -d "$1"; then
Benny Prijonoe1105232011-10-26 06:49:34 +00007524 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007525 else
Benny Prijonoe1105232011-10-26 06:49:34 +00007526 case $1 in #(
7527 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007528 esac;
Benny Prijonoe1105232011-10-26 06:49:34 +00007529 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007530 ???[sx]*):;;*)false;;esac;fi
7531 '\'' sh
7532 '
7533fi
7534as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007535
7536# Sed expression to map a string onto a valid CPP name.
7537as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7538
7539# Sed expression to map a string onto a valid variable name.
7540as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7541
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007542
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007543exec 6>&1
Benny Prijonoe1105232011-10-26 06:49:34 +00007544## ----------------------------------- ##
7545## Main body of $CONFIG_STATUS script. ##
7546## ----------------------------------- ##
7547_ASEOF
7548test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007549
Benny Prijonoe1105232011-10-26 06:49:34 +00007550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7551# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007552# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007553# values after options handling.
7554ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007555This file was extended by pjproject $as_me 1.x, which was
Benny Prijonoe1105232011-10-26 06:49:34 +00007556generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007557
7558 CONFIG_FILES = $CONFIG_FILES
7559 CONFIG_HEADERS = $CONFIG_HEADERS
7560 CONFIG_LINKS = $CONFIG_LINKS
7561 CONFIG_COMMANDS = $CONFIG_COMMANDS
7562 $ $0 $@
7563
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007564on `(hostname || uname -n) 2>/dev/null | sed 1q`
7565"
7566
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007567_ACEOF
7568
Benny Prijonoe1105232011-10-26 06:49:34 +00007569case $ac_config_files in *"
7570"*) set x $ac_config_files; shift; ac_config_files=$*;;
7571esac
7572
7573case $ac_config_headers in *"
7574"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7575esac
7576
7577
7578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007579# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007580config_files="$ac_config_files"
7581config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007582
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007583_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007584
Benny Prijonoe1105232011-10-26 06:49:34 +00007585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007586ac_cs_usage="\
Benny Prijonoe1105232011-10-26 06:49:34 +00007587\`$as_me' instantiates files and other configuration actions
7588from templates according to the current configuration. Unless the files
7589and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007590
Benny Prijonoe1105232011-10-26 06:49:34 +00007591Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007592
7593 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007594 -V, --version print version number and configuration settings, then exit
Benny Prijonoe1105232011-10-26 06:49:34 +00007595 --config print configuration, then exit
7596 -q, --quiet, --silent
7597 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007598 -d, --debug don't remove temporary files
7599 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoe1105232011-10-26 06:49:34 +00007600 --file=FILE[:TEMPLATE]
7601 instantiate the configuration file FILE
7602 --header=FILE[:TEMPLATE]
7603 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007604
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007605Configuration files:
7606$config_files
7607
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007608Configuration headers:
7609$config_headers
7610
Benny Prijonoe1105232011-10-26 06:49:34 +00007611Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00007612
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007613_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00007614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7615ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007616ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007617pjproject config.status 1.x
Benny Prijonoe1105232011-10-26 06:49:34 +00007618configured by $0, generated by GNU Autoconf 2.65,
7619 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007620
Benny Prijonoe1105232011-10-26 06:49:34 +00007621Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007622This config.status script is free software; the Free Software Foundation
7623gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007624
7625ac_pwd='$ac_pwd'
7626srcdir='$srcdir'
Benny Prijonoe1105232011-10-26 06:49:34 +00007627test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007628_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007629
Benny Prijonoe1105232011-10-26 06:49:34 +00007630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7631# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007632ac_need_defaults=:
7633while test $# != 0
7634do
7635 case $1 in
7636 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007637 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7638 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007639 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007640 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007641 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007642 ac_option=$1
7643 ac_optarg=$2
7644 ac_shift=shift
7645 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007646 esac
7647
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007648 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007649 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007650 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007651 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007652 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijonoe1105232011-10-26 06:49:34 +00007653 $as_echo "$ac_cs_version"; exit ;;
7654 --config | --confi | --conf | --con | --co | --c )
7655 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007656 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007657 debug=: ;;
7658 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007659 $ac_shift
Benny Prijonoe1105232011-10-26 06:49:34 +00007660 case $ac_optarg in
7661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7662 esac
7663 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007664 ac_need_defaults=false;;
7665 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007666 $ac_shift
Benny Prijonoe1105232011-10-26 06:49:34 +00007667 case $ac_optarg in
7668 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7669 esac
7670 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007671 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007672 --he | --h)
7673 # Conflict between --help and --header
Benny Prijonoe1105232011-10-26 06:49:34 +00007674 as_fn_error "ambiguous option: \`$1'
7675Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007676 --help | --hel | -h )
Benny Prijonoe1105232011-10-26 06:49:34 +00007677 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7679 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7680 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007681
7682 # This is an error.
Benny Prijonoe1105232011-10-26 06:49:34 +00007683 -*) as_fn_error "unrecognized option: \`$1'
7684Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007685
Benny Prijonoe1105232011-10-26 06:49:34 +00007686 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007687 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007688
7689 esac
7690 shift
7691done
7692
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007693ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007694
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007695if $ac_cs_silent; then
7696 exec 6>/dev/null
7697 ac_configure_extra_args="$ac_configure_extra_args --silent"
7698fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007699
7700_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00007701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007702if \$ac_cs_recheck; then
Benny Prijonoe1105232011-10-26 06:49:34 +00007703 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7704 shift
7705 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7706 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007707 export CONFIG_SHELL
Benny Prijonoe1105232011-10-26 06:49:34 +00007708 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007709fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007710
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007711_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00007712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007713exec 5>>config.log
7714{
7715 echo
7716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7717## Running $as_me. ##
7718_ASBOX
Benny Prijonoe1105232011-10-26 06:49:34 +00007719 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007720} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007721
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007722_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00007723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007724_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007725
Benny Prijonoe1105232011-10-26 06:49:34 +00007726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007727
7728# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007729for ac_config_target in $ac_config_targets
7730do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007731 case $ac_config_target in
7732 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7733 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7734 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7735 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7736 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7737 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7738 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00007739 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007740 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7741 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7742 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7743 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007744 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007745 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007746
Benny Prijonoe1105232011-10-26 06:49:34 +00007747 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007748 esac
7749done
7750
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007751
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007752# If the user did not use the arguments to specify the items to instantiate,
7753# then the envvar interface is used. Set only those that are not.
7754# We use the long form for the default assignment because of an extremely
7755# bizarre bug on SunOS 4.1.3.
7756if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007757 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007758 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7759fi
7760
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007761# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007762# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007763# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007764# Hook for its removal unless debugging.
7765# Note that there is a small window in which the directory will not be cleaned:
7766# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007767$debug ||
7768{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007769 tmp=
7770 trap 'exit_status=$?
7771 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7772' 0
Benny Prijonoe1105232011-10-26 06:49:34 +00007773 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007774}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007775# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007776
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007777{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007779 test -n "$tmp" && test -d "$tmp"
7780} ||
7781{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007782 tmp=./conf$$-$RANDOM
7783 (umask 077 && mkdir "$tmp")
Benny Prijonoe1105232011-10-26 06:49:34 +00007784} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007785
Benny Prijonoe1105232011-10-26 06:49:34 +00007786# Set up the scripts for CONFIG_FILES section.
7787# No need to generate them if there are no CONFIG_FILES.
7788# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007789if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007790
Benny Prijonoe1105232011-10-26 06:49:34 +00007791
7792ac_cr=`echo X | tr X '\015'`
7793# On cygwin, bash can eat \r inside `` if the user requested igncr.
7794# But we know of no other shell where ac_cr would be empty at this
7795# point, so we can use a bashism as a fallback.
7796if test "x$ac_cr" = x; then
7797 eval ac_cr=\$\'\\r\'
7798fi
7799ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7800if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7801 ac_cs_awk_cr='\r'
7802else
7803 ac_cs_awk_cr=$ac_cr
7804fi
7805
7806echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007807_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007808
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007809
Benny Prijonoe1105232011-10-26 06:49:34 +00007810{
7811 echo "cat >conf$$subs.awk <<_ACEOF" &&
7812 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7813 echo "_ACEOF"
7814} >conf$$subs.sh ||
7815 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7816ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007817ac_delim='%!_!# '
7818for ac_last_try in false false false false false :; do
Benny Prijonoe1105232011-10-26 06:49:34 +00007819 . ./conf$$subs.sh ||
7820 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007821
Benny Prijonoe1105232011-10-26 06:49:34 +00007822 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7823 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007824 break
7825 elif $ac_last_try; then
Benny Prijonoe1105232011-10-26 06:49:34 +00007826 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007827 else
7828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007829 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007830done
Benny Prijonoe1105232011-10-26 06:49:34 +00007831rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007832
Benny Prijonoe1105232011-10-26 06:49:34 +00007833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7834cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007835_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00007836sed -n '
7837h
7838s/^/S["/; s/!.*/"]=/
7839p
7840g
7841s/^[^!]*!//
7842:repl
7843t repl
7844s/'"$ac_delim"'$//
7845t delim
7846:nl
7847h
7848s/\(.\{148\}\)..*/\1/
7849t more1
7850s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7851p
7852n
7853b repl
7854:more1
7855s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7856p
7857g
7858s/.\{148\}//
7859t nl
7860:delim
7861h
7862s/\(.\{148\}\)..*/\1/
7863t more2
7864s/["\\]/\\&/g; s/^/"/; s/$/"/
7865p
7866b
7867:more2
7868s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7869p
7870g
7871s/.\{148\}//
7872t delim
7873' <conf$$subs.awk | sed '
7874/^[^""]/{
7875 N
7876 s/\n//
7877}
7878' >>$CONFIG_STATUS || ac_write_fail=1
7879rm -f conf$$subs.awk
7880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7881_ACAWK
7882cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7883 for (key in S) S_is_set[key] = 1
7884 FS = ""
7885
7886}
7887{
7888 line = $ 0
7889 nfields = split(line, field, "@")
7890 substed = 0
7891 len = length(field[1])
7892 for (i = 2; i < nfields; i++) {
7893 key = field[i]
7894 keylen = length(key)
7895 if (S_is_set[key]) {
7896 value = S[key]
7897 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7898 len += length(value) + length(field[++i])
7899 substed = 1
7900 } else
7901 len += 1 + keylen
7902 }
7903
7904 print line
7905}
7906
7907_ACAWK
Benny Prijonod4306432010-05-01 22:05:41 +00007908_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00007909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7910if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7911 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7912else
7913 cat
7914fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7915 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00007916_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007917
7918# VPATH may cause trouble with some makes, so we remove $(srcdir),
7919# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7920# trailing colons and then remove the whole line if VPATH becomes empty
7921# (actually we leave an empty line to preserve line numbers).
7922if test "x$srcdir" = x.; then
7923 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7924s/:*\$(srcdir):*/:/
7925s/:*\${srcdir}:*/:/
7926s/:*@srcdir@:*/:/
7927s/^\([^=]*=[ ]*\):*/\1/
7928s/:*$//
7929s/^[^=]*=[ ]*$//
7930}'
7931fi
7932
Benny Prijonoe1105232011-10-26 06:49:34 +00007933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007934fi # test -n "$CONFIG_FILES"
7935
Benny Prijonoe1105232011-10-26 06:49:34 +00007936# Set up the scripts for CONFIG_HEADERS section.
7937# No need to generate them if there are no CONFIG_HEADERS.
7938# This happens for instance with `./config.status Makefile'.
7939if test -n "$CONFIG_HEADERS"; then
7940cat >"$tmp/defines.awk" <<\_ACAWK ||
7941BEGIN {
7942_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007943
Benny Prijonoe1105232011-10-26 06:49:34 +00007944# Transform confdefs.h into an awk script `defines.awk', embedded as
7945# here-document in config.status, that substitutes the proper values into
7946# config.h.in to produce config.h.
7947
7948# Create a delimiter string that does not exist in confdefs.h, to ease
7949# handling of long lines.
7950ac_delim='%!_!# '
7951for ac_last_try in false false :; do
7952 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7953 if test -z "$ac_t"; then
7954 break
7955 elif $ac_last_try; then
7956 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7957 else
7958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7959 fi
7960done
7961
7962# For the awk script, D is an array of macro values keyed by name,
7963# likewise P contains macro parameters if any. Preserve backslash
7964# newline sequences.
7965
7966ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7967sed -n '
7968s/.\{148\}/&'"$ac_delim"'/g
7969t rset
7970:rset
7971s/^[ ]*#[ ]*define[ ][ ]*/ /
7972t def
7973d
7974:def
7975s/\\$//
7976t bsnl
7977s/["\\]/\\&/g
7978s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7979D["\1"]=" \3"/p
7980s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7981d
7982:bsnl
7983s/["\\]/\\&/g
7984s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7985D["\1"]=" \3\\\\\\n"\\/p
7986t cont
7987s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7988t cont
7989d
7990:cont
7991n
7992s/.\{148\}/&'"$ac_delim"'/g
7993t clear
7994:clear
7995s/\\$//
7996t bsnlc
7997s/["\\]/\\&/g; s/^/"/; s/$/"/p
7998d
7999:bsnlc
8000s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8001b cont
8002' <confdefs.h | sed '
8003s/'"$ac_delim"'/"\\\
8004"/g' >>$CONFIG_STATUS || ac_write_fail=1
8005
8006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8007 for (key in D) D_is_set[key] = 1
8008 FS = ""
8009}
8010/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8011 line = \$ 0
8012 split(line, arg, " ")
8013 if (arg[1] == "#") {
8014 defundef = arg[2]
8015 mac1 = arg[3]
8016 } else {
8017 defundef = substr(arg[1], 2)
8018 mac1 = arg[2]
8019 }
8020 split(mac1, mac2, "(") #)
8021 macro = mac2[1]
8022 prefix = substr(line, 1, index(line, defundef) - 1)
8023 if (D_is_set[macro]) {
8024 # Preserve the white space surrounding the "#".
8025 print prefix "define", macro P[macro] D[macro]
8026 next
8027 } else {
8028 # Replace #undef with comments. This is necessary, for example,
8029 # in the case of _POSIX_SOURCE, which is predefined and required
8030 # on some systems where configure will not decide to define it.
8031 if (defundef == "undef") {
8032 print "/*", prefix defundef, macro, "*/"
8033 next
8034 }
8035 }
8036}
8037{ print }
8038_ACAWK
8039_ACEOF
8040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8041 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8042fi # test -n "$CONFIG_HEADERS"
8043
8044
8045eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8046shift
8047for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008048do
8049 case $ac_tag in
8050 :[FHLC]) ac_mode=$ac_tag; continue;;
8051 esac
8052 case $ac_mode$ac_tag in
8053 :[FHL]*:*);;
Benny Prijonoe1105232011-10-26 06:49:34 +00008054 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008055 :[FH]-) ac_tag=-:-;;
8056 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8057 esac
8058 ac_save_IFS=$IFS
8059 IFS=:
8060 set x $ac_tag
8061 IFS=$ac_save_IFS
8062 shift
8063 ac_file=$1
8064 shift
8065
8066 case $ac_mode in
8067 :L) ac_source=$1;;
8068 :[FH])
8069 ac_file_inputs=
8070 for ac_f
8071 do
8072 case $ac_f in
8073 -) ac_f="$tmp/stdin";;
8074 *) # Look for the file first in the build tree, then in the source tree
8075 # (if the path is not absolute). The absolute path cannot be DOS-style,
8076 # because $ac_f cannot contain `:'.
8077 test -f "$ac_f" ||
8078 case $ac_f in
8079 [\\/$]*) false;;
8080 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8081 esac ||
Benny Prijonoe1105232011-10-26 06:49:34 +00008082 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008083 esac
Benny Prijonoe1105232011-10-26 06:49:34 +00008084 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8085 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008086 done
8087
8088 # Let's still pretend it is `configure' which instantiates (i.e., don't
8089 # use $as_me), people would be surprised to read:
8090 # /* config.h. Generated by config.status. */
Benny Prijonoe1105232011-10-26 06:49:34 +00008091 configure_input='Generated from '`
8092 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8093 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008094 if test x"$ac_file" != x-; then
8095 configure_input="$ac_file. $configure_input"
Benny Prijonoe1105232011-10-26 06:49:34 +00008096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8097$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008098 fi
Benny Prijonoe1105232011-10-26 06:49:34 +00008099 # Neutralize special characters interpreted by sed in replacement strings.
8100 case $configure_input in #(
8101 *\&* | *\|* | *\\* )
8102 ac_sed_conf_input=`$as_echo "$configure_input" |
8103 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8104 *) ac_sed_conf_input=$configure_input;;
8105 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008106
8107 case $ac_tag in
Benny Prijonoe1105232011-10-26 06:49:34 +00008108 *:-:* | *:-) cat >"$tmp/stdin" \
8109 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008110 esac
8111 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008112 esac
8113
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008114 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008115$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8116 X"$ac_file" : 'X\(//\)[^/]' \| \
8117 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008118 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonoe1105232011-10-26 06:49:34 +00008119$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8121 s//\1/
8122 q
8123 }
8124 /^X\(\/\/\)[^/].*/{
8125 s//\1/
8126 q
8127 }
8128 /^X\(\/\/\)$/{
8129 s//\1/
8130 q
8131 }
8132 /^X\(\/\).*/{
8133 s//\1/
8134 q
8135 }
8136 s/.*/./; q'`
Benny Prijonoe1105232011-10-26 06:49:34 +00008137 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008138 ac_builddir=.
8139
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008140case "$ac_dir" in
8141.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8142*)
Benny Prijonoe1105232011-10-26 06:49:34 +00008143 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008144 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonoe1105232011-10-26 06:49:34 +00008145 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008146 case $ac_top_builddir_sub in
8147 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8148 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8149 esac ;;
8150esac
8151ac_abs_top_builddir=$ac_pwd
8152ac_abs_builddir=$ac_pwd$ac_dir_suffix
8153# for backward compatibility:
8154ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008155
8156case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008157 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008158 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008159 ac_top_srcdir=$ac_top_builddir_sub
8160 ac_abs_top_srcdir=$ac_pwd ;;
8161 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008162 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008163 ac_top_srcdir=$srcdir
8164 ac_abs_top_srcdir=$srcdir ;;
8165 *) # Relative name.
8166 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8167 ac_top_srcdir=$ac_top_build_prefix$srcdir
8168 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008169esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008170ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00008171
Benny Prijonoe2746132008-09-27 13:16:35 +00008172
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008173 case $ac_mode in
8174 :F)
8175 #
8176 # CONFIG_FILE
8177 #
Benny Prijonoe2746132008-09-27 13:16:35 +00008178
Benny Prijonoe2746132008-09-27 13:16:35 +00008179_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008180
Benny Prijonoe1105232011-10-26 06:49:34 +00008181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008182# If the template does not know about datarootdir, expand it.
8183# FIXME: This hack should be removed a few years after 2.60.
8184ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijonoe1105232011-10-26 06:49:34 +00008185ac_sed_dataroot='
8186/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008187 p
8188 q
8189}
8190/@datadir@/p
8191/@docdir@/p
8192/@infodir@/p
8193/@localedir@/p
Benny Prijonoe1105232011-10-26 06:49:34 +00008194/@mandir@/p'
8195case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008196*datarootdir*) ac_datarootdir_seen=yes;;
8197*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijonoe1105232011-10-26 06:49:34 +00008198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8199$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008200_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00008201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008202 ac_datarootdir_hack='
8203 s&@datadir@&$datadir&g
8204 s&@docdir@&$docdir&g
8205 s&@infodir@&$infodir&g
8206 s&@localedir@&$localedir&g
8207 s&@mandir@&$mandir&g
Benny Prijonoe1105232011-10-26 06:49:34 +00008208 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008209esac
8210_ACEOF
8211
8212# Neutralize VPATH when `$srcdir' = `.'.
8213# Shell code in configure.ac might set extrasub.
8214# FIXME: do we really want to maintain this feature?
Benny Prijonoe1105232011-10-26 06:49:34 +00008215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8216ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008217$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008218_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +00008219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008220:t
8221/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijonoe1105232011-10-26 06:49:34 +00008222s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008223s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijonoe1105232011-10-26 06:49:34 +00008224s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008225s&@srcdir@&$ac_srcdir&;t t
8226s&@abs_srcdir@&$ac_abs_srcdir&;t t
8227s&@top_srcdir@&$ac_top_srcdir&;t t
8228s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8229s&@builddir@&$ac_builddir&;t t
8230s&@abs_builddir@&$ac_abs_builddir&;t t
8231s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8232$ac_datarootdir_hack
Benny Prijonoe1105232011-10-26 06:49:34 +00008233"
8234eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8235 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008236
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008237test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8238 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijonoe1105232011-10-26 06:49:34 +00008240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008241which seems to be undefined. Please make sure it is defined." >&5
Benny Prijonoe1105232011-10-26 06:49:34 +00008242$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008243which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008244
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008245 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008246 case $ac_file in
Benny Prijonoe1105232011-10-26 06:49:34 +00008247 -) cat "$tmp/out" && rm -f "$tmp/out";;
8248 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8249 esac \
8250 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008251 ;;
8252 :H)
8253 #
8254 # CONFIG_HEADER
8255 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008256 if test x"$ac_file" != x-; then
Benny Prijonoe1105232011-10-26 06:49:34 +00008257 {
8258 $as_echo "/* $configure_input */" \
8259 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8260 } >"$tmp/config.h" \
8261 || as_fn_error "could not create $ac_file" "$LINENO" 5
8262 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8264$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008265 else
Benny Prijonoe1105232011-10-26 06:49:34 +00008266 rm -f "$ac_file"
8267 mv "$tmp/config.h" "$ac_file" \
8268 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008269 fi
8270 else
Benny Prijonoe1105232011-10-26 06:49:34 +00008271 $as_echo "/* $configure_input */" \
8272 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8273 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008274 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008275 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008276
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008277
8278 esac
8279
8280done # for ac_tag
8281
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008282
Benny Prijonoe1105232011-10-26 06:49:34 +00008283as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008284_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008285ac_clean_files=$ac_clean_files_save
8286
Benny Prijonoe1105232011-10-26 06:49:34 +00008287test $ac_write_fail = 0 ||
8288 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8289
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008290
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008291# configure is writing to config.log, and then calls config.status.
8292# config.status does its own redirection, appending to config.log.
8293# Unfortunately, on DOS this fails, as config.log is still kept open
8294# by configure, so config.status won't be able to write to it; its
8295# output is simply discarded. So we exec the FD to /dev/null,
8296# effectively closing config.log, so it can be properly (re)opened and
8297# appended to by config.status. When coming back to configure, we
8298# need to make the FD available again.
8299if test "$no_create" != yes; then
8300 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008301 ac_config_status_args=
8302 test "$silent" = yes &&
8303 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008304 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008306 exec 5>>config.log
8307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8308 # would make configure fail if this is the last instruction.
Benny Prijonoe1105232011-10-26 06:49:34 +00008309 $ac_cs_success || as_fn_exit $?
8310fi
8311if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8313$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00008314fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008315
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008316
Benny Prijonod9627842007-04-18 09:24:31 +00008317
Benny Prijonoe1105232011-10-26 06:49:34 +00008318{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00008319
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008320Configurations 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.
Benny Prijonod9627842007-04-18 09:24:31 +00008321
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008322Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008323 - 'user.mak'
8324 - 'pjlib/include/pj/config_site.h'
8325
8326The next step now is to run 'make dep' and 'make'.
8327" >&5
Benny Prijonoe1105232011-10-26 06:49:34 +00008328$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00008329
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008330Configurations 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.
Benny Prijonod9627842007-04-18 09:24:31 +00008331
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008332Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008333 - 'user.mak'
8334 - 'pjlib/include/pj/config_site.h'
8335
8336The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008337" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00008338