blob: 2ecb1d373af29a4e04f1f5875ff48fa0801aea2c [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono28d3c562012-03-30 07:10:13 +00003# Generated by GNU Autoconf 2.65 for pjproject 2.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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +0000132
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000453case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000454-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000455 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000470 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000471fi
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000510 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000511 else
Benny Prijono28d3c562012-03-30 07:10:13 +0000512 case $1 in #(
513 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514 esac;
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000552PACKAGE_VERSION='2.x'
553PACKAGE_STRING='pjproject 2.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000554PACKAGE_BUGREPORT=''
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000593ac_subst_vars='LTLIBOBJS
Benny Prijono36d32492011-12-28 08:42:23 +0000594LIBOBJS
Benny Prijono28d3c562012-03-30 07:10:13 +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_resample_dll
614ac_no_ilbc_codec
615ac_no_speex_codec
616ac_no_g7221_codec
617ac_no_g722_codec
618ac_no_gsm_codec
619ac_no_l16_codec
620ac_no_g711_codec
621ac_no_speex_aec
622ac_no_large_filter
623ac_no_small_filter
624ac_qt_cflags
625ac_pjmedia_video_has_qt
626ac_ios_cflags
627ac_pjmedia_video_has_ios
628ac_pjmedia_video
629ac_pa_use_oss
630ac_pa_use_alsa
631ac_pa_cflags
632ac_external_pa
633ac_pjmedia_snd
634ac_external_gsm
635ac_external_speex
636ac_os_objs
637EGREP
638GREP
639CPP
640ac_shlib_suffix
641ac_build_mak_vars
642ac_pjdir
643CC_CFLAGS
644CC_OPTIMIZE
645CC_DEF
646CC_INC
647CC_OUT
648LIBEXT2
649LIBEXT
650RANLIB
651LDOUT
652LD
653AR
654ac_ct_CXX
655CXXFLAGS
656CXX
657OBJEXT
658EXEEXT
659ac_ct_CC
660CPPFLAGS
661LDFLAGS
662CFLAGS
663CC
664target_os
665target_vendor
666target_cpu
667target
668host_os
669host_vendor
670host_cpu
671host
672build_os
673build_vendor
674build_cpu
675build
676target_alias
677host_alias
678build_alias
679LIBS
680ECHO_T
681ECHO_N
682ECHO_C
683DEFS
684mandir
685localedir
686libdir
687psdir
688pdfdir
689dvidir
690htmldir
691infodir
692docdir
693oldincludedir
694includedir
695localstatedir
696sharedstatedir
697sysconfdir
698datadir
699datarootdir
700libexecdir
701sbindir
702bindir
703program_transform_name
704prefix
705exec_prefix
706PACKAGE_URL
707PACKAGE_BUGREPORT
708PACKAGE_STRING
709PACKAGE_VERSION
710PACKAGE_TARNAME
711PACKAGE_NAME
712PATH_SEPARATOR
713SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000714ac_subst_files=''
Benny Prijono28d3c562012-03-30 07:10:13 +0000715ac_user_opts='
716enable_option_checking
717enable_floating_point
718enable_epoll
719with_external_speex
720with_external_gsm
721enable_sound
722with_external_pa
723enable_oss
724enable_ext_sound
725enable_small_filter
726enable_large_filter
727enable_speex_aec
728enable_g711_codec
729enable_l16_codec
730enable_gsm_codec
731enable_g722_codec
732enable_g7221_codec
733enable_speex_codec
734enable_ilbc_codec
735enable_libsamplerate
736enable_resample_dll
737with_sdl
738enable_sdl
739enable_ffmpeg
740with_ffmpeg
741enable_v4l2
742enable_ipp
743with_ipp
744with_ipp_samples
745with_ipp_arch
746enable_ssl
747enable_opencore_amrnb
748'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000749 ac_precious_vars='build_alias
750host_alias
751target_alias
752CC
753CFLAGS
754LDFLAGS
755LIBS
756CPPFLAGS
757CXX
758CXXFLAGS
759CCC
760CPP'
761
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000762
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000763# Initialize some variables set by options.
764ac_init_help=
765ac_init_version=false
Benny Prijono28d3c562012-03-30 07:10:13 +0000766ac_unrecognized_opts=
767ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000768# The variables have the same names as the options, with
769# dashes changed to underlines.
770cache_file=/dev/null
771exec_prefix=NONE
772no_create=
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
781verbose=
782x_includes=NONE
783x_libraries=NONE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000790# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000799includedir='${prefix}/include'
800oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000810
811ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000812ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000813for ac_option
814do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000817 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000818 ac_prev=
819 continue
820 fi
821
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000853 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000854 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000856 datadir=$ac_optarg ;;
857
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000865 -disable-* | --disable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000867 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874"enable_$ac_useropt"
875"*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000890
891 -enable-* | --enable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000893 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000967 -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 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000984 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001097 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104"with_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001110
1111 -without-* | --without-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001113 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"with_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
Benny Prijono28d3c562012-03-30 07:10:13 +00001145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001156 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
Benny Prijono28d3c562012-03-30 07:10:13 +00001161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijono28d3c562012-03-30 07:10:13 +00001163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 ;;
1166
1167 esac
1168done
1169
1170if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijono28d3c562012-03-30 07:10:13 +00001172 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001173fi
1174
Benny Prijono28d3c562012-03-30 07:10:13 +00001175if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181fi
1182
1183# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001184for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001188do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001189 eval ac_val=\$$ac_var
Benny Prijono28d3c562012-03-30 07:10:13 +00001190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001197 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001200 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00001201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001202done
1203
1204# There might be people who depend on the old broken behavior: `$host'
1205# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001206# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001207build=$build_alias
1208host=$host_alias
1209target=$target_alias
1210
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001211# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001212if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
Benny Prijono28d3c562012-03-30 07:10:13 +00001215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220fi
1221
1222ac_tool_prefix=
1223test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225test "$silent" = yes && exec 6>/dev/null
1226
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001227
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001228ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229ac_ls_di=`ls -di .` &&
1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00001231 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijono28d3c562012-03-30 07:10:13 +00001233 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001234
1235
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001239 # Try the directory containing this script, then the parent directory.
Benny Prijono28d3c562012-03-30 07:10:13 +00001240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001263 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001264 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijono28d3c562012-03-30 07:10:13 +00001272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001273fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
Benny Prijono28d3c562012-03-30 07:10:13 +00001276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001277 pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281fi
1282# Remove unnecessary trailing slashes from srcdir.
1283# Double slashes in file names in object file debugging info
1284# mess up M-x gdb in Emacs.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001294
1295#
1296# Report the --help message.
1297#
1298if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001301 cat <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001302\`configure' configures pjproject 2.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001303
1304Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309Defaults for the options are specified in brackets.
1310
1311Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001322Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001324 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001326 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001327
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
1332
1333For better control, use the options below.
1334
1335Fine tuning of the installation directories:
Benny Prijono28d3c562012-03-30 07:10:13 +00001336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001355_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001356
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001357 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001358
1359System types:
1360 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001362 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001363_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001364fi
1365
1366if test -n "$ac_init_help"; then
1367 case $ac_init_help in
Benny Prijono28d3c562012-03-30 07:10:13 +00001368 short | recursive ) echo "Configuration of pjproject 2.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001369 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001370 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001371
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001372Optional Features:
Benny Prijono28d3c562012-03-30 07:10:13 +00001373 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --disable-floating-point
1377 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001378 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001379 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001380 --disable-oss Disable OSS audio (default: not disabled)
Benny Prijonoebb2c332008-07-28 23:40:58 +00001381 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001382 --disable-small-filter Exclude small filter in resampling
1383 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001384 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1385 --disable-g711-codec Exclude G.711 codecs from the build
1386 --disable-l16-codec Exclude Linear/L16 codec family from the build
1387 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001388 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001389 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001390 --disable-speex-codec Exclude Speex codecs in the build
1391 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001392 --enable-libsamplerate Link with libsamplerate when available. Note that
1393 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono28d3c562012-03-30 07:10:13 +00001394 --enable-resample-dll Build libresample as shared library
Benny Prijonoc45d9512010-12-10 11:04:30 +00001395 --disable-sdl Disable SDL (default: not disabled)
1396 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1397 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001398 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1399 package and samples location using IPPROOT and
1400 IPPSAMPLES env var or with --with-ipp and
1401 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001402 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001403
Sauw Minge7dbbc82011-10-24 09:28:13 +00001404 --disable-opencore-amrnb
1405 Exclude OpenCORE AMR-NB support from the build
1406 (default: autodetect)
1407
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001408
Benny Prijonofe0c1272010-01-13 16:28:15 +00001409Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001412 --with-external-speex Use external Speex development files, not the one in
1413 "third_party" directory. When this option is set,
1414 make sure that Speex is accessible to use (hint: use
1415 CFLAGS and LDFLAGS env var to set the include/lib
1416 paths)
1417 --with-external-gsm Use external GSM codec library, not the one in
1418 "third_party" directory. When this option is set,
1419 make sure that the GSM include/lib files are
1420 accessible to use (hint: use CFLAGS and LDFLAGS env
1421 var to set the include/lib paths)
1422 --with-external-pa Use external PortAudio development files, not the
1423 one in "third_party" directory. When this option is
1424 set, make sure that PortAudio is accessible to use
1425 (hint: use CFLAGS and LDFLAGS env var to set the
1426 include/lib paths)
Benny Prijono5b0af632011-07-20 03:16:25 +00001427 --with-sdl=DIR Specify alternate libSDL prefix
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001428 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001429 --with-ipp=DIR Specify the Intel IPP location
1430 --with-ipp-samples=DIR Specify the Intel IPP samples location
1431 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001432 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001433
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001439 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijono28d3c562012-03-30 07:10:13 +00001440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001441 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001444 CPP C preprocessor
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
Benny Prijono28d3c562012-03-30 07:10:13 +00001449Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001450_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001451ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001452fi
1453
1454if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono28d3c562012-03-30 07:10:13 +00001457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001460 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001461
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001466 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00001467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001477
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001478case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001479 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001480 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001484 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001491esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001493
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001502 else
Benny Prijono28d3c562012-03-30 07:10:13 +00001503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001506 done
1507fi
1508
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001509test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001510if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001511 cat <<\_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001512pjproject configure 2.x
1513generated by GNU Autoconf 2.65
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001514
Benny Prijono28d3c562012-03-30 07:10:13 +00001515Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001516This configure script is free software; the Free Software Foundation
1517gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001518_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001519 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001520fi
Benny Prijono28d3c562012-03-30 07:10:13 +00001521
1522## ------------------------ ##
1523## Autoconf initialization. ##
1524## ------------------------ ##
1525
1526# ac_fn_c_try_compile LINENO
1527# --------------------------
1528# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_compile ()
1530{
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553else
1554 $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 as_fn_set_status $ac_retval
1561
1562} # ac_fn_c_try_compile
1563
1564# ac_fn_cxx_try_compile LINENO
1565# ----------------------------
1566# Try to compile conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_cxx_try_compile ()
1568{
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_cxx_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591else
1592 $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596fi
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 as_fn_set_status $ac_retval
1599
1600} # ac_fn_cxx_try_compile
1601
1602# ac_fn_c_try_link LINENO
1603# -----------------------
1604# Try to link conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_c_try_link ()
1606{
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest$ac_exeext
1609 if { { ac_try="$ac_link"
1610case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615$as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1622 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest$ac_exeext && {
1628 test "$cross_compiling" = yes ||
1629 $as_test_x conftest$ac_exeext
1630 }; then :
1631 ac_retval=0
1632else
1633 $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637fi
1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640 # interfere with the next link command; also delete a directory that is
1641 # left behind by Apple's compiler. We do this before executing the actions.
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_link
1647
1648# ac_fn_c_try_run LINENO
1649# ----------------------
1650# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1651# that executables *can* be run.
1652ac_fn_c_try_run ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_link"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>&5
1663 ac_status=$?
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1666 { { case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_try") 2>&5
1673 ac_status=$?
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; }; }; then :
1676 ac_retval=0
1677else
1678 $as_echo "$as_me: program exited with status $ac_status" >&5
1679 $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=$ac_status
1683fi
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_run
1689
1690# ac_fn_c_try_cpp LINENO
1691# ----------------------
1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_cpp ()
1694{
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } >/dev/null && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716else
1717 $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721fi
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_cpp
1726
1727# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728# -------------------------------------------------------
1729# Tests whether HEADER exists and can be compiled using the include files in
1730# INCLUDES, setting the cache variable VAR accordingly.
1731ac_fn_c_check_header_compile ()
1732{
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1738else
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h. */
1741$4
1742#include <$2>
1743_ACEOF
1744if ac_fn_c_try_compile "$LINENO"; then :
1745 eval "$3=yes"
1746else
1747 eval "$3=no"
1748fi
1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750fi
1751eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753$as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755
1756} # ac_fn_c_check_header_compile
1757
1758# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1759# -------------------------------------------------------
1760# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1761# the include files in INCLUDES and setting the cache variable VAR
1762# accordingly.
1763ac_fn_c_check_header_mongrel ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1771fi
1772eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775else
1776 # Is the header compilable?
1777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1778$as_echo_n "checking $2 usability... " >&6; }
1779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h. */
1781$4
1782#include <$2>
1783_ACEOF
1784if ac_fn_c_try_compile "$LINENO"; then :
1785 ac_header_compiler=yes
1786else
1787 ac_header_compiler=no
1788fi
1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1791$as_echo "$ac_header_compiler" >&6; }
1792
1793# Is the header present?
1794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1795$as_echo_n "checking $2 presence... " >&6; }
1796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_cpp "$LINENO"; then :
1801 ac_header_preproc=yes
1802else
1803 ac_header_preproc=no
1804fi
1805rm -f conftest.err conftest.$ac_ext
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1807$as_echo "$ac_header_preproc" >&6; }
1808
1809# So? What about this header?
1810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1811 yes:no: )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1813$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816 ;;
1817 no:yes:* )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1819$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1821$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1823$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1825$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ;;
1829esac
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834else
1835 eval "$3=\$ac_header_compiler"
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840fi
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843} # ac_fn_c_check_header_mongrel
1844
1845# ac_fn_c_check_func LINENO FUNC VAR
1846# ----------------------------------
1847# Tests whether FUNC exists, setting the cache variable VAR accordingly
1848ac_fn_c_check_func ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1855else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */
1858/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860#define $2 innocuous_$2
1861
1862/* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1866
1867#ifdef __STDC__
1868# include <limits.h>
1869#else
1870# include <assert.h>
1871#endif
1872
1873#undef $2
1874
1875/* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1878#ifdef __cplusplus
1879extern "C"
1880#endif
1881char $2 ();
1882/* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885#if defined __stub_$2 || defined __stub___$2
1886choke me
1887#endif
1888
1889int
1890main ()
1891{
1892return $2 ();
1893 ;
1894 return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_link "$LINENO"; then :
1898 eval "$3=yes"
1899else
1900 eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909
1910} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001911cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001912This file contains any messages produced by compilers while
1913running configure, to aid debugging if configure makes a mistake.
1914
Benny Prijono28d3c562012-03-30 07:10:13 +00001915It was created by pjproject $as_me 2.x, which was
1916generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001917
1918 $ $0 $@
1919
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001920_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001921exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001922{
1923cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001924## --------- ##
1925## Platform. ##
1926## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001927
1928hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1929uname -m = `(uname -m) 2>/dev/null || echo unknown`
1930uname -r = `(uname -r) 2>/dev/null || echo unknown`
1931uname -s = `(uname -s) 2>/dev/null || echo unknown`
1932uname -v = `(uname -v) 2>/dev/null || echo unknown`
1933
1934/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1935/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1936
1937/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1938/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1939/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001940/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001941/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1942/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1943/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1944
1945_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001946
1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948for as_dir in $PATH
1949do
1950 IFS=$as_save_IFS
1951 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00001952 $as_echo "PATH: $as_dir"
1953 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001954IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001955
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001956} >&5
1957
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001958cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001959
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001960
1961## ----------- ##
1962## Core tests. ##
1963## ----------- ##
1964
1965_ACEOF
1966
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001967
1968# Keep a trace of the command line.
1969# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001970# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001971# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001972# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001973ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001974ac_configure_args0=
1975ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976ac_must_keep_next=false
1977for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001978do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001979 for ac_arg
1980 do
1981 case $ac_arg in
1982 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1984 | -silent | --silent | --silen | --sile | --sil)
1985 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001986 *\'*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001987 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001988 esac
1989 case $ac_pass in
Benny Prijono28d3c562012-03-30 07:10:13 +00001990 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001991 2)
Benny Prijono28d3c562012-03-30 07:10:13 +00001992 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001993 if test $ac_must_keep_next = true; then
1994 ac_must_keep_next=false # Got value, back to normal.
1995 else
1996 case $ac_arg in
1997 *=* | --config-cache | -C | -disable-* | --disable-* \
1998 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1999 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2000 | -with-* | --with-* | -without-* | --without-* | --x)
2001 case "$ac_configure_args0 " in
2002 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2003 esac
2004 ;;
2005 -* ) ac_must_keep_next=true ;;
2006 esac
2007 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002008 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002009 ;;
2010 esac
2011 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002012done
Benny Prijono28d3c562012-03-30 07:10:13 +00002013{ ac_configure_args0=; unset ac_configure_args0;}
2014{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002015
2016# When interrupted or exit'd, cleanup temporary files, and complete
2017# config.log. We remove comments because anyway the quotes in there
2018# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002019# WARNING: Use '\'' to represent an apostrophe within the trap.
2020# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002021trap 'exit_status=$?
2022 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002023 {
2024 echo
2025
2026 cat <<\_ASBOX
2027## ---------------- ##
2028## Cache variables. ##
2029## ---------------- ##
2030_ASBOX
2031 echo
2032 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002033(
2034 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in #(
2037 *${as_nl}*)
2038 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002039 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2040$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002041 esac
2042 case $ac_var in #(
2043 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002044 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2045 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002046 esac ;;
2047 esac
2048 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002049 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002050 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2051 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002052 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002053 "s/'\''/'\''\\\\'\'''\''/g;
2054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2055 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002056 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002058 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002059 esac |
2060 sort
2061)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002062 echo
2063
2064 cat <<\_ASBOX
2065## ----------------- ##
2066## Output variables. ##
2067## ----------------- ##
2068_ASBOX
2069 echo
2070 for ac_var in $ac_subst_vars
2071 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002072 eval ac_val=\$$ac_var
2073 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002075 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002076 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002077 done | sort
2078 echo
2079
2080 if test -n "$ac_subst_files"; then
2081 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002082## ------------------- ##
2083## File substitutions. ##
2084## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002085_ASBOX
2086 echo
2087 for ac_var in $ac_subst_files
2088 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002089 eval ac_val=\$$ac_var
2090 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002092 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002093 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002094 done | sort
2095 echo
2096 fi
2097
2098 if test -s confdefs.h; then
2099 cat <<\_ASBOX
2100## ----------- ##
2101## confdefs.h. ##
2102## ----------- ##
2103_ASBOX
2104 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002105 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002106 echo
2107 fi
2108 test "$ac_signal" != 0 &&
Benny Prijono28d3c562012-03-30 07:10:13 +00002109 $as_echo "$as_me: caught signal $ac_signal"
2110 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002111 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002112 rm -f core *.core core.conftest.* &&
2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002114 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002115' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002116for ac_signal in 1 2 13 15; do
Benny Prijono28d3c562012-03-30 07:10:13 +00002117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002118done
2119ac_signal=0
2120
2121# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002122rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002123
Benny Prijono28d3c562012-03-30 07:10:13 +00002124$as_echo "/* confdefs.h */" > confdefs.h
2125
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002126# Predefined preprocessor variables.
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_NAME "$PACKAGE_NAME"
2130_ACEOF
2131
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2134_ACEOF
2135
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_VERSION "$PACKAGE_VERSION"
2138_ACEOF
2139
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_STRING "$PACKAGE_STRING"
2142_ACEOF
2143
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2146_ACEOF
2147
Benny Prijono28d3c562012-03-30 07:10:13 +00002148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_URL "$PACKAGE_URL"
2150_ACEOF
2151
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002152
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002153# Let the site file select an alternate cache file if it wants to.
Benny Prijono28d3c562012-03-30 07:10:13 +00002154# Prefer an explicitly selected file to automatically selected ones.
2155ac_site_file1=NONE
2156ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002157if test -n "$CONFIG_SITE"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002158 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002159elif test "x$prefix" != xNONE; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002160 ac_site_file1=$prefix/share/config.site
2161 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002162else
Benny Prijono28d3c562012-03-30 07:10:13 +00002163 ac_site_file1=$ac_default_prefix/share/config.site
2164 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002165fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002166for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002167do
Benny Prijono28d3c562012-03-30 07:10:13 +00002168 test "x$ac_site_file" = xNONE && continue
2169 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2171$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002172 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002173 . "$ac_site_file"
2174 fi
2175done
2176
2177if test -r "$cache_file"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002178 # Some versions of bash will fail to source /dev/null (special files
2179 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2180 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2182$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002183 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002184 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2185 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002186 esac
2187 fi
2188else
Benny Prijono28d3c562012-03-30 07:10:13 +00002189 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2190$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002191 >$cache_file
2192fi
2193
2194# Check that the precious variables saved in the cache have kept the same
2195# value.
2196ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002197for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002198 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2199 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002200 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2201 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002202 case $ac_old_set,$ac_new_set in
2203 set,)
Benny Prijono28d3c562012-03-30 07:10:13 +00002204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2205$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 +00002206 ac_cache_corrupted=: ;;
2207 ,set)
Benny Prijono28d3c562012-03-30 07:10:13 +00002208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2209$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002210 ac_cache_corrupted=: ;;
2211 ,);;
2212 *)
2213 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002214 # differences in whitespace do not lead to failure.
2215 ac_old_val_w=`echo x $ac_old_val`
2216 ac_new_val_w=`echo x $ac_new_val`
2217 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2219$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2220 ac_cache_corrupted=:
2221 else
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2223$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2224 eval $ac_var=\$ac_old_val
2225 fi
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2227$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2229$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002230 fi;;
2231 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002232 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002233 if test "$ac_new_set" = set; then
2234 case $ac_new_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002235 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002236 *) ac_arg=$ac_var=$ac_new_val ;;
2237 esac
2238 case " $ac_configure_args " in
2239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijono28d3c562012-03-30 07:10:13 +00002240 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002241 esac
2242 fi
2243done
2244if $ac_cache_corrupted; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2248$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2249 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002250fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002251## -------------------- ##
2252## Main body of script. ##
2253## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002254
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002255ac_ext=c
2256ac_cpp='$CPP $CPPFLAGS'
2257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2259ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002261
2262
Benny Prijono5b818b22006-09-17 22:58:51 +00002263host_orig="$host"
2264
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002265ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002266for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijono28d3c562012-03-30 07:10:13 +00002267 for ac_t in install-sh install.sh shtool; do
2268 if test -f "$ac_dir/$ac_t"; then
2269 ac_aux_dir=$ac_dir
2270 ac_install_sh="$ac_aux_dir/$ac_t -c"
2271 break 2
2272 fi
2273 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002274done
2275if test -z "$ac_aux_dir"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002276 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002277fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002278
2279# These three variables are undocumented and unsupported,
2280# and are intended to be withdrawn in a future Autoconf release.
2281# They can cause serious problems if a builder's source tree is in a directory
2282# whose full name contains unusual characters.
2283ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2284ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2285ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2286
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002287
2288# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002289$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002290 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002291
Benny Prijono28d3c562012-03-30 07:10:13 +00002292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2293$as_echo_n "checking build system type... " >&6; }
2294if test "${ac_cv_build+set}" = set; then :
2295 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002296else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002297 ac_build_alias=$build_alias
2298test "x$ac_build_alias" = x &&
2299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2300test "x$ac_build_alias" = x &&
Benny Prijono28d3c562012-03-30 07:10:13 +00002301 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002302ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002303 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002304
2305fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2307$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002308case $ac_cv_build in
2309*-*-*) ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00002310*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002311esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002312build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002313ac_save_IFS=$IFS; IFS='-'
2314set x $ac_cv_build
2315shift
2316build_cpu=$1
2317build_vendor=$2
2318shift; shift
2319# Remember, the first character of IFS is used to create $*,
2320# except with old shells:
2321build_os=$*
2322IFS=$ac_save_IFS
2323case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002324
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002325
Benny Prijono28d3c562012-03-30 07:10:13 +00002326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2327$as_echo_n "checking host system type... " >&6; }
2328if test "${ac_cv_host+set}" = set; then :
2329 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002330else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002331 if test "x$host_alias" = x; then
2332 ac_cv_host=$ac_cv_build
2333else
2334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002335 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002336fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002337
2338fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2340$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002341case $ac_cv_host in
2342*-*-*) ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00002343*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002344esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002345host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002346ac_save_IFS=$IFS; IFS='-'
2347set x $ac_cv_host
2348shift
2349host_cpu=$1
2350host_vendor=$2
2351shift; shift
2352# Remember, the first character of IFS is used to create $*,
2353# except with old shells:
2354host_os=$*
2355IFS=$ac_save_IFS
2356case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002357
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002358
Benny Prijono28d3c562012-03-30 07:10:13 +00002359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2360$as_echo_n "checking target system type... " >&6; }
2361if test "${ac_cv_target+set}" = set; then :
2362 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002363else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002364 if test "x$target_alias" = x; then
2365 ac_cv_target=$ac_cv_host
2366else
2367 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002368 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002369fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002370
2371fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2373$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002374case $ac_cv_target in
2375*-*-*) ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00002376*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002377esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002378target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002379ac_save_IFS=$IFS; IFS='-'
2380set x $ac_cv_target
2381shift
2382target_cpu=$1
2383target_vendor=$2
2384shift; shift
2385# Remember, the first character of IFS is used to create $*,
2386# except with old shells:
2387target_os=$*
2388IFS=$ac_save_IFS
2389case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002390
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002391
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002392# The aliases save the names the user supplied, while $host etc.
2393# will get canonicalized.
2394test -n "$target_alias" &&
2395 test "$program_prefix$program_suffix$program_transform_name" = \
2396 NONENONEs,x,x, &&
2397 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002398ac_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 +00002399
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002400ac_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 +00002401
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002402
Benny Prijono12483112007-03-12 10:44:38 +00002403
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002404if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002405 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002406else
2407 CFLAGS="$CFLAGS"
2408fi
2409
2410CXXFLAGS="$CFLAGS $CXXFLAGS"
2411
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002412ac_ext=c
2413ac_cpp='$CPP $CPPFLAGS'
2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417if test -n "$ac_tool_prefix"; then
2418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2419set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421$as_echo_n "checking for $ac_word... " >&6; }
2422if test "${ac_cv_prog_CC+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002424else
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2427else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002433 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002434 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 +00002435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002437 break 2
2438 fi
2439done
Benny Prijono28d3c562012-03-30 07:10:13 +00002440 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002441IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002442
2443fi
2444fi
2445CC=$ac_cv_prog_CC
2446if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2448$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002449else
Benny Prijono28d3c562012-03-30 07:10:13 +00002450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002452fi
2453
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002454
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002455fi
2456if test -z "$ac_cv_prog_CC"; then
2457 ac_ct_CC=$CC
2458 # Extract the first word of "gcc", so it can be a program name with args.
2459set dummy gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
2462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2463 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002464else
2465 if test -n "$ac_ct_CC"; then
2466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002473 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002474 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 +00002475 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002477 break 2
2478 fi
2479done
Benny Prijono28d3c562012-03-30 07:10:13 +00002480 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002481IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002482
2483fi
2484fi
2485ac_ct_CC=$ac_cv_prog_ac_ct_CC
2486if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2488$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002489else
Benny Prijono28d3c562012-03-30 07:10:13 +00002490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002492fi
2493
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002494 if test "x$ac_ct_CC" = x; then
2495 CC=""
2496 else
2497 case $cross_compiling:$ac_tool_warned in
2498yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002501ac_tool_warned=yes ;;
2502esac
2503 CC=$ac_ct_CC
2504 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002505else
2506 CC="$ac_cv_prog_CC"
2507fi
2508
2509if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002510 if test -n "$ac_tool_prefix"; then
2511 # 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 +00002512set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if test "${ac_cv_prog_CC+set}" = set; then :
2516 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002517else
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2520else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002526 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002527 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 +00002528 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002530 break 2
2531 fi
2532done
Benny Prijono28d3c562012-03-30 07:10:13 +00002533 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002534IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002535
2536fi
2537fi
2538CC=$ac_cv_prog_CC
2539if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2541$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002542else
Benny Prijono28d3c562012-03-30 07:10:13 +00002543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002545fi
2546
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002547
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002548 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002549fi
2550if test -z "$CC"; then
2551 # Extract the first word of "cc", so it can be a program name with args.
2552set dummy cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if test "${ac_cv_prog_CC+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002557else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560else
2561 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002567 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002568 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 +00002569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2570 ac_prog_rejected=yes
2571 continue
2572 fi
2573 ac_cv_prog_CC="cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002575 break 2
2576 fi
2577done
Benny Prijono28d3c562012-03-30 07:10:13 +00002578 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002579IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002580
2581if test $ac_prog_rejected = yes; then
2582 # We found a bogon in the path, so make sure we never use it.
2583 set dummy $ac_cv_prog_CC
2584 shift
2585 if test $# != 0; then
2586 # We chose a different compiler from the bogus one.
2587 # However, it has the same basename, so the bogon will be chosen
2588 # first if we set CC to just the basename; use the full file name.
2589 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002591 fi
2592fi
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2598$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002599else
Benny Prijono28d3c562012-03-30 07:10:13 +00002600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002602fi
2603
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002604
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002605fi
2606if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002608 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002609 do
2610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613$as_echo_n "checking for $ac_word... " >&6; }
2614if test "${ac_cv_prog_CC+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002616else
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2619else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002625 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002626 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 +00002627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002629 break 2
2630 fi
2631done
Benny Prijono28d3c562012-03-30 07:10:13 +00002632 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002633IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002634
2635fi
2636fi
2637CC=$ac_cv_prog_CC
2638if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2640$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002641else
Benny Prijono28d3c562012-03-30 07:10:13 +00002642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002644fi
2645
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002646
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002647 test -n "$CC" && break
2648 done
2649fi
2650if test -z "$CC"; then
2651 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002652 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002653do
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657$as_echo_n "checking for $ac_word... " >&6; }
2658if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2659 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002660else
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002669 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002670 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 +00002671 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002673 break 2
2674 fi
2675done
Benny Prijono28d3c562012-03-30 07:10:13 +00002676 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002677IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002678
2679fi
2680fi
2681ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2684$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002685else
Benny Prijono28d3c562012-03-30 07:10:13 +00002686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002688fi
2689
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002690
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002691 test -n "$ac_ct_CC" && break
2692done
2693
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002694 if test "x$ac_ct_CC" = x; then
2695 CC=""
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002701ac_tool_warned=yes ;;
2702esac
2703 CC=$ac_ct_CC
2704 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002705fi
2706
2707fi
2708
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002709
Benny Prijono28d3c562012-03-30 07:10:13 +00002710test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712as_fn_error "no acceptable C compiler found in \$PATH
2713See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002714
2715# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00002716$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2717set X $ac_compile
2718ac_compiler=$2
2719for ac_option in --version -v -V -qversion; do
2720 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002721case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2726$as_echo "$ac_try_echo"; } >&5
2727 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002728 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002729 if test -s conftest.err; then
2730 sed '10a\
2731... rest of stderr output deleted ...
2732 10q' conftest.err >conftest.er1
2733 cat conftest.er1 >&5
2734 fi
2735 rm -f conftest.er1 conftest.err
2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2737 test $ac_status = 0; }
2738done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002739
Benny Prijono28d3c562012-03-30 07:10:13 +00002740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002741/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002742
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002743int
2744main ()
2745{
2746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751ac_clean_files_save=$ac_clean_files
Benny Prijono28d3c562012-03-30 07:10:13 +00002752ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002753# Try to create an executable without -o first, disregard a.out.
2754# It will help us diagnose broken compilers, and finding out an intuition
2755# of exeext.
Benny Prijono28d3c562012-03-30 07:10:13 +00002756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2757$as_echo_n "checking whether the C compiler works... " >&6; }
2758ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2759
2760# The possible output files:
2761ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2762
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002763ac_rmfiles=
2764for ac_file in $ac_files
2765do
2766 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2769 esac
2770done
2771rm -f $ac_rmfiles
2772
Benny Prijono28d3c562012-03-30 07:10:13 +00002773if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002780 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002781 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786# in a Makefile. We should not override ac_cv_exeext if it was cached,
2787# so that the user can short-circuit this test for compilers unknown to
2788# Autoconf.
2789for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002790do
2791 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002792 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002794 ;;
2795 [ab].out )
2796 # We found the default executable, but exeext='' is most
2797 # certainly right.
2798 break;;
2799 *.* )
Benny Prijono28d3c562012-03-30 07:10:13 +00002800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002801 then :; else
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 fi
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2808 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002809 break;;
2810 * )
2811 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002812 esac
2813done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002814test "$ac_cv_exeext" = no && ac_cv_exeext=
2815
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002816else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002817 ac_file=''
2818fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002819if test -z "$ac_file"; then :
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
2822$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002823sed 's/^/| /' conftest.$ac_ext >&5
2824
Benny Prijono28d3c562012-03-30 07:10:13 +00002825{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2827{ as_fn_set_status 77
2828as_fn_error "C compiler cannot create executables
2829See \`config.log' for more details." "$LINENO" 5; }; }
2830else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2832$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002833fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2835$as_echo_n "checking for C compiler default output file name... " >&6; }
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2837$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002838ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002839
Benny Prijono28d3c562012-03-30 07:10:13 +00002840rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002841ac_clean_files=$ac_clean_files_save
Benny Prijono28d3c562012-03-30 07:10:13 +00002842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2843$as_echo_n "checking for suffix of executables... " >&6; }
2844if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002845case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2850$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002851 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002852 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2854 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857# work properly (i.e., refer to `conftest.exe'), while it won't with
2858# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002859for ac_file in conftest.exe conftest conftest.*; do
2860 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002861 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002864 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002865 * ) break;;
2866 esac
2867done
2868else
Benny Prijono28d3c562012-03-30 07:10:13 +00002869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871as_fn_error "cannot compute suffix of executables: cannot compile and link
2872See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002873fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002874rm -f conftest conftest$ac_cv_exeext
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2876$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002877
2878rm -f conftest.$ac_ext
2879EXEEXT=$ac_cv_exeext
2880ac_exeext=$EXEEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00002881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882/* end confdefs.h. */
2883#include <stdio.h>
2884int
2885main ()
2886{
2887FILE *f = fopen ("conftest.out", "w");
2888 return ferror (f) || fclose (f) != 0;
2889
2890 ;
2891 return 0;
2892}
Benny Prijono36d32492011-12-28 08:42:23 +00002893_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00002894ac_clean_files="$ac_clean_files conftest.out"
2895# Check that the compiler produces executables we can run. If not, either
2896# the compiler is broken, or we cross compile.
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2898$as_echo_n "checking whether we are cross compiling... " >&6; }
2899if test "$cross_compiling" != yes; then
2900 { { ac_try="$ac_link"
2901case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904esac
2905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2906$as_echo "$ac_try_echo"; } >&5
2907 (eval "$ac_link") 2>&5
2908 ac_status=$?
2909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2910 test $ac_status = 0; }
2911 if { ac_try='./conftest$ac_cv_exeext'
2912 { { case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917$as_echo "$ac_try_echo"; } >&5
2918 (eval "$ac_try") 2>&5
2919 ac_status=$?
2920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921 test $ac_status = 0; }; }; then
2922 cross_compiling=no
2923 else
2924 if test "$cross_compiling" = maybe; then
2925 cross_compiling=yes
2926 else
2927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929as_fn_error "cannot run C compiled programs.
2930If you meant to cross compile, use \`--host'.
2931See \`config.log' for more details." "$LINENO" 5; }
2932 fi
2933 fi
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2936$as_echo "$cross_compiling" >&6; }
2937
2938rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2939ac_clean_files=$ac_clean_files_save
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2941$as_echo_n "checking for suffix of object files... " >&6; }
2942if test "${ac_cv_objext+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
2944else
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002946/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002947
2948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956rm -f conftest.o conftest.obj
Benny Prijono28d3c562012-03-30 07:10:13 +00002957if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002964 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002965 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002968 for ac_file in conftest.o conftest.obj conftest.*; do
2969 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002970 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2973 break;;
2974 esac
2975done
2976else
Benny Prijono28d3c562012-03-30 07:10:13 +00002977 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002978sed 's/^/| /' conftest.$ac_ext >&5
2979
Benny Prijono28d3c562012-03-30 07:10:13 +00002980{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982as_fn_error "cannot compute suffix of object files: cannot compile
2983See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002984fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002985rm -f conftest.$ac_cv_objext conftest.$ac_ext
2986fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2988$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002989OBJEXT=$ac_cv_objext
2990ac_objext=$OBJEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00002991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2992$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2993if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002995else
Benny Prijono28d3c562012-03-30 07:10:13 +00002996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002997/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002998
2999int
3000main ()
3001{
3002#ifndef __GNUC__
3003 choke me
3004#endif
3005
3006 ;
3007 return 0;
3008}
3009_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003010if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003011 ac_compiler_gnu=yes
3012else
Benny Prijono28d3c562012-03-30 07:10:13 +00003013 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003014fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003016ac_cv_c_compiler_gnu=$ac_compiler_gnu
3017
3018fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3020$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3021if test $ac_compiler_gnu = yes; then
3022 GCC=yes
3023else
3024 GCC=
3025fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003026ac_test_CFLAGS=${CFLAGS+set}
3027ac_save_CFLAGS=$CFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3029$as_echo_n "checking whether $CC accepts -g... " >&6; }
3030if test "${ac_cv_prog_cc_g+set}" = set; then :
3031 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003032else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003033 ac_save_c_werror_flag=$ac_c_werror_flag
3034 ac_c_werror_flag=yes
3035 ac_cv_prog_cc_g=no
3036 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003038/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003039
3040int
3041main ()
3042{
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003048if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003049 ac_cv_prog_cc_g=yes
3050else
Benny Prijono28d3c562012-03-30 07:10:13 +00003051 CFLAGS=""
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003053/* end confdefs.h. */
3054
3055int
3056main ()
3057{
3058
3059 ;
3060 return 0;
3061}
3062_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003063if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003064
Benny Prijono28d3c562012-03-30 07:10:13 +00003065else
3066 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003067 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003069/* end confdefs.h. */
3070
3071int
3072main ()
3073{
3074
3075 ;
3076 return 0;
3077}
3078_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003079if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003080 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003081fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003083fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_c_werror_flag=$ac_save_c_werror_flag
3088fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3090$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003091if test "$ac_test_CFLAGS" = set; then
3092 CFLAGS=$ac_save_CFLAGS
3093elif test $ac_cv_prog_cc_g = yes; then
3094 if test "$GCC" = yes; then
3095 CFLAGS="-g -O2"
3096 else
3097 CFLAGS="-g"
3098 fi
3099else
3100 if test "$GCC" = yes; then
3101 CFLAGS="-O2"
3102 else
3103 CFLAGS=
3104 fi
3105fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3107$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3108if test "${ac_cv_prog_cc_c89+set}" = set; then :
3109 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003110else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003111 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003112ac_save_CC=$CC
Benny Prijono28d3c562012-03-30 07:10:13 +00003113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003114/* end confdefs.h. */
3115#include <stdarg.h>
3116#include <stdio.h>
3117#include <sys/types.h>
3118#include <sys/stat.h>
3119/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3120struct buf { int x; };
3121FILE * (*rcsopen) (struct buf *, struct stat *, int);
3122static char *e (p, i)
3123 char **p;
3124 int i;
3125{
3126 return p[i];
3127}
3128static char *f (char * (*g) (char **, int), char **p, ...)
3129{
3130 char *s;
3131 va_list v;
3132 va_start (v,p);
3133 s = g (p, va_arg (v,int));
3134 va_end (v);
3135 return s;
3136}
3137
3138/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3139 function prototypes and stuff, but not '\xHH' hex character constants.
3140 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003141 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3143 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003144 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003145int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3146
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003147/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3148 inside strings and character constants. */
3149#define FOO(x) 'x'
3150int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3151
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003152int test (int i, double x);
3153struct s1 {int (*f) (int a);};
3154struct s2 {int (*f) (double a);};
3155int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3156int argc;
3157char **argv;
3158int
3159main ()
3160{
3161return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3162 ;
3163 return 0;
3164}
3165_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003166for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3167 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003168do
3169 CC="$ac_save_CC $ac_arg"
Benny Prijono28d3c562012-03-30 07:10:13 +00003170 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003171 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003172fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003173rm -f core conftest.err conftest.$ac_objext
3174 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003175done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003176rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003177CC=$ac_save_CC
3178
3179fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003180# AC_CACHE_VAL
3181case "x$ac_cv_prog_cc_c89" in
3182 x)
Benny Prijono28d3c562012-03-30 07:10:13 +00003183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3184$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003185 xno)
Benny Prijono28d3c562012-03-30 07:10:13 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3187$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003188 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003189 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijono28d3c562012-03-30 07:10:13 +00003190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3191$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003192esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003193if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003194
Benny Prijono28d3c562012-03-30 07:10:13 +00003195fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003196
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003203ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003204ac_cpp='$CXXCPP $CPPFLAGS'
3205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003208if test -z "$CXX"; then
3209 if test -n "$CCC"; then
3210 CXX=$CCC
3211 else
3212 if test -n "$ac_tool_prefix"; then
3213 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 +00003214 do
3215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if test "${ac_cv_prog_CXX+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003221else
3222 if test -n "$CXX"; then
3223 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3224else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003230 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003231 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 +00003232 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003234 break 2
3235 fi
3236done
Benny Prijono28d3c562012-03-30 07:10:13 +00003237 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003238IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003239
3240fi
3241fi
3242CXX=$ac_cv_prog_CXX
3243if test -n "$CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3245$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003246else
Benny Prijono28d3c562012-03-30 07:10:13 +00003247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003249fi
3250
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003251
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003252 test -n "$CXX" && break
3253 done
3254fi
3255if test -z "$CXX"; then
3256 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003257 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 +00003258do
3259 # Extract the first word of "$ac_prog", so it can be a program name with args.
3260set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262$as_echo_n "checking for $ac_word... " >&6; }
3263if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003265else
3266 if test -n "$ac_ct_CXX"; then
3267 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3268else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003274 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003275 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 +00003276 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003278 break 2
3279 fi
3280done
Benny Prijono28d3c562012-03-30 07:10:13 +00003281 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003282IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003283
3284fi
3285fi
3286ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3287if test -n "$ac_ct_CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3289$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003290else
Benny Prijono28d3c562012-03-30 07:10:13 +00003291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003293fi
3294
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003295
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003296 test -n "$ac_ct_CXX" && break
3297done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003298
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003299 if test "x$ac_ct_CXX" = x; then
3300 CXX="g++"
3301 else
3302 case $cross_compiling:$ac_tool_warned in
3303yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00003304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003306ac_tool_warned=yes ;;
3307esac
3308 CXX=$ac_ct_CXX
3309 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003310fi
3311
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003312 fi
3313fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003314# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00003315$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3316set X $ac_compile
3317ac_compiler=$2
3318for ac_option in --version -v -V -qversion; do
3319 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003320case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325$as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003327 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00003328 if test -s conftest.err; then
3329 sed '10a\
3330... rest of stderr output deleted ...
3331 10q' conftest.err >conftest.er1
3332 cat conftest.er1 >&5
3333 fi
3334 rm -f conftest.er1 conftest.err
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3337done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003338
Benny Prijono28d3c562012-03-30 07:10:13 +00003339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3340$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3341if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003343else
Benny Prijono28d3c562012-03-30 07:10:13 +00003344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003345/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003346
3347int
3348main ()
3349{
3350#ifndef __GNUC__
3351 choke me
3352#endif
3353
3354 ;
3355 return 0;
3356}
3357_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003358if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003359 ac_compiler_gnu=yes
3360else
Benny Prijono28d3c562012-03-30 07:10:13 +00003361 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003362fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003364ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3365
3366fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3368$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3369if test $ac_compiler_gnu = yes; then
3370 GXX=yes
3371else
3372 GXX=
3373fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003374ac_test_CXXFLAGS=${CXXFLAGS+set}
3375ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3377$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3378if test "${ac_cv_prog_cxx_g+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003380else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3382 ac_cxx_werror_flag=yes
3383 ac_cv_prog_cxx_g=no
3384 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003386/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003387
3388int
3389main ()
3390{
3391
3392 ;
3393 return 0;
3394}
3395_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003396if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003397 ac_cv_prog_cxx_g=yes
3398else
Benny Prijono28d3c562012-03-30 07:10:13 +00003399 CXXFLAGS=""
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003401/* end confdefs.h. */
3402
3403int
3404main ()
3405{
3406
3407 ;
3408 return 0;
3409}
3410_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003411if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003412
Benny Prijono28d3c562012-03-30 07:10:13 +00003413else
3414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003415 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003417/* end confdefs.h. */
3418
3419int
3420main ()
3421{
3422
3423 ;
3424 return 0;
3425}
3426_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003427if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003428 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003429fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003431fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3436fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3438$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003439if test "$ac_test_CXXFLAGS" = set; then
3440 CXXFLAGS=$ac_save_CXXFLAGS
3441elif test $ac_cv_prog_cxx_g = yes; then
3442 if test "$GXX" = yes; then
3443 CXXFLAGS="-g -O2"
3444 else
3445 CXXFLAGS="-g"
3446 fi
3447else
3448 if test "$GXX" = yes; then
3449 CXXFLAGS="-O2"
3450 else
3451 CXXFLAGS=
3452 fi
3453fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003466
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003467if test -z "$CROSS_COMPILE"; then
3468 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3469fi
3470
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003471if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003472
3473if test "$LD" = ""; then LD="$CC"; fi
3474
Sauw Minge7dbbc82011-10-24 09:28:13 +00003475if test "$LDOUT" = ""; then LDOUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003476
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003477if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003478
3479if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3480
3481if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3482
3483if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3484
Sauw Minge7dbbc82011-10-24 09:28:13 +00003485if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003486
3487if test "$CC_INC" = ""; then CC_INC="-I"; fi
3488
3489if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3490
3491if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3492
3493if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3494
3495
3496
3497
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003498
Benny Prijono0822c192008-08-21 20:59:58 +00003499
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003500
3501case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003502 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003503 if pwd -W 2&> /dev/null; then
3504 ac_pjdir=`pwd -W`
3505 else
3506 # We're probably cross-compiling mingw on Linux
3507 ac_pjdir=`pwd`
3508 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003509 ;;
3510 *)
3511 ac_pjdir=`pwd`
3512 ;;
3513esac
Benny Prijono12483112007-03-12 10:44:38 +00003514
3515
Benny Prijono28d3c562012-03-30 07:10:13 +00003516case $target in
3517 *mingw* | *cygw* | *win32* | *w32* )
3518 ac_shlib_suffix=dll
3519 ;;
3520 *darwin*)
3521 ac_shlib_suffix=dylib
3522 ;;
3523 *)
3524 ac_shlib_suffix=so
3525 ;;
3526esac
Benny Prijono36d32492011-12-28 08:42:23 +00003527
Benny Prijono28d3c562012-03-30 07:10:13 +00003528
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3530$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3531if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003533else
3534 ac_check_lib_save_LIBS=$LIBS
3535LIBS="-lpthread $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003537/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003538
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003539/* Override any GCC internal prototype to avoid an error.
3540 Use char because int might match the return type of a GCC
3541 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003542#ifdef __cplusplus
3543extern "C"
3544#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003545char pthread_create ();
3546int
3547main ()
3548{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003549return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003550 ;
3551 return 0;
3552}
3553_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003554if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003555 ac_cv_lib_pthread_pthread_create=yes
3556else
Benny Prijono28d3c562012-03-30 07:10:13 +00003557 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003558fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003559rm -f core conftest.err conftest.$ac_objext \
3560 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003561LIBS=$ac_check_lib_save_LIBS
3562fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3564$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3565if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003566 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003567#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003568_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003569
3570 LIBS="-lpthread $LIBS"
3571
3572fi
3573
Benny Prijono28d3c562012-03-30 07:10:13 +00003574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3575$as_echo_n "checking for puts in -lwsock32... " >&6; }
3576if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003578else
3579 ac_check_lib_save_LIBS=$LIBS
3580LIBS="-lwsock32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003582/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003583
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003584/* Override any GCC internal prototype to avoid an error.
3585 Use char because int might match the return type of a GCC
3586 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003587#ifdef __cplusplus
3588extern "C"
3589#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003590char puts ();
3591int
3592main ()
3593{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003594return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003595 ;
3596 return 0;
3597}
3598_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003599if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003600 ac_cv_lib_wsock32_puts=yes
3601else
Benny Prijono28d3c562012-03-30 07:10:13 +00003602 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003603fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003604rm -f core conftest.err conftest.$ac_objext \
3605 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003606LIBS=$ac_check_lib_save_LIBS
3607fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3609$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3610if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003611 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003612#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003613_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003614
3615 LIBS="-lwsock32 $LIBS"
3616
3617fi
3618
Benny Prijono28d3c562012-03-30 07:10:13 +00003619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3620$as_echo_n "checking for puts in -lws2_32... " >&6; }
3621if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
3622 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003623else
3624 ac_check_lib_save_LIBS=$LIBS
3625LIBS="-lws2_32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003627/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003628
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003629/* Override any GCC internal prototype to avoid an error.
3630 Use char because int might match the return type of a GCC
3631 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003632#ifdef __cplusplus
3633extern "C"
3634#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003635char puts ();
3636int
3637main ()
3638{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003639return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003640 ;
3641 return 0;
3642}
3643_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003644if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003645 ac_cv_lib_ws2_32_puts=yes
3646else
Benny Prijono28d3c562012-03-30 07:10:13 +00003647 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003648fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003649rm -f core conftest.err conftest.$ac_objext \
3650 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003651LIBS=$ac_check_lib_save_LIBS
3652fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3654$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3655if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003656 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003657#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003658_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003659
3660 LIBS="-lws2_32 $LIBS"
3661
3662fi
3663
Benny Prijono28d3c562012-03-30 07:10:13 +00003664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3665$as_echo_n "checking for puts in -lole32... " >&6; }
3666if test "${ac_cv_lib_ole32_puts+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003668else
3669 ac_check_lib_save_LIBS=$LIBS
3670LIBS="-lole32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003672/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003673
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003674/* Override any GCC internal prototype to avoid an error.
3675 Use char because int might match the return type of a GCC
3676 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003677#ifdef __cplusplus
3678extern "C"
3679#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003680char puts ();
3681int
3682main ()
3683{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003684return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003685 ;
3686 return 0;
3687}
3688_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003689if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003690 ac_cv_lib_ole32_puts=yes
3691else
Benny Prijono28d3c562012-03-30 07:10:13 +00003692 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003693fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003694rm -f core conftest.err conftest.$ac_objext \
3695 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003696LIBS=$ac_check_lib_save_LIBS
3697fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3699$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3700if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003701 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003702#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003703_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003704
3705 LIBS="-lole32 $LIBS"
3706
3707fi
3708
Benny Prijono28d3c562012-03-30 07:10:13 +00003709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3710$as_echo_n "checking for puts in -lwinmm... " >&6; }
3711if test "${ac_cv_lib_winmm_puts+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003713else
3714 ac_check_lib_save_LIBS=$LIBS
3715LIBS="-lwinmm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003717/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003718
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003719/* Override any GCC internal prototype to avoid an error.
3720 Use char because int might match the return type of a GCC
3721 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003722#ifdef __cplusplus
3723extern "C"
3724#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003725char puts ();
3726int
3727main ()
3728{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003729return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003730 ;
3731 return 0;
3732}
3733_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003734if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003735 ac_cv_lib_winmm_puts=yes
3736else
Benny Prijono28d3c562012-03-30 07:10:13 +00003737 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003738fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003739rm -f core conftest.err conftest.$ac_objext \
3740 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003741LIBS=$ac_check_lib_save_LIBS
3742fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3744$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3745if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003746 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003747#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003748_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003749
3750 LIBS="-lwinmm $LIBS"
3751
3752fi
3753
Benny Prijono28d3c562012-03-30 07:10:13 +00003754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3755$as_echo_n "checking for puts in -lsocket... " >&6; }
3756if test "${ac_cv_lib_socket_puts+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003758else
3759 ac_check_lib_save_LIBS=$LIBS
3760LIBS="-lsocket $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003762/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003763
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003764/* Override any GCC internal prototype to avoid an error.
3765 Use char because int might match the return type of a GCC
3766 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003767#ifdef __cplusplus
3768extern "C"
3769#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003770char puts ();
3771int
3772main ()
3773{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003774return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775 ;
3776 return 0;
3777}
3778_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003779if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003780 ac_cv_lib_socket_puts=yes
3781else
Benny Prijono28d3c562012-03-30 07:10:13 +00003782 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003784rm -f core conftest.err conftest.$ac_objext \
3785 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003786LIBS=$ac_check_lib_save_LIBS
3787fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3789$as_echo "$ac_cv_lib_socket_puts" >&6; }
3790if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003791 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003792#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003793_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003794
3795 LIBS="-lsocket $LIBS"
3796
3797fi
3798
Benny Prijono28d3c562012-03-30 07:10:13 +00003799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3800$as_echo_n "checking for puts in -lrt... " >&6; }
3801if test "${ac_cv_lib_rt_puts+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003803else
3804 ac_check_lib_save_LIBS=$LIBS
3805LIBS="-lrt $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003807/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003808
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003809/* Override any GCC internal prototype to avoid an error.
3810 Use char because int might match the return type of a GCC
3811 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003812#ifdef __cplusplus
3813extern "C"
3814#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003815char puts ();
3816int
3817main ()
3818{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003819return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003820 ;
3821 return 0;
3822}
3823_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003824if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003825 ac_cv_lib_rt_puts=yes
3826else
Benny Prijono28d3c562012-03-30 07:10:13 +00003827 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003828fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003829rm -f core conftest.err conftest.$ac_objext \
3830 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003831LIBS=$ac_check_lib_save_LIBS
3832fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3834$as_echo "$ac_cv_lib_rt_puts" >&6; }
3835if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003836 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003837#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003838_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003839
3840 LIBS="-lrt $LIBS"
3841
3842fi
3843
Benny Prijono28d3c562012-03-30 07:10:13 +00003844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3845$as_echo_n "checking for puts in -lnsl... " >&6; }
3846if test "${ac_cv_lib_nsl_puts+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003848else
3849 ac_check_lib_save_LIBS=$LIBS
3850LIBS="-lnsl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003852/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003853
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003854/* Override any GCC internal prototype to avoid an error.
3855 Use char because int might match the return type of a GCC
3856 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003857#ifdef __cplusplus
3858extern "C"
3859#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003860char puts ();
3861int
3862main ()
3863{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003864return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003865 ;
3866 return 0;
3867}
3868_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003869if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003870 ac_cv_lib_nsl_puts=yes
3871else
Benny Prijono28d3c562012-03-30 07:10:13 +00003872 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003873fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003874rm -f core conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003876LIBS=$ac_check_lib_save_LIBS
3877fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3879$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3880if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003881 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003882#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003883_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003884
3885 LIBS="-lnsl $LIBS"
3886
3887fi
3888
Benny Prijono28d3c562012-03-30 07:10:13 +00003889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3890$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3891if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003893else
3894 ac_check_lib_save_LIBS=$LIBS
3895LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003897/* end confdefs.h. */
3898
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003899/* Override any GCC internal prototype to avoid an error.
3900 Use char because int might match the return type of a GCC
3901 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003902#ifdef __cplusplus
3903extern "C"
3904#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003905char uuid_generate ();
3906int
3907main ()
3908{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003909return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003910 ;
3911 return 0;
3912}
3913_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003914if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003915 ac_cv_lib_uuid_uuid_generate=yes
3916else
Benny Prijono28d3c562012-03-30 07:10:13 +00003917 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003918fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003919rm -f core conftest.err conftest.$ac_objext \
3920 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003921LIBS=$ac_check_lib_save_LIBS
3922fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3924$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3925if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003926 cat >>confdefs.h <<_ACEOF
3927#define HAVE_LIBUUID 1
3928_ACEOF
3929
3930 LIBS="-luuid $LIBS"
3931
3932fi
3933
Benny Prijono28d3c562012-03-30 07:10:13 +00003934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3935$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3936if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003938else
3939 ac_check_lib_save_LIBS=$LIBS
3940LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003942/* end confdefs.h. */
3943
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003944/* Override any GCC internal prototype to avoid an error.
3945 Use char because int might match the return type of a GCC
3946 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003947#ifdef __cplusplus
3948extern "C"
3949#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003950char uuid_generate ();
3951int
3952main ()
3953{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003954return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003955 ;
3956 return 0;
3957}
3958_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003959if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003960 ac_cv_lib_uuid_uuid_generate=yes
3961else
Benny Prijono28d3c562012-03-30 07:10:13 +00003962 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003963fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003964rm -f core conftest.err conftest.$ac_objext \
3965 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003966LIBS=$ac_check_lib_save_LIBS
3967fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3969$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3970if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003971 ac_has_uuid_lib=1
3972fi
3973
3974
Benny Prijono28d3c562012-03-30 07:10:13 +00003975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
3976$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003977cat >>confdefs.h <<_ACEOF
3978#define PJ_M_NAME "$target_cpu"
3979_ACEOF
3980
3981
Benny Prijono28d3c562012-03-30 07:10:13 +00003982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
3983$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003984case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00003985 sparc64-* | ia64-* | x86_64-* )
Benny Prijono28d3c562012-03-30 07:10:13 +00003986 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003987
Benny Prijono28d3c562012-03-30 07:10:13 +00003988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
3989$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003990 ;;
3991 * )
Benny Prijono28d3c562012-03-30 07:10:13 +00003992 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003993
Benny Prijono28d3c562012-03-30 07:10:13 +00003994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
3995$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003996 ;;
3997esac
3998
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003999
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004000ac_ext=c
4001ac_cpp='$CPP $CPPFLAGS'
4002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono28d3c562012-03-30 07:10:13 +00004005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4006$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004007# On Suns, sometimes $CPP names a directory.
4008if test -n "$CPP" && test -d "$CPP"; then
4009 CPP=
4010fi
4011if test -z "$CPP"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00004012 if test "${ac_cv_prog_CPP+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004014else
4015 # Double quotes because CPP needs to be expanded
4016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4017 do
4018 ac_preproc_ok=false
4019for ac_c_preproc_warn_flag in '' yes
4020do
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004028/* end confdefs.h. */
4029#ifdef __STDC__
4030# include <limits.h>
4031#else
4032# include <assert.h>
4033#endif
4034 Syntax error
4035_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004036if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004037
Benny Prijono28d3c562012-03-30 07:10:13 +00004038else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004039 # Broken: fails on valid input.
4040continue
4041fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004042rm -f conftest.err conftest.$ac_ext
4043
4044 # OK, works on sane cases. Now check whether nonexistent headers
4045 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004047/* end confdefs.h. */
4048#include <ac_nonexistent.h>
4049_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004050if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004051 # Broken: success on invalid input.
4052continue
4053else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004054 # Passes both tests.
4055ac_preproc_ok=:
4056break
4057fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004058rm -f conftest.err conftest.$ac_ext
4059
4060done
4061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4062rm -f conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004063if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004064 break
4065fi
4066
4067 done
4068 ac_cv_prog_CPP=$CPP
4069
4070fi
4071 CPP=$ac_cv_prog_CPP
4072else
4073 ac_cv_prog_CPP=$CPP
4074fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4076$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004077ac_preproc_ok=false
4078for ac_c_preproc_warn_flag in '' yes
4079do
4080 # Use a header file that comes with gcc, so configuring glibc
4081 # with a fresh cross-compiler works.
4082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083 # <limits.h> exists even on freestanding compilers.
4084 # On the NeXT, cc -E runs the code through the compiler's parser,
4085 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004087/* end confdefs.h. */
4088#ifdef __STDC__
4089# include <limits.h>
4090#else
4091# include <assert.h>
4092#endif
4093 Syntax error
4094_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004095if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004096
Benny Prijono28d3c562012-03-30 07:10:13 +00004097else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004098 # Broken: fails on valid input.
4099continue
4100fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004101rm -f conftest.err conftest.$ac_ext
4102
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004106/* end confdefs.h. */
4107#include <ac_nonexistent.h>
4108_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004109if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004110 # Broken: success on invalid input.
4111continue
4112else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004113 # Passes both tests.
4114ac_preproc_ok=:
4115break
4116fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004117rm -f conftest.err conftest.$ac_ext
4118
4119done
4120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4121rm -f conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004122if $ac_preproc_ok; then :
4123
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004124else
Benny Prijono28d3c562012-03-30 07:10:13 +00004125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127as_fn_error "C preprocessor \"$CPP\" fails sanity check
4128See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004129fi
4130
4131ac_ext=c
4132ac_cpp='$CPP $CPPFLAGS'
4133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137
Benny Prijono28d3c562012-03-30 07:10:13 +00004138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4139$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4140if test "${ac_cv_path_GREP+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004142else
Benny Prijono28d3c562012-03-30 07:10:13 +00004143 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004144 ac_path_GREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004145 # Loop through the user's path and test for each of PROGNAME-LIST
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004151 for ac_prog in grep ggrep; do
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4154 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4155# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004156 # Check for GNU $ac_path_GREP
4157case `"$ac_path_GREP" --version 2>&1` in
4158*GNU*)
4159 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4160*)
4161 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004162 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004163 while :
4164 do
4165 cat "conftest.in" "conftest.in" >"conftest.tmp"
4166 mv "conftest.tmp" "conftest.in"
4167 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004168 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004169 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004171 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004172 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4173 # Best one so far, save it but keep looking for a better one
4174 ac_cv_path_GREP="$ac_path_GREP"
4175 ac_path_GREP_max=$ac_count
4176 fi
4177 # 10*(2^10) chars as input seems more than enough
4178 test $ac_count -gt 10 && break
4179 done
4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181esac
4182
Benny Prijono28d3c562012-03-30 07:10:13 +00004183 $ac_path_GREP_found && break 3
4184 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004185 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004186 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004187IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004188 if test -z "$ac_cv_path_GREP"; then
4189 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004191else
4192 ac_cv_path_GREP=$GREP
4193fi
4194
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004195fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4197$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004198 GREP="$ac_cv_path_GREP"
4199
4200
Benny Prijono28d3c562012-03-30 07:10:13 +00004201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4202$as_echo_n "checking for egrep... " >&6; }
4203if test "${ac_cv_path_EGREP+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004205else
4206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4207 then ac_cv_path_EGREP="$GREP -E"
4208 else
Benny Prijono28d3c562012-03-30 07:10:13 +00004209 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004210 ac_path_EGREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004217 for ac_prog in egrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4220 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4221# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004222 # Check for GNU $ac_path_EGREP
4223case `"$ac_path_EGREP" --version 2>&1` in
4224*GNU*)
4225 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4226*)
4227 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004228 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004229 while :
4230 do
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004234 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004235 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004237 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004238 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_EGREP="$ac_path_EGREP"
4241 ac_path_EGREP_max=$ac_count
4242 fi
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4245 done
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247esac
4248
Benny Prijono28d3c562012-03-30 07:10:13 +00004249 $ac_path_EGREP_found && break 3
4250 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004251 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004252 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004253IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004254 if test -z "$ac_cv_path_EGREP"; then
4255 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004257else
4258 ac_cv_path_EGREP=$EGREP
4259fi
4260
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004261 fi
4262fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4264$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004265 EGREP="$ac_cv_path_EGREP"
4266
4267
Benny Prijono28d3c562012-03-30 07:10:13 +00004268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4269$as_echo_n "checking for ANSI C header files... " >&6; }
4270if test "${ac_cv_header_stdc+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004272else
Benny Prijono28d3c562012-03-30 07:10:13 +00004273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004274/* end confdefs.h. */
4275#include <stdlib.h>
4276#include <stdarg.h>
4277#include <string.h>
4278#include <float.h>
4279
4280int
4281main ()
4282{
4283
4284 ;
4285 return 0;
4286}
4287_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004288if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004289 ac_cv_header_stdc=yes
4290else
Benny Prijono28d3c562012-03-30 07:10:13 +00004291 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004292fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294
4295if test $ac_cv_header_stdc = yes; then
4296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004298/* end confdefs.h. */
4299#include <string.h>
4300
4301_ACEOF
4302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004303 $EGREP "memchr" >/dev/null 2>&1; then :
4304
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004305else
4306 ac_cv_header_stdc=no
4307fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004308rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004309
4310fi
4311
4312if test $ac_cv_header_stdc = yes; then
4313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004315/* end confdefs.h. */
4316#include <stdlib.h>
4317
4318_ACEOF
4319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004320 $EGREP "free" >/dev/null 2>&1; then :
4321
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004322else
4323 ac_cv_header_stdc=no
4324fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004325rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004326
4327fi
4328
4329if test $ac_cv_header_stdc = yes; then
4330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijono28d3c562012-03-30 07:10:13 +00004331 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004332 :
4333else
Benny Prijono28d3c562012-03-30 07:10:13 +00004334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004335/* end confdefs.h. */
4336#include <ctype.h>
4337#include <stdlib.h>
4338#if ((' ' & 0x0FF) == 0x020)
4339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4341#else
4342# define ISLOWER(c) \
4343 (('a' <= (c) && (c) <= 'i') \
4344 || ('j' <= (c) && (c) <= 'r') \
4345 || ('s' <= (c) && (c) <= 'z'))
4346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4347#endif
4348
4349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4350int
4351main ()
4352{
4353 int i;
4354 for (i = 0; i < 256; i++)
4355 if (XOR (islower (i), ISLOWER (i))
4356 || toupper (i) != TOUPPER (i))
4357 return 2;
4358 return 0;
4359}
4360_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004361if ac_fn_c_try_run "$LINENO"; then :
4362
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004363else
Benny Prijono28d3c562012-03-30 07:10:13 +00004364 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004365fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4367 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004368fi
4369
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004370fi
4371fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4373$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004374if test $ac_cv_header_stdc = yes; then
4375
Benny Prijono28d3c562012-03-30 07:10:13 +00004376$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004377
4378fi
4379
4380# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004381for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4382 inttypes.h stdint.h unistd.h
Benny Prijono28d3c562012-03-30 07:10:13 +00004383do :
4384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4385ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4386"
4387eval as_val=\$$as_ac_Header
4388 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004389 cat >>confdefs.h <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004391_ACEOF
4392
4393fi
4394
4395done
4396
4397
Benny Prijono28d3c562012-03-30 07:10:13 +00004398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4399$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4400if test "${ac_cv_c_bigendian+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004402else
Benny Prijono28d3c562012-03-30 07:10:13 +00004403 ac_cv_c_bigendian=unknown
4404 # See if we're dealing with a universal compiler.
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406/* end confdefs.h. */
4407#ifndef __APPLE_CC__
4408 not a universal capable compiler
4409 #endif
4410 typedef int dummy;
4411
Benny Prijonod5233702010-01-13 13:09:45 +00004412_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004413if ac_fn_c_try_compile "$LINENO"; then :
4414
4415 # Check for potential -arch flags. It is not universal unless
4416 # there are at least two -arch flags with different values.
4417 ac_arch=
4418 ac_prev=
4419 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4420 if test -n "$ac_prev"; then
4421 case $ac_word in
4422 i?86 | x86_64 | ppc | ppc64)
4423 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4424 ac_arch=$ac_word
4425 else
4426 ac_cv_c_bigendian=universal
4427 break
4428 fi
4429 ;;
4430 esac
4431 ac_prev=
4432 elif test "x$ac_word" = "x-arch"; then
4433 ac_prev=arch
4434 fi
4435 done
4436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 if test $ac_cv_c_bigendian = unknown; then
4439 # See if sys/param.h defines the BYTE_ORDER macro.
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004441/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004442#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004443 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004444
4445int
4446main ()
4447{
Benny Prijono28d3c562012-03-30 07:10:13 +00004448#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4449 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4450 && LITTLE_ENDIAN)
4451 bogus endian macros
4452 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004453
4454 ;
4455 return 0;
4456}
4457_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004458if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004459 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijono28d3c562012-03-30 07:10:13 +00004460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004461/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004462#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004463 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004464
4465int
4466main ()
4467{
4468#if BYTE_ORDER != BIG_ENDIAN
Benny Prijono28d3c562012-03-30 07:10:13 +00004469 not big endian
4470 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004471
4472 ;
4473 return 0;
4474}
4475_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004476if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004477 ac_cv_c_bigendian=yes
4478else
Benny Prijono28d3c562012-03-30 07:10:13 +00004479 ac_cv_c_bigendian=no
Benny Prijono36d32492011-12-28 08:42:23 +00004480fi
Benny Prijono36d32492011-12-28 08:42:23 +00004481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004482fi
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 fi
4485 if test $ac_cv_c_bigendian = unknown; then
4486 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00004488/* end confdefs.h. */
Benny Prijono28d3c562012-03-30 07:10:13 +00004489#include <limits.h>
4490
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004491int
4492main ()
4493{
Benny Prijono28d3c562012-03-30 07:10:13 +00004494#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4495 bogus endian macros
4496 #endif
4497
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004498 ;
4499 return 0;
4500}
4501_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004502if ac_fn_c_try_compile "$LINENO"; then :
4503 # It does; now see whether it defined to _BIG_ENDIAN or not.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h. */
4506#include <limits.h>
4507
4508int
4509main ()
4510{
4511#ifndef _BIG_ENDIAN
4512 not big endian
4513 #endif
4514
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004520 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004521else
Benny Prijono28d3c562012-03-30 07:10:13 +00004522 ac_cv_c_bigendian=no
Benny Prijonoe1105232011-10-26 06:49:34 +00004523fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525fi
4526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 fi
4528 if test $ac_cv_c_bigendian = unknown; then
4529 # Compile a test program.
4530 if test "$cross_compiling" = yes; then :
4531 # Try to guess by grepping values from an object file.
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h. */
4534short int ascii_mm[] =
4535 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4536 short int ascii_ii[] =
4537 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4538 int use_ascii (int i) {
4539 return ascii_mm[i] + ascii_ii[i];
4540 }
4541 short int ebcdic_ii[] =
4542 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4543 short int ebcdic_mm[] =
4544 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4545 int use_ebcdic (int i) {
4546 return ebcdic_mm[i] + ebcdic_ii[i];
4547 }
4548 extern int foo;
Benny Prijono36d32492011-12-28 08:42:23 +00004549
Benny Prijono28d3c562012-03-30 07:10:13 +00004550int
4551main ()
4552{
4553return use_ascii (foo) == use_ebcdic (foo);
4554 ;
4555 return 0;
4556}
4557_ACEOF
4558if ac_fn_c_try_compile "$LINENO"; then :
4559 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4560 ac_cv_c_bigendian=yes
4561 fi
4562 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4563 if test "$ac_cv_c_bigendian" = unknown; then
4564 ac_cv_c_bigendian=no
4565 else
4566 # finding both strings is unlikely to happen, but who knows?
4567 ac_cv_c_bigendian=unknown
4568 fi
4569 fi
4570fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004572else
Benny Prijono28d3c562012-03-30 07:10:13 +00004573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004574/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004575$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004576int
4577main ()
4578{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004579
Benny Prijono28d3c562012-03-30 07:10:13 +00004580 /* Are we little or big endian? From Harbison&Steele. */
4581 union
4582 {
4583 long int l;
4584 char c[sizeof (long int)];
4585 } u;
4586 u.l = 1;
4587 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004588
4589 ;
4590 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004591}
4592_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004593if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004594 ac_cv_c_bigendian=no
4595else
Benny Prijono28d3c562012-03-30 07:10:13 +00004596 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004597fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4599 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004600fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004601
Benny Prijono28d3c562012-03-30 07:10:13 +00004602 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004603fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4605$as_echo "$ac_cv_c_bigendian" >&6; }
4606 case $ac_cv_c_bigendian in #(
4607 yes)
4608 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4609;; #(
4610 no)
4611 ;; #(
4612 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004613
Benny Prijono28d3c562012-03-30 07:10:13 +00004614$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004615
Benny Prijono28d3c562012-03-30 07:10:13 +00004616 ;; #(
4617 *)
4618 as_fn_error "unknown endianness
4619 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4620 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004621
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004622
Sauw Minge7dbbc82011-10-24 09:28:13 +00004623if test "x$ac_cv_c_bigendian" = "xyes"; then
4624 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4625else
4626 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4627fi
4628
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004629case $target in
4630 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004631 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004632
Benny Prijono28d3c562012-03-30 07:10:13 +00004633 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004634
Benny Prijono28d3c562012-03-30 07:10:13 +00004635 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004636
4637 ;;
4638 *darwin*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004639 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004640
4641 ;;
4642 *linux*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004643 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004644
4645 ;;
4646 *rtems*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004647 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004648
4649 ;;
4650 *sunos* | *solaris* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004651 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004652
4653 ;;
4654 *)
4655 ;;
4656esac
4657
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004658
4659
4660
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004661# Check whether --enable-floating-point was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00004662if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004663 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00004664 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004665
Benny Prijono28d3c562012-03-30 07:10:13 +00004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4667$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004668 fi
4669else
4670
Benny Prijono28d3c562012-03-30 07:10:13 +00004671 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004672
Benny Prijono28d3c562012-03-30 07:10:13 +00004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4674$as_echo "Checking if floating point is disabled... no" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4676$as_echo_n "checking for fmod in -lm... " >&6; }
4677if test "${ac_cv_lib_m_fmod+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004679else
4680 ac_check_lib_save_LIBS=$LIBS
4681LIBS="-lm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00004682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004683/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004684
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004685/* Override any GCC internal prototype to avoid an error.
4686 Use char because int might match the return type of a GCC
4687 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004688#ifdef __cplusplus
4689extern "C"
4690#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004691char fmod ();
4692int
4693main ()
4694{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004695return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004696 ;
4697 return 0;
4698}
4699_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004700if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004701 ac_cv_lib_m_fmod=yes
4702else
Benny Prijono28d3c562012-03-30 07:10:13 +00004703 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004704fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004705rm -f core conftest.err conftest.$ac_objext \
4706 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004707LIBS=$ac_check_lib_save_LIBS
4708fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4710$as_echo "$ac_cv_lib_m_fmod" >&6; }
4711if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004712 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004713#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004714_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004715
4716 LIBS="-lm $LIBS"
4717
4718fi
4719
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004720
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004721fi
4722
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004723
4724
Benny Prijono28d3c562012-03-30 07:10:13 +00004725ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4726if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4727 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004728
4729fi
4730
4731
Benny Prijono28d3c562012-03-30 07:10:13 +00004732ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4733if test "x$ac_cv_header_assert_h" = x""yes; then :
4734 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004735
4736fi
4737
4738
Benny Prijono28d3c562012-03-30 07:10:13 +00004739ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4740if test "x$ac_cv_header_ctype_h" = x""yes; then :
4741 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004742
4743fi
4744
4745
4746
4747case $target in
4748 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004749 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004750
4751 ;;
4752 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00004753 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4754if test "x$ac_cv_header_errno_h" = x""yes; then :
4755 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004756
4757fi
4758
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004759
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004760 ;;
4761esac
4762
Benny Prijono28d3c562012-03-30 07:10:13 +00004763ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4764if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4765 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004766
4767fi
4768
4769
Benny Prijono28d3c562012-03-30 07:10:13 +00004770ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4771if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4772 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004773
4774fi
4775
4776
Benny Prijono28d3c562012-03-30 07:10:13 +00004777ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4778if test "x$ac_cv_header_limits_h" = x""yes; then :
4779 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004780
4781fi
4782
4783
Benny Prijono28d3c562012-03-30 07:10:13 +00004784ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4785if test "x$ac_cv_header_malloc_h" = x""yes; then :
4786 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004787
4788fi
4789
4790
Benny Prijono28d3c562012-03-30 07:10:13 +00004791ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4792if test "x$ac_cv_header_netdb_h" = x""yes; then :
4793 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004794
4795fi
4796
4797
Benny Prijono28d3c562012-03-30 07:10:13 +00004798ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4799if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4800 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004801
4802fi
4803
4804
Benny Prijono28d3c562012-03-30 07:10:13 +00004805ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4806if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4807 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijonoe3e65802011-02-28 07:44:19 +00004808
4809fi
4810
4811
Benny Prijono28d3c562012-03-30 07:10:13 +00004812ac_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 +00004813 # include <sys/types.h>
4814 #endif
4815 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004816 # include <netinet/in_systm.h>
4817 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004818 #if PJ_HAS_NETINET_IN_H
4819 # include <netinet/in.h>
4820 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004821
Benny Prijono28d3c562012-03-30 07:10:13 +00004822"
4823if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4824 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004825
Benny Prijono36d32492011-12-28 08:42:23 +00004826fi
4827
Sauw Minge7dbbc82011-10-24 09:28:13 +00004828
Benny Prijono28d3c562012-03-30 07:10:13 +00004829ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4830if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4831 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004832
Benny Prijono36d32492011-12-28 08:42:23 +00004833fi
4834
Benny Prijono36d32492011-12-28 08:42:23 +00004835
Benny Prijono28d3c562012-03-30 07:10:13 +00004836ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4837if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
4838 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4839if test "x$ac_cv_func_getifaddrs" = x""yes; then :
4840 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004841
4842fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004843
Sauw Minge7dbbc82011-10-24 09:28:13 +00004844fi
4845
Sauw Minge7dbbc82011-10-24 09:28:13 +00004846
Benny Prijono28d3c562012-03-30 07:10:13 +00004847ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4848if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4849 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004850
Benny Prijono36d32492011-12-28 08:42:23 +00004851fi
4852
Benny Prijono36d32492011-12-28 08:42:23 +00004853
Benny Prijono28d3c562012-03-30 07:10:13 +00004854ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4855if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4856 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004857
Benny Prijono36d32492011-12-28 08:42:23 +00004858fi
4859
Benny Prijono36d32492011-12-28 08:42:23 +00004860
Benny Prijono28d3c562012-03-30 07:10:13 +00004861ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4862if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4863 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004864
4865fi
Benny Prijono36d32492011-12-28 08:42:23 +00004866
Benny Prijono36d32492011-12-28 08:42:23 +00004867
Benny Prijono28d3c562012-03-30 07:10:13 +00004868ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4869if test "x$ac_cv_header_stddef_h" = x""yes; then :
4870 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004871
Benny Prijono36d32492011-12-28 08:42:23 +00004872fi
4873
Sauw Minge7dbbc82011-10-24 09:28:13 +00004874
Benny Prijono28d3c562012-03-30 07:10:13 +00004875ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4876if test "x$ac_cv_header_stdio_h" = x""yes; then :
4877 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004878
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004879fi
4880
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004881
Benny Prijono28d3c562012-03-30 07:10:13 +00004882ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4883if test "x$ac_cv_header_stdint_h" = x""yes; then :
4884 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004885
Benny Prijono36d32492011-12-28 08:42:23 +00004886fi
4887
Benny Prijono36d32492011-12-28 08:42:23 +00004888
Benny Prijono28d3c562012-03-30 07:10:13 +00004889ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4890if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4891 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004892
Benny Prijono36d32492011-12-28 08:42:23 +00004893fi
4894
Benny Prijono36d32492011-12-28 08:42:23 +00004895
Benny Prijono28d3c562012-03-30 07:10:13 +00004896ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4897if test "x$ac_cv_header_string_h" = x""yes; then :
4898 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004899
Sauw Minge7dbbc82011-10-24 09:28:13 +00004900fi
4901
Sauw Minge7dbbc82011-10-24 09:28:13 +00004902
Benny Prijono28d3c562012-03-30 07:10:13 +00004903ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4904if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4905 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004906
Benny Prijono36d32492011-12-28 08:42:23 +00004907fi
4908
Benny Prijono36d32492011-12-28 08:42:23 +00004909
Benny Prijono28d3c562012-03-30 07:10:13 +00004910ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4911if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4912 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004913
Benny Prijono36d32492011-12-28 08:42:23 +00004914fi
4915
Benny Prijono36d32492011-12-28 08:42:23 +00004916
Benny Prijono28d3c562012-03-30 07:10:13 +00004917ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4918if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4919 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004920
4921fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004922
Sauw Minge7dbbc82011-10-24 09:28:13 +00004923
Benny Prijono28d3c562012-03-30 07:10:13 +00004924ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4925if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4926 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004927
Benny Prijono36d32492011-12-28 08:42:23 +00004928fi
Benny Prijono36d32492011-12-28 08:42:23 +00004929
Benny Prijono36d32492011-12-28 08:42:23 +00004930
Benny Prijono28d3c562012-03-30 07:10:13 +00004931ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4932if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4933 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004934
Benny Prijono36d32492011-12-28 08:42:23 +00004935fi
4936
Benny Prijono36d32492011-12-28 08:42:23 +00004937
Benny Prijono28d3c562012-03-30 07:10:13 +00004938ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4939if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4940 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004941
Benny Prijono36d32492011-12-28 08:42:23 +00004942fi
Benny Prijono36d32492011-12-28 08:42:23 +00004943
Sauw Minge7dbbc82011-10-24 09:28:13 +00004944
Benny Prijono28d3c562012-03-30 07:10:13 +00004945ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4946if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4947 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004948
Benny Prijono36d32492011-12-28 08:42:23 +00004949fi
4950
Benny Prijono36d32492011-12-28 08:42:23 +00004951
Benny Prijono28d3c562012-03-30 07:10:13 +00004952ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4953if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4954 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004955
Benny Prijono36d32492011-12-28 08:42:23 +00004956fi
4957
Benny Prijono36d32492011-12-28 08:42:23 +00004958
Benny Prijono28d3c562012-03-30 07:10:13 +00004959ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
4960if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
4961 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004962
4963fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004964
Sauw Minge7dbbc82011-10-24 09:28:13 +00004965
Benny Prijono28d3c562012-03-30 07:10:13 +00004966ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4967if test "x$ac_cv_header_time_h" = x""yes; then :
4968 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004969
Benny Prijono36d32492011-12-28 08:42:23 +00004970fi
Benny Prijono36d32492011-12-28 08:42:23 +00004971
Benny Prijono36d32492011-12-28 08:42:23 +00004972
Benny Prijono28d3c562012-03-30 07:10:13 +00004973ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4974if test "x$ac_cv_header_unistd_h" = x""yes; then :
4975 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004976
Benny Prijono36d32492011-12-28 08:42:23 +00004977fi
4978
Benny Prijono36d32492011-12-28 08:42:23 +00004979
Benny Prijono28d3c562012-03-30 07:10:13 +00004980ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4981if test "x$ac_cv_header_winsock_h" = x""yes; then :
4982 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004983
Benny Prijono36d32492011-12-28 08:42:23 +00004984fi
Benny Prijono36d32492011-12-28 08:42:23 +00004985
Sauw Ming68c14572011-07-20 03:00:48 +00004986
Benny Prijono28d3c562012-03-30 07:10:13 +00004987ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4988if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4989 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Sauw Ming68c14572011-07-20 03:00:48 +00004990
Benny Prijono36d32492011-12-28 08:42:23 +00004991fi
Benny Prijono36d32492011-12-28 08:42:23 +00004992
Benny Prijono36d32492011-12-28 08:42:23 +00004993
Benny Prijono28d3c562012-03-30 07:10:13 +00004994ac_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 +00004995 # include <winsock2.h>
4996 #elif PJ_HAS_WINSOCK_H
4997 # include <winsock.h>
4998 #endif
4999
Benny Prijono28d3c562012-03-30 07:10:13 +00005000"
5001if test "x$ac_cv_header_mswsock_h" = x""yes; then :
5002 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00005003
5004fi
5005
5006
Benny Prijono28d3c562012-03-30 07:10:13 +00005007ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
5008if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
5009 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00005010
5011fi
5012
5013
Benny Prijono28d3c562012-03-30 07:10:13 +00005014ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
5015if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00005016 ac_has_uuid_h=1
5017fi
5018
5019
Benny Prijono28d3c562012-03-30 07:10:13 +00005020ac_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 +00005021 # include <sys/types.h>
5022 #endif
5023 #if PJ_HAS_SYS_SOCKET_H
5024
Benny Prijono188ba7e2008-03-25 13:53:16 +00005025 # include <sys/socket.h>
5026 #endif
5027
Benny Prijono28d3c562012-03-30 07:10:13 +00005028"
5029if test "x$ac_cv_header_net_if_h" = x""yes; then :
5030 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00005031
5032fi
5033
Benny Prijono188ba7e2008-03-25 13:53:16 +00005034
Benny Prijono28d3c562012-03-30 07:10:13 +00005035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5036$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005037cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005038#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005039_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005040
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005041
Benny Prijono28d3c562012-03-30 07:10:13 +00005042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5043$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5044$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005045
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005046
Benny Prijono28d3c562012-03-30 07:10:13 +00005047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5048$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5049$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005050
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005051
Benny Prijono28d3c562012-03-30 07:10:13 +00005052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5053$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5054$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005055
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005056
Benny Prijono28d3c562012-03-30 07:10:13 +00005057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5058$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5059$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005060
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005061
Benny Prijono28d3c562012-03-30 07:10:13 +00005062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5063$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5064$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005065
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005066
Benny Prijono28d3c562012-03-30 07:10:13 +00005067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5068$as_echo_n "checking if inet_aton() is available... " >&6; }
5069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005070/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005071#include <sys/types.h>
5072 #include <sys/socket.h>
5073 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005074int
5075main ()
5076{
5077inet_aton(0, 0);
5078 ;
5079 return 0;
5080}
5081_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005082if ac_fn_c_try_compile "$LINENO"; then :
5083 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005084
Benny Prijono28d3c562012-03-30 07:10:13 +00005085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5086$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005087else
Benny Prijono28d3c562012-03-30 07:10:13 +00005088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005090fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092
Benny Prijono28d3c562012-03-30 07:10:13 +00005093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5094$as_echo_n "checking if inet_pton() is available... " >&6; }
5095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005096/* end confdefs.h. */
5097#include <sys/types.h>
5098 #include <sys/socket.h>
5099 #include <arpa/inet.h>
5100int
5101main ()
5102{
5103inet_pton(0, 0, 0);
5104 ;
5105 return 0;
5106}
5107_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005108if ac_fn_c_try_compile "$LINENO"; then :
5109 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005110
Benny Prijono28d3c562012-03-30 07:10:13 +00005111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5112$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005113else
Benny Prijono28d3c562012-03-30 07:10:13 +00005114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005116fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118
Benny Prijono28d3c562012-03-30 07:10:13 +00005119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5120$as_echo_n "checking if inet_ntop() is available... " >&6; }
5121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005122/* end confdefs.h. */
5123#include <sys/types.h>
5124 #include <sys/socket.h>
5125 #include <arpa/inet.h>
5126int
5127main ()
5128{
5129inet_ntop(0, 0, 0, 0);
5130 ;
5131 return 0;
5132}
5133_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005134if ac_fn_c_try_compile "$LINENO"; then :
5135 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005136
Benny Prijono28d3c562012-03-30 07:10:13 +00005137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5138$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005139else
Benny Prijono28d3c562012-03-30 07:10:13 +00005140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005142fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144
Benny Prijono28d3c562012-03-30 07:10:13 +00005145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5146$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005148/* end confdefs.h. */
5149#include <sys/types.h>
5150 #include <sys/socket.h>
5151 #include <netdb.h>
5152int
5153main ()
5154{
5155getaddrinfo(0, 0, 0, 0);
5156 ;
5157 return 0;
5158}
5159_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005160if ac_fn_c_try_compile "$LINENO"; then :
5161 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005162
Benny Prijono28d3c562012-03-30 07:10:13 +00005163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005165else
Benny Prijono28d3c562012-03-30 07:10:13 +00005166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005168fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170
Benny Prijono28d3c562012-03-30 07:10:13 +00005171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5172$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005174/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005175#include <sys/types.h>
5176 #include <sys/socket.h>
5177 #include <netinet/in.h>
5178 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005179int
5180main ()
5181{
5182struct sockaddr_in a; a.sin_len=0;
5183 ;
5184 return 0;
5185}
5186_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005187if ac_fn_c_try_compile "$LINENO"; then :
5188 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005189
Benny Prijono28d3c562012-03-30 07:10:13 +00005190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5191$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005192else
Benny Prijono28d3c562012-03-30 07:10:13 +00005193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005195fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197
Benny Prijono28d3c562012-03-30 07:10:13 +00005198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5199$as_echo_n "checking if socklen_t is available... " >&6; }
5200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005201/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005202#include <sys/types.h>
5203 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005204int
5205main ()
5206{
5207socklen_t xxx = 0;
5208 ;
5209 return 0;
5210}
5211_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005212if ac_fn_c_try_compile "$LINENO"; then :
5213 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005214
Benny Prijono28d3c562012-03-30 07:10:13 +00005215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005217else
Benny Prijono28d3c562012-03-30 07:10:13 +00005218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005220fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222
Benny Prijono28d3c562012-03-30 07:10:13 +00005223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5224$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005225case $target in
5226 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00005227 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005228
Benny Prijono28d3c562012-03-30 07:10:13 +00005229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5230$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005231 ;;
5232 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00005233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005234/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005235#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005236 #include <sys/socket.h>
5237 #include <netinet/in.h>
5238 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005239int
5240main ()
5241{
5242int i=SO_ERROR;
5243 ;
5244 return 0;
5245}
5246_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005247if ac_fn_c_try_compile "$LINENO"; then :
5248 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005249
Benny Prijono28d3c562012-03-30 07:10:13 +00005250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5251$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005252else
Benny Prijono28d3c562012-03-30 07:10:13 +00005253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005255fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005257 ;;
5258esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005259
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005260
Benny Prijono28d3c562012-03-30 07:10:13 +00005261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5262$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005264/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005265#include <pthread.h>
5266int
5267main ()
5268{
5269pthread_rwlock_t *x;
5270 ;
5271 return 0;
5272}
5273_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005274if ac_fn_c_try_compile "$LINENO"; then :
5275 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005276
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005277 ac_rwmutex="yes"
Benny Prijono28d3c562012-03-30 07:10:13 +00005278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005280else
Benny Prijono28d3c562012-03-30 07:10:13 +00005281 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005282
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005283 ac_rwmutex="no"
Benny Prijono28d3c562012-03-30 07:10:13 +00005284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005286fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005288
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005289if test "$ac_rwmutex" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00005290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5291$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005293/* end confdefs.h. */
5294#define _POSIX_READER_WRITER_LOCKS
5295 #include <pthread.h>
5296int
5297main ()
5298{
5299pthread_rwlock_t *x;
5300 ;
5301 return 0;
5302}
5303_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005304if ac_fn_c_try_compile "$LINENO"; then :
5305 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005306
5307 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono28d3c562012-03-30 07:10:13 +00005308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005310else
Benny Prijono28d3c562012-03-30 07:10:13 +00005311 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005312
Benny Prijono28d3c562012-03-30 07:10:13 +00005313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005315fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317fi
5318
Benny Prijono28d3c562012-03-30 07:10:13 +00005319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5320$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005322/* end confdefs.h. */
5323#include <pthread.h>
5324int
5325main ()
5326{
5327pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5328 ;
5329 return 0;
5330}
5331_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005332if ac_fn_c_try_compile "$LINENO"; then :
5333 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005334
Benny Prijono28d3c562012-03-30 07:10:13 +00005335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005337else
Benny Prijono28d3c562012-03-30 07:10:13 +00005338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005340fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342
Benny Prijono28d3c562012-03-30 07:10:13 +00005343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5344$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005346/* end confdefs.h. */
5347#include <pthread.h>
5348int
5349main ()
5350{
5351pthread_mutexattr_t attr;
5352 attr.recursive=1;
5353 ;
5354 return 0;
5355}
5356_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005357if ac_fn_c_try_compile "$LINENO"; then :
5358 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005359
Benny Prijono28d3c562012-03-30 07:10:13 +00005360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5361$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005362else
Benny Prijono28d3c562012-03-30 07:10:13 +00005363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005365fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005367
Benny Prijono99eec382008-09-18 21:22:16 +00005368
Benny Prijono28d3c562012-03-30 07:10:13 +00005369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5370$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005371# Check whether --enable-epoll was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005372if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005373 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005374 ac_os_objs=ioqueue_epoll.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5376$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005377
5378else
5379
5380 ac_os_objs=ioqueue_select.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5382$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005383
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005384fi
5385
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005386
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005387
5388case $target in
5389 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005390 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 +00005391 ;;
5392 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005393 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 +00005394 case $target in
5395 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +00005396 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005397 ;;
5398 esac
Benny Prijono4e48b512007-05-16 13:41:00 +00005399 # UUID
5400 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5401 ac_os_objs="$ac_os_objs guid_uuid.o"
5402 else
5403 ac_os_objs="$ac_os_objs guid_simple.o"
5404 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005405 ;;
5406esac
5407
Sauw Ming68c14572011-07-20 03:00:48 +00005408case $target in
5409 *darwin*)
5410 ac_os_objs="$ac_os_objs os_core_darwin.o"
5411 ;;
5412esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005413
5414
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005415ac_external_speex=0
5416
5417
5418# Check whether --with-external-speex was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005419if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005420 withval=$with_external_speex;
5421 if test "x$with_external_speex" != "xno"; then
5422 # Test Speex installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5424$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005426/* end confdefs.h. */
5427#include <speex/speex.h>
5428 #include <speex/speex_echo.h>
5429
5430int
5431main ()
5432{
5433speex_echo_state_init(0, 0); speex_encoder_init(0);
5434 ;
5435 return 0;
5436}
5437_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005438if ac_fn_c_try_compile "$LINENO"; then :
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5440$as_echo "yes!!" >&6; }
5441 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005442
5443 ac_external_speex="1"
5444
5445else
Benny Prijono28d3c562012-03-30 07:10:13 +00005446 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 +00005447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 fi
5450
5451
5452fi
5453
5454
5455ac_external_gsm=0
5456
5457
5458# Check whether --with-external-gsm was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005459if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005460 withval=$with_external_gsm;
5461 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005462 # Test GSM library installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5464$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005466/* end confdefs.h. */
5467#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005468int
5469main ()
5470{
5471gsm_create();
5472 ;
5473 return 0;
5474}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005475_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005476if ac_fn_c_try_compile "$LINENO"; then :
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5478$as_echo "yes!!" >&6; }
5479 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005480
Benny Prijono28d3c562012-03-30 07:10:13 +00005481 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005482
5483 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005484
5485else
Benny Prijono46bd0842010-02-12 14:12:41 +00005486
Benny Prijono28d3c562012-03-30 07:10:13 +00005487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488$as_echo "no" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5490$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00005492/* end confdefs.h. */
5493#include <gsm.h>
5494int
5495main ()
5496{
5497gsm_create();
5498 ;
5499 return 0;
5500}
5501_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005502if ac_fn_c_try_compile "$LINENO"; then :
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5504$as_echo "yes!!" >&6; }
5505 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005506
Benny Prijono28d3c562012-03-30 07:10:13 +00005507 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005508
5509 ac_external_gsm="1"
5510
5511else
Benny Prijono28d3c562012-03-30 07:10:13 +00005512 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 +00005513
5514
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005515fi
Benny Prijonod4306432010-05-01 22:05:41 +00005516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005517
Benny Prijonod4306432010-05-01 22:05:41 +00005518
5519fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 fi
5522
5523
5524fi
5525
5526
5527
5528
Benny Prijono4e48b512007-05-16 13:41:00 +00005529
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005530# Check whether --enable-sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005531if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005532 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005533 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5535$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005536 fi
5537
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005538fi
5539
Benny Prijono1d971622006-09-10 22:27:40 +00005540
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005541ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005542
Benny Prijono27c98722007-04-09 21:28:15 +00005543
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005544# Check whether --with-external-pa was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005545if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005546 withval=$with_external_pa;
5547 if test "x$with_external_pa" != "xno"; then
5548 # Test PortAudio installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5550$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005552/* end confdefs.h. */
5553#include <portaudio.h>
5554
5555int
5556main ()
5557{
5558Pa_Initialize();
5559 ;
5560 return 0;
5561}
5562_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005563if ac_fn_c_try_compile "$LINENO"; then :
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5565$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005566 ac_external_pa="1"
5567
5568else
Benny Prijono28d3c562012-03-30 07:10:13 +00005569 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 +00005570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005572 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005573
Benny Prijono27c98722007-04-09 21:28:15 +00005574
5575fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005576
5577
5578
Benny Prijono28d3c562012-03-30 07:10:13 +00005579ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5580if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005581 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5582fi
5583
5584
Benny Prijono28d3c562012-03-30 07:10:13 +00005585ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5586if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005587 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5588fi
5589
5590
Benny Prijono28d3c562012-03-30 07:10:13 +00005591ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5592if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005593 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5594fi
5595
5596
5597
Benny Prijono3e091672008-01-09 15:43:02 +00005598if test "x$ac_cv_c_bigendian" = "xyes"; then
5599 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5600else
5601 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5602fi
5603
Benny Prijono1d971622006-09-10 22:27:40 +00005604if test "$enable_sound" = "no"; then
5605 true;
5606else
5607 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005608 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +00005609 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5611$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005612 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005613 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005614 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5615 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005616 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005617 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5618 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5620$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005621 else
5622 ac_pjmedia_snd=pa_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5624$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005625 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005626 ;;
5627 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005628 ac_pjmedia_snd=pa_win32
Benny Prijono28d3c562012-03-30 07:10:13 +00005629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5630$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005631 ;;
5632 *rtems*)
5633 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5635$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005636 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005637 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005638 ac_pjmedia_snd=pa_unix
Benny Prijono28d3c562012-03-30 07:10:13 +00005639 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5640if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005641 ac_pa_use_alsa=1
5642
5643 LIBS="$LIBS -lasound"
5644
5645else
5646 ac_pa_use_alsa=0
5647
5648fi
5649
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005650
Benny Prijono28d3c562012-03-30 07:10:13 +00005651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5652$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005653
5654 ac_pa_use_oss=1
5655
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005656 # Check whether --enable-oss was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005657if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005658 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005659 if test "$enable_oss" = "no"; then
5660 ac_pa_use_oss=0
Benny Prijono28d3c562012-03-30 07:10:13 +00005661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5662$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005663 fi
5664
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005665fi
5666
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005667 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005668 esac
5669fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005670
Sauw Ming6e6c2152010-12-14 13:03:10 +00005671
5672if test "$enable_video" = "no"; then
5673 true;
5674else
5675 case $target in
5676 arm-apple-darwin*)
5677 ac_pjmedia_video=iphone_os
5678
Sauw Ming24c39a32011-08-16 05:44:46 +00005679
5680 SAVED_LIBS="$LIBS"
5681 LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005683/* end confdefs.h. */
5684
5685int
5686main ()
5687{
5688
5689 ;
5690 return 0;
5691}
5692_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005693if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming24c39a32011-08-16 05:44:46 +00005694 ac_pjmedia_video_has_ios=yes
5695else
Benny Prijono28d3c562012-03-30 07:10:13 +00005696 ac_pjmedia_video_has_ios=no
Sauw Ming24c39a32011-08-16 05:44:46 +00005697fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005698rm -f core conftest.err conftest.$ac_objext \
5699 conftest$ac_exeext conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005700 LIBS="$SAVED_LIBS"
5701 if test "$ac_pjmedia_video_has_ios" = "yes"; then
5702 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
5703 LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
5705$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005706 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
5708$as_echo "Checking if AVFoundation framework is available... no" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005709 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00005710 ;;
5711 *darwin*)
5712 ac_pjmedia_video=mac_os
5713
5714
5715 SAVED_LIBS="$LIBS"
5716 LIBS="-framework QTKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005718/* end confdefs.h. */
5719
5720int
5721main ()
5722{
5723
5724 ;
5725 return 0;
5726}
5727_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005728if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00005729 ac_pjmedia_video_has_qt=yes
5730else
Benny Prijono28d3c562012-03-30 07:10:13 +00005731 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +00005732fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005733rm -f core conftest.err conftest.$ac_objext \
5734 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005735 LIBS="$SAVED_LIBS"
5736 if test "$ac_pjmedia_video_has_qt" = "yes"; then
5737 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Sauw Ming21bd3fd2011-04-06 11:30:18 +00005738 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL"
Benny Prijono28d3c562012-03-30 07:10:13 +00005739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5740$as_echo "Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005741 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5743$as_echo "Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005744 fi
5745 ;;
5746 esac
5747fi
5748
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005749# Check whether --enable-ext_sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005750if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005751 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005752 ac_pjmedia_snd=external
Benny Prijono28d3c562012-03-30 07:10:13 +00005753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5754$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005755 fi
5756
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005757fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005758
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005759
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005760
5761# Check whether --enable-small-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005762if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005763 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005764 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5766$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005767 fi
5768else
Benny Prijono28d3c562012-03-30 07:10:13 +00005769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5770$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005771fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005772
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005773
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005774
5775# Check whether --enable-large-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005776if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005777 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005778 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5780$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005781 fi
5782else
Benny Prijono28d3c562012-03-30 07:10:13 +00005783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5784$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005785fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005786
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005787
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005788
5789# Check whether --enable-speex-aec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005790if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005791 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005792 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5794$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005795 fi
5796else
Benny Prijono28d3c562012-03-30 07:10:13 +00005797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5798$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005799fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005800
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005801
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005802
5803# Check whether --enable-g711-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005804if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005805 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005806 ac_no_g711_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005807 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005808
Benny Prijono28d3c562012-03-30 07:10:13 +00005809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5810$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005811 fi
5812else
Benny Prijono28d3c562012-03-30 07:10:13 +00005813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5814$as_echo "Checking if G.711 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-l16-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005821if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005822 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005823 ac_no_l16_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005824 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005825
Benny Prijono28d3c562012-03-30 07:10:13 +00005826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5827$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005828 fi
5829else
Benny Prijono28d3c562012-03-30 07:10:13 +00005830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5831$as_echo "Checking if L16 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
5835
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005836
5837# Check whether --enable-gsm-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005838if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005839 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005840 ac_no_gsm_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005841 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005842
Benny Prijono28d3c562012-03-30 07:10:13 +00005843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5844$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005845 fi
5846else
Benny Prijono28d3c562012-03-30 07:10:13 +00005847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5848$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005849fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005850
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005851
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005852
5853# Check whether --enable-g722-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005854if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005855 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005856 ac_no_g722_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005857 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005858
Benny Prijono28d3c562012-03-30 07:10:13 +00005859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5860$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005861 fi
5862else
Benny Prijono28d3c562012-03-30 07:10:13 +00005863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5864$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005865fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005866
5867
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005868
5869# Check whether --enable-g7221-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005870if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005871 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5872 ac_no_g7221_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005873 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005874
Benny Prijono28d3c562012-03-30 07:10:13 +00005875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5876$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005877 fi
5878else
Benny Prijono28d3c562012-03-30 07:10:13 +00005879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5880$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005881fi
5882
5883
5884
5885# Check whether --enable-speex-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005886if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005887 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005888 ac_no_speex_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005889 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005890
Benny Prijono28d3c562012-03-30 07:10:13 +00005891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5892$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005893 fi
5894else
Benny Prijono28d3c562012-03-30 07:10:13 +00005895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5896$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005897fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005898
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005899
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005900
5901# Check whether --enable-ilbc-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005902if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005903 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005904 ac_no_ilbc_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005905 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005906
Benny Prijono28d3c562012-03-30 07:10:13 +00005907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5908$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005909 fi
5910else
Benny Prijono28d3c562012-03-30 07:10:13 +00005911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5912$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005913fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005914
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005915
5916# Check whether --enable-libsamplerate was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005917if test "${enable_libsamplerate+set}" = set; then :
5918 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5919$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5920if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005922else
5923 ac_check_lib_save_LIBS=$LIBS
5924LIBS="-lsamplerate $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00005925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005926/* end confdefs.h. */
5927
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005928/* Override any GCC internal prototype to avoid an error.
5929 Use char because int might match the return type of a GCC
5930 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005931#ifdef __cplusplus
5932extern "C"
5933#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005934char src_new ();
5935int
5936main ()
5937{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005938return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005939 ;
5940 return 0;
5941}
5942_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005943if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005944 ac_cv_lib_samplerate_src_new=yes
5945else
Benny Prijono28d3c562012-03-30 07:10:13 +00005946 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005947fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005948rm -f core conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005950LIBS=$ac_check_lib_save_LIBS
5951fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
5953$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
5954if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005955 cat >>confdefs.h <<_ACEOF
5956#define HAVE_LIBSAMPLERATE 1
5957_ACEOF
5958
5959 LIBS="-lsamplerate $LIBS"
5960
5961fi
5962
5963else
Benny Prijono28d3c562012-03-30 07:10:13 +00005964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
5965$as_echo "Skipping libsamplerate detection" >&6; }
5966
5967fi
5968
5969
5970
5971# Check whether --enable-resample_dll was given.
5972if test "${enable_resample_dll+set}" = set; then :
5973 enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
5974 ac_resample_dll=1
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
5976$as_echo "Building libresample as shared library... yes" >&6; }
5977 fi
5978else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
5980$as_echo "Building libresample as shared library... no" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00005981
5982fi
5983
5984
5985
5986# Check whether --with-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005987if test "${with_sdl+set}" = set; then :
Benny Prijono5b0af632011-07-20 03:16:25 +00005988 withval=$with_sdl;
5989else
5990 with_sdl=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005991
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005992fi
Benny Prijono0822c192008-08-21 20:59:58 +00005993
5994
Benny Prijonoc45d9512010-12-10 11:04:30 +00005995# Check whether --enable-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005996if test "${enable_sdl+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00005997 enableval=$enable_sdl;
5998 if test "$enable_sdl" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00005999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
6000$as_echo "Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006001 fi
6002
6003else
6004
Benny Prijono5b0af632011-07-20 03:16:25 +00006005 SDL_CONFIG="sdl-config"
6006 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
6007 SDL_CONFIG=$with_sdl/bin/sdl-config
Benny Prijono28d3c562012-03-30 07:10:13 +00006008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6009$as_echo "Using SDL prefix... $with_sdl" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00006010 fi
6011
Benny Prijono28d3c562012-03-30 07:10:13 +00006012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5
6013$as_echo_n "checking SDL availability..... " >&6; }
Sauw Ming1d8ceb12011-08-24 05:54:25 +00006014 if (sh -c "$SDL_CONFIG --version" | grep 1.3) then
Benny Prijonoc45d9512010-12-10 11:04:30 +00006015
6016
Benny Prijono5b0af632011-07-20 03:16:25 +00006017 ac_sdl_cflags=`$SDL_CONFIG --cflags`
Benny Prijonoc45d9512010-12-10 11:04:30 +00006018 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
Benny Prijono5b0af632011-07-20 03:16:25 +00006019 ac_sdl_ldflags=`$SDL_CONFIG --libs`
Benny Prijono69b1f822010-12-10 11:33:01 +00006020 LIBS="$LIBS $ac_sdl_ldflags"
Sauw Ming1d8ceb12011-08-24 05:54:25 +00006021 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6023$as_echo "Unsupported SDL version" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006024 fi
Benny Prijono550a1a62007-10-16 08:54:00 +00006025
Benny Prijono0822c192008-08-21 20:59:58 +00006026fi
6027
6028
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006029
Benny Prijonoc45d9512010-12-10 11:04:30 +00006030# Check whether --enable-ffmpeg was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006031if test "${enable_ffmpeg+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006032 enableval=$enable_ffmpeg;
6033 ac_has_ffmpeg=0
6034
6035 if test "$enable_ffmpeg" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6037$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006038 fi
6039
6040else
6041
6042
6043
6044
Benny Prijono28d3c562012-03-30 07:10:13 +00006045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
6046$as_echo_n "checking for deflate in -lz... " >&6; }
6047if test "${ac_cv_lib_z_deflate+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006049else
6050 ac_check_lib_save_LIBS=$LIBS
6051LIBS="-lz $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006053/* end confdefs.h. */
6054
6055/* Override any GCC internal prototype to avoid an error.
6056 Use char because int might match the return type of a GCC
6057 builtin and then its argument prototype would still apply. */
6058#ifdef __cplusplus
6059extern "C"
6060#endif
6061char deflate ();
6062int
6063main ()
6064{
6065return deflate ();
6066 ;
6067 return 0;
6068}
6069_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006070if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006071 ac_cv_lib_z_deflate=yes
6072else
Benny Prijono28d3c562012-03-30 07:10:13 +00006073 ac_cv_lib_z_deflate=no
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006074fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006075rm -f core conftest.err conftest.$ac_objext \
6076 conftest$ac_exeext conftest.$ac_ext
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006077LIBS=$ac_check_lib_save_LIBS
6078fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
6080$as_echo "$ac_cv_lib_z_deflate" >&6; }
6081if test "x$ac_cv_lib_z_deflate" = x""yes; then :
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006082 cat >>confdefs.h <<_ACEOF
6083#define HAVE_LIBZ 1
6084_ACEOF
6085
6086 LIBS="-lz $LIBS"
6087
6088fi
6089
Benny Prijono28d3c562012-03-30 07:10:13 +00006090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x264_free in -lx264" >&5
6091$as_echo_n "checking for x264_free in -lx264... " >&6; }
6092if test "${ac_cv_lib_x264_x264_free+set}" = set; then :
6093 $as_echo_n "(cached) " >&6
Benny Prijonoe1105232011-10-26 06:49:34 +00006094else
6095 ac_check_lib_save_LIBS=$LIBS
6096LIBS="-lx264 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoe1105232011-10-26 06:49:34 +00006098/* end confdefs.h. */
6099
6100/* Override any GCC internal prototype to avoid an error.
6101 Use char because int might match the return type of a GCC
6102 builtin and then its argument prototype would still apply. */
6103#ifdef __cplusplus
6104extern "C"
6105#endif
6106char x264_free ();
6107int
6108main ()
6109{
6110return x264_free ();
6111 ;
6112 return 0;
6113}
6114_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006115if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoe1105232011-10-26 06:49:34 +00006116 ac_cv_lib_x264_x264_free=yes
6117else
Benny Prijono28d3c562012-03-30 07:10:13 +00006118 ac_cv_lib_x264_x264_free=no
Benny Prijonoe1105232011-10-26 06:49:34 +00006119fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006120rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoe1105232011-10-26 06:49:34 +00006122LIBS=$ac_check_lib_save_LIBS
6123fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_x264_x264_free" >&5
6125$as_echo "$ac_cv_lib_x264_x264_free" >&6; }
6126if test "x$ac_cv_lib_x264_x264_free" = x""yes; then :
Benny Prijonoe1105232011-10-26 06:49:34 +00006127 cat >>confdefs.h <<_ACEOF
6128#define HAVE_LIBX264 1
6129_ACEOF
6130
6131 LIBS="-lx264 $LIBS"
6132
6133fi
6134
Benny Prijono6a0a49a2011-10-18 11:17:23 +00006135
Benny Prijono28d3c562012-03-30 07:10:13 +00006136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
6137$as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
6138if test "${ac_cv_lib_bz2_BZ2_bzDecompressInit+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
Benny Prijono36d32492011-12-28 08:42:23 +00006140else
6141 ac_check_lib_save_LIBS=$LIBS
6142LIBS="-lbz2 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00006144/* end confdefs.h. */
6145
6146/* Override any GCC internal prototype to avoid an error.
6147 Use char because int might match the return type of a GCC
6148 builtin and then its argument prototype would still apply. */
6149#ifdef __cplusplus
6150extern "C"
6151#endif
6152char BZ2_bzDecompressInit ();
6153int
6154main ()
6155{
6156return BZ2_bzDecompressInit ();
6157 ;
6158 return 0;
6159}
6160_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006161if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00006162 ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
6163else
Benny Prijono28d3c562012-03-30 07:10:13 +00006164 ac_cv_lib_bz2_BZ2_bzDecompressInit=no
Benny Prijono36d32492011-12-28 08:42:23 +00006165fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006166rm -f core conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00006168LIBS=$ac_check_lib_save_LIBS
6169fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
6171$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
6172if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = x""yes; then :
Benny Prijono36d32492011-12-28 08:42:23 +00006173 cat >>confdefs.h <<_ACEOF
6174#define HAVE_LIBBZ2 1
6175_ACEOF
6176
6177 LIBS="-lbz2 $LIBS"
6178
6179fi
6180
6181
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006182 FFMPEG_PREFIX=""
6183 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6184 FFMPEG_PREFIX=$with_ffmpeg
Benny Prijono28d3c562012-03-30 07:10:13 +00006185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6186$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006187 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
Sauw Ming01095d82011-07-14 08:46:19 +00006188 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006189 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
6190 fi
6191
Benny Prijono28d3c562012-03-30 07:10:13 +00006192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
6193$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
6194if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006196else
6197 ac_check_lib_save_LIBS=$LIBS
6198LIBS="-lavdevice $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006200/* end confdefs.h. */
6201
6202/* Override any GCC internal prototype to avoid an error.
6203 Use char because int might match the return type of a GCC
6204 builtin and then its argument prototype would still apply. */
6205#ifdef __cplusplus
6206extern "C"
6207#endif
6208char avdevice_version ();
6209int
6210main ()
6211{
6212return avdevice_version ();
6213 ;
6214 return 0;
6215}
6216_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006217if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006218 ac_cv_lib_avdevice_avdevice_version=yes
6219else
Benny Prijono28d3c562012-03-30 07:10:13 +00006220 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006221fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006222rm -f core conftest.err conftest.$ac_objext \
6223 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006224LIBS=$ac_check_lib_save_LIBS
6225fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6227$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
6228if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006229 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6230 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
6231
6232
6233fi
6234
Benny Prijono28d3c562012-03-30 07:10:13 +00006235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6236$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
6237if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then :
6238 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006239else
6240 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006241LIBS="-lavformat -lavcodec -lavutil
6242 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006244/* end confdefs.h. */
6245
6246/* Override any GCC internal prototype to avoid an error.
6247 Use char because int might match the return type of a GCC
6248 builtin and then its argument prototype would still apply. */
6249#ifdef __cplusplus
6250extern "C"
6251#endif
6252char av_register_all ();
6253int
6254main ()
6255{
6256return av_register_all ();
6257 ;
6258 return 0;
6259}
6260_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006261if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006262 ac_cv_lib_avformat_av_register_all=yes
6263else
Benny Prijono28d3c562012-03-30 07:10:13 +00006264 ac_cv_lib_avformat_av_register_all=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006265fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006266rm -f core conftest.err conftest.$ac_objext \
6267 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006268LIBS=$ac_check_lib_save_LIBS
6269fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6271$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
6272if test "x$ac_cv_lib_avformat_av_register_all" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006273 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6274 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6275
Benny Prijonoc45d9512010-12-10 11:04:30 +00006276fi
6277
Benny Prijono28d3c562012-03-30 07:10:13 +00006278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6279$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
6280if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006282else
6283 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006284LIBS="-lavcodec -lavutil
6285 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006287/* end confdefs.h. */
6288
6289/* Override any GCC internal prototype to avoid an error.
6290 Use char because int might match the return type of a GCC
6291 builtin and then its argument prototype would still apply. */
6292#ifdef __cplusplus
6293extern "C"
6294#endif
6295char avcodec_init ();
6296int
6297main ()
6298{
6299return avcodec_init ();
6300 ;
6301 return 0;
6302}
6303_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006304if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006305 ac_cv_lib_avcodec_avcodec_init=yes
6306else
Benny Prijono28d3c562012-03-30 07:10:13 +00006307 ac_cv_lib_avcodec_avcodec_init=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006308fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006309rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006311LIBS=$ac_check_lib_save_LIBS
6312fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6314$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
6315if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006316 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6317 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6318
Benny Prijonoc45d9512010-12-10 11:04:30 +00006319fi
6320
Benny Prijono28d3c562012-03-30 07:10:13 +00006321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6322$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
6323if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006325else
6326 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006327LIBS="-lswscale -lavutil
6328 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006330/* end confdefs.h. */
6331
6332/* Override any GCC internal prototype to avoid an error.
6333 Use char because int might match the return type of a GCC
6334 builtin and then its argument prototype would still apply. */
6335#ifdef __cplusplus
6336extern "C"
6337#endif
6338char sws_scale ();
6339int
6340main ()
6341{
6342return sws_scale ();
6343 ;
6344 return 0;
6345}
6346_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006347if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006348 ac_cv_lib_swscale_sws_scale=yes
6349else
Benny Prijono28d3c562012-03-30 07:10:13 +00006350 ac_cv_lib_swscale_sws_scale=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006351fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006352rm -f core conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006354LIBS=$ac_check_lib_save_LIBS
6355fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6357$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
6358if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006359 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6360 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6361
Benny Prijonoc45d9512010-12-10 11:04:30 +00006362fi
6363
Benny Prijono28d3c562012-03-30 07:10:13 +00006364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
6365$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
6366if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006368else
6369 ac_check_lib_save_LIBS=$LIBS
6370LIBS="-lavutil $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006372/* end confdefs.h. */
6373
6374/* Override any GCC internal prototype to avoid an error.
6375 Use char because int might match the return type of a GCC
6376 builtin and then its argument prototype would still apply. */
6377#ifdef __cplusplus
6378extern "C"
6379#endif
6380char av_malloc ();
6381int
6382main ()
6383{
6384return av_malloc ();
6385 ;
6386 return 0;
6387}
6388_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006389if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006390 ac_cv_lib_avutil_av_malloc=yes
6391else
Benny Prijono28d3c562012-03-30 07:10:13 +00006392 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006393fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006394rm -f core conftest.err conftest.$ac_objext \
6395 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006396LIBS=$ac_check_lib_save_LIBS
6397fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6399$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
6400if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006401 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6402 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
6403
6404
6405fi
6406
Benny Prijono28d3c562012-03-30 07:10:13 +00006407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
6408$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
6409if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then :
6410 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006411else
6412 ac_check_lib_save_LIBS=$LIBS
6413LIBS="-lavcore $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006415/* end confdefs.h. */
6416
6417/* Override any GCC internal prototype to avoid an error.
6418 Use char because int might match the return type of a GCC
6419 builtin and then its argument prototype would still apply. */
6420#ifdef __cplusplus
6421extern "C"
6422#endif
6423char avcore_version ();
6424int
6425main ()
6426{
6427return avcore_version ();
6428 ;
6429 return 0;
6430}
6431_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006432if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006433 ac_cv_lib_avcore_avcore_version=yes
6434else
Benny Prijono28d3c562012-03-30 07:10:13 +00006435 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006436fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006437rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006439LIBS=$ac_check_lib_save_LIBS
6440fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6442$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
6443if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006444 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6445 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
6446
6447
6448fi
6449
Benny Prijono69b1f822010-12-10 11:33:01 +00006450 LIBS="$LIBS $ac_ffmpeg_ldflags"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006451
6452
6453fi
6454
6455
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006456
6457# Check whether --with-ffmpeg was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006458if test "${with_ffmpeg+set}" = set; then :
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006459 withval=$with_ffmpeg;
6460else
6461 with_ffmpeg=no
6462
6463fi
6464
6465
6466
Benny Prijonoc45d9512010-12-10 11:04:30 +00006467# Check whether --enable-v4l2 was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006468if test "${enable_v4l2+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006469 enableval=$enable_v4l2;
6470 if test "$enable_v4l2" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6472$as_echo "Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006473 fi
6474
6475else
6476
6477
6478
Benny Prijono28d3c562012-03-30 07:10:13 +00006479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6480$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
6481if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006483else
6484 ac_check_lib_save_LIBS=$LIBS
6485LIBS="-lv4l2 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006487/* end confdefs.h. */
6488
6489/* Override any GCC internal prototype to avoid an error.
6490 Use char because int might match the return type of a GCC
6491 builtin and then its argument prototype would still apply. */
6492#ifdef __cplusplus
6493extern "C"
6494#endif
6495char v4l2_open ();
6496int
6497main ()
6498{
6499return v4l2_open ();
6500 ;
6501 return 0;
6502}
6503_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006504if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006505 ac_cv_lib_v4l2_v4l2_open=yes
6506else
Benny Prijono28d3c562012-03-30 07:10:13 +00006507 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006508fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006509rm -f core conftest.err conftest.$ac_objext \
6510 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006511LIBS=$ac_check_lib_save_LIBS
6512fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6514$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
6515if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006516 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6517 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +00006518 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006519
6520
6521fi
6522
6523
6524fi
6525
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006526
6527# Check whether --enable-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006528if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006529 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006530else
6531 enable_ipp=no
6532
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006533fi
Benny Prijono0822c192008-08-21 20:59:58 +00006534
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006535
Benny Prijono3965f192010-02-10 18:46:05 +00006536
6537# Check whether --with-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006538if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006539 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006540else
6541 with_ipp=no
6542
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006543fi
Benny Prijono0822c192008-08-21 20:59:58 +00006544
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006545
Benny Prijono3965f192010-02-10 18:46:05 +00006546
6547# Check whether --with-ipp-samples was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006548if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006549 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00006550else
6551 with_ipp_samples=no
6552
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006553fi
6554
Benny Prijono0822c192008-08-21 20:59:58 +00006555
Benny Prijono3965f192010-02-10 18:46:05 +00006556
6557# Check whether --with-ipp-arch was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006558if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006559 withval=$with_ipp_arch;
6560else
6561 with_ipp_arch=no
6562
6563fi
6564
6565
Benny Prijono0822c192008-08-21 20:59:58 +00006566if test "x$enable_ipp" != "xno"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6568$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006569
6570 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6572$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006573 IPPROOT=$with_ipp
6574 elif test "x$IPPROOT" = "x"; then
6575 if test -d /opt/intel/ipp; then
6576 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijono28d3c562012-03-30 07:10:13 +00006577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6578$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006579 fi
6580 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6582$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006583 fi
6584
Benny Prijono3965f192010-02-10 18:46:05 +00006585 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00006586 IPP_SUFFIX=$with_ipp_arch
Benny Prijono28d3c562012-03-30 07:10:13 +00006587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6588$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006589 else
6590 IPP_SUFFIX=""
Benny Prijono28d3c562012-03-30 07:10:13 +00006591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6592$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006593 fi
6594
Benny Prijono0822c192008-08-21 20:59:58 +00006595 if test x$IPPROOT = x; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006596 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 +00006597 elif test ! -d $IPPROOT; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006598 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006599 elif test ! -d $IPPROOT/include; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006600 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006601 else
6602 # IPP directory looks okay.
6603 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00006604 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00006605
6606 SAVED_CFLAGS="$CFLAGS"
6607 SAVED_LDFLAGS="$LDFLAGS"
6608 SAVED_LIBS="$LIBS"
6609
6610 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006611 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +00006612
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006613#
Benny Prijono46bd0842010-02-12 14:12:41 +00006614 # Some differences between Mac OS X and Linux
6615 case $target in
6616 *darwin* )
6617 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6618 ;;
6619 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006620 # Find out where the libraries live.
6621 IPP7_ARCH=""
6622 if test -d $IPPROOT/lib/intel64; then
6623 IPP7_ARCH="intel64"
6624 elif test -d $IPPROOT/lib/ia32; then
6625 IPP7_ARCH="ia32"
6626 elif test -d $IPPROOT/lib/mic; then
6627 IPP7_ARCH="mic"
6628 fi
6629
6630 if test -z "$IPP7_ARCH"; then
6631 # IPP6 (and possibly below)
6632 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6633 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
6634 else
6635 # IPP7
6636 if ! test -d $IPPROOT/../compiler; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006637 as_fn_error "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006638 fi
6639 IPP_CFLAGS="$IPP_CFLAGS"
6640 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6641 IPP_LIBS="$IPP_LIBS -liomp5"
6642 fi
Benny Prijono46bd0842010-02-12 14:12:41 +00006643 ;;
6644 esac
6645
Benny Prijono0822c192008-08-21 20:59:58 +00006646 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00006647 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00006648 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6649
6650 CFLAGS="$CFLAGS $IPP_CFLAGS"
6651 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6652 LIBS="$IPP_LIBS $LIBS"
6653
6654
Benny Prijono28d3c562012-03-30 07:10:13 +00006655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6656$as_echo_n "checking Intel IPP usability... " >&6; }
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006658/* end confdefs.h. */
6659#include <ippcore.h>
6660
6661int
6662main ()
6663{
6664ippStaticInit();
6665 ;
6666 return 0;
6667}
6668_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006669if ac_fn_c_try_link "$LINENO"; then :
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6671$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006672else
Benny Prijono28d3c562012-03-30 07:10:13 +00006673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6675{ as_fn_set_status run with --help for more info
6676as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
6677See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00006678fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006679rm -f core conftest.err conftest.$ac_objext \
6680 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006681
6682 CFLAGS="$SAVED_CFLAGS"
6683 LDFLAGS="$SAVED_LDFLAGS"
6684 LIBS="$SAVED_LIBS"
6685 fi
6686
Benny Prijono28d3c562012-03-30 07:10:13 +00006687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6688$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006689
6690 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6692$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006693 IPPSAMPLES=$with_ipp_samples
6694 elif test "x$IPPSAMPLES" = "x"; then
6695 if test -d /opt/intel/ipp-samples; then
6696 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijono28d3c562012-03-30 07:10:13 +00006697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6698$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006699 fi
6700 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6702$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006703 fi
6704
6705 if test x$IPPSAMPLES = x; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006706 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 +00006707 elif test ! -d $IPPSAMPLES; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006708 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006709 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006710 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006711 else
6712 # Remove trailing backslash
6713 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6714
Benny Prijono3965f192010-02-10 18:46:05 +00006715 # Guess the libusc.a/libspeech.a build location
Benny Prijono28d3c562012-03-30 07:10:13 +00006716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6717$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006718 if test -d $IPPSAMPLES/speech-codecs/bin; then
6719 IPPVER=5
6720 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6721 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6722 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00006723 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6724 # gcc compiler
6725 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6726 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6727 # icc compiler
6728 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6729 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6732as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6733See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006734 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006735 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6738as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6739See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006740 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006741
6742 # Test the directory
6743 if test ! -d $IPPSAMP_DIR; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6746as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6747See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006748 exit 1;
6749 fi
6750
6751 if test "x$IPPVER" = "x5"; then
6752 IPPSAMP_LIBS="libusc.a"
6753 IPPSAMP_LDLIBS="-lusc"
6754 elif test "x$IPPVER" = "x6"; then
6755 IPPSAMP_LIBS="libspeech.a"
6756 IPPSAMP_LDLIBS="-lspeech"
6757 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6760as_fn_error "bug in this script: unsupported IPP version
6761See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006762 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006763
6764 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6767as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6768See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006769 fi
6770
Benny Prijono28d3c562012-03-30 07:10:13 +00006771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6772$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006773
6774 SAVED_CFLAGS="$CFLAGS"
6775 SAVED_LDFLAGS="$LDFLAGS"
6776 SAVED_LIBS="$LIBS"
6777
Benny Prijono3965f192010-02-10 18:46:05 +00006778 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6779 CFLAGS="$CFLAGS $IPPSAMP_INC"
6780 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6781 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006782
Benny Prijono28d3c562012-03-30 07:10:13 +00006783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6784$as_echo_n "checking Intel IPP USC usability... " >&6; }
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006786/* end confdefs.h. */
6787#include <usc.h>
6788
6789int
6790main ()
6791{
6792extern USC_Fxns USC_G729AFP_Fxns;
6793 ;
6794 return 0;
6795}
6796_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006797if ac_fn_c_try_link "$LINENO"; then :
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6799$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006800else
Benny Prijono28d3c562012-03-30 07:10:13 +00006801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6803as_fn_error "failed
6804See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006805fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006806rm -f core conftest.err conftest.$ac_objext \
6807 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006808
6809 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006810 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6811 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006812
Benny Prijono3965f192010-02-10 18:46:05 +00006813 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6814 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6815 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006816 fi
6817
Benny Prijono3965f192010-02-10 18:46:05 +00006818 CFLAGS="$CFLAGS $IPP_CFLAGS"
6819 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6820 LIBS="$LIBS $IPP_LIBS"
6821
Benny Prijono0822c192008-08-21 20:59:58 +00006822 ac_build_mak_vars="$ac_build_mak_vars\n\
6823export IPP_CFLAGS=$IPP_CFLAGS\n\
6824export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6825export IPP_LIBS=$IPP_LIBS"
6826else
Benny Prijono28d3c562012-03-30 07:10:13 +00006827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6828$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006829fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006830
6831
6832
6833
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006834# Check whether --enable-ssl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006835if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006836 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006837 if test "$enable_ssl" = "no"; then
6838 ac_no_ssl=1
Benny Prijono28d3c562012-03-30 07:10:13 +00006839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6840$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006841 fi
6842
6843else
6844
Benny Prijono28d3c562012-03-30 07:10:13 +00006845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6846$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006847
6848
6849
Benny Prijono28d3c562012-03-30 07:10:13 +00006850 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
6851if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006852 openssl_h_present=1
6853fi
6854
6855
Benny Prijono28d3c562012-03-30 07:10:13 +00006856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
6857$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
6858if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006860else
6861 ac_check_lib_save_LIBS=$LIBS
6862LIBS="-lcrypto $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006864/* end confdefs.h. */
6865
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006866/* Override any GCC internal prototype to avoid an error.
6867 Use char because int might match the return type of a GCC
6868 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006869#ifdef __cplusplus
6870extern "C"
6871#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006872char ERR_load_BIO_strings ();
6873int
6874main ()
6875{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006876return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006877 ;
6878 return 0;
6879}
6880_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006881if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006882 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6883else
Benny Prijono28d3c562012-03-30 07:10:13 +00006884 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006885fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006886rm -f core conftest.err conftest.$ac_objext \
6887 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006888LIBS=$ac_check_lib_save_LIBS
6889fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6891$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
6892if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006893 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6894fi
6895
Benny Prijono28d3c562012-03-30 07:10:13 +00006896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6897$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6898if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006900else
6901 ac_check_lib_save_LIBS=$LIBS
6902LIBS="-lssl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006904/* end confdefs.h. */
6905
6906/* Override any GCC internal prototype to avoid an error.
6907 Use char because int might match the return type of a GCC
6908 builtin and then its argument prototype would still apply. */
6909#ifdef __cplusplus
6910extern "C"
6911#endif
6912char SSL_library_init ();
6913int
6914main ()
6915{
6916return SSL_library_init ();
6917 ;
6918 return 0;
6919}
6920_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006921if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006922 ac_cv_lib_ssl_SSL_library_init=yes
6923else
Benny Prijono28d3c562012-03-30 07:10:13 +00006924 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006925fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006926rm -f core conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006928LIBS=$ac_check_lib_save_LIBS
6929fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6931$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6932if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006933 libssl_present=1 && LIBS="$LIBS -lssl"
6934fi
6935
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006936 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
6938$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00006939 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
6940 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijono28d3c562012-03-30 07:10:13 +00006941 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00006942
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006943 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
6945$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006946 fi
6947
6948fi
6949
6950
6951
6952# Check whether --enable-opencore_amrnb was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006953if test "${enable_opencore_amrnb+set}" = set; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006954 enableval=$enable_opencore_amrnb;
6955 if test "$enable_opencore_amrnb" = "no"; then
6956 ac_no_opencore_amrnb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00006957 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00006958
Benny Prijono28d3c562012-03-30 07:10:13 +00006959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
6960$as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006961 fi
6962
6963else
6964
Benny Prijono28d3c562012-03-30 07:10:13 +00006965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5
6966$as_echo "checking for OpenCORE AMR-NB installations.." >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006967
6968
Benny Prijono28d3c562012-03-30 07:10:13 +00006969 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
6970if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = x""yes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006971 opencore_amrnb_h_present=1
6972fi
6973
6974
Benny Prijono28d3c562012-03-30 07:10:13 +00006975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
6976$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
6977if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
Sauw Minge7dbbc82011-10-24 09:28:13 +00006979else
6980 ac_check_lib_save_LIBS=$LIBS
6981LIBS="-lopencore-amrnb $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00006983/* end confdefs.h. */
6984
6985/* Override any GCC internal prototype to avoid an error.
6986 Use char because int might match the return type of a GCC
6987 builtin and then its argument prototype would still apply. */
6988#ifdef __cplusplus
6989extern "C"
6990#endif
6991char Encoder_Interface_init ();
6992int
6993main ()
6994{
6995return Encoder_Interface_init ();
6996 ;
6997 return 0;
6998}
6999_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007000if ac_fn_c_try_link "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007001 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
7002else
Benny Prijono28d3c562012-03-30 07:10:13 +00007003 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
Sauw Minge7dbbc82011-10-24 09:28:13 +00007004fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007005rm -f core conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00007007LIBS=$ac_check_lib_save_LIBS
7008fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
7010$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
7011if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = x""yes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007012 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
7013fi
7014
7015 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
7017$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
7018 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007019
7020 else
7021 ac_no_opencore_amrnb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00007022 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007023
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007024 fi
7025
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007026fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007027
7028
7029
7030
Benny Prijono28d3c562012-03-30 07:10:13 +00007031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
7032$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007033case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007034 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007035
Benny Prijono28d3c562012-03-30 07:10:13 +00007036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7037$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007038 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007039 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007040
Benny Prijono28d3c562012-03-30 07:10:13 +00007041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7042$as_echo "no (default)" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7044$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007045 ;;
7046esac
7047
Benny Prijono28d3c562012-03-30 07:10:13 +00007048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
7049$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007050case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007051 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007052
Benny Prijono28d3c562012-03-30 07:10:13 +00007053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7054$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007055 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007056 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007057
Benny Prijono28d3c562012-03-30 07:10:13 +00007058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7059$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007060 ;;
7061esac
7062
Benny Prijono28d3c562012-03-30 07:10:13 +00007063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
7064$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007065case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007066 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007067
Benny Prijono28d3c562012-03-30 07:10:13 +00007068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7069$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007070 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007071 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007072
Benny Prijono28d3c562012-03-30 07:10:13 +00007073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7074$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007075 ;;
7076esac
7077
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007078case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007079 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007080 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007081
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007082 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007083 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007084
Benny Prijono28d3c562012-03-30 07:10:13 +00007085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7086$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007087 ;;
7088esac
7089
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007090case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007091 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007092 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007093
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007094 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007095 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007096
Benny Prijono28d3c562012-03-30 07:10:13 +00007097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7098$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007099 ;;
7100esac
7101
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007102
7103
7104
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007105if test "$build" = "$host"; then
7106 ac_cross_compile=
7107else
Benny Prijono5b818b22006-09-17 22:58:51 +00007108 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007109fi
7110ac_linux_poll=select
7111
7112ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007113
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007114
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007115case $target in
7116 *rtems*)
7117 ac_main_obj=main_rtems.o
7118 ;;
7119 *)
7120 ac_main_obj=main.o
7121 ;;
7122esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007123
Benny Prijono0822c192008-08-21 20:59:58 +00007124
7125ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007126cat >confcache <<\_ACEOF
7127# This file is a shell script that caches the results of configure
7128# tests run on this system so they can be shared between configure
7129# scripts and configure runs, see configure's option --config-cache.
7130# It is not useful on other systems. If it contains results you don't
7131# want to keep, you may remove or edit it.
7132#
7133# config.status only pays attention to the cache file if you give it
7134# the --recheck option to rerun configure.
7135#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007136# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007137# loading this file, other *unset* `ac_cv_foo' will be assigned the
7138# following values.
7139
7140_ACEOF
7141
7142# The following way of writing the cache mishandles newlines in values,
7143# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007144# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007145# Ultrix sh set writes to stderr and can't be redirected directly,
7146# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007147(
7148 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7149 eval ac_val=\$$ac_var
7150 case $ac_val in #(
7151 *${as_nl}*)
7152 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007153 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7154$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007155 esac
7156 case $ac_var in #(
7157 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7159 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007160 esac ;;
7161 esac
7162 done
7163
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007164 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007165 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7166 *${as_nl}ac_space=\ *)
Benny Prijono28d3c562012-03-30 07:10:13 +00007167 # `set' does not quote correctly, so add quotes: double-quote
7168 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007169 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007170 "s/'/'\\\\''/g;
7171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007172 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007173 *)
7174 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007176 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007177 esac |
7178 sort
7179) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007180 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007181 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007182 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007183 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7185 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007186 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7187 :end' >>confcache
7188if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7189 if test -w "$cache_file"; then
7190 test "x$cache_file" != "x/dev/null" &&
Benny Prijono28d3c562012-03-30 07:10:13 +00007191 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7192$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007193 cat confcache >$cache_file
7194 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007195 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7196$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007197 fi
7198fi
7199rm -f confcache
7200
7201test "x$prefix" = xNONE && prefix=$ac_default_prefix
7202# Let make expand exec_prefix.
7203test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7204
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007205DEFS=-DHAVE_CONFIG_H
7206
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007207ac_libobjs=
7208ac_ltlibobjs=
7209for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7210 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007211 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijono28d3c562012-03-30 07:10:13 +00007212 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007213 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7214 # will be set to the directory where LIBOBJS objects are built.
Benny Prijono28d3c562012-03-30 07:10:13 +00007215 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7216 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007217done
7218LIBOBJS=$ac_libobjs
7219
7220LTLIBOBJS=$ac_ltlibobjs
7221
7222
7223
Benny Prijono28d3c562012-03-30 07:10:13 +00007224
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007225: ${CONFIG_STATUS=./config.status}
Benny Prijono28d3c562012-03-30 07:10:13 +00007226ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007227ac_clean_files_save=$ac_clean_files
7228ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007229{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7230$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7231as_write_fail=0
7232cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007233#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007234# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007235# Run this file to recreate the current configuration.
7236# Compiler output produced by configure, useful for debugging
7237# configure, is in config.log if it exists.
7238
7239debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007240ac_cs_recheck=false
7241ac_cs_silent=false
Benny Prijono36d32492011-12-28 08:42:23 +00007242
Benny Prijono28d3c562012-03-30 07:10:13 +00007243SHELL=\${CONFIG_SHELL-$SHELL}
7244export SHELL
7245_ASEOF
7246cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7247## -------------------- ##
7248## M4sh Initialization. ##
7249## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007250
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007251# Be more Bourne compatible
7252DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono28d3c562012-03-30 07:10:13 +00007253if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007254 emulate sh
7255 NULLCMD=:
Benny Prijono28d3c562012-03-30 07:10:13 +00007256 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007257 # is contrary to our usage. Disable this feature.
7258 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007259 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00007260else
Benny Prijono28d3c562012-03-30 07:10:13 +00007261 case `(set -o) 2>/dev/null` in #(
7262 *posix*) :
7263 set -o posix ;; #(
7264 *) :
7265 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007266esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007267fi
7268
7269
Benny Prijono28d3c562012-03-30 07:10:13 +00007270as_nl='
7271'
7272export as_nl
7273# Printing a long string crashes Solaris 7 /usr/bin/printf.
7274as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7275as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7276as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7277# Prefer a ksh shell builtin over an external printf program on Solaris,
7278# but without wasting forks for bash or zsh.
7279if test -z "$BASH_VERSION$ZSH_VERSION" \
7280 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7281 as_echo='print -r --'
7282 as_echo_n='print -rn --'
7283elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7284 as_echo='printf %s\n'
7285 as_echo_n='printf %s'
7286else
7287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7289 as_echo_n='/usr/ucb/echo -n'
7290 else
7291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7292 as_echo_n_body='eval
7293 arg=$1;
7294 case $arg in #(
7295 *"$as_nl"*)
7296 expr "X$arg" : "X\\(.*\\)$as_nl";
7297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7298 esac;
7299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7300 '
7301 export as_echo_n_body
7302 as_echo_n='sh -c $as_echo_n_body as_echo'
7303 fi
7304 export as_echo_body
7305 as_echo='sh -c $as_echo_body as_echo'
7306fi
Benny Prijonod5233702010-01-13 13:09:45 +00007307
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007308# The user is always right.
7309if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007310 PATH_SEPARATOR=:
7311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7313 PATH_SEPARATOR=';'
7314 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007315fi
7316
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007317
7318# IFS
7319# We need space, tab and new line, in precisely that order. Quoting is
7320# there to prevent editors from complaining about space-tab.
7321# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7322# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007323IFS=" "" $as_nl"
7324
7325# Find who we are. Look in the path if we contain no directory separator.
Benny Prijono28d3c562012-03-30 07:10:13 +00007326case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007327 *[\\/]* ) as_myself=$0 ;;
7328 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007329for as_dir in $PATH
7330do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00007333 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7334 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007335IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007336
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007337 ;;
7338esac
7339# We did not find ourselves, most probably we were run as `sh COMMAND'
7340# in which case we are not to be found in the path.
7341if test "x$as_myself" = x; then
7342 as_myself=$0
7343fi
7344if test ! -f "$as_myself"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007345 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7346 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007347fi
7348
Benny Prijono28d3c562012-03-30 07:10:13 +00007349# Unset variables that we do not need and which cause bugs (e.g. in
7350# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7351# suppresses any "Segmentation fault" message there. '((' could
7352# trigger a bug in pdksh 5.2.14.
7353for as_var in BASH_ENV ENV MAIL MAILPATH
7354do eval test x\${$as_var+set} = xset \
7355 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007356done
7357PS1='$ '
7358PS2='> '
7359PS4='+ '
7360
7361# NLS nuisances.
Benny Prijono28d3c562012-03-30 07:10:13 +00007362LC_ALL=C
7363export LC_ALL
7364LANGUAGE=C
7365export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +00007366
Benny Prijono28d3c562012-03-30 07:10:13 +00007367# CDPATH.
7368(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7369
7370
7371# as_fn_error ERROR [LINENO LOG_FD]
7372# ---------------------------------
7373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7375# script with status $?, using 1 if that was 0.
7376as_fn_error ()
7377{
7378 as_status=$?; test $as_status -eq 0 && as_status=1
7379 if test "$3"; then
7380 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7382 fi
7383 $as_echo "$as_me: error: $1" >&2
7384 as_fn_exit $as_status
7385} # as_fn_error
7386
7387
7388# as_fn_set_status STATUS
7389# -----------------------
7390# Set $? to STATUS, without forking.
7391as_fn_set_status ()
7392{
7393 return $1
7394} # as_fn_set_status
7395
7396# as_fn_exit STATUS
7397# -----------------
7398# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7399as_fn_exit ()
7400{
7401 set +e
7402 as_fn_set_status $1
7403 exit $1
7404} # as_fn_exit
7405
7406# as_fn_unset VAR
7407# ---------------
7408# Portably unset VAR.
7409as_fn_unset ()
7410{
7411 { eval $1=; unset $1;}
7412}
7413as_unset=as_fn_unset
7414# as_fn_append VAR VALUE
7415# ----------------------
7416# Append the text in VALUE to the end of the definition contained in VAR. Take
7417# advantage of any shell optimizations that allow amortized linear growth over
7418# repeated appends, instead of the typical quadratic growth present in naive
7419# implementations.
7420if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7421 eval 'as_fn_append ()
7422 {
7423 eval $1+=\$2
7424 }'
7425else
7426 as_fn_append ()
7427 {
7428 eval $1=\$$1\$2
7429 }
7430fi # as_fn_append
7431
7432# as_fn_arith ARG...
7433# ------------------
7434# Perform arithmetic evaluation on the ARGs, and store the result in the
7435# global $as_val. Take advantage of shells that can avoid forks. The arguments
7436# must be portable across $(()) and expr.
7437if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7438 eval 'as_fn_arith ()
7439 {
7440 as_val=$(( $* ))
7441 }'
7442else
7443 as_fn_arith ()
7444 {
7445 as_val=`expr "$@" || test $? -eq 1`
7446 }
7447fi # as_fn_arith
7448
7449
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007450if expr a : '\(a\)' >/dev/null 2>&1 &&
7451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7452 as_expr=expr
7453else
7454 as_expr=false
7455fi
7456
7457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7458 as_basename=basename
7459else
7460 as_basename=false
7461fi
7462
Benny Prijono28d3c562012-03-30 07:10:13 +00007463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7464 as_dirname=dirname
7465else
7466 as_dirname=false
7467fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007468
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007469as_me=`$as_basename -- "$0" ||
7470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7471 X"$0" : 'X\(//\)$' \| \
7472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00007473$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007474 sed '/^.*\/\([^/][^/]*\)\/*$/{
7475 s//\1/
7476 q
7477 }
7478 /^X\/\(\/\/\)$/{
7479 s//\1/
7480 q
7481 }
7482 /^X\/\(\/\).*/{
7483 s//\1/
7484 q
7485 }
7486 s/.*/./; q'`
7487
Benny Prijono28d3c562012-03-30 07:10:13 +00007488# Avoid depending upon Character Ranges.
7489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7492as_cr_digits='0123456789'
7493as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007494
7495ECHO_C= ECHO_N= ECHO_T=
Benny Prijono28d3c562012-03-30 07:10:13 +00007496case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007497-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +00007498 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +00007500 xy) ECHO_C='\c';;
7501 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7502 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007503 esac;;
7504*)
7505 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007506esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007507
7508rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007509if test -d conf$$.dir; then
7510 rm -f conf$$.dir/conf$$.file
7511else
7512 rm -f conf$$.dir
Benny Prijono28d3c562012-03-30 07:10:13 +00007513 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007514fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007515if (echo >conf$$.file) 2>/dev/null; then
7516 if ln -s conf$$.file conf$$ 2>/dev/null; then
7517 as_ln_s='ln -s'
7518 # ... but there are two gotchas:
7519 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7520 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7521 # In both cases, we have to default to `cp -p'.
7522 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7523 as_ln_s='cp -p'
7524 elif ln conf$$.file conf$$ 2>/dev/null; then
7525 as_ln_s=ln
7526 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007527 as_ln_s='cp -p'
Benny Prijono28d3c562012-03-30 07:10:13 +00007528 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007529else
7530 as_ln_s='cp -p'
7531fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007532rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7533rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007534
Benny Prijono28d3c562012-03-30 07:10:13 +00007535
7536# as_fn_mkdir_p
7537# -------------
7538# Create "$as_dir" as a directory, including parents if necessary.
7539as_fn_mkdir_p ()
7540{
7541
7542 case $as_dir in #(
7543 -*) as_dir=./$as_dir;;
7544 esac
7545 test -d "$as_dir" || eval $as_mkdir_p || {
7546 as_dirs=
7547 while :; do
7548 case $as_dir in #(
7549 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7550 *) as_qdir=$as_dir;;
7551 esac
7552 as_dirs="'$as_qdir' $as_dirs"
7553 as_dir=`$as_dirname -- "$as_dir" ||
7554$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7555 X"$as_dir" : 'X\(//\)[^/]' \| \
7556 X"$as_dir" : 'X\(//\)$' \| \
7557 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7558$as_echo X"$as_dir" |
7559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7560 s//\1/
7561 q
7562 }
7563 /^X\(\/\/\)[^/].*/{
7564 s//\1/
7565 q
7566 }
7567 /^X\(\/\/\)$/{
7568 s//\1/
7569 q
7570 }
7571 /^X\(\/\).*/{
7572 s//\1/
7573 q
7574 }
7575 s/.*/./; q'`
7576 test -d "$as_dir" && break
7577 done
7578 test -z "$as_dirs" || eval "mkdir $as_dirs"
7579 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7580
7581
7582} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007583if mkdir -p . 2>/dev/null; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007584 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00007585else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007586 test -d ./-p && rmdir ./-p
7587 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00007588fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007589
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007590if test -x / >/dev/null 2>&1; then
7591 as_test_x='test -x'
7592else
7593 if ls -dL / >/dev/null 2>&1; then
7594 as_ls_L_option=L
7595 else
7596 as_ls_L_option=
7597 fi
7598 as_test_x='
7599 eval sh -c '\''
7600 if test -d "$1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007601 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007602 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007603 case $1 in #(
7604 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007605 esac;
Benny Prijono28d3c562012-03-30 07:10:13 +00007606 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007607 ???[sx]*):;;*)false;;esac;fi
7608 '\'' sh
7609 '
7610fi
7611as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007612
7613# Sed expression to map a string onto a valid CPP name.
7614as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7615
7616# Sed expression to map a string onto a valid variable name.
7617as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7618
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007619
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007620exec 6>&1
Benny Prijono28d3c562012-03-30 07:10:13 +00007621## ----------------------------------- ##
7622## Main body of $CONFIG_STATUS script. ##
7623## ----------------------------------- ##
7624_ASEOF
7625test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007626
Benny Prijono28d3c562012-03-30 07:10:13 +00007627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7628# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007629# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007630# values after options handling.
7631ac_log="
Benny Prijono28d3c562012-03-30 07:10:13 +00007632This file was extended by pjproject $as_me 2.x, which was
7633generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007634
7635 CONFIG_FILES = $CONFIG_FILES
7636 CONFIG_HEADERS = $CONFIG_HEADERS
7637 CONFIG_LINKS = $CONFIG_LINKS
7638 CONFIG_COMMANDS = $CONFIG_COMMANDS
7639 $ $0 $@
7640
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007641on `(hostname || uname -n) 2>/dev/null | sed 1q`
7642"
7643
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007644_ACEOF
7645
Benny Prijono28d3c562012-03-30 07:10:13 +00007646case $ac_config_files in *"
7647"*) set x $ac_config_files; shift; ac_config_files=$*;;
7648esac
7649
7650case $ac_config_headers in *"
7651"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7652esac
7653
7654
7655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007656# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007657config_files="$ac_config_files"
7658config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007659
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007660_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007661
Benny Prijono28d3c562012-03-30 07:10:13 +00007662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007663ac_cs_usage="\
Benny Prijono28d3c562012-03-30 07:10:13 +00007664\`$as_me' instantiates files and other configuration actions
7665from templates according to the current configuration. Unless the files
7666and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007667
Benny Prijono28d3c562012-03-30 07:10:13 +00007668Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007669
7670 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007671 -V, --version print version number and configuration settings, then exit
Benny Prijono28d3c562012-03-30 07:10:13 +00007672 --config print configuration, then exit
7673 -q, --quiet, --silent
7674 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007675 -d, --debug don't remove temporary files
7676 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijono28d3c562012-03-30 07:10:13 +00007677 --file=FILE[:TEMPLATE]
7678 instantiate the configuration file FILE
7679 --header=FILE[:TEMPLATE]
7680 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007681
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007682Configuration files:
7683$config_files
7684
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007685Configuration headers:
7686$config_headers
7687
Benny Prijono28d3c562012-03-30 07:10:13 +00007688Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00007689
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007690_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7692ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007693ac_cs_version="\\
Benny Prijono28d3c562012-03-30 07:10:13 +00007694pjproject config.status 2.x
7695configured by $0, generated by GNU Autoconf 2.65,
7696 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007697
Benny Prijono28d3c562012-03-30 07:10:13 +00007698Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007699This config.status script is free software; the Free Software Foundation
7700gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007701
7702ac_pwd='$ac_pwd'
7703srcdir='$srcdir'
Benny Prijono28d3c562012-03-30 07:10:13 +00007704test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007705_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007706
Benny Prijono28d3c562012-03-30 07:10:13 +00007707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7708# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007709ac_need_defaults=:
7710while test $# != 0
7711do
7712 case $1 in
7713 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007716 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007717 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007718 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007719 ac_option=$1
7720 ac_optarg=$2
7721 ac_shift=shift
7722 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007723 esac
7724
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007725 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007726 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007728 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007729 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijono28d3c562012-03-30 07:10:13 +00007730 $as_echo "$ac_cs_version"; exit ;;
7731 --config | --confi | --conf | --con | --co | --c )
7732 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007733 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007734 debug=: ;;
7735 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007736 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00007737 case $ac_optarg in
7738 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7739 esac
7740 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007741 ac_need_defaults=false;;
7742 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007743 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00007744 case $ac_optarg in
7745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7746 esac
7747 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007748 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007749 --he | --h)
7750 # Conflict between --help and --header
Benny Prijono28d3c562012-03-30 07:10:13 +00007751 as_fn_error "ambiguous option: \`$1'
7752Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007753 --help | --hel | -h )
Benny Prijono28d3c562012-03-30 07:10:13 +00007754 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7756 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7757 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007758
7759 # This is an error.
Benny Prijono28d3c562012-03-30 07:10:13 +00007760 -*) as_fn_error "unrecognized option: \`$1'
7761Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007762
Benny Prijono28d3c562012-03-30 07:10:13 +00007763 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007764 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007765
7766 esac
7767 shift
7768done
7769
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007770ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007771
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007772if $ac_cs_silent; then
7773 exec 6>/dev/null
7774 ac_configure_extra_args="$ac_configure_extra_args --silent"
7775fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007776
7777_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007779if \$ac_cs_recheck; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007780 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7781 shift
7782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7783 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007784 export CONFIG_SHELL
Benny Prijono28d3c562012-03-30 07:10:13 +00007785 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007786fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007787
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007788_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007790exec 5>>config.log
7791{
7792 echo
7793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7794## Running $as_me. ##
7795_ASBOX
Benny Prijono28d3c562012-03-30 07:10:13 +00007796 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007797} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007798
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007799_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007801_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007802
Benny Prijono28d3c562012-03-30 07:10:13 +00007803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007804
7805# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007806for ac_config_target in $ac_config_targets
7807do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007808 case $ac_config_target in
7809 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7810 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7811 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7812 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7813 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7814 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7815 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00007816 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007817 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7818 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7819 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7820 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007821 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007822 "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 +00007823
Benny Prijono28d3c562012-03-30 07:10:13 +00007824 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007825 esac
7826done
7827
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007828
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007829# If the user did not use the arguments to specify the items to instantiate,
7830# then the envvar interface is used. Set only those that are not.
7831# We use the long form for the default assignment because of an extremely
7832# bizarre bug on SunOS 4.1.3.
7833if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007835 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7836fi
7837
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007838# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007839# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007840# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007841# Hook for its removal unless debugging.
7842# Note that there is a small window in which the directory will not be cleaned:
7843# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007844$debug ||
7845{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007846 tmp=
7847 trap 'exit_status=$?
7848 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7849' 0
Benny Prijono28d3c562012-03-30 07:10:13 +00007850 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007851}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007852# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007853
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007854{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007855 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007856 test -n "$tmp" && test -d "$tmp"
7857} ||
7858{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007859 tmp=./conf$$-$RANDOM
7860 (umask 077 && mkdir "$tmp")
Benny Prijono28d3c562012-03-30 07:10:13 +00007861} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007862
Benny Prijono28d3c562012-03-30 07:10:13 +00007863# Set up the scripts for CONFIG_FILES section.
7864# No need to generate them if there are no CONFIG_FILES.
7865# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007866if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007867
Benny Prijono28d3c562012-03-30 07:10:13 +00007868
7869ac_cr=`echo X | tr X '\015'`
7870# On cygwin, bash can eat \r inside `` if the user requested igncr.
7871# But we know of no other shell where ac_cr would be empty at this
7872# point, so we can use a bashism as a fallback.
7873if test "x$ac_cr" = x; then
7874 eval ac_cr=\$\'\\r\'
7875fi
7876ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7877if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7878 ac_cs_awk_cr='\r'
7879else
7880 ac_cs_awk_cr=$ac_cr
7881fi
7882
7883echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007884_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007885
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007886
Benny Prijono28d3c562012-03-30 07:10:13 +00007887{
7888 echo "cat >conf$$subs.awk <<_ACEOF" &&
7889 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7890 echo "_ACEOF"
7891} >conf$$subs.sh ||
7892 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7893ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007894ac_delim='%!_!# '
7895for ac_last_try in false false false false false :; do
Benny Prijono28d3c562012-03-30 07:10:13 +00007896 . ./conf$$subs.sh ||
7897 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007898
Benny Prijono28d3c562012-03-30 07:10:13 +00007899 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7900 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007901 break
7902 elif $ac_last_try; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007903 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007904 else
7905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007906 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007907done
Benny Prijono28d3c562012-03-30 07:10:13 +00007908rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007909
Benny Prijono28d3c562012-03-30 07:10:13 +00007910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7911cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007912_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007913sed -n '
7914h
7915s/^/S["/; s/!.*/"]=/
7916p
7917g
7918s/^[^!]*!//
7919:repl
7920t repl
7921s/'"$ac_delim"'$//
7922t delim
7923:nl
7924h
7925s/\(.\{148\}\)..*/\1/
7926t more1
7927s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7928p
7929n
7930b repl
7931:more1
7932s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7933p
7934g
7935s/.\{148\}//
7936t nl
7937:delim
7938h
7939s/\(.\{148\}\)..*/\1/
7940t more2
7941s/["\\]/\\&/g; s/^/"/; s/$/"/
7942p
7943b
7944:more2
7945s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7946p
7947g
7948s/.\{148\}//
7949t delim
7950' <conf$$subs.awk | sed '
7951/^[^""]/{
7952 N
7953 s/\n//
7954}
7955' >>$CONFIG_STATUS || ac_write_fail=1
7956rm -f conf$$subs.awk
7957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7958_ACAWK
7959cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7960 for (key in S) S_is_set[key] = 1
7961 FS = ""
7962
7963}
7964{
7965 line = $ 0
7966 nfields = split(line, field, "@")
7967 substed = 0
7968 len = length(field[1])
7969 for (i = 2; i < nfields; i++) {
7970 key = field[i]
7971 keylen = length(key)
7972 if (S_is_set[key]) {
7973 value = S[key]
7974 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7975 len += length(value) + length(field[++i])
7976 substed = 1
7977 } else
7978 len += 1 + keylen
7979 }
7980
7981 print line
7982}
7983
7984_ACAWK
Benny Prijonod4306432010-05-01 22:05:41 +00007985_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7987if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7988 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7989else
7990 cat
7991fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7992 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00007993_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007994
7995# VPATH may cause trouble with some makes, so we remove $(srcdir),
7996# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7997# trailing colons and then remove the whole line if VPATH becomes empty
7998# (actually we leave an empty line to preserve line numbers).
7999if test "x$srcdir" = x.; then
8000 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8001s/:*\$(srcdir):*/:/
8002s/:*\${srcdir}:*/:/
8003s/:*@srcdir@:*/:/
8004s/^\([^=]*=[ ]*\):*/\1/
8005s/:*$//
8006s/^[^=]*=[ ]*$//
8007}'
8008fi
8009
Benny Prijono28d3c562012-03-30 07:10:13 +00008010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008011fi # test -n "$CONFIG_FILES"
8012
Benny Prijono28d3c562012-03-30 07:10:13 +00008013# Set up the scripts for CONFIG_HEADERS section.
8014# No need to generate them if there are no CONFIG_HEADERS.
8015# This happens for instance with `./config.status Makefile'.
8016if test -n "$CONFIG_HEADERS"; then
8017cat >"$tmp/defines.awk" <<\_ACAWK ||
8018BEGIN {
8019_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008020
Benny Prijono28d3c562012-03-30 07:10:13 +00008021# Transform confdefs.h into an awk script `defines.awk', embedded as
8022# here-document in config.status, that substitutes the proper values into
8023# config.h.in to produce config.h.
8024
8025# Create a delimiter string that does not exist in confdefs.h, to ease
8026# handling of long lines.
8027ac_delim='%!_!# '
8028for ac_last_try in false false :; do
8029 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8030 if test -z "$ac_t"; then
8031 break
8032 elif $ac_last_try; then
8033 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8034 else
8035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8036 fi
8037done
8038
8039# For the awk script, D is an array of macro values keyed by name,
8040# likewise P contains macro parameters if any. Preserve backslash
8041# newline sequences.
8042
8043ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8044sed -n '
8045s/.\{148\}/&'"$ac_delim"'/g
8046t rset
8047:rset
8048s/^[ ]*#[ ]*define[ ][ ]*/ /
8049t def
8050d
8051:def
8052s/\\$//
8053t bsnl
8054s/["\\]/\\&/g
8055s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8056D["\1"]=" \3"/p
8057s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8058d
8059:bsnl
8060s/["\\]/\\&/g
8061s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8062D["\1"]=" \3\\\\\\n"\\/p
8063t cont
8064s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8065t cont
8066d
8067:cont
8068n
8069s/.\{148\}/&'"$ac_delim"'/g
8070t clear
8071:clear
8072s/\\$//
8073t bsnlc
8074s/["\\]/\\&/g; s/^/"/; s/$/"/p
8075d
8076:bsnlc
8077s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8078b cont
8079' <confdefs.h | sed '
8080s/'"$ac_delim"'/"\\\
8081"/g' >>$CONFIG_STATUS || ac_write_fail=1
8082
8083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8084 for (key in D) D_is_set[key] = 1
8085 FS = ""
8086}
8087/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8088 line = \$ 0
8089 split(line, arg, " ")
8090 if (arg[1] == "#") {
8091 defundef = arg[2]
8092 mac1 = arg[3]
8093 } else {
8094 defundef = substr(arg[1], 2)
8095 mac1 = arg[2]
8096 }
8097 split(mac1, mac2, "(") #)
8098 macro = mac2[1]
8099 prefix = substr(line, 1, index(line, defundef) - 1)
8100 if (D_is_set[macro]) {
8101 # Preserve the white space surrounding the "#".
8102 print prefix "define", macro P[macro] D[macro]
8103 next
8104 } else {
8105 # Replace #undef with comments. This is necessary, for example,
8106 # in the case of _POSIX_SOURCE, which is predefined and required
8107 # on some systems where configure will not decide to define it.
8108 if (defundef == "undef") {
8109 print "/*", prefix defundef, macro, "*/"
8110 next
8111 }
8112 }
8113}
8114{ print }
8115_ACAWK
8116_ACEOF
8117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8118 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8119fi # test -n "$CONFIG_HEADERS"
8120
8121
8122eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8123shift
8124for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008125do
8126 case $ac_tag in
8127 :[FHLC]) ac_mode=$ac_tag; continue;;
8128 esac
8129 case $ac_mode$ac_tag in
8130 :[FHL]*:*);;
Benny Prijono28d3c562012-03-30 07:10:13 +00008131 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008132 :[FH]-) ac_tag=-:-;;
8133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8134 esac
8135 ac_save_IFS=$IFS
8136 IFS=:
8137 set x $ac_tag
8138 IFS=$ac_save_IFS
8139 shift
8140 ac_file=$1
8141 shift
8142
8143 case $ac_mode in
8144 :L) ac_source=$1;;
8145 :[FH])
8146 ac_file_inputs=
8147 for ac_f
8148 do
8149 case $ac_f in
8150 -) ac_f="$tmp/stdin";;
8151 *) # Look for the file first in the build tree, then in the source tree
8152 # (if the path is not absolute). The absolute path cannot be DOS-style,
8153 # because $ac_f cannot contain `:'.
8154 test -f "$ac_f" ||
8155 case $ac_f in
8156 [\\/$]*) false;;
8157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8158 esac ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008159 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008160 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00008161 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8162 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008163 done
8164
8165 # Let's still pretend it is `configure' which instantiates (i.e., don't
8166 # use $as_me), people would be surprised to read:
8167 # /* config.h. Generated by config.status. */
Benny Prijono28d3c562012-03-30 07:10:13 +00008168 configure_input='Generated from '`
8169 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8170 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008171 if test x"$ac_file" != x-; then
8172 configure_input="$ac_file. $configure_input"
Benny Prijono28d3c562012-03-30 07:10:13 +00008173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8174$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008175 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00008176 # Neutralize special characters interpreted by sed in replacement strings.
8177 case $configure_input in #(
8178 *\&* | *\|* | *\\* )
8179 ac_sed_conf_input=`$as_echo "$configure_input" |
8180 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8181 *) ac_sed_conf_input=$configure_input;;
8182 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008183
8184 case $ac_tag in
Benny Prijono28d3c562012-03-30 07:10:13 +00008185 *:-:* | *:-) cat >"$tmp/stdin" \
8186 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008187 esac
8188 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008189 esac
8190
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008191 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008192$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8193 X"$ac_file" : 'X\(//\)[^/]' \| \
8194 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008196$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8198 s//\1/
8199 q
8200 }
8201 /^X\(\/\/\)[^/].*/{
8202 s//\1/
8203 q
8204 }
8205 /^X\(\/\/\)$/{
8206 s//\1/
8207 q
8208 }
8209 /^X\(\/\).*/{
8210 s//\1/
8211 q
8212 }
8213 s/.*/./; q'`
Benny Prijono28d3c562012-03-30 07:10:13 +00008214 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008215 ac_builddir=.
8216
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008217case "$ac_dir" in
8218.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8219*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008220 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008221 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00008222 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008223 case $ac_top_builddir_sub in
8224 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8225 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8226 esac ;;
8227esac
8228ac_abs_top_builddir=$ac_pwd
8229ac_abs_builddir=$ac_pwd$ac_dir_suffix
8230# for backward compatibility:
8231ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008232
8233case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008234 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008235 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008236 ac_top_srcdir=$ac_top_builddir_sub
8237 ac_abs_top_srcdir=$ac_pwd ;;
8238 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008239 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008240 ac_top_srcdir=$srcdir
8241 ac_abs_top_srcdir=$srcdir ;;
8242 *) # Relative name.
8243 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8244 ac_top_srcdir=$ac_top_build_prefix$srcdir
8245 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008246esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008247ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00008248
Benny Prijonoe2746132008-09-27 13:16:35 +00008249
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008250 case $ac_mode in
8251 :F)
8252 #
8253 # CONFIG_FILE
8254 #
Benny Prijonoe2746132008-09-27 13:16:35 +00008255
Benny Prijonoe2746132008-09-27 13:16:35 +00008256_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008257
Benny Prijono28d3c562012-03-30 07:10:13 +00008258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008259# If the template does not know about datarootdir, expand it.
8260# FIXME: This hack should be removed a few years after 2.60.
8261ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijono28d3c562012-03-30 07:10:13 +00008262ac_sed_dataroot='
8263/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008264 p
8265 q
8266}
8267/@datadir@/p
8268/@docdir@/p
8269/@infodir@/p
8270/@localedir@/p
Benny Prijono28d3c562012-03-30 07:10:13 +00008271/@mandir@/p'
8272case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008273*datarootdir*) ac_datarootdir_seen=yes;;
8274*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8276$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008277_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008279 ac_datarootdir_hack='
8280 s&@datadir@&$datadir&g
8281 s&@docdir@&$docdir&g
8282 s&@infodir@&$infodir&g
8283 s&@localedir@&$localedir&g
8284 s&@mandir@&$mandir&g
Benny Prijono28d3c562012-03-30 07:10:13 +00008285 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008286esac
8287_ACEOF
8288
8289# Neutralize VPATH when `$srcdir' = `.'.
8290# Shell code in configure.ac might set extrasub.
8291# FIXME: do we really want to maintain this feature?
Benny Prijono28d3c562012-03-30 07:10:13 +00008292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8293ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008294$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008295_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008297:t
8298/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono28d3c562012-03-30 07:10:13 +00008299s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008300s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijono28d3c562012-03-30 07:10:13 +00008301s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008302s&@srcdir@&$ac_srcdir&;t t
8303s&@abs_srcdir@&$ac_abs_srcdir&;t t
8304s&@top_srcdir@&$ac_top_srcdir&;t t
8305s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8306s&@builddir@&$ac_builddir&;t t
8307s&@abs_builddir@&$ac_abs_builddir&;t t
8308s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8309$ac_datarootdir_hack
Benny Prijono28d3c562012-03-30 07:10:13 +00008310"
8311eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8312 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008313
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008314test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8315 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8316 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijono28d3c562012-03-30 07:10:13 +00008317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008318which seems to be undefined. Please make sure it is defined." >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008319$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008320which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008321
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008322 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008323 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00008324 -) cat "$tmp/out" && rm -f "$tmp/out";;
8325 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8326 esac \
8327 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008328 ;;
8329 :H)
8330 #
8331 # CONFIG_HEADER
8332 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008333 if test x"$ac_file" != x-; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008334 {
8335 $as_echo "/* $configure_input */" \
8336 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8337 } >"$tmp/config.h" \
8338 || as_fn_error "could not create $ac_file" "$LINENO" 5
8339 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8341$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008342 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008343 rm -f "$ac_file"
8344 mv "$tmp/config.h" "$ac_file" \
8345 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008346 fi
8347 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008348 $as_echo "/* $configure_input */" \
8349 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8350 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008351 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008352 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008353
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008354
8355 esac
8356
8357done # for ac_tag
8358
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008359
Benny Prijono28d3c562012-03-30 07:10:13 +00008360as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008361_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008362ac_clean_files=$ac_clean_files_save
8363
Benny Prijono28d3c562012-03-30 07:10:13 +00008364test $ac_write_fail = 0 ||
8365 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8366
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008367
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008368# configure is writing to config.log, and then calls config.status.
8369# config.status does its own redirection, appending to config.log.
8370# Unfortunately, on DOS this fails, as config.log is still kept open
8371# by configure, so config.status won't be able to write to it; its
8372# output is simply discarded. So we exec the FD to /dev/null,
8373# effectively closing config.log, so it can be properly (re)opened and
8374# appended to by config.status. When coming back to configure, we
8375# need to make the FD available again.
8376if test "$no_create" != yes; then
8377 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008378 ac_config_status_args=
8379 test "$silent" = yes &&
8380 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008381 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008383 exec 5>>config.log
8384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8385 # would make configure fail if this is the last instruction.
Benny Prijono28d3c562012-03-30 07:10:13 +00008386 $ac_cs_success || as_fn_exit $?
8387fi
8388if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8390$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00008391fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008392
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008393
Benny Prijonod9627842007-04-18 09:24:31 +00008394
Benny Prijono28d3c562012-03-30 07:10:13 +00008395{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00008396
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008397Configurations 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 +00008398
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008399Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008400 - 'user.mak'
8401 - 'pjlib/include/pj/config_site.h'
8402
8403The next step now is to run 'make dep' and 'make'.
8404" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008405$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00008406
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008407Configurations 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 +00008408
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008409Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008410 - 'user.mak'
8411 - 'pjlib/include/pj/config_site.h'
8412
8413The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008414" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00008415