blob: 73683e805b7220cbf41b532ed58979d4290fbc01 [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
Benny Prijonoeeebfab2012-04-23 13:46:21 +0000608PKG_CONFIG
609SAVED_PKG_CONFIG_PATH
Benny Prijono28d3c562012-03-30 07:10:13 +0000610ac_ffmpeg_ldflags
611ac_ffmpeg_cflags
612ac_has_ffmpeg
613ac_sdl_ldflags
614ac_sdl_cflags
615ac_resample_dll
616ac_no_ilbc_codec
617ac_no_speex_codec
618ac_no_g7221_codec
619ac_no_g722_codec
620ac_no_gsm_codec
621ac_no_l16_codec
622ac_no_g711_codec
623ac_no_speex_aec
624ac_no_large_filter
625ac_no_small_filter
626ac_qt_cflags
627ac_pjmedia_video_has_qt
628ac_ios_cflags
629ac_pjmedia_video_has_ios
630ac_pjmedia_video
631ac_pa_use_oss
632ac_pa_use_alsa
633ac_pa_cflags
634ac_external_pa
635ac_pjmedia_snd
636ac_external_gsm
637ac_external_speex
638ac_os_objs
639EGREP
640GREP
641CPP
642ac_shlib_suffix
643ac_build_mak_vars
644ac_pjdir
645CC_CFLAGS
646CC_OPTIMIZE
647CC_DEF
648CC_INC
649CC_OUT
650LIBEXT2
651LIBEXT
652RANLIB
653LDOUT
654LD
655AR
656ac_ct_CXX
657CXXFLAGS
658CXX
659OBJEXT
660EXEEXT
661ac_ct_CC
662CPPFLAGS
663LDFLAGS
664CFLAGS
665CC
666target_os
667target_vendor
668target_cpu
669target
670host_os
671host_vendor
672host_cpu
673host
674build_os
675build_vendor
676build_cpu
677build
678target_alias
679host_alias
680build_alias
681LIBS
682ECHO_T
683ECHO_N
684ECHO_C
685DEFS
686mandir
687localedir
688libdir
689psdir
690pdfdir
691dvidir
692htmldir
693infodir
694docdir
695oldincludedir
696includedir
697localstatedir
698sharedstatedir
699sysconfdir
700datadir
701datarootdir
702libexecdir
703sbindir
704bindir
705program_transform_name
706prefix
707exec_prefix
708PACKAGE_URL
709PACKAGE_BUGREPORT
710PACKAGE_STRING
711PACKAGE_VERSION
712PACKAGE_TARNAME
713PACKAGE_NAME
714PATH_SEPARATOR
715SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000716ac_subst_files=''
Benny Prijono28d3c562012-03-30 07:10:13 +0000717ac_user_opts='
718enable_option_checking
719enable_floating_point
720enable_epoll
721with_external_speex
722with_external_gsm
723enable_sound
724with_external_pa
725enable_oss
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +0000726enable_video
Benny Prijono28d3c562012-03-30 07:10:13 +0000727enable_ext_sound
728enable_small_filter
729enable_large_filter
730enable_speex_aec
731enable_g711_codec
732enable_l16_codec
733enable_gsm_codec
734enable_g722_codec
735enable_g7221_codec
736enable_speex_codec
737enable_ilbc_codec
738enable_libsamplerate
739enable_resample_dll
740with_sdl
741enable_sdl
742enable_ffmpeg
743with_ffmpeg
744enable_v4l2
745enable_ipp
746with_ipp
747with_ipp_samples
748with_ipp_arch
749enable_ssl
750enable_opencore_amrnb
751'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000752 ac_precious_vars='build_alias
753host_alias
754target_alias
755CC
756CFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760CXX
761CXXFLAGS
762CCC
763CPP'
764
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000765
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000766# Initialize some variables set by options.
767ac_init_help=
768ac_init_version=false
Benny Prijono28d3c562012-03-30 07:10:13 +0000769ac_unrecognized_opts=
770ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000771# The variables have the same names as the options, with
772# dashes changed to underlines.
773cache_file=/dev/null
774exec_prefix=NONE
775no_create=
776no_recursion=
777prefix=NONE
778program_prefix=NONE
779program_suffix=NONE
780program_transform_name=s,x,x,
781silent=
782site=
783srcdir=
784verbose=
785x_includes=NONE
786x_libraries=NONE
787
788# Installation directory options.
789# These are left unexpanded so users can "make install exec_prefix=/foo"
790# and all the variables that are supposed to be based on exec_prefix
791# by default will actually change.
792# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000793# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000794bindir='${exec_prefix}/bin'
795sbindir='${exec_prefix}/sbin'
796libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000797datarootdir='${prefix}/share'
798datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000799sysconfdir='${prefix}/etc'
800sharedstatedir='${prefix}/com'
801localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000802includedir='${prefix}/include'
803oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000804docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805infodir='${datarootdir}/info'
806htmldir='${docdir}'
807dvidir='${docdir}'
808pdfdir='${docdir}'
809psdir='${docdir}'
810libdir='${exec_prefix}/lib'
811localedir='${datarootdir}/locale'
812mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000813
814ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000815ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000816for ac_option
817do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000820 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000821 ac_prev=
822 continue
823 fi
824
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000825 case $ac_option in
826 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *) ac_optarg=yes ;;
828 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000829
830 # Accept the important Cygnus configure options, so we can diagnose typos.
831
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000832 case $ac_dashdash$ac_option in
833 --)
834 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000835
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 ac_prev=bindir ;;
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839 bindir=$ac_optarg ;;
840
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
845
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
852
853 --config-cache | -C)
854 cache_file=config.cache ;;
855
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000856 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000857 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000859 datadir=$ac_optarg ;;
860
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
867
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000868 -disable-* | --disable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000870 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877"enable_$ac_useropt"
878"*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000883
884 -docdir | --docdir | --docdi | --doc | --do)
885 ac_prev=docdir ;;
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 docdir=$ac_optarg ;;
888
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 ac_prev=dvidir ;;
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000893
894 -enable-* | --enable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000896 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903"enable_$ac_useropt"
904"*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000909
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
918
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
921 with_gas=yes ;;
922
923 -help | --help | --hel | --he | -h)
924 ac_init_help=long ;;
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
929
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
934
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 ac_prev=htmldir ;;
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 | --ht=*)
939 htmldir=$ac_optarg ;;
940
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
947
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 ac_prev=infodir ;;
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
952
953 -libdir | --libdir | --libdi | --libd)
954 ac_prev=libdir ;;
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 libdir=$ac_optarg ;;
957
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
964
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000965 -localedir | --localedir | --localedi | --localed | --locale)
966 ac_prev=localedir ;;
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
969
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000970 -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 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000975 localstatedir=$ac_optarg ;;
976
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 ac_prev=mandir ;;
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 mandir=$ac_optarg ;;
981
982 -nfp | --nfp | --nf)
983 # Obsolete; use --without-fp.
984 with_fp=no ;;
985
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000987 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000988 no_create=yes ;;
989
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 no_recursion=yes ;;
993
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1002
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 ac_prev=prefix ;;
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1007
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1014
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1021
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1038
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 ac_prev=pdfdir ;;
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1043
1044 -psdir | --psdir | --psdi | --psd | --ps)
1045 ac_prev=psdir ;;
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 psdir=$ac_optarg ;;
1048
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 silent=yes ;;
1052
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 ac_prev=sbindir ;;
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 | --sbi=* | --sb=*)
1057 sbindir=$ac_optarg ;;
1058
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1062 | --sha | --sh)
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 | --sha=* | --sh=*)
1068 sharedstatedir=$ac_optarg ;;
1069
1070 -site | --site | --sit)
1071 ac_prev=site ;;
1072 -site=* | --site=* | --sit=*)
1073 site=$ac_optarg ;;
1074
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 ac_prev=srcdir ;;
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1079
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1086
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1091
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 verbose=yes ;;
1094
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1097
1098 -with-* | --with-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001100 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107"with_$ac_useropt"
1108"*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001113
1114 -without-* | --without-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001116 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123"with_$ac_useropt"
1124"*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001129
1130 --x)
1131 # Obsolete; use --with-x.
1132 with_x=yes ;;
1133
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1140
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1147
Benny Prijono28d3c562012-03-30 07:10:13 +00001148 -*) as_fn_error "unrecognized option: \`$ac_option'
1149Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001150 ;;
1151
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001155 case $ac_envvar in #(
1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
1157 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1158 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001159 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001160 export $ac_envvar ;;
1161
1162 *)
1163 # FIXME: should be removed in autoconf 3.0.
Benny Prijono28d3c562012-03-30 07:10:13 +00001164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijono28d3c562012-03-30 07:10:13 +00001166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 ;;
1169
1170 esac
1171done
1172
1173if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijono28d3c562012-03-30 07:10:13 +00001175 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001176fi
1177
Benny Prijono28d3c562012-03-30 07:10:13 +00001178if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1180 no) ;;
1181 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 esac
1184fi
1185
1186# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001187for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001191do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001192 eval ac_val=\$$ac_var
Benny Prijono28d3c562012-03-30 07:10:13 +00001193 # Remove trailing slashes.
1194 case $ac_val in
1195 */ )
1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197 eval $ac_var=\$ac_val;;
1198 esac
1199 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001200 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001201 [\\/$]* | ?:[\\/]* ) continue;;
1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001203 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00001204 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001205done
1206
1207# There might be people who depend on the old broken behavior: `$host'
1208# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001209# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001210build=$build_alias
1211host=$host_alias
1212target=$target_alias
1213
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001214# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001215if test "x$host_alias" != x; then
1216 if test "x$build_alias" = x; then
1217 cross_compiling=maybe
Benny Prijono28d3c562012-03-30 07:10:13 +00001218 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001219 If a cross compiler is detected then cross compile mode will be used." >&2
1220 elif test "x$build_alias" != "x$host_alias"; then
1221 cross_compiling=yes
1222 fi
1223fi
1224
1225ac_tool_prefix=
1226test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227
1228test "$silent" = yes && exec 6>/dev/null
1229
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001230
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001231ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232ac_ls_di=`ls -di .` &&
1233ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00001234 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001235test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijono28d3c562012-03-30 07:10:13 +00001236 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001237
1238
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001239# Find the source files, if location was not specified.
1240if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001242 # Try the directory containing this script, then the parent directory.
Benny Prijono28d3c562012-03-30 07:10:13 +00001243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)[^/].*/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\).*/{
1262 s//\1/
1263 q
1264 }
1265 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001266 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001267 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001268 srcdir=..
1269 fi
1270else
1271 ac_srcdir_defaulted=no
1272fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001273if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijono28d3c562012-03-30 07:10:13 +00001275 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001276fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001277ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278ac_abs_confdir=`(
Benny Prijono28d3c562012-03-30 07:10:13 +00001279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001280 pwd)`
1281# When building in place, set srcdir=.
1282if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1284fi
1285# Remove unnecessary trailing slashes from srcdir.
1286# Double slashes in file names in object file debugging info
1287# mess up M-x gdb in Emacs.
1288case $srcdir in
1289*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290esac
1291for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001297
1298#
1299# Report the --help message.
1300#
1301if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001304 cat <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001305\`configure' configures pjproject 2.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001306
1307Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310VAR=VALUE. See below for descriptions of some of the useful variables.
1311
1312Defaults for the options are specified in brackets.
1313
1314Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001325Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001327 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001329 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001330
1331By default, \`make install' will install all the files in
1332\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334for instance \`--prefix=\$HOME'.
1335
1336For better control, use the options below.
1337
1338Fine tuning of the installation directories:
Benny Prijono28d3c562012-03-30 07:10:13 +00001339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001358_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001359
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001360 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001361
1362System types:
1363 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001365 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001366_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001367fi
1368
1369if test -n "$ac_init_help"; then
1370 case $ac_init_help in
Benny Prijono28d3c562012-03-30 07:10:13 +00001371 short | recursive ) echo "Configuration of pjproject 2.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001372 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001373 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001374
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001375Optional Features:
Benny Prijono28d3c562012-03-30 07:10:13 +00001376 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --disable-floating-point
1380 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001381 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001382 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001383 --disable-oss Disable OSS audio (default: not disabled)
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00001384 --disable-video Disable video feature
Benny Prijonoebb2c332008-07-28 23:40:58 +00001385 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001386 --disable-small-filter Exclude small filter in resampling
1387 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001388 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1389 --disable-g711-codec Exclude G.711 codecs from the build
1390 --disable-l16-codec Exclude Linear/L16 codec family from the build
1391 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001392 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001393 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001394 --disable-speex-codec Exclude Speex codecs in the build
1395 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001396 --enable-libsamplerate Link with libsamplerate when available. Note that
1397 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono28d3c562012-03-30 07:10:13 +00001398 --enable-resample-dll Build libresample as shared library
Benny Prijonoc45d9512010-12-10 11:04:30 +00001399 --disable-sdl Disable SDL (default: not disabled)
1400 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1401 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001402 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1403 package and samples location using IPPROOT and
1404 IPPSAMPLES env var or with --with-ipp and
1405 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001406 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001407
Sauw Minge7dbbc82011-10-24 09:28:13 +00001408 --disable-opencore-amrnb
1409 Exclude OpenCORE AMR-NB support from the build
1410 (default: autodetect)
1411
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001412
Benny Prijonofe0c1272010-01-13 16:28:15 +00001413Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001416 --with-external-speex Use external Speex development files, not the one in
1417 "third_party" directory. When this option is set,
1418 make sure that Speex is accessible to use (hint: use
1419 CFLAGS and LDFLAGS env var to set the include/lib
1420 paths)
1421 --with-external-gsm Use external GSM codec library, not the one in
1422 "third_party" directory. When this option is set,
1423 make sure that the GSM include/lib files are
1424 accessible to use (hint: use CFLAGS and LDFLAGS env
1425 var to set the include/lib paths)
1426 --with-external-pa Use external PortAudio development files, not the
1427 one in "third_party" directory. When this option is
1428 set, make sure that PortAudio is accessible to use
1429 (hint: use CFLAGS and LDFLAGS env var to set the
1430 include/lib paths)
Benny Prijono5b0af632011-07-20 03:16:25 +00001431 --with-sdl=DIR Specify alternate libSDL prefix
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001432 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001433 --with-ipp=DIR Specify the Intel IPP location
1434 --with-ipp-samples=DIR Specify the Intel IPP samples location
1435 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001436 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001437
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001438Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001443 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijono28d3c562012-03-30 07:10:13 +00001444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001445 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001446 CXX C++ compiler command
1447 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001448 CPP C preprocessor
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
Benny Prijono28d3c562012-03-30 07:10:13 +00001453Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001454_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001455ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono28d3c562012-03-30 07:10:13 +00001461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001464 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001465
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001470 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00001471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001481
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001482case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001483 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001484 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001488 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001495esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001497
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001506 else
Benny Prijono28d3c562012-03-30 07:10:13 +00001507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001510 done
1511fi
1512
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001513test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001514if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001515 cat <<\_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001516pjproject configure 2.x
1517generated by GNU Autoconf 2.65
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001518
Benny Prijono28d3c562012-03-30 07:10:13 +00001519Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001520This configure script is free software; the Free Software Foundation
1521gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001522_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001523 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001524fi
Benny Prijono28d3c562012-03-30 07:10:13 +00001525
1526## ------------------------ ##
1527## Autoconf initialization. ##
1528## ------------------------ ##
1529
1530# ac_fn_c_try_compile LINENO
1531# --------------------------
1532# Try to compile conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_c_try_compile ()
1534{
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557else
1558 $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562fi
1563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564 as_fn_set_status $ac_retval
1565
1566} # ac_fn_c_try_compile
1567
1568# ac_fn_cxx_try_compile LINENO
1569# ----------------------------
1570# Try to compile conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_cxx_try_compile ()
1572{
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1576case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_cxx_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.$ac_objext; then :
1594 ac_retval=0
1595else
1596 $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600fi
1601 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1602 as_fn_set_status $ac_retval
1603
1604} # ac_fn_cxx_try_compile
1605
1606# ac_fn_c_try_link LINENO
1607# -----------------------
1608# Try to link conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_link ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest$ac_exeext
1613 if { { ac_try="$ac_link"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
1633 $as_test_x conftest$ac_exeext
1634 }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641fi
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_link
1651
1652# ac_fn_c_try_run LINENO
1653# ----------------------
1654# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655# that executables *can* be run.
1656ac_fn_c_try_run ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1660case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_run
1693
1694# ac_fn_c_try_cpp LINENO
1695# ----------------------
1696# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_cpp ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } >/dev/null && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_cpp
1730
1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732# -------------------------------------------------------
1733# Tests whether HEADER exists and can be compiled using the include files in
1734# INCLUDES, setting the cache variable VAR accordingly.
1735ac_fn_c_check_header_compile ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1742else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h. */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750else
1751 eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754fi
1755eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
1760} # ac_fn_c_check_header_compile
1761
1762# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763# -------------------------------------------------------
1764# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765# the include files in INCLUDES and setting the cache variable VAR
1766# accordingly.
1767ac_fn_c_check_header_mongrel ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772$as_echo_n "checking for $2... " >&6; }
1773if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1775fi
1776eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779else
1780 # Is the header compilable?
1781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782$as_echo_n "checking $2 usability... " >&6; }
1783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h. */
1785$4
1786#include <$2>
1787_ACEOF
1788if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1790else
1791 ac_header_compiler=no
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795$as_echo "$ac_header_compiler" >&6; }
1796
1797# Is the header present?
1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799$as_echo_n "checking $2 presence... " >&6; }
1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h. */
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1806else
1807 ac_header_preproc=no
1808fi
1809rm -f conftest.err conftest.$ac_ext
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811$as_echo "$ac_header_preproc" >&6; }
1812
1813# So? What about this header?
1814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1815 yes:no: )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 ;;
1821 no:yes:* )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ;;
1833esac
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835$as_echo_n "checking for $2... " >&6; }
1836if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1838else
1839 eval "$3=\$ac_header_compiler"
1840fi
1841eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844fi
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846
1847} # ac_fn_c_check_header_mongrel
1848
1849# ac_fn_c_check_func LINENO FUNC VAR
1850# ----------------------------------
1851# Tests whether FUNC exists, setting the cache variable VAR accordingly
1852ac_fn_c_check_func ()
1853{
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 $as_echo_n "(cached) " >&6
1859else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861/* end confdefs.h. */
1862/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1864#define $2 innocuous_$2
1865
1866/* System header to define __stub macros and hopefully few prototypes,
1867 which can conflict with char $2 (); below.
1868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1869 <limits.h> exists even on freestanding compilers. */
1870
1871#ifdef __STDC__
1872# include <limits.h>
1873#else
1874# include <assert.h>
1875#endif
1876
1877#undef $2
1878
1879/* Override any GCC internal prototype to avoid an error.
1880 Use char because int might match the return type of a GCC
1881 builtin and then its argument prototype would still apply. */
1882#ifdef __cplusplus
1883extern "C"
1884#endif
1885char $2 ();
1886/* The GNU C library defines this for functions which it implements
1887 to always fail with ENOSYS. Some functions are actually named
1888 something starting with __ and the normal name is an alias. */
1889#if defined __stub_$2 || defined __stub___$2
1890choke me
1891#endif
1892
1893int
1894main ()
1895{
1896return $2 ();
1897 ;
1898 return 0;
1899}
1900_ACEOF
1901if ac_fn_c_try_link "$LINENO"; then :
1902 eval "$3=yes"
1903else
1904 eval "$3=no"
1905fi
1906rm -f core conftest.err conftest.$ac_objext \
1907 conftest$ac_exeext conftest.$ac_ext
1908fi
1909eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913
1914} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001915cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001916This file contains any messages produced by compilers while
1917running configure, to aid debugging if configure makes a mistake.
1918
Benny Prijono28d3c562012-03-30 07:10:13 +00001919It was created by pjproject $as_me 2.x, which was
1920generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001921
1922 $ $0 $@
1923
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001924_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001925exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001926{
1927cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001928## --------- ##
1929## Platform. ##
1930## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001931
1932hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937
1938/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940
1941/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001944/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001945/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948
1949_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001950
1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952for as_dir in $PATH
1953do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00001956 $as_echo "PATH: $as_dir"
1957 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001958IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001959
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001960} >&5
1961
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001962cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001963
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001964
1965## ----------- ##
1966## Core tests. ##
1967## ----------- ##
1968
1969_ACEOF
1970
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001971
1972# Keep a trace of the command line.
1973# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001974# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001975# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001977ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001978ac_configure_args0=
1979ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001980ac_must_keep_next=false
1981for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001982do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001983 for ac_arg
1984 do
1985 case $ac_arg in
1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988 | -silent | --silent | --silen | --sile | --sil)
1989 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001990 *\'*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001992 esac
1993 case $ac_pass in
Benny Prijono28d3c562012-03-30 07:10:13 +00001994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001995 2)
Benny Prijono28d3c562012-03-30 07:10:13 +00001996 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001997 if test $ac_must_keep_next = true; then
1998 ac_must_keep_next=false # Got value, back to normal.
1999 else
2000 case $ac_arg in
2001 *=* | --config-cache | -C | -disable-* | --disable-* \
2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004 | -with-* | --with-* | -without-* | --without-* | --x)
2005 case "$ac_configure_args0 " in
2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2007 esac
2008 ;;
2009 -* ) ac_must_keep_next=true ;;
2010 esac
2011 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002012 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002013 ;;
2014 esac
2015 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002016done
Benny Prijono28d3c562012-03-30 07:10:13 +00002017{ ac_configure_args0=; unset ac_configure_args0;}
2018{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002019
2020# When interrupted or exit'd, cleanup temporary files, and complete
2021# config.log. We remove comments because anyway the quotes in there
2022# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002023# WARNING: Use '\'' to represent an apostrophe within the trap.
2024# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002025trap 'exit_status=$?
2026 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002027 {
2028 echo
2029
2030 cat <<\_ASBOX
2031## ---------------- ##
2032## Cache variables. ##
2033## ---------------- ##
2034_ASBOX
2035 echo
2036 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002037(
2038 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in #(
2041 *${as_nl}*)
2042 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002045 esac
2046 case $ac_var in #(
2047 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002050 esac ;;
2051 esac
2052 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002053 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002054 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2055 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002056 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002057 "s/'\''/'\''\\\\'\'''\''/g;
2058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2059 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002060 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002062 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002063 esac |
2064 sort
2065)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002066 echo
2067
2068 cat <<\_ASBOX
2069## ----------------- ##
2070## Output variables. ##
2071## ----------------- ##
2072_ASBOX
2073 echo
2074 for ac_var in $ac_subst_vars
2075 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002076 eval ac_val=\$$ac_var
2077 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002079 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002080 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002081 done | sort
2082 echo
2083
2084 if test -n "$ac_subst_files"; then
2085 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002086## ------------------- ##
2087## File substitutions. ##
2088## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002089_ASBOX
2090 echo
2091 for ac_var in $ac_subst_files
2092 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002093 eval ac_val=\$$ac_var
2094 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002096 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002097 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002098 done | sort
2099 echo
2100 fi
2101
2102 if test -s confdefs.h; then
2103 cat <<\_ASBOX
2104## ----------- ##
2105## confdefs.h. ##
2106## ----------- ##
2107_ASBOX
2108 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002109 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002110 echo
2111 fi
2112 test "$ac_signal" != 0 &&
Benny Prijono28d3c562012-03-30 07:10:13 +00002113 $as_echo "$as_me: caught signal $ac_signal"
2114 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002115 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002116 rm -f core *.core core.conftest.* &&
2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002118 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002119' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002120for ac_signal in 1 2 13 15; do
Benny Prijono28d3c562012-03-30 07:10:13 +00002121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002122done
2123ac_signal=0
2124
2125# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002126rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002127
Benny Prijono28d3c562012-03-30 07:10:13 +00002128$as_echo "/* confdefs.h */" > confdefs.h
2129
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002130# Predefined preprocessor variables.
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_NAME "$PACKAGE_NAME"
2134_ACEOF
2135
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2138_ACEOF
2139
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_VERSION "$PACKAGE_VERSION"
2142_ACEOF
2143
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_STRING "$PACKAGE_STRING"
2146_ACEOF
2147
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2150_ACEOF
2151
Benny Prijono28d3c562012-03-30 07:10:13 +00002152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_URL "$PACKAGE_URL"
2154_ACEOF
2155
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002156
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002157# Let the site file select an alternate cache file if it wants to.
Benny Prijono28d3c562012-03-30 07:10:13 +00002158# Prefer an explicitly selected file to automatically selected ones.
2159ac_site_file1=NONE
2160ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002161if test -n "$CONFIG_SITE"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002162 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002163elif test "x$prefix" != xNONE; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002164 ac_site_file1=$prefix/share/config.site
2165 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002166else
Benny Prijono28d3c562012-03-30 07:10:13 +00002167 ac_site_file1=$ac_default_prefix/share/config.site
2168 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002169fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002170for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002171do
Benny Prijono28d3c562012-03-30 07:10:13 +00002172 test "x$ac_site_file" = xNONE && continue
2173 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2175$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002176 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002177 . "$ac_site_file"
2178 fi
2179done
2180
2181if test -r "$cache_file"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002182 # Some versions of bash will fail to source /dev/null (special files
2183 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2184 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2186$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002187 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002188 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2189 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002190 esac
2191 fi
2192else
Benny Prijono28d3c562012-03-30 07:10:13 +00002193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2194$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002195 >$cache_file
2196fi
2197
2198# Check that the precious variables saved in the cache have kept the same
2199# value.
2200ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002201for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002204 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002206 case $ac_old_set,$ac_new_set in
2207 set,)
Benny Prijono28d3c562012-03-30 07:10:13 +00002208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2209$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 +00002210 ac_cache_corrupted=: ;;
2211 ,set)
Benny Prijono28d3c562012-03-30 07:10:13 +00002212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2213$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002214 ac_cache_corrupted=: ;;
2215 ,);;
2216 *)
2217 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002218 # differences in whitespace do not lead to failure.
2219 ac_old_val_w=`echo x $ac_old_val`
2220 ac_new_val_w=`echo x $ac_new_val`
2221 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2223$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224 ac_cache_corrupted=:
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2227$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228 eval $ac_var=\$ac_old_val
2229 fi
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2231$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2233$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002234 fi;;
2235 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002236 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002237 if test "$ac_new_set" = set; then
2238 case $ac_new_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002239 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002240 *) ac_arg=$ac_var=$ac_new_val ;;
2241 esac
2242 case " $ac_configure_args " in
2243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijono28d3c562012-03-30 07:10:13 +00002244 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002245 esac
2246 fi
2247done
2248if $ac_cache_corrupted; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2252$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2253 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002254fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002255## -------------------- ##
2256## Main body of script. ##
2257## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002258
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002259ac_ext=c
2260ac_cpp='$CPP $CPPFLAGS'
2261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002265
2266
Benny Prijono5b818b22006-09-17 22:58:51 +00002267host_orig="$host"
2268
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002269ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002270for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijono28d3c562012-03-30 07:10:13 +00002271 for ac_t in install-sh install.sh shtool; do
2272 if test -f "$ac_dir/$ac_t"; then
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/$ac_t -c"
2275 break 2
2276 fi
2277 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002278done
2279if test -z "$ac_aux_dir"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002280 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002281fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002282
2283# These three variables are undocumented and unsupported,
2284# and are intended to be withdrawn in a future Autoconf release.
2285# They can cause serious problems if a builder's source tree is in a directory
2286# whose full name contains unusual characters.
2287ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2290
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002291
2292# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002293$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002294 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002295
Benny Prijono28d3c562012-03-30 07:10:13 +00002296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2297$as_echo_n "checking build system type... " >&6; }
2298if test "${ac_cv_build+set}" = set; then :
2299 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002300else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002301 ac_build_alias=$build_alias
2302test "x$ac_build_alias" = x &&
2303 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2304test "x$ac_build_alias" = x &&
Benny Prijono28d3c562012-03-30 07:10:13 +00002305 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002306ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002307 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002308
2309fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2311$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002312case $ac_cv_build in
2313*-*-*) ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00002314*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002315esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002316build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002317ac_save_IFS=$IFS; IFS='-'
2318set x $ac_cv_build
2319shift
2320build_cpu=$1
2321build_vendor=$2
2322shift; shift
2323# Remember, the first character of IFS is used to create $*,
2324# except with old shells:
2325build_os=$*
2326IFS=$ac_save_IFS
2327case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002328
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002329
Benny Prijono28d3c562012-03-30 07:10:13 +00002330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2331$as_echo_n "checking host system type... " >&6; }
2332if test "${ac_cv_host+set}" = set; then :
2333 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002334else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002335 if test "x$host_alias" = x; then
2336 ac_cv_host=$ac_cv_build
2337else
2338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002339 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002340fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002341
2342fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2344$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002345case $ac_cv_host in
2346*-*-*) ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00002347*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002348esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002349host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002350ac_save_IFS=$IFS; IFS='-'
2351set x $ac_cv_host
2352shift
2353host_cpu=$1
2354host_vendor=$2
2355shift; shift
2356# Remember, the first character of IFS is used to create $*,
2357# except with old shells:
2358host_os=$*
2359IFS=$ac_save_IFS
2360case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002361
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002362
Benny Prijono28d3c562012-03-30 07:10:13 +00002363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2364$as_echo_n "checking target system type... " >&6; }
2365if test "${ac_cv_target+set}" = set; then :
2366 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002367else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002368 if test "x$target_alias" = x; then
2369 ac_cv_target=$ac_cv_host
2370else
2371 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002372 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002373fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002374
2375fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2377$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002378case $ac_cv_target in
2379*-*-*) ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00002380*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002381esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002382target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002383ac_save_IFS=$IFS; IFS='-'
2384set x $ac_cv_target
2385shift
2386target_cpu=$1
2387target_vendor=$2
2388shift; shift
2389# Remember, the first character of IFS is used to create $*,
2390# except with old shells:
2391target_os=$*
2392IFS=$ac_save_IFS
2393case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002394
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002395
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002396# The aliases save the names the user supplied, while $host etc.
2397# will get canonicalized.
2398test -n "$target_alias" &&
2399 test "$program_prefix$program_suffix$program_transform_name" = \
2400 NONENONEs,x,x, &&
2401 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002402ac_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 +00002403
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002404ac_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 +00002405
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002406
Benny Prijono12483112007-03-12 10:44:38 +00002407
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002408if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002409 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002410else
2411 CFLAGS="$CFLAGS"
2412fi
2413
2414CXXFLAGS="$CFLAGS $CXXFLAGS"
2415
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002416ac_ext=c
2417ac_cpp='$CPP $CPPFLAGS'
2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425$as_echo_n "checking for $ac_word... " >&6; }
2426if test "${ac_cv_prog_CC+set}" = set; then :
2427 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002428else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002437 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002438 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 +00002439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002441 break 2
2442 fi
2443done
Benny Prijono28d3c562012-03-30 07:10:13 +00002444 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002445IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002446
2447fi
2448fi
2449CC=$ac_cv_prog_CC
2450if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002453else
Benny Prijono28d3c562012-03-30 07:10:13 +00002454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002456fi
2457
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002458
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002459fi
2460if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463set dummy gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
2466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2467 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002468else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002477 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002478 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 +00002479 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002481 break 2
2482 fi
2483done
Benny Prijono28d3c562012-03-30 07:10:13 +00002484 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002485IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002486
2487fi
2488fi
2489ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2492$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002493else
Benny Prijono28d3c562012-03-30 07:10:13 +00002494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002496fi
2497
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002505ac_tool_warned=yes ;;
2506esac
2507 CC=$ac_ct_CC
2508 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002509else
2510 CC="$ac_cv_prog_CC"
2511fi
2512
2513if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002514 if test -n "$ac_tool_prefix"; then
2515 # 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 +00002516set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if test "${ac_cv_prog_CC+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002521else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002530 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002531 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 +00002532 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002534 break 2
2535 fi
2536done
Benny Prijono28d3c562012-03-30 07:10:13 +00002537 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002538IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002539
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002546else
Benny Prijono28d3c562012-03-30 07:10:13 +00002547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002549fi
2550
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002551
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002552 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002553fi
2554if test -z "$CC"; then
2555 # Extract the first word of "cc", so it can be a program name with args.
2556set dummy cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558$as_echo_n "checking for $ac_word... " >&6; }
2559if test "${ac_cv_prog_CC+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002561else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564else
2565 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002571 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002572 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 +00002573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2574 ac_prog_rejected=yes
2575 continue
2576 fi
2577 ac_cv_prog_CC="cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002579 break 2
2580 fi
2581done
Benny Prijono28d3c562012-03-30 07:10:13 +00002582 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002583IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002584
2585if test $ac_prog_rejected = yes; then
2586 # We found a bogon in the path, so make sure we never use it.
2587 set dummy $ac_cv_prog_CC
2588 shift
2589 if test $# != 0; then
2590 # We chose a different compiler from the bogus one.
2591 # However, it has the same basename, so the bogon will be chosen
2592 # first if we set CC to just the basename; use the full file name.
2593 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002595 fi
2596fi
2597fi
2598fi
2599CC=$ac_cv_prog_CC
2600if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002603else
Benny Prijono28d3c562012-03-30 07:10:13 +00002604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002606fi
2607
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002608
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002609fi
2610if test -z "$CC"; then
2611 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002612 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002613 do
2614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
2618if test "${ac_cv_prog_CC+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002620else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002629 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002630 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 +00002631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002633 break 2
2634 fi
2635done
Benny Prijono28d3c562012-03-30 07:10:13 +00002636 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002637IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002638
2639fi
2640fi
2641CC=$ac_cv_prog_CC
2642if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002645else
Benny Prijono28d3c562012-03-30 07:10:13 +00002646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002648fi
2649
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002650
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002651 test -n "$CC" && break
2652 done
2653fi
2654if test -z "$CC"; then
2655 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002656 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002657do
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
2662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2663 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002664else
2665 if test -n "$ac_ct_CC"; then
2666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002673 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002674 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 +00002675 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002677 break 2
2678 fi
2679done
Benny Prijono28d3c562012-03-30 07:10:13 +00002680 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002681IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002682
2683fi
2684fi
2685ac_ct_CC=$ac_cv_prog_ac_ct_CC
2686if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002689else
Benny Prijono28d3c562012-03-30 07:10:13 +00002690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002692fi
2693
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002694
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002695 test -n "$ac_ct_CC" && break
2696done
2697
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002698 if test "x$ac_ct_CC" = x; then
2699 CC=""
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002705ac_tool_warned=yes ;;
2706esac
2707 CC=$ac_ct_CC
2708 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002709fi
2710
2711fi
2712
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002713
Benny Prijono28d3c562012-03-30 07:10:13 +00002714test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716as_fn_error "no acceptable C compiler found in \$PATH
2717See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002718
2719# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00002720$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2721set X $ac_compile
2722ac_compiler=$2
2723for ac_option in --version -v -V -qversion; do
2724 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002725case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730$as_echo "$ac_try_echo"; } >&5
2731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002732 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002733 if test -s conftest.err; then
2734 sed '10a\
2735... rest of stderr output deleted ...
2736 10q' conftest.err >conftest.er1
2737 cat conftest.er1 >&5
2738 fi
2739 rm -f conftest.er1 conftest.err
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }
2742done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002743
Benny Prijono28d3c562012-03-30 07:10:13 +00002744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002745/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002746
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002747int
2748main ()
2749{
2750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755ac_clean_files_save=$ac_clean_files
Benny Prijono28d3c562012-03-30 07:10:13 +00002756ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002757# Try to create an executable without -o first, disregard a.out.
2758# It will help us diagnose broken compilers, and finding out an intuition
2759# of exeext.
Benny Prijono28d3c562012-03-30 07:10:13 +00002760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2761$as_echo_n "checking whether the C compiler works... " >&6; }
2762ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763
2764# The possible output files:
2765ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2766
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002767ac_rmfiles=
2768for ac_file in $ac_files
2769do
2770 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 esac
2774done
2775rm -f $ac_rmfiles
2776
Benny Prijono28d3c562012-03-30 07:10:13 +00002777if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002784 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002785 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2789# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2790# in a Makefile. We should not override ac_cv_exeext if it was cached,
2791# so that the user can short-circuit this test for compilers unknown to
2792# Autoconf.
2793for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002794do
2795 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002796 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002798 ;;
2799 [ab].out )
2800 # We found the default executable, but exeext='' is most
2801 # certainly right.
2802 break;;
2803 *.* )
Benny Prijono28d3c562012-03-30 07:10:13 +00002804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002805 then :; else
2806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 fi
2808 # We set ac_cv_exeext here because the later test for it is not
2809 # safe: cross compilers may not add the suffix if given an `-o'
2810 # argument, so we may need to know it at that point already.
2811 # Even if this section looks crufty: it has the advantage of
2812 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002813 break;;
2814 * )
2815 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002816 esac
2817done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002818test "$ac_cv_exeext" = no && ac_cv_exeext=
2819
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002820else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002821 ac_file=''
2822fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002823if test -z "$ac_file"; then :
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002827sed 's/^/| /' conftest.$ac_ext >&5
2828
Benny Prijono28d3c562012-03-30 07:10:13 +00002829{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831{ as_fn_set_status 77
2832as_fn_error "C compiler cannot create executables
2833See \`config.log' for more details." "$LINENO" 5; }; }
2834else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002837fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2839$as_echo_n "checking for C compiler default output file name... " >&6; }
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2841$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002842ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002843
Benny Prijono28d3c562012-03-30 07:10:13 +00002844rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002845ac_clean_files=$ac_clean_files_save
Benny Prijono28d3c562012-03-30 07:10:13 +00002846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2847$as_echo_n "checking for suffix of executables... " >&6; }
2848if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002855 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002856 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002859 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2860# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2861# work properly (i.e., refer to `conftest.exe'), while it won't with
2862# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002863for ac_file in conftest.exe conftest conftest.*; do
2864 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002865 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002868 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002869 * ) break;;
2870 esac
2871done
2872else
Benny Prijono28d3c562012-03-30 07:10:13 +00002873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875as_fn_error "cannot compute suffix of executables: cannot compile and link
2876See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002877fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002878rm -f conftest conftest$ac_cv_exeext
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2880$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002881
2882rm -f conftest.$ac_ext
2883EXEEXT=$ac_cv_exeext
2884ac_exeext=$EXEEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00002885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h. */
2887#include <stdio.h>
2888int
2889main ()
2890{
2891FILE *f = fopen ("conftest.out", "w");
2892 return ferror (f) || fclose (f) != 0;
2893
2894 ;
2895 return 0;
2896}
Benny Prijono36d32492011-12-28 08:42:23 +00002897_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00002898ac_clean_files="$ac_clean_files conftest.out"
2899# Check that the compiler produces executables we can run. If not, either
2900# the compiler is broken, or we cross compile.
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2902$as_echo_n "checking whether we are cross compiling... " >&6; }
2903if test "$cross_compiling" != yes; then
2904 { { ac_try="$ac_link"
2905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
2909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910$as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_link") 2>&5
2912 ac_status=$?
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }
2915 if { ac_try='./conftest$ac_cv_exeext'
2916 { { case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919esac
2920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921$as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_try") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; }; then
2926 cross_compiling=no
2927 else
2928 if test "$cross_compiling" = maybe; then
2929 cross_compiling=yes
2930 else
2931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933as_fn_error "cannot run C compiled programs.
2934If you meant to cross compile, use \`--host'.
2935See \`config.log' for more details." "$LINENO" 5; }
2936 fi
2937 fi
2938fi
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2940$as_echo "$cross_compiling" >&6; }
2941
2942rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2943ac_clean_files=$ac_clean_files_save
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2945$as_echo_n "checking for suffix of object files... " >&6; }
2946if test "${ac_cv_objext+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2948else
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002950/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002951
2952int
2953main ()
2954{
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960rm -f conftest.o conftest.obj
Benny Prijono28d3c562012-03-30 07:10:13 +00002961if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002962case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002968 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002969 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002972 for ac_file in conftest.o conftest.obj conftest.*; do
2973 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002974 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2977 break;;
2978 esac
2979done
2980else
Benny Prijono28d3c562012-03-30 07:10:13 +00002981 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002982sed 's/^/| /' conftest.$ac_ext >&5
2983
Benny Prijono28d3c562012-03-30 07:10:13 +00002984{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986as_fn_error "cannot compute suffix of object files: cannot compile
2987See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002988fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002989rm -f conftest.$ac_cv_objext conftest.$ac_ext
2990fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2992$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002993OBJEXT=$ac_cv_objext
2994ac_objext=$OBJEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00002995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2996$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2997if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002999else
Benny Prijono28d3c562012-03-30 07:10:13 +00003000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003001/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003002
3003int
3004main ()
3005{
3006#ifndef __GNUC__
3007 choke me
3008#endif
3009
3010 ;
3011 return 0;
3012}
3013_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003014if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003015 ac_compiler_gnu=yes
3016else
Benny Prijono28d3c562012-03-30 07:10:13 +00003017 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003018fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003020ac_cv_c_compiler_gnu=$ac_compiler_gnu
3021
3022fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3024$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3025if test $ac_compiler_gnu = yes; then
3026 GCC=yes
3027else
3028 GCC=
3029fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003030ac_test_CFLAGS=${CFLAGS+set}
3031ac_save_CFLAGS=$CFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3033$as_echo_n "checking whether $CC accepts -g... " >&6; }
3034if test "${ac_cv_prog_cc_g+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003036else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003037 ac_save_c_werror_flag=$ac_c_werror_flag
3038 ac_c_werror_flag=yes
3039 ac_cv_prog_cc_g=no
3040 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003042/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003043
3044int
3045main ()
3046{
3047
3048 ;
3049 return 0;
3050}
3051_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003052if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003053 ac_cv_prog_cc_g=yes
3054else
Benny Prijono28d3c562012-03-30 07:10:13 +00003055 CFLAGS=""
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003057/* end confdefs.h. */
3058
3059int
3060main ()
3061{
3062
3063 ;
3064 return 0;
3065}
3066_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003067if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003068
Benny Prijono28d3c562012-03-30 07:10:13 +00003069else
3070 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003071 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003073/* end confdefs.h. */
3074
3075int
3076main ()
3077{
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003083if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003084 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003085fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003087fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 ac_c_werror_flag=$ac_save_c_werror_flag
3092fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3094$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003095if test "$ac_test_CFLAGS" = set; then
3096 CFLAGS=$ac_save_CFLAGS
3097elif test $ac_cv_prog_cc_g = yes; then
3098 if test "$GCC" = yes; then
3099 CFLAGS="-g -O2"
3100 else
3101 CFLAGS="-g"
3102 fi
3103else
3104 if test "$GCC" = yes; then
3105 CFLAGS="-O2"
3106 else
3107 CFLAGS=
3108 fi
3109fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3111$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3112if test "${ac_cv_prog_cc_c89+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003114else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003115 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003116ac_save_CC=$CC
Benny Prijono28d3c562012-03-30 07:10:13 +00003117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003118/* end confdefs.h. */
3119#include <stdarg.h>
3120#include <stdio.h>
3121#include <sys/types.h>
3122#include <sys/stat.h>
3123/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3124struct buf { int x; };
3125FILE * (*rcsopen) (struct buf *, struct stat *, int);
3126static char *e (p, i)
3127 char **p;
3128 int i;
3129{
3130 return p[i];
3131}
3132static char *f (char * (*g) (char **, int), char **p, ...)
3133{
3134 char *s;
3135 va_list v;
3136 va_start (v,p);
3137 s = g (p, va_arg (v,int));
3138 va_end (v);
3139 return s;
3140}
3141
3142/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3143 function prototypes and stuff, but not '\xHH' hex character constants.
3144 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003145 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3147 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003148 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003149int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3150
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003151/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3152 inside strings and character constants. */
3153#define FOO(x) 'x'
3154int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3155
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003156int test (int i, double x);
3157struct s1 {int (*f) (int a);};
3158struct s2 {int (*f) (double a);};
3159int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3160int argc;
3161char **argv;
3162int
3163main ()
3164{
3165return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3166 ;
3167 return 0;
3168}
3169_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003170for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003172do
3173 CC="$ac_save_CC $ac_arg"
Benny Prijono28d3c562012-03-30 07:10:13 +00003174 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003175 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003176fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003177rm -f core conftest.err conftest.$ac_objext
3178 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003179done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003180rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003181CC=$ac_save_CC
3182
3183fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003184# AC_CACHE_VAL
3185case "x$ac_cv_prog_cc_c89" in
3186 x)
Benny Prijono28d3c562012-03-30 07:10:13 +00003187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3188$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003189 xno)
Benny Prijono28d3c562012-03-30 07:10:13 +00003190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3191$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003192 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003193 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijono28d3c562012-03-30 07:10:13 +00003194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3195$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003196esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003197if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003198
Benny Prijono28d3c562012-03-30 07:10:13 +00003199fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003200
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003207ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003208ac_cpp='$CXXCPP $CPPFLAGS'
3209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003212if test -z "$CXX"; then
3213 if test -n "$CCC"; then
3214 CXX=$CCC
3215 else
3216 if test -n "$ac_tool_prefix"; then
3217 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 +00003218 do
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
3223if test "${ac_cv_prog_CXX+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003225else
3226 if test -n "$CXX"; then
3227 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3228else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003234 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003235 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 +00003236 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003238 break 2
3239 fi
3240done
Benny Prijono28d3c562012-03-30 07:10:13 +00003241 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003242IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003243
3244fi
3245fi
3246CXX=$ac_cv_prog_CXX
3247if test -n "$CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3249$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003250else
Benny Prijono28d3c562012-03-30 07:10:13 +00003251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003253fi
3254
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003255
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003256 test -n "$CXX" && break
3257 done
3258fi
3259if test -z "$CXX"; then
3260 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003261 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 +00003262do
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266$as_echo_n "checking for $ac_word... " >&6; }
3267if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003269else
3270 if test -n "$ac_ct_CXX"; then
3271 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3272else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003278 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003279 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 +00003280 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003282 break 2
3283 fi
3284done
Benny Prijono28d3c562012-03-30 07:10:13 +00003285 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003286IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003287
3288fi
3289fi
3290ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3291if test -n "$ac_ct_CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3293$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003294else
Benny Prijono28d3c562012-03-30 07:10:13 +00003295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003297fi
3298
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003299
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003300 test -n "$ac_ct_CXX" && break
3301done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003302
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003303 if test "x$ac_ct_CXX" = x; then
3304 CXX="g++"
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00003308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003310ac_tool_warned=yes ;;
3311esac
3312 CXX=$ac_ct_CXX
3313 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003314fi
3315
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003316 fi
3317fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003318# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00003319$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3320set X $ac_compile
3321ac_compiler=$2
3322for ac_option in --version -v -V -qversion; do
3323 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003331 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00003332 if test -s conftest.err; then
3333 sed '10a\
3334... rest of stderr output deleted ...
3335 10q' conftest.err >conftest.er1
3336 cat conftest.er1 >&5
3337 fi
3338 rm -f conftest.er1 conftest.err
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003342
Benny Prijono28d3c562012-03-30 07:10:13 +00003343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3344$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3345if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003347else
Benny Prijono28d3c562012-03-30 07:10:13 +00003348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003349/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003350
3351int
3352main ()
3353{
3354#ifndef __GNUC__
3355 choke me
3356#endif
3357
3358 ;
3359 return 0;
3360}
3361_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003362if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003363 ac_compiler_gnu=yes
3364else
Benny Prijono28d3c562012-03-30 07:10:13 +00003365 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003366fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003368ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3369
3370fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3372$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3373if test $ac_compiler_gnu = yes; then
3374 GXX=yes
3375else
3376 GXX=
3377fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003378ac_test_CXXFLAGS=${CXXFLAGS+set}
3379ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3381$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3382if test "${ac_cv_prog_cxx_g+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003384else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003385 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3386 ac_cxx_werror_flag=yes
3387 ac_cv_prog_cxx_g=no
3388 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003390/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003391
3392int
3393main ()
3394{
3395
3396 ;
3397 return 0;
3398}
3399_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003400if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003401 ac_cv_prog_cxx_g=yes
3402else
Benny Prijono28d3c562012-03-30 07:10:13 +00003403 CXXFLAGS=""
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003405/* end confdefs.h. */
3406
3407int
3408main ()
3409{
3410
3411 ;
3412 return 0;
3413}
3414_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003415if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003416
Benny Prijono28d3c562012-03-30 07:10:13 +00003417else
3418 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003419 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003421/* end confdefs.h. */
3422
3423int
3424main ()
3425{
3426
3427 ;
3428 return 0;
3429}
3430_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003431if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003432 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003433fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003435fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3440fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3442$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003443if test "$ac_test_CXXFLAGS" = set; then
3444 CXXFLAGS=$ac_save_CXXFLAGS
3445elif test $ac_cv_prog_cxx_g = yes; then
3446 if test "$GXX" = yes; then
3447 CXXFLAGS="-g -O2"
3448 else
3449 CXXFLAGS="-g"
3450 fi
3451else
3452 if test "$GXX" = yes; then
3453 CXXFLAGS="-O2"
3454 else
3455 CXXFLAGS=
3456 fi
3457fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003464ac_ext=c
3465ac_cpp='$CPP $CPPFLAGS'
3466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003470
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003471if test -z "$CROSS_COMPILE"; then
3472 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3473fi
3474
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003475if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003476
3477if test "$LD" = ""; then LD="$CC"; fi
3478
Sauw Minge7dbbc82011-10-24 09:28:13 +00003479if test "$LDOUT" = ""; then LDOUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003480
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003481if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003482
3483if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3484
3485if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3486
3487if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3488
Sauw Minge7dbbc82011-10-24 09:28:13 +00003489if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003490
3491if test "$CC_INC" = ""; then CC_INC="-I"; fi
3492
3493if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3494
3495if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3496
3497if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3498
3499
3500
3501
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003502
Benny Prijono0822c192008-08-21 20:59:58 +00003503
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003504
3505case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003506 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003507 if pwd -W 2&> /dev/null; then
3508 ac_pjdir=`pwd -W`
3509 else
3510 # We're probably cross-compiling mingw on Linux
3511 ac_pjdir=`pwd`
3512 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003513 ;;
3514 *)
3515 ac_pjdir=`pwd`
3516 ;;
3517esac
Benny Prijono12483112007-03-12 10:44:38 +00003518
3519
Benny Prijono28d3c562012-03-30 07:10:13 +00003520case $target in
3521 *mingw* | *cygw* | *win32* | *w32* )
3522 ac_shlib_suffix=dll
3523 ;;
3524 *darwin*)
3525 ac_shlib_suffix=dylib
3526 ;;
3527 *)
3528 ac_shlib_suffix=so
3529 ;;
3530esac
Benny Prijono36d32492011-12-28 08:42:23 +00003531
Benny Prijono28d3c562012-03-30 07:10:13 +00003532
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3534$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3535if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003537else
3538 ac_check_lib_save_LIBS=$LIBS
3539LIBS="-lpthread $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003541/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003542
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003543/* Override any GCC internal prototype to avoid an error.
3544 Use char because int might match the return type of a GCC
3545 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003546#ifdef __cplusplus
3547extern "C"
3548#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003549char pthread_create ();
3550int
3551main ()
3552{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003553return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003554 ;
3555 return 0;
3556}
3557_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003558if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003559 ac_cv_lib_pthread_pthread_create=yes
3560else
Benny Prijono28d3c562012-03-30 07:10:13 +00003561 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003562fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003563rm -f core conftest.err conftest.$ac_objext \
3564 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003565LIBS=$ac_check_lib_save_LIBS
3566fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3568$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3569if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003570 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003571#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003572_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003573
3574 LIBS="-lpthread $LIBS"
3575
3576fi
3577
Benny Prijono28d3c562012-03-30 07:10:13 +00003578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3579$as_echo_n "checking for puts in -lwsock32... " >&6; }
3580if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003582else
3583 ac_check_lib_save_LIBS=$LIBS
3584LIBS="-lwsock32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003586/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003587
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003588/* Override any GCC internal prototype to avoid an error.
3589 Use char because int might match the return type of a GCC
3590 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003591#ifdef __cplusplus
3592extern "C"
3593#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003594char puts ();
3595int
3596main ()
3597{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003598return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003599 ;
3600 return 0;
3601}
3602_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003603if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003604 ac_cv_lib_wsock32_puts=yes
3605else
Benny Prijono28d3c562012-03-30 07:10:13 +00003606 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003607fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003608rm -f core conftest.err conftest.$ac_objext \
3609 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003610LIBS=$ac_check_lib_save_LIBS
3611fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3613$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3614if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003615 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003616#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003617_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003618
3619 LIBS="-lwsock32 $LIBS"
3620
3621fi
3622
Benny Prijono28d3c562012-03-30 07:10:13 +00003623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3624$as_echo_n "checking for puts in -lws2_32... " >&6; }
3625if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003627else
3628 ac_check_lib_save_LIBS=$LIBS
3629LIBS="-lws2_32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003631/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003632
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003633/* Override any GCC internal prototype to avoid an error.
3634 Use char because int might match the return type of a GCC
3635 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003636#ifdef __cplusplus
3637extern "C"
3638#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003639char puts ();
3640int
3641main ()
3642{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003643return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003644 ;
3645 return 0;
3646}
3647_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003648if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003649 ac_cv_lib_ws2_32_puts=yes
3650else
Benny Prijono28d3c562012-03-30 07:10:13 +00003651 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003652fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003653rm -f core conftest.err conftest.$ac_objext \
3654 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003655LIBS=$ac_check_lib_save_LIBS
3656fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3658$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3659if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003660 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003661#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003662_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003663
3664 LIBS="-lws2_32 $LIBS"
3665
3666fi
3667
Benny Prijono28d3c562012-03-30 07:10:13 +00003668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3669$as_echo_n "checking for puts in -lole32... " >&6; }
3670if test "${ac_cv_lib_ole32_puts+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003672else
3673 ac_check_lib_save_LIBS=$LIBS
3674LIBS="-lole32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003676/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003677
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003678/* Override any GCC internal prototype to avoid an error.
3679 Use char because int might match the return type of a GCC
3680 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003681#ifdef __cplusplus
3682extern "C"
3683#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003684char puts ();
3685int
3686main ()
3687{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003688return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003689 ;
3690 return 0;
3691}
3692_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003693if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003694 ac_cv_lib_ole32_puts=yes
3695else
Benny Prijono28d3c562012-03-30 07:10:13 +00003696 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003697fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003698rm -f core conftest.err conftest.$ac_objext \
3699 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003700LIBS=$ac_check_lib_save_LIBS
3701fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3703$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3704if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003705 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003706#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003707_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003708
3709 LIBS="-lole32 $LIBS"
3710
3711fi
3712
Benny Prijono28d3c562012-03-30 07:10:13 +00003713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3714$as_echo_n "checking for puts in -lwinmm... " >&6; }
3715if test "${ac_cv_lib_winmm_puts+set}" = set; then :
3716 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003717else
3718 ac_check_lib_save_LIBS=$LIBS
3719LIBS="-lwinmm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003721/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003722
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003723/* Override any GCC internal prototype to avoid an error.
3724 Use char because int might match the return type of a GCC
3725 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003726#ifdef __cplusplus
3727extern "C"
3728#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003729char puts ();
3730int
3731main ()
3732{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003733return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003734 ;
3735 return 0;
3736}
3737_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003738if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003739 ac_cv_lib_winmm_puts=yes
3740else
Benny Prijono28d3c562012-03-30 07:10:13 +00003741 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003742fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003743rm -f core conftest.err conftest.$ac_objext \
3744 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003745LIBS=$ac_check_lib_save_LIBS
3746fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3748$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3749if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003750 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003751#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003752_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003753
3754 LIBS="-lwinmm $LIBS"
3755
3756fi
3757
Benny Prijono28d3c562012-03-30 07:10:13 +00003758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3759$as_echo_n "checking for puts in -lsocket... " >&6; }
3760if test "${ac_cv_lib_socket_puts+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003762else
3763 ac_check_lib_save_LIBS=$LIBS
3764LIBS="-lsocket $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003766/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003767
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003768/* Override any GCC internal prototype to avoid an error.
3769 Use char because int might match the return type of a GCC
3770 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003771#ifdef __cplusplus
3772extern "C"
3773#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003774char puts ();
3775int
3776main ()
3777{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003778return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003779 ;
3780 return 0;
3781}
3782_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003783if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003784 ac_cv_lib_socket_puts=yes
3785else
Benny Prijono28d3c562012-03-30 07:10:13 +00003786 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003787fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003788rm -f core conftest.err conftest.$ac_objext \
3789 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003790LIBS=$ac_check_lib_save_LIBS
3791fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3793$as_echo "$ac_cv_lib_socket_puts" >&6; }
3794if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003795 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003796#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003797_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003798
3799 LIBS="-lsocket $LIBS"
3800
3801fi
3802
Benny Prijono28d3c562012-03-30 07:10:13 +00003803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3804$as_echo_n "checking for puts in -lrt... " >&6; }
3805if test "${ac_cv_lib_rt_puts+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003807else
3808 ac_check_lib_save_LIBS=$LIBS
3809LIBS="-lrt $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003811/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003812
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003813/* Override any GCC internal prototype to avoid an error.
3814 Use char because int might match the return type of a GCC
3815 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003816#ifdef __cplusplus
3817extern "C"
3818#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003819char puts ();
3820int
3821main ()
3822{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003823return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003824 ;
3825 return 0;
3826}
3827_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003828if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003829 ac_cv_lib_rt_puts=yes
3830else
Benny Prijono28d3c562012-03-30 07:10:13 +00003831 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003832fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003833rm -f core conftest.err conftest.$ac_objext \
3834 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003835LIBS=$ac_check_lib_save_LIBS
3836fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3838$as_echo "$ac_cv_lib_rt_puts" >&6; }
3839if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003840 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003841#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003842_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003843
3844 LIBS="-lrt $LIBS"
3845
3846fi
3847
Benny Prijono28d3c562012-03-30 07:10:13 +00003848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3849$as_echo_n "checking for puts in -lnsl... " >&6; }
3850if test "${ac_cv_lib_nsl_puts+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003852else
3853 ac_check_lib_save_LIBS=$LIBS
3854LIBS="-lnsl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003856/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003857
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003858/* Override any GCC internal prototype to avoid an error.
3859 Use char because int might match the return type of a GCC
3860 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003861#ifdef __cplusplus
3862extern "C"
3863#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003864char puts ();
3865int
3866main ()
3867{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003868return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003869 ;
3870 return 0;
3871}
3872_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003873if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003874 ac_cv_lib_nsl_puts=yes
3875else
Benny Prijono28d3c562012-03-30 07:10:13 +00003876 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003877fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003878rm -f core conftest.err conftest.$ac_objext \
3879 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003880LIBS=$ac_check_lib_save_LIBS
3881fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3883$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3884if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003885 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003886#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003887_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003888
3889 LIBS="-lnsl $LIBS"
3890
3891fi
3892
Benny Prijono28d3c562012-03-30 07:10:13 +00003893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3894$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3895if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003897else
3898 ac_check_lib_save_LIBS=$LIBS
3899LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003901/* end confdefs.h. */
3902
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003903/* Override any GCC internal prototype to avoid an error.
3904 Use char because int might match the return type of a GCC
3905 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003906#ifdef __cplusplus
3907extern "C"
3908#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003909char uuid_generate ();
3910int
3911main ()
3912{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003913return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003914 ;
3915 return 0;
3916}
3917_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003918if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003919 ac_cv_lib_uuid_uuid_generate=yes
3920else
Benny Prijono28d3c562012-03-30 07:10:13 +00003921 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003922fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003923rm -f core conftest.err conftest.$ac_objext \
3924 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003925LIBS=$ac_check_lib_save_LIBS
3926fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3928$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3929if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003930 cat >>confdefs.h <<_ACEOF
3931#define HAVE_LIBUUID 1
3932_ACEOF
3933
3934 LIBS="-luuid $LIBS"
3935
3936fi
3937
Benny Prijono28d3c562012-03-30 07:10:13 +00003938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3939$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3940if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003942else
3943 ac_check_lib_save_LIBS=$LIBS
3944LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003946/* end confdefs.h. */
3947
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003948/* Override any GCC internal prototype to avoid an error.
3949 Use char because int might match the return type of a GCC
3950 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003951#ifdef __cplusplus
3952extern "C"
3953#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003954char uuid_generate ();
3955int
3956main ()
3957{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003958return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003959 ;
3960 return 0;
3961}
3962_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003963if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003964 ac_cv_lib_uuid_uuid_generate=yes
3965else
Benny Prijono28d3c562012-03-30 07:10:13 +00003966 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003967fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003968rm -f core conftest.err conftest.$ac_objext \
3969 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003970LIBS=$ac_check_lib_save_LIBS
3971fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3973$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3974if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003975 ac_has_uuid_lib=1
3976fi
3977
3978
Benny Prijono28d3c562012-03-30 07:10:13 +00003979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
3980$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003981cat >>confdefs.h <<_ACEOF
3982#define PJ_M_NAME "$target_cpu"
3983_ACEOF
3984
3985
Benny Prijono28d3c562012-03-30 07:10:13 +00003986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
3987$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003988case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00003989 sparc64-* | ia64-* | x86_64-* )
Benny Prijono28d3c562012-03-30 07:10:13 +00003990 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003991
Benny Prijono28d3c562012-03-30 07:10:13 +00003992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
3993$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003994 ;;
3995 * )
Benny Prijono28d3c562012-03-30 07:10:13 +00003996 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003997
Benny Prijono28d3c562012-03-30 07:10:13 +00003998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
3999$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004000 ;;
4001esac
4002
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004003
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono28d3c562012-03-30 07:10:13 +00004009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4010$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004011# On Suns, sometimes $CPP names a directory.
4012if test -n "$CPP" && test -d "$CPP"; then
4013 CPP=
4014fi
4015if test -z "$CPP"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00004016 if test "${ac_cv_prog_CPP+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004018else
4019 # Double quotes because CPP needs to be expanded
4020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4021 do
4022 ac_preproc_ok=false
4023for ac_c_preproc_warn_flag in '' yes
4024do
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
4027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
4029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004032/* end confdefs.h. */
4033#ifdef __STDC__
4034# include <limits.h>
4035#else
4036# include <assert.h>
4037#endif
4038 Syntax error
4039_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004040if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004041
Benny Prijono28d3c562012-03-30 07:10:13 +00004042else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004043 # Broken: fails on valid input.
4044continue
4045fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004046rm -f conftest.err conftest.$ac_ext
4047
4048 # OK, works on sane cases. Now check whether nonexistent headers
4049 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004051/* end confdefs.h. */
4052#include <ac_nonexistent.h>
4053_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004054if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004055 # Broken: success on invalid input.
4056continue
4057else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004058 # Passes both tests.
4059ac_preproc_ok=:
4060break
4061fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004062rm -f conftest.err conftest.$ac_ext
4063
4064done
4065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4066rm -f conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004067if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004068 break
4069fi
4070
4071 done
4072 ac_cv_prog_CPP=$CPP
4073
4074fi
4075 CPP=$ac_cv_prog_CPP
4076else
4077 ac_cv_prog_CPP=$CPP
4078fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4080$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004081ac_preproc_ok=false
4082for ac_c_preproc_warn_flag in '' yes
4083do
4084 # Use a header file that comes with gcc, so configuring glibc
4085 # with a fresh cross-compiler works.
4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087 # <limits.h> exists even on freestanding compilers.
4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4089 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004091/* end confdefs.h. */
4092#ifdef __STDC__
4093# include <limits.h>
4094#else
4095# include <assert.h>
4096#endif
4097 Syntax error
4098_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004099if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004100
Benny Prijono28d3c562012-03-30 07:10:13 +00004101else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004102 # Broken: fails on valid input.
4103continue
4104fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004105rm -f conftest.err conftest.$ac_ext
4106
4107 # OK, works on sane cases. Now check whether nonexistent headers
4108 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004110/* end confdefs.h. */
4111#include <ac_nonexistent.h>
4112_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004113if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004114 # Broken: success on invalid input.
4115continue
4116else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004117 # Passes both tests.
4118ac_preproc_ok=:
4119break
4120fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004121rm -f conftest.err conftest.$ac_ext
4122
4123done
4124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4125rm -f conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004126if $ac_preproc_ok; then :
4127
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004128else
Benny Prijono28d3c562012-03-30 07:10:13 +00004129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131as_fn_error "C preprocessor \"$CPP\" fails sanity check
4132See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004133fi
4134
4135ac_ext=c
4136ac_cpp='$CPP $CPPFLAGS'
4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141
Benny Prijono28d3c562012-03-30 07:10:13 +00004142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4143$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4144if test "${ac_cv_path_GREP+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004146else
Benny Prijono28d3c562012-03-30 07:10:13 +00004147 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004148 ac_path_GREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004149 # Loop through the user's path and test for each of PROGNAME-LIST
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004155 for ac_prog in grep ggrep; do
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4158 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4159# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004160 # Check for GNU $ac_path_GREP
4161case `"$ac_path_GREP" --version 2>&1` in
4162*GNU*)
4163 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4164*)
4165 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004166 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004167 while :
4168 do
4169 cat "conftest.in" "conftest.in" >"conftest.tmp"
4170 mv "conftest.tmp" "conftest.in"
4171 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004172 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004173 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004175 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004176 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4177 # Best one so far, save it but keep looking for a better one
4178 ac_cv_path_GREP="$ac_path_GREP"
4179 ac_path_GREP_max=$ac_count
4180 fi
4181 # 10*(2^10) chars as input seems more than enough
4182 test $ac_count -gt 10 && break
4183 done
4184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185esac
4186
Benny Prijono28d3c562012-03-30 07:10:13 +00004187 $ac_path_GREP_found && break 3
4188 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004189 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004190 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004191IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004192 if test -z "$ac_cv_path_GREP"; then
4193 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4194 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004195else
4196 ac_cv_path_GREP=$GREP
4197fi
4198
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004199fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4201$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004202 GREP="$ac_cv_path_GREP"
4203
4204
Benny Prijono28d3c562012-03-30 07:10:13 +00004205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4206$as_echo_n "checking for egrep... " >&6; }
4207if test "${ac_cv_path_EGREP+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004209else
4210 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4211 then ac_cv_path_EGREP="$GREP -E"
4212 else
Benny Prijono28d3c562012-03-30 07:10:13 +00004213 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004214 ac_path_EGREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004215 # Loop through the user's path and test for each of PROGNAME-LIST
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004221 for ac_prog in egrep; do
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4224 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4225# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004226 # Check for GNU $ac_path_EGREP
4227case `"$ac_path_EGREP" --version 2>&1` in
4228*GNU*)
4229 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4230*)
4231 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004232 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004233 while :
4234 do
4235 cat "conftest.in" "conftest.in" >"conftest.tmp"
4236 mv "conftest.tmp" "conftest.in"
4237 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004238 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004239 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004241 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004242 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4243 # Best one so far, save it but keep looking for a better one
4244 ac_cv_path_EGREP="$ac_path_EGREP"
4245 ac_path_EGREP_max=$ac_count
4246 fi
4247 # 10*(2^10) chars as input seems more than enough
4248 test $ac_count -gt 10 && break
4249 done
4250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251esac
4252
Benny Prijono28d3c562012-03-30 07:10:13 +00004253 $ac_path_EGREP_found && break 3
4254 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004255 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004256 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004257IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004258 if test -z "$ac_cv_path_EGREP"; then
4259 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4260 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004261else
4262 ac_cv_path_EGREP=$EGREP
4263fi
4264
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004265 fi
4266fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4268$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004269 EGREP="$ac_cv_path_EGREP"
4270
4271
Benny Prijono28d3c562012-03-30 07:10:13 +00004272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4273$as_echo_n "checking for ANSI C header files... " >&6; }
4274if test "${ac_cv_header_stdc+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004276else
Benny Prijono28d3c562012-03-30 07:10:13 +00004277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004278/* end confdefs.h. */
4279#include <stdlib.h>
4280#include <stdarg.h>
4281#include <string.h>
4282#include <float.h>
4283
4284int
4285main ()
4286{
4287
4288 ;
4289 return 0;
4290}
4291_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004292if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004293 ac_cv_header_stdc=yes
4294else
Benny Prijono28d3c562012-03-30 07:10:13 +00004295 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004296fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298
4299if test $ac_cv_header_stdc = yes; then
4300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004302/* end confdefs.h. */
4303#include <string.h>
4304
4305_ACEOF
4306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004307 $EGREP "memchr" >/dev/null 2>&1; then :
4308
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004309else
4310 ac_cv_header_stdc=no
4311fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004312rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004313
4314fi
4315
4316if test $ac_cv_header_stdc = yes; then
4317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004319/* end confdefs.h. */
4320#include <stdlib.h>
4321
4322_ACEOF
4323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004324 $EGREP "free" >/dev/null 2>&1; then :
4325
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004326else
4327 ac_cv_header_stdc=no
4328fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004329rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004330
4331fi
4332
4333if test $ac_cv_header_stdc = yes; then
4334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijono28d3c562012-03-30 07:10:13 +00004335 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004336 :
4337else
Benny Prijono28d3c562012-03-30 07:10:13 +00004338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004339/* end confdefs.h. */
4340#include <ctype.h>
4341#include <stdlib.h>
4342#if ((' ' & 0x0FF) == 0x020)
4343# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4344# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4345#else
4346# define ISLOWER(c) \
4347 (('a' <= (c) && (c) <= 'i') \
4348 || ('j' <= (c) && (c) <= 'r') \
4349 || ('s' <= (c) && (c) <= 'z'))
4350# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4351#endif
4352
4353#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4354int
4355main ()
4356{
4357 int i;
4358 for (i = 0; i < 256; i++)
4359 if (XOR (islower (i), ISLOWER (i))
4360 || toupper (i) != TOUPPER (i))
4361 return 2;
4362 return 0;
4363}
4364_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004365if ac_fn_c_try_run "$LINENO"; then :
4366
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004367else
Benny Prijono28d3c562012-03-30 07:10:13 +00004368 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004369fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4371 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004372fi
4373
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004374fi
4375fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4377$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004378if test $ac_cv_header_stdc = yes; then
4379
Benny Prijono28d3c562012-03-30 07:10:13 +00004380$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004381
4382fi
4383
4384# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004385for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4386 inttypes.h stdint.h unistd.h
Benny Prijono28d3c562012-03-30 07:10:13 +00004387do :
4388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4390"
4391eval as_val=\$$as_ac_Header
4392 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004393 cat >>confdefs.h <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004394#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004395_ACEOF
4396
4397fi
4398
4399done
4400
4401
Benny Prijono28d3c562012-03-30 07:10:13 +00004402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4403$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4404if test "${ac_cv_c_bigendian+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004406else
Benny Prijono28d3c562012-03-30 07:10:13 +00004407 ac_cv_c_bigendian=unknown
4408 # See if we're dealing with a universal compiler.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h. */
4411#ifndef __APPLE_CC__
4412 not a universal capable compiler
4413 #endif
4414 typedef int dummy;
4415
Benny Prijonod5233702010-01-13 13:09:45 +00004416_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004417if ac_fn_c_try_compile "$LINENO"; then :
4418
4419 # Check for potential -arch flags. It is not universal unless
4420 # there are at least two -arch flags with different values.
4421 ac_arch=
4422 ac_prev=
4423 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4424 if test -n "$ac_prev"; then
4425 case $ac_word in
4426 i?86 | x86_64 | ppc | ppc64)
4427 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4428 ac_arch=$ac_word
4429 else
4430 ac_cv_c_bigendian=universal
4431 break
4432 fi
4433 ;;
4434 esac
4435 ac_prev=
4436 elif test "x$ac_word" = "x-arch"; then
4437 ac_prev=arch
4438 fi
4439 done
4440fi
4441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 if test $ac_cv_c_bigendian = unknown; then
4443 # See if sys/param.h defines the BYTE_ORDER macro.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004445/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004446#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004447 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004448
4449int
4450main ()
4451{
Benny Prijono28d3c562012-03-30 07:10:13 +00004452#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4453 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4454 && LITTLE_ENDIAN)
4455 bogus endian macros
4456 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004457
4458 ;
4459 return 0;
4460}
4461_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004462if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004463 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijono28d3c562012-03-30 07:10:13 +00004464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004465/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004466#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004467 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004468
4469int
4470main ()
4471{
4472#if BYTE_ORDER != BIG_ENDIAN
Benny Prijono28d3c562012-03-30 07:10:13 +00004473 not big endian
4474 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004475
4476 ;
4477 return 0;
4478}
4479_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004480if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004481 ac_cv_c_bigendian=yes
4482else
Benny Prijono28d3c562012-03-30 07:10:13 +00004483 ac_cv_c_bigendian=no
Benny Prijono36d32492011-12-28 08:42:23 +00004484fi
Benny Prijono36d32492011-12-28 08:42:23 +00004485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004486fi
4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 fi
4489 if test $ac_cv_c_bigendian = unknown; then
4490 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00004492/* end confdefs.h. */
Benny Prijono28d3c562012-03-30 07:10:13 +00004493#include <limits.h>
4494
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004495int
4496main ()
4497{
Benny Prijono28d3c562012-03-30 07:10:13 +00004498#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4499 bogus endian macros
4500 #endif
4501
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004502 ;
4503 return 0;
4504}
4505_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004506if ac_fn_c_try_compile "$LINENO"; then :
4507 # It does; now see whether it defined to _BIG_ENDIAN or not.
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h. */
4510#include <limits.h>
4511
4512int
4513main ()
4514{
4515#ifndef _BIG_ENDIAN
4516 not big endian
4517 #endif
4518
4519 ;
4520 return 0;
4521}
4522_ACEOF
4523if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004524 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004525else
Benny Prijono28d3c562012-03-30 07:10:13 +00004526 ac_cv_c_bigendian=no
Benny Prijonoe1105232011-10-26 06:49:34 +00004527fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529fi
4530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 fi
4532 if test $ac_cv_c_bigendian = unknown; then
4533 # Compile a test program.
4534 if test "$cross_compiling" = yes; then :
4535 # Try to guess by grepping values from an object file.
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h. */
4538short int ascii_mm[] =
4539 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4540 short int ascii_ii[] =
4541 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4542 int use_ascii (int i) {
4543 return ascii_mm[i] + ascii_ii[i];
4544 }
4545 short int ebcdic_ii[] =
4546 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4547 short int ebcdic_mm[] =
4548 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4549 int use_ebcdic (int i) {
4550 return ebcdic_mm[i] + ebcdic_ii[i];
4551 }
4552 extern int foo;
Benny Prijono36d32492011-12-28 08:42:23 +00004553
Benny Prijono28d3c562012-03-30 07:10:13 +00004554int
4555main ()
4556{
4557return use_ascii (foo) == use_ebcdic (foo);
4558 ;
4559 return 0;
4560}
4561_ACEOF
4562if ac_fn_c_try_compile "$LINENO"; then :
4563 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4564 ac_cv_c_bigendian=yes
4565 fi
4566 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4567 if test "$ac_cv_c_bigendian" = unknown; then
4568 ac_cv_c_bigendian=no
4569 else
4570 # finding both strings is unlikely to happen, but who knows?
4571 ac_cv_c_bigendian=unknown
4572 fi
4573 fi
4574fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004576else
Benny Prijono28d3c562012-03-30 07:10:13 +00004577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004578/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004579$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004580int
4581main ()
4582{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004583
Benny Prijono28d3c562012-03-30 07:10:13 +00004584 /* Are we little or big endian? From Harbison&Steele. */
4585 union
4586 {
4587 long int l;
4588 char c[sizeof (long int)];
4589 } u;
4590 u.l = 1;
4591 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004592
4593 ;
4594 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004595}
4596_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004597if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004598 ac_cv_c_bigendian=no
4599else
Benny Prijono28d3c562012-03-30 07:10:13 +00004600 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004601fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4603 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004604fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004605
Benny Prijono28d3c562012-03-30 07:10:13 +00004606 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004607fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4609$as_echo "$ac_cv_c_bigendian" >&6; }
4610 case $ac_cv_c_bigendian in #(
4611 yes)
4612 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4613;; #(
4614 no)
4615 ;; #(
4616 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004617
Benny Prijono28d3c562012-03-30 07:10:13 +00004618$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004619
Benny Prijono28d3c562012-03-30 07:10:13 +00004620 ;; #(
4621 *)
4622 as_fn_error "unknown endianness
4623 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4624 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004625
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004626
Sauw Minge7dbbc82011-10-24 09:28:13 +00004627if test "x$ac_cv_c_bigendian" = "xyes"; then
4628 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4629else
4630 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4631fi
4632
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004633case $target in
4634 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004635 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004636
Benny Prijono28d3c562012-03-30 07:10:13 +00004637 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004638
Benny Prijono28d3c562012-03-30 07:10:13 +00004639 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004640
4641 ;;
4642 *darwin*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004643 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004644
4645 ;;
4646 *linux*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004647 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004648
4649 ;;
4650 *rtems*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004651 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004652
4653 ;;
4654 *sunos* | *solaris* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004655 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004656
4657 ;;
4658 *)
4659 ;;
4660esac
4661
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004662
4663
4664
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004665# Check whether --enable-floating-point was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00004666if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004667 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00004668 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004669
Benny Prijono28d3c562012-03-30 07:10:13 +00004670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4671$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004672 fi
4673else
4674
Benny Prijono28d3c562012-03-30 07:10:13 +00004675 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004676
Benny Prijono28d3c562012-03-30 07:10:13 +00004677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4678$as_echo "Checking if floating point is disabled... no" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4680$as_echo_n "checking for fmod in -lm... " >&6; }
4681if test "${ac_cv_lib_m_fmod+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004683else
4684 ac_check_lib_save_LIBS=$LIBS
4685LIBS="-lm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00004686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004687/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004688
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004689/* Override any GCC internal prototype to avoid an error.
4690 Use char because int might match the return type of a GCC
4691 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004692#ifdef __cplusplus
4693extern "C"
4694#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004695char fmod ();
4696int
4697main ()
4698{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004699return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004700 ;
4701 return 0;
4702}
4703_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004704if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004705 ac_cv_lib_m_fmod=yes
4706else
Benny Prijono28d3c562012-03-30 07:10:13 +00004707 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004708fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004709rm -f core conftest.err conftest.$ac_objext \
4710 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004711LIBS=$ac_check_lib_save_LIBS
4712fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4714$as_echo "$ac_cv_lib_m_fmod" >&6; }
4715if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004716 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004717#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004718_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004719
4720 LIBS="-lm $LIBS"
4721
4722fi
4723
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004724
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004725fi
4726
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004727
4728
Benny Prijono28d3c562012-03-30 07:10:13 +00004729ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4730if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4731 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004732
4733fi
4734
4735
Benny Prijono28d3c562012-03-30 07:10:13 +00004736ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4737if test "x$ac_cv_header_assert_h" = x""yes; then :
4738 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004739
4740fi
4741
4742
Benny Prijono28d3c562012-03-30 07:10:13 +00004743ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4744if test "x$ac_cv_header_ctype_h" = x""yes; then :
4745 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004746
4747fi
4748
4749
4750
4751case $target in
4752 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004753 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004754
4755 ;;
4756 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00004757 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4758if test "x$ac_cv_header_errno_h" = x""yes; then :
4759 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004760
4761fi
4762
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004763
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004764 ;;
4765esac
4766
Benny Prijono28d3c562012-03-30 07:10:13 +00004767ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4768if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4769 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004770
4771fi
4772
4773
Benny Prijono28d3c562012-03-30 07:10:13 +00004774ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4775if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4776 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004777
4778fi
4779
4780
Benny Prijono28d3c562012-03-30 07:10:13 +00004781ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4782if test "x$ac_cv_header_limits_h" = x""yes; then :
4783 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004784
4785fi
4786
4787
Benny Prijono28d3c562012-03-30 07:10:13 +00004788ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4789if test "x$ac_cv_header_malloc_h" = x""yes; then :
4790 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004791
4792fi
4793
4794
Benny Prijono28d3c562012-03-30 07:10:13 +00004795ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4796if test "x$ac_cv_header_netdb_h" = x""yes; then :
4797 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004798
4799fi
4800
4801
Benny Prijono28d3c562012-03-30 07:10:13 +00004802ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4803if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4804 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004805
4806fi
4807
4808
Benny Prijono28d3c562012-03-30 07:10:13 +00004809ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4810if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4811 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijonoe3e65802011-02-28 07:44:19 +00004812
4813fi
4814
4815
Benny Prijono28d3c562012-03-30 07:10:13 +00004816ac_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 +00004817 # include <sys/types.h>
4818 #endif
4819 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004820 # include <netinet/in_systm.h>
4821 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004822 #if PJ_HAS_NETINET_IN_H
4823 # include <netinet/in.h>
4824 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004825
Benny Prijono28d3c562012-03-30 07:10:13 +00004826"
4827if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4828 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004829
Benny Prijono36d32492011-12-28 08:42:23 +00004830fi
4831
Sauw Minge7dbbc82011-10-24 09:28:13 +00004832
Benny Prijono28d3c562012-03-30 07:10:13 +00004833ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4834if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4835 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004836
Benny Prijono36d32492011-12-28 08:42:23 +00004837fi
4838
Benny Prijono36d32492011-12-28 08:42:23 +00004839
Benny Prijono28d3c562012-03-30 07:10:13 +00004840ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4841if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
4842 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4843if test "x$ac_cv_func_getifaddrs" = x""yes; then :
4844 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004845
4846fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004847
Sauw Minge7dbbc82011-10-24 09:28:13 +00004848fi
4849
Sauw Minge7dbbc82011-10-24 09:28:13 +00004850
Benny Prijono28d3c562012-03-30 07:10:13 +00004851ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4852if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4853 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004854
Benny Prijono36d32492011-12-28 08:42:23 +00004855fi
4856
Benny Prijono36d32492011-12-28 08:42:23 +00004857
Benny Prijono28d3c562012-03-30 07:10:13 +00004858ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4859if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4860 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004861
Benny Prijono36d32492011-12-28 08:42:23 +00004862fi
4863
Benny Prijono36d32492011-12-28 08:42:23 +00004864
Benny Prijono28d3c562012-03-30 07:10:13 +00004865ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4866if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4867 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004868
4869fi
Benny Prijono36d32492011-12-28 08:42:23 +00004870
Benny Prijono36d32492011-12-28 08:42:23 +00004871
Benny Prijono28d3c562012-03-30 07:10:13 +00004872ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4873if test "x$ac_cv_header_stddef_h" = x""yes; then :
4874 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004875
Benny Prijono36d32492011-12-28 08:42:23 +00004876fi
4877
Sauw Minge7dbbc82011-10-24 09:28:13 +00004878
Benny Prijono28d3c562012-03-30 07:10:13 +00004879ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4880if test "x$ac_cv_header_stdio_h" = x""yes; then :
4881 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004882
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004883fi
4884
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004885
Benny Prijono28d3c562012-03-30 07:10:13 +00004886ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4887if test "x$ac_cv_header_stdint_h" = x""yes; then :
4888 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004889
Benny Prijono36d32492011-12-28 08:42:23 +00004890fi
4891
Benny Prijono36d32492011-12-28 08:42:23 +00004892
Benny Prijono28d3c562012-03-30 07:10:13 +00004893ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4894if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4895 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004896
Benny Prijono36d32492011-12-28 08:42:23 +00004897fi
4898
Benny Prijono36d32492011-12-28 08:42:23 +00004899
Benny Prijono28d3c562012-03-30 07:10:13 +00004900ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4901if test "x$ac_cv_header_string_h" = x""yes; then :
4902 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004903
Sauw Minge7dbbc82011-10-24 09:28:13 +00004904fi
4905
Sauw Minge7dbbc82011-10-24 09:28:13 +00004906
Benny Prijono28d3c562012-03-30 07:10:13 +00004907ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4908if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4909 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004910
Benny Prijono36d32492011-12-28 08:42:23 +00004911fi
4912
Benny Prijono36d32492011-12-28 08:42:23 +00004913
Benny Prijono28d3c562012-03-30 07:10:13 +00004914ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4915if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4916 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004917
Benny Prijono36d32492011-12-28 08:42:23 +00004918fi
4919
Benny Prijono36d32492011-12-28 08:42:23 +00004920
Benny Prijono28d3c562012-03-30 07:10:13 +00004921ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4922if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4923 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004924
4925fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004926
Sauw Minge7dbbc82011-10-24 09:28:13 +00004927
Benny Prijono28d3c562012-03-30 07:10:13 +00004928ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4929if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4930 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004931
Benny Prijono36d32492011-12-28 08:42:23 +00004932fi
Benny Prijono36d32492011-12-28 08:42:23 +00004933
Benny Prijono36d32492011-12-28 08:42:23 +00004934
Benny Prijono28d3c562012-03-30 07:10:13 +00004935ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4936if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4937 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004938
Benny Prijono36d32492011-12-28 08:42:23 +00004939fi
4940
Benny Prijono36d32492011-12-28 08:42:23 +00004941
Benny Prijono28d3c562012-03-30 07:10:13 +00004942ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4943if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4944 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004945
Benny Prijono36d32492011-12-28 08:42:23 +00004946fi
Benny Prijono36d32492011-12-28 08:42:23 +00004947
Sauw Minge7dbbc82011-10-24 09:28:13 +00004948
Benny Prijono28d3c562012-03-30 07:10:13 +00004949ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4950if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4951 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004952
Benny Prijono36d32492011-12-28 08:42:23 +00004953fi
4954
Benny Prijono36d32492011-12-28 08:42:23 +00004955
Benny Prijono28d3c562012-03-30 07:10:13 +00004956ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4957if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4958 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004959
Benny Prijono36d32492011-12-28 08:42:23 +00004960fi
4961
Benny Prijono36d32492011-12-28 08:42:23 +00004962
Benny Prijono28d3c562012-03-30 07:10:13 +00004963ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
4964if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
4965 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004966
4967fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004968
Sauw Minge7dbbc82011-10-24 09:28:13 +00004969
Benny Prijono28d3c562012-03-30 07:10:13 +00004970ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4971if test "x$ac_cv_header_time_h" = x""yes; then :
4972 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004973
Benny Prijono36d32492011-12-28 08:42:23 +00004974fi
Benny Prijono36d32492011-12-28 08:42:23 +00004975
Benny Prijono36d32492011-12-28 08:42:23 +00004976
Benny Prijono28d3c562012-03-30 07:10:13 +00004977ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4978if test "x$ac_cv_header_unistd_h" = x""yes; then :
4979 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004980
Benny Prijono36d32492011-12-28 08:42:23 +00004981fi
4982
Benny Prijono36d32492011-12-28 08:42:23 +00004983
Benny Prijono28d3c562012-03-30 07:10:13 +00004984ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4985if test "x$ac_cv_header_winsock_h" = x""yes; then :
4986 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004987
Benny Prijono36d32492011-12-28 08:42:23 +00004988fi
Benny Prijono36d32492011-12-28 08:42:23 +00004989
Sauw Ming68c14572011-07-20 03:00:48 +00004990
Benny Prijono28d3c562012-03-30 07:10:13 +00004991ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4992if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4993 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Sauw Ming68c14572011-07-20 03:00:48 +00004994
Benny Prijono36d32492011-12-28 08:42:23 +00004995fi
Benny Prijono36d32492011-12-28 08:42:23 +00004996
Benny Prijono36d32492011-12-28 08:42:23 +00004997
Benny Prijono28d3c562012-03-30 07:10:13 +00004998ac_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 +00004999 # include <winsock2.h>
5000 #elif PJ_HAS_WINSOCK_H
5001 # include <winsock.h>
5002 #endif
5003
Benny Prijono28d3c562012-03-30 07:10:13 +00005004"
5005if test "x$ac_cv_header_mswsock_h" = x""yes; then :
5006 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00005007
5008fi
5009
5010
Benny Prijono28d3c562012-03-30 07:10:13 +00005011ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
5012if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
5013 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00005014
5015fi
5016
5017
Benny Prijono28d3c562012-03-30 07:10:13 +00005018ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
5019if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00005020 ac_has_uuid_h=1
5021fi
5022
5023
Benny Prijono28d3c562012-03-30 07:10:13 +00005024ac_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 +00005025 # include <sys/types.h>
5026 #endif
5027 #if PJ_HAS_SYS_SOCKET_H
5028
Benny Prijono188ba7e2008-03-25 13:53:16 +00005029 # include <sys/socket.h>
5030 #endif
5031
Benny Prijono28d3c562012-03-30 07:10:13 +00005032"
5033if test "x$ac_cv_header_net_if_h" = x""yes; then :
5034 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00005035
5036fi
5037
Benny Prijono188ba7e2008-03-25 13:53:16 +00005038
Benny Prijono28d3c562012-03-30 07:10:13 +00005039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5040$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005041cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005042#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005043_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005044
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005045
Benny Prijono28d3c562012-03-30 07:10:13 +00005046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5047$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5048$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005049
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005050
Benny Prijono28d3c562012-03-30 07:10:13 +00005051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5052$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5053$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005054
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005055
Benny Prijono28d3c562012-03-30 07:10:13 +00005056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5057$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5058$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005059
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005060
Benny Prijono28d3c562012-03-30 07:10:13 +00005061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5062$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5063$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005064
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005065
Benny Prijono28d3c562012-03-30 07:10:13 +00005066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5067$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5068$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005069
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005070
Benny Prijono28d3c562012-03-30 07:10:13 +00005071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5072$as_echo_n "checking if inet_aton() is available... " >&6; }
5073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005074/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005075#include <sys/types.h>
5076 #include <sys/socket.h>
5077 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005078int
5079main ()
5080{
5081inet_aton(0, 0);
5082 ;
5083 return 0;
5084}
5085_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005086if ac_fn_c_try_compile "$LINENO"; then :
5087 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005088
Benny Prijono28d3c562012-03-30 07:10:13 +00005089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5090$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005091else
Benny Prijono28d3c562012-03-30 07:10:13 +00005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005094fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5096
Benny Prijono28d3c562012-03-30 07:10:13 +00005097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5098$as_echo_n "checking if inet_pton() is available... " >&6; }
5099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005100/* end confdefs.h. */
5101#include <sys/types.h>
5102 #include <sys/socket.h>
5103 #include <arpa/inet.h>
5104int
5105main ()
5106{
5107inet_pton(0, 0, 0);
5108 ;
5109 return 0;
5110}
5111_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005112if ac_fn_c_try_compile "$LINENO"; then :
5113 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005114
Benny Prijono28d3c562012-03-30 07:10:13 +00005115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5116$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005117else
Benny Prijono28d3c562012-03-30 07:10:13 +00005118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005120fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122
Benny Prijono28d3c562012-03-30 07:10:13 +00005123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5124$as_echo_n "checking if inet_ntop() is available... " >&6; }
5125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005126/* end confdefs.h. */
5127#include <sys/types.h>
5128 #include <sys/socket.h>
5129 #include <arpa/inet.h>
5130int
5131main ()
5132{
5133inet_ntop(0, 0, 0, 0);
5134 ;
5135 return 0;
5136}
5137_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005138if ac_fn_c_try_compile "$LINENO"; then :
5139 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005140
Benny Prijono28d3c562012-03-30 07:10:13 +00005141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5142$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005143else
Benny Prijono28d3c562012-03-30 07:10:13 +00005144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005146fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148
Benny Prijono28d3c562012-03-30 07:10:13 +00005149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5150$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005152/* end confdefs.h. */
5153#include <sys/types.h>
5154 #include <sys/socket.h>
5155 #include <netdb.h>
5156int
5157main ()
5158{
5159getaddrinfo(0, 0, 0, 0);
5160 ;
5161 return 0;
5162}
5163_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005164if ac_fn_c_try_compile "$LINENO"; then :
5165 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005166
Benny Prijono28d3c562012-03-30 07:10:13 +00005167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005169else
Benny Prijono28d3c562012-03-30 07:10:13 +00005170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005172fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174
Benny Prijono28d3c562012-03-30 07:10:13 +00005175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5176$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005178/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005179#include <sys/types.h>
5180 #include <sys/socket.h>
5181 #include <netinet/in.h>
5182 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005183int
5184main ()
5185{
5186struct sockaddr_in a; a.sin_len=0;
5187 ;
5188 return 0;
5189}
5190_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005191if ac_fn_c_try_compile "$LINENO"; then :
5192 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005193
Benny Prijono28d3c562012-03-30 07:10:13 +00005194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5195$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005196else
Benny Prijono28d3c562012-03-30 07:10:13 +00005197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005199fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201
Benny Prijono28d3c562012-03-30 07:10:13 +00005202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5203$as_echo_n "checking if socklen_t is available... " >&6; }
5204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005205/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005206#include <sys/types.h>
5207 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005208int
5209main ()
5210{
5211socklen_t xxx = 0;
5212 ;
5213 return 0;
5214}
5215_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005216if ac_fn_c_try_compile "$LINENO"; then :
5217 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005218
Benny Prijono28d3c562012-03-30 07:10:13 +00005219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005221else
Benny Prijono28d3c562012-03-30 07:10:13 +00005222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005224fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226
Benny Prijono28d3c562012-03-30 07:10:13 +00005227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5228$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005229case $target in
5230 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00005231 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005232
Benny Prijono28d3c562012-03-30 07:10:13 +00005233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5234$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005235 ;;
5236 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00005237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005238/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005239#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005240 #include <sys/socket.h>
5241 #include <netinet/in.h>
5242 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005243int
5244main ()
5245{
5246int i=SO_ERROR;
5247 ;
5248 return 0;
5249}
5250_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005251if ac_fn_c_try_compile "$LINENO"; then :
5252 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005253
Benny Prijono28d3c562012-03-30 07:10:13 +00005254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5255$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005256else
Benny Prijono28d3c562012-03-30 07:10:13 +00005257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005259fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005261 ;;
5262esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005263
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005264
Benny Prijono28d3c562012-03-30 07:10:13 +00005265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5266$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005268/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005269#include <pthread.h>
5270int
5271main ()
5272{
5273pthread_rwlock_t *x;
5274 ;
5275 return 0;
5276}
5277_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005278if ac_fn_c_try_compile "$LINENO"; then :
5279 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005280
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005281 ac_rwmutex="yes"
Benny Prijono28d3c562012-03-30 07:10:13 +00005282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5283$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005284else
Benny Prijono28d3c562012-03-30 07:10:13 +00005285 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005286
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005287 ac_rwmutex="no"
Benny Prijono28d3c562012-03-30 07:10:13 +00005288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005290fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005292
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005293if test "$ac_rwmutex" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00005294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5295$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005297/* end confdefs.h. */
5298#define _POSIX_READER_WRITER_LOCKS
5299 #include <pthread.h>
5300int
5301main ()
5302{
5303pthread_rwlock_t *x;
5304 ;
5305 return 0;
5306}
5307_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005308if ac_fn_c_try_compile "$LINENO"; then :
5309 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005310
5311 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono28d3c562012-03-30 07:10:13 +00005312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005314else
Benny Prijono28d3c562012-03-30 07:10:13 +00005315 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005316
Benny Prijono28d3c562012-03-30 07:10:13 +00005317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005319fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321fi
5322
Benny Prijono28d3c562012-03-30 07:10:13 +00005323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5324$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005326/* end confdefs.h. */
5327#include <pthread.h>
5328int
5329main ()
5330{
5331pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5332 ;
5333 return 0;
5334}
5335_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005336if ac_fn_c_try_compile "$LINENO"; then :
5337 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005338
Benny Prijono28d3c562012-03-30 07:10:13 +00005339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5340$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005341else
Benny Prijono28d3c562012-03-30 07:10:13 +00005342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005344fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346
Benny Prijono28d3c562012-03-30 07:10:13 +00005347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5348$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005350/* end confdefs.h. */
5351#include <pthread.h>
5352int
5353main ()
5354{
5355pthread_mutexattr_t attr;
5356 attr.recursive=1;
5357 ;
5358 return 0;
5359}
5360_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005361if ac_fn_c_try_compile "$LINENO"; then :
5362 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005363
Benny Prijono28d3c562012-03-30 07:10:13 +00005364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005366else
Benny Prijono28d3c562012-03-30 07:10:13 +00005367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005369fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005371
Benny Prijono99eec382008-09-18 21:22:16 +00005372
Benny Prijono28d3c562012-03-30 07:10:13 +00005373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5374$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005375# Check whether --enable-epoll was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005376if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005377 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005378 ac_os_objs=ioqueue_epoll.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5380$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005381
5382else
5383
5384 ac_os_objs=ioqueue_select.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5386$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005387
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005388fi
5389
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005390
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005391
5392case $target in
5393 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005394 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 +00005395 ;;
5396 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005397 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 +00005398 case $target in
5399 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +00005400 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005401 ;;
5402 esac
Benny Prijono4e48b512007-05-16 13:41:00 +00005403 # UUID
5404 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5405 ac_os_objs="$ac_os_objs guid_uuid.o"
5406 else
5407 ac_os_objs="$ac_os_objs guid_simple.o"
5408 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005409 ;;
5410esac
5411
Sauw Ming68c14572011-07-20 03:00:48 +00005412case $target in
5413 *darwin*)
5414 ac_os_objs="$ac_os_objs os_core_darwin.o"
5415 ;;
5416esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005417
5418
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005419ac_external_speex=0
5420
5421
5422# Check whether --with-external-speex was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005423if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005424 withval=$with_external_speex;
5425 if test "x$with_external_speex" != "xno"; then
5426 # Test Speex installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5428$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005430/* end confdefs.h. */
5431#include <speex/speex.h>
5432 #include <speex/speex_echo.h>
5433
5434int
5435main ()
5436{
5437speex_echo_state_init(0, 0); speex_encoder_init(0);
5438 ;
5439 return 0;
5440}
5441_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005442if ac_fn_c_try_compile "$LINENO"; then :
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5444$as_echo "yes!!" >&6; }
5445 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005446
5447 ac_external_speex="1"
5448
5449else
Benny Prijono28d3c562012-03-30 07:10:13 +00005450 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 +00005451fi
5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 fi
5454
5455
5456fi
5457
5458
5459ac_external_gsm=0
5460
5461
5462# Check whether --with-external-gsm was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005463if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005464 withval=$with_external_gsm;
5465 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005466 # Test GSM library installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5468$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005470/* end confdefs.h. */
5471#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005472int
5473main ()
5474{
5475gsm_create();
5476 ;
5477 return 0;
5478}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005479_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005480if ac_fn_c_try_compile "$LINENO"; then :
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5482$as_echo "yes!!" >&6; }
5483 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005484
Benny Prijono28d3c562012-03-30 07:10:13 +00005485 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005486
5487 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005488
5489else
Benny Prijono46bd0842010-02-12 14:12:41 +00005490
Benny Prijono28d3c562012-03-30 07:10:13 +00005491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5494$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00005496/* end confdefs.h. */
5497#include <gsm.h>
5498int
5499main ()
5500{
5501gsm_create();
5502 ;
5503 return 0;
5504}
5505_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005506if ac_fn_c_try_compile "$LINENO"; then :
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5508$as_echo "yes!!" >&6; }
5509 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005510
Benny Prijono28d3c562012-03-30 07:10:13 +00005511 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005512
5513 ac_external_gsm="1"
5514
5515else
Benny Prijono28d3c562012-03-30 07:10:13 +00005516 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 +00005517
5518
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005519fi
Benny Prijonod4306432010-05-01 22:05:41 +00005520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005521
Benny Prijonod4306432010-05-01 22:05:41 +00005522
5523fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 fi
5526
5527
5528fi
5529
5530
5531
5532
Benny Prijono4e48b512007-05-16 13:41:00 +00005533
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005534# Check whether --enable-sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005535if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005536 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005537 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5539$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005540 fi
5541
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005542fi
5543
Benny Prijono1d971622006-09-10 22:27:40 +00005544
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005545ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005546
Benny Prijono27c98722007-04-09 21:28:15 +00005547
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005548# Check whether --with-external-pa was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005549if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005550 withval=$with_external_pa;
5551 if test "x$with_external_pa" != "xno"; then
5552 # Test PortAudio installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5554$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005556/* end confdefs.h. */
5557#include <portaudio.h>
5558
5559int
5560main ()
5561{
5562Pa_Initialize();
5563 ;
5564 return 0;
5565}
5566_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005567if ac_fn_c_try_compile "$LINENO"; then :
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5569$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005570 ac_external_pa="1"
5571
5572else
Benny Prijono28d3c562012-03-30 07:10:13 +00005573 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 +00005574fi
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005576 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005577
Benny Prijono27c98722007-04-09 21:28:15 +00005578
5579fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005580
5581
5582
Benny Prijono28d3c562012-03-30 07:10:13 +00005583ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5584if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005585 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5586fi
5587
5588
Benny Prijono28d3c562012-03-30 07:10:13 +00005589ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5590if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005591 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5592fi
5593
5594
Benny Prijono28d3c562012-03-30 07:10:13 +00005595ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5596if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005597 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5598fi
5599
5600
5601
Benny Prijono3e091672008-01-09 15:43:02 +00005602if test "x$ac_cv_c_bigendian" = "xyes"; then
5603 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5604else
5605 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5606fi
5607
Benny Prijono1d971622006-09-10 22:27:40 +00005608if test "$enable_sound" = "no"; then
5609 true;
5610else
5611 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005612 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +00005613 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5615$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005616 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005617 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005618 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5619 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005620 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005621 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5622 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5624$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005625 else
5626 ac_pjmedia_snd=pa_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5628$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005629 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005630 ;;
5631 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005632 ac_pjmedia_snd=pa_win32
Benny Prijono28d3c562012-03-30 07:10:13 +00005633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5634$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005635 ;;
5636 *rtems*)
5637 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5639$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005640 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005641 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005642 ac_pjmedia_snd=pa_unix
Benny Prijono28d3c562012-03-30 07:10:13 +00005643 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5644if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005645 ac_pa_use_alsa=1
5646
5647 LIBS="$LIBS -lasound"
5648
5649else
5650 ac_pa_use_alsa=0
5651
5652fi
5653
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005654
Benny Prijono28d3c562012-03-30 07:10:13 +00005655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5656$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005657
5658 ac_pa_use_oss=1
5659
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005660 # Check whether --enable-oss was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005661if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005662 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005663 if test "$enable_oss" = "no"; then
5664 ac_pa_use_oss=0
Benny Prijono28d3c562012-03-30 07:10:13 +00005665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5666$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005667 fi
5668
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005669fi
5670
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005671 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005672 esac
5673fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005674
Sauw Ming6e6c2152010-12-14 13:03:10 +00005675
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005676
5677# Check whether --enable-video was given.
5678if test "${enable_video+set}" = set; then :
5679 enableval=$enable_video; if test "$enable_video" = "no"; then
5680 #AC_DEFINE(PJMEDIA_HAS_VIDEO,0)
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5
5682$as_echo "Video is disabled" >&6; }
5683 enable_sdl="no"
5684 enable_ffmpeg="no"
5685 enable_v4l2="no"
5686 fi
5687fi
5688
5689
5690case $target in
5691 arm-apple-darwin*)
5692 LIBS="$LIBS -framework UIKit"
5693 ;;
5694 *darwin*)
5695 LIBS="$LIBS -framework Foundation -framework AppKit"
5696 ;;
5697esac
5698
Sauw Ming6e6c2152010-12-14 13:03:10 +00005699if test "$enable_video" = "no"; then
5700 true;
5701else
5702 case $target in
5703 arm-apple-darwin*)
5704 ac_pjmedia_video=iphone_os
5705
Sauw Ming24c39a32011-08-16 05:44:46 +00005706
5707 SAVED_LIBS="$LIBS"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005708 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005710/* end confdefs.h. */
5711
5712int
5713main ()
5714{
5715
5716 ;
5717 return 0;
5718}
5719_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005720if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming24c39a32011-08-16 05:44:46 +00005721 ac_pjmedia_video_has_ios=yes
5722else
Benny Prijono28d3c562012-03-30 07:10:13 +00005723 ac_pjmedia_video_has_ios=no
Sauw Ming24c39a32011-08-16 05:44:46 +00005724fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005725rm -f core conftest.err conftest.$ac_objext \
5726 conftest$ac_exeext conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005727 LIBS="$SAVED_LIBS"
5728 if test "$ac_pjmedia_video_has_ios" = "yes"; then
5729 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005730 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
5732$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005733 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
5735$as_echo "Checking if AVFoundation framework is available... no" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005736 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00005737 ;;
5738 *darwin*)
5739 ac_pjmedia_video=mac_os
5740
5741
5742 SAVED_LIBS="$LIBS"
5743 LIBS="-framework QTKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005745/* end confdefs.h. */
5746
5747int
5748main ()
5749{
5750
5751 ;
5752 return 0;
5753}
5754_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005755if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00005756 ac_pjmedia_video_has_qt=yes
5757else
Benny Prijono28d3c562012-03-30 07:10:13 +00005758 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +00005759fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005760rm -f core conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005762 LIBS="$SAVED_LIBS"
5763 if test "$ac_pjmedia_video_has_qt" = "yes"; then
5764 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005765 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
Benny Prijono28d3c562012-03-30 07:10:13 +00005766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5767$as_echo "Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005768 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5770$as_echo "Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005771 fi
5772 ;;
5773 esac
5774fi
5775
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005776# Check whether --enable-ext_sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005777if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005778 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005779 ac_pjmedia_snd=external
Benny Prijono28d3c562012-03-30 07:10:13 +00005780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5781$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005782 fi
5783
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005784fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005785
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005786
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005787
5788# Check whether --enable-small-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005789if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005790 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005791 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5793$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005794 fi
5795else
Benny Prijono28d3c562012-03-30 07:10:13 +00005796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5797$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005798fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005799
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005800
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005801
5802# Check whether --enable-large-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005803if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005804 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005805 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5807$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005808 fi
5809else
Benny Prijono28d3c562012-03-30 07:10:13 +00005810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5811$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005812fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005813
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005814
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005815
5816# Check whether --enable-speex-aec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005817if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005818 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005819 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5821$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005822 fi
5823else
Benny Prijono28d3c562012-03-30 07:10:13 +00005824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5825$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005826fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005827
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005828
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005829
5830# Check whether --enable-g711-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005831if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005832 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005833 ac_no_g711_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005834 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005835
Benny Prijono28d3c562012-03-30 07:10:13 +00005836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5837$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005838 fi
5839else
Benny Prijono28d3c562012-03-30 07:10:13 +00005840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5841$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005842fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005843
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005844
5845
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005846
5847# Check whether --enable-l16-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005848if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005849 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005850 ac_no_l16_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005851 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005852
Benny Prijono28d3c562012-03-30 07:10:13 +00005853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5854$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005855 fi
5856else
Benny Prijono28d3c562012-03-30 07:10:13 +00005857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5858$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005859fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005860
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005861
5862
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005863
5864# Check whether --enable-gsm-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005865if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005866 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005867 ac_no_gsm_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005868 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005869
Benny Prijono28d3c562012-03-30 07:10:13 +00005870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5871$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005872 fi
5873else
Benny Prijono28d3c562012-03-30 07:10:13 +00005874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5875$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005876fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005877
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005878
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005879
5880# Check whether --enable-g722-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005881if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005882 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005883 ac_no_g722_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005884 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005885
Benny Prijono28d3c562012-03-30 07:10:13 +00005886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5887$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005888 fi
5889else
Benny Prijono28d3c562012-03-30 07:10:13 +00005890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5891$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005892fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005893
5894
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005895
5896# Check whether --enable-g7221-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005897if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005898 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5899 ac_no_g7221_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005900 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005901
Benny Prijono28d3c562012-03-30 07:10:13 +00005902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5903$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005904 fi
5905else
Benny Prijono28d3c562012-03-30 07:10:13 +00005906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5907$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005908fi
5909
5910
5911
5912# Check whether --enable-speex-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005913if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005914 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005915 ac_no_speex_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005916 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005917
Benny Prijono28d3c562012-03-30 07:10:13 +00005918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5919$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005920 fi
5921else
Benny Prijono28d3c562012-03-30 07:10:13 +00005922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5923$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005924fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005925
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005926
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005927
5928# Check whether --enable-ilbc-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005929if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005930 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005931 ac_no_ilbc_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005932 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005933
Benny Prijono28d3c562012-03-30 07:10:13 +00005934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5935$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005936 fi
5937else
Benny Prijono28d3c562012-03-30 07:10:13 +00005938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5939$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005940fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005941
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005942
5943# Check whether --enable-libsamplerate was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005944if test "${enable_libsamplerate+set}" = set; then :
5945 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5946$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5947if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005949else
5950 ac_check_lib_save_LIBS=$LIBS
5951LIBS="-lsamplerate $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00005952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005953/* end confdefs.h. */
5954
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005955/* Override any GCC internal prototype to avoid an error.
5956 Use char because int might match the return type of a GCC
5957 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005958#ifdef __cplusplus
5959extern "C"
5960#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005961char src_new ();
5962int
5963main ()
5964{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005965return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005966 ;
5967 return 0;
5968}
5969_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005970if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005971 ac_cv_lib_samplerate_src_new=yes
5972else
Benny Prijono28d3c562012-03-30 07:10:13 +00005973 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005974fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005975rm -f core conftest.err conftest.$ac_objext \
5976 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005977LIBS=$ac_check_lib_save_LIBS
5978fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
5980$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
5981if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005982 cat >>confdefs.h <<_ACEOF
5983#define HAVE_LIBSAMPLERATE 1
5984_ACEOF
5985
5986 LIBS="-lsamplerate $LIBS"
5987
5988fi
5989
5990else
Benny Prijono28d3c562012-03-30 07:10:13 +00005991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
5992$as_echo "Skipping libsamplerate detection" >&6; }
5993
5994fi
5995
5996
5997
5998# Check whether --enable-resample_dll was given.
5999if test "${enable_resample_dll+set}" = set; then :
6000 enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
6001 ac_resample_dll=1
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
6003$as_echo "Building libresample as shared library... yes" >&6; }
6004 fi
6005else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
6007$as_echo "Building libresample as shared library... no" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00006008
6009fi
6010
6011
6012
6013# Check whether --with-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006014if test "${with_sdl+set}" = set; then :
Benny Prijono5b0af632011-07-20 03:16:25 +00006015 withval=$with_sdl;
6016else
6017 with_sdl=no
Benny Prijono550a1a62007-10-16 08:54:00 +00006018
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006019fi
Benny Prijono0822c192008-08-21 20:59:58 +00006020
6021
Benny Prijonoc45d9512010-12-10 11:04:30 +00006022# Check whether --enable-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006023if test "${enable_sdl+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006024 enableval=$enable_sdl;
6025 if test "$enable_sdl" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
6027$as_echo "Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006028 fi
6029
6030else
6031
Benny Prijono5b0af632011-07-20 03:16:25 +00006032 SDL_CONFIG="sdl-config"
6033 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
6034 SDL_CONFIG=$with_sdl/bin/sdl-config
Benny Prijono28d3c562012-03-30 07:10:13 +00006035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6036$as_echo "Using SDL prefix... $with_sdl" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00006037 fi
6038
Benny Prijono28d3c562012-03-30 07:10:13 +00006039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5
6040$as_echo_n "checking SDL availability..... " >&6; }
Sauw Ming1d8ceb12011-08-24 05:54:25 +00006041 if (sh -c "$SDL_CONFIG --version" | grep 1.3) then
Benny Prijonoc45d9512010-12-10 11:04:30 +00006042
6043
Benny Prijono5b0af632011-07-20 03:16:25 +00006044 ac_sdl_cflags=`$SDL_CONFIG --cflags`
Benny Prijonoc45d9512010-12-10 11:04:30 +00006045 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
Benny Prijono5b0af632011-07-20 03:16:25 +00006046 ac_sdl_ldflags=`$SDL_CONFIG --libs`
Benny Prijono69b1f822010-12-10 11:33:01 +00006047 LIBS="$LIBS $ac_sdl_ldflags"
Sauw Ming1d8ceb12011-08-24 05:54:25 +00006048 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6050$as_echo "Unsupported SDL version" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006051 fi
Benny Prijono550a1a62007-10-16 08:54:00 +00006052
Benny Prijono0822c192008-08-21 20:59:58 +00006053fi
6054
6055
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006056
Benny Prijonoc45d9512010-12-10 11:04:30 +00006057# Check whether --enable-ffmpeg was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006058if test "${enable_ffmpeg+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006059 enableval=$enable_ffmpeg;
6060 ac_has_ffmpeg=0
6061
6062 if test "$enable_ffmpeg" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6064$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006065 fi
6066
6067else
6068
6069
6070
6071
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006072 FFMPEG_PREFIX=""
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006073
6074 SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006075 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6076 FFMPEG_PREFIX=$with_ffmpeg
Benny Prijono28d3c562012-03-30 07:10:13 +00006077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6078$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00006079 export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006080 fi
6081
6082 for ac_prog in pkg-config "python pkgconfig.py"
6083do
6084 # Extract the first word of "$ac_prog", so it can be a program name with args.
6085set dummy $ac_prog; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
6089 $as_echo_n "(cached) " >&6
6090else
6091 if test -n "$PKG_CONFIG"; then
6092 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_PKG_CONFIG="$ac_prog"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105done
6106 done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6112if test -n "$PKG_CONFIG"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6114$as_echo "$PKG_CONFIG" >&6; }
6115else
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120
6121 test -n "$PKG_CONFIG" && break
6122done
6123test -n "$PKG_CONFIG" || PKG_CONFIG="none"
6124
6125
6126 if test "$PKG_CONFIG" != "none"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
6128$as_echo_n "checking ffmpeg packages... " >&6; }
6129 av_pkg=""
6130 if $PKG_CONFIG --exists libdevice; then
6131 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6132 av_pkg="$av_pkg libdevice"
6133 fi
6134 if $PKG_CONFIG --exists libavformat; then
6135 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6136 av_pkg="$av_pkg libavformat"
6137 fi
6138 if $PKG_CONFIG --exists libavcodec; then
6139 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6140 av_pkg="$av_pkg libavcodec"
6141 fi
6142 if $PKG_CONFIG --exists libswscale; then
6143 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6144 av_pkg="$av_pkg libswscale"
6145 fi
6146 if $PKG_CONFIG --exists libavutil; then
6147 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6148 av_pkg="$av_pkg libavutil"
6149 fi
6150 if $PKG_CONFIG --exists libavcore; then
6151 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6152 av_pkg="$av_pkg libavcore"
6153 fi
6154
6155 if test "x$av_pkg" == "x"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
6157$as_echo "none detected (check the prefix)! **" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
6160$as_echo "$av_pkg" >&6; }
6161 fi
6162
6163 ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
6164 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
6165
6166 else
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&5
6169$as_echo "*** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&6; }
6170
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006171 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
Sauw Ming01095d82011-07-14 08:46:19 +00006172 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006173 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006174
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006176$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
6177if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006179else
6180 ac_check_lib_save_LIBS=$LIBS
6181LIBS="-lavdevice $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006183/* end confdefs.h. */
6184
6185/* Override any GCC internal prototype to avoid an error.
6186 Use char because int might match the return type of a GCC
6187 builtin and then its argument prototype would still apply. */
6188#ifdef __cplusplus
6189extern "C"
6190#endif
6191char avdevice_version ();
6192int
6193main ()
6194{
6195return avdevice_version ();
6196 ;
6197 return 0;
6198}
6199_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006200if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006201 ac_cv_lib_avdevice_avdevice_version=yes
6202else
Benny Prijono28d3c562012-03-30 07:10:13 +00006203 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006204fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006205rm -f core conftest.err conftest.$ac_objext \
6206 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006207LIBS=$ac_check_lib_save_LIBS
6208fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6210$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
6211if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006212 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006213 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006214
6215
6216fi
6217
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006219$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
6220if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006222else
6223 ac_check_lib_save_LIBS=$LIBS
6224LIBS="-lavutil $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006226/* end confdefs.h. */
6227
6228/* Override any GCC internal prototype to avoid an error.
6229 Use char because int might match the return type of a GCC
6230 builtin and then its argument prototype would still apply. */
6231#ifdef __cplusplus
6232extern "C"
6233#endif
6234char av_malloc ();
6235int
6236main ()
6237{
6238return av_malloc ();
6239 ;
6240 return 0;
6241}
6242_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006243if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006244 ac_cv_lib_avutil_av_malloc=yes
6245else
Benny Prijono28d3c562012-03-30 07:10:13 +00006246 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006247fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006248rm -f core conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006250LIBS=$ac_check_lib_save_LIBS
6251fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6253$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
6254if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006255 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006256 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006257
6258
6259fi
6260
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6262$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
6263if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
6265else
6266 ac_check_lib_save_LIBS=$LIBS
6267LIBS="-lavcodec -lavutil
6268 $LIBS"
6269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h. */
6271
6272/* Override any GCC internal prototype to avoid an error.
6273 Use char because int might match the return type of a GCC
6274 builtin and then its argument prototype would still apply. */
6275#ifdef __cplusplus
6276extern "C"
6277#endif
6278char avcodec_init ();
6279int
6280main ()
6281{
6282return avcodec_init ();
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287if ac_fn_c_try_link "$LINENO"; then :
6288 ac_cv_lib_avcodec_avcodec_init=yes
6289else
6290 ac_cv_lib_avcodec_avcodec_init=no
6291fi
6292rm -f core conftest.err conftest.$ac_objext \
6293 conftest$ac_exeext conftest.$ac_ext
6294LIBS=$ac_check_lib_save_LIBS
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6297$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
6298if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then :
6299 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6300 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6301
6302fi
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6305$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
6306if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6308else
6309 ac_check_lib_save_LIBS=$LIBS
6310LIBS="-lavformat -lavcodec -lavutil
6311 $LIBS"
6312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h. */
6314
6315/* Override any GCC internal prototype to avoid an error.
6316 Use char because int might match the return type of a GCC
6317 builtin and then its argument prototype would still apply. */
6318#ifdef __cplusplus
6319extern "C"
6320#endif
6321char av_register_all ();
6322int
6323main ()
6324{
6325return av_register_all ();
6326 ;
6327 return 0;
6328}
6329_ACEOF
6330if ac_fn_c_try_link "$LINENO"; then :
6331 ac_cv_lib_avformat_av_register_all=yes
6332else
6333 ac_cv_lib_avformat_av_register_all=no
6334fi
6335rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext conftest.$ac_ext
6337LIBS=$ac_check_lib_save_LIBS
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6340$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
6341if test "x$ac_cv_lib_avformat_av_register_all" = x""yes; then :
6342 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6343 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6344
6345fi
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6348$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
6349if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6351else
6352 ac_check_lib_save_LIBS=$LIBS
6353LIBS="-lswscale -lavutil
6354 $LIBS"
6355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h. */
6357
6358/* Override any GCC internal prototype to avoid an error.
6359 Use char because int might match the return type of a GCC
6360 builtin and then its argument prototype would still apply. */
6361#ifdef __cplusplus
6362extern "C"
6363#endif
6364char sws_scale ();
6365int
6366main ()
6367{
6368return sws_scale ();
6369 ;
6370 return 0;
6371}
6372_ACEOF
6373if ac_fn_c_try_link "$LINENO"; then :
6374 ac_cv_lib_swscale_sws_scale=yes
6375else
6376 ac_cv_lib_swscale_sws_scale=no
6377fi
6378rm -f core conftest.err conftest.$ac_objext \
6379 conftest$ac_exeext conftest.$ac_ext
6380LIBS=$ac_check_lib_save_LIBS
6381fi
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6383$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
6384if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then :
6385 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6386 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6387
6388fi
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006391$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
6392if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006394else
6395 ac_check_lib_save_LIBS=$LIBS
6396LIBS="-lavcore $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006398/* end confdefs.h. */
6399
6400/* Override any GCC internal prototype to avoid an error.
6401 Use char because int might match the return type of a GCC
6402 builtin and then its argument prototype would still apply. */
6403#ifdef __cplusplus
6404extern "C"
6405#endif
6406char avcore_version ();
6407int
6408main ()
6409{
6410return avcore_version ();
6411 ;
6412 return 0;
6413}
6414_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006415if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006416 ac_cv_lib_avcore_avcore_version=yes
6417else
Benny Prijono28d3c562012-03-30 07:10:13 +00006418 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006419fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006420rm -f core conftest.err conftest.$ac_objext \
6421 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006422LIBS=$ac_check_lib_save_LIBS
6423fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6425$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
6426if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006427 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006428 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006429
6430
6431fi
6432
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006433
6434 fi
6435
Benny Prijono69b1f822010-12-10 11:33:01 +00006436 LIBS="$LIBS $ac_ffmpeg_ldflags"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00006437 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
Benny Prijonoc45d9512010-12-10 11:04:30 +00006438
6439
6440fi
6441
6442
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006443
6444# Check whether --with-ffmpeg was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006445if test "${with_ffmpeg+set}" = set; then :
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006446 withval=$with_ffmpeg;
6447else
6448 with_ffmpeg=no
6449
6450fi
6451
6452
6453
Benny Prijonoc45d9512010-12-10 11:04:30 +00006454# Check whether --enable-v4l2 was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006455if test "${enable_v4l2+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006456 enableval=$enable_v4l2;
6457 if test "$enable_v4l2" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6459$as_echo "Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006460 fi
6461
6462else
6463
6464
6465
Benny Prijono28d3c562012-03-30 07:10:13 +00006466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6467$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
6468if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006470else
6471 ac_check_lib_save_LIBS=$LIBS
6472LIBS="-lv4l2 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006474/* end confdefs.h. */
6475
6476/* Override any GCC internal prototype to avoid an error.
6477 Use char because int might match the return type of a GCC
6478 builtin and then its argument prototype would still apply. */
6479#ifdef __cplusplus
6480extern "C"
6481#endif
6482char v4l2_open ();
6483int
6484main ()
6485{
6486return v4l2_open ();
6487 ;
6488 return 0;
6489}
6490_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006491if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006492 ac_cv_lib_v4l2_v4l2_open=yes
6493else
Benny Prijono28d3c562012-03-30 07:10:13 +00006494 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006495fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006496rm -f core conftest.err conftest.$ac_objext \
6497 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006498LIBS=$ac_check_lib_save_LIBS
6499fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6501$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
6502if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006503 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6504 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +00006505 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006506
6507
6508fi
6509
6510
6511fi
6512
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006513
6514# Check whether --enable-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006515if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006516 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006517else
6518 enable_ipp=no
6519
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006520fi
Benny Prijono0822c192008-08-21 20:59:58 +00006521
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006522
Benny Prijono3965f192010-02-10 18:46:05 +00006523
6524# Check whether --with-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006525if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006526 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006527else
6528 with_ipp=no
6529
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006530fi
Benny Prijono0822c192008-08-21 20:59:58 +00006531
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006532
Benny Prijono3965f192010-02-10 18:46:05 +00006533
6534# Check whether --with-ipp-samples was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006535if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006536 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00006537else
6538 with_ipp_samples=no
6539
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006540fi
6541
Benny Prijono0822c192008-08-21 20:59:58 +00006542
Benny Prijono3965f192010-02-10 18:46:05 +00006543
6544# Check whether --with-ipp-arch was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006545if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006546 withval=$with_ipp_arch;
6547else
6548 with_ipp_arch=no
6549
6550fi
6551
6552
Benny Prijono0822c192008-08-21 20:59:58 +00006553if test "x$enable_ipp" != "xno"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6555$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006556
6557 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6559$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006560 IPPROOT=$with_ipp
6561 elif test "x$IPPROOT" = "x"; then
6562 if test -d /opt/intel/ipp; then
6563 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijono28d3c562012-03-30 07:10:13 +00006564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6565$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006566 fi
6567 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6569$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006570 fi
6571
Benny Prijono3965f192010-02-10 18:46:05 +00006572 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00006573 IPP_SUFFIX=$with_ipp_arch
Benny Prijono28d3c562012-03-30 07:10:13 +00006574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6575$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006576 else
6577 IPP_SUFFIX=""
Benny Prijono28d3c562012-03-30 07:10:13 +00006578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6579$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006580 fi
6581
Benny Prijono0822c192008-08-21 20:59:58 +00006582 if test x$IPPROOT = x; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006583 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 +00006584 elif test ! -d $IPPROOT; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006585 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006586 elif test ! -d $IPPROOT/include; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006587 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006588 else
6589 # IPP directory looks okay.
6590 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00006591 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00006592
6593 SAVED_CFLAGS="$CFLAGS"
6594 SAVED_LDFLAGS="$LDFLAGS"
6595 SAVED_LIBS="$LIBS"
6596
6597 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006598 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +00006599
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006600#
Benny Prijono46bd0842010-02-12 14:12:41 +00006601 # Some differences between Mac OS X and Linux
6602 case $target in
6603 *darwin* )
6604 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6605 ;;
6606 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006607 # Find out where the libraries live.
6608 IPP7_ARCH=""
6609 if test -d $IPPROOT/lib/intel64; then
6610 IPP7_ARCH="intel64"
6611 elif test -d $IPPROOT/lib/ia32; then
6612 IPP7_ARCH="ia32"
6613 elif test -d $IPPROOT/lib/mic; then
6614 IPP7_ARCH="mic"
6615 fi
6616
6617 if test -z "$IPP7_ARCH"; then
6618 # IPP6 (and possibly below)
6619 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6620 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
6621 else
6622 # IPP7
6623 if ! test -d $IPPROOT/../compiler; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006624 as_fn_error "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006625 fi
6626 IPP_CFLAGS="$IPP_CFLAGS"
6627 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6628 IPP_LIBS="$IPP_LIBS -liomp5"
6629 fi
Benny Prijono46bd0842010-02-12 14:12:41 +00006630 ;;
6631 esac
6632
Benny Prijono0822c192008-08-21 20:59:58 +00006633 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00006634 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00006635 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6636
6637 CFLAGS="$CFLAGS $IPP_CFLAGS"
6638 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6639 LIBS="$IPP_LIBS $LIBS"
6640
6641
Benny Prijono28d3c562012-03-30 07:10:13 +00006642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6643$as_echo_n "checking Intel IPP usability... " >&6; }
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006645/* end confdefs.h. */
6646#include <ippcore.h>
6647
6648int
6649main ()
6650{
6651ippStaticInit();
6652 ;
6653 return 0;
6654}
6655_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006656if ac_fn_c_try_link "$LINENO"; then :
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6658$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006659else
Benny Prijono28d3c562012-03-30 07:10:13 +00006660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Benny Prijonob15e7ca2012-04-27 01:32:12 +00006662as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info
6663See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006664fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006665rm -f core conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006667
6668 CFLAGS="$SAVED_CFLAGS"
6669 LDFLAGS="$SAVED_LDFLAGS"
6670 LIBS="$SAVED_LIBS"
6671 fi
6672
Benny Prijono28d3c562012-03-30 07:10:13 +00006673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6674$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006675
6676 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6678$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006679 IPPSAMPLES=$with_ipp_samples
6680 elif test "x$IPPSAMPLES" = "x"; then
6681 if test -d /opt/intel/ipp-samples; then
6682 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijono28d3c562012-03-30 07:10:13 +00006683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6684$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006685 fi
6686 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6688$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006689 fi
6690
6691 if test x$IPPSAMPLES = x; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006692 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 +00006693 elif test ! -d $IPPSAMPLES; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006694 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006695 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006696 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006697 else
6698 # Remove trailing backslash
6699 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6700
Benny Prijono3965f192010-02-10 18:46:05 +00006701 # Guess the libusc.a/libspeech.a build location
Benny Prijono28d3c562012-03-30 07:10:13 +00006702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6703$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006704 if test -d $IPPSAMPLES/speech-codecs/bin; then
6705 IPPVER=5
6706 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6707 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6708 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00006709 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6710 # gcc compiler
6711 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6712 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6713 # icc compiler
6714 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6715 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6718as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6719See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006720 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006721 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6724as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6725See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006726 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006727
6728 # Test the directory
6729 if test ! -d $IPPSAMP_DIR; then
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 "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6733See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006734 exit 1;
6735 fi
6736
6737 if test "x$IPPVER" = "x5"; then
6738 IPPSAMP_LIBS="libusc.a"
6739 IPPSAMP_LDLIBS="-lusc"
6740 elif test "x$IPPVER" = "x6"; then
6741 IPPSAMP_LIBS="libspeech.a"
6742 IPPSAMP_LDLIBS="-lspeech"
6743 else
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 "bug in this script: unsupported IPP version
6747See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006748 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006749
6750 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6753as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6754See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006755 fi
6756
Benny Prijono28d3c562012-03-30 07:10:13 +00006757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6758$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006759
6760 SAVED_CFLAGS="$CFLAGS"
6761 SAVED_LDFLAGS="$LDFLAGS"
6762 SAVED_LIBS="$LIBS"
6763
Benny Prijono3965f192010-02-10 18:46:05 +00006764 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6765 CFLAGS="$CFLAGS $IPPSAMP_INC"
6766 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6767 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006768
Benny Prijono28d3c562012-03-30 07:10:13 +00006769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6770$as_echo_n "checking Intel IPP USC usability... " >&6; }
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006772/* end confdefs.h. */
6773#include <usc.h>
6774
6775int
6776main ()
6777{
6778extern USC_Fxns USC_G729AFP_Fxns;
6779 ;
6780 return 0;
6781}
6782_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006783if ac_fn_c_try_link "$LINENO"; then :
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6785$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006786else
Benny Prijono28d3c562012-03-30 07:10:13 +00006787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6789as_fn_error "failed
6790See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006791fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006792rm -f core conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006794
6795 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006796 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6797 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006798
Benny Prijono3965f192010-02-10 18:46:05 +00006799 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6800 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6801 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006802 fi
6803
Benny Prijono3965f192010-02-10 18:46:05 +00006804 CFLAGS="$CFLAGS $IPP_CFLAGS"
6805 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6806 LIBS="$LIBS $IPP_LIBS"
6807
Benny Prijono0822c192008-08-21 20:59:58 +00006808 ac_build_mak_vars="$ac_build_mak_vars\n\
6809export IPP_CFLAGS=$IPP_CFLAGS\n\
6810export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6811export IPP_LIBS=$IPP_LIBS"
6812else
Benny Prijono28d3c562012-03-30 07:10:13 +00006813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6814$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006815fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006816
6817
6818
6819
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006820# Check whether --enable-ssl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006821if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006822 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006823 if test "$enable_ssl" = "no"; then
6824 ac_no_ssl=1
Benny Prijono28d3c562012-03-30 07:10:13 +00006825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6826$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006827 fi
6828
6829else
6830
Benny Prijono28d3c562012-03-30 07:10:13 +00006831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6832$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006833
6834
6835
Benny Prijono28d3c562012-03-30 07:10:13 +00006836 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
6837if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006838 openssl_h_present=1
6839fi
6840
6841
Benny Prijono28d3c562012-03-30 07:10:13 +00006842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
6843$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
6844if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006846else
6847 ac_check_lib_save_LIBS=$LIBS
6848LIBS="-lcrypto $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006850/* end confdefs.h. */
6851
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006852/* Override any GCC internal prototype to avoid an error.
6853 Use char because int might match the return type of a GCC
6854 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006855#ifdef __cplusplus
6856extern "C"
6857#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006858char ERR_load_BIO_strings ();
6859int
6860main ()
6861{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006862return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006863 ;
6864 return 0;
6865}
6866_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006867if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006868 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6869else
Benny Prijono28d3c562012-03-30 07:10:13 +00006870 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006871fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006872rm -f core conftest.err conftest.$ac_objext \
6873 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006874LIBS=$ac_check_lib_save_LIBS
6875fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6877$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
6878if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006879 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6880fi
6881
Benny Prijono28d3c562012-03-30 07:10:13 +00006882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6883$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6884if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006886else
6887 ac_check_lib_save_LIBS=$LIBS
6888LIBS="-lssl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006890/* end confdefs.h. */
6891
6892/* Override any GCC internal prototype to avoid an error.
6893 Use char because int might match the return type of a GCC
6894 builtin and then its argument prototype would still apply. */
6895#ifdef __cplusplus
6896extern "C"
6897#endif
6898char SSL_library_init ();
6899int
6900main ()
6901{
6902return SSL_library_init ();
6903 ;
6904 return 0;
6905}
6906_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006907if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006908 ac_cv_lib_ssl_SSL_library_init=yes
6909else
Benny Prijono28d3c562012-03-30 07:10:13 +00006910 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006911fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006912rm -f core conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006914LIBS=$ac_check_lib_save_LIBS
6915fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6917$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6918if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006919 libssl_present=1 && LIBS="$LIBS -lssl"
6920fi
6921
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006922 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 +00006923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
6924$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00006925 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
6926 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijono28d3c562012-03-30 07:10:13 +00006927 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00006928
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006929 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
6931$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006932 fi
6933
6934fi
6935
6936
6937
6938# Check whether --enable-opencore_amrnb was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006939if test "${enable_opencore_amrnb+set}" = set; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006940 enableval=$enable_opencore_amrnb;
6941 if test "$enable_opencore_amrnb" = "no"; then
6942 ac_no_opencore_amrnb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00006943 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00006944
Benny Prijono28d3c562012-03-30 07:10:13 +00006945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
6946$as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006947 fi
6948
6949else
6950
Benny Prijono28d3c562012-03-30 07:10:13 +00006951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5
6952$as_echo "checking for OpenCORE AMR-NB installations.." >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006953
6954
Benny Prijono28d3c562012-03-30 07:10:13 +00006955 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
6956if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = x""yes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006957 opencore_amrnb_h_present=1
6958fi
6959
6960
Benny Prijono28d3c562012-03-30 07:10:13 +00006961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
6962$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
6963if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
Sauw Minge7dbbc82011-10-24 09:28:13 +00006965else
6966 ac_check_lib_save_LIBS=$LIBS
6967LIBS="-lopencore-amrnb $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00006969/* end confdefs.h. */
6970
6971/* Override any GCC internal prototype to avoid an error.
6972 Use char because int might match the return type of a GCC
6973 builtin and then its argument prototype would still apply. */
6974#ifdef __cplusplus
6975extern "C"
6976#endif
6977char Encoder_Interface_init ();
6978int
6979main ()
6980{
6981return Encoder_Interface_init ();
6982 ;
6983 return 0;
6984}
6985_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006986if ac_fn_c_try_link "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006987 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
6988else
Benny Prijono28d3c562012-03-30 07:10:13 +00006989 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
Sauw Minge7dbbc82011-10-24 09:28:13 +00006990fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006991rm -f core conftest.err conftest.$ac_objext \
6992 conftest$ac_exeext conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00006993LIBS=$ac_check_lib_save_LIBS
6994fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
6996$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
6997if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = x""yes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006998 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
6999fi
7000
7001 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
7003$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
7004 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007005
7006 else
7007 ac_no_opencore_amrnb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00007008 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007009
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007010 fi
7011
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007012fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007013
7014
7015
7016
Benny Prijono28d3c562012-03-30 07:10:13 +00007017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
7018$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007019case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007020 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007021
Benny Prijono28d3c562012-03-30 07:10:13 +00007022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7023$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007024 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007025 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007026
Benny Prijono28d3c562012-03-30 07:10:13 +00007027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7028$as_echo "no (default)" >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7030$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007031 ;;
7032esac
7033
Benny Prijono28d3c562012-03-30 07:10:13 +00007034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
7035$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007036case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007037 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007038
Benny Prijono28d3c562012-03-30 07:10:13 +00007039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7040$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007041 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007042 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007043
Benny Prijono28d3c562012-03-30 07:10:13 +00007044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7045$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007046 ;;
7047esac
7048
Benny Prijono28d3c562012-03-30 07:10:13 +00007049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
7050$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007051case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007052 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007053
Benny Prijono28d3c562012-03-30 07:10:13 +00007054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7055$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007056 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007057 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007058
Benny Prijono28d3c562012-03-30 07:10:13 +00007059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7060$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007061 ;;
7062esac
7063
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007064case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007065 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007066 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007067
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007068 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007069 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007070
Benny Prijono28d3c562012-03-30 07:10:13 +00007071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7072$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007073 ;;
7074esac
7075
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007076case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007077 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007078 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007079
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007080 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007081 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007082
Benny Prijono28d3c562012-03-30 07:10:13 +00007083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7084$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007085 ;;
7086esac
7087
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007088
7089
7090
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007091if test "$build" = "$host"; then
7092 ac_cross_compile=
7093else
Benny Prijono5b818b22006-09-17 22:58:51 +00007094 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007095fi
7096ac_linux_poll=select
7097
7098ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007099
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007100
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007101case $target in
7102 *rtems*)
7103 ac_main_obj=main_rtems.o
7104 ;;
7105 *)
7106 ac_main_obj=main.o
7107 ;;
7108esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007109
Benny Prijono0822c192008-08-21 20:59:58 +00007110
7111ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007112cat >confcache <<\_ACEOF
7113# This file is a shell script that caches the results of configure
7114# tests run on this system so they can be shared between configure
7115# scripts and configure runs, see configure's option --config-cache.
7116# It is not useful on other systems. If it contains results you don't
7117# want to keep, you may remove or edit it.
7118#
7119# config.status only pays attention to the cache file if you give it
7120# the --recheck option to rerun configure.
7121#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007122# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007123# loading this file, other *unset* `ac_cv_foo' will be assigned the
7124# following values.
7125
7126_ACEOF
7127
7128# The following way of writing the cache mishandles newlines in values,
7129# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007130# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007131# Ultrix sh set writes to stderr and can't be redirected directly,
7132# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007133(
7134 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7135 eval ac_val=\$$ac_var
7136 case $ac_val in #(
7137 *${as_nl}*)
7138 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7140$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007141 esac
7142 case $ac_var in #(
7143 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7145 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007146 esac ;;
7147 esac
7148 done
7149
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007150 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007151 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7152 *${as_nl}ac_space=\ *)
Benny Prijono28d3c562012-03-30 07:10:13 +00007153 # `set' does not quote correctly, so add quotes: double-quote
7154 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007155 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007156 "s/'/'\\\\''/g;
7157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007158 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007159 *)
7160 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007162 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007163 esac |
7164 sort
7165) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007166 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007167 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007168 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007169 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7171 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007172 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7173 :end' >>confcache
7174if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7175 if test -w "$cache_file"; then
7176 test "x$cache_file" != "x/dev/null" &&
Benny Prijono28d3c562012-03-30 07:10:13 +00007177 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7178$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007179 cat confcache >$cache_file
7180 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7182$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007183 fi
7184fi
7185rm -f confcache
7186
7187test "x$prefix" = xNONE && prefix=$ac_default_prefix
7188# Let make expand exec_prefix.
7189test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7190
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007191DEFS=-DHAVE_CONFIG_H
7192
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007193ac_libobjs=
7194ac_ltlibobjs=
7195for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7196 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007197 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijono28d3c562012-03-30 07:10:13 +00007198 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007199 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7200 # will be set to the directory where LIBOBJS objects are built.
Benny Prijono28d3c562012-03-30 07:10:13 +00007201 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7202 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007203done
7204LIBOBJS=$ac_libobjs
7205
7206LTLIBOBJS=$ac_ltlibobjs
7207
7208
7209
Benny Prijono28d3c562012-03-30 07:10:13 +00007210
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007211: ${CONFIG_STATUS=./config.status}
Benny Prijono28d3c562012-03-30 07:10:13 +00007212ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007213ac_clean_files_save=$ac_clean_files
7214ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007215{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7216$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7217as_write_fail=0
7218cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007219#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007220# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007221# Run this file to recreate the current configuration.
7222# Compiler output produced by configure, useful for debugging
7223# configure, is in config.log if it exists.
7224
7225debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007226ac_cs_recheck=false
7227ac_cs_silent=false
Benny Prijono36d32492011-12-28 08:42:23 +00007228
Benny Prijono28d3c562012-03-30 07:10:13 +00007229SHELL=\${CONFIG_SHELL-$SHELL}
7230export SHELL
7231_ASEOF
7232cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7233## -------------------- ##
7234## M4sh Initialization. ##
7235## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007236
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007237# Be more Bourne compatible
7238DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono28d3c562012-03-30 07:10:13 +00007239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007240 emulate sh
7241 NULLCMD=:
Benny Prijono28d3c562012-03-30 07:10:13 +00007242 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007243 # is contrary to our usage. Disable this feature.
7244 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007245 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00007246else
Benny Prijono28d3c562012-03-30 07:10:13 +00007247 case `(set -o) 2>/dev/null` in #(
7248 *posix*) :
7249 set -o posix ;; #(
7250 *) :
7251 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007252esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007253fi
7254
7255
Benny Prijono28d3c562012-03-30 07:10:13 +00007256as_nl='
7257'
7258export as_nl
7259# Printing a long string crashes Solaris 7 /usr/bin/printf.
7260as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7262as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7263# Prefer a ksh shell builtin over an external printf program on Solaris,
7264# but without wasting forks for bash or zsh.
7265if test -z "$BASH_VERSION$ZSH_VERSION" \
7266 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7267 as_echo='print -r --'
7268 as_echo_n='print -rn --'
7269elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7270 as_echo='printf %s\n'
7271 as_echo_n='printf %s'
7272else
7273 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7274 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7275 as_echo_n='/usr/ucb/echo -n'
7276 else
7277 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7278 as_echo_n_body='eval
7279 arg=$1;
7280 case $arg in #(
7281 *"$as_nl"*)
7282 expr "X$arg" : "X\\(.*\\)$as_nl";
7283 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7284 esac;
7285 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7286 '
7287 export as_echo_n_body
7288 as_echo_n='sh -c $as_echo_n_body as_echo'
7289 fi
7290 export as_echo_body
7291 as_echo='sh -c $as_echo_body as_echo'
7292fi
Benny Prijonod5233702010-01-13 13:09:45 +00007293
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007294# The user is always right.
7295if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007296 PATH_SEPARATOR=:
7297 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7298 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7299 PATH_SEPARATOR=';'
7300 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007301fi
7302
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007303
7304# IFS
7305# We need space, tab and new line, in precisely that order. Quoting is
7306# there to prevent editors from complaining about space-tab.
7307# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7308# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007309IFS=" "" $as_nl"
7310
7311# Find who we are. Look in the path if we contain no directory separator.
Benny Prijono28d3c562012-03-30 07:10:13 +00007312case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007313 *[\\/]* ) as_myself=$0 ;;
7314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00007319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7320 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007321IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007322
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007323 ;;
7324esac
7325# We did not find ourselves, most probably we were run as `sh COMMAND'
7326# in which case we are not to be found in the path.
7327if test "x$as_myself" = x; then
7328 as_myself=$0
7329fi
7330if test ! -f "$as_myself"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007331 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7332 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007333fi
7334
Benny Prijono28d3c562012-03-30 07:10:13 +00007335# Unset variables that we do not need and which cause bugs (e.g. in
7336# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7337# suppresses any "Segmentation fault" message there. '((' could
7338# trigger a bug in pdksh 5.2.14.
7339for as_var in BASH_ENV ENV MAIL MAILPATH
7340do eval test x\${$as_var+set} = xset \
7341 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007342done
7343PS1='$ '
7344PS2='> '
7345PS4='+ '
7346
7347# NLS nuisances.
Benny Prijono28d3c562012-03-30 07:10:13 +00007348LC_ALL=C
7349export LC_ALL
7350LANGUAGE=C
7351export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +00007352
Benny Prijono28d3c562012-03-30 07:10:13 +00007353# CDPATH.
7354(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7355
7356
7357# as_fn_error ERROR [LINENO LOG_FD]
7358# ---------------------------------
7359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7361# script with status $?, using 1 if that was 0.
7362as_fn_error ()
7363{
7364 as_status=$?; test $as_status -eq 0 && as_status=1
7365 if test "$3"; then
7366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7368 fi
7369 $as_echo "$as_me: error: $1" >&2
7370 as_fn_exit $as_status
7371} # as_fn_error
7372
7373
7374# as_fn_set_status STATUS
7375# -----------------------
7376# Set $? to STATUS, without forking.
7377as_fn_set_status ()
7378{
7379 return $1
7380} # as_fn_set_status
7381
7382# as_fn_exit STATUS
7383# -----------------
7384# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7385as_fn_exit ()
7386{
7387 set +e
7388 as_fn_set_status $1
7389 exit $1
7390} # as_fn_exit
7391
7392# as_fn_unset VAR
7393# ---------------
7394# Portably unset VAR.
7395as_fn_unset ()
7396{
7397 { eval $1=; unset $1;}
7398}
7399as_unset=as_fn_unset
7400# as_fn_append VAR VALUE
7401# ----------------------
7402# Append the text in VALUE to the end of the definition contained in VAR. Take
7403# advantage of any shell optimizations that allow amortized linear growth over
7404# repeated appends, instead of the typical quadratic growth present in naive
7405# implementations.
7406if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7407 eval 'as_fn_append ()
7408 {
7409 eval $1+=\$2
7410 }'
7411else
7412 as_fn_append ()
7413 {
7414 eval $1=\$$1\$2
7415 }
7416fi # as_fn_append
7417
7418# as_fn_arith ARG...
7419# ------------------
7420# Perform arithmetic evaluation on the ARGs, and store the result in the
7421# global $as_val. Take advantage of shells that can avoid forks. The arguments
7422# must be portable across $(()) and expr.
7423if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7424 eval 'as_fn_arith ()
7425 {
7426 as_val=$(( $* ))
7427 }'
7428else
7429 as_fn_arith ()
7430 {
7431 as_val=`expr "$@" || test $? -eq 1`
7432 }
7433fi # as_fn_arith
7434
7435
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007436if expr a : '\(a\)' >/dev/null 2>&1 &&
7437 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7438 as_expr=expr
7439else
7440 as_expr=false
7441fi
7442
7443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7444 as_basename=basename
7445else
7446 as_basename=false
7447fi
7448
Benny Prijono28d3c562012-03-30 07:10:13 +00007449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7450 as_dirname=dirname
7451else
7452 as_dirname=false
7453fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007454
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007455as_me=`$as_basename -- "$0" ||
7456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7457 X"$0" : 'X\(//\)$' \| \
7458 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00007459$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007460 sed '/^.*\/\([^/][^/]*\)\/*$/{
7461 s//\1/
7462 q
7463 }
7464 /^X\/\(\/\/\)$/{
7465 s//\1/
7466 q
7467 }
7468 /^X\/\(\/\).*/{
7469 s//\1/
7470 q
7471 }
7472 s/.*/./; q'`
7473
Benny Prijono28d3c562012-03-30 07:10:13 +00007474# Avoid depending upon Character Ranges.
7475as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7477as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7478as_cr_digits='0123456789'
7479as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007480
7481ECHO_C= ECHO_N= ECHO_T=
Benny Prijono28d3c562012-03-30 07:10:13 +00007482case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007483-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +00007484 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007485 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +00007486 xy) ECHO_C='\c';;
7487 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7488 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007489 esac;;
7490*)
7491 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007492esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007493
7494rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007495if test -d conf$$.dir; then
7496 rm -f conf$$.dir/conf$$.file
7497else
7498 rm -f conf$$.dir
Benny Prijono28d3c562012-03-30 07:10:13 +00007499 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007500fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007501if (echo >conf$$.file) 2>/dev/null; then
7502 if ln -s conf$$.file conf$$ 2>/dev/null; then
7503 as_ln_s='ln -s'
7504 # ... but there are two gotchas:
7505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7507 # In both cases, we have to default to `cp -p'.
7508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7509 as_ln_s='cp -p'
7510 elif ln conf$$.file conf$$ 2>/dev/null; then
7511 as_ln_s=ln
7512 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007513 as_ln_s='cp -p'
Benny Prijono28d3c562012-03-30 07:10:13 +00007514 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007515else
7516 as_ln_s='cp -p'
7517fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007518rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7519rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007520
Benny Prijono28d3c562012-03-30 07:10:13 +00007521
7522# as_fn_mkdir_p
7523# -------------
7524# Create "$as_dir" as a directory, including parents if necessary.
7525as_fn_mkdir_p ()
7526{
7527
7528 case $as_dir in #(
7529 -*) as_dir=./$as_dir;;
7530 esac
7531 test -d "$as_dir" || eval $as_mkdir_p || {
7532 as_dirs=
7533 while :; do
7534 case $as_dir in #(
7535 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7536 *) as_qdir=$as_dir;;
7537 esac
7538 as_dirs="'$as_qdir' $as_dirs"
7539 as_dir=`$as_dirname -- "$as_dir" ||
7540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7541 X"$as_dir" : 'X\(//\)[^/]' \| \
7542 X"$as_dir" : 'X\(//\)$' \| \
7543 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7544$as_echo X"$as_dir" |
7545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7546 s//\1/
7547 q
7548 }
7549 /^X\(\/\/\)[^/].*/{
7550 s//\1/
7551 q
7552 }
7553 /^X\(\/\/\)$/{
7554 s//\1/
7555 q
7556 }
7557 /^X\(\/\).*/{
7558 s//\1/
7559 q
7560 }
7561 s/.*/./; q'`
7562 test -d "$as_dir" && break
7563 done
7564 test -z "$as_dirs" || eval "mkdir $as_dirs"
7565 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7566
7567
7568} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007569if mkdir -p . 2>/dev/null; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007570 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00007571else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007572 test -d ./-p && rmdir ./-p
7573 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00007574fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007575
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007576if test -x / >/dev/null 2>&1; then
7577 as_test_x='test -x'
7578else
7579 if ls -dL / >/dev/null 2>&1; then
7580 as_ls_L_option=L
7581 else
7582 as_ls_L_option=
7583 fi
7584 as_test_x='
7585 eval sh -c '\''
7586 if test -d "$1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007587 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007588 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007589 case $1 in #(
7590 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007591 esac;
Benny Prijono28d3c562012-03-30 07:10:13 +00007592 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007593 ???[sx]*):;;*)false;;esac;fi
7594 '\'' sh
7595 '
7596fi
7597as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007598
7599# Sed expression to map a string onto a valid CPP name.
7600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7601
7602# Sed expression to map a string onto a valid variable name.
7603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7604
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007605
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007606exec 6>&1
Benny Prijono28d3c562012-03-30 07:10:13 +00007607## ----------------------------------- ##
7608## Main body of $CONFIG_STATUS script. ##
7609## ----------------------------------- ##
7610_ASEOF
7611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007612
Benny Prijono28d3c562012-03-30 07:10:13 +00007613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7614# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007615# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007616# values after options handling.
7617ac_log="
Benny Prijono28d3c562012-03-30 07:10:13 +00007618This file was extended by pjproject $as_me 2.x, which was
7619generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007620
7621 CONFIG_FILES = $CONFIG_FILES
7622 CONFIG_HEADERS = $CONFIG_HEADERS
7623 CONFIG_LINKS = $CONFIG_LINKS
7624 CONFIG_COMMANDS = $CONFIG_COMMANDS
7625 $ $0 $@
7626
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007627on `(hostname || uname -n) 2>/dev/null | sed 1q`
7628"
7629
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007630_ACEOF
7631
Benny Prijono28d3c562012-03-30 07:10:13 +00007632case $ac_config_files in *"
7633"*) set x $ac_config_files; shift; ac_config_files=$*;;
7634esac
7635
7636case $ac_config_headers in *"
7637"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7638esac
7639
7640
7641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007642# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007643config_files="$ac_config_files"
7644config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007645
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007646_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007647
Benny Prijono28d3c562012-03-30 07:10:13 +00007648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007649ac_cs_usage="\
Benny Prijono28d3c562012-03-30 07:10:13 +00007650\`$as_me' instantiates files and other configuration actions
7651from templates according to the current configuration. Unless the files
7652and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007653
Benny Prijono28d3c562012-03-30 07:10:13 +00007654Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007655
7656 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007657 -V, --version print version number and configuration settings, then exit
Benny Prijono28d3c562012-03-30 07:10:13 +00007658 --config print configuration, then exit
7659 -q, --quiet, --silent
7660 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007661 -d, --debug don't remove temporary files
7662 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijono28d3c562012-03-30 07:10:13 +00007663 --file=FILE[:TEMPLATE]
7664 instantiate the configuration file FILE
7665 --header=FILE[:TEMPLATE]
7666 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007667
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007668Configuration files:
7669$config_files
7670
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007671Configuration headers:
7672$config_headers
7673
Benny Prijono28d3c562012-03-30 07:10:13 +00007674Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00007675
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007676_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7678ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007679ac_cs_version="\\
Benny Prijono28d3c562012-03-30 07:10:13 +00007680pjproject config.status 2.x
7681configured by $0, generated by GNU Autoconf 2.65,
7682 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007683
Benny Prijono28d3c562012-03-30 07:10:13 +00007684Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007685This config.status script is free software; the Free Software Foundation
7686gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007687
7688ac_pwd='$ac_pwd'
7689srcdir='$srcdir'
Benny Prijono28d3c562012-03-30 07:10:13 +00007690test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007691_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007692
Benny Prijono28d3c562012-03-30 07:10:13 +00007693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7694# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007695ac_need_defaults=:
7696while test $# != 0
7697do
7698 case $1 in
7699 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007702 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007703 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007704 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007705 ac_option=$1
7706 ac_optarg=$2
7707 ac_shift=shift
7708 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007709 esac
7710
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007711 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007712 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007714 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijono28d3c562012-03-30 07:10:13 +00007716 $as_echo "$ac_cs_version"; exit ;;
7717 --config | --confi | --conf | --con | --co | --c )
7718 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007719 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007720 debug=: ;;
7721 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007722 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00007723 case $ac_optarg in
7724 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7725 esac
7726 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007727 ac_need_defaults=false;;
7728 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007729 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00007730 case $ac_optarg in
7731 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7732 esac
7733 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007734 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007735 --he | --h)
7736 # Conflict between --help and --header
Benny Prijono28d3c562012-03-30 07:10:13 +00007737 as_fn_error "ambiguous option: \`$1'
7738Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007739 --help | --hel | -h )
Benny Prijono28d3c562012-03-30 07:10:13 +00007740 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7742 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7743 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007744
7745 # This is an error.
Benny Prijono28d3c562012-03-30 07:10:13 +00007746 -*) as_fn_error "unrecognized option: \`$1'
7747Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007748
Benny Prijono28d3c562012-03-30 07:10:13 +00007749 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007750 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007751
7752 esac
7753 shift
7754done
7755
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007756ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007757
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007758if $ac_cs_silent; then
7759 exec 6>/dev/null
7760 ac_configure_extra_args="$ac_configure_extra_args --silent"
7761fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007762
7763_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007765if \$ac_cs_recheck; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007766 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7767 shift
7768 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7769 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007770 export CONFIG_SHELL
Benny Prijono28d3c562012-03-30 07:10:13 +00007771 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007772fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007773
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007774_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007776exec 5>>config.log
7777{
7778 echo
7779 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7780## Running $as_me. ##
7781_ASBOX
Benny Prijono28d3c562012-03-30 07:10:13 +00007782 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007783} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007784
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007785_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007787_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007788
Benny Prijono28d3c562012-03-30 07:10:13 +00007789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007790
7791# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007792for ac_config_target in $ac_config_targets
7793do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007794 case $ac_config_target in
7795 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7796 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7797 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7798 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7799 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7800 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7801 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00007802 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007803 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7804 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7805 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7806 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007807 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007808 "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 +00007809
Benny Prijono28d3c562012-03-30 07:10:13 +00007810 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007811 esac
7812done
7813
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007814
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007815# If the user did not use the arguments to specify the items to instantiate,
7816# then the envvar interface is used. Set only those that are not.
7817# We use the long form for the default assignment because of an extremely
7818# bizarre bug on SunOS 4.1.3.
7819if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007820 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007821 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7822fi
7823
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007824# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007825# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007826# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007827# Hook for its removal unless debugging.
7828# Note that there is a small window in which the directory will not be cleaned:
7829# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007830$debug ||
7831{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007832 tmp=
7833 trap 'exit_status=$?
7834 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7835' 0
Benny Prijono28d3c562012-03-30 07:10:13 +00007836 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007837}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007838# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007839
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007840{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007841 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007842 test -n "$tmp" && test -d "$tmp"
7843} ||
7844{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007845 tmp=./conf$$-$RANDOM
7846 (umask 077 && mkdir "$tmp")
Benny Prijono28d3c562012-03-30 07:10:13 +00007847} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007848
Benny Prijono28d3c562012-03-30 07:10:13 +00007849# Set up the scripts for CONFIG_FILES section.
7850# No need to generate them if there are no CONFIG_FILES.
7851# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007852if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007853
Benny Prijono28d3c562012-03-30 07:10:13 +00007854
7855ac_cr=`echo X | tr X '\015'`
7856# On cygwin, bash can eat \r inside `` if the user requested igncr.
7857# But we know of no other shell where ac_cr would be empty at this
7858# point, so we can use a bashism as a fallback.
7859if test "x$ac_cr" = x; then
7860 eval ac_cr=\$\'\\r\'
7861fi
7862ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7863if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7864 ac_cs_awk_cr='\r'
7865else
7866 ac_cs_awk_cr=$ac_cr
7867fi
7868
7869echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007870_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007871
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007872
Benny Prijono28d3c562012-03-30 07:10:13 +00007873{
7874 echo "cat >conf$$subs.awk <<_ACEOF" &&
7875 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7876 echo "_ACEOF"
7877} >conf$$subs.sh ||
7878 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7879ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007880ac_delim='%!_!# '
7881for ac_last_try in false false false false false :; do
Benny Prijono28d3c562012-03-30 07:10:13 +00007882 . ./conf$$subs.sh ||
7883 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007884
Benny Prijono28d3c562012-03-30 07:10:13 +00007885 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7886 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007887 break
7888 elif $ac_last_try; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007889 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007890 else
7891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007892 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007893done
Benny Prijono28d3c562012-03-30 07:10:13 +00007894rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007895
Benny Prijono28d3c562012-03-30 07:10:13 +00007896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7897cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007898_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007899sed -n '
7900h
7901s/^/S["/; s/!.*/"]=/
7902p
7903g
7904s/^[^!]*!//
7905:repl
7906t repl
7907s/'"$ac_delim"'$//
7908t delim
7909:nl
7910h
7911s/\(.\{148\}\)..*/\1/
7912t more1
7913s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7914p
7915n
7916b repl
7917:more1
7918s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7919p
7920g
7921s/.\{148\}//
7922t nl
7923:delim
7924h
7925s/\(.\{148\}\)..*/\1/
7926t more2
7927s/["\\]/\\&/g; s/^/"/; s/$/"/
7928p
7929b
7930:more2
7931s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7932p
7933g
7934s/.\{148\}//
7935t delim
7936' <conf$$subs.awk | sed '
7937/^[^""]/{
7938 N
7939 s/\n//
7940}
7941' >>$CONFIG_STATUS || ac_write_fail=1
7942rm -f conf$$subs.awk
7943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7944_ACAWK
7945cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7946 for (key in S) S_is_set[key] = 1
7947 FS = ""
7948
7949}
7950{
7951 line = $ 0
7952 nfields = split(line, field, "@")
7953 substed = 0
7954 len = length(field[1])
7955 for (i = 2; i < nfields; i++) {
7956 key = field[i]
7957 keylen = length(key)
7958 if (S_is_set[key]) {
7959 value = S[key]
7960 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7961 len += length(value) + length(field[++i])
7962 substed = 1
7963 } else
7964 len += 1 + keylen
7965 }
7966
7967 print line
7968}
7969
7970_ACAWK
Benny Prijonod4306432010-05-01 22:05:41 +00007971_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7973if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7974 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7975else
7976 cat
7977fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7978 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00007979_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007980
7981# VPATH may cause trouble with some makes, so we remove $(srcdir),
7982# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7983# trailing colons and then remove the whole line if VPATH becomes empty
7984# (actually we leave an empty line to preserve line numbers).
7985if test "x$srcdir" = x.; then
7986 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7987s/:*\$(srcdir):*/:/
7988s/:*\${srcdir}:*/:/
7989s/:*@srcdir@:*/:/
7990s/^\([^=]*=[ ]*\):*/\1/
7991s/:*$//
7992s/^[^=]*=[ ]*$//
7993}'
7994fi
7995
Benny Prijono28d3c562012-03-30 07:10:13 +00007996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007997fi # test -n "$CONFIG_FILES"
7998
Benny Prijono28d3c562012-03-30 07:10:13 +00007999# Set up the scripts for CONFIG_HEADERS section.
8000# No need to generate them if there are no CONFIG_HEADERS.
8001# This happens for instance with `./config.status Makefile'.
8002if test -n "$CONFIG_HEADERS"; then
8003cat >"$tmp/defines.awk" <<\_ACAWK ||
8004BEGIN {
8005_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008006
Benny Prijono28d3c562012-03-30 07:10:13 +00008007# Transform confdefs.h into an awk script `defines.awk', embedded as
8008# here-document in config.status, that substitutes the proper values into
8009# config.h.in to produce config.h.
8010
8011# Create a delimiter string that does not exist in confdefs.h, to ease
8012# handling of long lines.
8013ac_delim='%!_!# '
8014for ac_last_try in false false :; do
8015 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8016 if test -z "$ac_t"; then
8017 break
8018 elif $ac_last_try; then
8019 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8020 else
8021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8022 fi
8023done
8024
8025# For the awk script, D is an array of macro values keyed by name,
8026# likewise P contains macro parameters if any. Preserve backslash
8027# newline sequences.
8028
8029ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8030sed -n '
8031s/.\{148\}/&'"$ac_delim"'/g
8032t rset
8033:rset
8034s/^[ ]*#[ ]*define[ ][ ]*/ /
8035t def
8036d
8037:def
8038s/\\$//
8039t bsnl
8040s/["\\]/\\&/g
8041s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8042D["\1"]=" \3"/p
8043s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8044d
8045:bsnl
8046s/["\\]/\\&/g
8047s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8048D["\1"]=" \3\\\\\\n"\\/p
8049t cont
8050s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8051t cont
8052d
8053:cont
8054n
8055s/.\{148\}/&'"$ac_delim"'/g
8056t clear
8057:clear
8058s/\\$//
8059t bsnlc
8060s/["\\]/\\&/g; s/^/"/; s/$/"/p
8061d
8062:bsnlc
8063s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8064b cont
8065' <confdefs.h | sed '
8066s/'"$ac_delim"'/"\\\
8067"/g' >>$CONFIG_STATUS || ac_write_fail=1
8068
8069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8070 for (key in D) D_is_set[key] = 1
8071 FS = ""
8072}
8073/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8074 line = \$ 0
8075 split(line, arg, " ")
8076 if (arg[1] == "#") {
8077 defundef = arg[2]
8078 mac1 = arg[3]
8079 } else {
8080 defundef = substr(arg[1], 2)
8081 mac1 = arg[2]
8082 }
8083 split(mac1, mac2, "(") #)
8084 macro = mac2[1]
8085 prefix = substr(line, 1, index(line, defundef) - 1)
8086 if (D_is_set[macro]) {
8087 # Preserve the white space surrounding the "#".
8088 print prefix "define", macro P[macro] D[macro]
8089 next
8090 } else {
8091 # Replace #undef with comments. This is necessary, for example,
8092 # in the case of _POSIX_SOURCE, which is predefined and required
8093 # on some systems where configure will not decide to define it.
8094 if (defundef == "undef") {
8095 print "/*", prefix defundef, macro, "*/"
8096 next
8097 }
8098 }
8099}
8100{ print }
8101_ACAWK
8102_ACEOF
8103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8104 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8105fi # test -n "$CONFIG_HEADERS"
8106
8107
8108eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8109shift
8110for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008111do
8112 case $ac_tag in
8113 :[FHLC]) ac_mode=$ac_tag; continue;;
8114 esac
8115 case $ac_mode$ac_tag in
8116 :[FHL]*:*);;
Benny Prijono28d3c562012-03-30 07:10:13 +00008117 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008118 :[FH]-) ac_tag=-:-;;
8119 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8120 esac
8121 ac_save_IFS=$IFS
8122 IFS=:
8123 set x $ac_tag
8124 IFS=$ac_save_IFS
8125 shift
8126 ac_file=$1
8127 shift
8128
8129 case $ac_mode in
8130 :L) ac_source=$1;;
8131 :[FH])
8132 ac_file_inputs=
8133 for ac_f
8134 do
8135 case $ac_f in
8136 -) ac_f="$tmp/stdin";;
8137 *) # Look for the file first in the build tree, then in the source tree
8138 # (if the path is not absolute). The absolute path cannot be DOS-style,
8139 # because $ac_f cannot contain `:'.
8140 test -f "$ac_f" ||
8141 case $ac_f in
8142 [\\/$]*) false;;
8143 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8144 esac ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008145 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008146 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00008147 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8148 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008149 done
8150
8151 # Let's still pretend it is `configure' which instantiates (i.e., don't
8152 # use $as_me), people would be surprised to read:
8153 # /* config.h. Generated by config.status. */
Benny Prijono28d3c562012-03-30 07:10:13 +00008154 configure_input='Generated from '`
8155 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8156 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008157 if test x"$ac_file" != x-; then
8158 configure_input="$ac_file. $configure_input"
Benny Prijono28d3c562012-03-30 07:10:13 +00008159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8160$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008161 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00008162 # Neutralize special characters interpreted by sed in replacement strings.
8163 case $configure_input in #(
8164 *\&* | *\|* | *\\* )
8165 ac_sed_conf_input=`$as_echo "$configure_input" |
8166 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8167 *) ac_sed_conf_input=$configure_input;;
8168 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008169
8170 case $ac_tag in
Benny Prijono28d3c562012-03-30 07:10:13 +00008171 *:-:* | *:-) cat >"$tmp/stdin" \
8172 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008173 esac
8174 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008175 esac
8176
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008177 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008178$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8179 X"$ac_file" : 'X\(//\)[^/]' \| \
8180 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008181 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008182$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8184 s//\1/
8185 q
8186 }
8187 /^X\(\/\/\)[^/].*/{
8188 s//\1/
8189 q
8190 }
8191 /^X\(\/\/\)$/{
8192 s//\1/
8193 q
8194 }
8195 /^X\(\/\).*/{
8196 s//\1/
8197 q
8198 }
8199 s/.*/./; q'`
Benny Prijono28d3c562012-03-30 07:10:13 +00008200 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008201 ac_builddir=.
8202
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008203case "$ac_dir" in
8204.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8205*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008206 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008207 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00008208 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008209 case $ac_top_builddir_sub in
8210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8212 esac ;;
8213esac
8214ac_abs_top_builddir=$ac_pwd
8215ac_abs_builddir=$ac_pwd$ac_dir_suffix
8216# for backward compatibility:
8217ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008218
8219case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008220 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008221 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008222 ac_top_srcdir=$ac_top_builddir_sub
8223 ac_abs_top_srcdir=$ac_pwd ;;
8224 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008225 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008226 ac_top_srcdir=$srcdir
8227 ac_abs_top_srcdir=$srcdir ;;
8228 *) # Relative name.
8229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8230 ac_top_srcdir=$ac_top_build_prefix$srcdir
8231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008232esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008233ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00008234
Benny Prijonoe2746132008-09-27 13:16:35 +00008235
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008236 case $ac_mode in
8237 :F)
8238 #
8239 # CONFIG_FILE
8240 #
Benny Prijonoe2746132008-09-27 13:16:35 +00008241
Benny Prijonoe2746132008-09-27 13:16:35 +00008242_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008243
Benny Prijono28d3c562012-03-30 07:10:13 +00008244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008245# If the template does not know about datarootdir, expand it.
8246# FIXME: This hack should be removed a few years after 2.60.
8247ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijono28d3c562012-03-30 07:10:13 +00008248ac_sed_dataroot='
8249/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008250 p
8251 q
8252}
8253/@datadir@/p
8254/@docdir@/p
8255/@infodir@/p
8256/@localedir@/p
Benny Prijono28d3c562012-03-30 07:10:13 +00008257/@mandir@/p'
8258case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008259*datarootdir*) ac_datarootdir_seen=yes;;
8260*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8262$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008263_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008265 ac_datarootdir_hack='
8266 s&@datadir@&$datadir&g
8267 s&@docdir@&$docdir&g
8268 s&@infodir@&$infodir&g
8269 s&@localedir@&$localedir&g
8270 s&@mandir@&$mandir&g
Benny Prijono28d3c562012-03-30 07:10:13 +00008271 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008272esac
8273_ACEOF
8274
8275# Neutralize VPATH when `$srcdir' = `.'.
8276# Shell code in configure.ac might set extrasub.
8277# FIXME: do we really want to maintain this feature?
Benny Prijono28d3c562012-03-30 07:10:13 +00008278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8279ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008280$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008281_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008283:t
8284/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono28d3c562012-03-30 07:10:13 +00008285s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008286s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijono28d3c562012-03-30 07:10:13 +00008287s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008288s&@srcdir@&$ac_srcdir&;t t
8289s&@abs_srcdir@&$ac_abs_srcdir&;t t
8290s&@top_srcdir@&$ac_top_srcdir&;t t
8291s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8292s&@builddir@&$ac_builddir&;t t
8293s&@abs_builddir@&$ac_abs_builddir&;t t
8294s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8295$ac_datarootdir_hack
Benny Prijono28d3c562012-03-30 07:10:13 +00008296"
8297eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8298 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008299
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008300test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8301 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8302 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijono28d3c562012-03-30 07:10:13 +00008303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008304which seems to be undefined. Please make sure it is defined." >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008305$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008306which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008307
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008308 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008309 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00008310 -) cat "$tmp/out" && rm -f "$tmp/out";;
8311 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8312 esac \
8313 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008314 ;;
8315 :H)
8316 #
8317 # CONFIG_HEADER
8318 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008319 if test x"$ac_file" != x-; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008320 {
8321 $as_echo "/* $configure_input */" \
8322 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8323 } >"$tmp/config.h" \
8324 || as_fn_error "could not create $ac_file" "$LINENO" 5
8325 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8327$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008328 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008329 rm -f "$ac_file"
8330 mv "$tmp/config.h" "$ac_file" \
8331 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008332 fi
8333 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008334 $as_echo "/* $configure_input */" \
8335 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8336 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008337 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008338 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008339
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008340
8341 esac
8342
8343done # for ac_tag
8344
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008345
Benny Prijono28d3c562012-03-30 07:10:13 +00008346as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008347_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008348ac_clean_files=$ac_clean_files_save
8349
Benny Prijono28d3c562012-03-30 07:10:13 +00008350test $ac_write_fail = 0 ||
8351 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8352
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008353
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008354# configure is writing to config.log, and then calls config.status.
8355# config.status does its own redirection, appending to config.log.
8356# Unfortunately, on DOS this fails, as config.log is still kept open
8357# by configure, so config.status won't be able to write to it; its
8358# output is simply discarded. So we exec the FD to /dev/null,
8359# effectively closing config.log, so it can be properly (re)opened and
8360# appended to by config.status. When coming back to configure, we
8361# need to make the FD available again.
8362if test "$no_create" != yes; then
8363 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008364 ac_config_status_args=
8365 test "$silent" = yes &&
8366 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008367 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008368 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008369 exec 5>>config.log
8370 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8371 # would make configure fail if this is the last instruction.
Benny Prijono28d3c562012-03-30 07:10:13 +00008372 $ac_cs_success || as_fn_exit $?
8373fi
8374if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8376$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00008377fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008378
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008379
Benny Prijonod9627842007-04-18 09:24:31 +00008380
Benny Prijono28d3c562012-03-30 07:10:13 +00008381{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00008382
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008383Configurations 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 +00008384
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008385Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008386 - 'user.mak'
8387 - 'pjlib/include/pj/config_site.h'
8388
8389The next step now is to run 'make dep' and 'make'.
8390" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008391$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00008392
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008393Configurations 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 +00008394
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008395Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008396 - 'user.mak'
8397 - 'pjlib/include/pj/config_site.h'
8398
8399The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008400" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00008401