blob: 0f582b2db8682befffb1d0d7ce70ae243401e12d [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono8a9b3b22010-01-14 14:46:54 +00003# Generated by GNU Autoconf 2.64 for pjproject 1.x.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Benny Prijonofe0c1272010-01-13 16:28:15 +00006# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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 Prijonofe0c1272010-01-13 16:28:15 +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 Prijonofe0c1272010-01-13 16:28:15 +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 Prijonod5233702010-01-13 13:09:45 +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 Prijonofe0c1272010-01-13 16:28:15 +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 Prijonod5233702010-01-13 13:09:45 +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
Benny Prijonofe0c1272010-01-13 16:28:15 +000041# 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
Benny Prijonod5233702010-01-13 13:09:45 +000048 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;
Benny Prijonofe0c1272010-01-13 16:28:15 +000058 case $arg in #(
Benny Prijonod5233702010-01-13 13:09:45 +000059 *"$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
71
Benny Prijono7e0d75f2006-12-25 20:34:14 +000072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonod5233702010-01-13 13:09:45 +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.
Benny Prijonofe0c1272010-01-13 16:28:15 +000090case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000091 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000093for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +000097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000099IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000100
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
Benny Prijonod5233702010-01-13 13:09:45 +0000109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Benny Prijonofe0c1272010-01-13 16:28:15 +0000110 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000111fi
112
Benny Prijonofe0c1272010-01-13 16:28:15 +0000113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
Benny Prijonod5233702010-01-13 13:09:45 +0000126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000130
Benny Prijonofe0c1272010-01-13 16:28:15 +0000131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
Benny Prijonofe0c1272010-01-13 16:28:15 +0000386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000391
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod5233702010-01-13 13:09:45 +0000396$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
Benny Prijonofe0c1272010-01-13 16:28:15 +0000411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000417
418
Benny Prijonofe0c1272010-01-13 16:28:15 +0000419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000428 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000433 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000436 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000437 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000438 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000439 chmod +x "$as_me.lineno" ||
Benny Prijonofe0c1272010-01-13 16:28:15 +0000440 { $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 +0000441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000446 # Exit status is that of the last command.
447 exit
448}
449
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000450ECHO_C= ECHO_N= ECHO_T=
Benny Prijonofe0c1272010-01-13 16:28:15 +0000451case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000452-n*)
Benny Prijonofe0c1272010-01-13 16:28:15 +0000453 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonofe0c1272010-01-13 16:28:15 +0000455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000458 esac;;
459*)
460 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000461esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000462
463rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
Benny Prijonod5233702010-01-13 13:09:45 +0000468 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000469fi
Benny Prijonod5233702010-01-13 13:09:45 +0000470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000482 as_ln_s='cp -p'
Benny Prijonod5233702010-01-13 13:09:45 +0000483 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000484else
485 as_ln_s='cp -p'
486fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000489
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000490if mkdir -p . 2>/dev/null; then
Benny Prijonofe0c1272010-01-13 16:28:15 +0000491 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +0000492else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000495fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000496
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
Benny Prijonod5233702010-01-13 13:09:45 +0000508 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000509 else
Benny Prijonofe0c1272010-01-13 16:28:15 +0000510 case $1 in #(
Benny Prijonod5233702010-01-13 13:09:45 +0000511 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000512 esac;
Benny Prijonofe0c1272010-01-13 16:28:15 +0000513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000526
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000527exec 7<&0 </dev/null 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000538ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000539ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000540LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000541cross_compiling=no
542subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000543MFLAGS=
544MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000545
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000546# Identity of this package.
547PACKAGE_NAME='pjproject'
548PACKAGE_TARNAME='pjproject'
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000549PACKAGE_VERSION='1.x'
550PACKAGE_STRING='pjproject 1.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000551PACKAGE_BUGREPORT=''
Benny Prijonofe0c1272010-01-13 16:28:15 +0000552PACKAGE_URL=''
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000553
554# Factoring default headers for most tests.
555ac_includes_default="\
556#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000557#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000558# include <sys/types.h>
559#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000560#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000561# include <sys/stat.h>
562#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000563#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564# include <stdlib.h>
565# include <stddef.h>
566#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000567# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000568# include <stdlib.h>
569# endif
570#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000571#ifdef HAVE_STRING_H
572# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000573# include <memory.h>
574# endif
575# include <string.h>
576#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000577#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000578# include <strings.h>
579#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000580#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000581# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000582#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000583#ifdef HAVE_STDINT_H
584# include <stdint.h>
585#endif
586#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000587# include <unistd.h>
588#endif"
589
Benny Prijonofe0c1272010-01-13 16:28:15 +0000590ac_subst_vars='LTLIBOBJS
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000591LIBOBJS
Benny Prijonofe0c1272010-01-13 16:28:15 +0000592ac_main_obj
593ac_host
594ac_linux_poll
595ac_cross_compile
596libcrypto_present
597libssl_present
598openssl_h_present
599ac_no_ssl
600ac_no_ilbc_codec
601ac_no_speex_codec
602ac_no_g7221_codec
603ac_no_g722_codec
604ac_no_gsm_codec
605ac_no_l16_codec
606ac_no_g711_codec
607ac_no_speex_aec
608ac_no_large_filter
609ac_no_small_filter
610ac_pa_use_oss
611ac_pa_use_alsa
612ac_pa_cflags
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000613ac_external_pa
Benny Prijonofe0c1272010-01-13 16:28:15 +0000614ac_pjmedia_snd
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000615ac_external_gsm
616ac_external_speex
Benny Prijonofe0c1272010-01-13 16:28:15 +0000617ac_os_objs
618EGREP
619GREP
620CPP
621ac_build_mak_vars
622ac_pjdir
623ac_ct_CXX
624CXXFLAGS
625CXX
626OBJEXT
627EXEEXT
628ac_ct_CC
629CPPFLAGS
630LDFLAGS
631CFLAGS
632CC
633target_os
634target_vendor
635target_cpu
636target
637host_os
638host_vendor
639host_cpu
640host
641build_os
642build_vendor
643build_cpu
644build
645target_alias
646host_alias
647build_alias
648LIBS
649ECHO_T
650ECHO_N
651ECHO_C
652DEFS
653mandir
654localedir
655libdir
656psdir
657pdfdir
658dvidir
659htmldir
660infodir
661docdir
662oldincludedir
663includedir
664localstatedir
665sharedstatedir
666sysconfdir
667datadir
668datarootdir
669libexecdir
670sbindir
671bindir
672program_transform_name
673prefix
674exec_prefix
675PACKAGE_URL
676PACKAGE_BUGREPORT
677PACKAGE_STRING
678PACKAGE_VERSION
679PACKAGE_TARNAME
680PACKAGE_NAME
681PATH_SEPARATOR
682SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000683ac_subst_files=''
Benny Prijonod5233702010-01-13 13:09:45 +0000684ac_user_opts='
685enable_option_checking
686enable_floating_point
687enable_epoll
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000688with_external_speex
689with_external_gsm
Benny Prijonod5233702010-01-13 13:09:45 +0000690enable_sound
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000691with_external_pa
Benny Prijonod5233702010-01-13 13:09:45 +0000692enable_oss
693enable_ext_sound
694enable_small_filter
695enable_large_filter
696enable_speex_aec
697enable_g711_codec
698enable_l16_codec
699enable_gsm_codec
700enable_g722_codec
701enable_g7221_codec
702enable_speex_codec
703enable_ilbc_codec
704enable_libsamplerate
705enable_ipp
706enable_ipp_samples
707enable_ssl
708'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000709 ac_precious_vars='build_alias
710host_alias
711target_alias
712CC
713CFLAGS
714LDFLAGS
715LIBS
716CPPFLAGS
717CXX
718CXXFLAGS
719CCC
720CPP'
721
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000722
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000723# Initialize some variables set by options.
724ac_init_help=
725ac_init_version=false
Benny Prijonod5233702010-01-13 13:09:45 +0000726ac_unrecognized_opts=
727ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000728# The variables have the same names as the options, with
729# dashes changed to underlines.
730cache_file=/dev/null
731exec_prefix=NONE
732no_create=
733no_recursion=
734prefix=NONE
735program_prefix=NONE
736program_suffix=NONE
737program_transform_name=s,x,x,
738silent=
739site=
740srcdir=
741verbose=
742x_includes=NONE
743x_libraries=NONE
744
745# Installation directory options.
746# These are left unexpanded so users can "make install exec_prefix=/foo"
747# and all the variables that are supposed to be based on exec_prefix
748# by default will actually change.
749# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000750# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000751bindir='${exec_prefix}/bin'
752sbindir='${exec_prefix}/sbin'
753libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000754datarootdir='${prefix}/share'
755datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000756sysconfdir='${prefix}/etc'
757sharedstatedir='${prefix}/com'
758localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000759includedir='${prefix}/include'
760oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000761docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762infodir='${datarootdir}/info'
763htmldir='${docdir}'
764dvidir='${docdir}'
765pdfdir='${docdir}'
766psdir='${docdir}'
767libdir='${exec_prefix}/lib'
768localedir='${datarootdir}/locale'
769mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000770
771ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000772ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000773for ac_option
774do
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000777 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000778 ac_prev=
779 continue
780 fi
781
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000782 case $ac_option in
783 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 *) ac_optarg=yes ;;
785 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000786
787 # Accept the important Cygnus configure options, so we can diagnose typos.
788
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000789 case $ac_dashdash$ac_option in
790 --)
791 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000792
793 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 ac_prev=bindir ;;
795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796 bindir=$ac_optarg ;;
797
798 -build | --build | --buil | --bui | --bu)
799 ac_prev=build_alias ;;
800 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801 build_alias=$ac_optarg ;;
802
803 -cache-file | --cache-file | --cache-fil | --cache-fi \
804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 ac_prev=cache_file ;;
806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808 cache_file=$ac_optarg ;;
809
810 --config-cache | -C)
811 cache_file=config.cache ;;
812
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000813 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000814 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000816 datadir=$ac_optarg ;;
817
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 | --dataroo | --dataro | --datar)
820 ac_prev=datarootdir ;;
821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 datarootdir=$ac_optarg ;;
824
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000825 -disable-* | --disable-*)
Benny Prijonod5233702010-01-13 13:09:45 +0000826 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000827 # Reject names that are not valid shell variable names.
Benny Prijonod5233702010-01-13 13:09:45 +0000828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Benny Prijonofe0c1272010-01-13 16:28:15 +0000829 as_fn_error "invalid feature name: $ac_useropt"
Benny Prijonod5233702010-01-13 13:09:45 +0000830 ac_useropt_orig=$ac_useropt
831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
833 *"
834"enable_$ac_useropt"
835"*) ;;
836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep=', ';;
838 esac
839 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000840
841 -docdir | --docdir | --docdi | --doc | --do)
842 ac_prev=docdir ;;
843 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 docdir=$ac_optarg ;;
845
846 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 ac_prev=dvidir ;;
848 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000850
851 -enable-* | --enable-*)
Benny Prijonod5233702010-01-13 13:09:45 +0000852 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000853 # Reject names that are not valid shell variable names.
Benny Prijonod5233702010-01-13 13:09:45 +0000854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Benny Prijonofe0c1272010-01-13 16:28:15 +0000855 as_fn_error "invalid feature name: $ac_useropt"
Benny Prijonod5233702010-01-13 13:09:45 +0000856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
859 *"
860"enable_$ac_useropt"
861"*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
864 esac
865 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000866
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 | --exec | --exe | --ex)
870 ac_prev=exec_prefix ;;
871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 | --exec=* | --exe=* | --ex=*)
874 exec_prefix=$ac_optarg ;;
875
876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas.
878 with_gas=yes ;;
879
880 -help | --help | --hel | --he | -h)
881 ac_init_help=long ;;
882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 ac_init_help=recursive ;;
884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 ac_init_help=short ;;
886
887 -host | --host | --hos | --ho)
888 ac_prev=host_alias ;;
889 -host=* | --host=* | --hos=* | --ho=*)
890 host_alias=$ac_optarg ;;
891
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 ac_prev=htmldir ;;
894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 | --ht=*)
896 htmldir=$ac_optarg ;;
897
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000898 -includedir | --includedir | --includedi | --included | --include \
899 | --includ | --inclu | --incl | --inc)
900 ac_prev=includedir ;;
901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 | --includ=* | --inclu=* | --incl=* | --inc=*)
903 includedir=$ac_optarg ;;
904
905 -infodir | --infodir | --infodi | --infod | --info | --inf)
906 ac_prev=infodir ;;
907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908 infodir=$ac_optarg ;;
909
910 -libdir | --libdir | --libdi | --libd)
911 ac_prev=libdir ;;
912 -libdir=* | --libdir=* | --libdi=* | --libd=*)
913 libdir=$ac_optarg ;;
914
915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 | --libexe | --libex | --libe)
917 ac_prev=libexecdir ;;
918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 | --libexe=* | --libex=* | --libe=*)
920 libexecdir=$ac_optarg ;;
921
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000922 -localedir | --localedir | --localedi | --localed | --locale)
923 ac_prev=localedir ;;
924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 localedir=$ac_optarg ;;
926
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000927 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000928 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000929 ac_prev=localstatedir ;;
930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000932 localstatedir=$ac_optarg ;;
933
934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 ac_prev=mandir ;;
936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 mandir=$ac_optarg ;;
938
939 -nfp | --nfp | --nf)
940 # Obsolete; use --without-fp.
941 with_fp=no ;;
942
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000944 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000945 no_create=yes ;;
946
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 no_recursion=yes ;;
950
951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 | --oldin | --oldi | --old | --ol | --o)
954 ac_prev=oldincludedir ;;
955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958 oldincludedir=$ac_optarg ;;
959
960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 ac_prev=prefix ;;
962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963 prefix=$ac_optarg ;;
964
965 -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 | --program-pre | --program-pr | --program-p)
967 ac_prev=program_prefix ;;
968 -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970 program_prefix=$ac_optarg ;;
971
972 -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 | --program-suf | --program-su | --program-s)
974 ac_prev=program_suffix ;;
975 -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977 program_suffix=$ac_optarg ;;
978
979 -program-transform-name | --program-transform-name \
980 | --program-transform-nam | --program-transform-na \
981 | --program-transform-n | --program-transform- \
982 | --program-transform | --program-transfor \
983 | --program-transfo | --program-transf \
984 | --program-trans | --program-tran \
985 | --progr-tra | --program-tr | --program-t)
986 ac_prev=program_transform_name ;;
987 -program-transform-name=* | --program-transform-name=* \
988 | --program-transform-nam=* | --program-transform-na=* \
989 | --program-transform-n=* | --program-transform-=* \
990 | --program-transform=* | --program-transfor=* \
991 | --program-transfo=* | --program-transf=* \
992 | --program-trans=* | --program-tran=* \
993 | --progr-tra=* | --program-tr=* | --program-t=*)
994 program_transform_name=$ac_optarg ;;
995
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 ac_prev=pdfdir ;;
998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 pdfdir=$ac_optarg ;;
1000
1001 -psdir | --psdir | --psdi | --psd | --ps)
1002 ac_prev=psdir ;;
1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 psdir=$ac_optarg ;;
1005
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1008 silent=yes ;;
1009
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*)
1014 sbindir=$ac_optarg ;;
1015
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*)
1025 sharedstatedir=$ac_optarg ;;
1026
1027 -site | --site | --sit)
1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*)
1030 site=$ac_optarg ;;
1031
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1036
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1043
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1048
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;;
1051
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1054
1055 -with-* | --with-*)
Benny Prijonod5233702010-01-13 13:09:45 +00001056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001057 # Reject names that are not valid shell variable names.
Benny Prijonod5233702010-01-13 13:09:45 +00001058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Benny Prijonofe0c1272010-01-13 16:28:15 +00001059 as_fn_error "invalid package name: $ac_useropt"
Benny Prijonod5233702010-01-13 13:09:45 +00001060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064"with_$ac_useropt"
1065"*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001070
1071 -without-* | --without-*)
Benny Prijonod5233702010-01-13 13:09:45 +00001072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001073 # Reject names that are not valid shell variable names.
Benny Prijonod5233702010-01-13 13:09:45 +00001074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Benny Prijonofe0c1272010-01-13 16:28:15 +00001075 as_fn_error "invalid package name: $ac_useropt"
Benny Prijonod5233702010-01-13 13:09:45 +00001076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080"with_$ac_useropt"
1081"*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001086
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1090
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1097
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1104
Benny Prijonofe0c1272010-01-13 16:28:15 +00001105 -*) as_fn_error "unrecognized option: \`$ac_option'
1106Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001107 ;;
1108
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
Benny Prijonofe0c1272010-01-13 16:28:15 +00001112 case $ac_envvar in #(
1113 '' | [0-9]* | *[!_$as_cr_alnum]* )
1114 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1115 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001116 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001117 export $ac_envvar ;;
1118
1119 *)
1120 # FIXME: should be removed in autoconf 3.0.
Benny Prijonod5233702010-01-13 13:09:45 +00001121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonod5233702010-01-13 13:09:45 +00001123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 ;;
1126
1127 esac
1128done
1129
1130if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijonofe0c1272010-01-13 16:28:15 +00001132 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001133fi
1134
Benny Prijonod5233702010-01-13 13:09:45 +00001135if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1137 no) ;;
Benny Prijonofe0c1272010-01-13 16:28:15 +00001138 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Benny Prijonod5233702010-01-13 13:09:45 +00001140 esac
1141fi
1142
1143# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001144for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001148do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001149 eval ac_val=\$$ac_var
Benny Prijonod5233702010-01-13 13:09:45 +00001150 # Remove trailing slashes.
1151 case $ac_val in
1152 */ )
1153 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\$ac_val;;
1155 esac
1156 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001157 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001158 [\\/$]* | ?:[\\/]* ) continue;;
1159 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001160 esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00001161 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001162done
1163
1164# There might be people who depend on the old broken behavior: `$host'
1165# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001166# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001167build=$build_alias
1168host=$host_alias
1169target=$target_alias
1170
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001171# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001172if test "x$host_alias" != x; then
1173 if test "x$build_alias" = x; then
1174 cross_compiling=maybe
Benny Prijonod5233702010-01-13 13:09:45 +00001175 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001176 If a cross compiler is detected then cross compile mode will be used." >&2
1177 elif test "x$build_alias" != "x$host_alias"; then
1178 cross_compiling=yes
1179 fi
1180fi
1181
1182ac_tool_prefix=
1183test -n "$host_alias" && ac_tool_prefix=$host_alias-
1184
1185test "$silent" = yes && exec 6>/dev/null
1186
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001187
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001188ac_pwd=`pwd` && test -n "$ac_pwd" &&
1189ac_ls_di=`ls -di .` &&
1190ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00001191 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001192test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00001193 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001194
1195
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001196# Find the source files, if location was not specified.
1197if test -z "$srcdir"; then
1198 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001199 # Try the directory containing this script, then the parent directory.
Benny Prijonod5233702010-01-13 13:09:45 +00001200 ac_confdir=`$as_dirname -- "$as_myself" ||
1201$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$as_myself" : 'X\(//\)[^/]' \| \
1203 X"$as_myself" : 'X\(//\)$' \| \
1204 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1205$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 s//\1/
1208 q
1209 }
1210 /^X\(\/\/\)[^/].*/{
1211 s//\1/
1212 q
1213 }
1214 /^X\(\/\/\)$/{
1215 s//\1/
1216 q
1217 }
1218 /^X\(\/\).*/{
1219 s//\1/
1220 q
1221 }
1222 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001223 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001224 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001225 srcdir=..
1226 fi
1227else
1228 ac_srcdir_defaulted=no
1229fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001230if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijonofe0c1272010-01-13 16:28:15 +00001232 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001233fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001234ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1235ac_abs_confdir=`(
Benny Prijonofe0c1272010-01-13 16:28:15 +00001236 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001237 pwd)`
1238# When building in place, set srcdir=.
1239if test "$ac_abs_confdir" = "$ac_pwd"; then
1240 srcdir=.
1241fi
1242# Remove unnecessary trailing slashes from srcdir.
1243# Double slashes in file names in object file debugging info
1244# mess up M-x gdb in Emacs.
1245case $srcdir in
1246*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1247esac
1248for ac_var in $ac_precious_vars; do
1249 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_env_${ac_var}_value=\$${ac_var}
1251 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1253done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001254
1255#
1256# Report the --help message.
1257#
1258if test "$ac_init_help" = "long"; then
1259 # Omit some internal or obsolete options to make the list less imposing.
1260 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001261 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001262\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001263
1264Usage: $0 [OPTION]... [VAR=VALUE]...
1265
1266To assign environment variables (e.g., CC, CFLAGS...), specify them as
1267VAR=VALUE. See below for descriptions of some of the useful variables.
1268
1269Defaults for the options are specified in brackets.
1270
1271Configuration:
1272 -h, --help display this help and exit
1273 --help=short display options specific to this package
1274 --help=recursive display the short help of all the included packages
1275 -V, --version display version information and exit
1276 -q, --quiet, --silent do not print \`checking...' messages
1277 --cache-file=FILE cache test results in FILE [disabled]
1278 -C, --config-cache alias for \`--cache-file=config.cache'
1279 -n, --no-create do not create output files
1280 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1281
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001282Installation directories:
1283 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijonod5233702010-01-13 13:09:45 +00001284 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijonod5233702010-01-13 13:09:45 +00001286 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001287
1288By default, \`make install' will install all the files in
1289\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1290an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1291for instance \`--prefix=\$HOME'.
1292
1293For better control, use the options below.
1294
1295Fine tuning of the installation directories:
Benny Prijonod5233702010-01-13 13:09:45 +00001296 --bindir=DIR user executables [EPREFIX/bin]
1297 --sbindir=DIR system admin executables [EPREFIX/sbin]
1298 --libexecdir=DIR program executables [EPREFIX/libexec]
1299 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1300 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1301 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1302 --libdir=DIR object code libraries [EPREFIX/lib]
1303 --includedir=DIR C header files [PREFIX/include]
1304 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1305 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1306 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1307 --infodir=DIR info documentation [DATAROOTDIR/info]
1308 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1309 --mandir=DIR man documentation [DATAROOTDIR/man]
1310 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1311 --htmldir=DIR html documentation [DOCDIR]
1312 --dvidir=DIR dvi documentation [DOCDIR]
1313 --pdfdir=DIR pdf documentation [DOCDIR]
1314 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001315_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001316
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001317 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001318
1319System types:
1320 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001321 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001322 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001323_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001324fi
1325
1326if test -n "$ac_init_help"; then
1327 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001328 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001329 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001330 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001331
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001332Optional Features:
Benny Prijonod5233702010-01-13 13:09:45 +00001333 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001334 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1335 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1336 --disable-floating-point
1337 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001338 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001339 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001340 --disable-oss Disable OSS audio (default: not disabled)
1341
Benny Prijonoebb2c332008-07-28 23:40:58 +00001342 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001343 --disable-small-filter Exclude small filter in resampling
1344 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001345 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1346 --disable-g711-codec Exclude G.711 codecs from the build
1347 --disable-l16-codec Exclude Linear/L16 codec family from the build
1348 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001349 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001350 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001351 --disable-speex-codec Exclude Speex codecs in the build
1352 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001353 --enable-libsamplerate Link with libsamplerate when available. Note that
1354 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono0822c192008-08-21 20:59:58 +00001355 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1356 package and samples location using IPPROOT and
1357 IPPSAMPLES env var or with --with-ipp and
1358 --with-ipp-samples options
1359 --with-ipp=DIR Specify the Intel IPP location
1360 --with-ipp-samples=DIR Specify the Intel IPP samples location
Benny Prijonoce1db762007-02-14 02:21:08 +00001361 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001362
1363
Benny Prijonofe0c1272010-01-13 16:28:15 +00001364Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001367 --with-external-speex Use external Speex development files, not the one in
1368 "third_party" directory. When this option is set,
1369 make sure that Speex is accessible to use (hint: use
1370 CFLAGS and LDFLAGS env var to set the include/lib
1371 paths)
1372 --with-external-gsm Use external GSM codec library, not the one in
1373 "third_party" directory. When this option is set,
1374 make sure that the GSM include/lib files are
1375 accessible to use (hint: use CFLAGS and LDFLAGS env
1376 var to set the include/lib paths)
1377 --with-external-pa Use external PortAudio development files, not the
1378 one in "third_party" directory. When this option is
1379 set, make sure that PortAudio is accessible to use
1380 (hint: use CFLAGS and LDFLAGS env var to set the
1381 include/lib paths)
Benny Prijonofe0c1272010-01-13 16:28:15 +00001382
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001383Some influential environment variables:
1384 CC C compiler command
1385 CFLAGS C compiler flags
1386 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1387 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001388 LIBS libraries to pass to the linker, e.g. -l<library>
1389 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1390 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001391 CXX C++ compiler command
1392 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001393 CPP C preprocessor
1394
1395Use these variables to override the choices made by `configure' or to help
1396it to find libraries and programs with nonstandard names/locations.
1397
Benny Prijonofe0c1272010-01-13 16:28:15 +00001398Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001399_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001400ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001401fi
1402
1403if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijonod5233702010-01-13 13:09:45 +00001406 test -d "$ac_dir" ||
1407 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001409 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001410
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001411case "$ac_dir" in
1412.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413*)
Benny Prijonod5233702010-01-13 13:09:45 +00001414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001415 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonod5233702010-01-13 13:09:45 +00001416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421esac
1422ac_abs_top_builddir=$ac_pwd
1423ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424# for backward compatibility:
1425ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001426
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001427case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001428 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001429 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001433 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001440esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001441ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001442
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001451 else
Benny Prijonod5233702010-01-13 13:09:45 +00001452 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001455 done
1456fi
1457
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001458test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001459if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001460 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001461pjproject configure 1.x
Benny Prijonofe0c1272010-01-13 16:28:15 +00001462generated by GNU Autoconf 2.64
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001463
Benny Prijonofe0c1272010-01-13 16:28:15 +00001464Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001465This configure script is free software; the Free Software Foundation
1466gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001467_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001468 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001469fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00001470
1471## ------------------------ ##
1472## Autoconf initialization. ##
1473## ------------------------ ##
1474
1475# ac_fn_c_try_compile LINENO
1476# --------------------------
1477# Try to compile conftest.$ac_ext, and return whether this succeeded.
1478ac_fn_c_try_compile ()
1479{
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 rm -f conftest.$ac_objext
1482 if { { ac_try="$ac_compile"
1483case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486esac
1487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488$as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_compile") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1495 fi
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && {
1498 test -z "$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 } && test -s conftest.$ac_objext; then :
1501 ac_retval=0
1502else
1503 $as_echo "$as_me: failed program was:" >&5
1504sed 's/^/| /' conftest.$ac_ext >&5
1505
1506 ac_retval=1
1507fi
1508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1509 return $ac_retval
1510
1511} # ac_fn_c_try_compile
1512
1513# ac_fn_cxx_try_compile LINENO
1514# ----------------------------
1515# Try to compile conftest.$ac_ext, and return whether this succeeded.
1516ac_fn_cxx_try_compile ()
1517{
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext
1520 if { { ac_try="$ac_compile"
1521case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524esac
1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526$as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1533 fi
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_cxx_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.$ac_objext; then :
1539 ac_retval=0
1540else
1541 $as_echo "$as_me: failed program was:" >&5
1542sed 's/^/| /' conftest.$ac_ext >&5
1543
1544 ac_retval=1
1545fi
1546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1547 return $ac_retval
1548
1549} # ac_fn_cxx_try_compile
1550
1551# ac_fn_c_try_link LINENO
1552# -----------------------
1553# Try to link conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_link ()
1555{
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext conftest$ac_exeext
1558 if { { ac_try="$ac_link"
1559case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_link") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest$ac_exeext && {
1577 test "$cross_compiling" = yes ||
1578 $as_test_x conftest$ac_exeext
1579 }; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586fi
1587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1589 # interfere with the next link command; also delete a directory that is
1590 # left behind by Apple's compiler. We do this before executing the actions.
1591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1594
1595} # ac_fn_c_try_link
1596
1597# ac_fn_c_try_run LINENO
1598# ----------------------
1599# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1600# that executables *can* be run.
1601ac_fn_c_try_run ()
1602{
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_link"
1605case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>&5
1612 ac_status=$?
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1615 { { case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_try") 2>&5
1622 ac_status=$?
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; }; }; then :
1625 ac_retval=0
1626else
1627 $as_echo "$as_me: program exited with status $ac_status" >&5
1628 $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=$ac_status
1632fi
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 return $ac_retval
1636
1637} # ac_fn_c_try_run
1638
1639# ac_fn_c_try_cpp LINENO
1640# ----------------------
1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_cpp ()
1643{
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } >/dev/null && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670fi
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 return $ac_retval
1673
1674} # ac_fn_c_try_cpp
1675
1676# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677# -------------------------------------------------------
1678# Tests whether HEADER exists and can be compiled using the include files in
1679# INCLUDES, setting the cache variable VAR accordingly.
1680ac_fn_c_check_header_compile ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
1685if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1686 $as_echo_n "(cached) " >&6
1687else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694 eval "$3=yes"
1695else
1696 eval "$3=no"
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699fi
1700eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704
1705} # ac_fn_c_check_header_compile
1706
1707# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1708# -------------------------------------------------------
1709# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1710# the include files in INCLUDES and setting the cache variable VAR
1711# accordingly.
1712ac_fn_c_check_header_mongrel ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717$as_echo_n "checking for $2... " >&6; }
1718if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1719 $as_echo_n "(cached) " >&6
1720fi
1721eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723$as_echo "$ac_res" >&6; }
1724else
1725 # Is the header compilable?
1726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1727$as_echo_n "checking $2 usability... " >&6; }
1728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h. */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_header_compiler=yes
1735else
1736 ac_header_compiler=no
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1740$as_echo "$ac_header_compiler" >&6; }
1741
1742# Is the header present?
1743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1744$as_echo_n "checking $2 presence... " >&6; }
1745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h. */
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_cpp "$LINENO"; then :
1750 ac_header_preproc=yes
1751else
1752 ac_header_preproc=no
1753fi
1754rm -f conftest.err conftest.$ac_ext
1755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1756$as_echo "$ac_header_preproc" >&6; }
1757
1758# So? What about this header?
1759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1760 yes:no: )
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1762$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765 ;;
1766 no:yes:* )
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1768$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1770$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1772$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1774$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 ;;
1778esac
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1783else
1784 eval "$3=\$ac_header_compiler"
1785fi
1786eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789fi
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791
1792} # ac_fn_c_check_header_mongrel
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001793cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001794This file contains any messages produced by compilers while
1795running configure, to aid debugging if configure makes a mistake.
1796
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001797It was created by pjproject $as_me 1.x, which was
Benny Prijonofe0c1272010-01-13 16:28:15 +00001798generated by GNU Autoconf 2.64. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001799
1800 $ $0 $@
1801
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001802_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001803exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001804{
1805cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001806## --------- ##
1807## Platform. ##
1808## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001809
1810hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1811uname -m = `(uname -m) 2>/dev/null || echo unknown`
1812uname -r = `(uname -r) 2>/dev/null || echo unknown`
1813uname -s = `(uname -s) 2>/dev/null || echo unknown`
1814uname -v = `(uname -v) 2>/dev/null || echo unknown`
1815
1816/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1817/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1818
1819/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1820/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1821/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001822/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001823/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1824/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1825/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1826
1827_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001828
1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830for as_dir in $PATH
1831do
1832 IFS=$as_save_IFS
1833 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00001834 $as_echo "PATH: $as_dir"
1835 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001836IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001837
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001838} >&5
1839
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001840cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001841
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001842
1843## ----------- ##
1844## Core tests. ##
1845## ----------- ##
1846
1847_ACEOF
1848
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001849
1850# Keep a trace of the command line.
1851# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001852# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001853# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001854# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001855ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001856ac_configure_args0=
1857ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001858ac_must_keep_next=false
1859for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001860do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001861 for ac_arg
1862 do
1863 case $ac_arg in
1864 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1866 | -silent | --silent | --silen | --sile | --sil)
1867 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001868 *\'*)
Benny Prijonod5233702010-01-13 13:09:45 +00001869 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001870 esac
1871 case $ac_pass in
Benny Prijonofe0c1272010-01-13 16:28:15 +00001872 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001873 2)
Benny Prijonofe0c1272010-01-13 16:28:15 +00001874 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001875 if test $ac_must_keep_next = true; then
1876 ac_must_keep_next=false # Got value, back to normal.
1877 else
1878 case $ac_arg in
1879 *=* | --config-cache | -C | -disable-* | --disable-* \
1880 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1881 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1882 | -with-* | --with-* | -without-* | --without-* | --x)
1883 case "$ac_configure_args0 " in
1884 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1885 esac
1886 ;;
1887 -* ) ac_must_keep_next=true ;;
1888 esac
1889 fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00001890 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001891 ;;
1892 esac
1893 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001894done
Benny Prijonofe0c1272010-01-13 16:28:15 +00001895{ ac_configure_args0=; unset ac_configure_args0;}
1896{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001897
1898# When interrupted or exit'd, cleanup temporary files, and complete
1899# config.log. We remove comments because anyway the quotes in there
1900# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001901# WARNING: Use '\'' to represent an apostrophe within the trap.
1902# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001903trap 'exit_status=$?
1904 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001905 {
1906 echo
1907
1908 cat <<\_ASBOX
1909## ---------------- ##
1910## Cache variables. ##
1911## ---------------- ##
1912_ASBOX
1913 echo
1914 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001915(
1916 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in #(
1919 *${as_nl}*)
1920 case $ac_var in #(
Benny Prijonofe0c1272010-01-13 16:28:15 +00001921 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1922$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001923 esac
1924 case $ac_var in #(
1925 _ | IFS | as_nl) ;; #(
Benny Prijonod5233702010-01-13 13:09:45 +00001926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Benny Prijonofe0c1272010-01-13 16:28:15 +00001927 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001928 esac ;;
1929 esac
1930 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001931 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001932 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1933 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001934 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001935 "s/'\''/'\''\\\\'\'''\''/g;
1936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1937 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00001938 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00001940 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001941 esac |
1942 sort
1943)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001944 echo
1945
1946 cat <<\_ASBOX
1947## ----------------- ##
1948## Output variables. ##
1949## ----------------- ##
1950_ASBOX
1951 echo
1952 for ac_var in $ac_subst_vars
1953 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001954 eval ac_val=\$$ac_var
1955 case $ac_val in
Benny Prijonod5233702010-01-13 13:09:45 +00001956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001957 esac
Benny Prijonod5233702010-01-13 13:09:45 +00001958 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001959 done | sort
1960 echo
1961
1962 if test -n "$ac_subst_files"; then
1963 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001964## ------------------- ##
1965## File substitutions. ##
1966## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001967_ASBOX
1968 echo
1969 for ac_var in $ac_subst_files
1970 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001971 eval ac_val=\$$ac_var
1972 case $ac_val in
Benny Prijonod5233702010-01-13 13:09:45 +00001973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001974 esac
Benny Prijonod5233702010-01-13 13:09:45 +00001975 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976 done | sort
1977 echo
1978 fi
1979
1980 if test -s confdefs.h; then
1981 cat <<\_ASBOX
1982## ----------- ##
1983## confdefs.h. ##
1984## ----------- ##
1985_ASBOX
1986 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001987 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001988 echo
1989 fi
1990 test "$ac_signal" != 0 &&
Benny Prijonod5233702010-01-13 13:09:45 +00001991 $as_echo "$as_me: caught signal $ac_signal"
1992 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001993 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001994 rm -f core *.core core.conftest.* &&
1995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001996 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001997' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001998for ac_signal in 1 2 13 15; do
Benny Prijonofe0c1272010-01-13 16:28:15 +00001999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002000done
2001ac_signal=0
2002
2003# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002004rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002005
Benny Prijonofe0c1272010-01-13 16:28:15 +00002006$as_echo "/* confdefs.h */" > confdefs.h
2007
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002008# Predefined preprocessor variables.
2009
2010cat >>confdefs.h <<_ACEOF
2011#define PACKAGE_NAME "$PACKAGE_NAME"
2012_ACEOF
2013
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2016_ACEOF
2017
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_VERSION "$PACKAGE_VERSION"
2020_ACEOF
2021
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_STRING "$PACKAGE_STRING"
2024_ACEOF
2025
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2028_ACEOF
2029
Benny Prijonofe0c1272010-01-13 16:28:15 +00002030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_URL "$PACKAGE_URL"
2032_ACEOF
2033
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002034
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002035# Let the site file select an alternate cache file if it wants to.
Benny Prijonod5233702010-01-13 13:09:45 +00002036# Prefer an explicitly selected file to automatically selected ones.
2037ac_site_file1=NONE
2038ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002039if test -n "$CONFIG_SITE"; then
Benny Prijonod5233702010-01-13 13:09:45 +00002040 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002041elif test "x$prefix" != xNONE; then
Benny Prijonod5233702010-01-13 13:09:45 +00002042 ac_site_file1=$prefix/share/config.site
2043 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002044else
Benny Prijonod5233702010-01-13 13:09:45 +00002045 ac_site_file1=$ac_default_prefix/share/config.site
2046 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002047fi
Benny Prijonod5233702010-01-13 13:09:45 +00002048for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002049do
Benny Prijonod5233702010-01-13 13:09:45 +00002050 test "x$ac_site_file" = xNONE && continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002051 if test -r "$ac_site_file"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002052 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002053$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002054 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002055 . "$ac_site_file"
2056 fi
2057done
2058
2059if test -r "$cache_file"; then
2060 # Some versions of bash will fail to source /dev/null (special
2061 # files actually), so we avoid doing that.
2062 if test -f "$cache_file"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002063 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002064$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002065 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002066 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2067 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002068 esac
2069 fi
2070else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002072$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002073 >$cache_file
2074fi
2075
2076# Check that the precious variables saved in the cache have kept the same
2077# value.
2078ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002079for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002080 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2081 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002082 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2083 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002084 case $ac_old_set,$ac_new_set in
2085 set,)
Benny Prijonofe0c1272010-01-13 16:28:15 +00002086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002087$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 +00002088 ac_cache_corrupted=: ;;
2089 ,set)
Benny Prijonofe0c1272010-01-13 16:28:15 +00002090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002091$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002092 ac_cache_corrupted=: ;;
2093 ,);;
2094 *)
2095 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijonod5233702010-01-13 13:09:45 +00002096 # differences in whitespace do not lead to failure.
2097 ac_old_val_w=`echo x $ac_old_val`
2098 ac_new_val_w=`echo x $ac_new_val`
2099 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002101$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2102 ac_cache_corrupted=:
2103 else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002104 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002105$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2106 eval $ac_var=\$ac_old_val
2107 fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002108 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002109$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Benny Prijonofe0c1272010-01-13 16:28:15 +00002110 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002111$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002112 fi;;
2113 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002114 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002115 if test "$ac_new_set" = set; then
2116 case $ac_new_val in
Benny Prijonod5233702010-01-13 13:09:45 +00002117 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002118 *) ac_arg=$ac_var=$ac_new_val ;;
2119 esac
2120 case " $ac_configure_args " in
2121 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002122 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002123 esac
2124 fi
2125done
2126if $ac_cache_corrupted; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002130$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijonofe0c1272010-01-13 16:28:15 +00002131 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002132fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002133## -------------------- ##
2134## Main body of script. ##
2135## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002136
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002137ac_ext=c
2138ac_cpp='$CPP $CPPFLAGS'
2139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002143
2144
Benny Prijono5b818b22006-09-17 22:58:51 +00002145host_orig="$host"
2146
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002147ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002148for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijonofe0c1272010-01-13 16:28:15 +00002149 for ac_t in install-sh install.sh shtool; do
2150 if test -f "$ac_dir/$ac_t"; then
2151 ac_aux_dir=$ac_dir
2152 ac_install_sh="$ac_aux_dir/$ac_t -c"
2153 break 2
2154 fi
2155 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002156done
2157if test -z "$ac_aux_dir"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002158 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002159fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002160
2161# These three variables are undocumented and unsupported,
2162# and are intended to be withdrawn in a future Autoconf release.
2163# They can cause serious problems if a builder's source tree is in a directory
2164# whose full name contains unusual characters.
2165ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2166ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2167ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2168
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002169
2170# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002171$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00002172 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002173
Benny Prijonofe0c1272010-01-13 16:28:15 +00002174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002175$as_echo_n "checking build system type... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002176if test "${ac_cv_build+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002177 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002178else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002179 ac_build_alias=$build_alias
2180test "x$ac_build_alias" = x &&
2181 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2182test "x$ac_build_alias" = x &&
Benny Prijonofe0c1272010-01-13 16:28:15 +00002183 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002184ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00002185 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002186
2187fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002189$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002190case $ac_cv_build in
2191*-*-*) ;;
Benny Prijonofe0c1272010-01-13 16:28:15 +00002192*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002193esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002194build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_build
2197shift
2198build_cpu=$1
2199build_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203build_os=$*
2204IFS=$ac_save_IFS
2205case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002206
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002207
Benny Prijonofe0c1272010-01-13 16:28:15 +00002208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002209$as_echo_n "checking host system type... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002210if test "${ac_cv_host+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002211 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002212else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002213 if test "x$host_alias" = x; then
2214 ac_cv_host=$ac_cv_build
2215else
2216 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00002217 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002218fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002219
2220fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002222$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002223case $ac_cv_host in
2224*-*-*) ;;
Benny Prijonofe0c1272010-01-13 16:28:15 +00002225*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002226esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002227host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002228ac_save_IFS=$IFS; IFS='-'
2229set x $ac_cv_host
2230shift
2231host_cpu=$1
2232host_vendor=$2
2233shift; shift
2234# Remember, the first character of IFS is used to create $*,
2235# except with old shells:
2236host_os=$*
2237IFS=$ac_save_IFS
2238case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002239
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002240
Benny Prijonofe0c1272010-01-13 16:28:15 +00002241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002242$as_echo_n "checking target system type... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002243if test "${ac_cv_target+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002244 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002245else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002246 if test "x$target_alias" = x; then
2247 ac_cv_target=$ac_cv_host
2248else
2249 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00002250 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002251fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002252
2253fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002255$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002256case $ac_cv_target in
2257*-*-*) ;;
Benny Prijonofe0c1272010-01-13 16:28:15 +00002258*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002259esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002260target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002261ac_save_IFS=$IFS; IFS='-'
2262set x $ac_cv_target
2263shift
2264target_cpu=$1
2265target_vendor=$2
2266shift; shift
2267# Remember, the first character of IFS is used to create $*,
2268# except with old shells:
2269target_os=$*
2270IFS=$ac_save_IFS
2271case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002272
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002273
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002274# The aliases save the names the user supplied, while $host etc.
2275# will get canonicalized.
2276test -n "$target_alias" &&
2277 test "$program_prefix$program_suffix$program_transform_name" = \
2278 NONENONEs,x,x, &&
2279 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002280ac_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 +00002281
Benny Prijono8a9b3b22010-01-14 14:46:54 +00002282ac_config_files="$ac_config_files build.mak build/os-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 +00002283
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002284
Benny Prijono12483112007-03-12 10:44:38 +00002285
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002286if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002287 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002288else
2289 CFLAGS="$CFLAGS"
2290fi
2291
2292CXXFLAGS="$CFLAGS $CXXFLAGS"
2293
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299if test -n "$ac_tool_prefix"; then
2300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2301set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00002302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002303$as_echo_n "checking for $ac_word... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002304if test "${ac_cv_prog_CC+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002305 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002306else
2307 if test -n "$CC"; then
2308 ac_cv_prog_CC="$CC" # Let the user override the test.
2309else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH
2312do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002315 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002317 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijonofe0c1272010-01-13 16:28:15 +00002318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002319 break 2
2320 fi
2321done
Benny Prijonofe0c1272010-01-13 16:28:15 +00002322 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002323IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002324
2325fi
2326fi
2327CC=$ac_cv_prog_CC
2328if test -n "$CC"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002330$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002331else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002333$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002334fi
2335
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002336
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002337fi
2338if test -z "$ac_cv_prog_CC"; then
2339 ac_ct_CC=$CC
2340 # Extract the first word of "gcc", so it can be a program name with args.
2341set dummy gcc; ac_word=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00002342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002343$as_echo_n "checking for $ac_word... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002344if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002345 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002346else
2347 if test -n "$ac_ct_CC"; then
2348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2349else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002355 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002357 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijonofe0c1272010-01-13 16:28:15 +00002358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002359 break 2
2360 fi
2361done
Benny Prijonofe0c1272010-01-13 16:28:15 +00002362 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002363IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002364
2365fi
2366fi
2367ac_ct_CC=$ac_cv_prog_ac_ct_CC
2368if test -n "$ac_ct_CC"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002370$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002371else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002373$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002374fi
2375
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002376 if test "x$ac_ct_CC" = x; then
2377 CC=""
2378 else
2379 case $cross_compiling:$ac_tool_warned in
2380yes:)
Benny Prijonofe0c1272010-01-13 16:28:15 +00002381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002383ac_tool_warned=yes ;;
2384esac
2385 CC=$ac_ct_CC
2386 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002387else
2388 CC="$ac_cv_prog_CC"
2389fi
2390
2391if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002392 if test -n "$ac_tool_prefix"; then
2393 # 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 +00002394set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00002395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002396$as_echo_n "checking for $ac_word... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002397if test "${ac_cv_prog_CC+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002398 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002399else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002408 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002410 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijonofe0c1272010-01-13 16:28:15 +00002411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002412 break 2
2413 fi
2414done
Benny Prijonofe0c1272010-01-13 16:28:15 +00002415 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002416IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002417
2418fi
2419fi
2420CC=$ac_cv_prog_CC
2421if test -n "$CC"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002423$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002424else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002426$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002427fi
2428
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002429
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002430 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002431fi
2432if test -z "$CC"; then
2433 # Extract the first word of "cc", so it can be a program name with args.
2434set dummy cc; ac_word=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00002435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002436$as_echo_n "checking for $ac_word... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002437if test "${ac_cv_prog_CC+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002438 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002439else
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC="$CC" # Let the user override the test.
2442else
2443 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002449 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2452 ac_prog_rejected=yes
2453 continue
2454 fi
2455 ac_cv_prog_CC="cc"
Benny Prijonofe0c1272010-01-13 16:28:15 +00002456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002457 break 2
2458 fi
2459done
Benny Prijonofe0c1272010-01-13 16:28:15 +00002460 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002461IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002462
2463if test $ac_prog_rejected = yes; then
2464 # We found a bogon in the path, so make sure we never use it.
2465 set dummy $ac_cv_prog_CC
2466 shift
2467 if test $# != 0; then
2468 # We chose a different compiler from the bogus one.
2469 # However, it has the same basename, so the bogon will be chosen
2470 # first if we set CC to just the basename; use the full file name.
2471 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002473 fi
2474fi
2475fi
2476fi
2477CC=$ac_cv_prog_CC
2478if test -n "$CC"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002480$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002481else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002483$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002484fi
2485
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002486
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002487fi
2488if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002490 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002491 do
2492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00002494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002495$as_echo_n "checking for $ac_word... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002496if test "${ac_cv_prog_CC+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002497 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002498else
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2501else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002507 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijonofe0c1272010-01-13 16:28:15 +00002510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002511 break 2
2512 fi
2513done
Benny Prijonofe0c1272010-01-13 16:28:15 +00002514 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002515IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002516
2517fi
2518fi
2519CC=$ac_cv_prog_CC
2520if test -n "$CC"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002522$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002523else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002525$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002526fi
2527
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002528
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002529 test -n "$CC" && break
2530 done
2531fi
2532if test -z "$CC"; then
2533 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002534 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002535do
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537set dummy $ac_prog; ac_word=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00002538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002539$as_echo_n "checking for $ac_word... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002541 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002542else
2543 if test -n "$ac_ct_CC"; then
2544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2545else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002551 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002553 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijonofe0c1272010-01-13 16:28:15 +00002554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002555 break 2
2556 fi
2557done
Benny Prijonofe0c1272010-01-13 16:28:15 +00002558 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002559IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002560
2561fi
2562fi
2563ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564if test -n "$ac_ct_CC"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00002565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002566$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002567else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002569$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002570fi
2571
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002572
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002573 test -n "$ac_ct_CC" && break
2574done
2575
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002576 if test "x$ac_ct_CC" = x; then
2577 CC=""
2578 else
2579 case $cross_compiling:$ac_tool_warned in
2580yes:)
Benny Prijonofe0c1272010-01-13 16:28:15 +00002581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002583ac_tool_warned=yes ;;
2584esac
2585 CC=$ac_ct_CC
2586 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002587fi
2588
2589fi
2590
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002591
Benny Prijonofe0c1272010-01-13 16:28:15 +00002592test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594as_fn_error "no acceptable C compiler found in \$PATH
2595See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002596
2597# Provide some information about the compiler.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002598$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002599set X $ac_compile
2600ac_compiler=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00002601for ac_option in --version -v -V -qversion; do
2602 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002603case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00002607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2608$as_echo "$ac_try_echo"; } >&5
2609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002610 ac_status=$?
Benny Prijonofe0c1272010-01-13 16:28:15 +00002611 if test -s conftest.err; then
2612 sed '10a\
2613... rest of stderr output deleted ...
2614 10q' conftest.err >conftest.er1
2615 cat conftest.er1 >&5
2616 rm -f conftest.er1 conftest.err
2617 fi
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; }
2620done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002621
Benny Prijonofe0c1272010-01-13 16:28:15 +00002622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002623/* end confdefs.h. */
Benny Prijonofe0c1272010-01-13 16:28:15 +00002624#include <stdio.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002625int
2626main ()
2627{
Benny Prijonofe0c1272010-01-13 16:28:15 +00002628FILE *f = fopen ("conftest.out", "w");
2629 return ferror (f) || fclose (f) != 0;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002630
2631 ;
2632 return 0;
2633}
2634_ACEOF
2635ac_clean_files_save=$ac_clean_files
Benny Prijonofe0c1272010-01-13 16:28:15 +00002636ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002637# Try to create an executable without -o first, disregard a.out.
2638# It will help us diagnose broken compilers, and finding out an intuition
2639# of exeext.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002641$as_echo_n "checking for C compiler default output file name... " >&6; }
2642ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2643
2644# The possible output files:
2645ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2646
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002647ac_rmfiles=
2648for ac_file in $ac_files
2649do
2650 case $ac_file in
Benny Prijonod5233702010-01-13 13:09:45 +00002651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002652 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2653 esac
2654done
2655rm -f $ac_rmfiles
2656
Benny Prijonofe0c1272010-01-13 16:28:15 +00002657if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002658case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00002662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2663$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002664 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002665 ac_status=$?
Benny Prijonofe0c1272010-01-13 16:28:15 +00002666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2667 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002668 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2669# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2670# in a Makefile. We should not override ac_cv_exeext if it was cached,
2671# so that the user can short-circuit this test for compilers unknown to
2672# Autoconf.
2673for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002674do
2675 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002676 case $ac_file in
Benny Prijonod5233702010-01-13 13:09:45 +00002677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002678 ;;
2679 [ab].out )
2680 # We found the default executable, but exeext='' is most
2681 # certainly right.
2682 break;;
2683 *.* )
Benny Prijonofe0c1272010-01-13 16:28:15 +00002684 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002685 then :; else
2686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2687 fi
2688 # We set ac_cv_exeext here because the later test for it is not
2689 # safe: cross compilers may not add the suffix if given an `-o'
2690 # argument, so we may need to know it at that point already.
2691 # Even if this section looks crufty: it has the advantage of
2692 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002693 break;;
2694 * )
2695 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002696 esac
2697done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002698test "$ac_cv_exeext" = no && ac_cv_exeext=
2699
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002700else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002701 ac_file=''
2702fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002704$as_echo "$ac_file" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002705if test -z "$ac_file"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002706 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002707sed 's/^/| /' conftest.$ac_ext >&5
2708
Benny Prijonofe0c1272010-01-13 16:28:15 +00002709{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2711{ as_fn_set_status 77
2712as_fn_error "C compiler cannot create executables
2713See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002714fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002715ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002716
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002717# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002718# the compiler is broken, or we cross compile.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002720$as_echo_n "checking whether the C compiler works... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002721# If not cross compiling, check that we can run a simple program.
2722if test "$cross_compiling" != yes; then
2723 if { ac_try='./$ac_file'
Benny Prijonofe0c1272010-01-13 16:28:15 +00002724 { { case "(($ac_try" in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00002728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2729$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002730 (eval "$ac_try") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002731 ac_status=$?
Benny Prijonofe0c1272010-01-13 16:28:15 +00002732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733 test $ac_status = 0; }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002734 cross_compiling=no
2735 else
2736 if test "$cross_compiling" = maybe; then
2737 cross_compiling=yes
2738 else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2741as_fn_error "cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002742If you meant to cross compile, use \`--host'.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002743See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002744 fi
2745 fi
2746fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002748$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002749
Benny Prijonofe0c1272010-01-13 16:28:15 +00002750rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002751ac_clean_files=$ac_clean_files_save
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002752# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002753# the compiler is broken, or we cross compile.
Benny Prijonofe0c1272010-01-13 16:28:15 +00002754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002755$as_echo_n "checking whether we are cross compiling... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002757$as_echo "$cross_compiling" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002758
Benny Prijonofe0c1272010-01-13 16:28:15 +00002759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002760$as_echo_n "checking for suffix of executables... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002761if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002762case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00002766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002768 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002769 ac_status=$?
Benny Prijonofe0c1272010-01-13 16:28:15 +00002770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2773# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2774# work properly (i.e., refer to `conftest.exe'), while it won't with
2775# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002776for ac_file in conftest.exe conftest conftest.*; do
2777 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002778 case $ac_file in
Benny Prijonod5233702010-01-13 13:09:45 +00002779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002781 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002782 * ) break;;
2783 esac
2784done
2785else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2788as_fn_error "cannot compute suffix of executables: cannot compile and link
2789See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002790fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002791rm -f conftest$ac_cv_exeext
Benny Prijonofe0c1272010-01-13 16:28:15 +00002792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002793$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002794
2795rm -f conftest.$ac_ext
2796EXEEXT=$ac_cv_exeext
2797ac_exeext=$EXEEXT
Benny Prijonofe0c1272010-01-13 16:28:15 +00002798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002799$as_echo_n "checking for suffix of object files... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002800if test "${ac_cv_objext+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002801 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002802else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002804/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002805
2806int
2807main ()
2808{
2809
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814rm -f conftest.o conftest.obj
Benny Prijonofe0c1272010-01-13 16:28:15 +00002815if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002816case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00002820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002822 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002823 ac_status=$?
Benny Prijonofe0c1272010-01-13 16:28:15 +00002824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2825 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002826 for ac_file in conftest.o conftest.obj conftest.*; do
2827 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002828 case $ac_file in
Benny Prijonod5233702010-01-13 13:09:45 +00002829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2831 break;;
2832 esac
2833done
2834else
Benny Prijonod5233702010-01-13 13:09:45 +00002835 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002836sed 's/^/| /' conftest.$ac_ext >&5
2837
Benny Prijonofe0c1272010-01-13 16:28:15 +00002838{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840as_fn_error "cannot compute suffix of object files: cannot compile
2841See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002842fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002843rm -f conftest.$ac_cv_objext conftest.$ac_ext
2844fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002846$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002847OBJEXT=$ac_cv_objext
2848ac_objext=$OBJEXT
Benny Prijonofe0c1272010-01-13 16:28:15 +00002849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002850$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002851if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002852 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002853else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002855/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002856
2857int
2858main ()
2859{
2860#ifndef __GNUC__
2861 choke me
2862#endif
2863
2864 ;
2865 return 0;
2866}
2867_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00002868if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002869 ac_compiler_gnu=yes
2870else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002871 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002872fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002874ac_cv_c_compiler_gnu=$ac_compiler_gnu
2875
2876fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002878$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2879if test $ac_compiler_gnu = yes; then
2880 GCC=yes
2881else
2882 GCC=
2883fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002884ac_test_CFLAGS=${CFLAGS+set}
2885ac_save_CFLAGS=$CFLAGS
Benny Prijonofe0c1272010-01-13 16:28:15 +00002886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002887$as_echo_n "checking whether $CC accepts -g... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002888if test "${ac_cv_prog_cc_g+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002889 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002890else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002891 ac_save_c_werror_flag=$ac_c_werror_flag
2892 ac_c_werror_flag=yes
2893 ac_cv_prog_cc_g=no
2894 CFLAGS="-g"
Benny Prijonofe0c1272010-01-13 16:28:15 +00002895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002896/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002897
2898int
2899main ()
2900{
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00002906if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002907 ac_cv_prog_cc_g=yes
2908else
Benny Prijonofe0c1272010-01-13 16:28:15 +00002909 CFLAGS=""
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002911/* end confdefs.h. */
2912
2913int
2914main ()
2915{
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00002921if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002922
Benny Prijonofe0c1272010-01-13 16:28:15 +00002923else
2924 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002925 CFLAGS="-g"
Benny Prijonofe0c1272010-01-13 16:28:15 +00002926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00002937if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002938 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002939fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002941fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 ac_c_werror_flag=$ac_save_c_werror_flag
2946fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002948$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002949if test "$ac_test_CFLAGS" = set; then
2950 CFLAGS=$ac_save_CFLAGS
2951elif test $ac_cv_prog_cc_g = yes; then
2952 if test "$GCC" = yes; then
2953 CFLAGS="-g -O2"
2954 else
2955 CFLAGS="-g"
2956 fi
2957else
2958 if test "$GCC" = yes; then
2959 CFLAGS="-O2"
2960 else
2961 CFLAGS=
2962 fi
2963fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00002964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00002965$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00002966if test "${ac_cv_prog_cc_c89+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00002967 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002968else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002969 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002970ac_save_CC=$CC
Benny Prijonofe0c1272010-01-13 16:28:15 +00002971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002972/* end confdefs.h. */
2973#include <stdarg.h>
2974#include <stdio.h>
2975#include <sys/types.h>
2976#include <sys/stat.h>
2977/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2978struct buf { int x; };
2979FILE * (*rcsopen) (struct buf *, struct stat *, int);
2980static char *e (p, i)
2981 char **p;
2982 int i;
2983{
2984 return p[i];
2985}
2986static char *f (char * (*g) (char **, int), char **p, ...)
2987{
2988 char *s;
2989 va_list v;
2990 va_start (v,p);
2991 s = g (p, va_arg (v,int));
2992 va_end (v);
2993 return s;
2994}
2995
2996/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2997 function prototypes and stuff, but not '\xHH' hex character constants.
2998 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002999 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3001 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003002 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003003int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3004
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003005/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3006 inside strings and character constants. */
3007#define FOO(x) 'x'
3008int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3009
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003010int test (int i, double x);
3011struct s1 {int (*f) (int a);};
3012struct s2 {int (*f) (double a);};
3013int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3014int argc;
3015char **argv;
3016int
3017main ()
3018{
3019return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3020 ;
3021 return 0;
3022}
3023_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003024for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3025 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003026do
3027 CC="$ac_save_CC $ac_arg"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003028 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003029 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003030fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003031rm -f core conftest.err conftest.$ac_objext
3032 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003033done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003034rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003035CC=$ac_save_CC
3036
3037fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003038# AC_CACHE_VAL
3039case "x$ac_cv_prog_cc_c89" in
3040 x)
Benny Prijonofe0c1272010-01-13 16:28:15 +00003041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003042$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003043 xno)
Benny Prijonofe0c1272010-01-13 16:28:15 +00003044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003045$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003046 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003047 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003049$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003050esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00003051if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003052
Benny Prijonofe0c1272010-01-13 16:28:15 +00003053fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003054
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003055ac_ext=c
3056ac_cpp='$CPP $CPPFLAGS'
3057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003061ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003062ac_cpp='$CXXCPP $CPPFLAGS'
3063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003066if test -z "$CXX"; then
3067 if test -n "$CCC"; then
3068 CXX=$CCC
3069 else
3070 if test -n "$ac_tool_prefix"; then
3071 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 +00003072 do
3073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00003075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003076$as_echo_n "checking for $ac_word... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003077if test "${ac_cv_prog_CXX+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003078 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003079else
3080 if test -n "$CXX"; then
3081 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3082else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00003088 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003090 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003092 break 2
3093 fi
3094done
Benny Prijonofe0c1272010-01-13 16:28:15 +00003095 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003096IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003097
3098fi
3099fi
3100CXX=$ac_cv_prog_CXX
3101if test -n "$CXX"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00003102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003103$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003104else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003106$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003107fi
3108
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003109
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003110 test -n "$CXX" && break
3111 done
3112fi
3113if test -z "$CXX"; then
3114 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003115 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 +00003116do
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118set dummy $ac_prog; ac_word=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00003119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003120$as_echo_n "checking for $ac_word... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003121if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003122 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003123else
3124 if test -n "$ac_ct_CXX"; then
3125 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3126else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00003132 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003134 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003136 break 2
3137 fi
3138done
Benny Prijonofe0c1272010-01-13 16:28:15 +00003139 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003140IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003141
3142fi
3143fi
3144ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3145if test -n "$ac_ct_CXX"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00003146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003147$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003148else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003150$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003151fi
3152
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003153
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003154 test -n "$ac_ct_CXX" && break
3155done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003156
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003157 if test "x$ac_ct_CXX" = x; then
3158 CXX="g++"
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161yes:)
Benny Prijonofe0c1272010-01-13 16:28:15 +00003162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003164ac_tool_warned=yes ;;
3165esac
3166 CXX=$ac_ct_CXX
3167 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003168fi
3169
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003170 fi
3171fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003172# Provide some information about the compiler.
Benny Prijonofe0c1272010-01-13 16:28:15 +00003173$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003174set X $ac_compile
3175ac_compiler=$2
Benny Prijonofe0c1272010-01-13 16:28:15 +00003176for ac_option in --version -v -V -qversion; do
3177 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003178case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00003182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183$as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003185 ac_status=$?
Benny Prijonofe0c1272010-01-13 16:28:15 +00003186 if test -s conftest.err; then
3187 sed '10a\
3188... rest of stderr output deleted ...
3189 10q' conftest.err >conftest.er1
3190 cat conftest.er1 >&5
3191 rm -f conftest.er1 conftest.err
3192 fi
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }
3195done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003196
Benny Prijonofe0c1272010-01-13 16:28:15 +00003197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003198$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003199if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003200 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003201else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003203/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003204
3205int
3206main ()
3207{
3208#ifndef __GNUC__
3209 choke me
3210#endif
3211
3212 ;
3213 return 0;
3214}
3215_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003216if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003217 ac_compiler_gnu=yes
3218else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003219 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003220fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003222ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3223
3224fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003226$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3227if test $ac_compiler_gnu = yes; then
3228 GXX=yes
3229else
3230 GXX=
3231fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003232ac_test_CXXFLAGS=${CXXFLAGS+set}
3233ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijonofe0c1272010-01-13 16:28:15 +00003234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003235$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003236if test "${ac_cv_prog_cxx_g+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003237 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003238else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003239 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3240 ac_cxx_werror_flag=yes
3241 ac_cv_prog_cxx_g=no
3242 CXXFLAGS="-g"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003244/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003245
3246int
3247main ()
3248{
3249
3250 ;
3251 return 0;
3252}
3253_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003254if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003255 ac_cv_prog_cxx_g=yes
3256else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003257 CXXFLAGS=""
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003259/* end confdefs.h. */
3260
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003269if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003270
Benny Prijonofe0c1272010-01-13 16:28:15 +00003271else
3272 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003273 CXXFLAGS="-g"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003275/* end confdefs.h. */
3276
3277int
3278main ()
3279{
3280
3281 ;
3282 return 0;
3283}
3284_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003285if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003286 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003287fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003289fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3294fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003296$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003297if test "$ac_test_CXXFLAGS" = set; then
3298 CXXFLAGS=$ac_save_CXXFLAGS
3299elif test $ac_cv_prog_cxx_g = yes; then
3300 if test "$GXX" = yes; then
3301 CXXFLAGS="-g -O2"
3302 else
3303 CXXFLAGS="-g"
3304 fi
3305else
3306 if test "$GXX" = yes; then
3307 CXXFLAGS="-O2"
3308 else
3309 CXXFLAGS=
3310 fi
3311fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003312ac_ext=c
3313ac_cpp='$CPP $CPPFLAGS'
3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003318ac_ext=c
3319ac_cpp='$CPP $CPPFLAGS'
3320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003324
3325
Benny Prijono0822c192008-08-21 20:59:58 +00003326
Benny Prijono53847a32007-09-24 16:10:13 +00003327case $target in
3328 *mingw* | *cygw* | *win32* | *w32* )
3329 ac_pjdir=`pwd -W`
3330 ;;
3331 *)
3332 ac_pjdir=`pwd`
3333 ;;
3334esac
Benny Prijono12483112007-03-12 10:44:38 +00003335
3336
Benny Prijonofe0c1272010-01-13 16:28:15 +00003337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003338$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003339if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003340 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003341else
3342 ac_check_lib_save_LIBS=$LIBS
3343LIBS="-lpthread $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003345/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003346
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003347/* Override any GCC internal prototype to avoid an error.
3348 Use char because int might match the return type of a GCC
3349 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003350#ifdef __cplusplus
3351extern "C"
3352#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003353char pthread_create ();
3354int
3355main ()
3356{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003357return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003358 ;
3359 return 0;
3360}
3361_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003362if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003363 ac_cv_lib_pthread_pthread_create=yes
3364else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003365 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003366fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003367rm -f core conftest.err conftest.$ac_objext \
3368 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003369LIBS=$ac_check_lib_save_LIBS
3370fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003372$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003373if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003374 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003375#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003376_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003377
3378 LIBS="-lpthread $LIBS"
3379
3380fi
3381
Benny Prijonofe0c1272010-01-13 16:28:15 +00003382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003383$as_echo_n "checking for puts in -lwsock32... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003384if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003385 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003386else
3387 ac_check_lib_save_LIBS=$LIBS
3388LIBS="-lwsock32 $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003390/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003391
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003392/* Override any GCC internal prototype to avoid an error.
3393 Use char because int might match the return type of a GCC
3394 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003395#ifdef __cplusplus
3396extern "C"
3397#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003398char puts ();
3399int
3400main ()
3401{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003402return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003403 ;
3404 return 0;
3405}
3406_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003407if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003408 ac_cv_lib_wsock32_puts=yes
3409else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003410 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003411fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003412rm -f core conftest.err conftest.$ac_objext \
3413 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003414LIBS=$ac_check_lib_save_LIBS
3415fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003417$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003418if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003419 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003420#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003421_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003422
3423 LIBS="-lwsock32 $LIBS"
3424
3425fi
3426
Benny Prijonofe0c1272010-01-13 16:28:15 +00003427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003428$as_echo_n "checking for puts in -lws2_32... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003429if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003430 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003431else
3432 ac_check_lib_save_LIBS=$LIBS
3433LIBS="-lws2_32 $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003435/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003436
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003437/* Override any GCC internal prototype to avoid an error.
3438 Use char because int might match the return type of a GCC
3439 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003440#ifdef __cplusplus
3441extern "C"
3442#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003443char puts ();
3444int
3445main ()
3446{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003447return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003448 ;
3449 return 0;
3450}
3451_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003452if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003453 ac_cv_lib_ws2_32_puts=yes
3454else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003455 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003456fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003457rm -f core conftest.err conftest.$ac_objext \
3458 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003459LIBS=$ac_check_lib_save_LIBS
3460fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003462$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003463if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003464 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003465#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003466_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003467
3468 LIBS="-lws2_32 $LIBS"
3469
3470fi
3471
Benny Prijonofe0c1272010-01-13 16:28:15 +00003472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003473$as_echo_n "checking for puts in -lole32... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003474if test "${ac_cv_lib_ole32_puts+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003475 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003476else
3477 ac_check_lib_save_LIBS=$LIBS
3478LIBS="-lole32 $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003480/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003481
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003482/* Override any GCC internal prototype to avoid an error.
3483 Use char because int might match the return type of a GCC
3484 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003485#ifdef __cplusplus
3486extern "C"
3487#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003488char puts ();
3489int
3490main ()
3491{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003492return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003493 ;
3494 return 0;
3495}
3496_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003497if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003498 ac_cv_lib_ole32_puts=yes
3499else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003500 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003501fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003502rm -f core conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003504LIBS=$ac_check_lib_save_LIBS
3505fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003507$as_echo "$ac_cv_lib_ole32_puts" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003508if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003509 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003510#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003511_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003512
3513 LIBS="-lole32 $LIBS"
3514
3515fi
3516
Benny Prijonofe0c1272010-01-13 16:28:15 +00003517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003518$as_echo_n "checking for puts in -lwinmm... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003519if test "${ac_cv_lib_winmm_puts+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003520 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003521else
3522 ac_check_lib_save_LIBS=$LIBS
3523LIBS="-lwinmm $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003525/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003526
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003527/* Override any GCC internal prototype to avoid an error.
3528 Use char because int might match the return type of a GCC
3529 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003530#ifdef __cplusplus
3531extern "C"
3532#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003533char puts ();
3534int
3535main ()
3536{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003537return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003538 ;
3539 return 0;
3540}
3541_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003542if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003543 ac_cv_lib_winmm_puts=yes
3544else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003545 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003546fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003547rm -f core conftest.err conftest.$ac_objext \
3548 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003549LIBS=$ac_check_lib_save_LIBS
3550fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003552$as_echo "$ac_cv_lib_winmm_puts" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003553if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003554 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003555#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003556_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003557
3558 LIBS="-lwinmm $LIBS"
3559
3560fi
3561
Benny Prijonofe0c1272010-01-13 16:28:15 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003563$as_echo_n "checking for puts in -lsocket... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003564if test "${ac_cv_lib_socket_puts+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003565 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003566else
3567 ac_check_lib_save_LIBS=$LIBS
3568LIBS="-lsocket $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003570/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003571
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003572/* Override any GCC internal prototype to avoid an error.
3573 Use char because int might match the return type of a GCC
3574 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003575#ifdef __cplusplus
3576extern "C"
3577#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003578char puts ();
3579int
3580main ()
3581{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003582return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003583 ;
3584 return 0;
3585}
3586_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003587if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003588 ac_cv_lib_socket_puts=yes
3589else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003590 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003591fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003592rm -f core conftest.err conftest.$ac_objext \
3593 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003594LIBS=$ac_check_lib_save_LIBS
3595fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003597$as_echo "$ac_cv_lib_socket_puts" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003598if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003599 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003600#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003601_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003602
3603 LIBS="-lsocket $LIBS"
3604
3605fi
3606
Benny Prijonofe0c1272010-01-13 16:28:15 +00003607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003608$as_echo_n "checking for puts in -lrt... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003609if test "${ac_cv_lib_rt_puts+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003610 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003611else
3612 ac_check_lib_save_LIBS=$LIBS
3613LIBS="-lrt $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003615/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003616
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003617/* Override any GCC internal prototype to avoid an error.
3618 Use char because int might match the return type of a GCC
3619 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003620#ifdef __cplusplus
3621extern "C"
3622#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003623char puts ();
3624int
3625main ()
3626{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003627return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003628 ;
3629 return 0;
3630}
3631_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003632if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003633 ac_cv_lib_rt_puts=yes
3634else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003635 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003636fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003637rm -f core conftest.err conftest.$ac_objext \
3638 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003639LIBS=$ac_check_lib_save_LIBS
3640fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003642$as_echo "$ac_cv_lib_rt_puts" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003643if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003644 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003645#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003646_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003647
3648 LIBS="-lrt $LIBS"
3649
3650fi
3651
Benny Prijonofe0c1272010-01-13 16:28:15 +00003652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003653$as_echo_n "checking for puts in -lnsl... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003654if test "${ac_cv_lib_nsl_puts+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003655 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003656else
3657 ac_check_lib_save_LIBS=$LIBS
3658LIBS="-lnsl $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003660/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003661
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003662/* Override any GCC internal prototype to avoid an error.
3663 Use char because int might match the return type of a GCC
3664 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003665#ifdef __cplusplus
3666extern "C"
3667#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003668char puts ();
3669int
3670main ()
3671{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003672return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003673 ;
3674 return 0;
3675}
3676_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003677if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003678 ac_cv_lib_nsl_puts=yes
3679else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003680 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003681fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003682rm -f core conftest.err conftest.$ac_objext \
3683 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003684LIBS=$ac_check_lib_save_LIBS
3685fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003687$as_echo "$ac_cv_lib_nsl_puts" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003688if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003689 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003690#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003691_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003692
3693 LIBS="-lnsl $LIBS"
3694
3695fi
3696
Benny Prijonofe0c1272010-01-13 16:28:15 +00003697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003698$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003699if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003700 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003701else
3702 ac_check_lib_save_LIBS=$LIBS
3703LIBS="-luuid $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003705/* end confdefs.h. */
3706
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003707/* Override any GCC internal prototype to avoid an error.
3708 Use char because int might match the return type of a GCC
3709 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003710#ifdef __cplusplus
3711extern "C"
3712#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003713char uuid_generate ();
3714int
3715main ()
3716{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003717return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003718 ;
3719 return 0;
3720}
3721_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003722if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003723 ac_cv_lib_uuid_uuid_generate=yes
3724else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003725 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003726fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003727rm -f core conftest.err conftest.$ac_objext \
3728 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003729LIBS=$ac_check_lib_save_LIBS
3730fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003732$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003733if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003734 cat >>confdefs.h <<_ACEOF
3735#define HAVE_LIBUUID 1
3736_ACEOF
3737
3738 LIBS="-luuid $LIBS"
3739
3740fi
3741
Benny Prijonofe0c1272010-01-13 16:28:15 +00003742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003743$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003744if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003745 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003746else
3747 ac_check_lib_save_LIBS=$LIBS
3748LIBS="-luuid $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00003749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003750/* end confdefs.h. */
3751
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003752/* Override any GCC internal prototype to avoid an error.
3753 Use char because int might match the return type of a GCC
3754 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003755#ifdef __cplusplus
3756extern "C"
3757#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003758char uuid_generate ();
3759int
3760main ()
3761{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003762return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003763 ;
3764 return 0;
3765}
3766_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003767if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003768 ac_cv_lib_uuid_uuid_generate=yes
3769else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003770 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003771fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003772rm -f core conftest.err conftest.$ac_objext \
3773 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003774LIBS=$ac_check_lib_save_LIBS
3775fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003777$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003778if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003779 ac_has_uuid_lib=1
3780fi
3781
3782
Benny Prijonofe0c1272010-01-13 16:28:15 +00003783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003784$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003785cat >>confdefs.h <<_ACEOF
3786#define PJ_M_NAME "$target_cpu"
3787_ACEOF
3788
3789
Benny Prijonofe0c1272010-01-13 16:28:15 +00003790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003791$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003792case $target in
3793 ia64-* | x86_64-* )
Benny Prijonofe0c1272010-01-13 16:28:15 +00003794 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003795
Benny Prijonofe0c1272010-01-13 16:28:15 +00003796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003797$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003798 ;;
3799 * )
Benny Prijonofe0c1272010-01-13 16:28:15 +00003800 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003801
Benny Prijonofe0c1272010-01-13 16:28:15 +00003802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003803$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003804 ;;
3805esac
3806
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003807
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003808ac_ext=c
3809ac_cpp='$CPP $CPPFLAGS'
3810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijonofe0c1272010-01-13 16:28:15 +00003813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003814$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003815# On Suns, sometimes $CPP names a directory.
3816if test -n "$CPP" && test -d "$CPP"; then
3817 CPP=
3818fi
3819if test -z "$CPP"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00003820 if test "${ac_cv_prog_CPP+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003821 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003822else
3823 # Double quotes because CPP needs to be expanded
3824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3825 do
3826 ac_preproc_ok=false
3827for ac_c_preproc_warn_flag in '' yes
3828do
3829 # Use a header file that comes with gcc, so configuring glibc
3830 # with a fresh cross-compiler works.
3831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3832 # <limits.h> exists even on freestanding compilers.
3833 # On the NeXT, cc -E runs the code through the compiler's parser,
3834 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonofe0c1272010-01-13 16:28:15 +00003835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003836/* end confdefs.h. */
3837#ifdef __STDC__
3838# include <limits.h>
3839#else
3840# include <assert.h>
3841#endif
3842 Syntax error
3843_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003844if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003845
Benny Prijonofe0c1272010-01-13 16:28:15 +00003846else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003847 # Broken: fails on valid input.
3848continue
3849fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003850rm -f conftest.err conftest.$ac_ext
3851
3852 # OK, works on sane cases. Now check whether nonexistent headers
3853 # can be detected and how.
Benny Prijonofe0c1272010-01-13 16:28:15 +00003854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003855/* end confdefs.h. */
3856#include <ac_nonexistent.h>
3857_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003858if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003859 # Broken: success on invalid input.
3860continue
3861else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003862 # Passes both tests.
3863ac_preproc_ok=:
3864break
3865fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003866rm -f conftest.err conftest.$ac_ext
3867
3868done
3869# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870rm -f conftest.err conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00003871if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003872 break
3873fi
3874
3875 done
3876 ac_cv_prog_CPP=$CPP
3877
3878fi
3879 CPP=$ac_cv_prog_CPP
3880else
3881 ac_cv_prog_CPP=$CPP
3882fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00003883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003884$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003885ac_preproc_ok=false
3886for ac_c_preproc_warn_flag in '' yes
3887do
3888 # Use a header file that comes with gcc, so configuring glibc
3889 # with a fresh cross-compiler works.
3890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891 # <limits.h> exists even on freestanding compilers.
3892 # On the NeXT, cc -E runs the code through the compiler's parser,
3893 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonofe0c1272010-01-13 16:28:15 +00003894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003895/* end confdefs.h. */
3896#ifdef __STDC__
3897# include <limits.h>
3898#else
3899# include <assert.h>
3900#endif
3901 Syntax error
3902_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003903if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003904
Benny Prijonofe0c1272010-01-13 16:28:15 +00003905else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003906 # Broken: fails on valid input.
3907continue
3908fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003909rm -f conftest.err conftest.$ac_ext
3910
3911 # OK, works on sane cases. Now check whether nonexistent headers
3912 # can be detected and how.
Benny Prijonofe0c1272010-01-13 16:28:15 +00003913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003914/* end confdefs.h. */
3915#include <ac_nonexistent.h>
3916_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00003917if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003918 # Broken: success on invalid input.
3919continue
3920else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003921 # Passes both tests.
3922ac_preproc_ok=:
3923break
3924fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003925rm -f conftest.err conftest.$ac_ext
3926
3927done
3928# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3929rm -f conftest.err conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00003930if $ac_preproc_ok; then :
3931
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003932else
Benny Prijonofe0c1272010-01-13 16:28:15 +00003933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935as_fn_error "C preprocessor \"$CPP\" fails sanity check
3936See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003937fi
3938
3939ac_ext=c
3940ac_cpp='$CPP $CPPFLAGS'
3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
3945
Benny Prijonofe0c1272010-01-13 16:28:15 +00003946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00003947$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00003948if test "${ac_cv_path_GREP+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00003949 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003950else
Benny Prijonod5233702010-01-13 13:09:45 +00003951 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003952 ac_path_GREP_found=false
Benny Prijonod5233702010-01-13 13:09:45 +00003953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00003959 for ac_prog in grep ggrep; do
Benny Prijonod5233702010-01-13 13:09:45 +00003960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3963# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003964 # Check for GNU $ac_path_GREP
3965case `"$ac_path_GREP" --version 2>&1` in
3966*GNU*)
3967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3968*)
3969 ac_count=0
Benny Prijonod5233702010-01-13 13:09:45 +00003970 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
Benny Prijonod5233702010-01-13 13:09:45 +00003976 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonofe0c1272010-01-13 16:28:15 +00003979 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_GREP="$ac_path_GREP"
3983 ac_path_GREP_max=$ac_count
3984 fi
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989esac
3990
Benny Prijonod5233702010-01-13 13:09:45 +00003991 $ac_path_GREP_found && break 3
3992 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003993 done
Benny Prijonofe0c1272010-01-13 16:28:15 +00003994 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003995IFS=$as_save_IFS
Benny Prijonod5233702010-01-13 13:09:45 +00003996 if test -z "$ac_cv_path_GREP"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00003997 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Benny Prijonod5233702010-01-13 13:09:45 +00003998 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003999else
4000 ac_cv_path_GREP=$GREP
4001fi
4002
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004003fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00004004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004005$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004006 GREP="$ac_cv_path_GREP"
4007
4008
Benny Prijonofe0c1272010-01-13 16:28:15 +00004009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004010$as_echo_n "checking for egrep... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004011if test "${ac_cv_path_EGREP+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00004012 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004013else
4014 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4015 then ac_cv_path_EGREP="$GREP -E"
4016 else
Benny Prijonod5233702010-01-13 13:09:45 +00004017 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004018 ac_path_EGREP_found=false
Benny Prijonod5233702010-01-13 13:09:45 +00004019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004021for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004025 for ac_prog in egrep; do
Benny Prijonod5233702010-01-13 13:09:45 +00004026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4029# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004030 # Check for GNU $ac_path_EGREP
4031case `"$ac_path_EGREP" --version 2>&1` in
4032*GNU*)
4033 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034*)
4035 ac_count=0
Benny Prijonod5233702010-01-13 13:09:45 +00004036 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004037 while :
4038 do
4039 cat "conftest.in" "conftest.in" >"conftest.tmp"
4040 mv "conftest.tmp" "conftest.in"
4041 cp "conftest.in" "conftest.nl"
Benny Prijonod5233702010-01-13 13:09:45 +00004042 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonofe0c1272010-01-13 16:28:15 +00004045 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_EGREP="$ac_path_EGREP"
4049 ac_path_EGREP_max=$ac_count
4050 fi
4051 # 10*(2^10) chars as input seems more than enough
4052 test $ac_count -gt 10 && break
4053 done
4054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055esac
4056
Benny Prijonod5233702010-01-13 13:09:45 +00004057 $ac_path_EGREP_found && break 3
4058 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004059 done
Benny Prijonofe0c1272010-01-13 16:28:15 +00004060 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004061IFS=$as_save_IFS
Benny Prijonod5233702010-01-13 13:09:45 +00004062 if test -z "$ac_cv_path_EGREP"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00004063 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Benny Prijonod5233702010-01-13 13:09:45 +00004064 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004065else
4066 ac_cv_path_EGREP=$EGREP
4067fi
4068
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004069 fi
4070fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00004071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004072$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004073 EGREP="$ac_cv_path_EGREP"
4074
4075
Benny Prijonofe0c1272010-01-13 16:28:15 +00004076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004077$as_echo_n "checking for ANSI C header files... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004078if test "${ac_cv_header_stdc+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00004079 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004080else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004082/* end confdefs.h. */
4083#include <stdlib.h>
4084#include <stdarg.h>
4085#include <string.h>
4086#include <float.h>
4087
4088int
4089main ()
4090{
4091
4092 ;
4093 return 0;
4094}
4095_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004096if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004097 ac_cv_header_stdc=yes
4098else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004099 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004100fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102
4103if test $ac_cv_header_stdc = yes; then
4104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004106/* end confdefs.h. */
4107#include <string.h>
4108
4109_ACEOF
4110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonofe0c1272010-01-13 16:28:15 +00004111 $EGREP "memchr" >/dev/null 2>&1; then :
4112
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004113else
4114 ac_cv_header_stdc=no
4115fi
4116rm -f conftest*
4117
4118fi
4119
4120if test $ac_cv_header_stdc = yes; then
4121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004123/* end confdefs.h. */
4124#include <stdlib.h>
4125
4126_ACEOF
4127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonofe0c1272010-01-13 16:28:15 +00004128 $EGREP "free" >/dev/null 2>&1; then :
4129
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004130else
4131 ac_cv_header_stdc=no
4132fi
4133rm -f conftest*
4134
4135fi
4136
4137if test $ac_cv_header_stdc = yes; then
4138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004139 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004140 :
4141else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004143/* end confdefs.h. */
4144#include <ctype.h>
4145#include <stdlib.h>
4146#if ((' ' & 0x0FF) == 0x020)
4147# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4148# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4149#else
4150# define ISLOWER(c) \
4151 (('a' <= (c) && (c) <= 'i') \
4152 || ('j' <= (c) && (c) <= 'r') \
4153 || ('s' <= (c) && (c) <= 'z'))
4154# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4155#endif
4156
4157#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4158int
4159main ()
4160{
4161 int i;
4162 for (i = 0; i < 256; i++)
4163 if (XOR (islower (i), ISLOWER (i))
4164 || toupper (i) != TOUPPER (i))
4165 return 2;
4166 return 0;
4167}
4168_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004169if ac_fn_c_try_run "$LINENO"; then :
4170
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004171else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004172 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004173fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00004174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4175 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004176fi
4177
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004178fi
4179fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00004180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004181$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004182if test $ac_cv_header_stdc = yes; then
4183
Benny Prijonofe0c1272010-01-13 16:28:15 +00004184$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004185
4186fi
4187
4188# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004189for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4190 inttypes.h stdint.h unistd.h
Benny Prijonofe0c1272010-01-13 16:28:15 +00004191do :
4192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4193ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4194"
4195eval as_val=\$$as_ac_Header
4196 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004197 cat >>confdefs.h <<_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +00004198#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004199_ACEOF
4200
4201fi
4202
4203done
4204
4205
Benny Prijonofe0c1272010-01-13 16:28:15 +00004206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004207$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004208if test "${ac_cv_c_bigendian+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00004209 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004210else
Benny Prijonod5233702010-01-13 13:09:45 +00004211 ac_cv_c_bigendian=unknown
4212 # See if we're dealing with a universal compiler.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00004214/* end confdefs.h. */
4215#ifndef __APPLE_CC__
4216 not a universal capable compiler
4217 #endif
4218 typedef int dummy;
4219
4220_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004221if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00004222
4223 # Check for potential -arch flags. It is not universal unless
Benny Prijonofe0c1272010-01-13 16:28:15 +00004224 # there are at least two -arch flags with different values.
4225 ac_arch=
4226 ac_prev=
4227 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4228 if test -n "$ac_prev"; then
4229 case $ac_word in
4230 i?86 | x86_64 | ppc | ppc64)
4231 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4232 ac_arch=$ac_word
4233 else
4234 ac_cv_c_bigendian=universal
4235 break
4236 fi
4237 ;;
4238 esac
4239 ac_prev=
4240 elif test "x$ac_word" = "x-arch"; then
4241 ac_prev=arch
4242 fi
4243 done
Benny Prijonod5233702010-01-13 13:09:45 +00004244fi
Benny Prijonod5233702010-01-13 13:09:45 +00004245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 if test $ac_cv_c_bigendian = unknown; then
4247 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004249/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004250#include <sys/types.h>
Benny Prijonod5233702010-01-13 13:09:45 +00004251 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004252
4253int
4254main ()
4255{
Benny Prijonod5233702010-01-13 13:09:45 +00004256#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4257 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4258 && LITTLE_ENDIAN)
4259 bogus endian macros
4260 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004261
4262 ;
4263 return 0;
4264}
4265_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004266if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004267 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004269/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004270#include <sys/types.h>
Benny Prijonod5233702010-01-13 13:09:45 +00004271 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004272
4273int
4274main ()
4275{
4276#if BYTE_ORDER != BIG_ENDIAN
Benny Prijonod5233702010-01-13 13:09:45 +00004277 not big endian
4278 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004279
4280 ;
4281 return 0;
4282}
4283_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004284if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004285 ac_cv_c_bigendian=yes
4286else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004287 ac_cv_c_bigendian=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004288fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00004290fi
Benny Prijonod5233702010-01-13 13:09:45 +00004291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 fi
4293 if test $ac_cv_c_bigendian = unknown; then
4294 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Benny Prijonofe0c1272010-01-13 16:28:15 +00004295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004296/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00004297#include <limits.h>
4298
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004299int
4300main ()
4301{
Benny Prijonod5233702010-01-13 13:09:45 +00004302#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4303 bogus endian macros
4304 #endif
4305
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004306 ;
4307 return 0;
4308}
4309_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004310if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00004311 # It does; now see whether it defined to _BIG_ENDIAN or not.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00004313/* end confdefs.h. */
4314#include <limits.h>
4315
4316int
4317main ()
4318{
4319#ifndef _BIG_ENDIAN
4320 not big endian
4321 #endif
4322
4323 ;
4324 return 0;
4325}
4326_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004327if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004328 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004329else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004330 ac_cv_c_bigendian=no
Benny Prijonod5233702010-01-13 13:09:45 +00004331fi
Benny Prijonod5233702010-01-13 13:09:45 +00004332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00004333fi
Benny Prijonod5233702010-01-13 13:09:45 +00004334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 if test $ac_cv_c_bigendian = unknown; then
4337 # Compile a test program.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004338 if test "$cross_compiling" = yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00004339 # Try to guess by grepping values from an object file.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00004341/* end confdefs.h. */
4342short int ascii_mm[] =
4343 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4344 short int ascii_ii[] =
4345 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4346 int use_ascii (int i) {
4347 return ascii_mm[i] + ascii_ii[i];
4348 }
4349 short int ebcdic_ii[] =
4350 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4351 short int ebcdic_mm[] =
4352 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4353 int use_ebcdic (int i) {
4354 return ebcdic_mm[i] + ebcdic_ii[i];
4355 }
4356 extern int foo;
4357
4358int
4359main ()
4360{
4361return use_ascii (foo) == use_ebcdic (foo);
4362 ;
4363 return 0;
4364}
4365_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004366if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00004367 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4368 ac_cv_c_bigendian=yes
4369 fi
4370 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4371 if test "$ac_cv_c_bigendian" = unknown; then
4372 ac_cv_c_bigendian=no
4373 else
4374 # finding both strings is unlikely to happen, but who knows?
4375 ac_cv_c_bigendian=unknown
4376 fi
4377 fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004378fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004380else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004382/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004383$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004384int
4385main ()
4386{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004387
Benny Prijonod5233702010-01-13 13:09:45 +00004388 /* Are we little or big endian? From Harbison&Steele. */
4389 union
4390 {
4391 long int l;
4392 char c[sizeof (long int)];
4393 } u;
4394 u.l = 1;
4395 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004396
4397 ;
4398 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004399}
4400_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004401if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004402 ac_cv_c_bigendian=no
4403else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004404 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004405fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00004406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4407 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004408fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004409
Benny Prijonod5233702010-01-13 13:09:45 +00004410 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004411fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00004412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004413$as_echo "$ac_cv_c_bigendian" >&6; }
4414 case $ac_cv_c_bigendian in #(
4415 yes)
Benny Prijonofe0c1272010-01-13 16:28:15 +00004416 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004417;; #(
4418 no)
4419 ;; #(
4420 universal)
4421
Benny Prijonofe0c1272010-01-13 16:28:15 +00004422$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004423
4424 ;; #(
4425 *)
Benny Prijonofe0c1272010-01-13 16:28:15 +00004426 as_fn_error "unknown endianness
4427 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Benny Prijonod5233702010-01-13 13:09:45 +00004428 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004429
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004430
4431case $target in
4432 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe0c1272010-01-13 16:28:15 +00004433 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004434
Benny Prijonofe0c1272010-01-13 16:28:15 +00004435 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004436
Benny Prijonofe0c1272010-01-13 16:28:15 +00004437 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004438
4439 ;;
4440 *darwin*)
Benny Prijonofe0c1272010-01-13 16:28:15 +00004441 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004442
4443 ;;
4444 *linux*)
Benny Prijonofe0c1272010-01-13 16:28:15 +00004445 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004446
4447 ;;
4448 *rtems*)
Benny Prijonofe0c1272010-01-13 16:28:15 +00004449 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004450
4451 ;;
4452 *sunos* | *solaris* )
Benny Prijonofe0c1272010-01-13 16:28:15 +00004453 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004454
4455 ;;
4456 *)
4457 ;;
4458esac
4459
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004460
4461
4462
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004463# Check whether --enable-floating-point was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00004464if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004465 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00004466 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004467
Benny Prijonofe0c1272010-01-13 16:28:15 +00004468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004469$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004470 fi
4471else
4472
Benny Prijonofe0c1272010-01-13 16:28:15 +00004473 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004474
Benny Prijonofe0c1272010-01-13 16:28:15 +00004475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004476$as_echo "Checking if floating point is disabled... no" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004478$as_echo_n "checking for fmod in -lm... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004479if test "${ac_cv_lib_m_fmod+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00004480 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004481else
4482 ac_check_lib_save_LIBS=$LIBS
4483LIBS="-lm $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00004484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004485/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004486
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004487/* Override any GCC internal prototype to avoid an error.
4488 Use char because int might match the return type of a GCC
4489 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004490#ifdef __cplusplus
4491extern "C"
4492#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004493char fmod ();
4494int
4495main ()
4496{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004497return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004498 ;
4499 return 0;
4500}
4501_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004502if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004503 ac_cv_lib_m_fmod=yes
4504else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004505 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004506fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00004507rm -f core conftest.err conftest.$ac_objext \
4508 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004509LIBS=$ac_check_lib_save_LIBS
4510fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00004511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004512$as_echo "$ac_cv_lib_m_fmod" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004513if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004514 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004515#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004516_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004517
4518 LIBS="-lm $LIBS"
4519
4520fi
4521
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004522
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004523fi
4524
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004525
4526
Benny Prijonofe0c1272010-01-13 16:28:15 +00004527ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4528if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4529 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004530
4531fi
4532
4533
Benny Prijonofe0c1272010-01-13 16:28:15 +00004534ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4535if test "x$ac_cv_header_assert_h" = x""yes; then :
4536 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004537
4538fi
4539
4540
Benny Prijonofe0c1272010-01-13 16:28:15 +00004541ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4542if test "x$ac_cv_header_ctype_h" = x""yes; then :
4543 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004544
4545fi
4546
4547
4548
4549case $target in
4550 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe0c1272010-01-13 16:28:15 +00004551 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004552
4553 ;;
4554 *)
Benny Prijonofe0c1272010-01-13 16:28:15 +00004555 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4556if test "x$ac_cv_header_errno_h" = x""yes; then :
4557 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004558
4559fi
4560
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004561
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004562 ;;
4563esac
4564
Benny Prijonofe0c1272010-01-13 16:28:15 +00004565ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4566if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4567 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004568
4569fi
4570
4571
Benny Prijonofe0c1272010-01-13 16:28:15 +00004572ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4573if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4574 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004575
4576fi
4577
4578
Benny Prijonofe0c1272010-01-13 16:28:15 +00004579ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4580if test "x$ac_cv_header_malloc_h" = x""yes; then :
4581 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004582
4583fi
4584
4585
Benny Prijonofe0c1272010-01-13 16:28:15 +00004586ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4587if test "x$ac_cv_header_netdb_h" = x""yes; then :
4588 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004589
4590fi
4591
4592
Benny Prijonofe0c1272010-01-13 16:28:15 +00004593ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4594if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4595 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004596
4597fi
4598
4599
Benny Prijonofe0c1272010-01-13 16:28:15 +00004600ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4601if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4602 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004603
4604fi
4605
4606
Benny Prijonofe0c1272010-01-13 16:28:15 +00004607ac_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 +00004608 # include <sys/types.h>
4609 #endif
4610 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004611 # include <netinet/in_systm.h>
4612 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004613 #if PJ_HAS_NETINET_IN_H
4614 # include <netinet/in.h>
4615 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004616
Benny Prijonofe0c1272010-01-13 16:28:15 +00004617"
4618if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4619 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijonof63a2552007-02-01 00:36:52 +00004620
Benny Prijonof63a2552007-02-01 00:36:52 +00004621fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004622
Benny Prijonof63a2552007-02-01 00:36:52 +00004623
Benny Prijonofe0c1272010-01-13 16:28:15 +00004624ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4625if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4626 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004627
Benny Prijono1d61ba52009-10-24 00:00:40 +00004628fi
4629
Benny Prijono1d61ba52009-10-24 00:00:40 +00004630
Benny Prijonofe0c1272010-01-13 16:28:15 +00004631ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4632if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
4633 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004634
Benny Prijono1d61ba52009-10-24 00:00:40 +00004635fi
4636
Benny Prijono1d61ba52009-10-24 00:00:40 +00004637
Benny Prijonofe0c1272010-01-13 16:28:15 +00004638ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4639if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4640 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004641
4642fi
4643
4644
Benny Prijonofe0c1272010-01-13 16:28:15 +00004645ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4646if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4647 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono1d65f702007-12-03 04:03:17 +00004648
Benny Prijono1d65f702007-12-03 04:03:17 +00004649fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004650
Benny Prijono1d65f702007-12-03 04:03:17 +00004651
Benny Prijonofe0c1272010-01-13 16:28:15 +00004652ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4653if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4654 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono1d65f702007-12-03 04:03:17 +00004655
Benny Prijono1d65f702007-12-03 04:03:17 +00004656fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004657
Benny Prijono1d65f702007-12-03 04:03:17 +00004658
Benny Prijonofe0c1272010-01-13 16:28:15 +00004659ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4660if test "x$ac_cv_header_stddef_h" = x""yes; then :
4661 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004662
Benny Prijono1d65f702007-12-03 04:03:17 +00004663fi
Benny Prijono1d65f702007-12-03 04:03:17 +00004664
Benny Prijono1d65f702007-12-03 04:03:17 +00004665
Benny Prijonofe0c1272010-01-13 16:28:15 +00004666ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4667if test "x$ac_cv_header_stdio_h" = x""yes; then :
4668 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004669
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004670fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004671
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004672
Benny Prijonofe0c1272010-01-13 16:28:15 +00004673ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4674if test "x$ac_cv_header_stdint_h" = x""yes; then :
4675 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004676
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004677fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004678
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004679
Benny Prijonofe0c1272010-01-13 16:28:15 +00004680ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4681if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4682 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004683
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004684fi
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004685
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004686
Benny Prijonofe0c1272010-01-13 16:28:15 +00004687ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4688if test "x$ac_cv_header_string_h" = x""yes; then :
4689 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004690
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004691fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004692
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004693
Benny Prijonofe0c1272010-01-13 16:28:15 +00004694ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4695if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4696 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004697
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004698fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004699
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004700
Benny Prijonofe0c1272010-01-13 16:28:15 +00004701ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4702if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4703 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004704
4705fi
4706
4707
Benny Prijonofe0c1272010-01-13 16:28:15 +00004708ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4709if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4710 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004711
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004712fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004713
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004714
Benny Prijonofe0c1272010-01-13 16:28:15 +00004715ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4716if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4717 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004718
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004719fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004720
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004721
Benny Prijonofe0c1272010-01-13 16:28:15 +00004722ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4723if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4724 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004725
4726fi
4727
4728
Benny Prijonofe0c1272010-01-13 16:28:15 +00004729ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4730if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4731 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004732
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004733fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004734
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004735
Benny Prijonoa1aec0e2010-01-13 21:28:06 +00004736ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4737if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4738 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
4739
4740fi
4741
4742
4743ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4744if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4745 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
4746
4747fi
4748
4749
Benny Prijonofe0c1272010-01-13 16:28:15 +00004750ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4751if test "x$ac_cv_header_time_h" = x""yes; then :
4752 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004753
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004754fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004755
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004756
Benny Prijonofe0c1272010-01-13 16:28:15 +00004757ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4758if test "x$ac_cv_header_unistd_h" = x""yes; then :
4759 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004760
4761fi
4762
4763
Benny Prijonofe0c1272010-01-13 16:28:15 +00004764ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4765if test "x$ac_cv_header_winsock_h" = x""yes; then :
4766 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004767
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004768fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004769
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004770
Benny Prijonofe0c1272010-01-13 16:28:15 +00004771ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4772if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4773 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004774
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004775fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004776
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004777
Benny Prijonofe0c1272010-01-13 16:28:15 +00004778ac_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 +00004779 # include <winsock2.h>
4780 #elif PJ_HAS_WINSOCK_H
4781 # include <winsock.h>
4782 #endif
4783
Benny Prijonofe0c1272010-01-13 16:28:15 +00004784"
4785if test "x$ac_cv_header_mswsock_h" = x""yes; then :
4786 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00004787
4788fi
4789
4790
Benny Prijonofe0c1272010-01-13 16:28:15 +00004791ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
4792if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
4793 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00004794
4795fi
4796
4797
Benny Prijonofe0c1272010-01-13 16:28:15 +00004798ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
4799if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004800 ac_has_uuid_h=1
4801fi
4802
4803
Benny Prijonofe0c1272010-01-13 16:28:15 +00004804ac_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 +00004805 # include <sys/types.h>
4806 #endif
4807 #if PJ_HAS_SYS_SOCKET_H
4808
Benny Prijono188ba7e2008-03-25 13:53:16 +00004809 # include <sys/socket.h>
4810 #endif
4811
Benny Prijonofe0c1272010-01-13 16:28:15 +00004812"
4813if test "x$ac_cv_header_net_if_h" = x""yes; then :
4814 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00004815
4816fi
4817
Benny Prijono188ba7e2008-03-25 13:53:16 +00004818
Benny Prijonofe0c1272010-01-13 16:28:15 +00004819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004820$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004821cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004822#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004823_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004824
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004825
Benny Prijonofe0c1272010-01-13 16:28:15 +00004826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004827$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004828$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004829
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004830
Benny Prijonofe0c1272010-01-13 16:28:15 +00004831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004832$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004833$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004834
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004835
Benny Prijonofe0c1272010-01-13 16:28:15 +00004836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004837$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004838$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004839
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004840
Benny Prijonofe0c1272010-01-13 16:28:15 +00004841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004842$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004843$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004844
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004845
Benny Prijonofe0c1272010-01-13 16:28:15 +00004846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004847$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004848$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004849
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004850
Benny Prijonofe0c1272010-01-13 16:28:15 +00004851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004852$as_echo_n "checking if inet_aton() is available... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004854/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004855#include <sys/types.h>
4856 #include <sys/socket.h>
4857 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004858int
4859main ()
4860{
4861inet_aton(0, 0);
4862 ;
4863 return 0;
4864}
4865_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004866if ac_fn_c_try_compile "$LINENO"; then :
4867 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004868
Benny Prijonofe0c1272010-01-13 16:28:15 +00004869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004870$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004871else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004873$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004874fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876
Benny Prijonofe0c1272010-01-13 16:28:15 +00004877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004878$as_echo_n "checking if inet_pton() is available... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004880/* end confdefs.h. */
4881#include <sys/types.h>
4882 #include <sys/socket.h>
4883 #include <arpa/inet.h>
4884int
4885main ()
4886{
4887inet_pton(0, 0, 0);
4888 ;
4889 return 0;
4890}
4891_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004892if ac_fn_c_try_compile "$LINENO"; then :
4893 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004894
Benny Prijonofe0c1272010-01-13 16:28:15 +00004895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004896$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004897else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004899$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004900fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902
Benny Prijonofe0c1272010-01-13 16:28:15 +00004903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004904$as_echo_n "checking if inet_ntop() is available... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004906/* end confdefs.h. */
4907#include <sys/types.h>
4908 #include <sys/socket.h>
4909 #include <arpa/inet.h>
4910int
4911main ()
4912{
4913inet_ntop(0, 0, 0, 0);
4914 ;
4915 return 0;
4916}
4917_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004918if ac_fn_c_try_compile "$LINENO"; then :
4919 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004920
Benny Prijonofe0c1272010-01-13 16:28:15 +00004921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004922$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004923else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004925$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004926fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928
Benny Prijonofe0c1272010-01-13 16:28:15 +00004929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004930$as_echo_n "checking if getaddrinfo() is available... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004932/* end confdefs.h. */
4933#include <sys/types.h>
4934 #include <sys/socket.h>
4935 #include <netdb.h>
4936int
4937main ()
4938{
4939getaddrinfo(0, 0, 0, 0);
4940 ;
4941 return 0;
4942}
4943_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004944if ac_fn_c_try_compile "$LINENO"; then :
4945 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004946
Benny Prijonofe0c1272010-01-13 16:28:15 +00004947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004948$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004949else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004951$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004952fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954
Benny Prijonofe0c1272010-01-13 16:28:15 +00004955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004956$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004958/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00004959#include <sys/types.h>
4960 #include <sys/socket.h>
4961 #include <netinet/in.h>
4962 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004963int
4964main ()
4965{
4966struct sockaddr_in a; a.sin_len=0;
4967 ;
4968 return 0;
4969}
4970_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004971if ac_fn_c_try_compile "$LINENO"; then :
4972 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004973
Benny Prijonofe0c1272010-01-13 16:28:15 +00004974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004975$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004976else
Benny Prijonofe0c1272010-01-13 16:28:15 +00004977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004978$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004979fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981
Benny Prijonofe0c1272010-01-13 16:28:15 +00004982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00004983$as_echo_n "checking if socklen_t is available... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00004984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004985/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00004986#include <sys/types.h>
4987 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00004988int
4989main ()
4990{
4991socklen_t xxx = 0;
4992 ;
4993 return 0;
4994}
4995_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00004996if ac_fn_c_try_compile "$LINENO"; then :
4997 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00004998
Benny Prijonofe0c1272010-01-13 16:28:15 +00004999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005000$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005001else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005003$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005004fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006
Benny Prijonofe0c1272010-01-13 16:28:15 +00005007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005008$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005009case $target in
5010 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe0c1272010-01-13 16:28:15 +00005011 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005012
Benny Prijonofe0c1272010-01-13 16:28:15 +00005013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005014$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005015 ;;
5016 *)
Benny Prijonofe0c1272010-01-13 16:28:15 +00005017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005018/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005019#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005020 #include <sys/socket.h>
5021 #include <netinet/in.h>
5022 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005023int
5024main ()
5025{
5026int i=SO_ERROR;
5027 ;
5028 return 0;
5029}
5030_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005031if ac_fn_c_try_compile "$LINENO"; then :
5032 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005033
Benny Prijonofe0c1272010-01-13 16:28:15 +00005034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005035$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005036else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005038$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005039fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005041 ;;
5042esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005043
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005044
Benny Prijonofe0c1272010-01-13 16:28:15 +00005045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005046$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005048/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005049#include <pthread.h>
5050int
5051main ()
5052{
5053pthread_rwlock_t *x;
5054 ;
5055 return 0;
5056}
5057_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005058if ac_fn_c_try_compile "$LINENO"; then :
5059 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005060
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005061 ac_rwmutex="yes"
Benny Prijonofe0c1272010-01-13 16:28:15 +00005062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005063$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005064else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005065 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005066
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005067 ac_rwmutex="no"
Benny Prijonofe0c1272010-01-13 16:28:15 +00005068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005069$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005070fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005072
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005073if test "$ac_rwmutex" = "no"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005075$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005077/* end confdefs.h. */
5078#define _POSIX_READER_WRITER_LOCKS
5079 #include <pthread.h>
5080int
5081main ()
5082{
5083pthread_rwlock_t *x;
5084 ;
5085 return 0;
5086}
5087_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005088if ac_fn_c_try_compile "$LINENO"; then :
5089 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005090
5091 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005093$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005094else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005095 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005096
Benny Prijonofe0c1272010-01-13 16:28:15 +00005097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005098$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005099fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101fi
5102
Benny Prijonofe0c1272010-01-13 16:28:15 +00005103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005104$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005106/* end confdefs.h. */
5107#include <pthread.h>
5108int
5109main ()
5110{
5111pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5112 ;
5113 return 0;
5114}
5115_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005116if ac_fn_c_try_compile "$LINENO"; then :
5117 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005118
Benny Prijonofe0c1272010-01-13 16:28:15 +00005119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005120$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005121else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005123$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005124fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126
Benny Prijonofe0c1272010-01-13 16:28:15 +00005127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005128$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005130/* end confdefs.h. */
5131#include <pthread.h>
5132int
5133main ()
5134{
5135pthread_mutexattr_t attr;
5136 attr.recursive=1;
5137 ;
5138 return 0;
5139}
5140_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005141if ac_fn_c_try_compile "$LINENO"; then :
5142 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005143
Benny Prijonofe0c1272010-01-13 16:28:15 +00005144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005145$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005146else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005148$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005149fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005151
Benny Prijono99eec382008-09-18 21:22:16 +00005152
Benny Prijonofe0c1272010-01-13 16:28:15 +00005153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005154$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005155# Check whether --enable-epoll was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005156if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005157 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005158 ac_os_objs=ioqueue_epoll.o
Benny Prijonofe0c1272010-01-13 16:28:15 +00005159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005160$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005161
5162else
5163
5164 ac_os_objs=ioqueue_select.o
Benny Prijonofe0c1272010-01-13 16:28:15 +00005165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005166$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005167
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005168fi
5169
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005170
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005171
5172case $target in
5173 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005174 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 +00005175 ;;
5176 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005177 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"
Benny Prijono4e48b512007-05-16 13:41:00 +00005178 # UUID
5179 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5180 ac_os_objs="$ac_os_objs guid_uuid.o"
5181 else
5182 ac_os_objs="$ac_os_objs guid_simple.o"
5183 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005184 ;;
5185esac
5186
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005187
5188
5189
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005190ac_external_speex=0
5191
5192
5193# Check whether --with-external-speex was given.
5194if test "${with_external_speex+set}" = set; then :
5195 withval=$with_external_speex;
5196 if test "x$with_external_speex" != "xno"; then
5197 # Test Speex installation
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5199$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h. */
5202#include <speex/speex.h>
5203 #include <speex/speex_echo.h>
5204
5205int
5206main ()
5207{
5208speex_echo_state_init(0, 0); speex_encoder_init(0);
5209 ;
5210 return 0;
5211}
5212_ACEOF
5213if ac_fn_c_try_compile "$LINENO"; then :
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5215$as_echo "yes!!" >&6; }
5216 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
5217
5218 ac_external_speex="1"
5219
5220else
5221 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
5222fi
5223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 fi
5225
5226
5227fi
5228
5229
5230ac_external_gsm=0
5231
5232
5233# Check whether --with-external-gsm was given.
5234if test "${with_external_gsm+set}" = set; then :
5235 withval=$with_external_gsm;
5236 if test "x$with_external_gsm" != "xno"; then
5237 # Test GSM library installation
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed" >&5
5239$as_echo_n "checking if external GSM devkit is installed... " >&6; }
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h. */
5242#include <gsm/gsm.h>
5243
5244int
5245main ()
5246{
5247gsm_create();
5248 ;
5249 return 0;
5250}
5251
5252_ACEOF
5253if ac_fn_c_try_compile "$LINENO"; then :
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5255$as_echo "yes!!" >&6; }
5256 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5257
5258 ac_external_gsm="1"
5259
5260else
5261 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
5262fi
5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 fi
5265
5266
5267fi
5268
5269
5270
5271
Benny Prijono4e48b512007-05-16 13:41:00 +00005272
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005273# Check whether --enable-sound was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005274if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005275 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005276 ac_pjmedia_snd=null
Benny Prijonofe0c1272010-01-13 16:28:15 +00005277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005278$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005279 fi
5280
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005281fi
5282
Benny Prijono1d971622006-09-10 22:27:40 +00005283
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005284ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005285
Benny Prijono27c98722007-04-09 21:28:15 +00005286
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005287# Check whether --with-external-pa was given.
5288if test "${with_external_pa+set}" = set; then :
5289 withval=$with_external_pa;
5290 if test "x$with_external_pa" != "xno"; then
5291 # Test PortAudio installation
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5293$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h. */
5296#include <portaudio.h>
5297
5298int
5299main ()
5300{
5301Pa_Initialize();
5302 ;
5303 return 0;
5304}
5305_ACEOF
5306if ac_fn_c_try_compile "$LINENO"; then :
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5308$as_echo "yes!!" >&6; }
5309 ac_external_pa="1"
5310
5311else
5312 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
5313fi
5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005315 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005316
Benny Prijono27c98722007-04-09 21:28:15 +00005317
5318fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005319
5320
5321
Benny Prijonofe0c1272010-01-13 16:28:15 +00005322ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5323if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005324 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5325fi
5326
5327
Benny Prijonofe0c1272010-01-13 16:28:15 +00005328ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5329if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005330 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5331fi
5332
5333
Benny Prijonofe0c1272010-01-13 16:28:15 +00005334ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5335if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005336 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5337fi
5338
5339
5340
Benny Prijono3e091672008-01-09 15:43:02 +00005341if test "x$ac_cv_c_bigendian" = "xyes"; then
5342 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5343else
5344 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5345fi
5346
Benny Prijono1d971622006-09-10 22:27:40 +00005347if test "$enable_sound" = "no"; then
5348 true;
5349else
5350 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00005351 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005352 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5353 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005354 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005355 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5356 ac_pjmedia_snd=pa_old_darwinos
Benny Prijonofe0c1272010-01-13 16:28:15 +00005357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005358$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005359 else
5360 ac_pjmedia_snd=pa_darwinos
Benny Prijonofe0c1272010-01-13 16:28:15 +00005361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005362$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005363 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005364 ;;
5365 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005366 ac_pjmedia_snd=pa_win32
Benny Prijonofe0c1272010-01-13 16:28:15 +00005367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005368$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005369 ;;
5370 *rtems*)
5371 ac_pjmedia_snd=null
Benny Prijonofe0c1272010-01-13 16:28:15 +00005372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005373$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005374 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005375 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005376 ac_pjmedia_snd=pa_unix
Benny Prijonofe0c1272010-01-13 16:28:15 +00005377 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5378if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005379 ac_pa_use_alsa=1
5380
5381 LIBS="$LIBS -lasound"
5382
5383else
5384 ac_pa_use_alsa=0
5385
5386fi
5387
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005388
Benny Prijonofe0c1272010-01-13 16:28:15 +00005389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005390$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005391
5392 ac_pa_use_oss=1
5393
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005394 # Check whether --enable-oss was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005395if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005396 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005397 if test "$enable_oss" = "no"; then
5398 ac_pa_use_oss=0
Benny Prijonofe0c1272010-01-13 16:28:15 +00005399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005400$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005401 fi
5402
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005403fi
5404
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005405 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005406 esac
5407fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005408
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005409# Check whether --enable-ext_sound was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005410if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005411 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005412 ac_pjmedia_snd=external
Benny Prijonofe0c1272010-01-13 16:28:15 +00005413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005414$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005415 fi
5416
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005417fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005418
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005419
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005420
5421# Check whether --enable-small-filter was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005422if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005423 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005424 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonofe0c1272010-01-13 16:28:15 +00005425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005426$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005427 fi
5428else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005430$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005431fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005432
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005433
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005434
5435# Check whether --enable-large-filter was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005436if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005437 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005438 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonofe0c1272010-01-13 16:28:15 +00005439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005440$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005441 fi
5442else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005444$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005445fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005446
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005447
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005448
5449# Check whether --enable-speex-aec was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005450if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005451 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005452 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonofe0c1272010-01-13 16:28:15 +00005453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005454$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005455 fi
5456else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005458$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005459fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005460
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005461
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005462
5463# Check whether --enable-g711-codec was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005464if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005465 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005466 ac_no_g711_codec=1
Benny Prijonofe0c1272010-01-13 16:28:15 +00005467 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005468
Benny Prijonofe0c1272010-01-13 16:28:15 +00005469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005470$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005471 fi
5472else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005474$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005475fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005476
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005477
5478
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005479
5480# Check whether --enable-l16-codec was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005481if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005482 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005483 ac_no_l16_codec=1
Benny Prijonofe0c1272010-01-13 16:28:15 +00005484 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005485
Benny Prijonofe0c1272010-01-13 16:28:15 +00005486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005487$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005488 fi
5489else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005491$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005492fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005493
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005494
5495
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005496
5497# Check whether --enable-gsm-codec was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005498if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005499 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005500 ac_no_gsm_codec=1
Benny Prijonofe0c1272010-01-13 16:28:15 +00005501 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005502
Benny Prijonofe0c1272010-01-13 16:28:15 +00005503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005504$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005505 fi
5506else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005508$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005509fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005510
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005511
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005512
5513# Check whether --enable-g722-codec was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005514if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005515 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005516 ac_no_g722_codec=1
Benny Prijonofe0c1272010-01-13 16:28:15 +00005517 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005518
Benny Prijonofe0c1272010-01-13 16:28:15 +00005519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005520$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005521 fi
5522else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005524$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005525fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005526
5527
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005528
5529# Check whether --enable-g7221-codec was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005530if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005531 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5532 ac_no_g7221_codec=1
Benny Prijonofe0c1272010-01-13 16:28:15 +00005533 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005534
Benny Prijonofe0c1272010-01-13 16:28:15 +00005535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005536$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005537 fi
5538else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005540$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005541fi
5542
5543
5544
5545# Check whether --enable-speex-codec was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005546if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005547 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005548 ac_no_speex_codec=1
Benny Prijonofe0c1272010-01-13 16:28:15 +00005549 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005550
Benny Prijonofe0c1272010-01-13 16:28:15 +00005551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005552$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005553 fi
5554else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005556$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005557fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005558
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005559
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005560
5561# Check whether --enable-ilbc-codec was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005562if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005563 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005564 ac_no_ilbc_codec=1
Benny Prijonofe0c1272010-01-13 16:28:15 +00005565 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005566
Benny Prijonofe0c1272010-01-13 16:28:15 +00005567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005568$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005569 fi
5570else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005572$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005573fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005574
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005575
5576# Check whether --enable-libsamplerate was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005577if test "${enable_libsamplerate+set}" = set; then :
5578 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005579$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005580if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00005581 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005582else
5583 ac_check_lib_save_LIBS=$LIBS
5584LIBS="-lsamplerate $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00005585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005586/* end confdefs.h. */
5587
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005588/* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005591#ifdef __cplusplus
5592extern "C"
5593#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005594char src_new ();
5595int
5596main ()
5597{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005598return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005599 ;
5600 return 0;
5601}
5602_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005603if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005604 ac_cv_lib_samplerate_src_new=yes
5605else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005606 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005607fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005608rm -f core conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005610LIBS=$ac_check_lib_save_LIBS
5611fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005613$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005614if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005615 cat >>confdefs.h <<_ACEOF
5616#define HAVE_LIBSAMPLERATE 1
5617_ACEOF
5618
5619 LIBS="-lsamplerate $LIBS"
5620
5621fi
5622
5623else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005625$as_echo "Skipping libsamplerate detection" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +00005626
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005627fi
Benny Prijono0822c192008-08-21 20:59:58 +00005628
5629
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005630
5631# Check whether --enable-ipp was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005632if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005633 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005634else
5635 enable_ipp=no
5636
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005637fi
Benny Prijono0822c192008-08-21 20:59:58 +00005638
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005639
5640# Check whether --enable-ipp was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005641if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005642 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005643else
5644 with_ipp=no
5645
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005646fi
Benny Prijono0822c192008-08-21 20:59:58 +00005647
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005648
5649# Check whether --enable-ipp-samples was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005650if test "${enable_ipp_samples+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005651 enableval=$enable_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00005652else
5653 with_ipp_samples=no
5654
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005655fi
5656
Benny Prijono0822c192008-08-21 20:59:58 +00005657
5658if test "x$enable_ipp" != "xno"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005660$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005661
5662 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005664$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005665 IPPROOT=$with_ipp
5666 elif test "x$IPPROOT" = "x"; then
5667 if test -d /opt/intel/ipp; then
5668 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijonofe0c1272010-01-13 16:28:15 +00005669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005670$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005671 fi
5672 else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005674$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005675 fi
5676
5677 if test x$IPPROOT = x; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005678 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 +00005679 elif test ! -d $IPPROOT; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005680 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005681 elif test ! -d $IPPROOT/include; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005682 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005683 else
5684 # IPP directory looks okay.
5685 # Remove trailing backslash
5686 IPPROOT=`echo $IPPROOT/ | sed 's/\/$//'`
5687
5688 SAVED_CFLAGS="$CFLAGS"
5689 SAVED_LDFLAGS="$LDFLAGS"
5690 SAVED_LIBS="$LIBS"
5691
5692 IPP_CFLAGS="-I$IPPROOT/include"
5693 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
5694 IPP_LIBS="-lippsc -lipps -lippsr -lippcore -lguide"
5695 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
5696 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
5697
5698 CFLAGS="$CFLAGS $IPP_CFLAGS"
5699 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
5700 LIBS="$IPP_LIBS $LIBS"
5701
5702
Benny Prijonofe0c1272010-01-13 16:28:15 +00005703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005704$as_echo_n "checking Intel IPP usability... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005706/* end confdefs.h. */
5707#include <ippcore.h>
5708
5709int
5710main ()
5711{
5712ippStaticInit();
5713 ;
5714 return 0;
5715}
5716_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005717if ac_fn_c_try_link "$LINENO"; then :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005719$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005720else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5723as_fn_error "failed
5724See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005725fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005726rm -f core conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005728
5729 CFLAGS="$SAVED_CFLAGS"
5730 LDFLAGS="$SAVED_LDFLAGS"
5731 LIBS="$SAVED_LIBS"
5732 fi
5733
Benny Prijonofe0c1272010-01-13 16:28:15 +00005734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005735$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005736
5737 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005739$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005740 IPPSAMPLES=$with_ipp_samples
5741 elif test "x$IPPSAMPLES" = "x"; then
5742 if test -d /opt/intel/ipp-samples; then
5743 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijonofe0c1272010-01-13 16:28:15 +00005744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005745$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005746 fi
5747 else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005749$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005750 fi
5751
5752 if test x$IPPSAMPLES = x; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005753 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 +00005754 elif test ! -d $IPPSAMPLES; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005755 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005756 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005757 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005758 else
5759 # Remove trailing backslash
5760 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
5761
5762 # Guess the libusc.a build location
Benny Prijonofe0c1272010-01-13 16:28:15 +00005763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005764$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005765 IPPSAMPLESLIB=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
5766 if test ! -d $IPPSAMPLESLIB; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769as_fn_error "the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples?
5770See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005771 fi
5772 if test ! -f $IPPSAMPLESLIB/libusc.a; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5775as_fn_error "libusc.a doesn't exist in $IPPSAMPLESLIB
5776See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005777 fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLESLIB" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005779$as_echo "$IPPSAMPLESLIB" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005780
5781 SAVED_CFLAGS="$CFLAGS"
5782 SAVED_LDFLAGS="$LDFLAGS"
5783 SAVED_LIBS="$LIBS"
5784
5785 IPPSAMPLESINC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
5786 CFLAGS="$CFLAGS $IPPSAMPLESINC"
5787 LDFLAGS="$LDFLAGS -L$IPPSAMPLESLIB"
5788 LIBS="-lusc $LIBS"
5789
Benny Prijonofe0c1272010-01-13 16:28:15 +00005790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005791$as_echo_n "checking Intel IPP USC usability... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005793/* end confdefs.h. */
5794#include <usc.h>
5795
5796int
5797main ()
5798{
5799extern USC_Fxns USC_G729AFP_Fxns;
5800 ;
5801 return 0;
5802}
5803_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005804if ac_fn_c_try_link "$LINENO"; then :
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005806$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005807else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5810as_fn_error "failed
5811See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005812fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005813rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005815
5816 CFLAGS="$SAVED_CFLAGS"
5817 LDFLAGS="\$(IPP_LDFLAGS) $SAVED_LDFLAGS"
5818 LIBS="\$(IPP_LIBS) $SAVED_LIBS"
5819
5820 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMPLESINC"
5821 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMPLESLIB"
5822 IPP_LIBS="-lusc $IPP_LIBS"
5823 fi
5824
5825 ac_build_mak_vars="$ac_build_mak_vars\n\
5826export IPP_CFLAGS=$IPP_CFLAGS\n\
5827export IPP_LDFLAGS=$IPP_LDFLAGS\n\
5828export IPP_LIBS=$IPP_LIBS"
5829else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005831$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005832fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005833
5834
5835
5836
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005837# Check whether --enable-ssl was given.
Benny Prijonofe0c1272010-01-13 16:28:15 +00005838if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005839 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005840 if test "$enable_ssl" = "no"; then
5841 ac_no_ssl=1
Benny Prijonofe0c1272010-01-13 16:28:15 +00005842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005843$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005844 fi
5845
5846else
5847
Benny Prijonofe0c1272010-01-13 16:28:15 +00005848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005849$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005850
5851
5852
Benny Prijonofe0c1272010-01-13 16:28:15 +00005853 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
5854if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005855 openssl_h_present=1
5856fi
5857
5858
Benny Prijonofe0c1272010-01-13 16:28:15 +00005859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005860$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005861if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00005862 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005863else
5864 ac_check_lib_save_LIBS=$LIBS
5865LIBS="-lcrypto $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00005866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005867/* end confdefs.h. */
5868
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005869/* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005872#ifdef __cplusplus
5873extern "C"
5874#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005875char ERR_load_BIO_strings ();
5876int
5877main ()
5878{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005879return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005880 ;
5881 return 0;
5882}
5883_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005884if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005885 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
5886else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005887 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005888fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005889rm -f core conftest.err conftest.$ac_objext \
5890 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005891LIBS=$ac_check_lib_save_LIBS
5892fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005894$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005895if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005896 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
5897fi
5898
Benny Prijonofe0c1272010-01-13 16:28:15 +00005899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005900$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005901if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
Benny Prijonod5233702010-01-13 13:09:45 +00005902 $as_echo_n "(cached) " >&6
5903else
5904 ac_check_lib_save_LIBS=$LIBS
5905LIBS="-lssl $LIBS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00005906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00005907/* end confdefs.h. */
5908
5909/* Override any GCC internal prototype to avoid an error.
5910 Use char because int might match the return type of a GCC
5911 builtin and then its argument prototype would still apply. */
5912#ifdef __cplusplus
5913extern "C"
5914#endif
5915char SSL_library_init ();
5916int
5917main ()
5918{
5919return SSL_library_init ();
5920 ;
5921 return 0;
5922}
5923_ACEOF
Benny Prijonofe0c1272010-01-13 16:28:15 +00005924if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00005925 ac_cv_lib_ssl_SSL_library_init=yes
5926else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005927 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00005928fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005929rm -f core conftest.err conftest.$ac_objext \
5930 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00005931LIBS=$ac_check_lib_save_LIBS
5932fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005934$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005935if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00005936 libssl_present=1 && LIBS="$LIBS -lssl"
5937fi
5938
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005939 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00005940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005941$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00005942 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
5943 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijonofe0c1272010-01-13 16:28:15 +00005944 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00005945
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005946 else
Benny Prijonofe0c1272010-01-13 16:28:15 +00005947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005948$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005949 fi
5950
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005951fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005952
5953
5954
5955
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005956
Benny Prijonofe0c1272010-01-13 16:28:15 +00005957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005958$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005959case $target in
Benny Prijonofe0c1272010-01-13 16:28:15 +00005960 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005961
Benny Prijonofe0c1272010-01-13 16:28:15 +00005962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005963$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005964 ;;
Benny Prijonofe0c1272010-01-13 16:28:15 +00005965 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005966
Benny Prijonofe0c1272010-01-13 16:28:15 +00005967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005968$as_echo "no (default)" >&6; }
Benny Prijonofe0c1272010-01-13 16:28:15 +00005969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005970$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005971 ;;
5972esac
5973
Benny Prijonofe0c1272010-01-13 16:28:15 +00005974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005975$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005976case $target in
Benny Prijonofe0c1272010-01-13 16:28:15 +00005977 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005978
Benny Prijonofe0c1272010-01-13 16:28:15 +00005979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005980$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005981 ;;
Benny Prijonofe0c1272010-01-13 16:28:15 +00005982 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005983
Benny Prijonofe0c1272010-01-13 16:28:15 +00005984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005985$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005986 ;;
5987esac
5988
Benny Prijonofe0c1272010-01-13 16:28:15 +00005989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005990$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005991case $target in
Benny Prijonofe0c1272010-01-13 16:28:15 +00005992 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005993
Benny Prijonofe0c1272010-01-13 16:28:15 +00005994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00005995$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005996 ;;
Benny Prijonofe0c1272010-01-13 16:28:15 +00005997 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005998
Benny Prijonofe0c1272010-01-13 16:28:15 +00005999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00006000$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006001 ;;
6002esac
6003
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006004case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006005 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe0c1272010-01-13 16:28:15 +00006006 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006007
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006008 ;;
Benny Prijonofe0c1272010-01-13 16:28:15 +00006009 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006010
Benny Prijonofe0c1272010-01-13 16:28:15 +00006011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00006012$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006013 ;;
6014esac
6015
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006016case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006017 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe0c1272010-01-13 16:28:15 +00006018 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006019
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006020 ;;
Benny Prijonofe0c1272010-01-13 16:28:15 +00006021 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006022
Benny Prijonofe0c1272010-01-13 16:28:15 +00006023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00006024$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006025 ;;
6026esac
6027
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006028
6029
6030
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006031if test "$build" = "$host"; then
6032 ac_cross_compile=
6033else
Benny Prijono5b818b22006-09-17 22:58:51 +00006034 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006035fi
6036ac_linux_poll=select
6037
6038ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006039
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006040
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006041case $target in
6042 *rtems*)
6043 ac_main_obj=main_rtems.o
6044 ;;
6045 *)
6046 ac_main_obj=main.o
6047 ;;
6048esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006049
Benny Prijono0822c192008-08-21 20:59:58 +00006050
6051ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006052cat >confcache <<\_ACEOF
6053# This file is a shell script that caches the results of configure
6054# tests run on this system so they can be shared between configure
6055# scripts and configure runs, see configure's option --config-cache.
6056# It is not useful on other systems. If it contains results you don't
6057# want to keep, you may remove or edit it.
6058#
6059# config.status only pays attention to the cache file if you give it
6060# the --recheck option to rerun configure.
6061#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006062# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006063# loading this file, other *unset* `ac_cv_foo' will be assigned the
6064# following values.
6065
6066_ACEOF
6067
6068# The following way of writing the cache mishandles newlines in values,
6069# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006070# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006071# Ultrix sh set writes to stderr and can't be redirected directly,
6072# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006073(
6074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6075 eval ac_val=\$$ac_var
6076 case $ac_val in #(
6077 *${as_nl}*)
6078 case $ac_var in #(
Benny Prijonofe0c1272010-01-13 16:28:15 +00006079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6080$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006081 esac
6082 case $ac_var in #(
6083 _ | IFS | as_nl) ;; #(
Benny Prijonod5233702010-01-13 13:09:45 +00006084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Benny Prijonofe0c1272010-01-13 16:28:15 +00006085 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006086 esac ;;
6087 esac
6088 done
6089
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006090 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006091 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6092 *${as_nl}ac_space=\ *)
Benny Prijonofe0c1272010-01-13 16:28:15 +00006093 # `set' does not quote correctly, so add quotes: double-quote
6094 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006095 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006096 "s/'/'\\\\''/g;
6097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006098 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006099 *)
6100 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006102 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006103 esac |
6104 sort
6105) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006106 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006107 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006108 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006109 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6111 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6113 :end' >>confcache
6114if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6115 if test -w "$cache_file"; then
6116 test "x$cache_file" != "x/dev/null" &&
Benny Prijonofe0c1272010-01-13 16:28:15 +00006117 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00006118$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006119 cat confcache >$cache_file
6120 else
Benny Prijonofe0c1272010-01-13 16:28:15 +00006121 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00006122$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006123 fi
6124fi
6125rm -f confcache
6126
6127test "x$prefix" = xNONE && prefix=$ac_default_prefix
6128# Let make expand exec_prefix.
6129test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6130
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006131DEFS=-DHAVE_CONFIG_H
6132
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006133ac_libobjs=
6134ac_ltlibobjs=
6135for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6136 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006137 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijonod5233702010-01-13 13:09:45 +00006138 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006139 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6140 # will be set to the directory where LIBOBJS objects are built.
Benny Prijonofe0c1272010-01-13 16:28:15 +00006141 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6142 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006143done
6144LIBOBJS=$ac_libobjs
6145
6146LTLIBOBJS=$ac_ltlibobjs
6147
6148
6149
Benny Prijonod5233702010-01-13 13:09:45 +00006150
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006151: ${CONFIG_STATUS=./config.status}
Benny Prijonod5233702010-01-13 13:09:45 +00006152ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006153ac_clean_files_save=$ac_clean_files
6154ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijonofe0c1272010-01-13 16:28:15 +00006155{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00006156$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Benny Prijonofe0c1272010-01-13 16:28:15 +00006157as_write_fail=0
6158cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006159#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006160# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006161# Run this file to recreate the current configuration.
6162# Compiler output produced by configure, useful for debugging
6163# configure, is in config.log if it exists.
6164
6165debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006166ac_cs_recheck=false
6167ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006168
Benny Prijonofe0c1272010-01-13 16:28:15 +00006169SHELL=\${CONFIG_SHELL-$SHELL}
6170export SHELL
6171_ASEOF
6172cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6173## -------------------- ##
6174## M4sh Initialization. ##
6175## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006176
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006177# Be more Bourne compatible
6178DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonofe0c1272010-01-13 16:28:15 +00006179if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006180 emulate sh
6181 NULLCMD=:
Benny Prijonod5233702010-01-13 13:09:45 +00006182 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006183 # is contrary to our usage. Disable this feature.
6184 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006185 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00006186else
Benny Prijonofe0c1272010-01-13 16:28:15 +00006187 case `(set -o) 2>/dev/null` in #(
6188 *posix*) :
6189 set -o posix ;; #(
6190 *) :
6191 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006192esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006193fi
6194
6195
Benny Prijonod5233702010-01-13 13:09:45 +00006196as_nl='
6197'
6198export as_nl
6199# Printing a long string crashes Solaris 7 /usr/bin/printf.
6200as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6201as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6202as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Benny Prijonofe0c1272010-01-13 16:28:15 +00006203# Prefer a ksh shell builtin over an external printf program on Solaris,
6204# but without wasting forks for bash or zsh.
6205if test -z "$BASH_VERSION$ZSH_VERSION" \
6206 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6207 as_echo='print -r --'
6208 as_echo_n='print -rn --'
6209elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Benny Prijonod5233702010-01-13 13:09:45 +00006210 as_echo='printf %s\n'
6211 as_echo_n='printf %s'
6212else
6213 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6214 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6215 as_echo_n='/usr/ucb/echo -n'
6216 else
6217 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6218 as_echo_n_body='eval
6219 arg=$1;
Benny Prijonofe0c1272010-01-13 16:28:15 +00006220 case $arg in #(
Benny Prijonod5233702010-01-13 13:09:45 +00006221 *"$as_nl"*)
6222 expr "X$arg" : "X\\(.*\\)$as_nl";
6223 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6224 esac;
6225 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6226 '
6227 export as_echo_n_body
6228 as_echo_n='sh -c $as_echo_n_body as_echo'
6229 fi
6230 export as_echo_body
6231 as_echo='sh -c $as_echo_body as_echo'
6232fi
6233
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006234# The user is always right.
6235if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonod5233702010-01-13 13:09:45 +00006236 PATH_SEPARATOR=:
6237 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6238 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6239 PATH_SEPARATOR=';'
6240 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006241fi
6242
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006243
6244# IFS
6245# We need space, tab and new line, in precisely that order. Quoting is
6246# there to prevent editors from complaining about space-tab.
6247# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6248# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006249IFS=" "" $as_nl"
6250
6251# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonofe0c1272010-01-13 16:28:15 +00006252case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006253 *[\\/]* ) as_myself=$0 ;;
6254 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006255for as_dir in $PATH
6256do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
Benny Prijonofe0c1272010-01-13 16:28:15 +00006259 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6260 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006261IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006262
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006263 ;;
6264esac
6265# We did not find ourselves, most probably we were run as `sh COMMAND'
6266# in which case we are not to be found in the path.
6267if test "x$as_myself" = x; then
6268 as_myself=$0
6269fi
6270if test ! -f "$as_myself"; then
Benny Prijonod5233702010-01-13 13:09:45 +00006271 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Benny Prijonofe0c1272010-01-13 16:28:15 +00006272 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006273fi
6274
Benny Prijonofe0c1272010-01-13 16:28:15 +00006275# Unset variables that we do not need and which cause bugs (e.g. in
6276# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6277# suppresses any "Segmentation fault" message there. '((' could
6278# trigger a bug in pdksh 5.2.14.
6279for as_var in BASH_ENV ENV MAIL MAILPATH
6280do eval test x\${$as_var+set} = xset \
6281 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006282done
6283PS1='$ '
6284PS2='> '
6285PS4='+ '
6286
6287# NLS nuisances.
Benny Prijonod5233702010-01-13 13:09:45 +00006288LC_ALL=C
6289export LC_ALL
6290LANGUAGE=C
6291export LANGUAGE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006292
Benny Prijonofe0c1272010-01-13 16:28:15 +00006293# CDPATH.
6294(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6295
6296
6297# as_fn_error ERROR [LINENO LOG_FD]
6298# ---------------------------------
6299# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6300# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6301# script with status $?, using 1 if that was 0.
6302as_fn_error ()
6303{
6304 as_status=$?; test $as_status -eq 0 && as_status=1
6305 if test "$3"; then
6306 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6307 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6308 fi
6309 $as_echo "$as_me: error: $1" >&2
6310 as_fn_exit $as_status
6311} # as_fn_error
6312
6313
6314# as_fn_set_status STATUS
6315# -----------------------
6316# Set $? to STATUS, without forking.
6317as_fn_set_status ()
6318{
6319 return $1
6320} # as_fn_set_status
6321
6322# as_fn_exit STATUS
6323# -----------------
6324# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6325as_fn_exit ()
6326{
6327 set +e
6328 as_fn_set_status $1
6329 exit $1
6330} # as_fn_exit
6331
6332# as_fn_unset VAR
6333# ---------------
6334# Portably unset VAR.
6335as_fn_unset ()
6336{
6337 { eval $1=; unset $1;}
6338}
6339as_unset=as_fn_unset
6340# as_fn_append VAR VALUE
6341# ----------------------
6342# Append the text in VALUE to the end of the definition contained in VAR. Take
6343# advantage of any shell optimizations that allow amortized linear growth over
6344# repeated appends, instead of the typical quadratic growth present in naive
6345# implementations.
6346if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6347 eval 'as_fn_append ()
6348 {
6349 eval $1+=\$2
6350 }'
6351else
6352 as_fn_append ()
6353 {
6354 eval $1=\$$1\$2
6355 }
6356fi # as_fn_append
6357
6358# as_fn_arith ARG...
6359# ------------------
6360# Perform arithmetic evaluation on the ARGs, and store the result in the
6361# global $as_val. Take advantage of shells that can avoid forks. The arguments
6362# must be portable across $(()) and expr.
6363if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6364 eval 'as_fn_arith ()
6365 {
6366 as_val=$(( $* ))
6367 }'
6368else
6369 as_fn_arith ()
6370 {
6371 as_val=`expr "$@" || test $? -eq 1`
6372 }
6373fi # as_fn_arith
6374
6375
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006376if expr a : '\(a\)' >/dev/null 2>&1 &&
6377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6378 as_expr=expr
6379else
6380 as_expr=false
6381fi
6382
6383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6384 as_basename=basename
6385else
6386 as_basename=false
6387fi
6388
Benny Prijonofe0c1272010-01-13 16:28:15 +00006389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6390 as_dirname=dirname
6391else
6392 as_dirname=false
6393fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006394
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006395as_me=`$as_basename -- "$0" ||
6396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6397 X"$0" : 'X\(//\)$' \| \
6398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod5233702010-01-13 13:09:45 +00006399$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006400 sed '/^.*\/\([^/][^/]*\)\/*$/{
6401 s//\1/
6402 q
6403 }
6404 /^X\/\(\/\/\)$/{
6405 s//\1/
6406 q
6407 }
6408 /^X\/\(\/\).*/{
6409 s//\1/
6410 q
6411 }
6412 s/.*/./; q'`
6413
Benny Prijonofe0c1272010-01-13 16:28:15 +00006414# Avoid depending upon Character Ranges.
6415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6418as_cr_digits='0123456789'
6419as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006420
6421ECHO_C= ECHO_N= ECHO_T=
Benny Prijonofe0c1272010-01-13 16:28:15 +00006422case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006423-n*)
Benny Prijonofe0c1272010-01-13 16:28:15 +00006424 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006425 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonofe0c1272010-01-13 16:28:15 +00006426 xy) ECHO_C='\c';;
6427 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6428 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006429 esac;;
6430*)
6431 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006432esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006433
6434rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006435if test -d conf$$.dir; then
6436 rm -f conf$$.dir/conf$$.file
6437else
6438 rm -f conf$$.dir
Benny Prijonod5233702010-01-13 13:09:45 +00006439 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006440fi
Benny Prijonod5233702010-01-13 13:09:45 +00006441if (echo >conf$$.file) 2>/dev/null; then
6442 if ln -s conf$$.file conf$$ 2>/dev/null; then
6443 as_ln_s='ln -s'
6444 # ... but there are two gotchas:
6445 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6446 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6447 # In both cases, we have to default to `cp -p'.
6448 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6449 as_ln_s='cp -p'
6450 elif ln conf$$.file conf$$ 2>/dev/null; then
6451 as_ln_s=ln
6452 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006453 as_ln_s='cp -p'
Benny Prijonod5233702010-01-13 13:09:45 +00006454 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006455else
6456 as_ln_s='cp -p'
6457fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006458rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6459rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006460
Benny Prijonofe0c1272010-01-13 16:28:15 +00006461
6462# as_fn_mkdir_p
6463# -------------
6464# Create "$as_dir" as a directory, including parents if necessary.
6465as_fn_mkdir_p ()
6466{
6467
6468 case $as_dir in #(
6469 -*) as_dir=./$as_dir;;
6470 esac
6471 test -d "$as_dir" || eval $as_mkdir_p || {
6472 as_dirs=
6473 while :; do
6474 case $as_dir in #(
6475 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6476 *) as_qdir=$as_dir;;
6477 esac
6478 as_dirs="'$as_qdir' $as_dirs"
6479 as_dir=`$as_dirname -- "$as_dir" ||
6480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6481 X"$as_dir" : 'X\(//\)[^/]' \| \
6482 X"$as_dir" : 'X\(//\)$' \| \
6483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6484$as_echo X"$as_dir" |
6485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6486 s//\1/
6487 q
6488 }
6489 /^X\(\/\/\)[^/].*/{
6490 s//\1/
6491 q
6492 }
6493 /^X\(\/\/\)$/{
6494 s//\1/
6495 q
6496 }
6497 /^X\(\/\).*/{
6498 s//\1/
6499 q
6500 }
6501 s/.*/./; q'`
6502 test -d "$as_dir" && break
6503 done
6504 test -z "$as_dirs" || eval "mkdir $as_dirs"
6505 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6506
6507
6508} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006509if mkdir -p . 2>/dev/null; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00006510 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00006511else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006512 test -d ./-p && rmdir ./-p
6513 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00006514fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006515
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006516if test -x / >/dev/null 2>&1; then
6517 as_test_x='test -x'
6518else
6519 if ls -dL / >/dev/null 2>&1; then
6520 as_ls_L_option=L
6521 else
6522 as_ls_L_option=
6523 fi
6524 as_test_x='
6525 eval sh -c '\''
6526 if test -d "$1"; then
Benny Prijonod5233702010-01-13 13:09:45 +00006527 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006528 else
Benny Prijonofe0c1272010-01-13 16:28:15 +00006529 case $1 in #(
Benny Prijonod5233702010-01-13 13:09:45 +00006530 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006531 esac;
Benny Prijonofe0c1272010-01-13 16:28:15 +00006532 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006533 ???[sx]*):;;*)false;;esac;fi
6534 '\'' sh
6535 '
6536fi
6537as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006538
6539# Sed expression to map a string onto a valid CPP name.
6540as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6541
6542# Sed expression to map a string onto a valid variable name.
6543as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6544
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006545
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006546exec 6>&1
Benny Prijonofe0c1272010-01-13 16:28:15 +00006547## ----------------------------------- ##
6548## Main body of $CONFIG_STATUS script. ##
6549## ----------------------------------- ##
6550_ASEOF
6551test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006552
Benny Prijonofe0c1272010-01-13 16:28:15 +00006553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6554# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006555# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006556# values after options handling.
6557ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006558This file was extended by pjproject $as_me 1.x, which was
Benny Prijonofe0c1272010-01-13 16:28:15 +00006559generated by GNU Autoconf 2.64. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006560
6561 CONFIG_FILES = $CONFIG_FILES
6562 CONFIG_HEADERS = $CONFIG_HEADERS
6563 CONFIG_LINKS = $CONFIG_LINKS
6564 CONFIG_COMMANDS = $CONFIG_COMMANDS
6565 $ $0 $@
6566
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006567on `(hostname || uname -n) 2>/dev/null | sed 1q`
6568"
6569
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006570_ACEOF
6571
Benny Prijonofe0c1272010-01-13 16:28:15 +00006572case $ac_config_files in *"
6573"*) set x $ac_config_files; shift; ac_config_files=$*;;
6574esac
6575
6576case $ac_config_headers in *"
6577"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6578esac
6579
6580
Benny Prijonod5233702010-01-13 13:09:45 +00006581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006582# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006583config_files="$ac_config_files"
6584config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006585
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006586_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006587
Benny Prijonod5233702010-01-13 13:09:45 +00006588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006589ac_cs_usage="\
Benny Prijonofe0c1272010-01-13 16:28:15 +00006590\`$as_me' instantiates files and other configuration actions
6591from templates according to the current configuration. Unless the files
6592and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006593
Benny Prijonofe0c1272010-01-13 16:28:15 +00006594Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006595
6596 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006597 -V, --version print version number and configuration settings, then exit
Benny Prijonofe0c1272010-01-13 16:28:15 +00006598 -q, --quiet, --silent
6599 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006600 -d, --debug don't remove temporary files
6601 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonofe0c1272010-01-13 16:28:15 +00006602 --file=FILE[:TEMPLATE]
Benny Prijonod5233702010-01-13 13:09:45 +00006603 instantiate the configuration file FILE
Benny Prijonofe0c1272010-01-13 16:28:15 +00006604 --header=FILE[:TEMPLATE]
Benny Prijonod5233702010-01-13 13:09:45 +00006605 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006606
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006607Configuration files:
6608$config_files
6609
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006610Configuration headers:
6611$config_headers
6612
Benny Prijonofe0c1272010-01-13 16:28:15 +00006613Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00006614
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006615_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +00006616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006617ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006618pjproject config.status 1.x
Benny Prijonofe0c1272010-01-13 16:28:15 +00006619configured by $0, generated by GNU Autoconf 2.64,
Benny Prijonod5233702010-01-13 13:09:45 +00006620 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006621
Benny Prijonofe0c1272010-01-13 16:28:15 +00006622Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006623This config.status script is free software; the Free Software Foundation
6624gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006625
6626ac_pwd='$ac_pwd'
6627srcdir='$srcdir'
Benny Prijonod5233702010-01-13 13:09:45 +00006628test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006629_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006630
Benny Prijonod5233702010-01-13 13:09:45 +00006631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6632# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006633ac_need_defaults=:
6634while test $# != 0
6635do
6636 case $1 in
6637 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6639 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006640 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006641 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006642 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006643 ac_option=$1
6644 ac_optarg=$2
6645 ac_shift=shift
6646 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006647 esac
6648
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006649 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006650 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006652 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006653 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijonod5233702010-01-13 13:09:45 +00006654 $as_echo "$ac_cs_version"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006655 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006656 debug=: ;;
6657 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006658 $ac_shift
Benny Prijonod5233702010-01-13 13:09:45 +00006659 case $ac_optarg in
6660 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6661 esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00006662 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006663 ac_need_defaults=false;;
6664 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006665 $ac_shift
Benny Prijonod5233702010-01-13 13:09:45 +00006666 case $ac_optarg in
6667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6668 esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00006669 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006670 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006671 --he | --h)
6672 # Conflict between --help and --header
Benny Prijonofe0c1272010-01-13 16:28:15 +00006673 as_fn_error "ambiguous option: \`$1'
6674Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006675 --help | --hel | -h )
Benny Prijonod5233702010-01-13 13:09:45 +00006676 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6679 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006680
6681 # This is an error.
Benny Prijonofe0c1272010-01-13 16:28:15 +00006682 -*) as_fn_error "unrecognized option: \`$1'
6683Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006684
Benny Prijonofe0c1272010-01-13 16:28:15 +00006685 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006686 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006687
6688 esac
6689 shift
6690done
6691
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006692ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006693
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006694if $ac_cs_silent; then
6695 exec 6>/dev/null
6696 ac_configure_extra_args="$ac_configure_extra_args --silent"
6697fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006698
6699_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +00006700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006701if \$ac_cs_recheck; then
Benny Prijonod5233702010-01-13 13:09:45 +00006702 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6703 shift
6704 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6705 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006706 export CONFIG_SHELL
Benny Prijonod5233702010-01-13 13:09:45 +00006707 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006708fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006709
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006710_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +00006711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006712exec 5>>config.log
6713{
6714 echo
6715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6716## Running $as_me. ##
6717_ASBOX
Benny Prijonod5233702010-01-13 13:09:45 +00006718 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006719} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006720
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006721_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +00006722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006723_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006724
Benny Prijonod5233702010-01-13 13:09:45 +00006725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006726
6727# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006728for ac_config_target in $ac_config_targets
6729do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006730 case $ac_config_target in
6731 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
6732 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
6733 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
6734 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
6735 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
6736 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
6737 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
6738 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
6739 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
6740 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
6741 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006742 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006743 "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 +00006744
Benny Prijonofe0c1272010-01-13 16:28:15 +00006745 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006746 esac
6747done
6748
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006749
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006750# If the user did not use the arguments to specify the items to instantiate,
6751# then the envvar interface is used. Set only those that are not.
6752# We use the long form for the default assignment because of an extremely
6753# bizarre bug on SunOS 4.1.3.
6754if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006755 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006756 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6757fi
6758
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006759# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006760# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006761# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006762# Hook for its removal unless debugging.
6763# Note that there is a small window in which the directory will not be cleaned:
6764# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006765$debug ||
6766{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006767 tmp=
6768 trap 'exit_status=$?
6769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6770' 0
Benny Prijonofe0c1272010-01-13 16:28:15 +00006771 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006772}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006773# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006774
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006775{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006776 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006777 test -n "$tmp" && test -d "$tmp"
6778} ||
6779{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006780 tmp=./conf$$-$RANDOM
6781 (umask 077 && mkdir "$tmp")
Benny Prijonofe0c1272010-01-13 16:28:15 +00006782} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006783
Benny Prijonod5233702010-01-13 13:09:45 +00006784# Set up the scripts for CONFIG_FILES section.
6785# No need to generate them if there are no CONFIG_FILES.
6786# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006787if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006788
Benny Prijonod5233702010-01-13 13:09:45 +00006789
Benny Prijonofe0c1272010-01-13 16:28:15 +00006790ac_cr=`echo X | tr X '\015'`
6791# On cygwin, bash can eat \r inside `` if the user requested igncr.
6792# But we know of no other shell where ac_cr would be empty at this
6793# point, so we can use a bashism as a fallback.
6794if test "x$ac_cr" = x; then
6795 eval ac_cr=\$\'\\r\'
6796fi
Benny Prijonod5233702010-01-13 13:09:45 +00006797ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6798if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00006799 ac_cs_awk_cr='\r'
Benny Prijonod5233702010-01-13 13:09:45 +00006800else
6801 ac_cs_awk_cr=$ac_cr
6802fi
6803
6804echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006805_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006806
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006807
Benny Prijonod5233702010-01-13 13:09:45 +00006808{
6809 echo "cat >conf$$subs.awk <<_ACEOF" &&
6810 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6811 echo "_ACEOF"
6812} >conf$$subs.sh ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00006813 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Benny Prijonod5233702010-01-13 13:09:45 +00006814ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006815ac_delim='%!_!# '
6816for ac_last_try in false false false false false :; do
Benny Prijonod5233702010-01-13 13:09:45 +00006817 . ./conf$$subs.sh ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00006818 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006819
Benny Prijonofe0c1272010-01-13 16:28:15 +00006820 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6821 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006822 break
6823 elif $ac_last_try; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00006824 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006825 else
6826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006827 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006828done
Benny Prijonod5233702010-01-13 13:09:45 +00006829rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006830
Benny Prijonod5233702010-01-13 13:09:45 +00006831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6832cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006833_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +00006834sed -n '
6835h
6836s/^/S["/; s/!.*/"]=/
6837p
6838g
6839s/^[^!]*!//
6840:repl
6841t repl
6842s/'"$ac_delim"'$//
6843t delim
6844:nl
6845h
6846s/\(.\{148\}\).*/\1/
6847t more1
6848s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6849p
6850n
6851b repl
6852:more1
6853s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6854p
6855g
6856s/.\{148\}//
6857t nl
6858:delim
6859h
6860s/\(.\{148\}\).*/\1/
6861t more2
6862s/["\\]/\\&/g; s/^/"/; s/$/"/
6863p
6864b
6865:more2
6866s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6867p
6868g
6869s/.\{148\}//
6870t delim
6871' <conf$$subs.awk | sed '
6872/^[^""]/{
6873 N
6874 s/\n//
6875}
6876' >>$CONFIG_STATUS || ac_write_fail=1
6877rm -f conf$$subs.awk
6878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6879_ACAWK
6880cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6881 for (key in S) S_is_set[key] = 1
6882 FS = ""
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006883
Benny Prijonod5233702010-01-13 13:09:45 +00006884}
6885{
6886 line = $ 0
6887 nfields = split(line, field, "@")
6888 substed = 0
6889 len = length(field[1])
6890 for (i = 2; i < nfields; i++) {
6891 key = field[i]
6892 keylen = length(key)
6893 if (S_is_set[key]) {
6894 value = S[key]
6895 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6896 len += length(value) + length(field[++i])
6897 substed = 1
6898 } else
6899 len += 1 + keylen
6900 }
6901
6902 print line
6903}
6904
6905_ACAWK
6906_ACEOF
6907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6908if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6909 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6910else
6911 cat
6912fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Benny Prijonofe0c1272010-01-13 16:28:15 +00006913 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Benny Prijonod5233702010-01-13 13:09:45 +00006914_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006915
6916# VPATH may cause trouble with some makes, so we remove $(srcdir),
6917# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6918# trailing colons and then remove the whole line if VPATH becomes empty
6919# (actually we leave an empty line to preserve line numbers).
6920if test "x$srcdir" = x.; then
6921 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6922s/:*\$(srcdir):*/:/
6923s/:*\${srcdir}:*/:/
6924s/:*@srcdir@:*/:/
6925s/^\([^=]*=[ ]*\):*/\1/
6926s/:*$//
6927s/^[^=]*=[ ]*$//
6928}'
6929fi
6930
Benny Prijonod5233702010-01-13 13:09:45 +00006931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006932fi # test -n "$CONFIG_FILES"
6933
Benny Prijonod5233702010-01-13 13:09:45 +00006934# Set up the scripts for CONFIG_HEADERS section.
6935# No need to generate them if there are no CONFIG_HEADERS.
6936# This happens for instance with `./config.status Makefile'.
6937if test -n "$CONFIG_HEADERS"; then
6938cat >"$tmp/defines.awk" <<\_ACAWK ||
6939BEGIN {
6940_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006941
Benny Prijonod5233702010-01-13 13:09:45 +00006942# Transform confdefs.h into an awk script `defines.awk', embedded as
6943# here-document in config.status, that substitutes the proper values into
6944# config.h.in to produce config.h.
6945
6946# Create a delimiter string that does not exist in confdefs.h, to ease
6947# handling of long lines.
6948ac_delim='%!_!# '
6949for ac_last_try in false false :; do
6950 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6951 if test -z "$ac_t"; then
6952 break
6953 elif $ac_last_try; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00006954 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Benny Prijonod5233702010-01-13 13:09:45 +00006955 else
6956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6957 fi
6958done
6959
6960# For the awk script, D is an array of macro values keyed by name,
6961# likewise P contains macro parameters if any. Preserve backslash
6962# newline sequences.
6963
6964ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6965sed -n '
6966s/.\{148\}/&'"$ac_delim"'/g
6967t rset
6968:rset
6969s/^[ ]*#[ ]*define[ ][ ]*/ /
6970t def
6971d
6972:def
6973s/\\$//
6974t bsnl
6975s/["\\]/\\&/g
6976s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6977D["\1"]=" \3"/p
6978s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6979d
6980:bsnl
6981s/["\\]/\\&/g
6982s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6983D["\1"]=" \3\\\\\\n"\\/p
6984t cont
6985s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6986t cont
6987d
6988:cont
6989n
6990s/.\{148\}/&'"$ac_delim"'/g
6991t clear
6992:clear
6993s/\\$//
6994t bsnlc
6995s/["\\]/\\&/g; s/^/"/; s/$/"/p
6996d
6997:bsnlc
6998s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6999b cont
7000' <confdefs.h | sed '
7001s/'"$ac_delim"'/"\\\
7002"/g' >>$CONFIG_STATUS || ac_write_fail=1
7003
7004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7005 for (key in D) D_is_set[key] = 1
7006 FS = ""
7007}
7008/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7009 line = \$ 0
7010 split(line, arg, " ")
7011 if (arg[1] == "#") {
7012 defundef = arg[2]
7013 mac1 = arg[3]
7014 } else {
7015 defundef = substr(arg[1], 2)
7016 mac1 = arg[2]
7017 }
7018 split(mac1, mac2, "(") #)
7019 macro = mac2[1]
Benny Prijonofe0c1272010-01-13 16:28:15 +00007020 prefix = substr(line, 1, index(line, defundef) - 1)
Benny Prijonod5233702010-01-13 13:09:45 +00007021 if (D_is_set[macro]) {
7022 # Preserve the white space surrounding the "#".
Benny Prijonod5233702010-01-13 13:09:45 +00007023 print prefix "define", macro P[macro] D[macro]
7024 next
7025 } else {
7026 # Replace #undef with comments. This is necessary, for example,
7027 # in the case of _POSIX_SOURCE, which is predefined and required
7028 # on some systems where configure will not decide to define it.
7029 if (defundef == "undef") {
Benny Prijonofe0c1272010-01-13 16:28:15 +00007030 print "/*", prefix defundef, macro, "*/"
Benny Prijonod5233702010-01-13 13:09:45 +00007031 next
7032 }
7033 }
7034}
7035{ print }
7036_ACAWK
7037_ACEOF
7038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonofe0c1272010-01-13 16:28:15 +00007039 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Benny Prijonod5233702010-01-13 13:09:45 +00007040fi # test -n "$CONFIG_HEADERS"
7041
7042
7043eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7044shift
7045for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007046do
7047 case $ac_tag in
7048 :[FHLC]) ac_mode=$ac_tag; continue;;
7049 esac
7050 case $ac_mode$ac_tag in
7051 :[FHL]*:*);;
Benny Prijonofe0c1272010-01-13 16:28:15 +00007052 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007053 :[FH]-) ac_tag=-:-;;
7054 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7055 esac
7056 ac_save_IFS=$IFS
7057 IFS=:
7058 set x $ac_tag
7059 IFS=$ac_save_IFS
7060 shift
7061 ac_file=$1
7062 shift
7063
7064 case $ac_mode in
7065 :L) ac_source=$1;;
7066 :[FH])
7067 ac_file_inputs=
7068 for ac_f
7069 do
7070 case $ac_f in
7071 -) ac_f="$tmp/stdin";;
7072 *) # Look for the file first in the build tree, then in the source tree
7073 # (if the path is not absolute). The absolute path cannot be DOS-style,
7074 # because $ac_f cannot contain `:'.
7075 test -f "$ac_f" ||
7076 case $ac_f in
7077 [\\/$]*) false;;
7078 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7079 esac ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00007080 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007081 esac
Benny Prijonod5233702010-01-13 13:09:45 +00007082 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Benny Prijonofe0c1272010-01-13 16:28:15 +00007083 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007084 done
7085
7086 # Let's still pretend it is `configure' which instantiates (i.e., don't
7087 # use $as_me), people would be surprised to read:
7088 # /* config.h. Generated by config.status. */
Benny Prijonod5233702010-01-13 13:09:45 +00007089 configure_input='Generated from '`
7090 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7091 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007092 if test x"$ac_file" != x-; then
7093 configure_input="$ac_file. $configure_input"
Benny Prijonofe0c1272010-01-13 16:28:15 +00007094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00007095$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007096 fi
Benny Prijonod5233702010-01-13 13:09:45 +00007097 # Neutralize special characters interpreted by sed in replacement strings.
7098 case $configure_input in #(
7099 *\&* | *\|* | *\\* )
7100 ac_sed_conf_input=`$as_echo "$configure_input" |
7101 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7102 *) ac_sed_conf_input=$configure_input;;
7103 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007104
7105 case $ac_tag in
Benny Prijonod5233702010-01-13 13:09:45 +00007106 *:-:* | *:-) cat >"$tmp/stdin" \
Benny Prijonofe0c1272010-01-13 16:28:15 +00007107 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007108 esac
7109 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007110 esac
7111
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007112 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007113$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7114 X"$ac_file" : 'X\(//\)[^/]' \| \
7115 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007116 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod5233702010-01-13 13:09:45 +00007117$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7119 s//\1/
7120 q
7121 }
7122 /^X\(\/\/\)[^/].*/{
7123 s//\1/
7124 q
7125 }
7126 /^X\(\/\/\)$/{
7127 s//\1/
7128 q
7129 }
7130 /^X\(\/\).*/{
7131 s//\1/
7132 q
7133 }
7134 s/.*/./; q'`
Benny Prijonofe0c1272010-01-13 16:28:15 +00007135 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007136 ac_builddir=.
7137
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007138case "$ac_dir" in
7139.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7140*)
Benny Prijonod5233702010-01-13 13:09:45 +00007141 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007142 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonod5233702010-01-13 13:09:45 +00007143 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007144 case $ac_top_builddir_sub in
7145 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7146 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7147 esac ;;
7148esac
7149ac_abs_top_builddir=$ac_pwd
7150ac_abs_builddir=$ac_pwd$ac_dir_suffix
7151# for backward compatibility:
7152ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007153
7154case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007155 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007156 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007157 ac_top_srcdir=$ac_top_builddir_sub
7158 ac_abs_top_srcdir=$ac_pwd ;;
7159 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007160 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007161 ac_top_srcdir=$srcdir
7162 ac_abs_top_srcdir=$srcdir ;;
7163 *) # Relative name.
7164 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7165 ac_top_srcdir=$ac_top_build_prefix$srcdir
7166 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007167esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007168ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00007169
Benny Prijonoe2746132008-09-27 13:16:35 +00007170
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007171 case $ac_mode in
7172 :F)
7173 #
7174 # CONFIG_FILE
7175 #
Benny Prijonoe2746132008-09-27 13:16:35 +00007176
Benny Prijonoe2746132008-09-27 13:16:35 +00007177_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007178
Benny Prijonod5233702010-01-13 13:09:45 +00007179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007180# If the template does not know about datarootdir, expand it.
7181# FIXME: This hack should be removed a few years after 2.60.
7182ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijonod5233702010-01-13 13:09:45 +00007183ac_sed_dataroot='
7184/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007185 p
7186 q
7187}
7188/@datadir@/p
7189/@docdir@/p
7190/@infodir@/p
7191/@localedir@/p
Benny Prijonofe0c1272010-01-13 16:28:15 +00007192/@mandir@/p'
Benny Prijonod5233702010-01-13 13:09:45 +00007193case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007194*datarootdir*) ac_datarootdir_seen=yes;;
7195*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijonofe0c1272010-01-13 16:28:15 +00007196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00007197$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007198_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +00007199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007200 ac_datarootdir_hack='
7201 s&@datadir@&$datadir&g
7202 s&@docdir@&$docdir&g
7203 s&@infodir@&$infodir&g
7204 s&@localedir@&$localedir&g
7205 s&@mandir@&$mandir&g
Benny Prijonofe0c1272010-01-13 16:28:15 +00007206 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007207esac
7208_ACEOF
7209
7210# Neutralize VPATH when `$srcdir' = `.'.
7211# Shell code in configure.ac might set extrasub.
7212# FIXME: do we really want to maintain this feature?
Benny Prijonod5233702010-01-13 13:09:45 +00007213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7214ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007215$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007216_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +00007217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007218:t
7219/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijonod5233702010-01-13 13:09:45 +00007220s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007221s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijonod5233702010-01-13 13:09:45 +00007222s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007223s&@srcdir@&$ac_srcdir&;t t
7224s&@abs_srcdir@&$ac_abs_srcdir&;t t
7225s&@top_srcdir@&$ac_top_srcdir&;t t
7226s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7227s&@builddir@&$ac_builddir&;t t
7228s&@abs_builddir@&$ac_abs_builddir&;t t
7229s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7230$ac_datarootdir_hack
Benny Prijonod5233702010-01-13 13:09:45 +00007231"
7232eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
Benny Prijonofe0c1272010-01-13 16:28:15 +00007233 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007234
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007235test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7236 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7237 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijonofe0c1272010-01-13 16:28:15 +00007238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007239which seems to be undefined. Please make sure it is defined." >&5
Benny Prijonod5233702010-01-13 13:09:45 +00007240$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007241which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007242
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007243 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007244 case $ac_file in
Benny Prijonod5233702010-01-13 13:09:45 +00007245 -) cat "$tmp/out" && rm -f "$tmp/out";;
7246 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7247 esac \
Benny Prijonofe0c1272010-01-13 16:28:15 +00007248 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007249 ;;
7250 :H)
7251 #
7252 # CONFIG_HEADER
7253 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007254 if test x"$ac_file" != x-; then
Benny Prijonod5233702010-01-13 13:09:45 +00007255 {
7256 $as_echo "/* $configure_input */" \
7257 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7258 } >"$tmp/config.h" \
Benny Prijonofe0c1272010-01-13 16:28:15 +00007259 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonod5233702010-01-13 13:09:45 +00007260 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00007261 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00007262$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007263 else
Benny Prijonod5233702010-01-13 13:09:45 +00007264 rm -f "$ac_file"
7265 mv "$tmp/config.h" "$ac_file" \
Benny Prijonofe0c1272010-01-13 16:28:15 +00007266 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007267 fi
7268 else
Benny Prijonod5233702010-01-13 13:09:45 +00007269 $as_echo "/* $configure_input */" \
7270 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Benny Prijonofe0c1272010-01-13 16:28:15 +00007271 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007272 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007273 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007274
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007275
7276 esac
7277
7278done # for ac_tag
7279
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007280
Benny Prijonofe0c1272010-01-13 16:28:15 +00007281as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007282_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007283ac_clean_files=$ac_clean_files_save
7284
Benny Prijonod5233702010-01-13 13:09:45 +00007285test $ac_write_fail = 0 ||
Benny Prijonofe0c1272010-01-13 16:28:15 +00007286 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Benny Prijonod5233702010-01-13 13:09:45 +00007287
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007288
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007289# configure is writing to config.log, and then calls config.status.
7290# config.status does its own redirection, appending to config.log.
7291# Unfortunately, on DOS this fails, as config.log is still kept open
7292# by configure, so config.status won't be able to write to it; its
7293# output is simply discarded. So we exec the FD to /dev/null,
7294# effectively closing config.log, so it can be properly (re)opened and
7295# appended to by config.status. When coming back to configure, we
7296# need to make the FD available again.
7297if test "$no_create" != yes; then
7298 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007299 ac_config_status_args=
7300 test "$silent" = yes &&
7301 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007302 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007304 exec 5>>config.log
7305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7306 # would make configure fail if this is the last instruction.
Benny Prijonofe0c1272010-01-13 16:28:15 +00007307 $ac_cs_success || as_fn_exit $?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007308fi
Benny Prijonod5233702010-01-13 13:09:45 +00007309if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Benny Prijonofe0c1272010-01-13 16:28:15 +00007310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7311$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00007312fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007313
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007314
Benny Prijonod9627842007-04-18 09:24:31 +00007315
Benny Prijonofe0c1272010-01-13 16:28:15 +00007316{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00007317
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007318Configurations 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 +00007319
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007320Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007321 - 'user.mak'
7322 - 'pjlib/include/pj/config_site.h'
7323
7324The next step now is to run 'make dep' and 'make'.
7325" >&5
Benny Prijonod5233702010-01-13 13:09:45 +00007326$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00007327
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007328Configurations 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 +00007329
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007330Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007331 - 'user.mak'
7332 - 'pjlib/include/pj/config_site.h'
7333
7334The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007335" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00007336