blob: 84e62c186784fbae650f8ba1575704b93e8509e8 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003# Generated by GNU Autoconf 2.65 for pjproject 1.x.
4#
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005#
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Benny Prijonocd62c4e2011-03-18 08:33:29 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000016
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonocd62c4e2011-03-18 08:33:29 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +000020 emulate sh
21 NULLCMD=:
Benny Prijonocd62c4e2011-03-18 08:33:29 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000025 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000026else
Benny Prijonocd62c4e2011-03-18 08:33:29 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000032esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000033fi
34
35
Benny Prijonocd62c4e2011-03-18 08:33:29 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
Benny Prijonod5233702010-01-13 13:09:45 +000073
Benny Prijono7e0d75f2006-12-25 20:34:14 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +000076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000081fi
82
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonocd62c4e2011-03-18 08:33:29 +000092case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000095for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +000099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000101IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000102
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000113fi
114
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
Benny Prijonoe3e65802011-02-28 07:44:19 +0000132
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000393
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000398$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000419
420
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000430 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000435 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000438 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000439 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000440 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000441 chmod +x "$as_me.lineno" ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000448 # Exit status is that of the last command.
449 exit
450}
451
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000452ECHO_C= ECHO_N= ECHO_T=
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000453case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000454-n*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000455 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000460 esac;;
461*)
462 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000463esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000464
465rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000470 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000471fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000484 as_ln_s='cp -p'
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000485 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000486else
487 as_ln_s='cp -p'
488fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000491
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000492if mkdir -p . 2>/dev/null; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000493 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +0000494else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000497fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000498
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000510 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000511 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000512 case $1 in #(
513 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514 esac;
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000528
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000541ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000542ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000543LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000544cross_compiling=no
545subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000546MFLAGS=
547MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000548
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000549# Identity of this package.
550PACKAGE_NAME='pjproject'
551PACKAGE_TARNAME='pjproject'
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000552PACKAGE_VERSION='1.x'
553PACKAGE_STRING='pjproject 1.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000554PACKAGE_BUGREPORT=''
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000555PACKAGE_URL=''
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000556
557# Factoring default headers for most tests.
558ac_includes_default="\
559#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000560#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000561# include <sys/types.h>
562#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000563#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564# include <sys/stat.h>
565#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000566#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000567# include <stdlib.h>
568# include <stddef.h>
569#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000570# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000571# include <stdlib.h>
572# endif
573#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000574#ifdef HAVE_STRING_H
575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000576# include <memory.h>
577# endif
578# include <string.h>
579#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000580#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000581# include <strings.h>
582#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000583#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000584# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000585#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000586#ifdef HAVE_STDINT_H
587# include <stdint.h>
588#endif
589#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000590# include <unistd.h>
591#endif"
592
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000593ac_subst_vars='LTLIBOBJS
Sauw Ming6a970a32011-03-01 05:25:27 +0000594LIBOBJS
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000595ac_main_obj
596ac_host
597ac_linux_poll
598ac_cross_compile
599libcrypto_present
600libssl_present
601openssl_h_present
602ac_no_ssl
603ac_no_ilbc_codec
604ac_no_speex_codec
605ac_no_g7221_codec
606ac_no_g722_codec
607ac_no_gsm_codec
608ac_no_l16_codec
609ac_no_g711_codec
610ac_no_speex_aec
611ac_no_large_filter
612ac_no_small_filter
613ac_pa_use_oss
614ac_pa_use_alsa
615ac_pa_cflags
616ac_external_pa
617ac_pjmedia_snd
618ac_external_gsm
619ac_external_speex
620ac_os_objs
621EGREP
622GREP
623CPP
624ac_build_mak_vars
625ac_pjdir
626CC_CFLAGS
627CC_OPTIMIZE
628CC_DEF
629CC_INC
630CC_OUT
631LIBEXT2
632LIBEXT
633RANLIB
634LDOUT
635LD
636AR
637ac_ct_CXX
638CXXFLAGS
639CXX
640OBJEXT
641EXEEXT
642ac_ct_CC
643CPPFLAGS
644LDFLAGS
645CFLAGS
646CC
647target_os
648target_vendor
649target_cpu
650target
651host_os
652host_vendor
653host_cpu
654host
655build_os
656build_vendor
657build_cpu
658build
659target_alias
660host_alias
661build_alias
662LIBS
663ECHO_T
664ECHO_N
665ECHO_C
666DEFS
667mandir
668localedir
669libdir
670psdir
671pdfdir
672dvidir
673htmldir
674infodir
675docdir
676oldincludedir
677includedir
678localstatedir
679sharedstatedir
680sysconfdir
681datadir
682datarootdir
683libexecdir
684sbindir
685bindir
686program_transform_name
687prefix
688exec_prefix
689PACKAGE_URL
690PACKAGE_BUGREPORT
691PACKAGE_STRING
692PACKAGE_VERSION
693PACKAGE_TARNAME
694PACKAGE_NAME
695PATH_SEPARATOR
696SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000697ac_subst_files=''
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000698ac_user_opts='
699enable_option_checking
700enable_floating_point
701enable_epoll
702with_external_speex
703with_external_gsm
704enable_sound
705with_external_pa
706enable_oss
707enable_ext_sound
708enable_small_filter
709enable_large_filter
710enable_speex_aec
711enable_g711_codec
712enable_l16_codec
713enable_gsm_codec
714enable_g722_codec
715enable_g7221_codec
716enable_speex_codec
717enable_ilbc_codec
718enable_libsamplerate
719enable_ipp
720with_ipp
721with_ipp_samples
722with_ipp_arch
723enable_ssl
724'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000725 ac_precious_vars='build_alias
726host_alias
727target_alias
728CC
729CFLAGS
730LDFLAGS
731LIBS
732CPPFLAGS
733CXX
734CXXFLAGS
735CCC
736CPP'
737
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000738
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000739# Initialize some variables set by options.
740ac_init_help=
741ac_init_version=false
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000742ac_unrecognized_opts=
743ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000744# The variables have the same names as the options, with
745# dashes changed to underlines.
746cache_file=/dev/null
747exec_prefix=NONE
748no_create=
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
757verbose=
758x_includes=NONE
759x_libraries=NONE
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000766# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000775includedir='${prefix}/include'
776oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000786
787ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000788ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000789for ac_option
790do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000793 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000794 ac_prev=
795 continue
796 fi
797
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000829 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000830 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000832 datadir=$ac_optarg ;;
833
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000841 -disable-* | --disable-*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000842 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000843 # Reject names that are not valid shell variable names.
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 as_fn_error "invalid feature name: $ac_useropt"
846 ac_useropt_orig=$ac_useropt
847 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in
849 *"
850"enable_$ac_useropt"
851"*) ;;
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';;
854 esac
855 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000856
857 -docdir | --docdir | --docdi | --doc | --do)
858 ac_prev=docdir ;;
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860 docdir=$ac_optarg ;;
861
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 ac_prev=dvidir ;;
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000866
867 -enable-* | --enable-*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000868 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000869 # Reject names that are not valid shell variable names.
Benny Prijonocd62c4e2011-03-18 08:33:29 +0000870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876"enable_$ac_useropt"
877"*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000882
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
891
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
895
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
902
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
907
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
913
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
920
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
925
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
930
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
937
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
942
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000943 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000944 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000948 localstatedir=$ac_optarg ;;
949
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
954
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
958
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000960 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000961 no_create=yes ;;
962
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
966
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
975
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
980
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
987
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
994
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1011
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1016
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1021
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001073 # Reject names that are not valid shell variable names.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid package name: $ac_useropt"
1076 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--with-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001086
1087 -without-* | --without-*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001088 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001089 # Reject names that are not valid shell variable names.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096"with_$ac_useropt"
1097"*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001102
1103 --x)
1104 # Obsolete; use --with-x.
1105 with_x=yes ;;
1106
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1113
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1120
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001121 -*) as_fn_error "unrecognized option: \`$ac_option'
1122Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001123 ;;
1124
1125 *=*)
1126 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127 # Reject names that are not valid shell variable names.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001128 case $ac_envvar in #(
1129 '' | [0-9]* | *[!_$as_cr_alnum]* )
1130 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1131 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001132 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001133 export $ac_envvar ;;
1134
1135 *)
1136 # FIXME: should be removed in autoconf 3.0.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001137 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001139 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001140 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1141 ;;
1142
1143 esac
1144done
1145
1146if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001148 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001149fi
1150
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001151if test -n "$ac_unrecognized_opts"; then
1152 case $enable_option_checking in
1153 no) ;;
1154 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1155 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 esac
1157fi
1158
1159# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001160for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001164do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001165 eval ac_val=\$$ac_var
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001166 # Remove trailing slashes.
1167 case $ac_val in
1168 */ )
1169 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170 eval $ac_var=\$ac_val;;
1171 esac
1172 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001173 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001176 esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001177 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001178done
1179
1180# There might be people who depend on the old broken behavior: `$host'
1181# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001182# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001183build=$build_alias
1184host=$host_alias
1185target=$target_alias
1186
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001187# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001188if test "x$host_alias" != x; then
1189 if test "x$build_alias" = x; then
1190 cross_compiling=maybe
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001191 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001192 If a cross compiler is detected then cross compile mode will be used." >&2
1193 elif test "x$build_alias" != "x$host_alias"; then
1194 cross_compiling=yes
1195 fi
1196fi
1197
1198ac_tool_prefix=
1199test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200
1201test "$silent" = yes && exec 6>/dev/null
1202
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001203
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001204ac_pwd=`pwd` && test -n "$ac_pwd" &&
1205ac_ls_di=`ls -di .` &&
1206ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001207 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001208test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001209 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001210
1211
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001212# Find the source files, if location was not specified.
1213if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001215 # Try the directory containing this script, then the parent directory.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001216 ac_confdir=`$as_dirname -- "$as_myself" ||
1217$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$as_myself" : 'X\(//\)[^/]' \| \
1219 X"$as_myself" : 'X\(//\)$' \| \
1220 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1221$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 s//\1/
1224 q
1225 }
1226 /^X\(\/\/\)[^/].*/{
1227 s//\1/
1228 q
1229 }
1230 /^X\(\/\/\)$/{
1231 s//\1/
1232 q
1233 }
1234 /^X\(\/\).*/{
1235 s//\1/
1236 q
1237 }
1238 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001239 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001240 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001241 srcdir=..
1242 fi
1243else
1244 ac_srcdir_defaulted=no
1245fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001246if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001248 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001249fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001250ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1251ac_abs_confdir=`(
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001252 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001253 pwd)`
1254# When building in place, set srcdir=.
1255if test "$ac_abs_confdir" = "$ac_pwd"; then
1256 srcdir=.
1257fi
1258# Remove unnecessary trailing slashes from srcdir.
1259# Double slashes in file names in object file debugging info
1260# mess up M-x gdb in Emacs.
1261case $srcdir in
1262*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263esac
1264for ac_var in $ac_precious_vars; do
1265 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_env_${ac_var}_value=\$${ac_var}
1267 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1269done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001270
1271#
1272# Report the --help message.
1273#
1274if test "$ac_init_help" = "long"; then
1275 # Omit some internal or obsolete options to make the list less imposing.
1276 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001277 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001278\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001279
1280Usage: $0 [OPTION]... [VAR=VALUE]...
1281
1282To assign environment variables (e.g., CC, CFLAGS...), specify them as
1283VAR=VALUE. See below for descriptions of some of the useful variables.
1284
1285Defaults for the options are specified in brackets.
1286
1287Configuration:
1288 -h, --help display this help and exit
1289 --help=short display options specific to this package
1290 --help=recursive display the short help of all the included packages
1291 -V, --version display version information and exit
1292 -q, --quiet, --silent do not print \`checking...' messages
1293 --cache-file=FILE cache test results in FILE [disabled]
1294 -C, --config-cache alias for \`--cache-file=config.cache'
1295 -n, --no-create do not create output files
1296 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1297
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001298Installation directories:
1299 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001300 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001301 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001302 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001303
1304By default, \`make install' will install all the files in
1305\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1306an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1307for instance \`--prefix=\$HOME'.
1308
1309For better control, use the options below.
1310
1311Fine tuning of the installation directories:
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001312 --bindir=DIR user executables [EPREFIX/bin]
1313 --sbindir=DIR system admin executables [EPREFIX/sbin]
1314 --libexecdir=DIR program executables [EPREFIX/libexec]
1315 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1316 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1317 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1318 --libdir=DIR object code libraries [EPREFIX/lib]
1319 --includedir=DIR C header files [PREFIX/include]
1320 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1321 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1322 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1323 --infodir=DIR info documentation [DATAROOTDIR/info]
1324 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1325 --mandir=DIR man documentation [DATAROOTDIR/man]
1326 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1327 --htmldir=DIR html documentation [DOCDIR]
1328 --dvidir=DIR dvi documentation [DOCDIR]
1329 --pdfdir=DIR pdf documentation [DOCDIR]
1330 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001331_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001332
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001333 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001334
1335System types:
1336 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001337 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001338 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001339_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001340fi
1341
1342if test -n "$ac_init_help"; then
1343 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001344 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001345 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001346 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001347
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001348Optional Features:
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001349 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --disable-floating-point
1353 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001354 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001355 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001356 --disable-oss Disable OSS audio (default: not disabled)
1357
Benny Prijonoebb2c332008-07-28 23:40:58 +00001358 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001359 --disable-small-filter Exclude small filter in resampling
1360 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001361 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1362 --disable-g711-codec Exclude G.711 codecs from the build
1363 --disable-l16-codec Exclude Linear/L16 codec family from the build
1364 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001365 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001366 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001367 --disable-speex-codec Exclude Speex codecs in the build
1368 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001369 --enable-libsamplerate Link with libsamplerate when available. Note that
1370 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono0822c192008-08-21 20:59:58 +00001371 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1372 package and samples location using IPPROOT and
1373 IPPSAMPLES env var or with --with-ipp and
1374 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001375 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001376
1377
Benny Prijonofe0c1272010-01-13 16:28:15 +00001378Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001381 --with-external-speex Use external Speex development files, not the one in
1382 "third_party" directory. When this option is set,
1383 make sure that Speex is accessible to use (hint: use
1384 CFLAGS and LDFLAGS env var to set the include/lib
1385 paths)
1386 --with-external-gsm Use external GSM codec library, not the one in
1387 "third_party" directory. When this option is set,
1388 make sure that the GSM include/lib files are
1389 accessible to use (hint: use CFLAGS and LDFLAGS env
1390 var to set the include/lib paths)
1391 --with-external-pa Use external PortAudio development files, not the
1392 one in "third_party" directory. When this option is
1393 set, make sure that PortAudio is accessible to use
1394 (hint: use CFLAGS and LDFLAGS env var to set the
1395 include/lib paths)
Benny Prijono3965f192010-02-10 18:46:05 +00001396 --with-ipp=DIR Specify the Intel IPP location
1397 --with-ipp-samples=DIR Specify the Intel IPP samples location
1398 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001399 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001400
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001401Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001406 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001408 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001411 CPP C preprocessor
1412
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001416Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001417_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001418ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001419fi
1420
1421if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001427 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001428
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001429case "$ac_dir" in
1430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001433 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439esac
1440ac_abs_top_builddir=$ac_pwd
1441ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442# for backward compatibility:
1443ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001444
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001445case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001446 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001447 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001451 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001458esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001460
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001469 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001473 done
1474fi
1475
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001476test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001477if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001478 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001479pjproject configure 1.x
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001480generated by GNU Autoconf 2.65
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001481
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001482Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001483This configure script is free software; the Free Software Foundation
1484gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001485_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001486 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001487fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001488
1489## ------------------------ ##
1490## Autoconf initialization. ##
1491## ------------------------ ##
1492
1493# ac_fn_c_try_compile LINENO
1494# --------------------------
1495# Try to compile conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_compile ()
1497{
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506$as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520else
1521 $as_echo "$as_me: failed program was:" >&5
1522sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525fi
1526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1527 as_fn_set_status $ac_retval
1528
1529} # ac_fn_c_try_compile
1530
1531# ac_fn_cxx_try_compile LINENO
1532# ----------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_cxx_try_compile ()
1535{
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_cxx_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558else
1559 $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563fi
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 as_fn_set_status $ac_retval
1566
1567} # ac_fn_cxx_try_compile
1568
1569# ac_fn_c_try_link LINENO
1570# -----------------------
1571# Try to link conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_link ()
1573{
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest$ac_exeext
1576 if { { ac_try="$ac_link"
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest$ac_exeext && {
1595 test "$cross_compiling" = yes ||
1596 $as_test_x conftest$ac_exeext
1597 }; then :
1598 ac_retval=0
1599else
1600 $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604fi
1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607 # interfere with the next link command; also delete a directory that is
1608 # left behind by Apple's compiler. We do this before executing the actions.
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_link
1614
1615# ac_fn_c_try_run LINENO
1616# ----------------------
1617# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1618# that executables *can* be run.
1619ac_fn_c_try_run ()
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_link"
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>&5
1630 ac_status=$?
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1633 { { case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_try") 2>&5
1640 ac_status=$?
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; }; }; then :
1643 ac_retval=0
1644else
1645 $as_echo "$as_me: program exited with status $ac_status" >&5
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=$ac_status
1650fi
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 as_fn_set_status $ac_retval
1654
1655} # ac_fn_c_try_run
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } >/dev/null && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688fi
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
1703if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1705else
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h. */
1708$4
1709#include <$2>
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712 eval "$3=yes"
1713else
1714 eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728# the include files in INCLUDES and setting the cache variable VAR
1729# accordingly.
1730ac_fn_c_check_header_mongrel ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742else
1743 # Is the header compilable?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745$as_echo_n "checking $2 usability... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h. */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1753else
1754 ac_header_compiler=no
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758$as_echo "$ac_header_compiler" >&6; }
1759
1760# Is the header present?
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762$as_echo_n "checking $2 presence... " >&6; }
1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765#include <$2>
1766_ACEOF
1767if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1769else
1770 ac_header_preproc=no
1771fi
1772rm -f conftest.err conftest.$ac_ext
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774$as_echo "$ac_header_preproc" >&6; }
1775
1776# So? What about this header?
1777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 yes:no: )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 ;;
1784 no:yes:* )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 ;;
1796esac
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801else
1802 eval "$3=\$ac_header_compiler"
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810} # ac_fn_c_check_header_mongrel
1811
1812# ac_fn_c_check_func LINENO FUNC VAR
1813# ----------------------------------
1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
1815ac_fn_c_check_func ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
1820if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1822else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827#define $2 innocuous_$2
1828
1829/* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1833
1834#ifdef __STDC__
1835# include <limits.h>
1836#else
1837# include <assert.h>
1838#endif
1839
1840#undef $2
1841
1842/* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845#ifdef __cplusplus
1846extern "C"
1847#endif
1848char $2 ();
1849/* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852#if defined __stub_$2 || defined __stub___$2
1853choke me
1854#endif
1855
1856int
1857main ()
1858{
1859return $2 ();
1860 ;
1861 return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866else
1867 eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001878cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001879This file contains any messages produced by compilers while
1880running configure, to aid debugging if configure makes a mistake.
1881
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001882It was created by pjproject $as_me 1.x, which was
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001883generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001884
1885 $ $0 $@
1886
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001887_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001888exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001889{
1890cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001891## --------- ##
1892## Platform. ##
1893## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001894
1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903
1904/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1905/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001907/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001908/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1909/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1910/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911
1912_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001913
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001919 $as_echo "PATH: $as_dir"
1920 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001921IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001922
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001923} >&5
1924
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001925cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001926
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001927
1928## ----------- ##
1929## Core tests. ##
1930## ----------- ##
1931
1932_ACEOF
1933
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001934
1935# Keep a trace of the command line.
1936# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001937# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001938# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001939# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001940ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001941ac_configure_args0=
1942ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001943ac_must_keep_next=false
1944for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001945do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001946 for ac_arg
1947 do
1948 case $ac_arg in
1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951 | -silent | --silent | --silen | --sile | --sil)
1952 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001953 *\'*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001955 esac
1956 case $ac_pass in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001958 2)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001959 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001960 if test $ac_must_keep_next = true; then
1961 ac_must_keep_next=false # Got value, back to normal.
1962 else
1963 case $ac_arg in
1964 *=* | --config-cache | -C | -disable-* | --disable-* \
1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967 | -with-* | --with-* | -without-* | --without-* | --x)
1968 case "$ac_configure_args0 " in
1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 esac
1971 ;;
1972 -* ) ac_must_keep_next=true ;;
1973 esac
1974 fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001975 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976 ;;
1977 esac
1978 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001979done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00001980{ ac_configure_args0=; unset ac_configure_args0;}
1981{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001982
1983# When interrupted or exit'd, cleanup temporary files, and complete
1984# config.log. We remove comments because anyway the quotes in there
1985# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001986# WARNING: Use '\'' to represent an apostrophe within the trap.
1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001988trap 'exit_status=$?
1989 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001990 {
1991 echo
1992
1993 cat <<\_ASBOX
1994## ---------------- ##
1995## Cache variables. ##
1996## ---------------- ##
1997_ASBOX
1998 echo
1999 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002000(
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in #(
2004 *${as_nl}*)
2005 case $ac_var in #(
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002008 esac
2009 case $ac_var in #(
2010 _ | IFS | as_nl) ;; #(
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002013 esac ;;
2014 esac
2015 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002016 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002019 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002023 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002025 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002026 esac |
2027 sort
2028)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002029 echo
2030
2031 cat <<\_ASBOX
2032## ----------------- ##
2033## Output variables. ##
2034## ----------------- ##
2035_ASBOX
2036 echo
2037 for ac_var in $ac_subst_vars
2038 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002039 eval ac_val=\$$ac_var
2040 case $ac_val in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002042 esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002043 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002044 done | sort
2045 echo
2046
2047 if test -n "$ac_subst_files"; then
2048 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002049## ------------------- ##
2050## File substitutions. ##
2051## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002052_ASBOX
2053 echo
2054 for ac_var in $ac_subst_files
2055 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002056 eval ac_val=\$$ac_var
2057 case $ac_val in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002059 esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002060 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002061 done | sort
2062 echo
2063 fi
2064
2065 if test -s confdefs.h; then
2066 cat <<\_ASBOX
2067## ----------- ##
2068## confdefs.h. ##
2069## ----------- ##
2070_ASBOX
2071 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002072 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002073 echo
2074 fi
2075 test "$ac_signal" != 0 &&
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002076 $as_echo "$as_me: caught signal $ac_signal"
2077 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002078 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002079 rm -f core *.core core.conftest.* &&
2080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002081 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002082' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002083for ac_signal in 1 2 13 15; do
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002085done
2086ac_signal=0
2087
2088# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002089rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002090
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002091$as_echo "/* confdefs.h */" > confdefs.h
2092
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002093# Predefined preprocessor variables.
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_NAME "$PACKAGE_NAME"
2097_ACEOF
2098
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2101_ACEOF
2102
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_VERSION "$PACKAGE_VERSION"
2105_ACEOF
2106
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_STRING "$PACKAGE_STRING"
2109_ACEOF
2110
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2113_ACEOF
2114
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_URL "$PACKAGE_URL"
2117_ACEOF
2118
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002119
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002120# Let the site file select an alternate cache file if it wants to.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002121# Prefer an explicitly selected file to automatically selected ones.
2122ac_site_file1=NONE
2123ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002124if test -n "$CONFIG_SITE"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002125 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002126elif test "x$prefix" != xNONE; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002127 ac_site_file1=$prefix/share/config.site
2128 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002129else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002130 ac_site_file1=$ac_default_prefix/share/config.site
2131 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002132fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002133for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002134do
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002135 test "x$ac_site_file" = xNONE && continue
2136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002139 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002140 . "$ac_site_file"
2141 fi
2142done
2143
2144if test -r "$cache_file"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002150 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002153 esac
2154 fi
2155else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002158 >$cache_file
2159fi
2160
2161# Check that the precious variables saved in the cache have kept the same
2162# value.
2163ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002164for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002167 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002169 case $ac_old_set,$ac_new_set in
2170 set,)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172$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 +00002173 ac_cache_corrupted=: ;;
2174 ,set)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002177 ac_cache_corrupted=: ;;
2178 ,);;
2179 *)
2180 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002181 # differences in whitespace do not lead to failure.
2182 ac_old_val_w=`echo x $ac_old_val`
2183 ac_new_val_w=`echo x $ac_new_val`
2184 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187 ac_cache_corrupted=:
2188 else
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191 eval $ac_var=\$ac_old_val
2192 fi
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2194$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2196$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002197 fi;;
2198 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002199 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002200 if test "$ac_new_set" = set; then
2201 case $ac_new_val in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002202 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002203 *) ac_arg=$ac_var=$ac_new_val ;;
2204 esac
2205 case " $ac_configure_args " in
2206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002207 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002208 esac
2209 fi
2210done
2211if $ac_cache_corrupted; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002217fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002218## -------------------- ##
2219## Main body of script. ##
2220## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002221
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002222ac_ext=c
2223ac_cpp='$CPP $CPPFLAGS'
2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002228
2229
Benny Prijono5b818b22006-09-17 22:58:51 +00002230host_orig="$host"
2231
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002232ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002233for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002234 for ac_t in install-sh install.sh shtool; do
2235 if test -f "$ac_dir/$ac_t"; then
2236 ac_aux_dir=$ac_dir
2237 ac_install_sh="$ac_aux_dir/$ac_t -c"
2238 break 2
2239 fi
2240 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002241done
2242if test -z "$ac_aux_dir"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002243 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002244fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002245
2246# These three variables are undocumented and unsupported,
2247# and are intended to be withdrawn in a future Autoconf release.
2248# They can cause serious problems if a builder's source tree is in a directory
2249# whose full name contains unusual characters.
2250ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2251ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2252ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2253
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002254
2255# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002256$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002257 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002258
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2260$as_echo_n "checking build system type... " >&6; }
2261if test "${ac_cv_build+set}" = set; then :
2262 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002263else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002264 ac_build_alias=$build_alias
2265test "x$ac_build_alias" = x &&
2266 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2267test "x$ac_build_alias" = x &&
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002268 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002269ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002270 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002271
2272fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2274$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002275case $ac_cv_build in
2276*-*-*) ;;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002277*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002278esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002279build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002280ac_save_IFS=$IFS; IFS='-'
2281set x $ac_cv_build
2282shift
2283build_cpu=$1
2284build_vendor=$2
2285shift; shift
2286# Remember, the first character of IFS is used to create $*,
2287# except with old shells:
2288build_os=$*
2289IFS=$ac_save_IFS
2290case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002291
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002292
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2294$as_echo_n "checking host system type... " >&6; }
2295if test "${ac_cv_host+set}" = set; then :
2296 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002297else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002298 if test "x$host_alias" = x; then
2299 ac_cv_host=$ac_cv_build
2300else
2301 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002302 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002303fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002304
2305fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2307$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002308case $ac_cv_host in
2309*-*-*) ;;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002310*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002311esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002312host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002313ac_save_IFS=$IFS; IFS='-'
2314set x $ac_cv_host
2315shift
2316host_cpu=$1
2317host_vendor=$2
2318shift; shift
2319# Remember, the first character of IFS is used to create $*,
2320# except with old shells:
2321host_os=$*
2322IFS=$ac_save_IFS
2323case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002324
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002325
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2327$as_echo_n "checking target system type... " >&6; }
2328if test "${ac_cv_target+set}" = set; then :
2329 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002330else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002331 if test "x$target_alias" = x; then
2332 ac_cv_target=$ac_cv_host
2333else
2334 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002335 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002336fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002337
2338fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2340$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002341case $ac_cv_target in
2342*-*-*) ;;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002343*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002344esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002345target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002346ac_save_IFS=$IFS; IFS='-'
2347set x $ac_cv_target
2348shift
2349target_cpu=$1
2350target_vendor=$2
2351shift; shift
2352# Remember, the first character of IFS is used to create $*,
2353# except with old shells:
2354target_os=$*
2355IFS=$ac_save_IFS
2356case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002357
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002358
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002359# The aliases save the names the user supplied, while $host etc.
2360# will get canonicalized.
2361test -n "$target_alias" &&
2362 test "$program_prefix$program_suffix$program_transform_name" = \
2363 NONENONEs,x,x, &&
2364 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002365ac_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 +00002366
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002367ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak third_party/build/portaudio/os-auto.mak"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002368
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002369
Benny Prijono12483112007-03-12 10:44:38 +00002370
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002371if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002372 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002373else
2374 CFLAGS="$CFLAGS"
2375fi
2376
2377CXXFLAGS="$CFLAGS $CXXFLAGS"
2378
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002379ac_ext=c
2380ac_cpp='$CPP $CPPFLAGS'
2381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2386set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2388$as_echo_n "checking for $ac_word... " >&6; }
2389if test "${ac_cv_prog_CC+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002391else
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2394else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002400 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002401 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 +00002402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002404 break 2
2405 fi
2406done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002407 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002408IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002409
2410fi
2411fi
2412CC=$ac_cv_prog_CC
2413if test -n "$CC"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2415$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002416else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002419fi
2420
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002421
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002422fi
2423if test -z "$ac_cv_prog_CC"; then
2424 ac_ct_CC=$CC
2425 # Extract the first word of "gcc", so it can be a program name with args.
2426set dummy gcc; ac_word=$2
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428$as_echo_n "checking for $ac_word... " >&6; }
2429if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002431else
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002440 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002441 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 +00002442 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002444 break 2
2445 fi
2446done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002447 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002448IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002449
2450fi
2451fi
2452ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453if test -n "$ac_ct_CC"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2455$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002456else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002459fi
2460
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002461 if test "x$ac_ct_CC" = x; then
2462 CC=""
2463 else
2464 case $cross_compiling:$ac_tool_warned in
2465yes:)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002468ac_tool_warned=yes ;;
2469esac
2470 CC=$ac_ct_CC
2471 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002472else
2473 CC="$ac_cv_prog_CC"
2474fi
2475
2476if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002477 if test -n "$ac_tool_prefix"; then
2478 # 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 +00002479set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481$as_echo_n "checking for $ac_word... " >&6; }
2482if test "${ac_cv_prog_CC+set}" = set; then :
2483 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002484else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002493 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002494 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 +00002495 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002497 break 2
2498 fi
2499done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002500 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002501IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002502
2503fi
2504fi
2505CC=$ac_cv_prog_CC
2506if test -n "$CC"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2508$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002509else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002512fi
2513
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002514
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002515 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002516fi
2517if test -z "$CC"; then
2518 # Extract the first word of "cc", so it can be a program name with args.
2519set dummy cc; ac_word=$2
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521$as_echo_n "checking for $ac_word... " >&6; }
2522if test "${ac_cv_prog_CC+set}" = set; then :
2523 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002524else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527else
2528 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002534 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002535 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 +00002536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2537 ac_prog_rejected=yes
2538 continue
2539 fi
2540 ac_cv_prog_CC="cc"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002542 break 2
2543 fi
2544done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002545 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002546IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002547
2548if test $ac_prog_rejected = yes; then
2549 # We found a bogon in the path, so make sure we never use it.
2550 set dummy $ac_cv_prog_CC
2551 shift
2552 if test $# != 0; then
2553 # We chose a different compiler from the bogus one.
2554 # However, it has the same basename, so the bogon will be chosen
2555 # first if we set CC to just the basename; use the full file name.
2556 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002558 fi
2559fi
2560fi
2561fi
2562CC=$ac_cv_prog_CC
2563if test -n "$CC"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2565$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002566else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002569fi
2570
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002571
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002572fi
2573if test -z "$CC"; then
2574 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002575 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002576 do
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580$as_echo_n "checking for $ac_word... " >&6; }
2581if test "${ac_cv_prog_CC+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002583else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002592 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002593 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 +00002594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002596 break 2
2597 fi
2598done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002599 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002600IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002601
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002608else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002611fi
2612
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002613
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002614 test -n "$CC" && break
2615 done
2616fi
2617if test -z "$CC"; then
2618 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002619 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002620do
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622set dummy $ac_prog; ac_word=$2
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002627else
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002636 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002637 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 +00002638 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002640 break 2
2641 fi
2642done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002643 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002644IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002645
2646fi
2647fi
2648ac_ct_CC=$ac_cv_prog_ac_ct_CC
2649if test -n "$ac_ct_CC"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2651$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002652else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002655fi
2656
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002657
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002658 test -n "$ac_ct_CC" && break
2659done
2660
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002661 if test "x$ac_ct_CC" = x; then
2662 CC=""
2663 else
2664 case $cross_compiling:$ac_tool_warned in
2665yes:)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002668ac_tool_warned=yes ;;
2669esac
2670 CC=$ac_ct_CC
2671 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002672fi
2673
2674fi
2675
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002676
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002677test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679as_fn_error "no acceptable C compiler found in \$PATH
2680See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002681
2682# Provide some information about the compiler.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002683$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2684set X $ac_compile
2685ac_compiler=$2
2686for ac_option in --version -v -V -qversion; do
2687 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002688case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693$as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002695 ac_status=$?
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002696 if test -s conftest.err; then
2697 sed '10a\
2698... rest of stderr output deleted ...
2699 10q' conftest.err >conftest.er1
2700 cat conftest.er1 >&5
2701 fi
2702 rm -f conftest.er1 conftest.err
2703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2704 test $ac_status = 0; }
2705done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002706
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002708/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002709
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002710int
2711main ()
2712{
2713
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718ac_clean_files_save=$ac_clean_files
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002719ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002720# Try to create an executable without -o first, disregard a.out.
2721# It will help us diagnose broken compilers, and finding out an intuition
2722# of exeext.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2724$as_echo_n "checking whether the C compiler works... " >&6; }
2725ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2726
2727# The possible output files:
2728ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2729
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002730ac_rmfiles=
2731for ac_file in $ac_files
2732do
2733 case $ac_file in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2736 esac
2737done
2738rm -f $ac_rmfiles
2739
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002740if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2746$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002747 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002748 ac_status=$?
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2750 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2752# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2753# in a Makefile. We should not override ac_cv_exeext if it was cached,
2754# so that the user can short-circuit this test for compilers unknown to
2755# Autoconf.
2756for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002757do
2758 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002759 case $ac_file in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002761 ;;
2762 [ab].out )
2763 # We found the default executable, but exeext='' is most
2764 # certainly right.
2765 break;;
2766 *.* )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002768 then :; else
2769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2770 fi
2771 # We set ac_cv_exeext here because the later test for it is not
2772 # safe: cross compilers may not add the suffix if given an `-o'
2773 # argument, so we may need to know it at that point already.
2774 # Even if this section looks crufty: it has the advantage of
2775 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002776 break;;
2777 * )
2778 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002779 esac
2780done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002781test "$ac_cv_exeext" = no && ac_cv_exeext=
2782
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002783else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002784 ac_file=''
2785fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002786if test -z "$ac_file"; then :
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002790sed 's/^/| /' conftest.$ac_ext >&5
2791
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002792{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794{ as_fn_set_status 77
2795as_fn_error "C compiler cannot create executables
2796See \`config.log' for more details." "$LINENO" 5; }; }
2797else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2799$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002800fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2802$as_echo_n "checking for C compiler default output file name... " >&6; }
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2804$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002805ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002806
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002807rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002808ac_clean_files=$ac_clean_files_save
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2810$as_echo_n "checking for suffix of executables... " >&6; }
2811if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002818 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002819 ac_status=$?
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2823# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2824# work properly (i.e., refer to `conftest.exe'), while it won't with
2825# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002826for ac_file in conftest.exe conftest conftest.*; do
2827 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002828 case $ac_file in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002831 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002832 * ) break;;
2833 esac
2834done
2835else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2838as_fn_error "cannot compute suffix of executables: cannot compile and link
2839See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002840fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002841rm -f conftest conftest$ac_cv_exeext
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2843$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002844
2845rm -f conftest.$ac_ext
2846EXEEXT=$ac_cv_exeext
2847ac_exeext=$EXEEXT
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849/* end confdefs.h. */
2850#include <stdio.h>
2851int
2852main ()
2853{
2854FILE *f = fopen ("conftest.out", "w");
2855 return ferror (f) || fclose (f) != 0;
2856
2857 ;
2858 return 0;
2859}
Sauw Ming6a970a32011-03-01 05:25:27 +00002860_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002861ac_clean_files="$ac_clean_files conftest.out"
2862# Check that the compiler produces executables we can run. If not, either
2863# the compiler is broken, or we cross compile.
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2865$as_echo_n "checking whether we are cross compiling... " >&6; }
2866if test "$cross_compiling" != yes; then
2867 { { ac_try="$ac_link"
2868case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871esac
2872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2873$as_echo "$ac_try_echo"; } >&5
2874 (eval "$ac_link") 2>&5
2875 ac_status=$?
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }
2878 if { ac_try='./conftest$ac_cv_exeext'
2879 { { case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884$as_echo "$ac_try_echo"; } >&5
2885 (eval "$ac_try") 2>&5
2886 ac_status=$?
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; }; }; then
2889 cross_compiling=no
2890 else
2891 if test "$cross_compiling" = maybe; then
2892 cross_compiling=yes
2893 else
2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896as_fn_error "cannot run C compiled programs.
2897If you meant to cross compile, use \`--host'.
2898See \`config.log' for more details." "$LINENO" 5; }
2899 fi
2900 fi
2901fi
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2903$as_echo "$cross_compiling" >&6; }
2904
2905rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2906ac_clean_files=$ac_clean_files_save
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2908$as_echo_n "checking for suffix of object files... " >&6; }
2909if test "${ac_cv_objext+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
2911else
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002913/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002914
2915int
2916main ()
2917{
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923rm -f conftest.o conftest.obj
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002924if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002931 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002932 ac_status=$?
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002935 for ac_file in conftest.o conftest.obj conftest.*; do
2936 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002937 case $ac_file in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2940 break;;
2941 esac
2942done
2943else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002944 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002945sed 's/^/| /' conftest.$ac_ext >&5
2946
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002947{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949as_fn_error "cannot compute suffix of object files: cannot compile
2950See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002951fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002952rm -f conftest.$ac_cv_objext conftest.$ac_ext
2953fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2955$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002956OBJEXT=$ac_cv_objext
2957ac_objext=$OBJEXT
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2959$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2960if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002962else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002964/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002965
2966int
2967main ()
2968{
2969#ifndef __GNUC__
2970 choke me
2971#endif
2972
2973 ;
2974 return 0;
2975}
2976_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002977if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002978 ac_compiler_gnu=yes
2979else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002980 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002981fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002983ac_cv_c_compiler_gnu=$ac_compiler_gnu
2984
2985fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2987$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2988if test $ac_compiler_gnu = yes; then
2989 GCC=yes
2990else
2991 GCC=
2992fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002993ac_test_CFLAGS=${CFLAGS+set}
2994ac_save_CFLAGS=$CFLAGS
Benny Prijonocd62c4e2011-03-18 08:33:29 +00002995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2996$as_echo_n "checking whether $CC accepts -g... " >&6; }
2997if test "${ac_cv_prog_cc_g+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002999else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003000 ac_save_c_werror_flag=$ac_c_werror_flag
3001 ac_c_werror_flag=yes
3002 ac_cv_prog_cc_g=no
3003 CFLAGS="-g"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003005/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003006
3007int
3008main ()
3009{
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003015if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003016 ac_cv_prog_cc_g=yes
3017else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003018 CFLAGS=""
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003020/* end confdefs.h. */
3021
3022int
3023main ()
3024{
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003030if ac_fn_c_try_compile "$LINENO"; then :
Sauw Ming6a970a32011-03-01 05:25:27 +00003031
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003032else
3033 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003034 CFLAGS="-g"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003036/* end confdefs.h. */
3037
3038int
3039main ()
3040{
3041
3042 ;
3043 return 0;
3044}
3045_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003046if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003047 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003048fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003050fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_c_werror_flag=$ac_save_c_werror_flag
3055fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3057$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003058if test "$ac_test_CFLAGS" = set; then
3059 CFLAGS=$ac_save_CFLAGS
3060elif test $ac_cv_prog_cc_g = yes; then
3061 if test "$GCC" = yes; then
3062 CFLAGS="-g -O2"
3063 else
3064 CFLAGS="-g"
3065 fi
3066else
3067 if test "$GCC" = yes; then
3068 CFLAGS="-O2"
3069 else
3070 CFLAGS=
3071 fi
3072fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3074$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3075if test "${ac_cv_prog_cc_c89+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003077else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003078 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003079ac_save_CC=$CC
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003081/* end confdefs.h. */
3082#include <stdarg.h>
3083#include <stdio.h>
3084#include <sys/types.h>
3085#include <sys/stat.h>
3086/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3087struct buf { int x; };
3088FILE * (*rcsopen) (struct buf *, struct stat *, int);
3089static char *e (p, i)
3090 char **p;
3091 int i;
3092{
3093 return p[i];
3094}
3095static char *f (char * (*g) (char **, int), char **p, ...)
3096{
3097 char *s;
3098 va_list v;
3099 va_start (v,p);
3100 s = g (p, va_arg (v,int));
3101 va_end (v);
3102 return s;
3103}
3104
3105/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3106 function prototypes and stuff, but not '\xHH' hex character constants.
3107 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003108 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3110 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003111 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003112int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3113
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003114/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3115 inside strings and character constants. */
3116#define FOO(x) 'x'
3117int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3118
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003119int test (int i, double x);
3120struct s1 {int (*f) (int a);};
3121struct s2 {int (*f) (double a);};
3122int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3123int argc;
3124char **argv;
3125int
3126main ()
3127{
3128return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3129 ;
3130 return 0;
3131}
3132_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003133for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003135do
3136 CC="$ac_save_CC $ac_arg"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003137 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003138 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003139fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003140rm -f core conftest.err conftest.$ac_objext
3141 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003142done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003143rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003144CC=$ac_save_CC
3145
3146fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003147# AC_CACHE_VAL
3148case "x$ac_cv_prog_cc_c89" in
3149 x)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3151$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003152 xno)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3154$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003155 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003156 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3158$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003159esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003160if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003161
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003162fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003163
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003170ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003171ac_cpp='$CXXCPP $CPPFLAGS'
3172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003175if test -z "$CXX"; then
3176 if test -n "$CCC"; then
3177 CXX=$CCC
3178 else
3179 if test -n "$ac_tool_prefix"; then
3180 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 +00003181 do
3182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if test "${ac_cv_prog_CXX+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003188else
3189 if test -n "$CXX"; then
3190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3191else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003197 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003198 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 +00003199 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003201 break 2
3202 fi
3203done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003204 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003205IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003206
3207fi
3208fi
3209CXX=$ac_cv_prog_CXX
3210if test -n "$CXX"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3212$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003213else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003216fi
3217
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003218
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003219 test -n "$CXX" && break
3220 done
3221fi
3222if test -z "$CXX"; then
3223 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003224 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 +00003225do
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227set dummy $ac_prog; ac_word=$2
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229$as_echo_n "checking for $ac_word... " >&6; }
3230if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003232else
3233 if test -n "$ac_ct_CXX"; then
3234 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3235else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003241 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003242 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 +00003243 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003245 break 2
3246 fi
3247done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003248 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003249IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003250
3251fi
3252fi
3253ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3254if test -n "$ac_ct_CXX"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3256$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003257else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003260fi
3261
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003262
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003263 test -n "$ac_ct_CXX" && break
3264done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003265
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003266 if test "x$ac_ct_CXX" = x; then
3267 CXX="g++"
3268 else
3269 case $cross_compiling:$ac_tool_warned in
3270yes:)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003273ac_tool_warned=yes ;;
3274esac
3275 CXX=$ac_ct_CXX
3276 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003277fi
3278
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003279 fi
3280fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003281# Provide some information about the compiler.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003282$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3283set X $ac_compile
3284ac_compiler=$2
3285for ac_option in --version -v -V -qversion; do
3286 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292$as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003294 ac_status=$?
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003295 if test -s conftest.err; then
3296 sed '10a\
3297... rest of stderr output deleted ...
3298 10q' conftest.err >conftest.er1
3299 cat conftest.er1 >&5
3300 fi
3301 rm -f conftest.er1 conftest.err
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }
3304done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003305
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3307$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3308if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003310else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003312/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003313
3314int
3315main ()
3316{
3317#ifndef __GNUC__
3318 choke me
3319#endif
3320
3321 ;
3322 return 0;
3323}
3324_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003325if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003326 ac_compiler_gnu=yes
3327else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003328 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003329fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003331ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3332
3333fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3335$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3336if test $ac_compiler_gnu = yes; then
3337 GXX=yes
3338else
3339 GXX=
3340fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003341ac_test_CXXFLAGS=${CXXFLAGS+set}
3342ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3344$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3345if test "${ac_cv_prog_cxx_g+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003347else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003348 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3349 ac_cxx_werror_flag=yes
3350 ac_cv_prog_cxx_g=no
3351 CXXFLAGS="-g"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003353/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003354
3355int
3356main ()
3357{
3358
3359 ;
3360 return 0;
3361}
3362_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003363if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003364 ac_cv_prog_cxx_g=yes
3365else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003366 CXXFLAGS=""
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003368/* end confdefs.h. */
3369
3370int
3371main ()
3372{
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003378if ac_fn_cxx_try_compile "$LINENO"; then :
Sauw Ming6a970a32011-03-01 05:25:27 +00003379
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003380else
3381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003382 CXXFLAGS="-g"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003384/* end confdefs.h. */
3385
3386int
3387main ()
3388{
3389
3390 ;
3391 return 0;
3392}
3393_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003394if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003395 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003396fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003398fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3403fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3405$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003406if test "$ac_test_CXXFLAGS" = set; then
3407 CXXFLAGS=$ac_save_CXXFLAGS
3408elif test $ac_cv_prog_cxx_g = yes; then
3409 if test "$GXX" = yes; then
3410 CXXFLAGS="-g -O2"
3411 else
3412 CXXFLAGS="-g"
3413 fi
3414else
3415 if test "$GXX" = yes; then
3416 CXXFLAGS="-O2"
3417 else
3418 CXXFLAGS=
3419 fi
3420fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003421ac_ext=c
3422ac_cpp='$CPP $CPPFLAGS'
3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003427ac_ext=c
3428ac_cpp='$CPP $CPPFLAGS'
3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003433
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003434if test -z "$CROSS_COMPILE"; then
3435 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3436fi
3437
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003438if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003439
3440if test "$LD" = ""; then LD="$CC"; fi
3441
3442if test "$LDOUT" = ""; then LDOUT="-o"; fi
3443
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003444if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003445
3446if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3447
3448if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3449
3450if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3451
3452if test "$CC_OUT" = ""; then CC_OUT="-o"; fi
3453
3454if test "$CC_INC" = ""; then CC_INC="-I"; fi
3455
3456if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3457
3458if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3459
3460if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3461
3462
3463
3464
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003465
Benny Prijono0822c192008-08-21 20:59:58 +00003466
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003467
3468case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003469 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003470 if pwd -W 2&> /dev/null; then
3471 ac_pjdir=`pwd -W`
3472 else
3473 # We're probably cross-compiling mingw on Linux
3474 ac_pjdir=`pwd`
3475 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003476 ;;
3477 *)
3478 ac_pjdir=`pwd`
3479 ;;
3480esac
Benny Prijono12483112007-03-12 10:44:38 +00003481
3482
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3484$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3485if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003487else
3488 ac_check_lib_save_LIBS=$LIBS
3489LIBS="-lpthread $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003491/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003492
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003493/* Override any GCC internal prototype to avoid an error.
3494 Use char because int might match the return type of a GCC
3495 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003496#ifdef __cplusplus
3497extern "C"
3498#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003499char pthread_create ();
3500int
3501main ()
3502{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003503return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003504 ;
3505 return 0;
3506}
3507_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003508if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003509 ac_cv_lib_pthread_pthread_create=yes
3510else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003511 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003512fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003513rm -f core conftest.err conftest.$ac_objext \
3514 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003515LIBS=$ac_check_lib_save_LIBS
3516fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3518$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3519if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003520 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003521#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003522_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003523
3524 LIBS="-lpthread $LIBS"
3525
3526fi
3527
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3529$as_echo_n "checking for puts in -lwsock32... " >&6; }
3530if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003532else
3533 ac_check_lib_save_LIBS=$LIBS
3534LIBS="-lwsock32 $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003536/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003537
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003538/* Override any GCC internal prototype to avoid an error.
3539 Use char because int might match the return type of a GCC
3540 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003541#ifdef __cplusplus
3542extern "C"
3543#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003544char puts ();
3545int
3546main ()
3547{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003548return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003549 ;
3550 return 0;
3551}
3552_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003553if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003554 ac_cv_lib_wsock32_puts=yes
3555else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003556 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003557fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003558rm -f core conftest.err conftest.$ac_objext \
3559 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003560LIBS=$ac_check_lib_save_LIBS
3561fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3563$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3564if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003565 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003566#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003567_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003568
3569 LIBS="-lwsock32 $LIBS"
3570
3571fi
3572
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3574$as_echo_n "checking for puts in -lws2_32... " >&6; }
3575if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003577else
3578 ac_check_lib_save_LIBS=$LIBS
3579LIBS="-lws2_32 $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003581/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003582
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003583/* Override any GCC internal prototype to avoid an error.
3584 Use char because int might match the return type of a GCC
3585 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003586#ifdef __cplusplus
3587extern "C"
3588#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003589char puts ();
3590int
3591main ()
3592{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003593return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003594 ;
3595 return 0;
3596}
3597_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003598if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003599 ac_cv_lib_ws2_32_puts=yes
3600else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003601 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003602fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003603rm -f core conftest.err conftest.$ac_objext \
3604 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003605LIBS=$ac_check_lib_save_LIBS
3606fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3608$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3609if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003610 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003611#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003612_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003613
3614 LIBS="-lws2_32 $LIBS"
3615
3616fi
3617
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3619$as_echo_n "checking for puts in -lole32... " >&6; }
3620if test "${ac_cv_lib_ole32_puts+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003622else
3623 ac_check_lib_save_LIBS=$LIBS
3624LIBS="-lole32 $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003626/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003627
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003628/* Override any GCC internal prototype to avoid an error.
3629 Use char because int might match the return type of a GCC
3630 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631#ifdef __cplusplus
3632extern "C"
3633#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003634char puts ();
3635int
3636main ()
3637{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003638return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003639 ;
3640 return 0;
3641}
3642_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003643if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003644 ac_cv_lib_ole32_puts=yes
3645else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003646 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003647fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003648rm -f core conftest.err conftest.$ac_objext \
3649 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003650LIBS=$ac_check_lib_save_LIBS
3651fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3653$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3654if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003655 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003656#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003657_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003658
3659 LIBS="-lole32 $LIBS"
3660
3661fi
3662
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3664$as_echo_n "checking for puts in -lwinmm... " >&6; }
3665if test "${ac_cv_lib_winmm_puts+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003667else
3668 ac_check_lib_save_LIBS=$LIBS
3669LIBS="-lwinmm $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003671/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003672
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003673/* Override any GCC internal prototype to avoid an error.
3674 Use char because int might match the return type of a GCC
3675 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003676#ifdef __cplusplus
3677extern "C"
3678#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003679char puts ();
3680int
3681main ()
3682{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003683return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003684 ;
3685 return 0;
3686}
3687_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003688if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003689 ac_cv_lib_winmm_puts=yes
3690else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003691 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003692fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003693rm -f core conftest.err conftest.$ac_objext \
3694 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003695LIBS=$ac_check_lib_save_LIBS
3696fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3698$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3699if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003700 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003701#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003702_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003703
3704 LIBS="-lwinmm $LIBS"
3705
3706fi
3707
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3709$as_echo_n "checking for puts in -lsocket... " >&6; }
3710if test "${ac_cv_lib_socket_puts+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003712else
3713 ac_check_lib_save_LIBS=$LIBS
3714LIBS="-lsocket $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003716/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003717
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003718/* Override any GCC internal prototype to avoid an error.
3719 Use char because int might match the return type of a GCC
3720 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003721#ifdef __cplusplus
3722extern "C"
3723#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003724char puts ();
3725int
3726main ()
3727{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003728return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003729 ;
3730 return 0;
3731}
3732_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003733if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003734 ac_cv_lib_socket_puts=yes
3735else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003736 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003737fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003738rm -f core conftest.err conftest.$ac_objext \
3739 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003740LIBS=$ac_check_lib_save_LIBS
3741fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3743$as_echo "$ac_cv_lib_socket_puts" >&6; }
3744if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003745 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003746#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003747_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003748
3749 LIBS="-lsocket $LIBS"
3750
3751fi
3752
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3754$as_echo_n "checking for puts in -lrt... " >&6; }
3755if test "${ac_cv_lib_rt_puts+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003757else
3758 ac_check_lib_save_LIBS=$LIBS
3759LIBS="-lrt $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003761/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003762
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003763/* Override any GCC internal prototype to avoid an error.
3764 Use char because int might match the return type of a GCC
3765 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003766#ifdef __cplusplus
3767extern "C"
3768#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003769char puts ();
3770int
3771main ()
3772{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003773return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003774 ;
3775 return 0;
3776}
3777_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003778if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003779 ac_cv_lib_rt_puts=yes
3780else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003781 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003782fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003783rm -f core conftest.err conftest.$ac_objext \
3784 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003785LIBS=$ac_check_lib_save_LIBS
3786fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3788$as_echo "$ac_cv_lib_rt_puts" >&6; }
3789if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003790 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003791#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003792_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003793
3794 LIBS="-lrt $LIBS"
3795
3796fi
3797
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3799$as_echo_n "checking for puts in -lnsl... " >&6; }
3800if test "${ac_cv_lib_nsl_puts+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003802else
3803 ac_check_lib_save_LIBS=$LIBS
3804LIBS="-lnsl $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003806/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003807
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003808/* Override any GCC internal prototype to avoid an error.
3809 Use char because int might match the return type of a GCC
3810 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003811#ifdef __cplusplus
3812extern "C"
3813#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003814char puts ();
3815int
3816main ()
3817{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003818return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003819 ;
3820 return 0;
3821}
3822_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003823if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003824 ac_cv_lib_nsl_puts=yes
3825else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003826 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003827fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003828rm -f core conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003830LIBS=$ac_check_lib_save_LIBS
3831fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3833$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3834if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003835 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003836#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003837_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003838
3839 LIBS="-lnsl $LIBS"
3840
3841fi
3842
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3844$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3845if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003847else
3848 ac_check_lib_save_LIBS=$LIBS
3849LIBS="-luuid $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003851/* end confdefs.h. */
3852
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003853/* Override any GCC internal prototype to avoid an error.
3854 Use char because int might match the return type of a GCC
3855 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003856#ifdef __cplusplus
3857extern "C"
3858#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003859char uuid_generate ();
3860int
3861main ()
3862{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003863return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003864 ;
3865 return 0;
3866}
3867_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003868if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003869 ac_cv_lib_uuid_uuid_generate=yes
3870else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003871 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003872fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003873rm -f core conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003875LIBS=$ac_check_lib_save_LIBS
3876fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3878$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3879if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003880 cat >>confdefs.h <<_ACEOF
3881#define HAVE_LIBUUID 1
3882_ACEOF
3883
3884 LIBS="-luuid $LIBS"
3885
3886fi
3887
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3889$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3890if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003892else
3893 ac_check_lib_save_LIBS=$LIBS
3894LIBS="-luuid $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003896/* end confdefs.h. */
3897
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003898/* Override any GCC internal prototype to avoid an error.
3899 Use char because int might match the return type of a GCC
3900 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003901#ifdef __cplusplus
3902extern "C"
3903#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003904char uuid_generate ();
3905int
3906main ()
3907{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003908return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003909 ;
3910 return 0;
3911}
3912_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003913if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003914 ac_cv_lib_uuid_uuid_generate=yes
3915else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003916 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003917fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003918rm -f core conftest.err conftest.$ac_objext \
3919 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003920LIBS=$ac_check_lib_save_LIBS
3921fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3923$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3924if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003925 ac_has_uuid_lib=1
3926fi
3927
3928
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
3930$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003931cat >>confdefs.h <<_ACEOF
3932#define PJ_M_NAME "$target_cpu"
3933_ACEOF
3934
3935
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
3937$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003938case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00003939 sparc64-* | ia64-* | x86_64-* )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003940 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003941
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
3943$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003944 ;;
3945 * )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003946 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003947
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
3949$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003950 ;;
3951esac
3952
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003953
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003954ac_ext=c
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3960$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003961# On Suns, sometimes $CPP names a directory.
3962if test -n "$CPP" && test -d "$CPP"; then
3963 CPP=
3964fi
3965if test -z "$CPP"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003966 if test "${ac_cv_prog_CPP+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003968else
3969 # Double quotes because CPP needs to be expanded
3970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3971 do
3972 ac_preproc_ok=false
3973for ac_c_preproc_warn_flag in '' yes
3974do
3975 # Use a header file that comes with gcc, so configuring glibc
3976 # with a fresh cross-compiler works.
3977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3978 # <limits.h> exists even on freestanding compilers.
3979 # On the NeXT, cc -E runs the code through the compiler's parser,
3980 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003982/* end confdefs.h. */
3983#ifdef __STDC__
3984# include <limits.h>
3985#else
3986# include <assert.h>
3987#endif
3988 Syntax error
3989_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003990if ac_fn_c_try_cpp "$LINENO"; then :
Sauw Ming6a970a32011-03-01 05:25:27 +00003991
Benny Prijonocd62c4e2011-03-18 08:33:29 +00003992else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003993 # Broken: fails on valid input.
3994continue
3995fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003996rm -f conftest.err conftest.$ac_ext
3997
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004001/* end confdefs.h. */
4002#include <ac_nonexistent.h>
4003_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004004if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004005 # Broken: success on invalid input.
4006continue
4007else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004008 # Passes both tests.
4009ac_preproc_ok=:
4010break
4011fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004012rm -f conftest.err conftest.$ac_ext
4013
4014done
4015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4016rm -f conftest.err conftest.$ac_ext
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004017if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004018 break
4019fi
4020
4021 done
4022 ac_cv_prog_CPP=$CPP
4023
4024fi
4025 CPP=$ac_cv_prog_CPP
4026else
4027 ac_cv_prog_CPP=$CPP
4028fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4030$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004031ac_preproc_ok=false
4032for ac_c_preproc_warn_flag in '' yes
4033do
4034 # Use a header file that comes with gcc, so configuring glibc
4035 # with a fresh cross-compiler works.
4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 # <limits.h> exists even on freestanding compilers.
4038 # On the NeXT, cc -E runs the code through the compiler's parser,
4039 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004041/* end confdefs.h. */
4042#ifdef __STDC__
4043# include <limits.h>
4044#else
4045# include <assert.h>
4046#endif
4047 Syntax error
4048_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004049if ac_fn_c_try_cpp "$LINENO"; then :
Sauw Ming6a970a32011-03-01 05:25:27 +00004050
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004051else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004052 # Broken: fails on valid input.
4053continue
4054fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004055rm -f conftest.err conftest.$ac_ext
4056
4057 # OK, works on sane cases. Now check whether nonexistent headers
4058 # can be detected and how.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004060/* end confdefs.h. */
4061#include <ac_nonexistent.h>
4062_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004063if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004064 # Broken: success on invalid input.
4065continue
4066else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004067 # Passes both tests.
4068ac_preproc_ok=:
4069break
4070fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004071rm -f conftest.err conftest.$ac_ext
4072
4073done
4074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075rm -f conftest.err conftest.$ac_ext
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004076if $ac_preproc_ok; then :
4077
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004078else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081as_fn_error "C preprocessor \"$CPP\" fails sanity check
4082See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004083fi
4084
4085ac_ext=c
4086ac_cpp='$CPP $CPPFLAGS'
4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4093$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4094if test "${ac_cv_path_GREP+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004096else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004097 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004098 ac_path_GREP_found=false
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004101for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004105 for ac_prog in grep ggrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4109# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004110 # Check for GNU $ac_path_GREP
4111case `"$ac_path_GREP" --version 2>&1` in
4112*GNU*)
4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4114*)
4115 ac_count=0
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004116 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004117 while :
4118 do
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004122 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004125 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_GREP="$ac_path_GREP"
4129 ac_path_GREP_max=$ac_count
4130 fi
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4133 done
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135esac
4136
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004137 $ac_path_GREP_found && break 3
4138 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004139 done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004140 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004141IFS=$as_save_IFS
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004142 if test -z "$ac_cv_path_GREP"; then
4143 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4144 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004145else
4146 ac_cv_path_GREP=$GREP
4147fi
4148
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004149fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4151$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004152 GREP="$ac_cv_path_GREP"
4153
4154
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4156$as_echo_n "checking for egrep... " >&6; }
4157if test "${ac_cv_path_EGREP+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004159else
4160 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4161 then ac_cv_path_EGREP="$GREP -E"
4162 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004163 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004164 ac_path_EGREP_found=false
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004165 # Loop through the user's path and test for each of PROGNAME-LIST
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004171 for ac_prog in egrep; do
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4174 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4175# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004176 # Check for GNU $ac_path_EGREP
4177case `"$ac_path_EGREP" --version 2>&1` in
4178*GNU*)
4179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4180*)
4181 ac_count=0
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004182 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004183 while :
4184 do
4185 cat "conftest.in" "conftest.in" >"conftest.tmp"
4186 mv "conftest.tmp" "conftest.in"
4187 cp "conftest.in" "conftest.nl"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004188 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004191 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4193 # Best one so far, save it but keep looking for a better one
4194 ac_cv_path_EGREP="$ac_path_EGREP"
4195 ac_path_EGREP_max=$ac_count
4196 fi
4197 # 10*(2^10) chars as input seems more than enough
4198 test $ac_count -gt 10 && break
4199 done
4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201esac
4202
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004203 $ac_path_EGREP_found && break 3
4204 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004205 done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004206 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004207IFS=$as_save_IFS
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004208 if test -z "$ac_cv_path_EGREP"; then
4209 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4210 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004211else
4212 ac_cv_path_EGREP=$EGREP
4213fi
4214
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004215 fi
4216fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4218$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004219 EGREP="$ac_cv_path_EGREP"
4220
4221
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4223$as_echo_n "checking for ANSI C header files... " >&6; }
4224if test "${ac_cv_header_stdc+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004226else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004228/* end confdefs.h. */
4229#include <stdlib.h>
4230#include <stdarg.h>
4231#include <string.h>
4232#include <float.h>
4233
4234int
4235main ()
4236{
4237
4238 ;
4239 return 0;
4240}
4241_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004242if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004243 ac_cv_header_stdc=yes
4244else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004245 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004246fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248
4249if test $ac_cv_header_stdc = yes; then
4250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004252/* end confdefs.h. */
4253#include <string.h>
4254
4255_ACEOF
4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004257 $EGREP "memchr" >/dev/null 2>&1; then :
4258
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004259else
4260 ac_cv_header_stdc=no
4261fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004262rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004263
4264fi
4265
4266if test $ac_cv_header_stdc = yes; then
4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004269/* end confdefs.h. */
4270#include <stdlib.h>
4271
4272_ACEOF
4273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004274 $EGREP "free" >/dev/null 2>&1; then :
4275
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004276else
4277 ac_cv_header_stdc=no
4278fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004279rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004280
4281fi
4282
4283if test $ac_cv_header_stdc = yes; then
4284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004285 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004286 :
4287else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004289/* end confdefs.h. */
4290#include <ctype.h>
4291#include <stdlib.h>
4292#if ((' ' & 0x0FF) == 0x020)
4293# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4294# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4295#else
4296# define ISLOWER(c) \
4297 (('a' <= (c) && (c) <= 'i') \
4298 || ('j' <= (c) && (c) <= 'r') \
4299 || ('s' <= (c) && (c) <= 'z'))
4300# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4301#endif
4302
4303#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4304int
4305main ()
4306{
4307 int i;
4308 for (i = 0; i < 256; i++)
4309 if (XOR (islower (i), ISLOWER (i))
4310 || toupper (i) != TOUPPER (i))
4311 return 2;
4312 return 0;
4313}
4314_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004315if ac_fn_c_try_run "$LINENO"; then :
4316
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004317else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004318 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004319fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4321 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004322fi
4323
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004324fi
4325fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4327$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004328if test $ac_cv_header_stdc = yes; then
4329
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004330$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004331
4332fi
4333
4334# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4336 inttypes.h stdint.h unistd.h
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004337do :
4338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4340"
4341eval as_val=\$$as_ac_Header
4342 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004343 cat >>confdefs.h <<_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004344#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004345_ACEOF
4346
4347fi
4348
4349done
4350
4351
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4353$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4354if test "${ac_cv_c_bigendian+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004356else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004357 ac_cv_c_bigendian=unknown
4358 # See if we're dealing with a universal compiler.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360/* end confdefs.h. */
4361#ifndef __APPLE_CC__
4362 not a universal capable compiler
4363 #endif
4364 typedef int dummy;
4365
Benny Prijonod5233702010-01-13 13:09:45 +00004366_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004367if ac_fn_c_try_compile "$LINENO"; then :
4368
4369 # Check for potential -arch flags. It is not universal unless
4370 # there are at least two -arch flags with different values.
4371 ac_arch=
4372 ac_prev=
4373 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4374 if test -n "$ac_prev"; then
4375 case $ac_word in
4376 i?86 | x86_64 | ppc | ppc64)
4377 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4378 ac_arch=$ac_word
4379 else
4380 ac_cv_c_bigendian=universal
4381 break
4382 fi
4383 ;;
4384 esac
4385 ac_prev=
4386 elif test "x$ac_word" = "x-arch"; then
4387 ac_prev=arch
4388 fi
4389 done
4390fi
4391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 if test $ac_cv_c_bigendian = unknown; then
4393 # See if sys/param.h defines the BYTE_ORDER macro.
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004395/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004396#include <sys/types.h>
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004397 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004398
4399int
4400main ()
4401{
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004402#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4403 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4404 && LITTLE_ENDIAN)
4405 bogus endian macros
4406 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004407
4408 ;
4409 return 0;
4410}
4411_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004412if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004413 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004415/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004416#include <sys/types.h>
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004417 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004418
4419int
4420main ()
4421{
4422#if BYTE_ORDER != BIG_ENDIAN
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004423 not big endian
4424 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004425
4426 ;
4427 return 0;
4428}
4429_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004430if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004431 ac_cv_c_bigendian=yes
4432else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004433 ac_cv_c_bigendian=no
Sauw Ming6a970a32011-03-01 05:25:27 +00004434fi
Sauw Ming6a970a32011-03-01 05:25:27 +00004435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 fi
4439 if test $ac_cv_c_bigendian = unknown; then
4440 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6a970a32011-03-01 05:25:27 +00004442/* end confdefs.h. */
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004443#include <limits.h>
4444
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004445int
4446main ()
4447{
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004448#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4449 bogus endian macros
4450 #endif
4451
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004452 ;
4453 return 0;
4454}
4455_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004456if ac_fn_c_try_compile "$LINENO"; then :
4457 # It does; now see whether it defined to _BIG_ENDIAN or not.
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h. */
4460#include <limits.h>
4461
4462int
4463main ()
4464{
4465#ifndef _BIG_ENDIAN
4466 not big endian
4467 #endif
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004474 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004475else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004476 ac_cv_c_bigendian=no
Benny Prijonoe3e65802011-02-28 07:44:19 +00004477fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 fi
4482 if test $ac_cv_c_bigendian = unknown; then
4483 # Compile a test program.
4484 if test "$cross_compiling" = yes; then :
4485 # Try to guess by grepping values from an object file.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h. */
4488short int ascii_mm[] =
4489 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4490 short int ascii_ii[] =
4491 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4492 int use_ascii (int i) {
4493 return ascii_mm[i] + ascii_ii[i];
4494 }
4495 short int ebcdic_ii[] =
4496 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4497 short int ebcdic_mm[] =
4498 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4499 int use_ebcdic (int i) {
4500 return ebcdic_mm[i] + ebcdic_ii[i];
4501 }
4502 extern int foo;
Sauw Ming6a970a32011-03-01 05:25:27 +00004503
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004504int
4505main ()
4506{
4507return use_ascii (foo) == use_ebcdic (foo);
4508 ;
4509 return 0;
4510}
4511_ACEOF
4512if ac_fn_c_try_compile "$LINENO"; then :
4513 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4514 ac_cv_c_bigendian=yes
4515 fi
4516 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4517 if test "$ac_cv_c_bigendian" = unknown; then
4518 ac_cv_c_bigendian=no
4519 else
4520 # finding both strings is unlikely to happen, but who knows?
4521 ac_cv_c_bigendian=unknown
4522 fi
4523 fi
4524fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004526else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004528/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004529$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004530int
4531main ()
4532{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004533
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004534 /* Are we little or big endian? From Harbison&Steele. */
4535 union
4536 {
4537 long int l;
4538 char c[sizeof (long int)];
4539 } u;
4540 u.l = 1;
4541 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004542
4543 ;
4544 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004545}
4546_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004547if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004548 ac_cv_c_bigendian=no
4549else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004550 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004551fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4553 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004554fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004555
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004556 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004557fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4559$as_echo "$ac_cv_c_bigendian" >&6; }
4560 case $ac_cv_c_bigendian in #(
4561 yes)
4562 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4563;; #(
4564 no)
4565 ;; #(
4566 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004567
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004568$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004569
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004570 ;; #(
4571 *)
4572 as_fn_error "unknown endianness
4573 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4574 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004575
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004576
4577case $target in
4578 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004579 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004580
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004581 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004582
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004583 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004584
4585 ;;
4586 *darwin*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004587 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004588
4589 ;;
4590 *linux*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004591 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004592
4593 ;;
4594 *rtems*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004595 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004596
4597 ;;
4598 *sunos* | *solaris* )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004599 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004600
4601 ;;
4602 *)
4603 ;;
4604esac
4605
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004606
4607
4608
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004609# Check whether --enable-floating-point was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004610if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004611 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004612 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004613
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4615$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004616 fi
4617else
4618
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004619 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004620
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4622$as_echo "Checking if floating point is disabled... no" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4624$as_echo_n "checking for fmod in -lm... " >&6; }
4625if test "${ac_cv_lib_m_fmod+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004627else
4628 ac_check_lib_save_LIBS=$LIBS
4629LIBS="-lm $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004631/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004632
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004633/* Override any GCC internal prototype to avoid an error.
4634 Use char because int might match the return type of a GCC
4635 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004636#ifdef __cplusplus
4637extern "C"
4638#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004639char fmod ();
4640int
4641main ()
4642{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004643return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004644 ;
4645 return 0;
4646}
4647_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004648if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004649 ac_cv_lib_m_fmod=yes
4650else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004651 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004652fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004653rm -f core conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004655LIBS=$ac_check_lib_save_LIBS
4656fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4658$as_echo "$ac_cv_lib_m_fmod" >&6; }
4659if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004660 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004661#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004662_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004663
4664 LIBS="-lm $LIBS"
4665
4666fi
4667
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004668
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004669fi
4670
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004671
4672
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004673ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4674if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4675 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004676
4677fi
4678
4679
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004680ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4681if test "x$ac_cv_header_assert_h" = x""yes; then :
4682 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004683
4684fi
4685
4686
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004687ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4688if test "x$ac_cv_header_ctype_h" = x""yes; then :
4689 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004690
4691fi
4692
4693
4694
4695case $target in
4696 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004697 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004698
4699 ;;
4700 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004701 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4702if test "x$ac_cv_header_errno_h" = x""yes; then :
4703 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004704
4705fi
4706
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004707
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004708 ;;
4709esac
4710
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004711ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4712if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4713 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004714
4715fi
4716
4717
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004718ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4719if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4720 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004721
4722fi
4723
4724
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004725ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4726if test "x$ac_cv_header_limits_h" = x""yes; then :
4727 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004728
4729fi
4730
4731
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004732ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4733if test "x$ac_cv_header_malloc_h" = x""yes; then :
4734 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004735
4736fi
4737
4738
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004739ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4740if test "x$ac_cv_header_netdb_h" = x""yes; then :
4741 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004742
4743fi
4744
4745
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004746ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4747if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4748 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004749
4750fi
4751
4752
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004753ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4754if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4755 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijonoe3e65802011-02-28 07:44:19 +00004756
4757fi
4758
4759
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004760ac_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 +00004761 # include <sys/types.h>
4762 #endif
4763 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004764 # include <netinet/in_systm.h>
4765 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004766 #if PJ_HAS_NETINET_IN_H
4767 # include <netinet/in.h>
4768 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004769
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004770"
4771if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4772 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004773
Sauw Ming6a970a32011-03-01 05:25:27 +00004774fi
4775
Sauw Mingbe3771a2010-08-27 06:46:29 +00004776
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004777ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4778if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4779 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004780
Sauw Ming6a970a32011-03-01 05:25:27 +00004781fi
4782
Sauw Ming6a970a32011-03-01 05:25:27 +00004783
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004784ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4785if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
4786 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4787if test "x$ac_cv_func_getifaddrs" = x""yes; then :
4788 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004789
4790fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004791
Sauw Mingbe3771a2010-08-27 06:46:29 +00004792fi
4793
Sauw Mingbe3771a2010-08-27 06:46:29 +00004794
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004795ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4796if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4797 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004798
Sauw Ming6a970a32011-03-01 05:25:27 +00004799fi
4800
Sauw Ming6a970a32011-03-01 05:25:27 +00004801
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004802ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4803if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4804 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004805
Sauw Ming6a970a32011-03-01 05:25:27 +00004806fi
4807
Sauw Ming6a970a32011-03-01 05:25:27 +00004808
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004809ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4810if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4811 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004812
4813fi
Sauw Ming6a970a32011-03-01 05:25:27 +00004814
Sauw Ming6a970a32011-03-01 05:25:27 +00004815
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004816ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4817if test "x$ac_cv_header_stddef_h" = x""yes; then :
4818 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004819
Sauw Ming6a970a32011-03-01 05:25:27 +00004820fi
4821
Sauw Mingbe3771a2010-08-27 06:46:29 +00004822
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004823ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4824if test "x$ac_cv_header_stdio_h" = x""yes; then :
4825 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004826
Benny Prijono46bd0842010-02-12 14:12:41 +00004827fi
4828
Benny Prijono46bd0842010-02-12 14:12:41 +00004829
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004830ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4831if test "x$ac_cv_header_stdint_h" = x""yes; then :
4832 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004833
Sauw Ming6a970a32011-03-01 05:25:27 +00004834fi
4835
Sauw Ming6a970a32011-03-01 05:25:27 +00004836
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004837ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4838if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4839 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004840
Sauw Ming6a970a32011-03-01 05:25:27 +00004841fi
4842
Sauw Ming6a970a32011-03-01 05:25:27 +00004843
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004844ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4845if test "x$ac_cv_header_string_h" = x""yes; then :
4846 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Sauw Mingbe3771a2010-08-27 06:46:29 +00004847
Sauw Mingbe3771a2010-08-27 06:46:29 +00004848fi
4849
Sauw Mingbe3771a2010-08-27 06:46:29 +00004850
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004851ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4852if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4853 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004854
Sauw Ming6a970a32011-03-01 05:25:27 +00004855fi
4856
Sauw Ming6a970a32011-03-01 05:25:27 +00004857
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004858ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4859if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4860 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004861
Sauw Ming6a970a32011-03-01 05:25:27 +00004862fi
4863
Sauw Ming6a970a32011-03-01 05:25:27 +00004864
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004865ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4866if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4867 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004868
4869fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004870
Sauw Mingbe3771a2010-08-27 06:46:29 +00004871
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004872ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4873if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4874 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Sauw Mingbe3771a2010-08-27 06:46:29 +00004875
Sauw Ming6a970a32011-03-01 05:25:27 +00004876fi
Sauw Ming6a970a32011-03-01 05:25:27 +00004877
Sauw Ming6a970a32011-03-01 05:25:27 +00004878
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004879ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4880if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4881 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004882
Sauw Ming6a970a32011-03-01 05:25:27 +00004883fi
4884
Sauw Ming6a970a32011-03-01 05:25:27 +00004885
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004886ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4887if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4888 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004889
Sauw Ming6a970a32011-03-01 05:25:27 +00004890fi
Sauw Ming6a970a32011-03-01 05:25:27 +00004891
Sauw Mingbe3771a2010-08-27 06:46:29 +00004892
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004893ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4894if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4895 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004896
Sauw Ming6a970a32011-03-01 05:25:27 +00004897fi
4898
Sauw Ming6a970a32011-03-01 05:25:27 +00004899
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004900ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4901if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4902 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004903
Sauw Ming6a970a32011-03-01 05:25:27 +00004904fi
4905
Sauw Ming6a970a32011-03-01 05:25:27 +00004906
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004907ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
4908if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
4909 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004910
4911fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004912
Sauw Mingbe3771a2010-08-27 06:46:29 +00004913
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004914ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4915if test "x$ac_cv_header_time_h" = x""yes; then :
4916 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004917
Sauw Ming6a970a32011-03-01 05:25:27 +00004918fi
Sauw Ming6a970a32011-03-01 05:25:27 +00004919
Sauw Ming6a970a32011-03-01 05:25:27 +00004920
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004921ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4922if test "x$ac_cv_header_unistd_h" = x""yes; then :
4923 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004924
Sauw Ming6a970a32011-03-01 05:25:27 +00004925fi
4926
Sauw Ming6a970a32011-03-01 05:25:27 +00004927
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004928ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4929if test "x$ac_cv_header_winsock_h" = x""yes; then :
4930 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Sauw Ming6a970a32011-03-01 05:25:27 +00004931
Sauw Ming6a970a32011-03-01 05:25:27 +00004932fi
Sauw Ming6a970a32011-03-01 05:25:27 +00004933
Benny Prijono46bd0842010-02-12 14:12:41 +00004934
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004935ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4936if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4937 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004938
Sauw Ming6a970a32011-03-01 05:25:27 +00004939fi
Sauw Ming6a970a32011-03-01 05:25:27 +00004940
Sauw Ming6a970a32011-03-01 05:25:27 +00004941
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004942ac_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 +00004943 # include <winsock2.h>
4944 #elif PJ_HAS_WINSOCK_H
4945 # include <winsock.h>
4946 #endif
4947
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004948"
4949if test "x$ac_cv_header_mswsock_h" = x""yes; then :
4950 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00004951
4952fi
4953
4954
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004955ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
4956if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
4957 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00004958
4959fi
4960
4961
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004962ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
4963if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004964 ac_has_uuid_h=1
4965fi
4966
4967
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004968ac_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 +00004969 # include <sys/types.h>
4970 #endif
4971 #if PJ_HAS_SYS_SOCKET_H
4972
Benny Prijono188ba7e2008-03-25 13:53:16 +00004973 # include <sys/socket.h>
4974 #endif
4975
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004976"
4977if test "x$ac_cv_header_net_if_h" = x""yes; then :
4978 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00004979
4980fi
4981
Benny Prijono188ba7e2008-03-25 13:53:16 +00004982
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
4984$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004985cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004986#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004987_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004988
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004989
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
4991$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
4992$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004993
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004994
Benny Prijonocd62c4e2011-03-18 08:33:29 +00004995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
4996$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
4997$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004998
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004999
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5001$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5002$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005003
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005004
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5006$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5007$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005008
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005009
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5011$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5012$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005013
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005014
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5016$as_echo_n "checking if inet_aton() is available... " >&6; }
5017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005018/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005019#include <sys/types.h>
5020 #include <sys/socket.h>
5021 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005022int
5023main ()
5024{
5025inet_aton(0, 0);
5026 ;
5027 return 0;
5028}
5029_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005030if ac_fn_c_try_compile "$LINENO"; then :
5031 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005032
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005035else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005038fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5042$as_echo_n "checking if inet_pton() is available... " >&6; }
5043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005044/* end confdefs.h. */
5045#include <sys/types.h>
5046 #include <sys/socket.h>
5047 #include <arpa/inet.h>
5048int
5049main ()
5050{
5051inet_pton(0, 0, 0);
5052 ;
5053 return 0;
5054}
5055_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005056if ac_fn_c_try_compile "$LINENO"; then :
5057 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005058
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5060$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005061else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005064fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5068$as_echo_n "checking if inet_ntop() is available... " >&6; }
5069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005070/* end confdefs.h. */
5071#include <sys/types.h>
5072 #include <sys/socket.h>
5073 #include <arpa/inet.h>
5074int
5075main ()
5076{
5077inet_ntop(0, 0, 0, 0);
5078 ;
5079 return 0;
5080}
5081_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005082if ac_fn_c_try_compile "$LINENO"; then :
5083 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005084
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5086$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005087else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005090fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5094$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005096/* end confdefs.h. */
5097#include <sys/types.h>
5098 #include <sys/socket.h>
5099 #include <netdb.h>
5100int
5101main ()
5102{
5103getaddrinfo(0, 0, 0, 0);
5104 ;
5105 return 0;
5106}
5107_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005108if ac_fn_c_try_compile "$LINENO"; then :
5109 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005110
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5112$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005113else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005116fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5120$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005122/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005123#include <sys/types.h>
5124 #include <sys/socket.h>
5125 #include <netinet/in.h>
5126 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005127int
5128main ()
5129{
5130struct sockaddr_in a; a.sin_len=0;
5131 ;
5132 return 0;
5133}
5134_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005135if ac_fn_c_try_compile "$LINENO"; then :
5136 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005137
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5139$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005140else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005143fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5147$as_echo_n "checking if socklen_t is available... " >&6; }
5148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005149/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005150#include <sys/types.h>
5151 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005152int
5153main ()
5154{
5155socklen_t xxx = 0;
5156 ;
5157 return 0;
5158}
5159_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005160if ac_fn_c_try_compile "$LINENO"; then :
5161 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005162
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005165else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005168fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5172$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005173case $target in
5174 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005175 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005176
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5178$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005179 ;;
5180 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005182/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005183#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005184 #include <sys/socket.h>
5185 #include <netinet/in.h>
5186 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005187int
5188main ()
5189{
5190int i=SO_ERROR;
5191 ;
5192 return 0;
5193}
5194_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005195if ac_fn_c_try_compile "$LINENO"; then :
5196 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005197
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5199$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005200else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005203fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005205 ;;
5206esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005207
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005208
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5210$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005212/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005213#include <pthread.h>
5214int
5215main ()
5216{
5217pthread_rwlock_t *x;
5218 ;
5219 return 0;
5220}
5221_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005222if ac_fn_c_try_compile "$LINENO"; then :
5223 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005224
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005225 ac_rwmutex="yes"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005228else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005229 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005230
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005231 ac_rwmutex="no"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005234fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005236
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005237if test "$ac_rwmutex" = "no"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5239$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005241/* end confdefs.h. */
5242#define _POSIX_READER_WRITER_LOCKS
5243 #include <pthread.h>
5244int
5245main ()
5246{
5247pthread_rwlock_t *x;
5248 ;
5249 return 0;
5250}
5251_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005252if ac_fn_c_try_compile "$LINENO"; then :
5253 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005254
5255 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5257$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005258else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005259 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005260
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005263fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265fi
5266
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5268$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005270/* end confdefs.h. */
5271#include <pthread.h>
5272int
5273main ()
5274{
5275pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5276 ;
5277 return 0;
5278}
5279_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005280if ac_fn_c_try_compile "$LINENO"; then :
5281 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005282
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5284$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005285else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005288fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5292$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005294/* end confdefs.h. */
5295#include <pthread.h>
5296int
5297main ()
5298{
5299pthread_mutexattr_t attr;
5300 attr.recursive=1;
5301 ;
5302 return 0;
5303}
5304_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005305if ac_fn_c_try_compile "$LINENO"; then :
5306 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005307
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005310else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005313fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005315
Benny Prijono99eec382008-09-18 21:22:16 +00005316
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5318$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005319# Check whether --enable-epoll was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005320if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005321 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005322 ac_os_objs=ioqueue_epoll.o
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5324$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005325
5326else
5327
5328 ac_os_objs=ioqueue_select.o
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5330$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005331
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005332fi
5333
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005334
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005335
5336case $target in
5337 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005338 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 +00005339 ;;
5340 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005341 ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005342 case $target in
5343 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +00005344 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005345 ;;
5346 esac
Benny Prijono4e48b512007-05-16 13:41:00 +00005347 # UUID
5348 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5349 ac_os_objs="$ac_os_objs guid_uuid.o"
5350 else
5351 ac_os_objs="$ac_os_objs guid_simple.o"
5352 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005353 ;;
5354esac
5355
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005356
5357
5358
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005359ac_external_speex=0
5360
5361
5362# Check whether --with-external-speex was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005363if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005364 withval=$with_external_speex;
5365 if test "x$with_external_speex" != "xno"; then
5366 # Test Speex installation
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5368$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005370/* end confdefs.h. */
5371#include <speex/speex.h>
5372 #include <speex/speex_echo.h>
5373
5374int
5375main ()
5376{
5377speex_echo_state_init(0, 0); speex_encoder_init(0);
5378 ;
5379 return 0;
5380}
5381_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005382if ac_fn_c_try_compile "$LINENO"; then :
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5384$as_echo "yes!!" >&6; }
5385 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005386
5387 ac_external_speex="1"
5388
5389else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005390 as_fn_error "Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005391fi
5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393 fi
5394
5395
5396fi
5397
5398
5399ac_external_gsm=0
5400
5401
5402# Check whether --with-external-gsm was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005403if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005404 withval=$with_external_gsm;
5405 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005406 # Test GSM library installation
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5408$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005410/* end confdefs.h. */
5411#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005412int
5413main ()
5414{
5415gsm_create();
5416 ;
5417 return 0;
5418}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005419_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005420if ac_fn_c_try_compile "$LINENO"; then :
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5422$as_echo "yes!!" >&6; }
5423 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005424
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005425 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005426
5427 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005428
5429else
Benny Prijono46bd0842010-02-12 14:12:41 +00005430
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5434$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00005436/* end confdefs.h. */
5437#include <gsm.h>
5438int
5439main ()
5440{
5441gsm_create();
5442 ;
5443 return 0;
5444}
5445_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005446if ac_fn_c_try_compile "$LINENO"; then :
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5448$as_echo "yes!!" >&6; }
5449 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005450
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005451 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005452
5453 ac_external_gsm="1"
5454
5455else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005456 as_fn_error "Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00005457
5458
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005459fi
Benny Prijonod4306432010-05-01 22:05:41 +00005460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005461
Benny Prijonod4306432010-05-01 22:05:41 +00005462
5463fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 fi
5466
5467
5468fi
5469
5470
5471
5472
Benny Prijono4e48b512007-05-16 13:41:00 +00005473
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005474# Check whether --enable-sound was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005475if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005476 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005477 ac_pjmedia_snd=null
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5479$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005480 fi
5481
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005482fi
5483
Benny Prijono1d971622006-09-10 22:27:40 +00005484
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005485ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005486
Benny Prijono27c98722007-04-09 21:28:15 +00005487
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005488# Check whether --with-external-pa was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005489if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005490 withval=$with_external_pa;
5491 if test "x$with_external_pa" != "xno"; then
5492 # Test PortAudio installation
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5494$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005496/* end confdefs.h. */
5497#include <portaudio.h>
5498
5499int
5500main ()
5501{
5502Pa_Initialize();
5503 ;
5504 return 0;
5505}
5506_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005507if ac_fn_c_try_compile "$LINENO"; then :
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5509$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005510 ac_external_pa="1"
5511
5512else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005513 as_fn_error "Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005516 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005517
Benny Prijono27c98722007-04-09 21:28:15 +00005518
5519fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005520
5521
5522
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005523ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5524if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005525 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5526fi
5527
5528
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005529ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5530if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005531 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5532fi
5533
5534
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005535ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5536if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005537 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5538fi
5539
5540
5541
Benny Prijono3e091672008-01-09 15:43:02 +00005542if test "x$ac_cv_c_bigendian" = "xyes"; then
5543 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5544else
5545 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5546fi
5547
Benny Prijono1d971622006-09-10 22:27:40 +00005548if test "$enable_sound" = "no"; then
5549 true;
5550else
5551 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005552 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +00005553 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5555$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005556 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005557 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005558 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5559 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005560 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005561 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5562 ac_pjmedia_snd=pa_old_darwinos
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5564$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005565 else
5566 ac_pjmedia_snd=pa_darwinos
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5568$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005569 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005570 ;;
5571 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005572 ac_pjmedia_snd=pa_win32
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5574$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005575 ;;
5576 *rtems*)
5577 ac_pjmedia_snd=null
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5579$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005580 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005581 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005582 ac_pjmedia_snd=pa_unix
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005583 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5584if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005585 ac_pa_use_alsa=1
5586
5587 LIBS="$LIBS -lasound"
5588
5589else
5590 ac_pa_use_alsa=0
5591
5592fi
5593
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005594
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5596$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005597
5598 ac_pa_use_oss=1
5599
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005600 # Check whether --enable-oss was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005601if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005602 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005603 if test "$enable_oss" = "no"; then
5604 ac_pa_use_oss=0
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5606$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005607 fi
5608
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005609fi
5610
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005611 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005612 esac
5613fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005614
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005615# Check whether --enable-ext_sound was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005616if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005617 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005618 ac_pjmedia_snd=external
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5620$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005621 fi
5622
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005623fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005624
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005625
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005626
5627# Check whether --enable-small-filter was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005628if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005629 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005630 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5632$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005633 fi
5634else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5636$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005637fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005638
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005639
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005640
5641# Check whether --enable-large-filter was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005642if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005643 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005644 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5646$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005647 fi
5648else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5650$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005651fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005652
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005653
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005654
5655# Check whether --enable-speex-aec was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005656if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005657 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005658 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5660$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005661 fi
5662else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5664$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005665fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005666
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005667
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005668
5669# Check whether --enable-g711-codec was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005670if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005671 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005672 ac_no_g711_codec=1
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005673 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005674
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5676$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005677 fi
5678else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5680$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005681fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005682
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005683
5684
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005685
5686# Check whether --enable-l16-codec was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005687if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005688 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005689 ac_no_l16_codec=1
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005690 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005691
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5693$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005694 fi
5695else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5697$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005698fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005699
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005700
5701
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005702
5703# Check whether --enable-gsm-codec was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005704if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005705 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005706 ac_no_gsm_codec=1
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005707 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005708
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5710$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005711 fi
5712else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5714$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005715fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005716
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005717
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005718
5719# Check whether --enable-g722-codec was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005720if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005721 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005722 ac_no_g722_codec=1
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005723 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005724
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5726$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005727 fi
5728else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5730$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005731fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005732
5733
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005734
5735# Check whether --enable-g7221-codec was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005736if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005737 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5738 ac_no_g7221_codec=1
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005739 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005740
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5742$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005743 fi
5744else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5746$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005747fi
5748
5749
5750
5751# Check whether --enable-speex-codec was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005752if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005753 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005754 ac_no_speex_codec=1
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005755 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005756
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5758$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005759 fi
5760else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5762$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005763fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005764
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005765
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005766
5767# Check whether --enable-ilbc-codec was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005768if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005769 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005770 ac_no_ilbc_codec=1
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005771 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005772
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5774$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005775 fi
5776else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5778$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005779fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005780
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005781
5782# Check whether --enable-libsamplerate was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005783if test "${enable_libsamplerate+set}" = set; then :
5784 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5785$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5786if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005788else
5789 ac_check_lib_save_LIBS=$LIBS
5790LIBS="-lsamplerate $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005792/* end confdefs.h. */
5793
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005794/* Override any GCC internal prototype to avoid an error.
5795 Use char because int might match the return type of a GCC
5796 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005797#ifdef __cplusplus
5798extern "C"
5799#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005800char src_new ();
5801int
5802main ()
5803{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005804return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005805 ;
5806 return 0;
5807}
5808_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005809if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005810 ac_cv_lib_samplerate_src_new=yes
5811else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005812 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005813fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005814rm -f core conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005816LIBS=$ac_check_lib_save_LIBS
5817fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
5819$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
5820if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005821 cat >>confdefs.h <<_ACEOF
5822#define HAVE_LIBSAMPLERATE 1
5823_ACEOF
5824
5825 LIBS="-lsamplerate $LIBS"
5826
5827fi
5828
5829else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
5831$as_echo "Skipping libsamplerate detection" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +00005832
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005833fi
Benny Prijono0822c192008-08-21 20:59:58 +00005834
5835
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005836
5837# Check whether --enable-ipp was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005838if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005839 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005840else
5841 enable_ipp=no
5842
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005843fi
Benny Prijono0822c192008-08-21 20:59:58 +00005844
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005845
Benny Prijono3965f192010-02-10 18:46:05 +00005846
5847# Check whether --with-ipp was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005848if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005849 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005850else
5851 with_ipp=no
5852
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005853fi
Benny Prijono0822c192008-08-21 20:59:58 +00005854
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005855
Benny Prijono3965f192010-02-10 18:46:05 +00005856
5857# Check whether --with-ipp-samples was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005858if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005859 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00005860else
5861 with_ipp_samples=no
5862
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005863fi
5864
Benny Prijono0822c192008-08-21 20:59:58 +00005865
Benny Prijono3965f192010-02-10 18:46:05 +00005866
5867# Check whether --with-ipp-arch was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005868if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005869 withval=$with_ipp_arch;
5870else
5871 with_ipp_arch=no
5872
5873fi
5874
5875
Benny Prijono0822c192008-08-21 20:59:58 +00005876if test "x$enable_ipp" != "xno"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
5878$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005879
5880 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
5882$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005883 IPPROOT=$with_ipp
5884 elif test "x$IPPROOT" = "x"; then
5885 if test -d /opt/intel/ipp; then
5886 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
5888$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005889 fi
5890 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
5892$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005893 fi
5894
Benny Prijono3965f192010-02-10 18:46:05 +00005895 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00005896 IPP_SUFFIX=$with_ipp_arch
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
5898$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005899 else
5900 IPP_SUFFIX=""
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
5902$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005903 fi
5904
Benny Prijono0822c192008-08-21 20:59:58 +00005905 if test x$IPPROOT = x; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005906 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 +00005907 elif test ! -d $IPPROOT; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005908 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005909 elif test ! -d $IPPROOT/include; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005910 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005911 else
5912 # IPP directory looks okay.
5913 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00005914 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00005915
5916 SAVED_CFLAGS="$CFLAGS"
5917 SAVED_LDFLAGS="$LDFLAGS"
5918 SAVED_LIBS="$LIBS"
5919
5920 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005921 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +00005922
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005923#
Benny Prijono46bd0842010-02-12 14:12:41 +00005924 # Some differences between Mac OS X and Linux
5925 case $target in
5926 *darwin* )
5927 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
5928 ;;
5929 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005930 # Find out where the libraries live.
5931 IPP7_ARCH=""
5932 if test -d $IPPROOT/lib/intel64; then
5933 IPP7_ARCH="intel64"
5934 elif test -d $IPPROOT/lib/ia32; then
5935 IPP7_ARCH="ia32"
5936 elif test -d $IPPROOT/lib/mic; then
5937 IPP7_ARCH="mic"
5938 fi
5939
5940 if test -z "$IPP7_ARCH"; then
5941 # IPP6 (and possibly below)
5942 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
5943 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
5944 else
5945 # IPP7
5946 if ! test -d $IPPROOT/../compiler; then
5947 as_fn_error "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
5948 fi
5949 IPP_CFLAGS="$IPP_CFLAGS"
5950 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
5951 IPP_LIBS="$IPP_LIBS -liomp5"
5952 fi
Benny Prijono46bd0842010-02-12 14:12:41 +00005953 ;;
5954 esac
5955
Benny Prijono0822c192008-08-21 20:59:58 +00005956 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00005957 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00005958 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
5959
5960 CFLAGS="$CFLAGS $IPP_CFLAGS"
5961 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
5962 LIBS="$IPP_LIBS $LIBS"
5963
5964
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
5966$as_echo_n "checking Intel IPP usability... " >&6; }
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005968/* end confdefs.h. */
5969#include <ippcore.h>
5970
5971int
5972main ()
5973{
5974ippStaticInit();
5975 ;
5976 return 0;
5977}
5978_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005979if ac_fn_c_try_link "$LINENO"; then :
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5981$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005982else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5985{ as_fn_set_status run with --help for more info
5986as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
5987See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00005988fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005989rm -f core conftest.err conftest.$ac_objext \
5990 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005991
5992 CFLAGS="$SAVED_CFLAGS"
5993 LDFLAGS="$SAVED_LDFLAGS"
5994 LIBS="$SAVED_LIBS"
5995 fi
5996
Benny Prijonocd62c4e2011-03-18 08:33:29 +00005997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
5998$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005999
6000 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6002$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006003 IPPSAMPLES=$with_ipp_samples
6004 elif test "x$IPPSAMPLES" = "x"; then
6005 if test -d /opt/intel/ipp-samples; then
6006 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6008$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006009 fi
6010 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6012$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006013 fi
6014
6015 if test x$IPPSAMPLES = x; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006016 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 +00006017 elif test ! -d $IPPSAMPLES; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006018 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006019 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006020 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006021 else
6022 # Remove trailing backslash
6023 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6024
Benny Prijono3965f192010-02-10 18:46:05 +00006025 # Guess the libusc.a/libspeech.a build location
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6027$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006028 if test -d $IPPSAMPLES/speech-codecs/bin; then
6029 IPPVER=5
6030 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6031 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6032 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00006033 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6034 # gcc compiler
6035 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6036 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6037 # icc compiler
6038 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6039 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6042as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6043See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006044 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006045 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6048as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6049See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006050 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006051
6052 # Test the directory
6053 if test ! -d $IPPSAMP_DIR; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6056as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6057See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006058 exit 1;
6059 fi
6060
6061 if test "x$IPPVER" = "x5"; then
6062 IPPSAMP_LIBS="libusc.a"
6063 IPPSAMP_LDLIBS="-lusc"
6064 elif test "x$IPPVER" = "x6"; then
6065 IPPSAMP_LIBS="libspeech.a"
6066 IPPSAMP_LDLIBS="-lspeech"
6067 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6070as_fn_error "bug in this script: unsupported IPP version
6071See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006072 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006073
6074 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6077as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6078See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006079 fi
6080
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6082$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006083
6084 SAVED_CFLAGS="$CFLAGS"
6085 SAVED_LDFLAGS="$LDFLAGS"
6086 SAVED_LIBS="$LIBS"
6087
Benny Prijono3965f192010-02-10 18:46:05 +00006088 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6089 CFLAGS="$CFLAGS $IPPSAMP_INC"
6090 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6091 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006092
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6094$as_echo_n "checking Intel IPP USC usability... " >&6; }
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006096/* end confdefs.h. */
6097#include <usc.h>
6098
6099int
6100main ()
6101{
6102extern USC_Fxns USC_G729AFP_Fxns;
6103 ;
6104 return 0;
6105}
6106_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006107if ac_fn_c_try_link "$LINENO"; then :
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6109$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006110else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6113as_fn_error "failed
6114See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006115fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006116rm -f core conftest.err conftest.$ac_objext \
6117 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006118
6119 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006120 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6121 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006122
Benny Prijono3965f192010-02-10 18:46:05 +00006123 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6124 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6125 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006126 fi
6127
Benny Prijono3965f192010-02-10 18:46:05 +00006128 CFLAGS="$CFLAGS $IPP_CFLAGS"
6129 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6130 LIBS="$LIBS $IPP_LIBS"
6131
Benny Prijono0822c192008-08-21 20:59:58 +00006132 ac_build_mak_vars="$ac_build_mak_vars\n\
6133export IPP_CFLAGS=$IPP_CFLAGS\n\
6134export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6135export IPP_LIBS=$IPP_LIBS"
6136else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6138$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006139fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006140
6141
6142
6143
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006144# Check whether --enable-ssl was given.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006145if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006146 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006147 if test "$enable_ssl" = "no"; then
6148 ac_no_ssl=1
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6150$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006151 fi
6152
6153else
6154
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6156$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006157
6158
6159
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006160 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
6161if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006162 openssl_h_present=1
6163fi
6164
6165
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
6167$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
6168if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006170else
6171 ac_check_lib_save_LIBS=$LIBS
6172LIBS="-lcrypto $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006174/* end confdefs.h. */
6175
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006176/* Override any GCC internal prototype to avoid an error.
6177 Use char because int might match the return type of a GCC
6178 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006179#ifdef __cplusplus
6180extern "C"
6181#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006182char ERR_load_BIO_strings ();
6183int
6184main ()
6185{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006186return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006187 ;
6188 return 0;
6189}
6190_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006191if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006192 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6193else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006194 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006195fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006196rm -f core conftest.err conftest.$ac_objext \
6197 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006198LIBS=$ac_check_lib_save_LIBS
6199fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6201$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
6202if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006203 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6204fi
6205
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6207$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6208if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006210else
6211 ac_check_lib_save_LIBS=$LIBS
6212LIBS="-lssl $LIBS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006214/* end confdefs.h. */
6215
6216/* Override any GCC internal prototype to avoid an error.
6217 Use char because int might match the return type of a GCC
6218 builtin and then its argument prototype would still apply. */
6219#ifdef __cplusplus
6220extern "C"
6221#endif
6222char SSL_library_init ();
6223int
6224main ()
6225{
6226return SSL_library_init ();
6227 ;
6228 return 0;
6229}
6230_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006231if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006232 ac_cv_lib_ssl_SSL_library_init=yes
6233else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006234 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006235fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006236rm -f core conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006238LIBS=$ac_check_lib_save_LIBS
6239fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6241$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6242if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006243 libssl_present=1 && LIBS="$LIBS -lssl"
6244fi
6245
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006246 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
6248$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00006249 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
6250 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006251 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00006252
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006253 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
6255$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006256 fi
6257
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006258fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006259
6260
6261
6262
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006263
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
6265$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006266case $target in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006267 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006268
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6270$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006271 ;;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006272 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006273
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6275$as_echo "no (default)" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
6277$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006278 ;;
6279esac
6280
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
6282$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006283case $target in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006284 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006285
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6287$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006288 ;;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006289 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006290
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6292$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006293 ;;
6294esac
6295
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
6297$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006298case $target in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006299 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006300
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6302$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006303 ;;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006304 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006305
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6307$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006308 ;;
6309esac
6310
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006311case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006312 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006313 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006314
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006315 ;;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006316 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006317
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
6319$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006320 ;;
6321esac
6322
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006323case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006324 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006325 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006326
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006327 ;;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006328 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006329
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
6331$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006332 ;;
6333esac
6334
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006335
6336
6337
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006338if test "$build" = "$host"; then
6339 ac_cross_compile=
6340else
Benny Prijono5b818b22006-09-17 22:58:51 +00006341 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006342fi
6343ac_linux_poll=select
6344
6345ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006346
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006347
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006348case $target in
6349 *rtems*)
6350 ac_main_obj=main_rtems.o
6351 ;;
6352 *)
6353 ac_main_obj=main.o
6354 ;;
6355esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006356
Benny Prijono0822c192008-08-21 20:59:58 +00006357
6358ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006359cat >confcache <<\_ACEOF
6360# This file is a shell script that caches the results of configure
6361# tests run on this system so they can be shared between configure
6362# scripts and configure runs, see configure's option --config-cache.
6363# It is not useful on other systems. If it contains results you don't
6364# want to keep, you may remove or edit it.
6365#
6366# config.status only pays attention to the cache file if you give it
6367# the --recheck option to rerun configure.
6368#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006369# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006370# loading this file, other *unset* `ac_cv_foo' will be assigned the
6371# following values.
6372
6373_ACEOF
6374
6375# The following way of writing the cache mishandles newlines in values,
6376# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006377# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006378# Ultrix sh set writes to stderr and can't be redirected directly,
6379# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006380(
6381 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6382 eval ac_val=\$$ac_var
6383 case $ac_val in #(
6384 *${as_nl}*)
6385 case $ac_var in #(
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006386 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6387$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006388 esac
6389 case $ac_var in #(
6390 _ | IFS | as_nl) ;; #(
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6392 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006393 esac ;;
6394 esac
6395 done
6396
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006397 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006398 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6399 *${as_nl}ac_space=\ *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006400 # `set' does not quote correctly, so add quotes: double-quote
6401 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006402 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006403 "s/'/'\\\\''/g;
6404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006405 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006406 *)
6407 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006409 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006410 esac |
6411 sort
6412) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006413 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006414 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006415 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006416 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6418 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006419 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6420 :end' >>confcache
6421if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6422 if test -w "$cache_file"; then
6423 test "x$cache_file" != "x/dev/null" &&
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006424 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6425$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006426 cat confcache >$cache_file
6427 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006428 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6429$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006430 fi
6431fi
6432rm -f confcache
6433
6434test "x$prefix" = xNONE && prefix=$ac_default_prefix
6435# Let make expand exec_prefix.
6436test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6437
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006438DEFS=-DHAVE_CONFIG_H
6439
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006440ac_libobjs=
6441ac_ltlibobjs=
6442for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6443 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006444 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006445 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006446 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6447 # will be set to the directory where LIBOBJS objects are built.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006448 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6449 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006450done
6451LIBOBJS=$ac_libobjs
6452
6453LTLIBOBJS=$ac_ltlibobjs
6454
6455
6456
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006457
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006458: ${CONFIG_STATUS=./config.status}
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006459ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006460ac_clean_files_save=$ac_clean_files
6461ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006462{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6463$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6464as_write_fail=0
6465cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006466#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006467# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006468# Run this file to recreate the current configuration.
6469# Compiler output produced by configure, useful for debugging
6470# configure, is in config.log if it exists.
6471
6472debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006473ac_cs_recheck=false
6474ac_cs_silent=false
Sauw Ming6a970a32011-03-01 05:25:27 +00006475
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006476SHELL=\${CONFIG_SHELL-$SHELL}
6477export SHELL
6478_ASEOF
6479cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6480## -------------------- ##
6481## M4sh Initialization. ##
6482## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006483
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006484# Be more Bourne compatible
6485DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006486if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006487 emulate sh
6488 NULLCMD=:
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006489 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006490 # is contrary to our usage. Disable this feature.
6491 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006492 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00006493else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006494 case `(set -o) 2>/dev/null` in #(
6495 *posix*) :
6496 set -o posix ;; #(
6497 *) :
6498 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006499esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006500fi
6501
6502
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006503as_nl='
6504'
6505export as_nl
6506# Printing a long string crashes Solaris 7 /usr/bin/printf.
6507as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6508as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6509as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6510# Prefer a ksh shell builtin over an external printf program on Solaris,
6511# but without wasting forks for bash or zsh.
6512if test -z "$BASH_VERSION$ZSH_VERSION" \
6513 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6514 as_echo='print -r --'
6515 as_echo_n='print -rn --'
6516elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6517 as_echo='printf %s\n'
6518 as_echo_n='printf %s'
6519else
6520 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6521 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6522 as_echo_n='/usr/ucb/echo -n'
6523 else
6524 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6525 as_echo_n_body='eval
6526 arg=$1;
6527 case $arg in #(
6528 *"$as_nl"*)
6529 expr "X$arg" : "X\\(.*\\)$as_nl";
6530 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6531 esac;
6532 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6533 '
6534 export as_echo_n_body
6535 as_echo_n='sh -c $as_echo_n_body as_echo'
6536 fi
6537 export as_echo_body
6538 as_echo='sh -c $as_echo_body as_echo'
6539fi
Benny Prijonod5233702010-01-13 13:09:45 +00006540
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006541# The user is always right.
6542if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006543 PATH_SEPARATOR=:
6544 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6545 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6546 PATH_SEPARATOR=';'
6547 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006548fi
6549
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006550
6551# IFS
6552# We need space, tab and new line, in precisely that order. Quoting is
6553# there to prevent editors from complaining about space-tab.
6554# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6555# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006556IFS=" "" $as_nl"
6557
6558# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006559case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006560 *[\\/]* ) as_myself=$0 ;;
6561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006562for as_dir in $PATH
6563do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6567 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006568IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006569
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006570 ;;
6571esac
6572# We did not find ourselves, most probably we were run as `sh COMMAND'
6573# in which case we are not to be found in the path.
6574if test "x$as_myself" = x; then
6575 as_myself=$0
6576fi
6577if test ! -f "$as_myself"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006578 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6579 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006580fi
6581
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006582# Unset variables that we do not need and which cause bugs (e.g. in
6583# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6584# suppresses any "Segmentation fault" message there. '((' could
6585# trigger a bug in pdksh 5.2.14.
6586for as_var in BASH_ENV ENV MAIL MAILPATH
6587do eval test x\${$as_var+set} = xset \
6588 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006589done
6590PS1='$ '
6591PS2='> '
6592PS4='+ '
6593
6594# NLS nuisances.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006595LC_ALL=C
6596export LC_ALL
6597LANGUAGE=C
6598export LANGUAGE
Benny Prijonoe3e65802011-02-28 07:44:19 +00006599
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006600# CDPATH.
6601(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6602
6603
6604# as_fn_error ERROR [LINENO LOG_FD]
6605# ---------------------------------
6606# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6607# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6608# script with status $?, using 1 if that was 0.
6609as_fn_error ()
6610{
6611 as_status=$?; test $as_status -eq 0 && as_status=1
6612 if test "$3"; then
6613 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6614 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6615 fi
6616 $as_echo "$as_me: error: $1" >&2
6617 as_fn_exit $as_status
6618} # as_fn_error
6619
6620
6621# as_fn_set_status STATUS
6622# -----------------------
6623# Set $? to STATUS, without forking.
6624as_fn_set_status ()
6625{
6626 return $1
6627} # as_fn_set_status
6628
6629# as_fn_exit STATUS
6630# -----------------
6631# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6632as_fn_exit ()
6633{
6634 set +e
6635 as_fn_set_status $1
6636 exit $1
6637} # as_fn_exit
6638
6639# as_fn_unset VAR
6640# ---------------
6641# Portably unset VAR.
6642as_fn_unset ()
6643{
6644 { eval $1=; unset $1;}
6645}
6646as_unset=as_fn_unset
6647# as_fn_append VAR VALUE
6648# ----------------------
6649# Append the text in VALUE to the end of the definition contained in VAR. Take
6650# advantage of any shell optimizations that allow amortized linear growth over
6651# repeated appends, instead of the typical quadratic growth present in naive
6652# implementations.
6653if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6654 eval 'as_fn_append ()
6655 {
6656 eval $1+=\$2
6657 }'
6658else
6659 as_fn_append ()
6660 {
6661 eval $1=\$$1\$2
6662 }
6663fi # as_fn_append
6664
6665# as_fn_arith ARG...
6666# ------------------
6667# Perform arithmetic evaluation on the ARGs, and store the result in the
6668# global $as_val. Take advantage of shells that can avoid forks. The arguments
6669# must be portable across $(()) and expr.
6670if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6671 eval 'as_fn_arith ()
6672 {
6673 as_val=$(( $* ))
6674 }'
6675else
6676 as_fn_arith ()
6677 {
6678 as_val=`expr "$@" || test $? -eq 1`
6679 }
6680fi # as_fn_arith
6681
6682
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006683if expr a : '\(a\)' >/dev/null 2>&1 &&
6684 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6685 as_expr=expr
6686else
6687 as_expr=false
6688fi
6689
6690if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6691 as_basename=basename
6692else
6693 as_basename=false
6694fi
6695
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006696if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6697 as_dirname=dirname
6698else
6699 as_dirname=false
6700fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006701
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006702as_me=`$as_basename -- "$0" ||
6703$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6704 X"$0" : 'X\(//\)$' \| \
6705 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006706$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006707 sed '/^.*\/\([^/][^/]*\)\/*$/{
6708 s//\1/
6709 q
6710 }
6711 /^X\/\(\/\/\)$/{
6712 s//\1/
6713 q
6714 }
6715 /^X\/\(\/\).*/{
6716 s//\1/
6717 q
6718 }
6719 s/.*/./; q'`
6720
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006721# Avoid depending upon Character Ranges.
6722as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6723as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6724as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6725as_cr_digits='0123456789'
6726as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006727
6728ECHO_C= ECHO_N= ECHO_T=
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006729case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006730-n*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006731 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006732 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006733 xy) ECHO_C='\c';;
6734 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6735 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006736 esac;;
6737*)
6738 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006739esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006740
6741rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006742if test -d conf$$.dir; then
6743 rm -f conf$$.dir/conf$$.file
6744else
6745 rm -f conf$$.dir
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006746 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006747fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006748if (echo >conf$$.file) 2>/dev/null; then
6749 if ln -s conf$$.file conf$$ 2>/dev/null; then
6750 as_ln_s='ln -s'
6751 # ... but there are two gotchas:
6752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6754 # In both cases, we have to default to `cp -p'.
6755 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6756 as_ln_s='cp -p'
6757 elif ln conf$$.file conf$$ 2>/dev/null; then
6758 as_ln_s=ln
6759 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006760 as_ln_s='cp -p'
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006761 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006762else
6763 as_ln_s='cp -p'
6764fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006765rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6766rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006767
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006768
6769# as_fn_mkdir_p
6770# -------------
6771# Create "$as_dir" as a directory, including parents if necessary.
6772as_fn_mkdir_p ()
6773{
6774
6775 case $as_dir in #(
6776 -*) as_dir=./$as_dir;;
6777 esac
6778 test -d "$as_dir" || eval $as_mkdir_p || {
6779 as_dirs=
6780 while :; do
6781 case $as_dir in #(
6782 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6783 *) as_qdir=$as_dir;;
6784 esac
6785 as_dirs="'$as_qdir' $as_dirs"
6786 as_dir=`$as_dirname -- "$as_dir" ||
6787$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6788 X"$as_dir" : 'X\(//\)[^/]' \| \
6789 X"$as_dir" : 'X\(//\)$' \| \
6790 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6791$as_echo X"$as_dir" |
6792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6793 s//\1/
6794 q
6795 }
6796 /^X\(\/\/\)[^/].*/{
6797 s//\1/
6798 q
6799 }
6800 /^X\(\/\/\)$/{
6801 s//\1/
6802 q
6803 }
6804 /^X\(\/\).*/{
6805 s//\1/
6806 q
6807 }
6808 s/.*/./; q'`
6809 test -d "$as_dir" && break
6810 done
6811 test -z "$as_dirs" || eval "mkdir $as_dirs"
6812 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6813
6814
6815} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006816if mkdir -p . 2>/dev/null; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006817 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00006818else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006819 test -d ./-p && rmdir ./-p
6820 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00006821fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006822
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006823if test -x / >/dev/null 2>&1; then
6824 as_test_x='test -x'
6825else
6826 if ls -dL / >/dev/null 2>&1; then
6827 as_ls_L_option=L
6828 else
6829 as_ls_L_option=
6830 fi
6831 as_test_x='
6832 eval sh -c '\''
6833 if test -d "$1"; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006834 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006835 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006836 case $1 in #(
6837 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006838 esac;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006839 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006840 ???[sx]*):;;*)false;;esac;fi
6841 '\'' sh
6842 '
6843fi
6844as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006845
6846# Sed expression to map a string onto a valid CPP name.
6847as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6848
6849# Sed expression to map a string onto a valid variable name.
6850as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6851
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006852
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006853exec 6>&1
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006854## ----------------------------------- ##
6855## Main body of $CONFIG_STATUS script. ##
6856## ----------------------------------- ##
6857_ASEOF
6858test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006859
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6861# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006862# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006863# values after options handling.
6864ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006865This file was extended by pjproject $as_me 1.x, which was
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006866generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006867
6868 CONFIG_FILES = $CONFIG_FILES
6869 CONFIG_HEADERS = $CONFIG_HEADERS
6870 CONFIG_LINKS = $CONFIG_LINKS
6871 CONFIG_COMMANDS = $CONFIG_COMMANDS
6872 $ $0 $@
6873
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006874on `(hostname || uname -n) 2>/dev/null | sed 1q`
6875"
6876
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006877_ACEOF
6878
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006879case $ac_config_files in *"
6880"*) set x $ac_config_files; shift; ac_config_files=$*;;
6881esac
6882
6883case $ac_config_headers in *"
6884"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6885esac
6886
6887
6888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006889# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006890config_files="$ac_config_files"
6891config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006892
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006893_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006894
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006896ac_cs_usage="\
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006897\`$as_me' instantiates files and other configuration actions
6898from templates according to the current configuration. Unless the files
6899and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006900
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006901Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006902
6903 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006904 -V, --version print version number and configuration settings, then exit
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006905 --config print configuration, then exit
6906 -q, --quiet, --silent
6907 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006908 -d, --debug don't remove temporary files
6909 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006910 --file=FILE[:TEMPLATE]
6911 instantiate the configuration file FILE
6912 --header=FILE[:TEMPLATE]
6913 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006914
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006915Configuration files:
6916$config_files
6917
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006918Configuration headers:
6919$config_headers
6920
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006921Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00006922
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006923_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6925ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006926ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006927pjproject config.status 1.x
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006928configured by $0, generated by GNU Autoconf 2.65,
6929 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006930
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006931Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006932This config.status script is free software; the Free Software Foundation
6933gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006934
6935ac_pwd='$ac_pwd'
6936srcdir='$srcdir'
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006937test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006938_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006939
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6941# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006942ac_need_defaults=:
6943while test $# != 0
6944do
6945 case $1 in
6946 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6948 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006949 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006950 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006951 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006952 ac_option=$1
6953 ac_optarg=$2
6954 ac_shift=shift
6955 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006956 esac
6957
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006958 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006959 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006961 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006963 $as_echo "$ac_cs_version"; exit ;;
6964 --config | --confi | --conf | --con | --co | --c )
6965 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006966 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006967 debug=: ;;
6968 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006969 $ac_shift
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006970 case $ac_optarg in
6971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6972 esac
6973 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006974 ac_need_defaults=false;;
6975 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006976 $ac_shift
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006977 case $ac_optarg in
6978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6979 esac
6980 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006981 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006982 --he | --h)
6983 # Conflict between --help and --header
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006984 as_fn_error "ambiguous option: \`$1'
6985Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006986 --help | --hel | -h )
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006987 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6989 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6990 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006991
6992 # This is an error.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006993 -*) as_fn_error "unrecognized option: \`$1'
6994Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006995
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006996 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006997 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006998
6999 esac
7000 shift
7001done
7002
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007003ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007004
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007005if $ac_cs_silent; then
7006 exec 6>/dev/null
7007 ac_configure_extra_args="$ac_configure_extra_args --silent"
7008fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007009
7010_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007012if \$ac_cs_recheck; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007013 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7014 shift
7015 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7016 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007017 export CONFIG_SHELL
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007018 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007019fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007020
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007021_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007023exec 5>>config.log
7024{
7025 echo
7026 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7027## Running $as_me. ##
7028_ASBOX
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007029 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007030} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007031
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007032_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007034_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007035
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007037
7038# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007039for ac_config_target in $ac_config_targets
7040do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007041 case $ac_config_target in
7042 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7043 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7044 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7045 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7046 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7047 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7048 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00007049 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007050 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7051 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7052 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7053 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007054 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007055 "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 +00007056
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007057 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007058 esac
7059done
7060
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007061
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007062# If the user did not use the arguments to specify the items to instantiate,
7063# then the envvar interface is used. Set only those that are not.
7064# We use the long form for the default assignment because of an extremely
7065# bizarre bug on SunOS 4.1.3.
7066if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7069fi
7070
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007071# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007072# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007073# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007074# Hook for its removal unless debugging.
7075# Note that there is a small window in which the directory will not be cleaned:
7076# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007077$debug ||
7078{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007079 tmp=
7080 trap 'exit_status=$?
7081 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7082' 0
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007083 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007084}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007085# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007086
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007087{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007088 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007089 test -n "$tmp" && test -d "$tmp"
7090} ||
7091{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007092 tmp=./conf$$-$RANDOM
7093 (umask 077 && mkdir "$tmp")
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007094} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007095
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007096# Set up the scripts for CONFIG_FILES section.
7097# No need to generate them if there are no CONFIG_FILES.
7098# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007099if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007100
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007101
7102ac_cr=`echo X | tr X '\015'`
7103# On cygwin, bash can eat \r inside `` if the user requested igncr.
7104# But we know of no other shell where ac_cr would be empty at this
7105# point, so we can use a bashism as a fallback.
7106if test "x$ac_cr" = x; then
7107 eval ac_cr=\$\'\\r\'
7108fi
7109ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7110if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7111 ac_cs_awk_cr='\r'
7112else
7113 ac_cs_awk_cr=$ac_cr
7114fi
7115
7116echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007117_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007118
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007119
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007120{
7121 echo "cat >conf$$subs.awk <<_ACEOF" &&
7122 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7123 echo "_ACEOF"
7124} >conf$$subs.sh ||
7125 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7126ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007127ac_delim='%!_!# '
7128for ac_last_try in false false false false false :; do
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007129 . ./conf$$subs.sh ||
7130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007131
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007132 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7133 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007134 break
7135 elif $ac_last_try; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007136 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007137 else
7138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007139 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007140done
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007141rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007142
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7144cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007145_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007146sed -n '
7147h
7148s/^/S["/; s/!.*/"]=/
7149p
7150g
7151s/^[^!]*!//
7152:repl
7153t repl
7154s/'"$ac_delim"'$//
7155t delim
7156:nl
7157h
7158s/\(.\{148\}\)..*/\1/
7159t more1
7160s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7161p
7162n
7163b repl
7164:more1
7165s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7166p
7167g
7168s/.\{148\}//
7169t nl
7170:delim
7171h
7172s/\(.\{148\}\)..*/\1/
7173t more2
7174s/["\\]/\\&/g; s/^/"/; s/$/"/
7175p
7176b
7177:more2
7178s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7179p
7180g
7181s/.\{148\}//
7182t delim
7183' <conf$$subs.awk | sed '
7184/^[^""]/{
7185 N
7186 s/\n//
7187}
7188' >>$CONFIG_STATUS || ac_write_fail=1
7189rm -f conf$$subs.awk
7190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7191_ACAWK
7192cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7193 for (key in S) S_is_set[key] = 1
7194 FS = ""
7195
7196}
7197{
7198 line = $ 0
7199 nfields = split(line, field, "@")
7200 substed = 0
7201 len = length(field[1])
7202 for (i = 2; i < nfields; i++) {
7203 key = field[i]
7204 keylen = length(key)
7205 if (S_is_set[key]) {
7206 value = S[key]
7207 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7208 len += length(value) + length(field[++i])
7209 substed = 1
7210 } else
7211 len += 1 + keylen
7212 }
7213
7214 print line
7215}
7216
7217_ACAWK
Benny Prijonod4306432010-05-01 22:05:41 +00007218_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7220if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7221 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7222else
7223 cat
7224fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7225 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00007226_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007227
7228# VPATH may cause trouble with some makes, so we remove $(srcdir),
7229# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7230# trailing colons and then remove the whole line if VPATH becomes empty
7231# (actually we leave an empty line to preserve line numbers).
7232if test "x$srcdir" = x.; then
7233 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7234s/:*\$(srcdir):*/:/
7235s/:*\${srcdir}:*/:/
7236s/:*@srcdir@:*/:/
7237s/^\([^=]*=[ ]*\):*/\1/
7238s/:*$//
7239s/^[^=]*=[ ]*$//
7240}'
7241fi
7242
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007244fi # test -n "$CONFIG_FILES"
7245
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007246# Set up the scripts for CONFIG_HEADERS section.
7247# No need to generate them if there are no CONFIG_HEADERS.
7248# This happens for instance with `./config.status Makefile'.
7249if test -n "$CONFIG_HEADERS"; then
7250cat >"$tmp/defines.awk" <<\_ACAWK ||
7251BEGIN {
7252_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007253
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007254# Transform confdefs.h into an awk script `defines.awk', embedded as
7255# here-document in config.status, that substitutes the proper values into
7256# config.h.in to produce config.h.
7257
7258# Create a delimiter string that does not exist in confdefs.h, to ease
7259# handling of long lines.
7260ac_delim='%!_!# '
7261for ac_last_try in false false :; do
7262 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7263 if test -z "$ac_t"; then
7264 break
7265 elif $ac_last_try; then
7266 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7267 else
7268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7269 fi
7270done
7271
7272# For the awk script, D is an array of macro values keyed by name,
7273# likewise P contains macro parameters if any. Preserve backslash
7274# newline sequences.
7275
7276ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7277sed -n '
7278s/.\{148\}/&'"$ac_delim"'/g
7279t rset
7280:rset
7281s/^[ ]*#[ ]*define[ ][ ]*/ /
7282t def
7283d
7284:def
7285s/\\$//
7286t bsnl
7287s/["\\]/\\&/g
7288s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7289D["\1"]=" \3"/p
7290s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7291d
7292:bsnl
7293s/["\\]/\\&/g
7294s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7295D["\1"]=" \3\\\\\\n"\\/p
7296t cont
7297s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7298t cont
7299d
7300:cont
7301n
7302s/.\{148\}/&'"$ac_delim"'/g
7303t clear
7304:clear
7305s/\\$//
7306t bsnlc
7307s/["\\]/\\&/g; s/^/"/; s/$/"/p
7308d
7309:bsnlc
7310s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7311b cont
7312' <confdefs.h | sed '
7313s/'"$ac_delim"'/"\\\
7314"/g' >>$CONFIG_STATUS || ac_write_fail=1
7315
7316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7317 for (key in D) D_is_set[key] = 1
7318 FS = ""
7319}
7320/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7321 line = \$ 0
7322 split(line, arg, " ")
7323 if (arg[1] == "#") {
7324 defundef = arg[2]
7325 mac1 = arg[3]
7326 } else {
7327 defundef = substr(arg[1], 2)
7328 mac1 = arg[2]
7329 }
7330 split(mac1, mac2, "(") #)
7331 macro = mac2[1]
7332 prefix = substr(line, 1, index(line, defundef) - 1)
7333 if (D_is_set[macro]) {
7334 # Preserve the white space surrounding the "#".
7335 print prefix "define", macro P[macro] D[macro]
7336 next
7337 } else {
7338 # Replace #undef with comments. This is necessary, for example,
7339 # in the case of _POSIX_SOURCE, which is predefined and required
7340 # on some systems where configure will not decide to define it.
7341 if (defundef == "undef") {
7342 print "/*", prefix defundef, macro, "*/"
7343 next
7344 }
7345 }
7346}
7347{ print }
7348_ACAWK
7349_ACEOF
7350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7351 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7352fi # test -n "$CONFIG_HEADERS"
7353
7354
7355eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7356shift
7357for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007358do
7359 case $ac_tag in
7360 :[FHLC]) ac_mode=$ac_tag; continue;;
7361 esac
7362 case $ac_mode$ac_tag in
7363 :[FHL]*:*);;
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007364 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007365 :[FH]-) ac_tag=-:-;;
7366 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7367 esac
7368 ac_save_IFS=$IFS
7369 IFS=:
7370 set x $ac_tag
7371 IFS=$ac_save_IFS
7372 shift
7373 ac_file=$1
7374 shift
7375
7376 case $ac_mode in
7377 :L) ac_source=$1;;
7378 :[FH])
7379 ac_file_inputs=
7380 for ac_f
7381 do
7382 case $ac_f in
7383 -) ac_f="$tmp/stdin";;
7384 *) # Look for the file first in the build tree, then in the source tree
7385 # (if the path is not absolute). The absolute path cannot be DOS-style,
7386 # because $ac_f cannot contain `:'.
7387 test -f "$ac_f" ||
7388 case $ac_f in
7389 [\\/$]*) false;;
7390 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7391 esac ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007392 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007393 esac
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007394 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7395 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007396 done
7397
7398 # Let's still pretend it is `configure' which instantiates (i.e., don't
7399 # use $as_me), people would be surprised to read:
7400 # /* config.h. Generated by config.status. */
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007401 configure_input='Generated from '`
7402 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7403 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007404 if test x"$ac_file" != x-; then
7405 configure_input="$ac_file. $configure_input"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7407$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007408 fi
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007409 # Neutralize special characters interpreted by sed in replacement strings.
7410 case $configure_input in #(
7411 *\&* | *\|* | *\\* )
7412 ac_sed_conf_input=`$as_echo "$configure_input" |
7413 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7414 *) ac_sed_conf_input=$configure_input;;
7415 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007416
7417 case $ac_tag in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007418 *:-:* | *:-) cat >"$tmp/stdin" \
7419 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007420 esac
7421 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007422 esac
7423
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007424 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007425$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7426 X"$ac_file" : 'X\(//\)[^/]' \| \
7427 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007428 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007429$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7431 s//\1/
7432 q
7433 }
7434 /^X\(\/\/\)[^/].*/{
7435 s//\1/
7436 q
7437 }
7438 /^X\(\/\/\)$/{
7439 s//\1/
7440 q
7441 }
7442 /^X\(\/\).*/{
7443 s//\1/
7444 q
7445 }
7446 s/.*/./; q'`
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007447 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007448 ac_builddir=.
7449
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007450case "$ac_dir" in
7451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7452*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007454 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007456 case $ac_top_builddir_sub in
7457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7459 esac ;;
7460esac
7461ac_abs_top_builddir=$ac_pwd
7462ac_abs_builddir=$ac_pwd$ac_dir_suffix
7463# for backward compatibility:
7464ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007465
7466case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007467 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007468 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007469 ac_top_srcdir=$ac_top_builddir_sub
7470 ac_abs_top_srcdir=$ac_pwd ;;
7471 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007472 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007473 ac_top_srcdir=$srcdir
7474 ac_abs_top_srcdir=$srcdir ;;
7475 *) # Relative name.
7476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7477 ac_top_srcdir=$ac_top_build_prefix$srcdir
7478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007479esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00007481
Benny Prijonoe2746132008-09-27 13:16:35 +00007482
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007483 case $ac_mode in
7484 :F)
7485 #
7486 # CONFIG_FILE
7487 #
Benny Prijonoe2746132008-09-27 13:16:35 +00007488
Benny Prijonoe2746132008-09-27 13:16:35 +00007489_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007490
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007492# If the template does not know about datarootdir, expand it.
7493# FIXME: This hack should be removed a few years after 2.60.
7494ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007495ac_sed_dataroot='
7496/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007497 p
7498 q
7499}
7500/@datadir@/p
7501/@docdir@/p
7502/@infodir@/p
7503/@localedir@/p
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007504/@mandir@/p'
7505case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007506*datarootdir*) ac_datarootdir_seen=yes;;
7507*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7509$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007510_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007512 ac_datarootdir_hack='
7513 s&@datadir@&$datadir&g
7514 s&@docdir@&$docdir&g
7515 s&@infodir@&$infodir&g
7516 s&@localedir@&$localedir&g
7517 s&@mandir@&$mandir&g
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007518 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007519esac
7520_ACEOF
7521
7522# Neutralize VPATH when `$srcdir' = `.'.
7523# Shell code in configure.ac might set extrasub.
7524# FIXME: do we really want to maintain this feature?
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7526ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007527$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007528_ACEOF
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007530:t
7531/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007532s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007533s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007534s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007535s&@srcdir@&$ac_srcdir&;t t
7536s&@abs_srcdir@&$ac_abs_srcdir&;t t
7537s&@top_srcdir@&$ac_top_srcdir&;t t
7538s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7539s&@builddir@&$ac_builddir&;t t
7540s&@abs_builddir@&$ac_abs_builddir&;t t
7541s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7542$ac_datarootdir_hack
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007543"
7544eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7545 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007546
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007547test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7548 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7549 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007551which seems to be undefined. Please make sure it is defined." >&5
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007552$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007553which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007554
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007555 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007556 case $ac_file in
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007557 -) cat "$tmp/out" && rm -f "$tmp/out";;
7558 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7559 esac \
7560 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007561 ;;
7562 :H)
7563 #
7564 # CONFIG_HEADER
7565 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007566 if test x"$ac_file" != x-; then
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007567 {
7568 $as_echo "/* $configure_input */" \
7569 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7570 } >"$tmp/config.h" \
7571 || as_fn_error "could not create $ac_file" "$LINENO" 5
7572 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7574$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007575 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007576 rm -f "$ac_file"
7577 mv "$tmp/config.h" "$ac_file" \
7578 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007579 fi
7580 else
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007581 $as_echo "/* $configure_input */" \
7582 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7583 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007584 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007585 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007586
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007587
7588 esac
7589
7590done # for ac_tag
7591
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007592
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007593as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007594_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007595ac_clean_files=$ac_clean_files_save
7596
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007597test $ac_write_fail = 0 ||
7598 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7599
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007600
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007601# configure is writing to config.log, and then calls config.status.
7602# config.status does its own redirection, appending to config.log.
7603# Unfortunately, on DOS this fails, as config.log is still kept open
7604# by configure, so config.status won't be able to write to it; its
7605# output is simply discarded. So we exec the FD to /dev/null,
7606# effectively closing config.log, so it can be properly (re)opened and
7607# appended to by config.status. When coming back to configure, we
7608# need to make the FD available again.
7609if test "$no_create" != yes; then
7610 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007611 ac_config_status_args=
7612 test "$silent" = yes &&
7613 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007614 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007616 exec 5>>config.log
7617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7618 # would make configure fail if this is the last instruction.
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007619 $ac_cs_success || as_fn_exit $?
7620fi
7621if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7623$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00007624fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007625
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007626
Benny Prijonod9627842007-04-18 09:24:31 +00007627
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007628{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00007629
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007630Configurations 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 +00007631
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007632Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007633 - 'user.mak'
7634 - 'pjlib/include/pj/config_site.h'
7635
7636The next step now is to run 'make dep' and 'make'.
7637" >&5
Benny Prijonocd62c4e2011-03-18 08:33:29 +00007638$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00007639
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007640Configurations 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 +00007641
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007642Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007643 - 'user.mak'
7644 - 'pjlib/include/pj/config_site.h'
7645
7646The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007647" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00007648