blob: 840ea8cc738ab917afcaf9dc6daa26aafd39e837 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Sauw Ming2f91da02012-06-07 02:24:51 +00003# Generated by GNU Autoconf 2.69 for pjproject 2.x.
Benny Prijono28d3c562012-03-30 07:10:13 +00004#
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005#
Sauw Ming2f91da02012-06-07 02:24:51 +00006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Benny Prijono28d3c562012-03-30 07:10:13 +00007#
8#
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Benny Prijono28d3c562012-03-30 07:10:13 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono28d3c562012-03-30 07:10:13 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +000018 emulate sh
19 NULLCMD=:
Benny Prijono28d3c562012-03-30 07:10:13 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000023 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000024else
Benny Prijono28d3c562012-03-30 07:10:13 +000025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000030esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000031fi
32
33
Benny Prijono28d3c562012-03-30 07:10:13 +000034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
Benny Prijonod5233702010-01-13 13:09:45 +000071
Benny Prijono7e0d75f2006-12-25 20:34:14 +000072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijono28d3c562012-03-30 07:10:13 +000074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000079fi
80
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Sauw Ming2f91da02012-06-07 02:24:51 +000090as_myself=
Benny Prijono28d3c562012-03-30 07:10:13 +000091case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +000098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000100IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000101
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Benny Prijono28d3c562012-03-30 07:10:13 +0000110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000112fi
113
Benny Prijono28d3c562012-03-30 07:10:13 +0000114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Benny Prijono28d3c562012-03-30 07:10:13 +0000127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +0000131
Benny Prijono28d3c562012-03-30 07:10:13 +0000132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Sauw Ming2f91da02012-06-07 02:24:51 +0000135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Benny Prijono28d3c562012-03-30 07:10:13 +0000160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Sauw Ming2f91da02012-06-07 02:24:51 +0000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Benny Prijono28d3c562012-03-30 07:10:13 +0000195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Sauw Ming2f91da02012-06-07 02:24:51 +0000239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Benny Prijono28d3c562012-03-30 07:10:13 +0000258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Benny Prijono28d3c562012-03-30 07:10:13 +0000356
357
358} # as_fn_mkdir_p
Sauw Ming2f91da02012-06-07 02:24:51 +0000359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Benny Prijono28d3c562012-03-30 07:10:13 +0000367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Benny Prijono28d3c562012-03-30 07:10:13 +0000405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000407# script with STATUS, using 1 if that was 0.
Benny Prijono28d3c562012-03-30 07:10:13 +0000408as_fn_error ()
409{
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Benny Prijono28d3c562012-03-30 07:10:13 +0000414 fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000415 $as_echo "$as_me: error: $2" >&2
Benny Prijono28d3c562012-03-30 07:10:13 +0000416 as_fn_exit $as_status
417} # as_fn_error
418
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Benny Prijono28d3c562012-03-30 07:10:13 +0000432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000437
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +0000442$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Benny Prijono28d3c562012-03-30 07:10:13 +0000457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000463
464
Benny Prijono28d3c562012-03-30 07:10:13 +0000465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000474 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000479 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000482 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000483 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000484 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000485 chmod +x "$as_me.lineno" ||
Benny Prijono28d3c562012-03-30 07:10:13 +0000486 { $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 +0000487
Sauw Ming2f91da02012-06-07 02:24:51 +0000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000496 # Exit status is that of the last command.
497 exit
498}
499
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000500ECHO_C= ECHO_N= ECHO_T=
Benny Prijono28d3c562012-03-30 07:10:13 +0000501case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000502-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000503 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +0000505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000508 esac;;
509*)
510 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000511esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000512
513rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Benny Prijono28d3c562012-03-30 07:10:13 +0000518 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000519fi
Benny Prijono28d3c562012-03-30 07:10:13 +0000520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Sauw Ming2f91da02012-06-07 02:24:51 +0000526 # In both cases, we have to default to `cp -pR'.
Benny Prijono28d3c562012-03-30 07:10:13 +0000527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Sauw Ming2f91da02012-06-07 02:24:51 +0000528 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +0000529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Sauw Ming2f91da02012-06-07 02:24:51 +0000532 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +0000533 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000534else
Sauw Ming2f91da02012-06-07 02:24:51 +0000535 as_ln_s='cp -pR'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000536fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000539
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000540if mkdir -p . 2>/dev/null; then
Benny Prijono28d3c562012-03-30 07:10:13 +0000541 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +0000542else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000545fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000546
Sauw Ming2f91da02012-06-07 02:24:51 +0000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000556
Benny Prijono28d3c562012-03-30 07:10:13 +0000557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000559
560# Name of the host.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000569ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000570ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000571LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000572cross_compiling=no
573subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000574MFLAGS=
575MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000576
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000577# Identity of this package.
578PACKAGE_NAME='pjproject'
579PACKAGE_TARNAME='pjproject'
Benny Prijono28d3c562012-03-30 07:10:13 +0000580PACKAGE_VERSION='2.x'
581PACKAGE_STRING='pjproject 2.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000582PACKAGE_BUGREPORT=''
Benny Prijono28d3c562012-03-30 07:10:13 +0000583PACKAGE_URL=''
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000584
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000588#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000589# include <sys/types.h>
590#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000591#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000592# include <sys/stat.h>
593#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000594#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000595# include <stdlib.h>
596# include <stddef.h>
597#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000598# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000599# include <stdlib.h>
600# endif
601#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000602#ifdef HAVE_STRING_H
603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000604# include <memory.h>
605# endif
606# include <string.h>
607#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000608#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000609# include <strings.h>
610#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000611#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000612# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000613#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000614#ifdef HAVE_STDINT_H
615# include <stdint.h>
616#endif
617#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000618# include <unistd.h>
619#endif"
620
Benny Prijono28d3c562012-03-30 07:10:13 +0000621ac_subst_vars='LTLIBOBJS
Benny Prijono36d32492011-12-28 08:42:23 +0000622LIBOBJS
Benny Prijono28d3c562012-03-30 07:10:13 +0000623ac_main_obj
624ac_host
625ac_linux_poll
Sauw Ming03df4242012-09-25 02:23:06 +0000626silk_present
627silk_h_present
628ac_no_silk
Benny Prijono28d3c562012-03-30 07:10:13 +0000629opencore_amrnb_present
630opencore_amrnb_h_present
631ac_no_opencore_amrnb
632libcrypto_present
633libssl_present
634openssl_h_present
635ac_no_ssl
636ac_v4l2_ldflags
637ac_v4l2_cflags
Benny Prijonoeeebfab2012-04-23 13:46:21 +0000638PKG_CONFIG
639SAVED_PKG_CONFIG_PATH
Benny Prijono28d3c562012-03-30 07:10:13 +0000640ac_ffmpeg_ldflags
641ac_ffmpeg_cflags
642ac_has_ffmpeg
643ac_sdl_ldflags
644ac_sdl_cflags
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +0000645SDL_CONFIG
Benny Prijono28d3c562012-03-30 07:10:13 +0000646ac_resample_dll
647ac_no_ilbc_codec
648ac_no_speex_codec
649ac_no_g7221_codec
650ac_no_g722_codec
651ac_no_gsm_codec
652ac_no_l16_codec
653ac_no_g711_codec
654ac_no_speex_aec
655ac_no_large_filter
656ac_no_small_filter
657ac_qt_cflags
658ac_pjmedia_video_has_qt
659ac_ios_cflags
660ac_pjmedia_video_has_ios
661ac_pjmedia_video
662ac_pa_use_oss
663ac_pa_use_alsa
664ac_pa_cflags
665ac_external_pa
666ac_pjmedia_snd
667ac_external_gsm
668ac_external_speex
669ac_os_objs
670EGREP
671GREP
672CPP
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000673ac_cross_compile
Benny Prijono28d3c562012-03-30 07:10:13 +0000674ac_shlib_suffix
675ac_build_mak_vars
676ac_pjdir
677CC_CFLAGS
678CC_OPTIMIZE
679CC_DEF
680CC_INC
681CC_OUT
682LIBEXT2
683LIBEXT
684RANLIB
685LDOUT
686LD
687AR
688ac_ct_CXX
689CXXFLAGS
690CXX
691OBJEXT
692EXEEXT
693ac_ct_CC
694CPPFLAGS
695LDFLAGS
696CFLAGS
697CC
698target_os
699target_vendor
700target_cpu
701target
702host_os
703host_vendor
704host_cpu
705host
706build_os
707build_vendor
708build_cpu
709build
710target_alias
711host_alias
712build_alias
713LIBS
714ECHO_T
715ECHO_N
716ECHO_C
717DEFS
718mandir
719localedir
720libdir
721psdir
722pdfdir
723dvidir
724htmldir
725infodir
726docdir
727oldincludedir
728includedir
729localstatedir
730sharedstatedir
731sysconfdir
732datadir
733datarootdir
734libexecdir
735sbindir
736bindir
737program_transform_name
738prefix
739exec_prefix
740PACKAGE_URL
741PACKAGE_BUGREPORT
742PACKAGE_STRING
743PACKAGE_VERSION
744PACKAGE_TARNAME
745PACKAGE_NAME
746PATH_SEPARATOR
747SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000748ac_subst_files=''
Benny Prijono28d3c562012-03-30 07:10:13 +0000749ac_user_opts='
750enable_option_checking
751enable_floating_point
752enable_epoll
753with_external_speex
754with_external_gsm
755enable_sound
756with_external_pa
757enable_oss
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +0000758enable_video
Benny Prijono28d3c562012-03-30 07:10:13 +0000759enable_ext_sound
760enable_small_filter
761enable_large_filter
762enable_speex_aec
763enable_g711_codec
764enable_l16_codec
765enable_gsm_codec
766enable_g722_codec
767enable_g7221_codec
768enable_speex_codec
769enable_ilbc_codec
770enable_libsamplerate
771enable_resample_dll
772with_sdl
773enable_sdl
Benny Prijono28d3c562012-03-30 07:10:13 +0000774with_ffmpeg
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000775enable_ffmpeg
Benny Prijono28d3c562012-03-30 07:10:13 +0000776enable_v4l2
777enable_ipp
778with_ipp
779with_ipp_samples
780with_ipp_arch
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000781with_ssl
Benny Prijono28d3c562012-03-30 07:10:13 +0000782enable_ssl
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000783with_opencore_amrnb
Benny Prijono28d3c562012-03-30 07:10:13 +0000784enable_opencore_amrnb
Sauw Ming03df4242012-09-25 02:23:06 +0000785with_silk
786enable_silk
Benny Prijono28d3c562012-03-30 07:10:13 +0000787'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CXX
797CXXFLAGS
798CCC
799CPP'
800
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000801
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000802# Initialize some variables set by options.
803ac_init_help=
804ac_init_version=false
Benny Prijono28d3c562012-03-30 07:10:13 +0000805ac_unrecognized_opts=
806ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000807# The variables have the same names as the options, with
808# dashes changed to underlines.
809cache_file=/dev/null
810exec_prefix=NONE
811no_create=
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
820verbose=
821x_includes=NONE
822x_libraries=NONE
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000829# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000838includedir='${prefix}/include'
839oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000849
850ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000851ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000852for ac_option
853do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000856 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000857 ac_prev=
858 continue
859 fi
860
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000861 case $ac_option in
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000865 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000893 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000894 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000896 datadir=$ac_optarg ;;
897
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000905 -disable-* | --disable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000907 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000909 as_fn_error $? "invalid feature name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +0000910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914"enable_$ac_useropt"
915"*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000930
931 -enable-* | --enable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000933 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000935 as_fn_error $? "invalid feature name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +0000936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940"enable_$ac_useropt"
941"*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001007 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001008 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001024 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001137 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001139 as_fn_error $? "invalid package name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +00001140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001150
1151 -without-* | --without-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001153 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001155 as_fn_error $? "invalid package name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +00001156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186Try \`$0 --help' for more information"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00001195 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001196 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
Benny Prijono28d3c562012-03-30 07:10:13 +00001201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijono28d3c562012-03-30 07:10:13 +00001203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Sauw Ming2f91da02012-06-07 02:24:51 +00001204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001205 ;;
1206
1207 esac
1208done
1209
1210if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001212 as_fn_error $? "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001213fi
1214
Benny Prijono28d3c562012-03-30 07:10:13 +00001215if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00001219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221fi
1222
1223# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001228do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001229 eval ac_val=\$$ac_var
Benny Prijono28d3c562012-03-30 07:10:13 +00001230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001237 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001240 esac
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001242done
1243
1244# There might be people who depend on the old broken behavior: `$host'
1245# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001246# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001247build=$build_alias
1248host=$host_alias
1249target=$target_alias
1250
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001251# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001252if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258fi
1259
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
1264
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001265
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001269 as_fn_error $? "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001271 as_fn_error $? "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001272
1273
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001277 # Try the directory containing this script, then the parent directory.
Benny Prijono28d3c562012-03-30 07:10:13 +00001278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001301 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001302 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001303 srcdir=..
1304 fi
1305else
1306 ac_srcdir_defaulted=no
1307fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001308if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001311fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313ac_abs_confdir=`(
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001315 pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001332
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001339 cat <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001340\`configure' configures pjproject 2.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001341
1342Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347Defaults for the options are specified in brackets.
1348
1349Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001354 -q, --quiet, --silent do not print \`checking ...' messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001360Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001362 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001364 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001365
1366By default, \`make install' will install all the files in
1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369for instance \`--prefix=\$HOME'.
1370
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
Benny Prijono28d3c562012-03-30 07:10:13 +00001374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001393_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001394
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001395 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001396
1397System types:
1398 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001400 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001401_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001402fi
1403
1404if test -n "$ac_init_help"; then
1405 case $ac_init_help in
Benny Prijono28d3c562012-03-30 07:10:13 +00001406 short | recursive ) echo "Configuration of pjproject 2.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001407 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001408 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001409
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001410Optional Features:
Benny Prijono28d3c562012-03-30 07:10:13 +00001411 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1414 --disable-floating-point
1415 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001416 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001417 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001418 --disable-oss Disable OSS audio (default: not disabled)
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00001419 --disable-video Disable video feature
Benny Prijonoebb2c332008-07-28 23:40:58 +00001420 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001421 --disable-small-filter Exclude small filter in resampling
1422 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001423 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1424 --disable-g711-codec Exclude G.711 codecs from the build
1425 --disable-l16-codec Exclude Linear/L16 codec family from the build
1426 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001427 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001428 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001429 --disable-speex-codec Exclude Speex codecs in the build
1430 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001431 --enable-libsamplerate Link with libsamplerate when available. Note that
1432 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono28d3c562012-03-30 07:10:13 +00001433 --enable-resample-dll Build libresample as shared library
Benny Prijonoc45d9512010-12-10 11:04:30 +00001434 --disable-sdl Disable SDL (default: not disabled)
1435 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1436 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001437 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1438 package and samples location using IPPROOT and
1439 IPPSAMPLES env var or with --with-ipp and
1440 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001441 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001442
Sauw Minge7dbbc82011-10-24 09:28:13 +00001443 --disable-opencore-amrnb
1444 Exclude OpenCORE AMR-NB support from the build
1445 (default: autodetect)
1446
Sauw Ming03df4242012-09-25 02:23:06 +00001447 --disable-silk Exclude SILK support from the build (default:
1448 autodetect)
1449
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001450
Benny Prijonofe0c1272010-01-13 16:28:15 +00001451Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001454 --with-external-speex Use external Speex development files, not the one in
1455 "third_party" directory. When this option is set,
1456 make sure that Speex is accessible to use (hint: use
1457 CFLAGS and LDFLAGS env var to set the include/lib
1458 paths)
1459 --with-external-gsm Use external GSM codec library, not the one in
1460 "third_party" directory. When this option is set,
1461 make sure that the GSM include/lib files are
1462 accessible to use (hint: use CFLAGS and LDFLAGS env
1463 var to set the include/lib paths)
1464 --with-external-pa Use external PortAudio development files, not the
1465 one in "third_party" directory. When this option is
1466 set, make sure that PortAudio is accessible to use
1467 (hint: use CFLAGS and LDFLAGS env var to set the
1468 include/lib paths)
Benny Prijono5b0af632011-07-20 03:16:25 +00001469 --with-sdl=DIR Specify alternate libSDL prefix
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001470 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001471 --with-ipp=DIR Specify the Intel IPP location
1472 --with-ipp-samples=DIR Specify the Intel IPP samples location
1473 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001474 "em64t. Default is blank for IA32"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001475 --with-ssl=DIR Specify alternate libssl prefix
1476 --with-opencore-amrnb=DIR
1477 Specify alternate libopencore-amrnb prefix
Sauw Ming03df4242012-09-25 02:23:06 +00001478 --with-silk=DIR Specify alternate SILK prefix
Benny Prijonofe0c1272010-01-13 16:28:15 +00001479
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001480Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001485 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijono28d3c562012-03-30 07:10:13 +00001486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001487 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001490 CPP C preprocessor
1491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
Benny Prijono28d3c562012-03-30 07:10:13 +00001495Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001496_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001497ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001498fi
1499
1500if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono28d3c562012-03-30 07:10:13 +00001503 test -d "$ac_dir" ||
1504 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001506 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001507
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001508case "$ac_dir" in
1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001512 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00001513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518esac
1519ac_abs_top_builddir=$ac_pwd
1520ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521# for backward compatibility:
1522ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001523
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001524case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001525 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001526 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001530 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001537esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001539
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001548 else
Benny Prijono28d3c562012-03-30 07:10:13 +00001549 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001552 done
1553fi
1554
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001555test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001556if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001557 cat <<\_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001558pjproject configure 2.x
Sauw Ming2f91da02012-06-07 02:24:51 +00001559generated by GNU Autoconf 2.69
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001560
Sauw Ming2f91da02012-06-07 02:24:51 +00001561Copyright (C) 2012 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001562This configure script is free software; the Free Software Foundation
1563gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001564_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001565 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001566fi
Benny Prijono28d3c562012-03-30 07:10:13 +00001567
1568## ------------------------ ##
1569## Autoconf initialization. ##
1570## ------------------------ ##
1571
1572# ac_fn_c_try_compile LINENO
1573# --------------------------
1574# Try to compile conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_c_try_compile ()
1576{
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext
1579 if { { ac_try="$ac_compile"
1580case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_compile") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest.$ac_objext; then :
1598 ac_retval=0
1599else
1600 $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604fi
Sauw Ming2f91da02012-06-07 02:24:51 +00001605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001606 as_fn_set_status $ac_retval
1607
1608} # ac_fn_c_try_compile
1609
1610# ac_fn_cxx_try_compile LINENO
1611# ----------------------------
1612# Try to compile conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_cxx_try_compile ()
1614{
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext
1617 if { { ac_try="$ac_compile"
1618case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_cxx_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext; then :
1636 ac_retval=0
1637else
1638 $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642fi
Sauw Ming2f91da02012-06-07 02:24:51 +00001643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001644 as_fn_set_status $ac_retval
1645
1646} # ac_fn_cxx_try_compile
1647
1648# ac_fn_c_try_link LINENO
1649# -----------------------
1650# Try to link conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_link ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext conftest$ac_exeext
1655 if { { ac_try="$ac_link"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest$ac_exeext && {
1674 test "$cross_compiling" = yes ||
Sauw Ming2f91da02012-06-07 02:24:51 +00001675 test -x conftest$ac_exeext
Benny Prijono28d3c562012-03-30 07:10:13 +00001676 }; then :
1677 ac_retval=0
1678else
1679 $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683fi
1684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686 # interfere with the next link command; also delete a directory that is
1687 # left behind by Apple's compiler. We do this before executing the actions.
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Sauw Ming2f91da02012-06-07 02:24:51 +00001689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001690 as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_link
1693
1694# ac_fn_c_try_run LINENO
1695# ----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697# that executables *can* be run.
1698ac_fn_c_try_run ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=$ac_status
1729fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Sauw Ming2f91da02012-06-07 02:24:51 +00001731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001732 as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_run
1735
1736# ac_fn_c_try_cpp LINENO
1737# ----------------------
1738# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_cpp ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001757 test $ac_status = 0; } > conftest.i && {
Benny Prijono28d3c562012-03-30 07:10:13 +00001758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 }; then :
1761 ac_retval=0
1762else
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767fi
Sauw Ming2f91da02012-06-07 02:24:51 +00001768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001769 as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_cpp
1772
1773# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists and can be compiled using the include files in
1776# INCLUDES, setting the cache variable VAR accordingly.
1777ac_fn_c_check_header_compile ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001782if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001783 $as_echo_n "(cached) " >&6
1784else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787$4
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 eval "$3=yes"
1792else
1793 eval "$3=no"
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001801
1802} # ac_fn_c_check_header_compile
1803
1804# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807# the include files in INCLUDES and setting the cache variable VAR
1808# accordingly.
1809ac_fn_c_check_header_mongrel ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Sauw Ming2f91da02012-06-07 02:24:51 +00001812 if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001815if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001816 $as_echo_n "(cached) " >&6
1817fi
1818eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821else
1822 # Is the header compilable?
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824$as_echo_n "checking $2 usability... " >&6; }
1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_header_compiler=yes
1832else
1833 ac_header_compiler=no
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837$as_echo "$ac_header_compiler" >&6; }
1838
1839# Is the header present?
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841$as_echo_n "checking $2 presence... " >&6; }
1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h. */
1844#include <$2>
1845_ACEOF
1846if ac_fn_c_try_cpp "$LINENO"; then :
1847 ac_header_preproc=yes
1848else
1849 ac_header_preproc=no
1850fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001851rm -f conftest.err conftest.i conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00001852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853$as_echo "$ac_header_preproc" >&6; }
1854
1855# So? What about this header?
1856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857 yes:no: )
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ;;
1863 no:yes:* )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1867$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1871$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ;;
1875esac
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877$as_echo_n "checking for $2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001878if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001879 $as_echo_n "(cached) " >&6
1880else
1881 eval "$3=\$ac_header_compiler"
1882fi
1883eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886fi
Sauw Ming2f91da02012-06-07 02:24:51 +00001887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001888
1889} # ac_fn_c_check_header_mongrel
1890
1891# ac_fn_c_check_func LINENO FUNC VAR
1892# ----------------------------------
1893# Tests whether FUNC exists, setting the cache variable VAR accordingly
1894ac_fn_c_check_func ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898$as_echo_n "checking for $2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001899if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001900 $as_echo_n "(cached) " >&6
1901else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h. */
1904/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1906#define $2 innocuous_$2
1907
1908/* System header to define __stub macros and hopefully few prototypes,
1909 which can conflict with char $2 (); below.
1910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1911 <limits.h> exists even on freestanding compilers. */
1912
1913#ifdef __STDC__
1914# include <limits.h>
1915#else
1916# include <assert.h>
1917#endif
1918
1919#undef $2
1920
1921/* Override any GCC internal prototype to avoid an error.
1922 Use char because int might match the return type of a GCC
1923 builtin and then its argument prototype would still apply. */
1924#ifdef __cplusplus
1925extern "C"
1926#endif
1927char $2 ();
1928/* The GNU C library defines this for functions which it implements
1929 to always fail with ENOSYS. Some functions are actually named
1930 something starting with __ and the normal name is an alias. */
1931#if defined __stub_$2 || defined __stub___$2
1932choke me
1933#endif
1934
1935int
1936main ()
1937{
1938return $2 ();
1939 ;
1940 return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_link "$LINENO"; then :
1944 eval "$3=yes"
1945else
1946 eval "$3=no"
1947fi
1948rm -f core conftest.err conftest.$ac_objext \
1949 conftest$ac_exeext conftest.$ac_ext
1950fi
1951eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953$as_echo "$ac_res" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001955
1956} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001957cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001958This file contains any messages produced by compilers while
1959running configure, to aid debugging if configure makes a mistake.
1960
Benny Prijono28d3c562012-03-30 07:10:13 +00001961It was created by pjproject $as_me 2.x, which was
Sauw Ming2f91da02012-06-07 02:24:51 +00001962generated by GNU Autoconf 2.69. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001963
1964 $ $0 $@
1965
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001966_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001967exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001968{
1969cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001970## --------- ##
1971## Platform. ##
1972## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001973
1974hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1975uname -m = `(uname -m) 2>/dev/null || echo unknown`
1976uname -r = `(uname -r) 2>/dev/null || echo unknown`
1977uname -s = `(uname -s) 2>/dev/null || echo unknown`
1978uname -v = `(uname -v) 2>/dev/null || echo unknown`
1979
1980/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1981/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1982
1983/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1984/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1985/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001986/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001987/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1988/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1989/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1990
1991_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001992
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00001998 $as_echo "PATH: $as_dir"
1999 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002000IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002001
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002002} >&5
2003
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002004cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002005
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002006
2007## ----------- ##
2008## Core tests. ##
2009## ----------- ##
2010
2011_ACEOF
2012
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002013
2014# Keep a trace of the command line.
2015# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002016# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002017# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002018# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002019ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002020ac_configure_args0=
2021ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002022ac_must_keep_next=false
2023for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002024do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002025 for ac_arg
2026 do
2027 case $ac_arg in
2028 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2030 | -silent | --silent | --silen | --sile | --sil)
2031 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002032 *\'*)
Benny Prijono28d3c562012-03-30 07:10:13 +00002033 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002034 esac
2035 case $ac_pass in
Benny Prijono28d3c562012-03-30 07:10:13 +00002036 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002037 2)
Benny Prijono28d3c562012-03-30 07:10:13 +00002038 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002039 if test $ac_must_keep_next = true; then
2040 ac_must_keep_next=false # Got value, back to normal.
2041 else
2042 case $ac_arg in
2043 *=* | --config-cache | -C | -disable-* | --disable-* \
2044 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2045 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2046 | -with-* | --with-* | -without-* | --without-* | --x)
2047 case "$ac_configure_args0 " in
2048 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2049 esac
2050 ;;
2051 -* ) ac_must_keep_next=true ;;
2052 esac
2053 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002054 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002055 ;;
2056 esac
2057 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002058done
Benny Prijono28d3c562012-03-30 07:10:13 +00002059{ ac_configure_args0=; unset ac_configure_args0;}
2060{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002061
2062# When interrupted or exit'd, cleanup temporary files, and complete
2063# config.log. We remove comments because anyway the quotes in there
2064# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002065# WARNING: Use '\'' to represent an apostrophe within the trap.
2066# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002067trap 'exit_status=$?
2068 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002069 {
2070 echo
2071
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002072 $as_echo "## ---------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002073## Cache variables. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002074## ---------------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002075 echo
2076 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002077(
2078 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in #(
2081 *${as_nl}*)
2082 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002083 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2084$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002085 esac
2086 case $ac_var in #(
2087 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002088 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2089 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002090 esac ;;
2091 esac
2092 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002093 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002094 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2095 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002096 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002097 "s/'\''/'\''\\\\'\'''\''/g;
2098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2099 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002100 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002102 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002103 esac |
2104 sort
2105)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002106 echo
2107
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002108 $as_echo "## ----------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002109## Output variables. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002110## ----------------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002111 echo
2112 for ac_var in $ac_subst_vars
2113 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002114 eval ac_val=\$$ac_var
2115 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002117 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002118 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002119 done | sort
2120 echo
2121
2122 if test -n "$ac_subst_files"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002123 $as_echo "## ------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002124## File substitutions. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002125## ------------------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002126 echo
2127 for ac_var in $ac_subst_files
2128 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002129 eval ac_val=\$$ac_var
2130 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002132 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002133 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002134 done | sort
2135 echo
2136 fi
2137
2138 if test -s confdefs.h; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002139 $as_echo "## ----------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002140## confdefs.h. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002141## ----------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002142 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002143 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002144 echo
2145 fi
2146 test "$ac_signal" != 0 &&
Benny Prijono28d3c562012-03-30 07:10:13 +00002147 $as_echo "$as_me: caught signal $ac_signal"
2148 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002149 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002150 rm -f core *.core core.conftest.* &&
2151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002152 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002153' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002154for ac_signal in 1 2 13 15; do
Benny Prijono28d3c562012-03-30 07:10:13 +00002155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002156done
2157ac_signal=0
2158
2159# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002160rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002161
Benny Prijono28d3c562012-03-30 07:10:13 +00002162$as_echo "/* confdefs.h */" > confdefs.h
2163
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002164# Predefined preprocessor variables.
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_NAME "$PACKAGE_NAME"
2168_ACEOF
2169
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2172_ACEOF
2173
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_VERSION "$PACKAGE_VERSION"
2176_ACEOF
2177
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_STRING "$PACKAGE_STRING"
2180_ACEOF
2181
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2184_ACEOF
2185
Benny Prijono28d3c562012-03-30 07:10:13 +00002186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_URL "$PACKAGE_URL"
2188_ACEOF
2189
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002190
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002191# Let the site file select an alternate cache file if it wants to.
Benny Prijono28d3c562012-03-30 07:10:13 +00002192# Prefer an explicitly selected file to automatically selected ones.
2193ac_site_file1=NONE
2194ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002195if test -n "$CONFIG_SITE"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002196 # We do not want a PATH search for config.site.
2197 case $CONFIG_SITE in #((
2198 -*) ac_site_file1=./$CONFIG_SITE;;
2199 */*) ac_site_file1=$CONFIG_SITE;;
2200 *) ac_site_file1=./$CONFIG_SITE;;
2201 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002202elif test "x$prefix" != xNONE; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002203 ac_site_file1=$prefix/share/config.site
2204 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002205else
Benny Prijono28d3c562012-03-30 07:10:13 +00002206 ac_site_file1=$ac_default_prefix/share/config.site
2207 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002208fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002209for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002210do
Benny Prijono28d3c562012-03-30 07:10:13 +00002211 test "x$ac_site_file" = xNONE && continue
2212 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2214$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002215 sed 's/^/| /' "$ac_site_file" >&5
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002216 . "$ac_site_file" \
2217 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219as_fn_error $? "failed to load site script $ac_site_file
Sauw Ming2f91da02012-06-07 02:24:51 +00002220See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002221 fi
2222done
2223
2224if test -r "$cache_file"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002225 # Some versions of bash will fail to source /dev/null (special files
2226 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2227 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2229$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002230 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002231 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2232 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002233 esac
2234 fi
2235else
Benny Prijono28d3c562012-03-30 07:10:13 +00002236 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2237$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002238 >$cache_file
2239fi
2240
2241# Check that the precious variables saved in the cache have kept the same
2242# value.
2243ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002244for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2246 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002247 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2248 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002249 case $ac_old_set,$ac_new_set in
2250 set,)
Benny Prijono28d3c562012-03-30 07:10:13 +00002251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2252$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 +00002253 ac_cache_corrupted=: ;;
2254 ,set)
Benny Prijono28d3c562012-03-30 07:10:13 +00002255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2256$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002257 ac_cache_corrupted=: ;;
2258 ,);;
2259 *)
2260 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002261 # differences in whitespace do not lead to failure.
2262 ac_old_val_w=`echo x $ac_old_val`
2263 ac_new_val_w=`echo x $ac_new_val`
2264 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2266$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2267 ac_cache_corrupted=:
2268 else
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2270$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2271 eval $ac_var=\$ac_old_val
2272 fi
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2274$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2276$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002277 fi;;
2278 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002279 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002280 if test "$ac_new_set" = set; then
2281 case $ac_new_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002282 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002283 *) ac_arg=$ac_var=$ac_new_val ;;
2284 esac
2285 case " $ac_configure_args " in
2286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijono28d3c562012-03-30 07:10:13 +00002287 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002288 esac
2289 fi
2290done
2291if $ac_cache_corrupted; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2295$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002296 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002297fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002298## -------------------- ##
2299## Main body of script. ##
2300## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002301
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002302ac_ext=c
2303ac_cpp='$CPP $CPPFLAGS'
2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002308
2309
Benny Prijono5b818b22006-09-17 22:58:51 +00002310host_orig="$host"
2311
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002312ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002313for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002314 if test -f "$ac_dir/install-sh"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install-sh -c"
2317 break
2318 elif test -f "$ac_dir/install.sh"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/install.sh -c"
2321 break
2322 elif test -f "$ac_dir/shtool"; then
2323 ac_aux_dir=$ac_dir
2324 ac_install_sh="$ac_aux_dir/shtool install -c"
2325 break
2326 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002327done
2328if test -z "$ac_aux_dir"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002329 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002330fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002331
2332# These three variables are undocumented and unsupported,
2333# and are intended to be withdrawn in a future Autoconf release.
2334# They can cause serious problems if a builder's source tree is in a directory
2335# whose full name contains unusual characters.
2336ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2339
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002340
2341# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002342$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002343 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002344
Benny Prijono28d3c562012-03-30 07:10:13 +00002345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346$as_echo_n "checking build system type... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002347if ${ac_cv_build+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002348 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002349else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002350 ac_build_alias=$build_alias
2351test "x$ac_build_alias" = x &&
2352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353test "x$ac_build_alias" = x &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002354 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002355ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002356 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002357
2358fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002361case $ac_cv_build in
2362*-*-*) ;;
Sauw Ming2f91da02012-06-07 02:24:51 +00002363*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002364esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002365build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002366ac_save_IFS=$IFS; IFS='-'
2367set x $ac_cv_build
2368shift
2369build_cpu=$1
2370build_vendor=$2
2371shift; shift
2372# Remember, the first character of IFS is used to create $*,
2373# except with old shells:
2374build_os=$*
2375IFS=$ac_save_IFS
2376case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002377
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002378
Benny Prijono28d3c562012-03-30 07:10:13 +00002379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2380$as_echo_n "checking host system type... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002381if ${ac_cv_host+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002382 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002383else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002384 if test "x$host_alias" = x; then
2385 ac_cv_host=$ac_cv_build
2386else
2387 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002388 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002389fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002390
2391fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2393$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002394case $ac_cv_host in
2395*-*-*) ;;
Sauw Ming2f91da02012-06-07 02:24:51 +00002396*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002397esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002398host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002399ac_save_IFS=$IFS; IFS='-'
2400set x $ac_cv_host
2401shift
2402host_cpu=$1
2403host_vendor=$2
2404shift; shift
2405# Remember, the first character of IFS is used to create $*,
2406# except with old shells:
2407host_os=$*
2408IFS=$ac_save_IFS
2409case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002410
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002411
Benny Prijono28d3c562012-03-30 07:10:13 +00002412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2413$as_echo_n "checking target system type... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002414if ${ac_cv_target+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002415 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002416else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002417 if test "x$target_alias" = x; then
2418 ac_cv_target=$ac_cv_host
2419else
2420 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002421 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002422fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002423
2424fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2426$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002427case $ac_cv_target in
2428*-*-*) ;;
Sauw Ming2f91da02012-06-07 02:24:51 +00002429*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002430esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002431target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002432ac_save_IFS=$IFS; IFS='-'
2433set x $ac_cv_target
2434shift
2435target_cpu=$1
2436target_vendor=$2
2437shift; shift
2438# Remember, the first character of IFS is used to create $*,
2439# except with old shells:
2440target_os=$*
2441IFS=$ac_save_IFS
2442case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002443
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002444
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002445# The aliases save the names the user supplied, while $host etc.
2446# will get canonicalized.
2447test -n "$target_alias" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2449 NONENONEs,x,x, &&
2450 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002451ac_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 +00002452
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002453ac_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 +00002454
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002455
Benny Prijono12483112007-03-12 10:44:38 +00002456
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002457if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002458 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002459else
2460 CFLAGS="$CFLAGS"
2461fi
2462
2463CXXFLAGS="$CFLAGS $CXXFLAGS"
2464
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002465ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS'
2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470if test -n "$ac_tool_prefix"; then
2471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2472set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002475if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002476 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002477else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002486 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002490 break 2
2491 fi
2492done
Benny Prijono28d3c562012-03-30 07:10:13 +00002493 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002494IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002495
2496fi
2497fi
2498CC=$ac_cv_prog_CC
2499if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002502else
Benny Prijono28d3c562012-03-30 07:10:13 +00002503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002505fi
2506
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002507
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002508fi
2509if test -z "$ac_cv_prog_CC"; then
2510 ac_ct_CC=$CC
2511 # Extract the first word of "gcc", so it can be a program name with args.
2512set dummy gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002515if ${ac_cv_prog_ac_ct_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002516 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002517else
2518 if test -n "$ac_ct_CC"; then
2519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2520else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002526 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002528 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002530 break 2
2531 fi
2532done
Benny Prijono28d3c562012-03-30 07:10:13 +00002533 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002534IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002535
2536fi
2537fi
2538ac_ct_CC=$ac_cv_prog_ac_ct_CC
2539if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2541$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002542else
Benny Prijono28d3c562012-03-30 07:10:13 +00002543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002545fi
2546
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002547 if test "x$ac_ct_CC" = x; then
2548 CC=""
2549 else
2550 case $cross_compiling:$ac_tool_warned in
2551yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002554ac_tool_warned=yes ;;
2555esac
2556 CC=$ac_ct_CC
2557 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002558else
2559 CC="$ac_cv_prog_CC"
2560fi
2561
2562if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002563 if test -n "$ac_tool_prefix"; then
2564 # 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 +00002565set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002568if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002569 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002570else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002579 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002581 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002583 break 2
2584 fi
2585done
Benny Prijono28d3c562012-03-30 07:10:13 +00002586 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002587IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002588
2589fi
2590fi
2591CC=$ac_cv_prog_CC
2592if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2594$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002595else
Benny Prijono28d3c562012-03-30 07:10:13 +00002596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002598fi
2599
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002600
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002601 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002602fi
2603if test -z "$CC"; then
2604 # Extract the first word of "cc", so it can be a program name with args.
2605set dummy cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002608if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002609 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002610else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613else
2614 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002620 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2623 ac_prog_rejected=yes
2624 continue
2625 fi
2626 ac_cv_prog_CC="cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002628 break 2
2629 fi
2630done
Benny Prijono28d3c562012-03-30 07:10:13 +00002631 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002632IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002633
2634if test $ac_prog_rejected = yes; then
2635 # We found a bogon in the path, so make sure we never use it.
2636 set dummy $ac_cv_prog_CC
2637 shift
2638 if test $# != 0; then
2639 # We chose a different compiler from the bogus one.
2640 # However, it has the same basename, so the bogon will be chosen
2641 # first if we set CC to just the basename; use the full file name.
2642 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002643 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002644 fi
2645fi
2646fi
2647fi
2648CC=$ac_cv_prog_CC
2649if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002652else
Benny Prijono28d3c562012-03-30 07:10:13 +00002653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002655fi
2656
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002657
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002658fi
2659if test -z "$CC"; then
2660 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002661 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002662 do
2663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002667if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002668 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002669else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002678 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002682 break 2
2683 fi
2684done
Benny Prijono28d3c562012-03-30 07:10:13 +00002685 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002686IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002687
2688fi
2689fi
2690CC=$ac_cv_prog_CC
2691if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002694else
Benny Prijono28d3c562012-03-30 07:10:13 +00002695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002697fi
2698
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002699
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002700 test -n "$CC" && break
2701 done
2702fi
2703if test -z "$CC"; then
2704 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002705 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002706do
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002711if ${ac_cv_prog_ac_ct_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002712 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002713else
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002722 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002724 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002726 break 2
2727 fi
2728done
Benny Prijono28d3c562012-03-30 07:10:13 +00002729 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002730IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2737$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002738else
Benny Prijono28d3c562012-03-30 07:10:13 +00002739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002741fi
2742
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002743
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002744 test -n "$ac_ct_CC" && break
2745done
2746
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002747 if test "x$ac_ct_CC" = x; then
2748 CC=""
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002754ac_tool_warned=yes ;;
2755esac
2756 CC=$ac_ct_CC
2757 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002758fi
2759
2760fi
2761
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002762
Benny Prijono28d3c562012-03-30 07:10:13 +00002763test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002765as_fn_error $? "no acceptable C compiler found in \$PATH
Sauw Ming2f91da02012-06-07 02:24:51 +00002766See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002767
2768# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00002769$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2770set X $ac_compile
2771ac_compiler=$2
2772for ac_option in --version -v -V -qversion; do
2773 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779$as_echo "$ac_try_echo"; } >&5
2780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002781 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002782 if test -s conftest.err; then
2783 sed '10a\
2784... rest of stderr output deleted ...
2785 10q' conftest.err >conftest.er1
2786 cat conftest.er1 >&5
2787 fi
2788 rm -f conftest.er1 conftest.err
2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790 test $ac_status = 0; }
2791done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002792
Benny Prijono28d3c562012-03-30 07:10:13 +00002793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002794/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002795
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002796int
2797main ()
2798{
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804ac_clean_files_save=$ac_clean_files
Benny Prijono28d3c562012-03-30 07:10:13 +00002805ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002806# Try to create an executable without -o first, disregard a.out.
2807# It will help us diagnose broken compilers, and finding out an intuition
2808# of exeext.
Benny Prijono28d3c562012-03-30 07:10:13 +00002809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2810$as_echo_n "checking whether the C compiler works... " >&6; }
2811ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2812
2813# The possible output files:
2814ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2815
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002816ac_rmfiles=
2817for ac_file in $ac_files
2818do
2819 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002821 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822 esac
2823done
2824rm -f $ac_rmfiles
2825
Benny Prijono28d3c562012-03-30 07:10:13 +00002826if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002827case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2832$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002833 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002834 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002837 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2838# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2839# in a Makefile. We should not override ac_cv_exeext if it was cached,
2840# so that the user can short-circuit this test for compilers unknown to
2841# Autoconf.
2842for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002843do
2844 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002845 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002847 ;;
2848 [ab].out )
2849 # We found the default executable, but exeext='' is most
2850 # certainly right.
2851 break;;
2852 *.* )
Benny Prijono28d3c562012-03-30 07:10:13 +00002853 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002854 then :; else
2855 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 fi
2857 # We set ac_cv_exeext here because the later test for it is not
2858 # safe: cross compilers may not add the suffix if given an `-o'
2859 # argument, so we may need to know it at that point already.
2860 # Even if this section looks crufty: it has the advantage of
2861 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002862 break;;
2863 * )
2864 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002865 esac
2866done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002867test "$ac_cv_exeext" = no && ac_cv_exeext=
2868
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002869else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002870 ac_file=''
2871fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002872if test -z "$ac_file"; then :
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002876sed 's/^/| /' conftest.$ac_ext >&5
2877
Benny Prijono28d3c562012-03-30 07:10:13 +00002878{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002880as_fn_error 77 "C compiler cannot create executables
Sauw Ming2f91da02012-06-07 02:24:51 +00002881See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono28d3c562012-03-30 07:10:13 +00002882else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002885fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2887$as_echo_n "checking for C compiler default output file name... " >&6; }
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2889$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002890ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002891
Benny Prijono28d3c562012-03-30 07:10:13 +00002892rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002893ac_clean_files=$ac_clean_files_save
Benny Prijono28d3c562012-03-30 07:10:13 +00002894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2895$as_echo_n "checking for suffix of executables... " >&6; }
2896if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002903 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002904 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002907 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2908# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2909# work properly (i.e., refer to `conftest.exe'), while it won't with
2910# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002911for ac_file in conftest.exe conftest conftest.*; do
2912 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002913 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002915 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002916 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002917 * ) break;;
2918 esac
2919done
2920else
Benny Prijono28d3c562012-03-30 07:10:13 +00002921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002923as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Sauw Ming2f91da02012-06-07 02:24:51 +00002924See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002925fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002926rm -f conftest conftest$ac_cv_exeext
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2928$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002929
2930rm -f conftest.$ac_ext
2931EXEEXT=$ac_cv_exeext
2932ac_exeext=$EXEEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00002933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2934/* end confdefs.h. */
2935#include <stdio.h>
2936int
2937main ()
2938{
2939FILE *f = fopen ("conftest.out", "w");
2940 return ferror (f) || fclose (f) != 0;
2941
2942 ;
2943 return 0;
2944}
Benny Prijono36d32492011-12-28 08:42:23 +00002945_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00002946ac_clean_files="$ac_clean_files conftest.out"
2947# Check that the compiler produces executables we can run. If not, either
2948# the compiler is broken, or we cross compile.
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2950$as_echo_n "checking whether we are cross compiling... " >&6; }
2951if test "$cross_compiling" != yes; then
2952 { { ac_try="$ac_link"
2953case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
2957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958$as_echo "$ac_try_echo"; } >&5
2959 (eval "$ac_link") 2>&5
2960 ac_status=$?
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }
2963 if { ac_try='./conftest$ac_cv_exeext'
2964 { { case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969$as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; }; then
2974 cross_compiling=no
2975 else
2976 if test "$cross_compiling" = maybe; then
2977 cross_compiling=yes
2978 else
2979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002981as_fn_error $? "cannot run C compiled programs.
Benny Prijono28d3c562012-03-30 07:10:13 +00002982If you meant to cross compile, use \`--host'.
Sauw Ming2f91da02012-06-07 02:24:51 +00002983See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono28d3c562012-03-30 07:10:13 +00002984 fi
2985 fi
2986fi
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2988$as_echo "$cross_compiling" >&6; }
2989
2990rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2991ac_clean_files=$ac_clean_files_save
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2993$as_echo_n "checking for suffix of object files... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002994if ${ac_cv_objext+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002995 $as_echo_n "(cached) " >&6
2996else
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002998/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002999
3000int
3001main ()
3002{
3003
3004 ;
3005 return 0;
3006}
3007_ACEOF
3008rm -f conftest.o conftest.obj
Benny Prijono28d3c562012-03-30 07:10:13 +00003009if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003010case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003016 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003017 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00003018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003020 for ac_file in conftest.o conftest.obj conftest.*; do
3021 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003022 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00003023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003024 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3025 break;;
3026 esac
3027done
3028else
Benny Prijono28d3c562012-03-30 07:10:13 +00003029 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003030sed 's/^/| /' conftest.$ac_ext >&5
3031
Benny Prijono28d3c562012-03-30 07:10:13 +00003032{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003034as_fn_error $? "cannot compute suffix of object files: cannot compile
Sauw Ming2f91da02012-06-07 02:24:51 +00003035See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003036fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003037rm -f conftest.$ac_cv_objext conftest.$ac_ext
3038fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3040$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003041OBJEXT=$ac_cv_objext
3042ac_objext=$OBJEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00003043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3044$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003045if ${ac_cv_c_compiler_gnu+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003046 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003047else
Benny Prijono28d3c562012-03-30 07:10:13 +00003048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003049/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003050
3051int
3052main ()
3053{
3054#ifndef __GNUC__
3055 choke me
3056#endif
3057
3058 ;
3059 return 0;
3060}
3061_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003062if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003063 ac_compiler_gnu=yes
3064else
Benny Prijono28d3c562012-03-30 07:10:13 +00003065 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003066fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003068ac_cv_c_compiler_gnu=$ac_compiler_gnu
3069
3070fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3072$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3073if test $ac_compiler_gnu = yes; then
3074 GCC=yes
3075else
3076 GCC=
3077fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003078ac_test_CFLAGS=${CFLAGS+set}
3079ac_save_CFLAGS=$CFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3081$as_echo_n "checking whether $CC accepts -g... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003082if ${ac_cv_prog_cc_g+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003083 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003084else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003085 ac_save_c_werror_flag=$ac_c_werror_flag
3086 ac_c_werror_flag=yes
3087 ac_cv_prog_cc_g=no
3088 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003090/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003091
3092int
3093main ()
3094{
3095
3096 ;
3097 return 0;
3098}
3099_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003100if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003101 ac_cv_prog_cc_g=yes
3102else
Benny Prijono28d3c562012-03-30 07:10:13 +00003103 CFLAGS=""
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003105/* end confdefs.h. */
3106
3107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003115if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003116
Benny Prijono28d3c562012-03-30 07:10:13 +00003117else
3118 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003119 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003121/* end confdefs.h. */
3122
3123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003131if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003132 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003133fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003135fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 ac_c_werror_flag=$ac_save_c_werror_flag
3140fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3142$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003143if test "$ac_test_CFLAGS" = set; then
3144 CFLAGS=$ac_save_CFLAGS
3145elif test $ac_cv_prog_cc_g = yes; then
3146 if test "$GCC" = yes; then
3147 CFLAGS="-g -O2"
3148 else
3149 CFLAGS="-g"
3150 fi
3151else
3152 if test "$GCC" = yes; then
3153 CFLAGS="-O2"
3154 else
3155 CFLAGS=
3156 fi
3157fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3159$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003160if ${ac_cv_prog_cc_c89+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003161 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003162else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003163 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003164ac_save_CC=$CC
Benny Prijono28d3c562012-03-30 07:10:13 +00003165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003166/* end confdefs.h. */
3167#include <stdarg.h>
3168#include <stdio.h>
Sauw Ming2f91da02012-06-07 02:24:51 +00003169struct stat;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003170/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3171struct buf { int x; };
3172FILE * (*rcsopen) (struct buf *, struct stat *, int);
3173static char *e (p, i)
3174 char **p;
3175 int i;
3176{
3177 return p[i];
3178}
3179static char *f (char * (*g) (char **, int), char **p, ...)
3180{
3181 char *s;
3182 va_list v;
3183 va_start (v,p);
3184 s = g (p, va_arg (v,int));
3185 va_end (v);
3186 return s;
3187}
3188
3189/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3190 function prototypes and stuff, but not '\xHH' hex character constants.
3191 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003192 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3194 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003195 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003196int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3197
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003198/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3199 inside strings and character constants. */
3200#define FOO(x) 'x'
3201int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3202
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003203int test (int i, double x);
3204struct s1 {int (*f) (int a);};
3205struct s2 {int (*f) (double a);};
3206int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207int argc;
3208char **argv;
3209int
3210main ()
3211{
3212return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3213 ;
3214 return 0;
3215}
3216_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003217for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003219do
3220 CC="$ac_save_CC $ac_arg"
Benny Prijono28d3c562012-03-30 07:10:13 +00003221 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003222 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003223fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003224rm -f core conftest.err conftest.$ac_objext
3225 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003226done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003227rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003228CC=$ac_save_CC
3229
3230fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003231# AC_CACHE_VAL
3232case "x$ac_cv_prog_cc_c89" in
3233 x)
Benny Prijono28d3c562012-03-30 07:10:13 +00003234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3235$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003236 xno)
Benny Prijono28d3c562012-03-30 07:10:13 +00003237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3238$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003239 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003240 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijono28d3c562012-03-30 07:10:13 +00003241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3242$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003243esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003244if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003245
Benny Prijono28d3c562012-03-30 07:10:13 +00003246fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003247
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003248ac_ext=c
3249ac_cpp='$CPP $CPPFLAGS'
3250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003254ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003255ac_cpp='$CXXCPP $CPPFLAGS'
3256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003259if test -z "$CXX"; then
3260 if test -n "$CCC"; then
3261 CXX=$CCC
3262 else
3263 if test -n "$ac_tool_prefix"; then
3264 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 +00003265 do
3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003270if ${ac_cv_prog_CXX+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003271 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003272else
3273 if test -n "$CXX"; then
3274 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3275else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003281 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00003282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003283 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003285 break 2
3286 fi
3287done
Benny Prijono28d3c562012-03-30 07:10:13 +00003288 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003289IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003290
3291fi
3292fi
3293CXX=$ac_cv_prog_CXX
3294if test -n "$CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3296$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003297else
Benny Prijono28d3c562012-03-30 07:10:13 +00003298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003300fi
3301
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003302
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003303 test -n "$CXX" && break
3304 done
3305fi
3306if test -z "$CXX"; then
3307 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003308 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 +00003309do
3310 # Extract the first word of "$ac_prog", so it can be a program name with args.
3311set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003314if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003315 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003316else
3317 if test -n "$ac_ct_CXX"; then
3318 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3319else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003325 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00003326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003327 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003329 break 2
3330 fi
3331done
Benny Prijono28d3c562012-03-30 07:10:13 +00003332 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003333IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003334
3335fi
3336fi
3337ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3338if test -n "$ac_ct_CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3340$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003341else
Benny Prijono28d3c562012-03-30 07:10:13 +00003342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003344fi
3345
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003346
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003347 test -n "$ac_ct_CXX" && break
3348done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003349
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003350 if test "x$ac_ct_CXX" = x; then
3351 CXX="g++"
3352 else
3353 case $cross_compiling:$ac_tool_warned in
3354yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00003355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003357ac_tool_warned=yes ;;
3358esac
3359 CXX=$ac_ct_CXX
3360 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003361fi
3362
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003363 fi
3364fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003365# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00003366$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3367set X $ac_compile
3368ac_compiler=$2
3369for ac_option in --version -v -V -qversion; do
3370 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003371case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376$as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003378 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00003379 if test -s conftest.err; then
3380 sed '10a\
3381... rest of stderr output deleted ...
3382 10q' conftest.err >conftest.er1
3383 cat conftest.er1 >&5
3384 fi
3385 rm -f conftest.er1 conftest.err
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }
3388done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003389
Benny Prijono28d3c562012-03-30 07:10:13 +00003390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3391$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003392if ${ac_cv_cxx_compiler_gnu+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003393 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003394else
Benny Prijono28d3c562012-03-30 07:10:13 +00003395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003396/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003397
3398int
3399main ()
3400{
3401#ifndef __GNUC__
3402 choke me
3403#endif
3404
3405 ;
3406 return 0;
3407}
3408_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003409if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003410 ac_compiler_gnu=yes
3411else
Benny Prijono28d3c562012-03-30 07:10:13 +00003412 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003413fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003415ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3416
3417fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3419$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3420if test $ac_compiler_gnu = yes; then
3421 GXX=yes
3422else
3423 GXX=
3424fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003425ac_test_CXXFLAGS=${CXXFLAGS+set}
3426ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3428$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003429if ${ac_cv_prog_cxx_g+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003430 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003431else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003432 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3433 ac_cxx_werror_flag=yes
3434 ac_cv_prog_cxx_g=no
3435 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003437/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003438
3439int
3440main ()
3441{
3442
3443 ;
3444 return 0;
3445}
3446_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003447if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003448 ac_cv_prog_cxx_g=yes
3449else
Benny Prijono28d3c562012-03-30 07:10:13 +00003450 CXXFLAGS=""
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003452/* end confdefs.h. */
3453
3454int
3455main ()
3456{
3457
3458 ;
3459 return 0;
3460}
3461_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003462if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003463
Benny Prijono28d3c562012-03-30 07:10:13 +00003464else
3465 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003466 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003478if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003479 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003480fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003482fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3487fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3489$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003490if test "$ac_test_CXXFLAGS" = set; then
3491 CXXFLAGS=$ac_save_CXXFLAGS
3492elif test $ac_cv_prog_cxx_g = yes; then
3493 if test "$GXX" = yes; then
3494 CXXFLAGS="-g -O2"
3495 else
3496 CXXFLAGS="-g"
3497 fi
3498else
3499 if test "$GXX" = yes; then
3500 CXXFLAGS="-O2"
3501 else
3502 CXXFLAGS=
3503 fi
3504fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003505ac_ext=c
3506ac_cpp='$CPP $CPPFLAGS'
3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003511ac_ext=c
3512ac_cpp='$CPP $CPPFLAGS'
3513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003517
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003518if test -z "$CROSS_COMPILE"; then
3519 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3520fi
3521
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003522if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003523
3524if test "$LD" = ""; then LD="$CC"; fi
3525
Sauw Minge7dbbc82011-10-24 09:28:13 +00003526if test "$LDOUT" = ""; then LDOUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003527
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003528if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003529
3530if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3531
3532if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3533
3534if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3535
Sauw Minge7dbbc82011-10-24 09:28:13 +00003536if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003537
3538if test "$CC_INC" = ""; then CC_INC="-I"; fi
3539
3540if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3541
3542if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3543
3544if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3545
3546
3547
3548
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003549
Benny Prijono0822c192008-08-21 20:59:58 +00003550
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003551
3552case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003553 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003554 if pwd -W 2&> /dev/null; then
3555 ac_pjdir=`pwd -W`
3556 else
3557 # We're probably cross-compiling mingw on Linux
3558 ac_pjdir=`pwd`
3559 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003560 ;;
3561 *)
3562 ac_pjdir=`pwd`
3563 ;;
3564esac
Benny Prijono12483112007-03-12 10:44:38 +00003565
3566
Benny Prijono28d3c562012-03-30 07:10:13 +00003567case $target in
3568 *mingw* | *cygw* | *win32* | *w32* )
3569 ac_shlib_suffix=dll
3570 ;;
3571 *darwin*)
3572 ac_shlib_suffix=dylib
3573 ;;
3574 *)
3575 ac_shlib_suffix=so
3576 ;;
3577esac
Benny Prijono36d32492011-12-28 08:42:23 +00003578
Benny Prijono28d3c562012-03-30 07:10:13 +00003579
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003580if test "$build" = "$host"; then
3581 ac_cross_compile=
3582else
3583 ac_cross_compile=${host_orig}-
3584fi
3585
3586
Benny Prijono28d3c562012-03-30 07:10:13 +00003587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3588$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003589if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003590 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003591else
3592 ac_check_lib_save_LIBS=$LIBS
3593LIBS="-lpthread $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003595/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003596
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003597/* Override any GCC internal prototype to avoid an error.
3598 Use char because int might match the return type of a GCC
3599 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003600#ifdef __cplusplus
3601extern "C"
3602#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003603char pthread_create ();
3604int
3605main ()
3606{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003607return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003608 ;
3609 return 0;
3610}
3611_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003612if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003613 ac_cv_lib_pthread_pthread_create=yes
3614else
Benny Prijono28d3c562012-03-30 07:10:13 +00003615 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003616fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003617rm -f core conftest.err conftest.$ac_objext \
3618 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003619LIBS=$ac_check_lib_save_LIBS
3620fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3622$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003623if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003624 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003625#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003626_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003627
3628 LIBS="-lpthread $LIBS"
3629
3630fi
3631
Benny Prijono28d3c562012-03-30 07:10:13 +00003632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3633$as_echo_n "checking for puts in -lwsock32... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003634if ${ac_cv_lib_wsock32_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003635 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003636else
3637 ac_check_lib_save_LIBS=$LIBS
3638LIBS="-lwsock32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003640/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003641
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003642/* Override any GCC internal prototype to avoid an error.
3643 Use char because int might match the return type of a GCC
3644 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003645#ifdef __cplusplus
3646extern "C"
3647#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003648char puts ();
3649int
3650main ()
3651{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003652return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003653 ;
3654 return 0;
3655}
3656_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003657if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003658 ac_cv_lib_wsock32_puts=yes
3659else
Benny Prijono28d3c562012-03-30 07:10:13 +00003660 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003661fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003662rm -f core conftest.err conftest.$ac_objext \
3663 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003664LIBS=$ac_check_lib_save_LIBS
3665fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3667$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003668if test "x$ac_cv_lib_wsock32_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003669 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003670#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003671_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003672
3673 LIBS="-lwsock32 $LIBS"
3674
3675fi
3676
Benny Prijono28d3c562012-03-30 07:10:13 +00003677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3678$as_echo_n "checking for puts in -lws2_32... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003679if ${ac_cv_lib_ws2_32_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003680 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003681else
3682 ac_check_lib_save_LIBS=$LIBS
3683LIBS="-lws2_32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003685/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003686
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003687/* Override any GCC internal prototype to avoid an error.
3688 Use char because int might match the return type of a GCC
3689 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003690#ifdef __cplusplus
3691extern "C"
3692#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003693char puts ();
3694int
3695main ()
3696{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003697return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003698 ;
3699 return 0;
3700}
3701_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003702if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003703 ac_cv_lib_ws2_32_puts=yes
3704else
Benny Prijono28d3c562012-03-30 07:10:13 +00003705 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003706fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003707rm -f core conftest.err conftest.$ac_objext \
3708 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003709LIBS=$ac_check_lib_save_LIBS
3710fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3712$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003713if test "x$ac_cv_lib_ws2_32_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003714 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003715#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003716_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003717
3718 LIBS="-lws2_32 $LIBS"
3719
3720fi
3721
Benny Prijono28d3c562012-03-30 07:10:13 +00003722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3723$as_echo_n "checking for puts in -lole32... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003724if ${ac_cv_lib_ole32_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003725 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003726else
3727 ac_check_lib_save_LIBS=$LIBS
3728LIBS="-lole32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003730/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003731
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003732/* Override any GCC internal prototype to avoid an error.
3733 Use char because int might match the return type of a GCC
3734 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003735#ifdef __cplusplus
3736extern "C"
3737#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003738char puts ();
3739int
3740main ()
3741{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003742return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003743 ;
3744 return 0;
3745}
3746_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003747if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003748 ac_cv_lib_ole32_puts=yes
3749else
Benny Prijono28d3c562012-03-30 07:10:13 +00003750 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003751fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003752rm -f core conftest.err conftest.$ac_objext \
3753 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003754LIBS=$ac_check_lib_save_LIBS
3755fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3757$as_echo "$ac_cv_lib_ole32_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003758if test "x$ac_cv_lib_ole32_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003759 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003760#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003761_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003762
3763 LIBS="-lole32 $LIBS"
3764
3765fi
3766
Benny Prijono28d3c562012-03-30 07:10:13 +00003767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3768$as_echo_n "checking for puts in -lwinmm... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003769if ${ac_cv_lib_winmm_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003770 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003771else
3772 ac_check_lib_save_LIBS=$LIBS
3773LIBS="-lwinmm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003775/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003776
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003777/* Override any GCC internal prototype to avoid an error.
3778 Use char because int might match the return type of a GCC
3779 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003780#ifdef __cplusplus
3781extern "C"
3782#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783char puts ();
3784int
3785main ()
3786{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003787return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003788 ;
3789 return 0;
3790}
3791_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003792if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003793 ac_cv_lib_winmm_puts=yes
3794else
Benny Prijono28d3c562012-03-30 07:10:13 +00003795 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003796fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003797rm -f core conftest.err conftest.$ac_objext \
3798 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003799LIBS=$ac_check_lib_save_LIBS
3800fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3802$as_echo "$ac_cv_lib_winmm_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003803if test "x$ac_cv_lib_winmm_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003804 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003805#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003806_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003807
3808 LIBS="-lwinmm $LIBS"
3809
3810fi
3811
Benny Prijono28d3c562012-03-30 07:10:13 +00003812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3813$as_echo_n "checking for puts in -lsocket... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003814if ${ac_cv_lib_socket_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003815 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003816else
3817 ac_check_lib_save_LIBS=$LIBS
3818LIBS="-lsocket $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003820/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003821
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003822/* Override any GCC internal prototype to avoid an error.
3823 Use char because int might match the return type of a GCC
3824 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003825#ifdef __cplusplus
3826extern "C"
3827#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003828char puts ();
3829int
3830main ()
3831{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003832return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003833 ;
3834 return 0;
3835}
3836_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003837if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003838 ac_cv_lib_socket_puts=yes
3839else
Benny Prijono28d3c562012-03-30 07:10:13 +00003840 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003841fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003842rm -f core conftest.err conftest.$ac_objext \
3843 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003844LIBS=$ac_check_lib_save_LIBS
3845fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3847$as_echo "$ac_cv_lib_socket_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003848if test "x$ac_cv_lib_socket_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003849 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003850#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003851_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003852
3853 LIBS="-lsocket $LIBS"
3854
3855fi
3856
Benny Prijono28d3c562012-03-30 07:10:13 +00003857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3858$as_echo_n "checking for puts in -lrt... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003859if ${ac_cv_lib_rt_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003860 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003861else
3862 ac_check_lib_save_LIBS=$LIBS
3863LIBS="-lrt $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003865/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003866
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003867/* Override any GCC internal prototype to avoid an error.
3868 Use char because int might match the return type of a GCC
3869 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003870#ifdef __cplusplus
3871extern "C"
3872#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003873char puts ();
3874int
3875main ()
3876{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003877return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003878 ;
3879 return 0;
3880}
3881_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003882if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003883 ac_cv_lib_rt_puts=yes
3884else
Benny Prijono28d3c562012-03-30 07:10:13 +00003885 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003886fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003887rm -f core conftest.err conftest.$ac_objext \
3888 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003889LIBS=$ac_check_lib_save_LIBS
3890fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3892$as_echo "$ac_cv_lib_rt_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003893if test "x$ac_cv_lib_rt_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003894 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003895#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003896_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003897
3898 LIBS="-lrt $LIBS"
3899
3900fi
3901
Benny Prijono28d3c562012-03-30 07:10:13 +00003902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3903$as_echo_n "checking for puts in -lnsl... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003904if ${ac_cv_lib_nsl_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003905 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003906else
3907 ac_check_lib_save_LIBS=$LIBS
3908LIBS="-lnsl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003910/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003911
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003912/* Override any GCC internal prototype to avoid an error.
3913 Use char because int might match the return type of a GCC
3914 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003915#ifdef __cplusplus
3916extern "C"
3917#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003918char puts ();
3919int
3920main ()
3921{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003922return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003923 ;
3924 return 0;
3925}
3926_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003927if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003928 ac_cv_lib_nsl_puts=yes
3929else
Benny Prijono28d3c562012-03-30 07:10:13 +00003930 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003931fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003932rm -f core conftest.err conftest.$ac_objext \
3933 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003934LIBS=$ac_check_lib_save_LIBS
3935fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3937$as_echo "$ac_cv_lib_nsl_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003938if test "x$ac_cv_lib_nsl_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003939 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003940#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003941_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003942
3943 LIBS="-lnsl $LIBS"
3944
3945fi
3946
Benny Prijono28d3c562012-03-30 07:10:13 +00003947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3948$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003949if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003950 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003951else
3952 ac_check_lib_save_LIBS=$LIBS
3953LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003955/* end confdefs.h. */
3956
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003957/* Override any GCC internal prototype to avoid an error.
3958 Use char because int might match the return type of a GCC
3959 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003960#ifdef __cplusplus
3961extern "C"
3962#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003963char uuid_generate ();
3964int
3965main ()
3966{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003967return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003968 ;
3969 return 0;
3970}
3971_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003972if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003973 ac_cv_lib_uuid_uuid_generate=yes
3974else
Benny Prijono28d3c562012-03-30 07:10:13 +00003975 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003976fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003977rm -f core conftest.err conftest.$ac_objext \
3978 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003979LIBS=$ac_check_lib_save_LIBS
3980fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3982$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003983if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003984 cat >>confdefs.h <<_ACEOF
3985#define HAVE_LIBUUID 1
3986_ACEOF
3987
3988 LIBS="-luuid $LIBS"
3989
3990fi
3991
Benny Prijono28d3c562012-03-30 07:10:13 +00003992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3993$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003994if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003995 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003996else
3997 ac_check_lib_save_LIBS=$LIBS
3998LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00004000/* end confdefs.h. */
4001
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004002/* Override any GCC internal prototype to avoid an error.
4003 Use char because int might match the return type of a GCC
4004 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00004005#ifdef __cplusplus
4006extern "C"
4007#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00004008char uuid_generate ();
4009int
4010main ()
4011{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004012return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00004013 ;
4014 return 0;
4015}
4016_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004017if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004018 ac_cv_lib_uuid_uuid_generate=yes
4019else
Benny Prijono28d3c562012-03-30 07:10:13 +00004020 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00004021fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004022rm -f core conftest.err conftest.$ac_objext \
4023 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00004024LIBS=$ac_check_lib_save_LIBS
4025fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4027$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004028if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004029 ac_has_uuid_lib=1
4030fi
4031
4032
Benny Prijono28d3c562012-03-30 07:10:13 +00004033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
4034$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004035cat >>confdefs.h <<_ACEOF
4036#define PJ_M_NAME "$target_cpu"
4037_ACEOF
4038
4039
Benny Prijono28d3c562012-03-30 07:10:13 +00004040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
4041$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004042case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00004043 sparc64-* | ia64-* | x86_64-* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004044 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00004045
Benny Prijono28d3c562012-03-30 07:10:13 +00004046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
4047$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004048 ;;
4049 * )
Benny Prijono28d3c562012-03-30 07:10:13 +00004050 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00004051
Benny Prijono28d3c562012-03-30 07:10:13 +00004052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
4053$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004054 ;;
4055esac
4056
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004057
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004058ac_ext=c
4059ac_cpp='$CPP $CPPFLAGS'
4060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono28d3c562012-03-30 07:10:13 +00004063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4064$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004065# On Suns, sometimes $CPP names a directory.
4066if test -n "$CPP" && test -d "$CPP"; then
4067 CPP=
4068fi
4069if test -z "$CPP"; then
Sauw Ming2f91da02012-06-07 02:24:51 +00004070 if ${ac_cv_prog_CPP+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004071 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004072else
4073 # Double quotes because CPP needs to be expanded
4074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4075 do
4076 ac_preproc_ok=false
4077for ac_c_preproc_warn_flag in '' yes
4078do
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 # <limits.h> exists even on freestanding compilers.
4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4084 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004086/* end confdefs.h. */
4087#ifdef __STDC__
4088# include <limits.h>
4089#else
4090# include <assert.h>
4091#endif
4092 Syntax error
4093_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004094if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004095
Benny Prijono28d3c562012-03-30 07:10:13 +00004096else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004097 # Broken: fails on valid input.
4098continue
4099fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004100rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004101
4102 # OK, works on sane cases. Now check whether nonexistent headers
4103 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004105/* end confdefs.h. */
4106#include <ac_nonexistent.h>
4107_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004108if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004109 # Broken: success on invalid input.
4110continue
4111else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004112 # Passes both tests.
4113ac_preproc_ok=:
4114break
4115fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004116rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004117
4118done
4119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004120rm -f conftest.i conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004121if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004122 break
4123fi
4124
4125 done
4126 ac_cv_prog_CPP=$CPP
4127
4128fi
4129 CPP=$ac_cv_prog_CPP
4130else
4131 ac_cv_prog_CPP=$CPP
4132fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4134$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004135ac_preproc_ok=false
4136for ac_c_preproc_warn_flag in '' yes
4137do
4138 # Use a header file that comes with gcc, so configuring glibc
4139 # with a fresh cross-compiler works.
4140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 # <limits.h> exists even on freestanding compilers.
4142 # On the NeXT, cc -E runs the code through the compiler's parser,
4143 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004145/* end confdefs.h. */
4146#ifdef __STDC__
4147# include <limits.h>
4148#else
4149# include <assert.h>
4150#endif
4151 Syntax error
4152_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004153if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004154
Benny Prijono28d3c562012-03-30 07:10:13 +00004155else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004156 # Broken: fails on valid input.
4157continue
4158fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004159rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004160
4161 # OK, works on sane cases. Now check whether nonexistent headers
4162 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004164/* end confdefs.h. */
4165#include <ac_nonexistent.h>
4166_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004167if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004168 # Broken: success on invalid input.
4169continue
4170else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004171 # Passes both tests.
4172ac_preproc_ok=:
4173break
4174fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004175rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004176
4177done
4178# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004179rm -f conftest.i conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004180if $ac_preproc_ok; then :
4181
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004182else
Benny Prijono28d3c562012-03-30 07:10:13 +00004183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004185as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Sauw Ming2f91da02012-06-07 02:24:51 +00004186See \`config.log' for more details" "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004187fi
4188
4189ac_ext=c
4190ac_cpp='$CPP $CPPFLAGS'
4191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195
Benny Prijono28d3c562012-03-30 07:10:13 +00004196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4197$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004198if ${ac_cv_path_GREP+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004199 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004200else
Benny Prijono28d3c562012-03-30 07:10:13 +00004201 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004202 ac_path_GREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004203 # Loop through the user's path and test for each of PROGNAME-LIST
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004205for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004209 for ac_prog in grep ggrep; do
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Sauw Ming2f91da02012-06-07 02:24:51 +00004212 as_fn_executable_p "$ac_path_GREP" || continue
Benny Prijono28d3c562012-03-30 07:10:13 +00004213# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004214 # Check for GNU $ac_path_GREP
4215case `"$ac_path_GREP" --version 2>&1` in
4216*GNU*)
4217 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4218*)
4219 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004220 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004221 while :
4222 do
4223 cat "conftest.in" "conftest.in" >"conftest.tmp"
4224 mv "conftest.tmp" "conftest.in"
4225 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004226 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004227 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004229 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004230 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4231 # Best one so far, save it but keep looking for a better one
4232 ac_cv_path_GREP="$ac_path_GREP"
4233 ac_path_GREP_max=$ac_count
4234 fi
4235 # 10*(2^10) chars as input seems more than enough
4236 test $ac_count -gt 10 && break
4237 done
4238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4239esac
4240
Benny Prijono28d3c562012-03-30 07:10:13 +00004241 $ac_path_GREP_found && break 3
4242 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004243 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004244 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004245IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004246 if test -z "$ac_cv_path_GREP"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004247 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00004248 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004249else
4250 ac_cv_path_GREP=$GREP
4251fi
4252
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004253fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4255$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004256 GREP="$ac_cv_path_GREP"
4257
4258
Benny Prijono28d3c562012-03-30 07:10:13 +00004259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4260$as_echo_n "checking for egrep... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004261if ${ac_cv_path_EGREP+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004262 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004263else
4264 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4265 then ac_cv_path_EGREP="$GREP -E"
4266 else
Benny Prijono28d3c562012-03-30 07:10:13 +00004267 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004268 ac_path_EGREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004269 # Loop through the user's path and test for each of PROGNAME-LIST
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004275 for ac_prog in egrep; do
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Sauw Ming2f91da02012-06-07 02:24:51 +00004278 as_fn_executable_p "$ac_path_EGREP" || continue
Benny Prijono28d3c562012-03-30 07:10:13 +00004279# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004280 # Check for GNU $ac_path_EGREP
4281case `"$ac_path_EGREP" --version 2>&1` in
4282*GNU*)
4283 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4284*)
4285 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004286 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004287 while :
4288 do
4289 cat "conftest.in" "conftest.in" >"conftest.tmp"
4290 mv "conftest.tmp" "conftest.in"
4291 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004292 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004293 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004295 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004296 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4297 # Best one so far, save it but keep looking for a better one
4298 ac_cv_path_EGREP="$ac_path_EGREP"
4299 ac_path_EGREP_max=$ac_count
4300 fi
4301 # 10*(2^10) chars as input seems more than enough
4302 test $ac_count -gt 10 && break
4303 done
4304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305esac
4306
Benny Prijono28d3c562012-03-30 07:10:13 +00004307 $ac_path_EGREP_found && break 3
4308 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004309 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004310 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004311IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004312 if test -z "$ac_cv_path_EGREP"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004313 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00004314 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004315else
4316 ac_cv_path_EGREP=$EGREP
4317fi
4318
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004319 fi
4320fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4322$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004323 EGREP="$ac_cv_path_EGREP"
4324
4325
Benny Prijono28d3c562012-03-30 07:10:13 +00004326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4327$as_echo_n "checking for ANSI C header files... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004328if ${ac_cv_header_stdc+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004329 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004330else
Benny Prijono28d3c562012-03-30 07:10:13 +00004331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004332/* end confdefs.h. */
4333#include <stdlib.h>
4334#include <stdarg.h>
4335#include <string.h>
4336#include <float.h>
4337
4338int
4339main ()
4340{
4341
4342 ;
4343 return 0;
4344}
4345_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004346if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004347 ac_cv_header_stdc=yes
4348else
Benny Prijono28d3c562012-03-30 07:10:13 +00004349 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004350fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352
4353if test $ac_cv_header_stdc = yes; then
4354 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004356/* end confdefs.h. */
4357#include <string.h>
4358
4359_ACEOF
4360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004361 $EGREP "memchr" >/dev/null 2>&1; then :
4362
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004363else
4364 ac_cv_header_stdc=no
4365fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004366rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004367
4368fi
4369
4370if test $ac_cv_header_stdc = yes; then
4371 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004373/* end confdefs.h. */
4374#include <stdlib.h>
4375
4376_ACEOF
4377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004378 $EGREP "free" >/dev/null 2>&1; then :
4379
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004380else
4381 ac_cv_header_stdc=no
4382fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004383rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004384
4385fi
4386
4387if test $ac_cv_header_stdc = yes; then
4388 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijono28d3c562012-03-30 07:10:13 +00004389 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004390 :
4391else
Benny Prijono28d3c562012-03-30 07:10:13 +00004392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004393/* end confdefs.h. */
4394#include <ctype.h>
4395#include <stdlib.h>
4396#if ((' ' & 0x0FF) == 0x020)
4397# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4398# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4399#else
4400# define ISLOWER(c) \
4401 (('a' <= (c) && (c) <= 'i') \
4402 || ('j' <= (c) && (c) <= 'r') \
4403 || ('s' <= (c) && (c) <= 'z'))
4404# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4405#endif
4406
4407#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4408int
4409main ()
4410{
4411 int i;
4412 for (i = 0; i < 256; i++)
4413 if (XOR (islower (i), ISLOWER (i))
4414 || toupper (i) != TOUPPER (i))
4415 return 2;
4416 return 0;
4417}
4418_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004419if ac_fn_c_try_run "$LINENO"; then :
4420
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004421else
Benny Prijono28d3c562012-03-30 07:10:13 +00004422 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004423fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4425 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004426fi
4427
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004428fi
4429fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4431$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004432if test $ac_cv_header_stdc = yes; then
4433
Benny Prijono28d3c562012-03-30 07:10:13 +00004434$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004435
4436fi
4437
4438# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004439for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4440 inttypes.h stdint.h unistd.h
Benny Prijono28d3c562012-03-30 07:10:13 +00004441do :
4442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4444"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004445if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004446 cat >>confdefs.h <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004448_ACEOF
4449
4450fi
4451
4452done
4453
4454
Benny Prijono28d3c562012-03-30 07:10:13 +00004455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4456$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004457if ${ac_cv_c_bigendian+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004458 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004459else
Benny Prijono28d3c562012-03-30 07:10:13 +00004460 ac_cv_c_bigendian=unknown
4461 # See if we're dealing with a universal compiler.
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h. */
4464#ifndef __APPLE_CC__
4465 not a universal capable compiler
4466 #endif
4467 typedef int dummy;
4468
Benny Prijonod5233702010-01-13 13:09:45 +00004469_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004470if ac_fn_c_try_compile "$LINENO"; then :
4471
4472 # Check for potential -arch flags. It is not universal unless
4473 # there are at least two -arch flags with different values.
4474 ac_arch=
4475 ac_prev=
4476 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4477 if test -n "$ac_prev"; then
4478 case $ac_word in
4479 i?86 | x86_64 | ppc | ppc64)
4480 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4481 ac_arch=$ac_word
4482 else
4483 ac_cv_c_bigendian=universal
4484 break
4485 fi
4486 ;;
4487 esac
4488 ac_prev=
4489 elif test "x$ac_word" = "x-arch"; then
4490 ac_prev=arch
4491 fi
4492 done
4493fi
4494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 if test $ac_cv_c_bigendian = unknown; then
4496 # See if sys/param.h defines the BYTE_ORDER macro.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004498/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004499#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004500 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004501
4502int
4503main ()
4504{
Benny Prijono28d3c562012-03-30 07:10:13 +00004505#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4506 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4507 && LITTLE_ENDIAN)
4508 bogus endian macros
4509 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004510
4511 ;
4512 return 0;
4513}
4514_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004515if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004516 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijono28d3c562012-03-30 07:10:13 +00004517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004518/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004519#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004520 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004521
4522int
4523main ()
4524{
4525#if BYTE_ORDER != BIG_ENDIAN
Benny Prijono28d3c562012-03-30 07:10:13 +00004526 not big endian
4527 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004528
4529 ;
4530 return 0;
4531}
4532_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004533if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004534 ac_cv_c_bigendian=yes
4535else
Benny Prijono28d3c562012-03-30 07:10:13 +00004536 ac_cv_c_bigendian=no
Benny Prijono36d32492011-12-28 08:42:23 +00004537fi
Benny Prijono36d32492011-12-28 08:42:23 +00004538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004539fi
4540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 fi
4542 if test $ac_cv_c_bigendian = unknown; then
4543 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00004545/* end confdefs.h. */
Benny Prijono28d3c562012-03-30 07:10:13 +00004546#include <limits.h>
4547
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004548int
4549main ()
4550{
Benny Prijono28d3c562012-03-30 07:10:13 +00004551#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4552 bogus endian macros
4553 #endif
4554
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004555 ;
4556 return 0;
4557}
4558_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004559if ac_fn_c_try_compile "$LINENO"; then :
4560 # It does; now see whether it defined to _BIG_ENDIAN or not.
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562/* end confdefs.h. */
4563#include <limits.h>
4564
4565int
4566main ()
4567{
4568#ifndef _BIG_ENDIAN
4569 not big endian
4570 #endif
4571
4572 ;
4573 return 0;
4574}
4575_ACEOF
4576if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004577 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004578else
Benny Prijono28d3c562012-03-30 07:10:13 +00004579 ac_cv_c_bigendian=no
Benny Prijonoe1105232011-10-26 06:49:34 +00004580fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582fi
4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 fi
4585 if test $ac_cv_c_bigendian = unknown; then
4586 # Compile a test program.
4587 if test "$cross_compiling" = yes; then :
4588 # Try to guess by grepping values from an object file.
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h. */
4591short int ascii_mm[] =
4592 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4593 short int ascii_ii[] =
4594 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4595 int use_ascii (int i) {
4596 return ascii_mm[i] + ascii_ii[i];
4597 }
4598 short int ebcdic_ii[] =
4599 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4600 short int ebcdic_mm[] =
4601 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4602 int use_ebcdic (int i) {
4603 return ebcdic_mm[i] + ebcdic_ii[i];
4604 }
4605 extern int foo;
Benny Prijono36d32492011-12-28 08:42:23 +00004606
Benny Prijono28d3c562012-03-30 07:10:13 +00004607int
4608main ()
4609{
4610return use_ascii (foo) == use_ebcdic (foo);
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615if ac_fn_c_try_compile "$LINENO"; then :
4616 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4617 ac_cv_c_bigendian=yes
4618 fi
4619 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4620 if test "$ac_cv_c_bigendian" = unknown; then
4621 ac_cv_c_bigendian=no
4622 else
4623 # finding both strings is unlikely to happen, but who knows?
4624 ac_cv_c_bigendian=unknown
4625 fi
4626 fi
4627fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004629else
Benny Prijono28d3c562012-03-30 07:10:13 +00004630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004631/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004632$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004633int
4634main ()
4635{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004636
Benny Prijono28d3c562012-03-30 07:10:13 +00004637 /* Are we little or big endian? From Harbison&Steele. */
4638 union
4639 {
4640 long int l;
4641 char c[sizeof (long int)];
4642 } u;
4643 u.l = 1;
4644 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004645
4646 ;
4647 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004648}
4649_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004650if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004651 ac_cv_c_bigendian=no
4652else
Benny Prijono28d3c562012-03-30 07:10:13 +00004653 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004654fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4656 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004657fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004658
Benny Prijono28d3c562012-03-30 07:10:13 +00004659 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004660fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4662$as_echo "$ac_cv_c_bigendian" >&6; }
4663 case $ac_cv_c_bigendian in #(
4664 yes)
4665 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4666;; #(
4667 no)
4668 ;; #(
4669 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004670
Benny Prijono28d3c562012-03-30 07:10:13 +00004671$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004672
Benny Prijono28d3c562012-03-30 07:10:13 +00004673 ;; #(
4674 *)
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004675 as_fn_error $? "unknown endianness
Sauw Ming2f91da02012-06-07 02:24:51 +00004676 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00004677 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004678
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004679
Sauw Minge7dbbc82011-10-24 09:28:13 +00004680if test "x$ac_cv_c_bigendian" = "xyes"; then
4681 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4682else
4683 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4684fi
4685
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004686case $target in
4687 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004688 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004689
Benny Prijono28d3c562012-03-30 07:10:13 +00004690 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004691
Benny Prijono28d3c562012-03-30 07:10:13 +00004692 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004693
4694 ;;
4695 *darwin*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004696 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004697
4698 ;;
4699 *linux*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004700 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004701
4702 ;;
4703 *rtems*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004704 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004705
4706 ;;
4707 *sunos* | *solaris* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004708 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004709
4710 ;;
4711 *)
4712 ;;
4713esac
4714
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004715
4716
4717
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004718# Check whether --enable-floating-point was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00004719if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004720 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00004721 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004722
Benny Prijono28d3c562012-03-30 07:10:13 +00004723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4724$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004725 fi
4726else
4727
Benny Prijono28d3c562012-03-30 07:10:13 +00004728 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004729
Benny Prijono28d3c562012-03-30 07:10:13 +00004730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4731$as_echo "Checking if floating point is disabled... no" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4733$as_echo_n "checking for fmod in -lm... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004734if ${ac_cv_lib_m_fmod+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004735 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004736else
4737 ac_check_lib_save_LIBS=$LIBS
4738LIBS="-lm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00004739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004740/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004741
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004742/* Override any GCC internal prototype to avoid an error.
4743 Use char because int might match the return type of a GCC
4744 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004745#ifdef __cplusplus
4746extern "C"
4747#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004748char fmod ();
4749int
4750main ()
4751{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004752return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004753 ;
4754 return 0;
4755}
4756_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004757if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004758 ac_cv_lib_m_fmod=yes
4759else
Benny Prijono28d3c562012-03-30 07:10:13 +00004760 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004761fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004762rm -f core conftest.err conftest.$ac_objext \
4763 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004764LIBS=$ac_check_lib_save_LIBS
4765fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4767$as_echo "$ac_cv_lib_m_fmod" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004768if test "x$ac_cv_lib_m_fmod" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004769 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004770#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004771_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004772
4773 LIBS="-lm $LIBS"
4774
4775fi
4776
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004777
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004778fi
4779
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004780
4781
Benny Prijono28d3c562012-03-30 07:10:13 +00004782ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004783if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004784 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004785
4786fi
4787
4788
Benny Prijono28d3c562012-03-30 07:10:13 +00004789ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004790if test "x$ac_cv_header_assert_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004791 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004792
4793fi
4794
4795
Benny Prijono28d3c562012-03-30 07:10:13 +00004796ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004797if test "x$ac_cv_header_ctype_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004798 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004799
4800fi
4801
4802
4803
4804case $target in
4805 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004806 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004807
4808 ;;
4809 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00004810 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004811if test "x$ac_cv_header_errno_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004812 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004813
4814fi
4815
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004816
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004817 ;;
4818esac
4819
Benny Prijono28d3c562012-03-30 07:10:13 +00004820ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004821if test "x$ac_cv_header_fcntl_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004822 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004823
4824fi
4825
4826
Benny Prijono28d3c562012-03-30 07:10:13 +00004827ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004828if test "x$ac_cv_header_linux_socket_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004829 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004830
4831fi
4832
4833
Benny Prijono28d3c562012-03-30 07:10:13 +00004834ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004835if test "x$ac_cv_header_limits_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004836 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004837
4838fi
4839
4840
Benny Prijono28d3c562012-03-30 07:10:13 +00004841ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004842if test "x$ac_cv_header_malloc_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004843 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004844
4845fi
4846
4847
Benny Prijono28d3c562012-03-30 07:10:13 +00004848ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004849if test "x$ac_cv_header_netdb_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004850 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004851
4852fi
4853
4854
Benny Prijono28d3c562012-03-30 07:10:13 +00004855ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004856if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004857 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004858
4859fi
4860
4861
Benny Prijono28d3c562012-03-30 07:10:13 +00004862ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004863if test "x$ac_cv_header_netinet_in_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004864 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijonoe3e65802011-02-28 07:44:19 +00004865
4866fi
4867
4868
Benny Prijono28d3c562012-03-30 07:10:13 +00004869ac_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 +00004870 # include <sys/types.h>
4871 #endif
4872 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004873 # include <netinet/in_systm.h>
4874 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004875 #if PJ_HAS_NETINET_IN_H
4876 # include <netinet/in.h>
4877 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004878
Benny Prijono28d3c562012-03-30 07:10:13 +00004879"
Sauw Ming2f91da02012-06-07 02:24:51 +00004880if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004881 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004882
Benny Prijono36d32492011-12-28 08:42:23 +00004883fi
4884
Sauw Minge7dbbc82011-10-24 09:28:13 +00004885
Benny Prijono28d3c562012-03-30 07:10:13 +00004886ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004887if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004888 $as_echo "#define PJ_HAS_NETINET_TCP_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" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004894if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004895 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
Sauw Ming2f91da02012-06-07 02:24:51 +00004896if test "x$ac_cv_func_getifaddrs" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004897 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004898
4899fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004900
Sauw Minge7dbbc82011-10-24 09:28:13 +00004901fi
4902
Sauw Minge7dbbc82011-10-24 09:28:13 +00004903
Benny Prijono28d3c562012-03-30 07:10:13 +00004904ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004905if test "x$ac_cv_header_semaphore_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004906 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004907
Benny Prijono36d32492011-12-28 08:42:23 +00004908fi
4909
Benny Prijono36d32492011-12-28 08:42:23 +00004910
Benny Prijono28d3c562012-03-30 07:10:13 +00004911ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004912if test "x$ac_cv_header_setjmp_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004913 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004914
Benny Prijono36d32492011-12-28 08:42:23 +00004915fi
4916
Benny Prijono36d32492011-12-28 08:42:23 +00004917
Benny Prijono28d3c562012-03-30 07:10:13 +00004918ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004919if test "x$ac_cv_header_stdarg_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004920 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004921
4922fi
Benny Prijono36d32492011-12-28 08:42:23 +00004923
Benny Prijono36d32492011-12-28 08:42:23 +00004924
Benny Prijono28d3c562012-03-30 07:10:13 +00004925ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004926if test "x$ac_cv_header_stddef_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004927 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004928
Benny Prijono36d32492011-12-28 08:42:23 +00004929fi
4930
Sauw Minge7dbbc82011-10-24 09:28:13 +00004931
Benny Prijono28d3c562012-03-30 07:10:13 +00004932ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004933if test "x$ac_cv_header_stdio_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004934 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004935
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004936fi
4937
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004938
Benny Prijono28d3c562012-03-30 07:10:13 +00004939ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004940if test "x$ac_cv_header_stdint_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004941 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004942
Benny Prijono36d32492011-12-28 08:42:23 +00004943fi
4944
Benny Prijono36d32492011-12-28 08:42:23 +00004945
Benny Prijono28d3c562012-03-30 07:10:13 +00004946ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004947if test "x$ac_cv_header_stdlib_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004948 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004949
Benny Prijono36d32492011-12-28 08:42:23 +00004950fi
4951
Benny Prijono36d32492011-12-28 08:42:23 +00004952
Benny Prijono28d3c562012-03-30 07:10:13 +00004953ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004954if test "x$ac_cv_header_string_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004955 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004956
Sauw Minge7dbbc82011-10-24 09:28:13 +00004957fi
4958
Sauw Minge7dbbc82011-10-24 09:28:13 +00004959
Benny Prijono28d3c562012-03-30 07:10:13 +00004960ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004961if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004962 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004963
Benny Prijono36d32492011-12-28 08:42:23 +00004964fi
4965
Benny Prijono36d32492011-12-28 08:42:23 +00004966
Benny Prijono28d3c562012-03-30 07:10:13 +00004967ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004968if test "x$ac_cv_header_sys_select_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004969 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004970
Benny Prijono36d32492011-12-28 08:42:23 +00004971fi
4972
Benny Prijono36d32492011-12-28 08:42:23 +00004973
Benny Prijono28d3c562012-03-30 07:10:13 +00004974ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004975if test "x$ac_cv_header_sys_socket_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004976 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004977
4978fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004979
Sauw Minge7dbbc82011-10-24 09:28:13 +00004980
Benny Prijono28d3c562012-03-30 07:10:13 +00004981ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004982if test "x$ac_cv_header_sys_time_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004983 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004984
Benny Prijono36d32492011-12-28 08:42:23 +00004985fi
Benny Prijono36d32492011-12-28 08:42:23 +00004986
Benny Prijono36d32492011-12-28 08:42:23 +00004987
Benny Prijono28d3c562012-03-30 07:10:13 +00004988ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004989if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004990 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004991
Benny Prijono36d32492011-12-28 08:42:23 +00004992fi
4993
Benny Prijono36d32492011-12-28 08:42:23 +00004994
Benny Prijono28d3c562012-03-30 07:10:13 +00004995ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004996if test "x$ac_cv_header_sys_types_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004997 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004998
Benny Prijono36d32492011-12-28 08:42:23 +00004999fi
Benny Prijono36d32492011-12-28 08:42:23 +00005000
Sauw Minge7dbbc82011-10-24 09:28:13 +00005001
Benny Prijono28d3c562012-03-30 07:10:13 +00005002ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005003if test "x$ac_cv_header_sys_filio_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005004 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005005
Benny Prijono36d32492011-12-28 08:42:23 +00005006fi
5007
Benny Prijono36d32492011-12-28 08:42:23 +00005008
Benny Prijono28d3c562012-03-30 07:10:13 +00005009ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005010if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005011 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005012
Benny Prijono36d32492011-12-28 08:42:23 +00005013fi
5014
Benny Prijono36d32492011-12-28 08:42:23 +00005015
Benny Prijono28d3c562012-03-30 07:10:13 +00005016ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005017if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005018 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005019
5020fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00005021
Sauw Minge7dbbc82011-10-24 09:28:13 +00005022
Benny Prijono28d3c562012-03-30 07:10:13 +00005023ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005024if test "x$ac_cv_header_time_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005025 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005026
Benny Prijono36d32492011-12-28 08:42:23 +00005027fi
Benny Prijono36d32492011-12-28 08:42:23 +00005028
Benny Prijono36d32492011-12-28 08:42:23 +00005029
Benny Prijono28d3c562012-03-30 07:10:13 +00005030ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005031if test "x$ac_cv_header_unistd_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005032 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005033
Benny Prijono36d32492011-12-28 08:42:23 +00005034fi
5035
Benny Prijono36d32492011-12-28 08:42:23 +00005036
Benny Prijono28d3c562012-03-30 07:10:13 +00005037ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005038if test "x$ac_cv_header_winsock_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005039 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005040
Benny Prijono36d32492011-12-28 08:42:23 +00005041fi
Benny Prijono36d32492011-12-28 08:42:23 +00005042
Sauw Ming68c14572011-07-20 03:00:48 +00005043
Benny Prijono28d3c562012-03-30 07:10:13 +00005044ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005045if test "x$ac_cv_header_winsock2_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005046 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Sauw Ming68c14572011-07-20 03:00:48 +00005047
Benny Prijono36d32492011-12-28 08:42:23 +00005048fi
Benny Prijono36d32492011-12-28 08:42:23 +00005049
Benny Prijono36d32492011-12-28 08:42:23 +00005050
Benny Prijono28d3c562012-03-30 07:10:13 +00005051ac_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 +00005052 # include <winsock2.h>
5053 #elif PJ_HAS_WINSOCK_H
5054 # include <winsock.h>
5055 #endif
5056
Benny Prijono28d3c562012-03-30 07:10:13 +00005057"
Sauw Ming2f91da02012-06-07 02:24:51 +00005058if test "x$ac_cv_header_mswsock_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005059 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00005060
5061fi
5062
5063
Benny Prijono28d3c562012-03-30 07:10:13 +00005064ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005065if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005066 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00005067
5068fi
5069
5070
Benny Prijono28d3c562012-03-30 07:10:13 +00005071ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005072if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00005073 ac_has_uuid_h=1
5074fi
5075
5076
Benny Prijono28d3c562012-03-30 07:10:13 +00005077ac_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 +00005078 # include <sys/types.h>
5079 #endif
5080 #if PJ_HAS_SYS_SOCKET_H
5081
Benny Prijono188ba7e2008-03-25 13:53:16 +00005082 # include <sys/socket.h>
5083 #endif
5084
Benny Prijono28d3c562012-03-30 07:10:13 +00005085"
Sauw Ming2f91da02012-06-07 02:24:51 +00005086if test "x$ac_cv_header_net_if_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005087 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00005088
5089fi
5090
Benny Prijono188ba7e2008-03-25 13:53:16 +00005091
Benny Prijono28d3c562012-03-30 07:10:13 +00005092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5093$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005094cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005095#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005096_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005097
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005098
Benny Prijono28d3c562012-03-30 07:10:13 +00005099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5100$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5101$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005102
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005103
Benny Prijono28d3c562012-03-30 07:10:13 +00005104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5105$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5106$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005107
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005108
Benny Prijono28d3c562012-03-30 07:10:13 +00005109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5110$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5111$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005112
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005113
Benny Prijono28d3c562012-03-30 07:10:13 +00005114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5115$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5116$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005117
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005118
Benny Prijono28d3c562012-03-30 07:10:13 +00005119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5120$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5121$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005122
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005123
Benny Prijono28d3c562012-03-30 07:10:13 +00005124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5125$as_echo_n "checking if inet_aton() is available... " >&6; }
5126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005127/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005128#include <sys/types.h>
5129 #include <sys/socket.h>
5130 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005131int
5132main ()
5133{
5134inet_aton(0, 0);
5135 ;
5136 return 0;
5137}
5138_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005139if ac_fn_c_try_compile "$LINENO"; then :
5140 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005141
Benny Prijono28d3c562012-03-30 07:10:13 +00005142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5143$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005144else
Benny Prijono28d3c562012-03-30 07:10:13 +00005145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005147fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149
Benny Prijono28d3c562012-03-30 07:10:13 +00005150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5151$as_echo_n "checking if inet_pton() is available... " >&6; }
5152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005153/* end confdefs.h. */
5154#include <sys/types.h>
5155 #include <sys/socket.h>
5156 #include <arpa/inet.h>
5157int
5158main ()
5159{
5160inet_pton(0, 0, 0);
5161 ;
5162 return 0;
5163}
5164_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005165if ac_fn_c_try_compile "$LINENO"; then :
5166 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005167
Benny Prijono28d3c562012-03-30 07:10:13 +00005168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5169$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005170else
Benny Prijono28d3c562012-03-30 07:10:13 +00005171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005173fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175
Benny Prijono28d3c562012-03-30 07:10:13 +00005176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5177$as_echo_n "checking if inet_ntop() is available... " >&6; }
5178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005179/* end confdefs.h. */
5180#include <sys/types.h>
5181 #include <sys/socket.h>
5182 #include <arpa/inet.h>
5183int
5184main ()
5185{
5186inet_ntop(0, 0, 0, 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_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +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 Prijonoc16c6e32007-11-18 14:53:47 +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 Prijonoc16c6e32007-11-18 14:53:47 +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 getaddrinfo() is available" >&5
5203$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005205/* end confdefs.h. */
5206#include <sys/types.h>
5207 #include <sys/socket.h>
5208 #include <netdb.h>
5209int
5210main ()
5211{
5212getaddrinfo(0, 0, 0, 0);
5213 ;
5214 return 0;
5215}
5216_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005217if ac_fn_c_try_compile "$LINENO"; then :
5218 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005219
Benny Prijono28d3c562012-03-30 07:10:13 +00005220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5221$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005222else
Benny Prijono28d3c562012-03-30 07:10:13 +00005223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005225fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227
Benny Prijono28d3c562012-03-30 07:10:13 +00005228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5229$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005231/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005232#include <sys/types.h>
5233 #include <sys/socket.h>
5234 #include <netinet/in.h>
5235 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005236int
5237main ()
5238{
5239struct sockaddr_in a; a.sin_len=0;
5240 ;
5241 return 0;
5242}
5243_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005244if ac_fn_c_try_compile "$LINENO"; then :
5245 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005246
Benny Prijono28d3c562012-03-30 07:10:13 +00005247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5248$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005249else
Benny Prijono28d3c562012-03-30 07:10:13 +00005250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005252fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254
Benny Prijono28d3c562012-03-30 07:10:13 +00005255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5256$as_echo_n "checking if socklen_t is available... " >&6; }
5257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005258/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005259#include <sys/types.h>
5260 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005261int
5262main ()
5263{
5264socklen_t xxx = 0;
5265 ;
5266 return 0;
5267}
5268_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005269if ac_fn_c_try_compile "$LINENO"; then :
5270 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005271
Benny Prijono28d3c562012-03-30 07:10:13 +00005272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005274else
Benny Prijono28d3c562012-03-30 07:10:13 +00005275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005277fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279
Benny Prijono28d3c562012-03-30 07:10:13 +00005280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5281$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005282case $target in
5283 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00005284 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005285
Benny Prijono28d3c562012-03-30 07:10:13 +00005286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5287$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005288 ;;
5289 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00005290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005291/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005292#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005293 #include <sys/socket.h>
5294 #include <netinet/in.h>
5295 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005296int
5297main ()
5298{
5299int i=SO_ERROR;
5300 ;
5301 return 0;
5302}
5303_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005304if ac_fn_c_try_compile "$LINENO"; then :
5305 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005306
Benny Prijono28d3c562012-03-30 07:10:13 +00005307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5308$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005309else
Benny Prijono28d3c562012-03-30 07:10:13 +00005310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005312fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005314 ;;
5315esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005316
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005317
Benny Prijono28d3c562012-03-30 07:10:13 +00005318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5319$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005321/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005322#include <pthread.h>
5323int
5324main ()
5325{
5326pthread_rwlock_t *x;
5327 ;
5328 return 0;
5329}
5330_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005331if ac_fn_c_try_compile "$LINENO"; then :
5332 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005333
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005334 ac_rwmutex="yes"
Benny Prijono28d3c562012-03-30 07:10:13 +00005335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005337else
Benny Prijono28d3c562012-03-30 07:10:13 +00005338 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005339
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005340 ac_rwmutex="no"
Benny Prijono28d3c562012-03-30 07:10:13 +00005341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005343fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005345
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005346if test "$ac_rwmutex" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00005347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5348$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005350/* end confdefs.h. */
5351#define _POSIX_READER_WRITER_LOCKS
5352 #include <pthread.h>
5353int
5354main ()
5355{
5356pthread_rwlock_t *x;
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_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005363
5364 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono28d3c562012-03-30 07:10:13 +00005365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5366$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005367else
Benny Prijono28d3c562012-03-30 07:10:13 +00005368 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005369
Benny Prijono28d3c562012-03-30 07:10:13 +00005370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005372fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374fi
5375
Benny Prijono28d3c562012-03-30 07:10:13 +00005376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5377$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005379/* end confdefs.h. */
5380#include <pthread.h>
5381int
5382main ()
5383{
5384pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5385 ;
5386 return 0;
5387}
5388_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005389if ac_fn_c_try_compile "$LINENO"; then :
5390 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005391
Benny Prijono28d3c562012-03-30 07:10:13 +00005392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5393$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005394else
Benny Prijono28d3c562012-03-30 07:10:13 +00005395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005397fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399
Benny Prijono28d3c562012-03-30 07:10:13 +00005400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5401$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005403/* end confdefs.h. */
5404#include <pthread.h>
5405int
5406main ()
5407{
5408pthread_mutexattr_t attr;
5409 attr.recursive=1;
5410 ;
5411 return 0;
5412}
5413_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005414if ac_fn_c_try_compile "$LINENO"; then :
5415 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005416
Benny Prijono28d3c562012-03-30 07:10:13 +00005417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005419else
Benny Prijono28d3c562012-03-30 07:10:13 +00005420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005422fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005424
Benny Prijono99eec382008-09-18 21:22:16 +00005425
Benny Prijono28d3c562012-03-30 07:10:13 +00005426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5427$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005428# Check whether --enable-epoll was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005429if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005430 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005431 ac_os_objs=ioqueue_epoll.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5433$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005434
5435else
5436
5437 ac_os_objs=ioqueue_select.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5439$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005440
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005441fi
5442
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005443
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005444
5445case $target in
5446 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005447 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 +00005448 ;;
5449 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005450 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 +00005451 case $target in
5452 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +00005453 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005454 ;;
5455 esac
Benny Prijono4e48b512007-05-16 13:41:00 +00005456 # UUID
5457 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5458 ac_os_objs="$ac_os_objs guid_uuid.o"
5459 else
5460 ac_os_objs="$ac_os_objs guid_simple.o"
5461 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005462 ;;
5463esac
5464
Sauw Ming68c14572011-07-20 03:00:48 +00005465case $target in
5466 *darwin*)
5467 ac_os_objs="$ac_os_objs os_core_darwin.o"
5468 ;;
5469esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005470
5471
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005472ac_external_speex=0
5473
5474
5475# Check whether --with-external-speex was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005476if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005477 withval=$with_external_speex;
5478 if test "x$with_external_speex" != "xno"; then
5479 # Test Speex installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5481$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005483/* end confdefs.h. */
5484#include <speex/speex.h>
5485 #include <speex/speex_echo.h>
5486
5487int
5488main ()
5489{
5490speex_echo_state_init(0, 0); speex_encoder_init(0);
5491 ;
5492 return 0;
5493}
5494_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005495if ac_fn_c_try_compile "$LINENO"; then :
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5497$as_echo "yes!!" >&6; }
5498 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005499
5500 ac_external_speex="1"
5501
5502else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005503 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 +00005504fi
5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 fi
5507
5508
5509fi
5510
5511
5512ac_external_gsm=0
5513
5514
5515# Check whether --with-external-gsm was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005516if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005517 withval=$with_external_gsm;
5518 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005519 # Test GSM library installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5521$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005523/* end confdefs.h. */
5524#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005525int
5526main ()
5527{
5528gsm_create();
5529 ;
5530 return 0;
5531}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005532_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005533if ac_fn_c_try_compile "$LINENO"; then :
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5535$as_echo "yes!!" >&6; }
5536 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005537
Benny Prijono28d3c562012-03-30 07:10:13 +00005538 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005539
5540 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005541
5542else
Benny Prijono46bd0842010-02-12 14:12:41 +00005543
Benny Prijono28d3c562012-03-30 07:10:13 +00005544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545$as_echo "no" >&6; }
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5547$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00005549/* end confdefs.h. */
5550#include <gsm.h>
5551int
5552main ()
5553{
5554gsm_create();
5555 ;
5556 return 0;
5557}
5558_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005559if ac_fn_c_try_compile "$LINENO"; then :
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5561$as_echo "yes!!" >&6; }
5562 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005563
Benny Prijono28d3c562012-03-30 07:10:13 +00005564 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005565
5566 ac_external_gsm="1"
5567
5568else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005569 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 +00005570
5571
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005572fi
Benny Prijonod4306432010-05-01 22:05:41 +00005573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005574
Benny Prijonod4306432010-05-01 22:05:41 +00005575
5576fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579
5580
5581fi
5582
5583
5584
5585
Benny Prijono4e48b512007-05-16 13:41:00 +00005586
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005587# Check whether --enable-sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005588if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005589 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005590 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5592$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005593 fi
5594
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005595fi
5596
Benny Prijono1d971622006-09-10 22:27:40 +00005597
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005598ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005599
Benny Prijono27c98722007-04-09 21:28:15 +00005600
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005601# Check whether --with-external-pa was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005602if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005603 withval=$with_external_pa;
5604 if test "x$with_external_pa" != "xno"; then
5605 # Test PortAudio installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5607$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005609/* end confdefs.h. */
5610#include <portaudio.h>
5611
5612int
5613main ()
5614{
5615Pa_Initialize();
5616 ;
5617 return 0;
5618}
5619_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005620if ac_fn_c_try_compile "$LINENO"; then :
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5622$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005623 ac_external_pa="1"
5624
5625else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005626 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 +00005627fi
5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005629 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005630
Benny Prijono27c98722007-04-09 21:28:15 +00005631
5632fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005633
5634
5635
Benny Prijono28d3c562012-03-30 07:10:13 +00005636ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005637if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005638 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5639fi
5640
5641
Benny Prijono28d3c562012-03-30 07:10:13 +00005642ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005643if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005644 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5645fi
5646
5647
Benny Prijono28d3c562012-03-30 07:10:13 +00005648ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005649if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005650 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5651fi
5652
5653
5654
Benny Prijono3e091672008-01-09 15:43:02 +00005655if test "x$ac_cv_c_bigendian" = "xyes"; then
5656 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5657else
5658 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5659fi
5660
Benny Prijono1d971622006-09-10 22:27:40 +00005661if test "$enable_sound" = "no"; then
5662 true;
5663else
5664 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005665 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +00005666 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5668$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005669 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005670 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005671 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5672 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005673 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005674 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5675 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5677$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005678 else
5679 ac_pjmedia_snd=pa_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5681$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005682 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005683 ;;
5684 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005685 ac_pjmedia_snd=pa_win32
Benny Prijono28d3c562012-03-30 07:10:13 +00005686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5687$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005688 ;;
5689 *rtems*)
5690 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5692$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005693 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005694 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005695 ac_pjmedia_snd=pa_unix
Benny Prijono28d3c562012-03-30 07:10:13 +00005696 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005697if test "x$ac_cv_header_alsa_version_h" = xyes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005698 ac_pa_use_alsa=1
5699
5700 LIBS="$LIBS -lasound"
5701
5702else
5703 ac_pa_use_alsa=0
5704
5705fi
5706
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005707
Benny Prijono28d3c562012-03-30 07:10:13 +00005708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5709$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005710
5711 ac_pa_use_oss=1
5712
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005713 # Check whether --enable-oss was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005714if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005715 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005716 if test "$enable_oss" = "no"; then
5717 ac_pa_use_oss=0
Benny Prijono28d3c562012-03-30 07:10:13 +00005718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5719$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005720 fi
5721
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005722fi
5723
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005724 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005725 esac
5726fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005727
Sauw Ming6e6c2152010-12-14 13:03:10 +00005728
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005729
5730# Check whether --enable-video was given.
5731if test "${enable_video+set}" = set; then :
5732 enableval=$enable_video; if test "$enable_video" = "no"; then
5733 #AC_DEFINE(PJMEDIA_HAS_VIDEO,0)
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5
5735$as_echo "Video is disabled" >&6; }
5736 enable_sdl="no"
5737 enable_ffmpeg="no"
5738 enable_v4l2="no"
5739 fi
5740fi
5741
5742
5743case $target in
5744 arm-apple-darwin*)
5745 LIBS="$LIBS -framework UIKit"
5746 ;;
5747 *darwin*)
5748 LIBS="$LIBS -framework Foundation -framework AppKit"
5749 ;;
5750esac
5751
Sauw Ming6e6c2152010-12-14 13:03:10 +00005752if test "$enable_video" = "no"; then
5753 true;
5754else
5755 case $target in
5756 arm-apple-darwin*)
5757 ac_pjmedia_video=iphone_os
5758
Sauw Ming24c39a32011-08-16 05:44:46 +00005759
5760 SAVED_LIBS="$LIBS"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005761 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005763/* end confdefs.h. */
5764
5765int
5766main ()
5767{
5768
5769 ;
5770 return 0;
5771}
5772_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005773if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming24c39a32011-08-16 05:44:46 +00005774 ac_pjmedia_video_has_ios=yes
5775else
Benny Prijono28d3c562012-03-30 07:10:13 +00005776 ac_pjmedia_video_has_ios=no
Sauw Ming24c39a32011-08-16 05:44:46 +00005777fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005778rm -f core conftest.err conftest.$ac_objext \
5779 conftest$ac_exeext conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005780 LIBS="$SAVED_LIBS"
5781 if test "$ac_pjmedia_video_has_ios" = "yes"; then
5782 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005783 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
5785$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005786 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
5788$as_echo "Checking if AVFoundation framework is available... no" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005789 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00005790 ;;
5791 *darwin*)
5792 ac_pjmedia_video=mac_os
5793
5794
5795 SAVED_LIBS="$LIBS"
5796 LIBS="-framework QTKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005798/* end confdefs.h. */
5799
5800int
5801main ()
5802{
5803
5804 ;
5805 return 0;
5806}
5807_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005808if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00005809 ac_pjmedia_video_has_qt=yes
5810else
Benny Prijono28d3c562012-03-30 07:10:13 +00005811 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +00005812fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005813rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005815 LIBS="$SAVED_LIBS"
5816 if test "$ac_pjmedia_video_has_qt" = "yes"; then
5817 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005818 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
Benny Prijono28d3c562012-03-30 07:10:13 +00005819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5820$as_echo "Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005821 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5823$as_echo "Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005824 fi
5825 ;;
5826 esac
5827fi
5828
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005829# Check whether --enable-ext_sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005830if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005831 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005832 ac_pjmedia_snd=external
Benny Prijono28d3c562012-03-30 07:10:13 +00005833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5834$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005835 fi
5836
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005837fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005838
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005839
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005840
5841# Check whether --enable-small-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005842if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005843 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005844 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5846$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005847 fi
5848else
Benny Prijono28d3c562012-03-30 07:10:13 +00005849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5850$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005851fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005852
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005853
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005854
5855# Check whether --enable-large-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005856if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005857 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005858 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5860$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005861 fi
5862else
Benny Prijono28d3c562012-03-30 07:10:13 +00005863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5864$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005865fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005866
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005867
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005868
5869# Check whether --enable-speex-aec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005870if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005871 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005872 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5874$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005875 fi
5876else
Benny Prijono28d3c562012-03-30 07:10:13 +00005877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5878$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005879fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005880
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005881
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005882
5883# Check whether --enable-g711-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005884if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005885 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005886 ac_no_g711_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005887 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005888
Benny Prijono28d3c562012-03-30 07:10:13 +00005889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5890$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005891 fi
5892else
Benny Prijono28d3c562012-03-30 07:10:13 +00005893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5894$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005895fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005896
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005897
5898
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005899
5900# Check whether --enable-l16-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005901if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005902 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005903 ac_no_l16_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005904 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005905
Benny Prijono28d3c562012-03-30 07:10:13 +00005906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5907$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005908 fi
5909else
Benny Prijono28d3c562012-03-30 07:10:13 +00005910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5911$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005912fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005913
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005914
5915
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005916
5917# Check whether --enable-gsm-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005918if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005919 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005920 ac_no_gsm_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005921 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005922
Benny Prijono28d3c562012-03-30 07:10:13 +00005923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5924$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005925 fi
5926else
Benny Prijono28d3c562012-03-30 07:10:13 +00005927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5928$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005929fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005930
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005931
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005932
5933# Check whether --enable-g722-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005934if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005935 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005936 ac_no_g722_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005937 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005938
Benny Prijono28d3c562012-03-30 07:10:13 +00005939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5940$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005941 fi
5942else
Benny Prijono28d3c562012-03-30 07:10:13 +00005943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5944$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005945fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005946
5947
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005948
5949# Check whether --enable-g7221-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005950if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005951 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5952 ac_no_g7221_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005953 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005954
Benny Prijono28d3c562012-03-30 07:10:13 +00005955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5956$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005957 fi
5958else
Benny Prijono28d3c562012-03-30 07:10:13 +00005959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5960$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005961fi
5962
5963
5964
5965# Check whether --enable-speex-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005966if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005967 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005968 ac_no_speex_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005969 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005970
Benny Prijono28d3c562012-03-30 07:10:13 +00005971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5972$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005973 fi
5974else
Benny Prijono28d3c562012-03-30 07:10:13 +00005975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5976$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005977fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005978
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005979
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005980
5981# Check whether --enable-ilbc-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005982if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005983 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005984 ac_no_ilbc_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005985 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005986
Benny Prijono28d3c562012-03-30 07:10:13 +00005987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5988$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005989 fi
5990else
Benny Prijono28d3c562012-03-30 07:10:13 +00005991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5992$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005993fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005994
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005995
5996# Check whether --enable-libsamplerate was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005997if test "${enable_libsamplerate+set}" = set; then :
5998 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5999$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006000if ${ac_cv_lib_samplerate_src_new+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006001 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00006002else
6003 ac_check_lib_save_LIBS=$LIBS
6004LIBS="-lsamplerate $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00006006/* end confdefs.h. */
6007
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006008/* Override any GCC internal prototype to avoid an error.
6009 Use char because int might match the return type of a GCC
6010 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00006011#ifdef __cplusplus
6012extern "C"
6013#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00006014char src_new ();
6015int
6016main ()
6017{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006018return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00006019 ;
6020 return 0;
6021}
6022_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006023if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00006024 ac_cv_lib_samplerate_src_new=yes
6025else
Benny Prijono28d3c562012-03-30 07:10:13 +00006026 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00006027fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006028rm -f core conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00006030LIBS=$ac_check_lib_save_LIBS
6031fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
6033$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006034if test "x$ac_cv_lib_samplerate_src_new" = xyes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00006035 cat >>confdefs.h <<_ACEOF
6036#define HAVE_LIBSAMPLERATE 1
6037_ACEOF
6038
6039 LIBS="-lsamplerate $LIBS"
6040
6041fi
6042
6043else
Benny Prijono28d3c562012-03-30 07:10:13 +00006044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
6045$as_echo "Skipping libsamplerate detection" >&6; }
6046
6047fi
6048
6049
6050
6051# Check whether --enable-resample_dll was given.
6052if test "${enable_resample_dll+set}" = set; then :
6053 enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
6054 ac_resample_dll=1
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
6056$as_echo "Building libresample as shared library... yes" >&6; }
6057 fi
6058else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
6060$as_echo "Building libresample as shared library... no" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00006061
6062fi
6063
6064
6065
6066# Check whether --with-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006067if test "${with_sdl+set}" = set; then :
Benny Prijono5b0af632011-07-20 03:16:25 +00006068 withval=$with_sdl;
6069else
6070 with_sdl=no
Benny Prijono550a1a62007-10-16 08:54:00 +00006071
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006072fi
Benny Prijono0822c192008-08-21 20:59:58 +00006073
6074
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006075if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then
6076 enable_sdl=no
6077fi
6078
Benny Prijonoc45d9512010-12-10 11:04:30 +00006079# Check whether --enable-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006080if test "${enable_sdl+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006081 enableval=$enable_sdl;
6082 if test "$enable_sdl" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
6084$as_echo "Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006085 fi
6086
6087else
6088
Benny Prijono5b0af632011-07-20 03:16:25 +00006089 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6091$as_echo "Using SDL prefix... $with_sdl" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006092 for ac_prog in sdl2-config sdl-config
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006093do
6094 # Extract the first word of "$ac_prog", so it can be a program name with args.
6095set dummy $ac_prog; ac_word=$2
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006098if ${ac_cv_path_SDL_CONFIG+:} false; then :
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006099 $as_echo_n "(cached) " >&6
6100else
6101 case $SDL_CONFIG in
6102 [\\/]* | ?:[\\/]*)
6103 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6104 ;;
6105 *)
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $with_sdl/bin
6108do
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00006112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006113 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117done
6118 done
6119IFS=$as_save_IFS
6120
6121 ;;
6122esac
6123fi
6124SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6125if test -n "$SDL_CONFIG"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6127$as_echo "$SDL_CONFIG" >&6; }
6128else
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130$as_echo "no" >&6; }
6131fi
6132
6133
6134 test -n "$SDL_CONFIG" && break
6135done
6136
6137 else
Sauw Ming2f91da02012-06-07 02:24:51 +00006138 for ac_prog in sdl2-config sdl-config
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006139do
6140 # Extract the first word of "$ac_prog", so it can be a program name with args.
6141set dummy $ac_prog; ac_word=$2
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006144if ${ac_cv_path_SDL_CONFIG+:} false; then :
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006145 $as_echo_n "(cached) " >&6
6146else
6147 case $SDL_CONFIG in
6148 [\\/]* | ?:[\\/]*)
6149 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6150 ;;
6151 *)
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00006158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006159 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163done
6164 done
6165IFS=$as_save_IFS
6166
6167 ;;
6168esac
6169fi
6170SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6171if test -n "$SDL_CONFIG"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6173$as_echo "$SDL_CONFIG" >&6; }
6174else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
6177fi
6178
6179
6180 test -n "$SDL_CONFIG" && break
6181done
6182
Benny Prijono5b0af632011-07-20 03:16:25 +00006183 fi
6184
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability" >&5
6186$as_echo_n "checking SDL availability... " >&6; }
6187 if test "x$SDL_CONFIG" = "x"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6189$as_echo "not found" >&6; }
6190 elif (sh -c "$SDL_CONFIG --version" | grep -e '^1\.3' -e '^2\.') then
Benny Prijonoc45d9512010-12-10 11:04:30 +00006191
6192
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006193 ac_sdl_cflags=`$SDL_CONFIG --cflags`
6194 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
6195 ac_sdl_ldflags=`$SDL_CONFIG --libs`
6196 LIBS="$LIBS $ac_sdl_ldflags"
6197 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6199$as_echo "Unsupported SDL version" >&6; }
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006200 fi
Benny Prijono550a1a62007-10-16 08:54:00 +00006201
Benny Prijono0822c192008-08-21 20:59:58 +00006202fi
6203
6204
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006205
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006206
6207# Check whether --with-ffmpeg was given.
6208if test "${with_ffmpeg+set}" = set; then :
6209 withval=$with_ffmpeg;
6210else
6211 with_ffmpeg=no
6212
6213fi
6214
6215
6216if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then
6217 enable_ffmpeg=no
6218fi
6219
Benny Prijonoc45d9512010-12-10 11:04:30 +00006220# Check whether --enable-ffmpeg was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006221if test "${enable_ffmpeg+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006222 enableval=$enable_ffmpeg;
6223 ac_has_ffmpeg=0
6224
6225 if test "$enable_ffmpeg" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6227$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006228 fi
6229
6230else
6231
6232
6233
6234
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006235 FFMPEG_PREFIX=""
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006236
6237 SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006238 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6239 FFMPEG_PREFIX=$with_ffmpeg
Benny Prijono28d3c562012-03-30 07:10:13 +00006240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6241$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00006242 export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006243 fi
6244
6245 for ac_prog in pkg-config "python pkgconfig.py"
6246do
6247 # Extract the first word of "$ac_prog", so it can be a program name with args.
6248set dummy $ac_prog; ac_word=$2
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006251if ${ac_cv_prog_PKG_CONFIG+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006252 $as_echo_n "(cached) " >&6
6253else
6254 if test -n "$PKG_CONFIG"; then
6255 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00006263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006264 ac_cv_prog_PKG_CONFIG="$ac_prog"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269 done
6270IFS=$as_save_IFS
6271
6272fi
6273fi
6274PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6275if test -n "$PKG_CONFIG"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6277$as_echo "$PKG_CONFIG" >&6; }
6278else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280$as_echo "no" >&6; }
6281fi
6282
6283
6284 test -n "$PKG_CONFIG" && break
6285done
6286test -n "$PKG_CONFIG" || PKG_CONFIG="none"
6287
6288
6289 if test "$PKG_CONFIG" != "none"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
6291$as_echo_n "checking ffmpeg packages... " >&6; }
6292 av_pkg=""
6293 if $PKG_CONFIG --exists libdevice; then
6294 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6295 av_pkg="$av_pkg libdevice"
6296 fi
6297 if $PKG_CONFIG --exists libavformat; then
6298 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6299 av_pkg="$av_pkg libavformat"
6300 fi
6301 if $PKG_CONFIG --exists libavcodec; then
6302 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6303 av_pkg="$av_pkg libavcodec"
6304 fi
6305 if $PKG_CONFIG --exists libswscale; then
6306 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6307 av_pkg="$av_pkg libswscale"
6308 fi
6309 if $PKG_CONFIG --exists libavutil; then
6310 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6311 av_pkg="$av_pkg libavutil"
6312 fi
6313 if $PKG_CONFIG --exists libavcore; then
6314 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6315 av_pkg="$av_pkg libavcore"
6316 fi
6317
6318 if test "x$av_pkg" == "x"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
6320$as_echo "none detected (check the prefix)! **" >&6; }
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
6323$as_echo "$av_pkg" >&6; }
6324 fi
6325
6326 ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
6327 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
6328
6329 else
6330
6331 { $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
6332$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; }
6333
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006334 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
Sauw Ming01095d82011-07-14 08:46:19 +00006335 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006336 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006337
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006339$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006340if ${ac_cv_lib_avdevice_avdevice_version+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006341 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006342else
6343 ac_check_lib_save_LIBS=$LIBS
6344LIBS="-lavdevice $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006346/* end confdefs.h. */
6347
6348/* Override any GCC internal prototype to avoid an error.
6349 Use char because int might match the return type of a GCC
6350 builtin and then its argument prototype would still apply. */
6351#ifdef __cplusplus
6352extern "C"
6353#endif
6354char avdevice_version ();
6355int
6356main ()
6357{
6358return avdevice_version ();
6359 ;
6360 return 0;
6361}
6362_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006363if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006364 ac_cv_lib_avdevice_avdevice_version=yes
6365else
Benny Prijono28d3c562012-03-30 07:10:13 +00006366 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006367fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006368rm -f core conftest.err conftest.$ac_objext \
6369 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006370LIBS=$ac_check_lib_save_LIBS
6371fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6373$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006374if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006375 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006376 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006377
6378
6379fi
6380
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006382$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006383if ${ac_cv_lib_avutil_av_malloc+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006384 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006385else
6386 ac_check_lib_save_LIBS=$LIBS
6387LIBS="-lavutil $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006389/* end confdefs.h. */
6390
6391/* Override any GCC internal prototype to avoid an error.
6392 Use char because int might match the return type of a GCC
6393 builtin and then its argument prototype would still apply. */
6394#ifdef __cplusplus
6395extern "C"
6396#endif
6397char av_malloc ();
6398int
6399main ()
6400{
6401return av_malloc ();
6402 ;
6403 return 0;
6404}
6405_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006406if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006407 ac_cv_lib_avutil_av_malloc=yes
6408else
Benny Prijono28d3c562012-03-30 07:10:13 +00006409 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006410fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006411rm -f core conftest.err conftest.$ac_objext \
6412 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006413LIBS=$ac_check_lib_save_LIBS
6414fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6416$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006417if test "x$ac_cv_lib_avutil_av_malloc" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006418 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006419 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006420
6421
6422fi
6423
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6425$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006426if ${ac_cv_lib_avcodec_avcodec_init+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006427 $as_echo_n "(cached) " >&6
6428else
6429 ac_check_lib_save_LIBS=$LIBS
6430LIBS="-lavcodec -lavutil
6431 $LIBS"
6432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433/* end confdefs.h. */
6434
6435/* Override any GCC internal prototype to avoid an error.
6436 Use char because int might match the return type of a GCC
6437 builtin and then its argument prototype would still apply. */
6438#ifdef __cplusplus
6439extern "C"
6440#endif
6441char avcodec_init ();
6442int
6443main ()
6444{
6445return avcodec_init ();
6446 ;
6447 return 0;
6448}
6449_ACEOF
6450if ac_fn_c_try_link "$LINENO"; then :
6451 ac_cv_lib_avcodec_avcodec_init=yes
6452else
6453 ac_cv_lib_avcodec_avcodec_init=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457LIBS=$ac_check_lib_save_LIBS
6458fi
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6460$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006461if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006462 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6463 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6464
6465fi
6466
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6468$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006469if ${ac_cv_lib_avformat_av_register_all+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006470 $as_echo_n "(cached) " >&6
6471else
6472 ac_check_lib_save_LIBS=$LIBS
6473LIBS="-lavformat -lavcodec -lavutil
6474 $LIBS"
6475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h. */
6477
6478/* Override any GCC internal prototype to avoid an error.
6479 Use char because int might match the return type of a GCC
6480 builtin and then its argument prototype would still apply. */
6481#ifdef __cplusplus
6482extern "C"
6483#endif
6484char av_register_all ();
6485int
6486main ()
6487{
6488return av_register_all ();
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493if ac_fn_c_try_link "$LINENO"; then :
6494 ac_cv_lib_avformat_av_register_all=yes
6495else
6496 ac_cv_lib_avformat_av_register_all=no
6497fi
6498rm -f core conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6500LIBS=$ac_check_lib_save_LIBS
6501fi
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6503$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006504if test "x$ac_cv_lib_avformat_av_register_all" = xyes; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006505 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6506 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6507
6508fi
6509
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6511$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006512if ${ac_cv_lib_swscale_sws_scale+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006513 $as_echo_n "(cached) " >&6
6514else
6515 ac_check_lib_save_LIBS=$LIBS
6516LIBS="-lswscale -lavutil
6517 $LIBS"
6518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519/* end confdefs.h. */
6520
6521/* Override any GCC internal prototype to avoid an error.
6522 Use char because int might match the return type of a GCC
6523 builtin and then its argument prototype would still apply. */
6524#ifdef __cplusplus
6525extern "C"
6526#endif
6527char sws_scale ();
6528int
6529main ()
6530{
6531return sws_scale ();
6532 ;
6533 return 0;
6534}
6535_ACEOF
6536if ac_fn_c_try_link "$LINENO"; then :
6537 ac_cv_lib_swscale_sws_scale=yes
6538else
6539 ac_cv_lib_swscale_sws_scale=no
6540fi
6541rm -f core conftest.err conftest.$ac_objext \
6542 conftest$ac_exeext conftest.$ac_ext
6543LIBS=$ac_check_lib_save_LIBS
6544fi
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6546$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006547if test "x$ac_cv_lib_swscale_sws_scale" = xyes; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006548 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6549 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6550
6551fi
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006554$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006555if ${ac_cv_lib_avcore_avcore_version+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006556 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006557else
6558 ac_check_lib_save_LIBS=$LIBS
6559LIBS="-lavcore $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006561/* end confdefs.h. */
6562
6563/* Override any GCC internal prototype to avoid an error.
6564 Use char because int might match the return type of a GCC
6565 builtin and then its argument prototype would still apply. */
6566#ifdef __cplusplus
6567extern "C"
6568#endif
6569char avcore_version ();
6570int
6571main ()
6572{
6573return avcore_version ();
6574 ;
6575 return 0;
6576}
6577_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006578if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006579 ac_cv_lib_avcore_avcore_version=yes
6580else
Benny Prijono28d3c562012-03-30 07:10:13 +00006581 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006582fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006583rm -f core conftest.err conftest.$ac_objext \
6584 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006585LIBS=$ac_check_lib_save_LIBS
6586fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6588$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006589if test "x$ac_cv_lib_avcore_avcore_version" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006590 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006591 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006592
6593
6594fi
6595
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006596
6597 fi
6598
Benny Prijono69b1f822010-12-10 11:33:01 +00006599 LIBS="$LIBS $ac_ffmpeg_ldflags"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00006600 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
Benny Prijonoc45d9512010-12-10 11:04:30 +00006601
6602
6603fi
6604
6605
6606# Check whether --enable-v4l2 was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006607if test "${enable_v4l2+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006608 enableval=$enable_v4l2;
6609 if test "$enable_v4l2" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6611$as_echo "Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006612 fi
6613
6614else
6615
6616
6617
Benny Prijono28d3c562012-03-30 07:10:13 +00006618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6619$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006620if ${ac_cv_lib_v4l2_v4l2_open+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006621 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006622else
6623 ac_check_lib_save_LIBS=$LIBS
6624LIBS="-lv4l2 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006626/* end confdefs.h. */
6627
6628/* Override any GCC internal prototype to avoid an error.
6629 Use char because int might match the return type of a GCC
6630 builtin and then its argument prototype would still apply. */
6631#ifdef __cplusplus
6632extern "C"
6633#endif
6634char v4l2_open ();
6635int
6636main ()
6637{
6638return v4l2_open ();
6639 ;
6640 return 0;
6641}
6642_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006643if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006644 ac_cv_lib_v4l2_v4l2_open=yes
6645else
Benny Prijono28d3c562012-03-30 07:10:13 +00006646 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006647fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006648rm -f core conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006650LIBS=$ac_check_lib_save_LIBS
6651fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6653$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006654if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006655 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6656 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +00006657 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006658
6659
6660fi
6661
6662
6663fi
6664
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006665
6666# Check whether --enable-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006667if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006668 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006669else
6670 enable_ipp=no
6671
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006672fi
Benny Prijono0822c192008-08-21 20:59:58 +00006673
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006674
Benny Prijono3965f192010-02-10 18:46:05 +00006675
6676# Check whether --with-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006677if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006678 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006679else
6680 with_ipp=no
6681
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006682fi
Benny Prijono0822c192008-08-21 20:59:58 +00006683
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006684
Benny Prijono3965f192010-02-10 18:46:05 +00006685
6686# Check whether --with-ipp-samples was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006687if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006688 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00006689else
6690 with_ipp_samples=no
6691
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006692fi
6693
Benny Prijono0822c192008-08-21 20:59:58 +00006694
Benny Prijono3965f192010-02-10 18:46:05 +00006695
6696# Check whether --with-ipp-arch was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006697if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006698 withval=$with_ipp_arch;
6699else
6700 with_ipp_arch=no
6701
6702fi
6703
6704
Benny Prijono0822c192008-08-21 20:59:58 +00006705if test "x$enable_ipp" != "xno"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6707$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006708
6709 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6711$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006712 IPPROOT=$with_ipp
6713 elif test "x$IPPROOT" = "x"; then
6714 if test -d /opt/intel/ipp; then
6715 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijono28d3c562012-03-30 07:10:13 +00006716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6717$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006718 fi
6719 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6721$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006722 fi
6723
Benny Prijono3965f192010-02-10 18:46:05 +00006724 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00006725 IPP_SUFFIX=$with_ipp_arch
Benny Prijono28d3c562012-03-30 07:10:13 +00006726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6727$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006728 else
6729 IPP_SUFFIX=""
Benny Prijono28d3c562012-03-30 07:10:13 +00006730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6731$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006732 fi
6733
Benny Prijono0822c192008-08-21 20:59:58 +00006734 if test x$IPPROOT = x; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006735 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 +00006736 elif test ! -d $IPPROOT; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006737 as_fn_error $? "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006738 elif test ! -d $IPPROOT/include; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006739 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006740 else
6741 # IPP directory looks okay.
6742 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00006743 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00006744
6745 SAVED_CFLAGS="$CFLAGS"
6746 SAVED_LDFLAGS="$LDFLAGS"
6747 SAVED_LIBS="$LIBS"
6748
6749 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006750 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +00006751
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006752#
Benny Prijono46bd0842010-02-12 14:12:41 +00006753 # Some differences between Mac OS X and Linux
6754 case $target in
6755 *darwin* )
6756 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6757 ;;
6758 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006759 # Find out where the libraries live.
6760 IPP7_ARCH=""
6761 if test -d $IPPROOT/lib/intel64; then
6762 IPP7_ARCH="intel64"
6763 elif test -d $IPPROOT/lib/ia32; then
6764 IPP7_ARCH="ia32"
6765 elif test -d $IPPROOT/lib/mic; then
6766 IPP7_ARCH="mic"
6767 fi
6768
6769 if test -z "$IPP7_ARCH"; then
6770 # IPP6 (and possibly below)
6771 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6772 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
6773 else
6774 # IPP7
6775 if ! test -d $IPPROOT/../compiler; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006776 as_fn_error $? "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006777 fi
6778 IPP_CFLAGS="$IPP_CFLAGS"
6779 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6780 IPP_LIBS="$IPP_LIBS -liomp5"
6781 fi
Benny Prijono46bd0842010-02-12 14:12:41 +00006782 ;;
6783 esac
6784
Benny Prijono0822c192008-08-21 20:59:58 +00006785 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00006786 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00006787 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6788
6789 CFLAGS="$CFLAGS $IPP_CFLAGS"
6790 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6791 LIBS="$IPP_LIBS $LIBS"
6792
6793
Benny Prijono28d3c562012-03-30 07:10:13 +00006794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6795$as_echo_n "checking Intel IPP usability... " >&6; }
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006797/* end confdefs.h. */
6798#include <ippcore.h>
6799
6800int
6801main ()
6802{
6803ippStaticInit();
6804 ;
6805 return 0;
6806}
6807_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006808if ac_fn_c_try_link "$LINENO"; then :
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6810$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006811else
Benny Prijono28d3c562012-03-30 07:10:13 +00006812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006814as_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
Sauw Ming2f91da02012-06-07 02:24:51 +00006815See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006816fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006817rm -f core conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006819
6820 CFLAGS="$SAVED_CFLAGS"
6821 LDFLAGS="$SAVED_LDFLAGS"
6822 LIBS="$SAVED_LIBS"
6823 fi
6824
Benny Prijono28d3c562012-03-30 07:10:13 +00006825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6826$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006827
6828 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6830$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006831 IPPSAMPLES=$with_ipp_samples
6832 elif test "x$IPPSAMPLES" = "x"; then
6833 if test -d /opt/intel/ipp-samples; then
6834 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijono28d3c562012-03-30 07:10:13 +00006835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6836$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006837 fi
6838 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6840$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006841 fi
6842
6843 if test x$IPPSAMPLES = x; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006844 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 +00006845 elif test ! -d $IPPSAMPLES; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006846 as_fn_error $? "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006847 elif test ! -d $IPPSAMPLES/speech-codecs; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006848 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006849 else
6850 # Remove trailing backslash
6851 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6852
Benny Prijono3965f192010-02-10 18:46:05 +00006853 # Guess the libusc.a/libspeech.a build location
Benny Prijono28d3c562012-03-30 07:10:13 +00006854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6855$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006856 if test -d $IPPSAMPLES/speech-codecs/bin; then
6857 IPPVER=5
6858 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6859 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6860 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00006861 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6862 # gcc compiler
6863 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6864 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6865 # icc compiler
6866 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6867 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006870as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
Sauw Ming2f91da02012-06-07 02:24:51 +00006871See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006872 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006873 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006876as_fn_error $? "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
Sauw Ming2f91da02012-06-07 02:24:51 +00006877See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006878 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006879
6880 # Test the directory
6881 if test ! -d $IPPSAMP_DIR; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006884as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
Sauw Ming2f91da02012-06-07 02:24:51 +00006885See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006886 exit 1;
6887 fi
6888
6889 if test "x$IPPVER" = "x5"; then
6890 IPPSAMP_LIBS="libusc.a"
6891 IPPSAMP_LDLIBS="-lusc"
6892 elif test "x$IPPVER" = "x6"; then
6893 IPPSAMP_LIBS="libspeech.a"
6894 IPPSAMP_LDLIBS="-lspeech"
6895 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006898as_fn_error $? "bug in this script: unsupported IPP version
Sauw Ming2f91da02012-06-07 02:24:51 +00006899See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006900 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006901
6902 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006905as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
Sauw Ming2f91da02012-06-07 02:24:51 +00006906See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006907 fi
6908
Benny Prijono28d3c562012-03-30 07:10:13 +00006909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6910$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006911
6912 SAVED_CFLAGS="$CFLAGS"
6913 SAVED_LDFLAGS="$LDFLAGS"
6914 SAVED_LIBS="$LIBS"
6915
Benny Prijono3965f192010-02-10 18:46:05 +00006916 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6917 CFLAGS="$CFLAGS $IPPSAMP_INC"
6918 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6919 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006920
Benny Prijono28d3c562012-03-30 07:10:13 +00006921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6922$as_echo_n "checking Intel IPP USC usability... " >&6; }
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006924/* end confdefs.h. */
6925#include <usc.h>
6926
6927int
6928main ()
6929{
6930extern USC_Fxns USC_G729AFP_Fxns;
6931 ;
6932 return 0;
6933}
6934_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006935if ac_fn_c_try_link "$LINENO"; then :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6937$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006938else
Benny Prijono28d3c562012-03-30 07:10:13 +00006939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006941as_fn_error $? "failed
Sauw Ming2f91da02012-06-07 02:24:51 +00006942See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006943fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006944rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006946
6947 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006948 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6949 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006950
Benny Prijono3965f192010-02-10 18:46:05 +00006951 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6952 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6953 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006954 fi
6955
Benny Prijono3965f192010-02-10 18:46:05 +00006956 CFLAGS="$CFLAGS $IPP_CFLAGS"
6957 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6958 LIBS="$LIBS $IPP_LIBS"
6959
Benny Prijono0822c192008-08-21 20:59:58 +00006960 ac_build_mak_vars="$ac_build_mak_vars\n\
6961export IPP_CFLAGS=$IPP_CFLAGS\n\
6962export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6963export IPP_LIBS=$IPP_LIBS"
6964else
Benny Prijono28d3c562012-03-30 07:10:13 +00006965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6966$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006967fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006968
6969
6970
6971
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006972# Check whether --with-ssl was given.
6973if test "${with_ssl+set}" = set; then :
6974 withval=$with_ssl;
6975else
6976 with_ssl=no
6977
6978fi
6979
6980
6981if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno"; then
6982 enable_ssl=no
6983fi
6984
6985
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006986# Check whether --enable-ssl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006987if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006988 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006989 if test "$enable_ssl" = "no"; then
6990 ac_no_ssl=1
Benny Prijono28d3c562012-03-30 07:10:13 +00006991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6992$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006993 fi
6994
6995else
6996
Benny Prijono28d3c562012-03-30 07:10:13 +00006997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6998$as_echo "checking for OpenSSL installations.." >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006999 if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
7000 CFLAGS="$CFLAGS -I$with_ssl/include"
7001 LDFLAGS="$LDFLAGS -L$with_ssl/lib"
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5
7003$as_echo "Using SSL prefix... $with_ssl" >&6; }
7004 fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007005
7006
7007
Benny Prijono28d3c562012-03-30 07:10:13 +00007008 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00007009if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007010 openssl_h_present=1
7011fi
7012
7013
Benny Prijono28d3c562012-03-30 07:10:13 +00007014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
7015$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007016if ${ac_cv_lib_crypto_ERR_load_BIO_strings+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00007017 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007018else
7019 ac_check_lib_save_LIBS=$LIBS
7020LIBS="-lcrypto $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007022/* end confdefs.h. */
7023
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007024/* Override any GCC internal prototype to avoid an error.
7025 Use char because int might match the return type of a GCC
7026 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007027#ifdef __cplusplus
7028extern "C"
7029#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007030char ERR_load_BIO_strings ();
7031int
7032main ()
7033{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007034return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007035 ;
7036 return 0;
7037}
7038_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007039if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007040 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
7041else
Benny Prijono28d3c562012-03-30 07:10:13 +00007042 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007043fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007044rm -f core conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007046LIBS=$ac_check_lib_save_LIBS
7047fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
7049$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007050if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007051 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
7052fi
7053
Benny Prijono28d3c562012-03-30 07:10:13 +00007054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
7055$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007056if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00007057 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00007058else
7059 ac_check_lib_save_LIBS=$LIBS
7060LIBS="-lssl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00007062/* end confdefs.h. */
7063
7064/* Override any GCC internal prototype to avoid an error.
7065 Use char because int might match the return type of a GCC
7066 builtin and then its argument prototype would still apply. */
7067#ifdef __cplusplus
7068extern "C"
7069#endif
7070char SSL_library_init ();
7071int
7072main ()
7073{
7074return SSL_library_init ();
7075 ;
7076 return 0;
7077}
7078_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007079if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00007080 ac_cv_lib_ssl_SSL_library_init=yes
7081else
Benny Prijono28d3c562012-03-30 07:10:13 +00007082 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00007083fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007084rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00007086LIBS=$ac_check_lib_save_LIBS
7087fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7089$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007090if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00007091 libssl_present=1 && LIBS="$LIBS -lssl"
7092fi
7093
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007094 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 +00007095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
7096$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00007097 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
7098 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijono28d3c562012-03-30 07:10:13 +00007099 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00007100
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007101 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
7103$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00007104 fi
7105
7106fi
7107
7108
7109
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007110# Check whether --with-opencore-amrnb was given.
7111if test "${with_opencore_amrnb+set}" = set; then :
7112 withval=$with_opencore_amrnb;
7113else
7114 with_opencore_amrnb=no
7115
7116fi
7117
7118
7119if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrnb" = "xno"; then
7120 enable_opencore_amrnb=no
7121fi
7122
7123
Sauw Minge7dbbc82011-10-24 09:28:13 +00007124# Check whether --enable-opencore_amrnb was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00007125if test "${enable_opencore_amrnb+set}" = set; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007126 enableval=$enable_opencore_amrnb;
7127 if test "$enable_opencore_amrnb" = "no"; then
7128 ac_no_opencore_amrnb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00007129 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007130
Benny Prijono28d3c562012-03-30 07:10:13 +00007131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
7132$as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00007133 fi
7134
7135else
7136
Benny Prijono28d3c562012-03-30 07:10:13 +00007137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5
7138$as_echo "checking for OpenCORE AMR-NB installations.." >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007139 if test "x$with_opencore_amrnb" != "xno" -a "x$with_opencore_amrnb" != "x"; then
7140 CFLAGS="$CFLAGS -I$with_opencore_amrnb/include"
7141 LDFLAGS="$LDFLAGS -L$with_opencore_amrnb/lib"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&5
7143$as_echo "Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&6; }
7144 fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00007145
7146
Benny Prijono28d3c562012-03-30 07:10:13 +00007147 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00007148if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007149 opencore_amrnb_h_present=1
7150fi
7151
7152
Benny Prijono28d3c562012-03-30 07:10:13 +00007153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
7154$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007155if ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00007156 $as_echo_n "(cached) " >&6
Sauw Minge7dbbc82011-10-24 09:28:13 +00007157else
7158 ac_check_lib_save_LIBS=$LIBS
7159LIBS="-lopencore-amrnb $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00007161/* end confdefs.h. */
7162
7163/* Override any GCC internal prototype to avoid an error.
7164 Use char because int might match the return type of a GCC
7165 builtin and then its argument prototype would still apply. */
7166#ifdef __cplusplus
7167extern "C"
7168#endif
7169char Encoder_Interface_init ();
7170int
7171main ()
7172{
7173return Encoder_Interface_init ();
7174 ;
7175 return 0;
7176}
7177_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007178if ac_fn_c_try_link "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007179 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
7180else
Benny Prijono28d3c562012-03-30 07:10:13 +00007181 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
Sauw Minge7dbbc82011-10-24 09:28:13 +00007182fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007183rm -f core conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00007185LIBS=$ac_check_lib_save_LIBS
7186fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
7188$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007189if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007190 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
7191fi
7192
7193 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
7195$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
7196 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007197
7198 else
7199 ac_no_opencore_amrnb=1
Sauw Mingec02c082012-10-01 11:08:08 +00007200 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007201
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007202 fi
7203
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007204fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007205
7206
7207
Sauw Ming03df4242012-09-25 02:23:06 +00007208# Check whether --with-silk was given.
7209if test "${with_silk+set}" = set; then :
7210 withval=$with_silk;
7211else
7212 with_silk=no
7213
7214fi
7215
7216
7217if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then
7218 enable_silk=no
7219fi
7220
7221
7222# Check whether --enable-silk was given.
7223if test "${enable_silk+set}" = set; then :
7224 enableval=$enable_silk;
7225 if test "$enable_silk" = "no"; then
7226 ac_no_silk=1
7227 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SILK support is disabled... yes" >&5
7230$as_echo "Checking if SILK support is disabled... yes" >&6; }
7231 fi
7232
7233else
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for SILK installations.." >&5
7236$as_echo "checking for SILK installations.." >&6; }
7237 if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then
7238 CFLAGS="$CFLAGS -I$with_silk/interface"
Sauw Mingec02c082012-10-01 11:08:08 +00007239 CPPFLAGS="$CPPFLAGS -I$with_silk/interface"
Sauw Ming03df4242012-09-25 02:23:06 +00007240 LDFLAGS="$LDFLAGS -L$with_silk"
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SILK prefix... $with_silk" >&5
7242$as_echo "Using SILK prefix... $with_silk" >&6; }
7243 fi
7244
7245
7246 ac_fn_c_check_header_mongrel "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default"
7247if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = xyes; then :
7248 silk_h_present=1
7249fi
7250
7251
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK" >&5
7253$as_echo_n "checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... " >&6; }
7254if ${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256else
7257 ac_check_lib_save_LIBS=$LIBS
7258LIBS="-lSKP_SILK_SDK $LIBS"
7259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h. */
7261
7262/* Override any GCC internal prototype to avoid an error.
7263 Use char because int might match the return type of a GCC
7264 builtin and then its argument prototype would still apply. */
7265#ifdef __cplusplus
7266extern "C"
7267#endif
7268char SKP_Silk_SDK_get_version ();
7269int
7270main ()
7271{
7272return SKP_Silk_SDK_get_version ();
7273 ;
7274 return 0;
7275}
7276_ACEOF
7277if ac_fn_c_try_link "$LINENO"; then :
7278 ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=yes
7279else
7280 ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=no
7281fi
7282rm -f core conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
7284LIBS=$ac_check_lib_save_LIBS
7285fi
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&5
7287$as_echo "$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&6; }
7288if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = xyes; then :
7289 silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK"
7290fi
7291
7292 if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SILK library found, SILK support enabled" >&5
7294$as_echo "SILK library found, SILK support enabled" >&6; }
7295 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 1" >>confdefs.h
7296
7297 else
7298 ac_no_silk=1
7299 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
7300
7301 fi
7302
7303fi
7304
7305
7306
7307
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007308
Benny Prijono28d3c562012-03-30 07:10:13 +00007309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
7310$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007311case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007312 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007313
Benny Prijono28d3c562012-03-30 07:10:13 +00007314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7315$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007316 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007317 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007318
Benny Prijono28d3c562012-03-30 07:10:13 +00007319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7320$as_echo "no (default)" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7322$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007323 ;;
7324esac
7325
Benny Prijono28d3c562012-03-30 07:10:13 +00007326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
7327$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007328case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007329 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007330
Benny Prijono28d3c562012-03-30 07:10:13 +00007331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7332$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007333 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007334 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007335
Benny Prijono28d3c562012-03-30 07:10:13 +00007336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7337$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007338 ;;
7339esac
7340
Benny Prijono28d3c562012-03-30 07:10:13 +00007341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
7342$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007343case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007344 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007345
Benny Prijono28d3c562012-03-30 07:10:13 +00007346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7347$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007348 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007349 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007350
Benny Prijono28d3c562012-03-30 07:10:13 +00007351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7352$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007353 ;;
7354esac
7355
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007356case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007357 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007358 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007359
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007360 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007361 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007362
Benny Prijono28d3c562012-03-30 07:10:13 +00007363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7364$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007365 ;;
7366esac
7367
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007368case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007369 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007370 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007371
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007372 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007373 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007374
Benny Prijono28d3c562012-03-30 07:10:13 +00007375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7376$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007377 ;;
7378esac
7379
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007380
7381
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007382ac_linux_poll=select
7383
7384ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007385
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007386
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007387case $target in
7388 *rtems*)
7389 ac_main_obj=main_rtems.o
7390 ;;
7391 *)
7392 ac_main_obj=main.o
7393 ;;
7394esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007395
Benny Prijono0822c192008-08-21 20:59:58 +00007396
7397ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007398cat >confcache <<\_ACEOF
7399# This file is a shell script that caches the results of configure
7400# tests run on this system so they can be shared between configure
7401# scripts and configure runs, see configure's option --config-cache.
7402# It is not useful on other systems. If it contains results you don't
7403# want to keep, you may remove or edit it.
7404#
7405# config.status only pays attention to the cache file if you give it
7406# the --recheck option to rerun configure.
7407#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007408# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007409# loading this file, other *unset* `ac_cv_foo' will be assigned the
7410# following values.
7411
7412_ACEOF
7413
7414# The following way of writing the cache mishandles newlines in values,
7415# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007416# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007417# Ultrix sh set writes to stderr and can't be redirected directly,
7418# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007419(
7420 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7421 eval ac_val=\$$ac_var
7422 case $ac_val in #(
7423 *${as_nl}*)
7424 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007425 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7426$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007427 esac
7428 case $ac_var in #(
7429 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007430 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7431 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007432 esac ;;
7433 esac
7434 done
7435
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007436 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007437 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7438 *${as_nl}ac_space=\ *)
Benny Prijono28d3c562012-03-30 07:10:13 +00007439 # `set' does not quote correctly, so add quotes: double-quote
7440 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007441 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007442 "s/'/'\\\\''/g;
7443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007444 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007445 *)
7446 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007448 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007449 esac |
7450 sort
7451) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007452 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007453 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007454 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007455 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7457 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007458 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7459 :end' >>confcache
7460if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7461 if test -w "$cache_file"; then
Sauw Ming2f91da02012-06-07 02:24:51 +00007462 if test "x$cache_file" != "x/dev/null"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007463 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7464$as_echo "$as_me: updating cache $cache_file" >&6;}
Sauw Ming2f91da02012-06-07 02:24:51 +00007465 if test ! -f "$cache_file" || test -h "$cache_file"; then
7466 cat confcache >"$cache_file"
7467 else
7468 case $cache_file in #(
7469 */* | ?:*)
7470 mv -f confcache "$cache_file"$$ &&
7471 mv -f "$cache_file"$$ "$cache_file" ;; #(
7472 *)
7473 mv -f confcache "$cache_file" ;;
7474 esac
7475 fi
7476 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007477 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007478 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7479$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007480 fi
7481fi
7482rm -f confcache
7483
7484test "x$prefix" = xNONE && prefix=$ac_default_prefix
7485# Let make expand exec_prefix.
7486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7487
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007488DEFS=-DHAVE_CONFIG_H
7489
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007490ac_libobjs=
7491ac_ltlibobjs=
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007492U=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007493for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7494 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007495 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijono28d3c562012-03-30 07:10:13 +00007496 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007497 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7498 # will be set to the directory where LIBOBJS objects are built.
Benny Prijono28d3c562012-03-30 07:10:13 +00007499 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7500 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007501done
7502LIBOBJS=$ac_libobjs
7503
7504LTLIBOBJS=$ac_ltlibobjs
7505
7506
7507
Benny Prijono28d3c562012-03-30 07:10:13 +00007508
Sauw Ming2f91da02012-06-07 02:24:51 +00007509: "${CONFIG_STATUS=./config.status}"
Benny Prijono28d3c562012-03-30 07:10:13 +00007510ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007511ac_clean_files_save=$ac_clean_files
7512ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007513{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7514$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7515as_write_fail=0
7516cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007517#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007518# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007519# Run this file to recreate the current configuration.
7520# Compiler output produced by configure, useful for debugging
7521# configure, is in config.log if it exists.
7522
7523debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007524ac_cs_recheck=false
7525ac_cs_silent=false
Benny Prijono36d32492011-12-28 08:42:23 +00007526
Benny Prijono28d3c562012-03-30 07:10:13 +00007527SHELL=\${CONFIG_SHELL-$SHELL}
7528export SHELL
7529_ASEOF
7530cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7531## -------------------- ##
7532## M4sh Initialization. ##
7533## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007534
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007535# Be more Bourne compatible
7536DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono28d3c562012-03-30 07:10:13 +00007537if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007538 emulate sh
7539 NULLCMD=:
Benny Prijono28d3c562012-03-30 07:10:13 +00007540 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007541 # is contrary to our usage. Disable this feature.
7542 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007543 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00007544else
Benny Prijono28d3c562012-03-30 07:10:13 +00007545 case `(set -o) 2>/dev/null` in #(
7546 *posix*) :
7547 set -o posix ;; #(
7548 *) :
7549 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007550esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007551fi
7552
7553
Benny Prijono28d3c562012-03-30 07:10:13 +00007554as_nl='
7555'
7556export as_nl
7557# Printing a long string crashes Solaris 7 /usr/bin/printf.
7558as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7559as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7560as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7561# Prefer a ksh shell builtin over an external printf program on Solaris,
7562# but without wasting forks for bash or zsh.
7563if test -z "$BASH_VERSION$ZSH_VERSION" \
7564 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7565 as_echo='print -r --'
7566 as_echo_n='print -rn --'
7567elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7568 as_echo='printf %s\n'
7569 as_echo_n='printf %s'
7570else
7571 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7572 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7573 as_echo_n='/usr/ucb/echo -n'
7574 else
7575 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7576 as_echo_n_body='eval
7577 arg=$1;
7578 case $arg in #(
7579 *"$as_nl"*)
7580 expr "X$arg" : "X\\(.*\\)$as_nl";
7581 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7582 esac;
7583 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7584 '
7585 export as_echo_n_body
7586 as_echo_n='sh -c $as_echo_n_body as_echo'
7587 fi
7588 export as_echo_body
7589 as_echo='sh -c $as_echo_body as_echo'
7590fi
Benny Prijonod5233702010-01-13 13:09:45 +00007591
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007592# The user is always right.
7593if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007594 PATH_SEPARATOR=:
7595 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7596 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7597 PATH_SEPARATOR=';'
7598 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007599fi
7600
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007601
7602# IFS
7603# We need space, tab and new line, in precisely that order. Quoting is
7604# there to prevent editors from complaining about space-tab.
7605# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7606# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007607IFS=" "" $as_nl"
7608
7609# Find who we are. Look in the path if we contain no directory separator.
Sauw Ming2f91da02012-06-07 02:24:51 +00007610as_myself=
Benny Prijono28d3c562012-03-30 07:10:13 +00007611case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007612 *[\\/]* ) as_myself=$0 ;;
7613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00007618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7619 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007620IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007621
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007622 ;;
7623esac
7624# We did not find ourselves, most probably we were run as `sh COMMAND'
7625# in which case we are not to be found in the path.
7626if test "x$as_myself" = x; then
7627 as_myself=$0
7628fi
7629if test ! -f "$as_myself"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007630 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7631 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007632fi
7633
Benny Prijono28d3c562012-03-30 07:10:13 +00007634# Unset variables that we do not need and which cause bugs (e.g. in
7635# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7636# suppresses any "Segmentation fault" message there. '((' could
7637# trigger a bug in pdksh 5.2.14.
7638for as_var in BASH_ENV ENV MAIL MAILPATH
7639do eval test x\${$as_var+set} = xset \
7640 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007641done
7642PS1='$ '
7643PS2='> '
7644PS4='+ '
7645
7646# NLS nuisances.
Benny Prijono28d3c562012-03-30 07:10:13 +00007647LC_ALL=C
7648export LC_ALL
7649LANGUAGE=C
7650export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +00007651
Benny Prijono28d3c562012-03-30 07:10:13 +00007652# CDPATH.
7653(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7654
7655
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007656# as_fn_error STATUS ERROR [LINENO LOG_FD]
7657# ----------------------------------------
Benny Prijono28d3c562012-03-30 07:10:13 +00007658# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7659# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007660# script with STATUS, using 1 if that was 0.
Benny Prijono28d3c562012-03-30 07:10:13 +00007661as_fn_error ()
7662{
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007663 as_status=$1; test $as_status -eq 0 && as_status=1
7664 if test "$4"; then
7665 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7666 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Benny Prijono28d3c562012-03-30 07:10:13 +00007667 fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007668 $as_echo "$as_me: error: $2" >&2
Benny Prijono28d3c562012-03-30 07:10:13 +00007669 as_fn_exit $as_status
7670} # as_fn_error
7671
7672
7673# as_fn_set_status STATUS
7674# -----------------------
7675# Set $? to STATUS, without forking.
7676as_fn_set_status ()
7677{
7678 return $1
7679} # as_fn_set_status
7680
7681# as_fn_exit STATUS
7682# -----------------
7683# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7684as_fn_exit ()
7685{
7686 set +e
7687 as_fn_set_status $1
7688 exit $1
7689} # as_fn_exit
7690
7691# as_fn_unset VAR
7692# ---------------
7693# Portably unset VAR.
7694as_fn_unset ()
7695{
7696 { eval $1=; unset $1;}
7697}
7698as_unset=as_fn_unset
7699# as_fn_append VAR VALUE
7700# ----------------------
7701# Append the text in VALUE to the end of the definition contained in VAR. Take
7702# advantage of any shell optimizations that allow amortized linear growth over
7703# repeated appends, instead of the typical quadratic growth present in naive
7704# implementations.
7705if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7706 eval 'as_fn_append ()
7707 {
7708 eval $1+=\$2
7709 }'
7710else
7711 as_fn_append ()
7712 {
7713 eval $1=\$$1\$2
7714 }
7715fi # as_fn_append
7716
7717# as_fn_arith ARG...
7718# ------------------
7719# Perform arithmetic evaluation on the ARGs, and store the result in the
7720# global $as_val. Take advantage of shells that can avoid forks. The arguments
7721# must be portable across $(()) and expr.
7722if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7723 eval 'as_fn_arith ()
7724 {
7725 as_val=$(( $* ))
7726 }'
7727else
7728 as_fn_arith ()
7729 {
7730 as_val=`expr "$@" || test $? -eq 1`
7731 }
7732fi # as_fn_arith
7733
7734
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007735if expr a : '\(a\)' >/dev/null 2>&1 &&
7736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7737 as_expr=expr
7738else
7739 as_expr=false
7740fi
7741
7742if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7743 as_basename=basename
7744else
7745 as_basename=false
7746fi
7747
Benny Prijono28d3c562012-03-30 07:10:13 +00007748if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7749 as_dirname=dirname
7750else
7751 as_dirname=false
7752fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007753
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007754as_me=`$as_basename -- "$0" ||
7755$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7756 X"$0" : 'X\(//\)$' \| \
7757 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00007758$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007759 sed '/^.*\/\([^/][^/]*\)\/*$/{
7760 s//\1/
7761 q
7762 }
7763 /^X\/\(\/\/\)$/{
7764 s//\1/
7765 q
7766 }
7767 /^X\/\(\/\).*/{
7768 s//\1/
7769 q
7770 }
7771 s/.*/./; q'`
7772
Benny Prijono28d3c562012-03-30 07:10:13 +00007773# Avoid depending upon Character Ranges.
7774as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7775as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7776as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7777as_cr_digits='0123456789'
7778as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007779
7780ECHO_C= ECHO_N= ECHO_T=
Benny Prijono28d3c562012-03-30 07:10:13 +00007781case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007782-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +00007783 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007784 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +00007785 xy) ECHO_C='\c';;
7786 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7787 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007788 esac;;
7789*)
7790 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007791esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007792
7793rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007794if test -d conf$$.dir; then
7795 rm -f conf$$.dir/conf$$.file
7796else
7797 rm -f conf$$.dir
Benny Prijono28d3c562012-03-30 07:10:13 +00007798 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007799fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007800if (echo >conf$$.file) 2>/dev/null; then
7801 if ln -s conf$$.file conf$$ 2>/dev/null; then
7802 as_ln_s='ln -s'
7803 # ... but there are two gotchas:
7804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Sauw Ming2f91da02012-06-07 02:24:51 +00007806 # In both cases, we have to default to `cp -pR'.
Benny Prijono28d3c562012-03-30 07:10:13 +00007807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Sauw Ming2f91da02012-06-07 02:24:51 +00007808 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +00007809 elif ln conf$$.file conf$$ 2>/dev/null; then
7810 as_ln_s=ln
7811 else
Sauw Ming2f91da02012-06-07 02:24:51 +00007812 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +00007813 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007814else
Sauw Ming2f91da02012-06-07 02:24:51 +00007815 as_ln_s='cp -pR'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007816fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007817rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7818rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007819
Benny Prijono28d3c562012-03-30 07:10:13 +00007820
7821# as_fn_mkdir_p
7822# -------------
7823# Create "$as_dir" as a directory, including parents if necessary.
7824as_fn_mkdir_p ()
7825{
7826
7827 case $as_dir in #(
7828 -*) as_dir=./$as_dir;;
7829 esac
7830 test -d "$as_dir" || eval $as_mkdir_p || {
7831 as_dirs=
7832 while :; do
7833 case $as_dir in #(
7834 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7835 *) as_qdir=$as_dir;;
7836 esac
7837 as_dirs="'$as_qdir' $as_dirs"
7838 as_dir=`$as_dirname -- "$as_dir" ||
7839$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7840 X"$as_dir" : 'X\(//\)[^/]' \| \
7841 X"$as_dir" : 'X\(//\)$' \| \
7842 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7843$as_echo X"$as_dir" |
7844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7845 s//\1/
7846 q
7847 }
7848 /^X\(\/\/\)[^/].*/{
7849 s//\1/
7850 q
7851 }
7852 /^X\(\/\/\)$/{
7853 s//\1/
7854 q
7855 }
7856 /^X\(\/\).*/{
7857 s//\1/
7858 q
7859 }
7860 s/.*/./; q'`
7861 test -d "$as_dir" && break
7862 done
7863 test -z "$as_dirs" || eval "mkdir $as_dirs"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007864 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Benny Prijono28d3c562012-03-30 07:10:13 +00007865
7866
7867} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007868if mkdir -p . 2>/dev/null; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007869 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00007870else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007871 test -d ./-p && rmdir ./-p
7872 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00007873fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007874
Sauw Ming2f91da02012-06-07 02:24:51 +00007875
7876# as_fn_executable_p FILE
7877# -----------------------
7878# Test if FILE is an executable regular file.
7879as_fn_executable_p ()
7880{
7881 test -f "$1" && test -x "$1"
7882} # as_fn_executable_p
7883as_test_x='test -x'
7884as_executable_p=as_fn_executable_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007885
7886# Sed expression to map a string onto a valid CPP name.
7887as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7888
7889# Sed expression to map a string onto a valid variable name.
7890as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7891
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007892
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007893exec 6>&1
Benny Prijono28d3c562012-03-30 07:10:13 +00007894## ----------------------------------- ##
7895## Main body of $CONFIG_STATUS script. ##
7896## ----------------------------------- ##
7897_ASEOF
7898test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007899
Benny Prijono28d3c562012-03-30 07:10:13 +00007900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7901# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007902# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007903# values after options handling.
7904ac_log="
Benny Prijono28d3c562012-03-30 07:10:13 +00007905This file was extended by pjproject $as_me 2.x, which was
Sauw Ming2f91da02012-06-07 02:24:51 +00007906generated by GNU Autoconf 2.69. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007907
7908 CONFIG_FILES = $CONFIG_FILES
7909 CONFIG_HEADERS = $CONFIG_HEADERS
7910 CONFIG_LINKS = $CONFIG_LINKS
7911 CONFIG_COMMANDS = $CONFIG_COMMANDS
7912 $ $0 $@
7913
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007914on `(hostname || uname -n) 2>/dev/null | sed 1q`
7915"
7916
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007917_ACEOF
7918
Benny Prijono28d3c562012-03-30 07:10:13 +00007919case $ac_config_files in *"
7920"*) set x $ac_config_files; shift; ac_config_files=$*;;
7921esac
7922
7923case $ac_config_headers in *"
7924"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7925esac
7926
7927
7928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007929# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007930config_files="$ac_config_files"
7931config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007932
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007933_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007934
Benny Prijono28d3c562012-03-30 07:10:13 +00007935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007936ac_cs_usage="\
Benny Prijono28d3c562012-03-30 07:10:13 +00007937\`$as_me' instantiates files and other configuration actions
7938from templates according to the current configuration. Unless the files
7939and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007940
Benny Prijono28d3c562012-03-30 07:10:13 +00007941Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007942
7943 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007944 -V, --version print version number and configuration settings, then exit
Benny Prijono28d3c562012-03-30 07:10:13 +00007945 --config print configuration, then exit
7946 -q, --quiet, --silent
7947 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007948 -d, --debug don't remove temporary files
7949 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijono28d3c562012-03-30 07:10:13 +00007950 --file=FILE[:TEMPLATE]
7951 instantiate the configuration file FILE
7952 --header=FILE[:TEMPLATE]
7953 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007954
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007955Configuration files:
7956$config_files
7957
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007958Configuration headers:
7959$config_headers
7960
Benny Prijono28d3c562012-03-30 07:10:13 +00007961Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00007962
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007963_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7965ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007966ac_cs_version="\\
Benny Prijono28d3c562012-03-30 07:10:13 +00007967pjproject config.status 2.x
Sauw Ming2f91da02012-06-07 02:24:51 +00007968configured by $0, generated by GNU Autoconf 2.69,
Benny Prijono28d3c562012-03-30 07:10:13 +00007969 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007970
Sauw Ming2f91da02012-06-07 02:24:51 +00007971Copyright (C) 2012 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007972This config.status script is free software; the Free Software Foundation
7973gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007974
7975ac_pwd='$ac_pwd'
7976srcdir='$srcdir'
Benny Prijono28d3c562012-03-30 07:10:13 +00007977test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007978_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007979
Benny Prijono28d3c562012-03-30 07:10:13 +00007980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7981# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007982ac_need_defaults=:
7983while test $# != 0
7984do
7985 case $1 in
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007986 --*=?*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007987 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7988 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007989 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007990 ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007991 --*=)
7992 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7993 ac_optarg=
7994 ac_shift=:
7995 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007996 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007997 ac_option=$1
7998 ac_optarg=$2
7999 ac_shift=shift
8000 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008001 esac
8002
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008003 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008004 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008006 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008007 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijono28d3c562012-03-30 07:10:13 +00008008 $as_echo "$ac_cs_version"; exit ;;
8009 --config | --confi | --conf | --con | --co | --c )
8010 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008011 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008012 debug=: ;;
8013 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008014 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00008015 case $ac_optarg in
8016 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008017 '') as_fn_error $? "missing file argument" ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00008018 esac
8019 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008020 ac_need_defaults=false;;
8021 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008022 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00008023 case $ac_optarg in
8024 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8025 esac
8026 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008027 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008028 --he | --h)
8029 # Conflict between --help and --header
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008030 as_fn_error $? "ambiguous option: \`$1'
Benny Prijono28d3c562012-03-30 07:10:13 +00008031Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008032 --help | --hel | -h )
Benny Prijono28d3c562012-03-30 07:10:13 +00008033 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8035 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8036 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008037
8038 # This is an error.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008039 -*) as_fn_error $? "unrecognized option: \`$1'
Benny Prijono28d3c562012-03-30 07:10:13 +00008040Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008041
Benny Prijono28d3c562012-03-30 07:10:13 +00008042 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008043 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008044
8045 esac
8046 shift
8047done
8048
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008049ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008050
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008051if $ac_cs_silent; then
8052 exec 6>/dev/null
8053 ac_configure_extra_args="$ac_configure_extra_args --silent"
8054fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008055
8056_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008058if \$ac_cs_recheck; then
Sauw Ming2f91da02012-06-07 02:24:51 +00008059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono28d3c562012-03-30 07:10:13 +00008060 shift
8061 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8062 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008063 export CONFIG_SHELL
Benny Prijono28d3c562012-03-30 07:10:13 +00008064 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008065fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008066
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008067_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008069exec 5>>config.log
8070{
8071 echo
8072 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8073## Running $as_me. ##
8074_ASBOX
Benny Prijono28d3c562012-03-30 07:10:13 +00008075 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008076} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008077
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008078_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008080_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008081
Benny Prijono28d3c562012-03-30 07:10:13 +00008082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008083
8084# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008085for ac_config_target in $ac_config_targets
8086do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008087 case $ac_config_target in
8088 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
8089 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
8090 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
8091 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
8092 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
8093 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
8094 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00008095 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008096 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
8097 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
8098 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
8099 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008100 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00008101 "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 +00008102
Sauw Ming2f91da02012-06-07 02:24:51 +00008103 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008104 esac
8105done
8106
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008107
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008108# If the user did not use the arguments to specify the items to instantiate,
8109# then the envvar interface is used. Set only those that are not.
8110# We use the long form for the default assignment because of an extremely
8111# bizarre bug on SunOS 4.1.3.
8112if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8115fi
8116
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008117# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008118# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008119# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008120# Hook for its removal unless debugging.
8121# Note that there is a small window in which the directory will not be cleaned:
8122# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008123$debug ||
8124{
Sauw Ming2f91da02012-06-07 02:24:51 +00008125 tmp= ac_tmp=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008126 trap 'exit_status=$?
Sauw Ming2f91da02012-06-07 02:24:51 +00008127 : "${ac_tmp:=$tmp}"
8128 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008129' 0
Benny Prijono28d3c562012-03-30 07:10:13 +00008130 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008131}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008132# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008133
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008134{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008135 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Sauw Ming2f91da02012-06-07 02:24:51 +00008136 test -d "$tmp"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008137} ||
8138{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008139 tmp=./conf$$-$RANDOM
8140 (umask 077 && mkdir "$tmp")
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008141} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Sauw Ming2f91da02012-06-07 02:24:51 +00008142ac_tmp=$tmp
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008143
Benny Prijono28d3c562012-03-30 07:10:13 +00008144# Set up the scripts for CONFIG_FILES section.
8145# No need to generate them if there are no CONFIG_FILES.
8146# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008147if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008148
Benny Prijono28d3c562012-03-30 07:10:13 +00008149
8150ac_cr=`echo X | tr X '\015'`
8151# On cygwin, bash can eat \r inside `` if the user requested igncr.
8152# But we know of no other shell where ac_cr would be empty at this
8153# point, so we can use a bashism as a fallback.
8154if test "x$ac_cr" = x; then
8155 eval ac_cr=\$\'\\r\'
8156fi
8157ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8158if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008159 ac_cs_awk_cr='\\r'
Benny Prijono28d3c562012-03-30 07:10:13 +00008160else
8161 ac_cs_awk_cr=$ac_cr
8162fi
8163
Sauw Ming2f91da02012-06-07 02:24:51 +00008164echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008165_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008166
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008167
Benny Prijono28d3c562012-03-30 07:10:13 +00008168{
8169 echo "cat >conf$$subs.awk <<_ACEOF" &&
8170 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8171 echo "_ACEOF"
8172} >conf$$subs.sh ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8174ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008175ac_delim='%!_!# '
8176for ac_last_try in false false false false false :; do
Benny Prijono28d3c562012-03-30 07:10:13 +00008177 . ./conf$$subs.sh ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008179
Benny Prijono28d3c562012-03-30 07:10:13 +00008180 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8181 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008182 break
8183 elif $ac_last_try; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008185 else
8186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008187 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008188done
Benny Prijono28d3c562012-03-30 07:10:13 +00008189rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008190
Benny Prijono28d3c562012-03-30 07:10:13 +00008191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Sauw Ming2f91da02012-06-07 02:24:51 +00008192cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008193_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008194sed -n '
8195h
8196s/^/S["/; s/!.*/"]=/
8197p
8198g
8199s/^[^!]*!//
8200:repl
8201t repl
8202s/'"$ac_delim"'$//
8203t delim
8204:nl
8205h
8206s/\(.\{148\}\)..*/\1/
8207t more1
8208s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8209p
8210n
8211b repl
8212:more1
8213s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8214p
8215g
8216s/.\{148\}//
8217t nl
8218:delim
8219h
8220s/\(.\{148\}\)..*/\1/
8221t more2
8222s/["\\]/\\&/g; s/^/"/; s/$/"/
8223p
8224b
8225:more2
8226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8227p
8228g
8229s/.\{148\}//
8230t delim
8231' <conf$$subs.awk | sed '
8232/^[^""]/{
8233 N
8234 s/\n//
8235}
8236' >>$CONFIG_STATUS || ac_write_fail=1
8237rm -f conf$$subs.awk
8238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8239_ACAWK
Sauw Ming2f91da02012-06-07 02:24:51 +00008240cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Benny Prijono28d3c562012-03-30 07:10:13 +00008241 for (key in S) S_is_set[key] = 1
8242 FS = ""
8243
8244}
8245{
8246 line = $ 0
8247 nfields = split(line, field, "@")
8248 substed = 0
8249 len = length(field[1])
8250 for (i = 2; i < nfields; i++) {
8251 key = field[i]
8252 keylen = length(key)
8253 if (S_is_set[key]) {
8254 value = S[key]
8255 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8256 len += length(value) + length(field[++i])
8257 substed = 1
8258 } else
8259 len += 1 + keylen
8260 }
8261
8262 print line
8263}
8264
8265_ACAWK
Benny Prijonod4306432010-05-01 22:05:41 +00008266_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8268if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8269 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8270else
8271 cat
Sauw Ming2f91da02012-06-07 02:24:51 +00008272fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008273 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00008274_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008275
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008276# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8277# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008278# trailing colons and then remove the whole line if VPATH becomes empty
8279# (actually we leave an empty line to preserve line numbers).
8280if test "x$srcdir" = x.; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008281 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8282h
8283s///
8284s/^/:/
8285s/[ ]*$/:/
8286s/:\$(srcdir):/:/g
8287s/:\${srcdir}:/:/g
8288s/:@srcdir@:/:/g
8289s/^:*//
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008290s/:*$//
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008291x
8292s/\(=[ ]*\).*/\1/
8293G
8294s/\n//
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008295s/^[^=]*=[ ]*$//
8296}'
8297fi
8298
Benny Prijono28d3c562012-03-30 07:10:13 +00008299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008300fi # test -n "$CONFIG_FILES"
8301
Benny Prijono28d3c562012-03-30 07:10:13 +00008302# Set up the scripts for CONFIG_HEADERS section.
8303# No need to generate them if there are no CONFIG_HEADERS.
8304# This happens for instance with `./config.status Makefile'.
8305if test -n "$CONFIG_HEADERS"; then
Sauw Ming2f91da02012-06-07 02:24:51 +00008306cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008307BEGIN {
8308_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008309
Benny Prijono28d3c562012-03-30 07:10:13 +00008310# Transform confdefs.h into an awk script `defines.awk', embedded as
8311# here-document in config.status, that substitutes the proper values into
8312# config.h.in to produce config.h.
8313
8314# Create a delimiter string that does not exist in confdefs.h, to ease
8315# handling of long lines.
8316ac_delim='%!_!# '
8317for ac_last_try in false false :; do
Sauw Ming2f91da02012-06-07 02:24:51 +00008318 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8319 if test -z "$ac_tt"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008320 break
8321 elif $ac_last_try; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008322 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00008323 else
8324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8325 fi
8326done
8327
8328# For the awk script, D is an array of macro values keyed by name,
8329# likewise P contains macro parameters if any. Preserve backslash
8330# newline sequences.
8331
8332ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8333sed -n '
8334s/.\{148\}/&'"$ac_delim"'/g
8335t rset
8336:rset
8337s/^[ ]*#[ ]*define[ ][ ]*/ /
8338t def
8339d
8340:def
8341s/\\$//
8342t bsnl
8343s/["\\]/\\&/g
8344s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8345D["\1"]=" \3"/p
8346s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8347d
8348:bsnl
8349s/["\\]/\\&/g
8350s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8351D["\1"]=" \3\\\\\\n"\\/p
8352t cont
8353s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8354t cont
8355d
8356:cont
8357n
8358s/.\{148\}/&'"$ac_delim"'/g
8359t clear
8360:clear
8361s/\\$//
8362t bsnlc
8363s/["\\]/\\&/g; s/^/"/; s/$/"/p
8364d
8365:bsnlc
8366s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8367b cont
8368' <confdefs.h | sed '
8369s/'"$ac_delim"'/"\\\
8370"/g' >>$CONFIG_STATUS || ac_write_fail=1
8371
8372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8373 for (key in D) D_is_set[key] = 1
8374 FS = ""
8375}
8376/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8377 line = \$ 0
8378 split(line, arg, " ")
8379 if (arg[1] == "#") {
8380 defundef = arg[2]
8381 mac1 = arg[3]
8382 } else {
8383 defundef = substr(arg[1], 2)
8384 mac1 = arg[2]
8385 }
8386 split(mac1, mac2, "(") #)
8387 macro = mac2[1]
8388 prefix = substr(line, 1, index(line, defundef) - 1)
8389 if (D_is_set[macro]) {
8390 # Preserve the white space surrounding the "#".
8391 print prefix "define", macro P[macro] D[macro]
8392 next
8393 } else {
8394 # Replace #undef with comments. This is necessary, for example,
8395 # in the case of _POSIX_SOURCE, which is predefined and required
8396 # on some systems where configure will not decide to define it.
8397 if (defundef == "undef") {
8398 print "/*", prefix defundef, macro, "*/"
8399 next
8400 }
8401 }
8402}
8403{ print }
8404_ACAWK
8405_ACEOF
8406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008407 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00008408fi # test -n "$CONFIG_HEADERS"
8409
8410
8411eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8412shift
8413for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008414do
8415 case $ac_tag in
8416 :[FHLC]) ac_mode=$ac_tag; continue;;
8417 esac
8418 case $ac_mode$ac_tag in
8419 :[FHL]*:*);;
Sauw Ming2f91da02012-06-07 02:24:51 +00008420 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008421 :[FH]-) ac_tag=-:-;;
8422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8423 esac
8424 ac_save_IFS=$IFS
8425 IFS=:
8426 set x $ac_tag
8427 IFS=$ac_save_IFS
8428 shift
8429 ac_file=$1
8430 shift
8431
8432 case $ac_mode in
8433 :L) ac_source=$1;;
8434 :[FH])
8435 ac_file_inputs=
8436 for ac_f
8437 do
8438 case $ac_f in
Sauw Ming2f91da02012-06-07 02:24:51 +00008439 -) ac_f="$ac_tmp/stdin";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008440 *) # Look for the file first in the build tree, then in the source tree
8441 # (if the path is not absolute). The absolute path cannot be DOS-style,
8442 # because $ac_f cannot contain `:'.
8443 test -f "$ac_f" ||
8444 case $ac_f in
8445 [\\/$]*) false;;
8446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8447 esac ||
Sauw Ming2f91da02012-06-07 02:24:51 +00008448 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008449 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00008450 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8451 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008452 done
8453
8454 # Let's still pretend it is `configure' which instantiates (i.e., don't
8455 # use $as_me), people would be surprised to read:
8456 # /* config.h. Generated by config.status. */
Benny Prijono28d3c562012-03-30 07:10:13 +00008457 configure_input='Generated from '`
8458 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8459 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008460 if test x"$ac_file" != x-; then
8461 configure_input="$ac_file. $configure_input"
Benny Prijono28d3c562012-03-30 07:10:13 +00008462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8463$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008464 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00008465 # Neutralize special characters interpreted by sed in replacement strings.
8466 case $configure_input in #(
8467 *\&* | *\|* | *\\* )
8468 ac_sed_conf_input=`$as_echo "$configure_input" |
8469 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8470 *) ac_sed_conf_input=$configure_input;;
8471 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008472
8473 case $ac_tag in
Sauw Ming2f91da02012-06-07 02:24:51 +00008474 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8475 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008476 esac
8477 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008478 esac
8479
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008480 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008481$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8482 X"$ac_file" : 'X\(//\)[^/]' \| \
8483 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008485$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8487 s//\1/
8488 q
8489 }
8490 /^X\(\/\/\)[^/].*/{
8491 s//\1/
8492 q
8493 }
8494 /^X\(\/\/\)$/{
8495 s//\1/
8496 q
8497 }
8498 /^X\(\/\).*/{
8499 s//\1/
8500 q
8501 }
8502 s/.*/./; q'`
Benny Prijono28d3c562012-03-30 07:10:13 +00008503 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008504 ac_builddir=.
8505
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008506case "$ac_dir" in
8507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8508*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008510 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00008511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008512 case $ac_top_builddir_sub in
8513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8515 esac ;;
8516esac
8517ac_abs_top_builddir=$ac_pwd
8518ac_abs_builddir=$ac_pwd$ac_dir_suffix
8519# for backward compatibility:
8520ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008521
8522case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008523 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008524 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008525 ac_top_srcdir=$ac_top_builddir_sub
8526 ac_abs_top_srcdir=$ac_pwd ;;
8527 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008528 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008529 ac_top_srcdir=$srcdir
8530 ac_abs_top_srcdir=$srcdir ;;
8531 *) # Relative name.
8532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8533 ac_top_srcdir=$ac_top_build_prefix$srcdir
8534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008535esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00008537
Benny Prijonoe2746132008-09-27 13:16:35 +00008538
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008539 case $ac_mode in
8540 :F)
8541 #
8542 # CONFIG_FILE
8543 #
Benny Prijonoe2746132008-09-27 13:16:35 +00008544
Benny Prijonoe2746132008-09-27 13:16:35 +00008545_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008546
Benny Prijono28d3c562012-03-30 07:10:13 +00008547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008548# If the template does not know about datarootdir, expand it.
8549# FIXME: This hack should be removed a few years after 2.60.
8550ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijono28d3c562012-03-30 07:10:13 +00008551ac_sed_dataroot='
8552/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008553 p
8554 q
8555}
8556/@datadir@/p
8557/@docdir@/p
8558/@infodir@/p
8559/@localedir@/p
Benny Prijono28d3c562012-03-30 07:10:13 +00008560/@mandir@/p'
8561case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008562*datarootdir*) ac_datarootdir_seen=yes;;
8563*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8565$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008566_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008568 ac_datarootdir_hack='
8569 s&@datadir@&$datadir&g
8570 s&@docdir@&$docdir&g
8571 s&@infodir@&$infodir&g
8572 s&@localedir@&$localedir&g
8573 s&@mandir@&$mandir&g
Benny Prijono28d3c562012-03-30 07:10:13 +00008574 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008575esac
8576_ACEOF
8577
8578# Neutralize VPATH when `$srcdir' = `.'.
8579# Shell code in configure.ac might set extrasub.
8580# FIXME: do we really want to maintain this feature?
Benny Prijono28d3c562012-03-30 07:10:13 +00008581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8582ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008583$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008584_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008586:t
8587/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono28d3c562012-03-30 07:10:13 +00008588s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008589s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijono28d3c562012-03-30 07:10:13 +00008590s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008591s&@srcdir@&$ac_srcdir&;t t
8592s&@abs_srcdir@&$ac_abs_srcdir&;t t
8593s&@top_srcdir@&$ac_top_srcdir&;t t
8594s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8595s&@builddir@&$ac_builddir&;t t
8596s&@abs_builddir@&$ac_abs_builddir&;t t
8597s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8598$ac_datarootdir_hack
Benny Prijono28d3c562012-03-30 07:10:13 +00008599"
Sauw Ming2f91da02012-06-07 02:24:51 +00008600eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8601 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008602
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008603test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Sauw Ming2f91da02012-06-07 02:24:51 +00008604 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8605 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8606 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Benny Prijono28d3c562012-03-30 07:10:13 +00008607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008608which seems to be undefined. Please make sure it is defined" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008609$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008610which seems to be undefined. Please make sure it is defined" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008611
Sauw Ming2f91da02012-06-07 02:24:51 +00008612 rm -f "$ac_tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008613 case $ac_file in
Sauw Ming2f91da02012-06-07 02:24:51 +00008614 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8615 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Benny Prijono28d3c562012-03-30 07:10:13 +00008616 esac \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008618 ;;
8619 :H)
8620 #
8621 # CONFIG_HEADER
8622 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008623 if test x"$ac_file" != x-; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008624 {
8625 $as_echo "/* $configure_input */" \
Sauw Ming2f91da02012-06-07 02:24:51 +00008626 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8627 } >"$ac_tmp/config.h" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Sauw Ming2f91da02012-06-07 02:24:51 +00008629 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008630 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8631$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008632 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008633 rm -f "$ac_file"
Sauw Ming2f91da02012-06-07 02:24:51 +00008634 mv "$ac_tmp/config.h" "$ac_file" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008636 fi
8637 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008638 $as_echo "/* $configure_input */" \
Sauw Ming2f91da02012-06-07 02:24:51 +00008639 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008640 || as_fn_error $? "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008641 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008642 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008643
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008644
8645 esac
8646
8647done # for ac_tag
8648
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008649
Benny Prijono28d3c562012-03-30 07:10:13 +00008650as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008651_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008652ac_clean_files=$ac_clean_files_save
8653
Benny Prijono28d3c562012-03-30 07:10:13 +00008654test $ac_write_fail = 0 ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008655 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00008656
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008657
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008658# configure is writing to config.log, and then calls config.status.
8659# config.status does its own redirection, appending to config.log.
8660# Unfortunately, on DOS this fails, as config.log is still kept open
8661# by configure, so config.status won't be able to write to it; its
8662# output is simply discarded. So we exec the FD to /dev/null,
8663# effectively closing config.log, so it can be properly (re)opened and
8664# appended to by config.status. When coming back to configure, we
8665# need to make the FD available again.
8666if test "$no_create" != yes; then
8667 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008668 ac_config_status_args=
8669 test "$silent" = yes &&
8670 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008671 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008673 exec 5>>config.log
8674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8675 # would make configure fail if this is the last instruction.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008676 $ac_cs_success || as_fn_exit 1
Benny Prijono28d3c562012-03-30 07:10:13 +00008677fi
8678if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8680$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00008681fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008682
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008683
Benny Prijonod9627842007-04-18 09:24:31 +00008684
Benny Prijono28d3c562012-03-30 07:10:13 +00008685{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00008686
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008687Configurations 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 +00008688
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008689Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008690 - 'user.mak'
8691 - 'pjlib/include/pj/config_site.h'
8692
8693The next step now is to run 'make dep' and 'make'.
8694" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008695$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00008696
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008697Configurations 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 +00008698
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008699Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008700 - 'user.mak'
8701 - 'pjlib/include/pj/config_site.h'
8702
8703The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008704" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00008705