blob: 6273fa06888617ca557358a012fd510fb91ca05c [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Sauw Ming6e6c2152010-12-14 13:03:10 +00003# Generated by GNU Autoconf 2.61 for pjproject 1.x.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Sauw Ming6e6c2152010-12-14 13:03:10 +00006# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Sauw Ming6e6c2152010-12-14 13:03:10 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Sauw Ming6e6c2152010-12-14 13:03:10 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000016 emulate sh
17 NULLCMD=:
Sauw Ming6e6c2152010-12-14 13:03:10 +000018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000019 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000021 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000022else
Sauw Ming6e6c2152010-12-14 13:03:10 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000025esac
Sauw Ming6e6c2152010-12-14 13:03:10 +000026
Benny Prijono7e0d75f2006-12-25 20:34:14 +000027fi
28
29
Sauw Ming6e6c2152010-12-14 13:03:10 +000030
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
Benny Prijonod5233702010-01-13 13:09:45 +000039
Benny Prijono7e0d75f2006-12-25 20:34:14 +000040# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000058fi
59
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Sauw Ming6e6c2152010-12-14 13:03:10 +000066as_nl='
67'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Sauw Ming6e6c2152010-12-14 13:03:10 +000071case $0 in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000080IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000081
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000092fi
93
Sauw Ming6e6c2152010-12-14 13:03:10 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Sauw Ming6e6c2152010-12-14 13:03:10 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Benny Prijonoc45d9512010-12-10 11:04:30 +0000107do
Sauw Ming6e6c2152010-12-14 13:03:10 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Benny Prijonoc45d9512010-12-10 11:04:30 +0000110 else
Sauw Ming6e6c2152010-12-14 13:03:10 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijonoc45d9512010-12-10 11:04:30 +0000112 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +0000113done
Benny Prijonoc45d9512010-12-10 11:04:30 +0000114
Sauw Ming6e6c2152010-12-14 13:03:10 +0000115# Required to use basename.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Sauw Ming6e6c2152010-12-14 13:03:10 +0000130# Name of the executable.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Sauw Ming6e6c2152010-12-14 13:03:10 +0000135echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Sauw Ming6e6c2152010-12-14 13:03:10 +0000150# CDPATH.
151$as_unset CDPATH
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000152
153
Sauw Ming6e6c2152010-12-14 13:03:10 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000442 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000447 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000450 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000451 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000452 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000453 chmod +x "$as_me.lineno" ||
Sauw Ming6e6c2152010-12-14 13:03:10 +0000454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000461 # Exit status is that of the last command.
462 exit
463}
464
Sauw Ming6e6c2152010-12-14 13:03:10 +0000465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000472ECHO_C= ECHO_N= ECHO_T=
Sauw Ming6e6c2152010-12-14 13:03:10 +0000473case `echo -n x` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000474-n*)
Sauw Ming6e6c2152010-12-14 13:03:10 +0000475 case `echo 'x\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Sauw Ming6e6c2152010-12-14 13:03:10 +0000477 *) ECHO_C='\c';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000478 esac;;
479*)
480 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000481esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000482
Sauw Ming6e6c2152010-12-14 13:03:10 +0000483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000490rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
Sauw Ming6e6c2152010-12-14 13:03:10 +0000495 mkdir conf$$.dir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000496fi
Sauw Ming6e6c2152010-12-14 13:03:10 +0000497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000505 as_ln_s='cp -p'
Sauw Ming6e6c2152010-12-14 13:03:10 +0000506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000508else
509 as_ln_s='cp -p'
510fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000513
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000514if mkdir -p . 2>/dev/null; then
Sauw Ming6e6c2152010-12-14 13:03:10 +0000515 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +0000516else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000519fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000520
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +0000532 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000533 else
Sauw Ming6e6c2152010-12-14 13:03:10 +0000534 case $1 in
535 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000536 esac;
Sauw Ming6e6c2152010-12-14 13:03:10 +0000537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000550
Sauw Ming6e6c2152010-12-14 13:03:10 +0000551
552exec 7<&0 </dev/null 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000563ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000565LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000566cross_compiling=no
567subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000568MFLAGS=
569MAKEFLAGS=
Sauw Ming6e6c2152010-12-14 13:03:10 +0000570SHELL=${CONFIG_SHELL-/bin/sh}
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000571
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000572# Identity of this package.
573PACKAGE_NAME='pjproject'
574PACKAGE_TARNAME='pjproject'
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000575PACKAGE_VERSION='1.x'
576PACKAGE_STRING='pjproject 1.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000577PACKAGE_BUGREPORT=''
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000582#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000583# include <sys/types.h>
584#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000585#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000586# include <sys/stat.h>
587#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000588#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000589# include <stdlib.h>
590# include <stddef.h>
591#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000592# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000593# include <stdlib.h>
594# endif
595#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000598# include <memory.h>
599# endif
600# include <string.h>
601#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000602#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000603# include <strings.h>
604#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000605#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000606# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000607#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000612# include <unistd.h>
613#endif"
614
Sauw Ming6e6c2152010-12-14 13:03:10 +0000615ac_subst_vars='SHELL
Benny Prijonoc45d9512010-12-10 11:04:30 +0000616PATH_SEPARATOR
Sauw Ming6e6c2152010-12-14 13:03:10 +0000617PACKAGE_NAME
618PACKAGE_TARNAME
619PACKAGE_VERSION
620PACKAGE_STRING
621PACKAGE_BUGREPORT
622exec_prefix
623prefix
624program_transform_name
625bindir
626sbindir
627libexecdir
628datarootdir
629datadir
630sysconfdir
631sharedstatedir
632localstatedir
633includedir
634oldincludedir
635docdir
636infodir
637htmldir
638dvidir
639pdfdir
640psdir
641libdir
642localedir
643mandir
644DEFS
645ECHO_C
646ECHO_N
647ECHO_T
648LIBS
649build_alias
650host_alias
651target_alias
652build
653build_cpu
654build_vendor
655build_os
656host
657host_cpu
658host_vendor
659host_os
660target
661target_cpu
662target_vendor
663target_os
664CC
665CFLAGS
666LDFLAGS
667CPPFLAGS
668ac_ct_CC
669EXEEXT
670OBJEXT
671CXX
672CXXFLAGS
673ac_ct_CXX
674AR
675LD
676LDOUT
677RANLIB
678LIBEXT
679LIBEXT2
680CC_OUT
681CC_INC
682CC_DEF
683CC_OPTIMIZE
684CC_CFLAGS
685ac_pjdir
686ac_build_mak_vars
687CPP
688GREP
689EGREP
690ac_os_objs
691ac_external_speex
692ac_external_gsm
693ac_pjmedia_snd
694ac_external_pa
695ac_pa_cflags
696ac_pa_use_alsa
697ac_pa_use_oss
698ac_pjmedia_video
699ac_ios_cflags
700ac_pjmedia_video_has_qt
701ac_qt_cflags
702ac_no_small_filter
703ac_no_large_filter
704ac_no_speex_aec
705ac_no_g711_codec
706ac_no_l16_codec
707ac_no_gsm_codec
708ac_no_g722_codec
709ac_no_g7221_codec
710ac_no_speex_codec
711ac_no_ilbc_codec
712ac_sdl_cflags
713ac_sdl_ldflags
714ac_has_ffmpeg
715ac_ffmpeg_cflags
716ac_ffmpeg_ldflags
717ac_v4l2_cflags
718ac_v4l2_ldflags
719ac_no_ssl
720openssl_h_present
721libssl_present
722libcrypto_present
723ac_cross_compile
724ac_linux_poll
725ac_host
726ac_main_obj
727LIBOBJS
728LTLIBOBJS'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000729ac_subst_files=''
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000730 ac_precious_vars='build_alias
731host_alias
732target_alias
733CC
734CFLAGS
735LDFLAGS
736LIBS
737CPPFLAGS
738CXX
739CXXFLAGS
740CCC
741CPP'
742
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000743
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000744# Initialize some variables set by options.
745ac_init_help=
746ac_init_version=false
747# The variables have the same names as the options, with
748# dashes changed to underlines.
749cache_file=/dev/null
750exec_prefix=NONE
751no_create=
752no_recursion=
753prefix=NONE
754program_prefix=NONE
755program_suffix=NONE
756program_transform_name=s,x,x,
757silent=
758site=
759srcdir=
760verbose=
761x_includes=NONE
762x_libraries=NONE
763
764# Installation directory options.
765# These are left unexpanded so users can "make install exec_prefix=/foo"
766# and all the variables that are supposed to be based on exec_prefix
767# by default will actually change.
768# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000769# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000770bindir='${exec_prefix}/bin'
771sbindir='${exec_prefix}/sbin'
772libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000773datarootdir='${prefix}/share'
774datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000775sysconfdir='${prefix}/etc'
776sharedstatedir='${prefix}/com'
777localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000778includedir='${prefix}/include'
779oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000780docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
781infodir='${datarootdir}/info'
782htmldir='${docdir}'
783dvidir='${docdir}'
784pdfdir='${docdir}'
785psdir='${docdir}'
786libdir='${exec_prefix}/lib'
787localedir='${datarootdir}/locale'
788mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000789
790ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000791ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000792for ac_option
793do
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000796 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000797 ac_prev=
798 continue
799 fi
800
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000801 case $ac_option in
802 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 *) ac_optarg=yes ;;
804 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000805
806 # Accept the important Cygnus configure options, so we can diagnose typos.
807
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000808 case $ac_dashdash$ac_option in
809 --)
810 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000811
812 -bindir | --bindir | --bindi | --bind | --bin | --bi)
813 ac_prev=bindir ;;
814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 bindir=$ac_optarg ;;
816
817 -build | --build | --buil | --bui | --bu)
818 ac_prev=build_alias ;;
819 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820 build_alias=$ac_optarg ;;
821
822 -cache-file | --cache-file | --cache-fil | --cache-fi \
823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824 ac_prev=cache_file ;;
825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827 cache_file=$ac_optarg ;;
828
829 --config-cache | -C)
830 cache_file=config.cache ;;
831
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000832 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000833 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000834 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000835 datadir=$ac_optarg ;;
836
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838 | --dataroo | --dataro | --datar)
839 ac_prev=datarootdir ;;
840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842 datarootdir=$ac_optarg ;;
843
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000844 -disable-* | --disable-*)
Sauw Ming6e6c2152010-12-14 13:03:10 +0000845 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000846 # Reject names that are not valid shell variable names.
Sauw Ming6e6c2152010-12-14 13:03:10 +0000847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_$ac_feature=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000852
853 -docdir | --docdir | --docdi | --doc | --do)
854 ac_prev=docdir ;;
855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
856 docdir=$ac_optarg ;;
857
858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859 ac_prev=dvidir ;;
860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
861 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000862
863 -enable-* | --enable-*)
Sauw Ming6e6c2152010-12-14 13:03:10 +0000864 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000865 # Reject names that are not valid shell variable names.
Sauw Ming6e6c2152010-12-14 13:03:10 +0000866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_$ac_feature=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000871
872 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874 | --exec | --exe | --ex)
875 ac_prev=exec_prefix ;;
876 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878 | --exec=* | --exe=* | --ex=*)
879 exec_prefix=$ac_optarg ;;
880
881 -gas | --gas | --ga | --g)
882 # Obsolete; use --with-gas.
883 with_gas=yes ;;
884
885 -help | --help | --hel | --he | -h)
886 ac_init_help=long ;;
887 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888 ac_init_help=recursive ;;
889 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890 ac_init_help=short ;;
891
892 -host | --host | --hos | --ho)
893 ac_prev=host_alias ;;
894 -host=* | --host=* | --hos=* | --ho=*)
895 host_alias=$ac_optarg ;;
896
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000897 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898 ac_prev=htmldir ;;
899 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900 | --ht=*)
901 htmldir=$ac_optarg ;;
902
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000903 -includedir | --includedir | --includedi | --included | --include \
904 | --includ | --inclu | --incl | --inc)
905 ac_prev=includedir ;;
906 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907 | --includ=* | --inclu=* | --incl=* | --inc=*)
908 includedir=$ac_optarg ;;
909
910 -infodir | --infodir | --infodi | --infod | --info | --inf)
911 ac_prev=infodir ;;
912 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913 infodir=$ac_optarg ;;
914
915 -libdir | --libdir | --libdi | --libd)
916 ac_prev=libdir ;;
917 -libdir=* | --libdir=* | --libdi=* | --libd=*)
918 libdir=$ac_optarg ;;
919
920 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921 | --libexe | --libex | --libe)
922 ac_prev=libexecdir ;;
923 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924 | --libexe=* | --libex=* | --libe=*)
925 libexecdir=$ac_optarg ;;
926
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000927 -localedir | --localedir | --localedi | --localed | --locale)
928 ac_prev=localedir ;;
929 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930 localedir=$ac_optarg ;;
931
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000932 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000933 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000934 ac_prev=localstatedir ;;
935 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000936 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000937 localstatedir=$ac_optarg ;;
938
939 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940 ac_prev=mandir ;;
941 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942 mandir=$ac_optarg ;;
943
944 -nfp | --nfp | --nf)
945 # Obsolete; use --without-fp.
946 with_fp=no ;;
947
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000949 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000950 no_create=yes ;;
951
952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954 no_recursion=yes ;;
955
956 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958 | --oldin | --oldi | --old | --ol | --o)
959 ac_prev=oldincludedir ;;
960 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963 oldincludedir=$ac_optarg ;;
964
965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966 ac_prev=prefix ;;
967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968 prefix=$ac_optarg ;;
969
970 -program-prefix | --program-prefix | --program-prefi | --program-pref \
971 | --program-pre | --program-pr | --program-p)
972 ac_prev=program_prefix ;;
973 -program-prefix=* | --program-prefix=* | --program-prefi=* \
974 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975 program_prefix=$ac_optarg ;;
976
977 -program-suffix | --program-suffix | --program-suffi | --program-suff \
978 | --program-suf | --program-su | --program-s)
979 ac_prev=program_suffix ;;
980 -program-suffix=* | --program-suffix=* | --program-suffi=* \
981 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982 program_suffix=$ac_optarg ;;
983
984 -program-transform-name | --program-transform-name \
985 | --program-transform-nam | --program-transform-na \
986 | --program-transform-n | --program-transform- \
987 | --program-transform | --program-transfor \
988 | --program-transfo | --program-transf \
989 | --program-trans | --program-tran \
990 | --progr-tra | --program-tr | --program-t)
991 ac_prev=program_transform_name ;;
992 -program-transform-name=* | --program-transform-name=* \
993 | --program-transform-nam=* | --program-transform-na=* \
994 | --program-transform-n=* | --program-transform-=* \
995 | --program-transform=* | --program-transfor=* \
996 | --program-transfo=* | --program-transf=* \
997 | --program-trans=* | --program-tran=* \
998 | --progr-tra=* | --program-tr=* | --program-t=*)
999 program_transform_name=$ac_optarg ;;
1000
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001001 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002 ac_prev=pdfdir ;;
1003 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004 pdfdir=$ac_optarg ;;
1005
1006 -psdir | --psdir | --psdi | --psd | --ps)
1007 ac_prev=psdir ;;
1008 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009 psdir=$ac_optarg ;;
1010
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1013 silent=yes ;;
1014
1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016 ac_prev=sbindir ;;
1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018 | --sbi=* | --sb=*)
1019 sbindir=$ac_optarg ;;
1020
1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023 | --sharedst | --shareds | --shared | --share | --shar \
1024 | --sha | --sh)
1025 ac_prev=sharedstatedir ;;
1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029 | --sha=* | --sh=*)
1030 sharedstatedir=$ac_optarg ;;
1031
1032 -site | --site | --sit)
1033 ac_prev=site ;;
1034 -site=* | --site=* | --sit=*)
1035 site=$ac_optarg ;;
1036
1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038 ac_prev=srcdir ;;
1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040 srcdir=$ac_optarg ;;
1041
1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043 | --syscon | --sysco | --sysc | --sys | --sy)
1044 ac_prev=sysconfdir ;;
1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047 sysconfdir=$ac_optarg ;;
1048
1049 -target | --target | --targe | --targ | --tar | --ta | --t)
1050 ac_prev=target_alias ;;
1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052 target_alias=$ac_optarg ;;
1053
1054 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055 verbose=yes ;;
1056
1057 -version | --version | --versio | --versi | --vers | -V)
1058 ac_init_version=: ;;
1059
1060 -with-* | --with-*)
Sauw Ming6e6c2152010-12-14 13:03:10 +00001061 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001062 # Reject names that are not valid shell variable names.
Sauw Ming6e6c2152010-12-14 13:03:10 +00001063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_$ac_package=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001068
1069 -without-* | --without-*)
Sauw Ming6e6c2152010-12-14 13:03:10 +00001070 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001071 # Reject names that are not valid shell variable names.
Sauw Ming6e6c2152010-12-14 13:03:10 +00001072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_$ac_package=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001077
1078 --x)
1079 # Obsolete; use --with-x.
1080 with_x=yes ;;
1081
1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083 | --x-incl | --x-inc | --x-in | --x-i)
1084 ac_prev=x_includes ;;
1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087 x_includes=$ac_optarg ;;
1088
1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091 ac_prev=x_libraries ;;
1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094 x_libraries=$ac_optarg ;;
1095
Sauw Ming6e6c2152010-12-14 13:03:10 +00001096 -*) { echo "$as_me: error: unrecognized option: $ac_option
1097Try \`$0 --help' for more information." >&2
1098 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001099 ;;
1100
1101 *=*)
1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
Sauw Ming6e6c2152010-12-14 13:03:10 +00001104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001107 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001108 export $ac_envvar ;;
1109
1110 *)
1111 # FIXME: should be removed in autoconf 3.0.
Sauw Ming6e6c2152010-12-14 13:03:10 +00001112 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Sauw Ming6e6c2152010-12-14 13:03:10 +00001114 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1116 ;;
1117
1118 esac
1119done
1120
1121if test -n "$ac_prev"; then
1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Sauw Ming6e6c2152010-12-14 13:03:10 +00001123 { echo "$as_me: error: missing argument to $ac_option" >&2
1124 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001125fi
1126
Sauw Ming6e6c2152010-12-14 13:03:10 +00001127# Be sure to have absolute directory names.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001128for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1129 datadir sysconfdir sharedstatedir localstatedir includedir \
1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1131 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001132do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001133 eval ac_val=\$$ac_var
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001134 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001135 [\\/$]* | ?:[\\/]* ) continue;;
1136 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001137 esac
Sauw Ming6e6c2152010-12-14 13:03:10 +00001138 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1139 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001140done
1141
1142# There might be people who depend on the old broken behavior: `$host'
1143# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001144# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001145build=$build_alias
1146host=$host_alias
1147target=$target_alias
1148
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001149# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001150if test "x$host_alias" != x; then
1151 if test "x$build_alias" = x; then
1152 cross_compiling=maybe
Sauw Ming6e6c2152010-12-14 13:03:10 +00001153 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001154 If a cross compiler is detected then cross compile mode will be used." >&2
1155 elif test "x$build_alias" != "x$host_alias"; then
1156 cross_compiling=yes
1157 fi
1158fi
1159
1160ac_tool_prefix=
1161test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162
1163test "$silent" = yes && exec 6>/dev/null
1164
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001165
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001166ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167ac_ls_di=`ls -di .` &&
1168ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Sauw Ming6e6c2152010-12-14 13:03:10 +00001169 { echo "$as_me: error: Working directory cannot be determined" >&2
1170 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001171test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Sauw Ming6e6c2152010-12-14 13:03:10 +00001172 { echo "$as_me: error: pwd does not report name of working directory" >&2
1173 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001174
1175
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001176# Find the source files, if location was not specified.
1177if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001179 # Try the directory containing this script, then the parent directory.
Sauw Ming6e6c2152010-12-14 13:03:10 +00001180 ac_confdir=`$as_dirname -- "$0" ||
1181$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$0" : 'X\(//\)[^/]' \| \
1183 X"$0" : 'X\(//\)$' \| \
1184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185echo X"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001203 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001204 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001205 srcdir=..
1206 fi
1207else
1208 ac_srcdir_defaulted=no
1209fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001210if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Sauw Ming6e6c2152010-12-14 13:03:10 +00001212 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1213 { (exit 1); exit 1; }; }
Benny Prijono9489e7a2008-09-19 22:18:50 +00001214fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001215ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216ac_abs_confdir=`(
Sauw Ming6e6c2152010-12-14 13:03:10 +00001217 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1218 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001219 pwd)`
1220# When building in place, set srcdir=.
1221if test "$ac_abs_confdir" = "$ac_pwd"; then
1222 srcdir=.
1223fi
1224# Remove unnecessary trailing slashes from srcdir.
1225# Double slashes in file names in object file debugging info
1226# mess up M-x gdb in Emacs.
1227case $srcdir in
1228*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229esac
1230for ac_var in $ac_precious_vars; do
1231 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_env_${ac_var}_value=\$${ac_var}
1233 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1234 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1235done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001236
1237#
1238# Report the --help message.
1239#
1240if test "$ac_init_help" = "long"; then
1241 # Omit some internal or obsolete options to make the list less imposing.
1242 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001243 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001244\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001245
1246Usage: $0 [OPTION]... [VAR=VALUE]...
1247
1248To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249VAR=VALUE. See below for descriptions of some of the useful variables.
1250
1251Defaults for the options are specified in brackets.
1252
1253Configuration:
1254 -h, --help display this help and exit
1255 --help=short display options specific to this package
1256 --help=recursive display the short help of all the included packages
1257 -V, --version display version information and exit
1258 -q, --quiet, --silent do not print \`checking...' messages
1259 --cache-file=FILE cache test results in FILE [disabled]
1260 -C, --config-cache alias for \`--cache-file=config.cache'
1261 -n, --no-create do not create output files
1262 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001264Installation directories:
1265 --prefix=PREFIX install architecture-independent files in PREFIX
Sauw Ming6e6c2152010-12-14 13:03:10 +00001266 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Sauw Ming6e6c2152010-12-14 13:03:10 +00001268 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001269
1270By default, \`make install' will install all the files in
1271\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1272an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273for instance \`--prefix=\$HOME'.
1274
1275For better control, use the options below.
1276
1277Fine tuning of the installation directories:
Sauw Ming6e6c2152010-12-14 13:03:10 +00001278 --bindir=DIR user executables [EPREFIX/bin]
1279 --sbindir=DIR system admin executables [EPREFIX/sbin]
1280 --libexecdir=DIR program executables [EPREFIX/libexec]
1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1284 --libdir=DIR object code libraries [EPREFIX/lib]
1285 --includedir=DIR C header files [PREFIX/include]
1286 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1289 --infodir=DIR info documentation [DATAROOTDIR/info]
1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1291 --mandir=DIR man documentation [DATAROOTDIR/man]
1292 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1293 --htmldir=DIR html documentation [DOCDIR]
1294 --dvidir=DIR dvi documentation [DOCDIR]
1295 --pdfdir=DIR pdf documentation [DOCDIR]
1296 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001297_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001298
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001299 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001300
1301System types:
1302 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001303 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001304 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001305_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001306fi
1307
1308if test -n "$ac_init_help"; then
1309 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001310 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001311 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001312 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001313
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001314Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --disable-floating-point
1318 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001319 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001320 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001321 --disable-oss Disable OSS audio (default: not disabled)
Benny Prijonoebb2c332008-07-28 23:40:58 +00001322 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001323 --disable-small-filter Exclude small filter in resampling
1324 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001325 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1326 --disable-g711-codec Exclude G.711 codecs from the build
1327 --disable-l16-codec Exclude Linear/L16 codec family from the build
1328 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001329 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001330 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001331 --disable-speex-codec Exclude Speex codecs in the build
1332 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001333 --enable-libsamplerate Link with libsamplerate when available. Note that
1334 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoc45d9512010-12-10 11:04:30 +00001335 --disable-sdl Disable SDL (default: not disabled)
1336 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1337 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001338 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1339 package and samples location using IPPROOT and
1340 IPPSAMPLES env var or with --with-ipp and
1341 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001342 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001343
1344
Benny Prijonofe0c1272010-01-13 16:28:15 +00001345Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001348 --with-external-speex Use external Speex development files, not the one in
1349 "third_party" directory. When this option is set,
1350 make sure that Speex is accessible to use (hint: use
1351 CFLAGS and LDFLAGS env var to set the include/lib
1352 paths)
1353 --with-external-gsm Use external GSM codec library, not the one in
1354 "third_party" directory. When this option is set,
1355 make sure that the GSM include/lib files are
1356 accessible to use (hint: use CFLAGS and LDFLAGS env
1357 var to set the include/lib paths)
1358 --with-external-pa Use external PortAudio development files, not the
1359 one in "third_party" directory. When this option is
1360 set, make sure that PortAudio is accessible to use
1361 (hint: use CFLAGS and LDFLAGS env var to set the
1362 include/lib paths)
Benny Prijono3965f192010-02-10 18:46:05 +00001363 --with-ipp=DIR Specify the Intel IPP location
1364 --with-ipp-samples=DIR Specify the Intel IPP samples location
1365 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001366 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001367
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001368Some influential environment variables:
1369 CC C compiler command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1372 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001373 LIBS libraries to pass to the linker, e.g. -l<library>
Sauw Ming6e6c2152010-12-14 13:03:10 +00001374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001375 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001376 CXX C++ compiler command
1377 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001378 CPP C preprocessor
1379
1380Use these variables to override the choices made by `configure' or to help
1381it to find libraries and programs with nonstandard names/locations.
1382
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001383_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001384ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001385fi
1386
1387if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Sauw Ming6e6c2152010-12-14 13:03:10 +00001390 test -d "$ac_dir" || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001391 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001392
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001393case "$ac_dir" in
1394.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395*)
Sauw Ming6e6c2152010-12-14 13:03:10 +00001396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001397 # A ".." for each directory in $ac_dir_suffix.
Sauw Ming6e6c2152010-12-14 13:03:10 +00001398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 esac ;;
1403esac
1404ac_abs_top_builddir=$ac_pwd
1405ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406# for backward compatibility:
1407ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001408
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001409case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001410 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001411 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001415 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1418 *) # Relative name.
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001422esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001423ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001424
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001433 else
Sauw Ming6e6c2152010-12-14 13:03:10 +00001434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001437 done
1438fi
1439
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001440test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001441if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001442 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001443pjproject configure 1.x
Sauw Ming6e6c2152010-12-14 13:03:10 +00001444generated by GNU Autoconf 2.61
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001445
Sauw Ming6e6c2152010-12-14 13:03:10 +00001446Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001448This configure script is free software; the Free Software Foundation
1449gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001450_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001451 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001452fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001453cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001454This file contains any messages produced by compilers while
1455running configure, to aid debugging if configure makes a mistake.
1456
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001457It was created by pjproject $as_me 1.x, which was
Sauw Ming6e6c2152010-12-14 13:03:10 +00001458generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001459
1460 $ $0 $@
1461
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001462_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001463exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001464{
1465cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001466## --------- ##
1467## Platform. ##
1468## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001469
1470hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474uname -v = `(uname -v) 2>/dev/null || echo unknown`
1475
1476/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1478
1479/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001482/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001483/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1486
1487_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001488
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00001494 echo "PATH: $as_dir"
1495done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001496IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001497
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001498} >&5
1499
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001500cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001501
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001502
1503## ----------- ##
1504## Core tests. ##
1505## ----------- ##
1506
1507_ACEOF
1508
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001509
1510# Keep a trace of the command line.
1511# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001512# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001513# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001514# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001515ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001516ac_configure_args0=
1517ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001518ac_must_keep_next=false
1519for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001520do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001521 for ac_arg
1522 do
1523 case $ac_arg in
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1527 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001528 *\'*)
Sauw Ming6e6c2152010-12-14 13:03:10 +00001529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001530 esac
1531 case $ac_pass in
Sauw Ming6e6c2152010-12-14 13:03:10 +00001532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001533 2)
Sauw Ming6e6c2152010-12-14 13:03:10 +00001534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1537 else
1538 case $ac_arg in
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 esac
1546 ;;
1547 -* ) ac_must_keep_next=true ;;
1548 esac
1549 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00001550 ac_configure_args="$ac_configure_args '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001551 ;;
1552 esac
1553 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001554done
Sauw Ming6e6c2152010-12-14 13:03:10 +00001555$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001557
1558# When interrupted or exit'd, cleanup temporary files, and complete
1559# config.log. We remove comments because anyway the quotes in there
1560# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001561# WARNING: Use '\'' to represent an apostrophe within the trap.
1562# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001563trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001565 {
1566 echo
1567
1568 cat <<\_ASBOX
1569## ---------------- ##
1570## Cache variables. ##
1571## ---------------- ##
1572_ASBOX
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001575(
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
Sauw Ming6e6c2152010-12-14 13:03:10 +00001581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
Sauw Ming6e6c2152010-12-14 13:03:10 +00001586 *) $as_unset $ac_var ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001587 esac ;;
1588 esac
1589 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001590 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001593 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00001597 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00001599 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001600 esac |
1601 sort
1602)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001603 echo
1604
1605 cat <<\_ASBOX
1606## ----------------- ##
1607## Output variables. ##
1608## ----------------- ##
1609_ASBOX
1610 echo
1611 for ac_var in $ac_subst_vars
1612 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001613 eval ac_val=\$$ac_var
1614 case $ac_val in
Sauw Ming6e6c2152010-12-14 13:03:10 +00001615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001616 esac
Sauw Ming6e6c2152010-12-14 13:03:10 +00001617 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001618 done | sort
1619 echo
1620
1621 if test -n "$ac_subst_files"; then
1622 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001623## ------------------- ##
1624## File substitutions. ##
1625## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001626_ASBOX
1627 echo
1628 for ac_var in $ac_subst_files
1629 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001630 eval ac_val=\$$ac_var
1631 case $ac_val in
Sauw Ming6e6c2152010-12-14 13:03:10 +00001632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001633 esac
Sauw Ming6e6c2152010-12-14 13:03:10 +00001634 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001635 done | sort
1636 echo
1637 fi
1638
1639 if test -s confdefs.h; then
1640 cat <<\_ASBOX
1641## ----------- ##
1642## confdefs.h. ##
1643## ----------- ##
1644_ASBOX
1645 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001646 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001647 echo
1648 fi
1649 test "$ac_signal" != 0 &&
Sauw Ming6e6c2152010-12-14 13:03:10 +00001650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001652 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001655 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001656' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001657for ac_signal in 1 2 13 15; do
Sauw Ming6e6c2152010-12-14 13:03:10 +00001658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001659done
1660ac_signal=0
1661
1662# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001663rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001664
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001665# Predefined preprocessor variables.
1666
1667cat >>confdefs.h <<_ACEOF
1668#define PACKAGE_NAME "$PACKAGE_NAME"
1669_ACEOF
1670
Sauw Ming6e6c2152010-12-14 13:03:10 +00001671
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001672cat >>confdefs.h <<_ACEOF
1673#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1674_ACEOF
1675
Sauw Ming6e6c2152010-12-14 13:03:10 +00001676
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_VERSION "$PACKAGE_VERSION"
1679_ACEOF
1680
Sauw Ming6e6c2152010-12-14 13:03:10 +00001681
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_STRING "$PACKAGE_STRING"
1684_ACEOF
1685
Sauw Ming6e6c2152010-12-14 13:03:10 +00001686
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1689_ACEOF
1690
1691
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001692# Let the site file select an alternate cache file if it wants to.
Sauw Ming6e6c2152010-12-14 13:03:10 +00001693# Prefer explicitly selected file to automatically selected ones.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001694if test -n "$CONFIG_SITE"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00001695 set x "$CONFIG_SITE"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001696elif test "x$prefix" != xNONE; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00001697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001698else
Sauw Ming6e6c2152010-12-14 13:03:10 +00001699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001701fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00001702shift
1703for ac_site_file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001704do
Sauw Ming6e6c2152010-12-14 13:03:10 +00001705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001708 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001709 . "$ac_site_file"
1710 fi
1711done
1712
1713if test -r "$cache_file"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00001714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001719 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001722 esac
1723 fi
1724else
Sauw Ming6e6c2152010-12-14 13:03:10 +00001725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001727 >$cache_file
1728fi
1729
1730# Check that the precious variables saved in the cache have kept the same
1731# value.
1732ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001733for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001738 case $ac_old_set,$ac_new_set in
1739 set,)
Sauw Ming6e6c2152010-12-14 13:03:10 +00001740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001742 ac_cache_corrupted=: ;;
1743 ,set)
Sauw Ming6e6c2152010-12-14 13:03:10 +00001744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001746 ac_cache_corrupted=: ;;
1747 ,);;
1748 *)
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00001750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001757 fi;;
1758 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001759 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001760 if test "$ac_new_set" = set; then
1761 case $ac_new_val in
Sauw Ming6e6c2152010-12-14 13:03:10 +00001762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001763 *) ac_arg=$ac_var=$ac_new_val ;;
1764 esac
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Sauw Ming6e6c2152010-12-14 13:03:10 +00001767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001768 esac
1769 fi
1770done
1771if $ac_cache_corrupted; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00001772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001777fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00001778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001802
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001803ac_ext=c
1804ac_cpp='$CPP $CPPFLAGS'
1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001809
1810
Benny Prijono5b818b22006-09-17 22:58:51 +00001811host_orig="$host"
1812
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001813ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001814for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Sauw Ming6e6c2152010-12-14 13:03:10 +00001815 if test -f "$ac_dir/install-sh"; then
1816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install-sh -c"
1818 break
1819 elif test -f "$ac_dir/install.sh"; then
1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/install.sh -c"
1822 break
1823 elif test -f "$ac_dir/shtool"; then
1824 ac_aux_dir=$ac_dir
1825 ac_install_sh="$ac_aux_dir/shtool install -c"
1826 break
1827 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001828done
1829if test -z "$ac_aux_dir"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00001830 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1831echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1832 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001833fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001834
1835# These three variables are undocumented and unsupported,
1836# and are intended to be withdrawn in a future Autoconf release.
1837# They can cause serious problems if a builder's source tree is in a directory
1838# whose full name contains unusual characters.
1839ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1840ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1841ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1842
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001843
1844# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001845$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Sauw Ming6e6c2152010-12-14 13:03:10 +00001846 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1847echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1848 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001849
Sauw Ming6e6c2152010-12-14 13:03:10 +00001850{ echo "$as_me:$LINENO: checking build system type" >&5
1851echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1852if test "${ac_cv_build+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001854else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001855 ac_build_alias=$build_alias
1856test "x$ac_build_alias" = x &&
1857 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1858test "x$ac_build_alias" = x &&
Sauw Ming6e6c2152010-12-14 13:03:10 +00001859 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1860echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1861 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001862ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Sauw Ming6e6c2152010-12-14 13:03:10 +00001863 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1864echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1865 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001866
1867fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00001868{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1869echo "${ECHO_T}$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001870case $ac_cv_build in
1871*-*-*) ;;
Sauw Ming6e6c2152010-12-14 13:03:10 +00001872*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1873echo "$as_me: error: invalid value of canonical build" >&2;}
1874 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001875esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001876build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001877ac_save_IFS=$IFS; IFS='-'
1878set x $ac_cv_build
1879shift
1880build_cpu=$1
1881build_vendor=$2
1882shift; shift
1883# Remember, the first character of IFS is used to create $*,
1884# except with old shells:
1885build_os=$*
1886IFS=$ac_save_IFS
1887case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001888
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001889
Sauw Ming6e6c2152010-12-14 13:03:10 +00001890{ echo "$as_me:$LINENO: checking host system type" >&5
1891echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1892if test "${ac_cv_host+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001894else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001895 if test "x$host_alias" = x; then
1896 ac_cv_host=$ac_cv_build
1897else
1898 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Sauw Ming6e6c2152010-12-14 13:03:10 +00001899 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1900echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1901 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001902fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001903
1904fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00001905{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1906echo "${ECHO_T}$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001907case $ac_cv_host in
1908*-*-*) ;;
Sauw Ming6e6c2152010-12-14 13:03:10 +00001909*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1910echo "$as_me: error: invalid value of canonical host" >&2;}
1911 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001912esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001913host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001914ac_save_IFS=$IFS; IFS='-'
1915set x $ac_cv_host
1916shift
1917host_cpu=$1
1918host_vendor=$2
1919shift; shift
1920# Remember, the first character of IFS is used to create $*,
1921# except with old shells:
1922host_os=$*
1923IFS=$ac_save_IFS
1924case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001925
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001926
Sauw Ming6e6c2152010-12-14 13:03:10 +00001927{ echo "$as_me:$LINENO: checking target system type" >&5
1928echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1929if test "${ac_cv_target+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001931else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001932 if test "x$target_alias" = x; then
1933 ac_cv_target=$ac_cv_host
1934else
1935 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Sauw Ming6e6c2152010-12-14 13:03:10 +00001936 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1937echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001939fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001940
1941fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00001942{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1943echo "${ECHO_T}$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001944case $ac_cv_target in
1945*-*-*) ;;
Sauw Ming6e6c2152010-12-14 13:03:10 +00001946*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1947echo "$as_me: error: invalid value of canonical target" >&2;}
1948 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001949esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001950target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001951ac_save_IFS=$IFS; IFS='-'
1952set x $ac_cv_target
1953shift
1954target_cpu=$1
1955target_vendor=$2
1956shift; shift
1957# Remember, the first character of IFS is used to create $*,
1958# except with old shells:
1959target_os=$*
1960IFS=$ac_save_IFS
1961case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001962
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001963
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001964# The aliases save the names the user supplied, while $host etc.
1965# will get canonicalized.
1966test -n "$target_alias" &&
1967 test "$program_prefix$program_suffix$program_transform_name" = \
1968 NONENONEs,x,x, &&
1969 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001970ac_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 +00001971
Benny Prijono8ec5eae2010-05-12 10:59:20 +00001972ac_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 +00001973
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001974
Benny Prijono12483112007-03-12 10:44:38 +00001975
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001976if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001977 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001978else
1979 CFLAGS="$CFLAGS"
1980fi
1981
1982CXXFLAGS="$CFLAGS $CXXFLAGS"
1983
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001984ac_ext=c
1985ac_cpp='$CPP $CPPFLAGS'
1986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989if test -n "$ac_tool_prefix"; then
1990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1991set dummy ${ac_tool_prefix}gcc; ac_word=$2
Sauw Ming6e6c2152010-12-14 13:03:10 +00001992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1994if test "${ac_cv_prog_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001996else
1997 if test -n "$CC"; then
1998 ac_cv_prog_CC="$CC" # Let the user override the test.
1999else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002005 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002006 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 +00002007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002009 break 2
2010 fi
2011done
Sauw Ming6e6c2152010-12-14 13:03:10 +00002012done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002013IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002014
2015fi
2016fi
2017CC=$ac_cv_prog_CC
2018if test -n "$CC"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00002019 { echo "$as_me:$LINENO: result: $CC" >&5
2020echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002021else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002022 { echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002024fi
2025
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002026
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002027fi
2028if test -z "$ac_cv_prog_CC"; then
2029 ac_ct_CC=$CC
2030 # Extract the first word of "gcc", so it can be a program name with args.
2031set dummy gcc; ac_word=$2
Sauw Ming6e6c2152010-12-14 13:03:10 +00002032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002036else
2037 if test -n "$ac_ct_CC"; then
2038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002045 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002046 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 +00002047 ac_cv_prog_ac_ct_CC="gcc"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002049 break 2
2050 fi
2051done
Sauw Ming6e6c2152010-12-14 13:03:10 +00002052done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002053IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002054
2055fi
2056fi
2057ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058if test -n "$ac_ct_CC"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00002059 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002061else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002062 { echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002064fi
2065
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002066 if test "x$ac_ct_CC" = x; then
2067 CC=""
2068 else
2069 case $cross_compiling:$ac_tool_warned in
2070yes:)
Sauw Ming6e6c2152010-12-14 13:03:10 +00002071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072whose name does not start with the host triplet. If you think this
2073configuration is useful to you, please write to autoconf@gnu.org." >&5
2074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075whose name does not start with the host triplet. If you think this
2076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002077ac_tool_warned=yes ;;
2078esac
2079 CC=$ac_ct_CC
2080 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002081else
2082 CC="$ac_cv_prog_CC"
2083fi
2084
2085if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002086 if test -n "$ac_tool_prefix"; then
2087 # 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 +00002088set dummy ${ac_tool_prefix}cc; ac_word=$2
Sauw Ming6e6c2152010-12-14 13:03:10 +00002089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091if test "${ac_cv_prog_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002093else
2094 if test -n "$CC"; then
2095 ac_cv_prog_CC="$CC" # Let the user override the test.
2096else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002102 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002103 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 +00002104 ac_cv_prog_CC="${ac_tool_prefix}cc"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002106 break 2
2107 fi
2108done
Sauw Ming6e6c2152010-12-14 13:03:10 +00002109done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002110IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002111
2112fi
2113fi
2114CC=$ac_cv_prog_CC
2115if test -n "$CC"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00002116 { echo "$as_me:$LINENO: result: $CC" >&5
2117echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002118else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002119 { echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002121fi
2122
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002123
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002124 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002125fi
2126if test -z "$CC"; then
2127 # Extract the first word of "cc", so it can be a program name with args.
2128set dummy cc; ac_word=$2
Sauw Ming6e6c2152010-12-14 13:03:10 +00002129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002133else
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2136else
2137 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139for as_dir in $PATH
2140do
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002143 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002144 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 +00002145 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2146 ac_prog_rejected=yes
2147 continue
2148 fi
2149 ac_cv_prog_CC="cc"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002151 break 2
2152 fi
2153done
Sauw Ming6e6c2152010-12-14 13:03:10 +00002154done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002155IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002156
2157if test $ac_prog_rejected = yes; then
2158 # We found a bogon in the path, so make sure we never use it.
2159 set dummy $ac_cv_prog_CC
2160 shift
2161 if test $# != 0; then
2162 # We chose a different compiler from the bogus one.
2163 # However, it has the same basename, so the bogon will be chosen
2164 # first if we set CC to just the basename; use the full file name.
2165 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002166 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002167 fi
2168fi
2169fi
2170fi
2171CC=$ac_cv_prog_CC
2172if test -n "$CC"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00002173 { echo "$as_me:$LINENO: result: $CC" >&5
2174echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002175else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002176 { echo "$as_me:$LINENO: result: no" >&5
2177echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002178fi
2179
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002180
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002181fi
2182if test -z "$CC"; then
2183 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002184 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002185 do
2186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Sauw Ming6e6c2152010-12-14 13:03:10 +00002188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002192else
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2195else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002201 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002202 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 +00002203 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002205 break 2
2206 fi
2207done
Sauw Ming6e6c2152010-12-14 13:03:10 +00002208done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002209IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002210
2211fi
2212fi
2213CC=$ac_cv_prog_CC
2214if test -n "$CC"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00002215 { echo "$as_me:$LINENO: result: $CC" >&5
2216echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002217else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002218 { echo "$as_me:$LINENO: result: no" >&5
2219echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002220fi
2221
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002222
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002223 test -n "$CC" && break
2224 done
2225fi
2226if test -z "$CC"; then
2227 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002228 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002229do
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231set dummy $ac_prog; ac_word=$2
Sauw Ming6e6c2152010-12-14 13:03:10 +00002232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002236else
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002245 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002246 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 +00002247 ac_cv_prog_ac_ct_CC="$ac_prog"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002249 break 2
2250 fi
2251done
Sauw Ming6e6c2152010-12-14 13:03:10 +00002252done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002253IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002254
2255fi
2256fi
2257ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258if test -n "$ac_ct_CC"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00002259 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002261else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002262 { echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002264fi
2265
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002266
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002267 test -n "$ac_ct_CC" && break
2268done
2269
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002270 if test "x$ac_ct_CC" = x; then
2271 CC=""
2272 else
2273 case $cross_compiling:$ac_tool_warned in
2274yes:)
Sauw Ming6e6c2152010-12-14 13:03:10 +00002275{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2276whose name does not start with the host triplet. If you think this
2277configuration is useful to you, please write to autoconf@gnu.org." >&5
2278echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2279whose name does not start with the host triplet. If you think this
2280configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002281ac_tool_warned=yes ;;
2282esac
2283 CC=$ac_ct_CC
2284 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002285fi
2286
2287fi
2288
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002289
Sauw Ming6e6c2152010-12-14 13:03:10 +00002290test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: no acceptable C compiler found in \$PATH
2293See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002295
2296# Provide some information about the compiler.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002297echo "$as_me:$LINENO: checking for C compiler version" >&5
2298ac_compiler=`set X $ac_compile; echo $2`
2299{ (ac_try="$ac_compiler --version >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002300case "(($ac_try" in
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2303esac
Sauw Ming6e6c2152010-12-14 13:03:10 +00002304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2305 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002306 ac_status=$?
Sauw Ming6e6c2152010-12-14 13:03:10 +00002307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }
2309{ (ac_try="$ac_compiler -v >&5"
2310case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313esac
2314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315 (eval "$ac_compiler -v >&5") 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319{ (ac_try="$ac_compiler -V >&5"
2320case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323esac
2324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325 (eval "$ac_compiler -V >&5") 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002329
Sauw Ming6e6c2152010-12-14 13:03:10 +00002330cat >conftest.$ac_ext <<_ACEOF
2331/* confdefs.h. */
2332_ACEOF
2333cat confdefs.h >>conftest.$ac_ext
2334cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002335/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002336
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002337int
2338main ()
2339{
2340
2341 ;
2342 return 0;
2343}
2344_ACEOF
2345ac_clean_files_save=$ac_clean_files
Sauw Ming6e6c2152010-12-14 13:03:10 +00002346ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002347# Try to create an executable without -o first, disregard a.out.
2348# It will help us diagnose broken compilers, and finding out an intuition
2349# of exeext.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002350{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2351echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2352ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2353#
2354# List of possible output files, starting from the most likely.
2355# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2356# only as a last resort. b.out is created by i960 compilers.
2357ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2358#
2359# The IRIX 6 linker writes into existing files which may not be
2360# executable, retaining their permissions. Remove them first so a
2361# subsequent execution test works.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002362ac_rmfiles=
2363for ac_file in $ac_files
2364do
2365 case $ac_file in
Sauw Ming6e6c2152010-12-14 13:03:10 +00002366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2368 esac
2369done
2370rm -f $ac_rmfiles
2371
Sauw Ming6e6c2152010-12-14 13:03:10 +00002372if { (ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002373case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376esac
Sauw Ming6e6c2152010-12-14 13:03:10 +00002377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002378 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002379 ac_status=$?
Sauw Ming6e6c2152010-12-14 13:03:10 +00002380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002382 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2383# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2384# in a Makefile. We should not override ac_cv_exeext if it was cached,
2385# so that the user can short-circuit this test for compilers unknown to
2386# Autoconf.
2387for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002388do
2389 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002390 case $ac_file in
Sauw Ming6e6c2152010-12-14 13:03:10 +00002391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002392 ;;
2393 [ab].out )
2394 # We found the default executable, but exeext='' is most
2395 # certainly right.
2396 break;;
2397 *.* )
Sauw Ming6e6c2152010-12-14 13:03:10 +00002398 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002399 then :; else
2400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401 fi
2402 # We set ac_cv_exeext here because the later test for it is not
2403 # safe: cross compilers may not add the suffix if given an `-o'
2404 # argument, so we may need to know it at that point already.
2405 # Even if this section looks crufty: it has the advantage of
2406 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002407 break;;
2408 * )
2409 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002410 esac
2411done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002412test "$ac_cv_exeext" = no && ac_cv_exeext=
2413
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002414else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002415 ac_file=''
2416fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002417
2418{ echo "$as_me:$LINENO: result: $ac_file" >&5
2419echo "${ECHO_T}$ac_file" >&6; }
2420if test -z "$ac_file"; then
2421 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002422sed 's/^/| /' conftest.$ac_ext >&5
2423
Sauw Ming6e6c2152010-12-14 13:03:10 +00002424{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2425See \`config.log' for more details." >&5
2426echo "$as_me: error: C compiler cannot create executables
2427See \`config.log' for more details." >&2;}
2428 { (exit 77); exit 77; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002429fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002430
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002431ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002432
Sauw Ming6e6c2152010-12-14 13:03:10 +00002433# Check that the compiler produces executables we can run. If not, either
2434# the compiler is broken, or we cross compile.
2435{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2436echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2437# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2438# If not cross compiling, check that we can run a simple program.
2439if test "$cross_compiling" != yes; then
2440 if { ac_try='./$ac_file'
2441 { (case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444esac
2445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_try") 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 cross_compiling=no
2451 else
2452 if test "$cross_compiling" = maybe; then
2453 cross_compiling=yes
2454 else
2455 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2456If you meant to cross compile, use \`--host'.
2457See \`config.log' for more details." >&5
2458echo "$as_me: error: cannot run C compiled programs.
2459If you meant to cross compile, use \`--host'.
2460See \`config.log' for more details." >&2;}
2461 { (exit 1); exit 1; }; }
2462 fi
2463 fi
2464fi
2465{ echo "$as_me:$LINENO: result: yes" >&5
2466echo "${ECHO_T}yes" >&6; }
2467
2468rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002469ac_clean_files=$ac_clean_files_save
Sauw Ming6e6c2152010-12-14 13:03:10 +00002470# Check that the compiler produces executables we can run. If not, either
2471# the compiler is broken, or we cross compile.
2472{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2473echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2474{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2475echo "${ECHO_T}$cross_compiling" >&6; }
2476
2477{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2478echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2479if { (ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002480case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
Sauw Ming6e6c2152010-12-14 13:03:10 +00002484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002485 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002486 ac_status=$?
Sauw Ming6e6c2152010-12-14 13:03:10 +00002487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002489 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2490# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2491# work properly (i.e., refer to `conftest.exe'), while it won't with
2492# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002493for ac_file in conftest.exe conftest conftest.*; do
2494 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002495 case $ac_file in
Sauw Ming6e6c2152010-12-14 13:03:10 +00002496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002497 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002498 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002499 * ) break;;
2500 esac
2501done
2502else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002503 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2504See \`config.log' for more details." >&5
2505echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2506See \`config.log' for more details." >&2;}
2507 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002508fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002509
2510rm -f conftest$ac_cv_exeext
2511{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2512echo "${ECHO_T}$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002513
2514rm -f conftest.$ac_ext
2515EXEEXT=$ac_cv_exeext
2516ac_exeext=$EXEEXT
Sauw Ming6e6c2152010-12-14 13:03:10 +00002517{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2518echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2519if test "${ac_cv_objext+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00002521else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002522 cat >conftest.$ac_ext <<_ACEOF
2523/* confdefs.h. */
2524_ACEOF
2525cat confdefs.h >>conftest.$ac_ext
2526cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002527/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002528
2529int
2530main ()
2531{
2532
2533 ;
2534 return 0;
2535}
2536_ACEOF
2537rm -f conftest.o conftest.obj
Sauw Ming6e6c2152010-12-14 13:03:10 +00002538if { (ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002539case "(($ac_try" in
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2542esac
Sauw Ming6e6c2152010-12-14 13:03:10 +00002543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002544 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002545 ac_status=$?
Sauw Ming6e6c2152010-12-14 13:03:10 +00002546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002548 for ac_file in conftest.o conftest.obj conftest.*; do
2549 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002550 case $ac_file in
Sauw Ming6e6c2152010-12-14 13:03:10 +00002551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553 break;;
2554 esac
2555done
2556else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002557 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002558sed 's/^/| /' conftest.$ac_ext >&5
2559
Sauw Ming6e6c2152010-12-14 13:03:10 +00002560{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561See \`config.log' for more details." >&5
2562echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002565fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002566
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002567rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002569{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570echo "${ECHO_T}$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002571OBJEXT=$ac_cv_objext
2572ac_objext=$OBJEXT
Sauw Ming6e6c2152010-12-14 13:03:10 +00002573{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2575if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002577else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002578 cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h. */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002583/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002584
2585int
2586main ()
2587{
2588#ifndef __GNUC__
2589 choke me
2590#endif
2591
2592 ;
2593 return 0;
2594}
2595_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00002596rm -f conftest.$ac_objext
2597if { (ac_try="$ac_compile"
2598case "(($ac_try" in
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2601esac
2602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_compile") 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } && {
2610 test -z "$ac_c_werror_flag" ||
2611 test ! -s conftest.err
2612 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002613 ac_compiler_gnu=yes
2614else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002615 echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002619fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002620
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002622ac_cv_c_compiler_gnu=$ac_compiler_gnu
2623
2624fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002625{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2626echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2627GCC=`test $ac_compiler_gnu = yes && echo yes`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002628ac_test_CFLAGS=${CFLAGS+set}
2629ac_save_CFLAGS=$CFLAGS
Sauw Ming6e6c2152010-12-14 13:03:10 +00002630{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2631echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2632if test "${ac_cv_prog_cc_g+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002634else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002635 ac_save_c_werror_flag=$ac_c_werror_flag
2636 ac_c_werror_flag=yes
2637 ac_cv_prog_cc_g=no
2638 CFLAGS="-g"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002639 cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002644/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002645
2646int
2647main ()
2648{
2649
2650 ;
2651 return 0;
2652}
2653_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00002654rm -f conftest.$ac_objext
2655if { (ac_try="$ac_compile"
2656case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659esac
2660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2662 ac_status=$?
2663 grep -v '^ *+' conftest.er1 >conftest.err
2664 rm -f conftest.er1
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002671 ac_cv_prog_cc_g=yes
2672else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002673 echo "$as_me: failed program was:" >&5
2674sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 CFLAGS=""
2677 cat >conftest.$ac_ext <<_ACEOF
2678/* confdefs.h. */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002682/* end confdefs.h. */
2683
2684int
2685main ()
2686{
2687
2688 ;
2689 return 0;
2690}
2691_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00002692rm -f conftest.$ac_objext
2693if { (ac_try="$ac_compile"
2694case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697esac
2698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } && {
2706 test -z "$ac_c_werror_flag" ||
2707 test ! -s conftest.err
2708 } && test -s conftest.$ac_objext; then
2709 :
Benny Prijonoc45d9512010-12-10 11:04:30 +00002710else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002711 echo "$as_me: failed program was:" >&5
2712sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002715 CFLAGS="-g"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002716 cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002721/* end confdefs.h. */
2722
2723int
2724main ()
2725{
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00002731rm -f conftest.$ac_objext
2732if { (ac_try="$ac_compile"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002748 ac_cv_prog_cc_g=yes
Sauw Ming6e6c2152010-12-14 13:03:10 +00002749else
2750 echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002754fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002755
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002757fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002758
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002761
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 ac_c_werror_flag=$ac_save_c_werror_flag
2764fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002765{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2766echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002767if test "$ac_test_CFLAGS" = set; then
2768 CFLAGS=$ac_save_CFLAGS
2769elif test $ac_cv_prog_cc_g = yes; then
2770 if test "$GCC" = yes; then
2771 CFLAGS="-g -O2"
2772 else
2773 CFLAGS="-g"
2774 fi
2775else
2776 if test "$GCC" = yes; then
2777 CFLAGS="-O2"
2778 else
2779 CFLAGS=
2780 fi
2781fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002782{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2783echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2784if test "${ac_cv_prog_cc_c89+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002786else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002787 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002788ac_save_CC=$CC
Sauw Ming6e6c2152010-12-14 13:03:10 +00002789cat >conftest.$ac_ext <<_ACEOF
2790/* confdefs.h. */
2791_ACEOF
2792cat confdefs.h >>conftest.$ac_ext
2793cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002794/* end confdefs.h. */
2795#include <stdarg.h>
2796#include <stdio.h>
2797#include <sys/types.h>
2798#include <sys/stat.h>
2799/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2800struct buf { int x; };
2801FILE * (*rcsopen) (struct buf *, struct stat *, int);
2802static char *e (p, i)
2803 char **p;
2804 int i;
2805{
2806 return p[i];
2807}
2808static char *f (char * (*g) (char **, int), char **p, ...)
2809{
2810 char *s;
2811 va_list v;
2812 va_start (v,p);
2813 s = g (p, va_arg (v,int));
2814 va_end (v);
2815 return s;
2816}
2817
2818/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2819 function prototypes and stuff, but not '\xHH' hex character constants.
2820 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002821 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2823 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002824 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002825int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2826
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002827/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2828 inside strings and character constants. */
2829#define FOO(x) 'x'
2830int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2831
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002832int test (int i, double x);
2833struct s1 {int (*f) (int a);};
2834struct s2 {int (*f) (double a);};
2835int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2836int argc;
2837char **argv;
2838int
2839main ()
2840{
2841return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2842 ;
2843 return 0;
2844}
2845_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002846for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002848do
2849 CC="$ac_save_CC $ac_arg"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002850 rm -f conftest.$ac_objext
2851if { (ac_try="$ac_compile"
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
2856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_compile") 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } && {
2864 test -z "$ac_c_werror_flag" ||
2865 test ! -s conftest.err
2866 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002867 ac_cv_prog_cc_c89=$ac_arg
Sauw Ming6e6c2152010-12-14 13:03:10 +00002868else
2869 echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002873fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00002874
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002875rm -f core conftest.err conftest.$ac_objext
2876 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002877done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002878rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002879CC=$ac_save_CC
2880
2881fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002882# AC_CACHE_VAL
2883case "x$ac_cv_prog_cc_c89" in
2884 x)
Sauw Ming6e6c2152010-12-14 13:03:10 +00002885 { echo "$as_me:$LINENO: result: none needed" >&5
2886echo "${ECHO_T}none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002887 xno)
Sauw Ming6e6c2152010-12-14 13:03:10 +00002888 { echo "$as_me:$LINENO: result: unsupported" >&5
2889echo "${ECHO_T}unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002890 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002891 CC="$CC $ac_cv_prog_cc_c89"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002892 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2893echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002894esac
2895
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002896
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002897ac_ext=c
2898ac_cpp='$CPP $CPPFLAGS'
2899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002903ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002904ac_cpp='$CXXCPP $CPPFLAGS'
2905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002908if test -z "$CXX"; then
2909 if test -n "$CCC"; then
2910 CXX=$CCC
2911 else
2912 if test -n "$ac_tool_prefix"; then
2913 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 +00002914 do
2915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Sauw Ming6e6c2152010-12-14 13:03:10 +00002917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2919if test "${ac_cv_prog_CXX+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002921else
2922 if test -n "$CXX"; then
2923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2924else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002930 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002931 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 +00002932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002934 break 2
2935 fi
2936done
Sauw Ming6e6c2152010-12-14 13:03:10 +00002937done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002938IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002939
2940fi
2941fi
2942CXX=$ac_cv_prog_CXX
2943if test -n "$CXX"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00002944 { echo "$as_me:$LINENO: result: $CXX" >&5
2945echo "${ECHO_T}$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002946else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002947 { echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002949fi
2950
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002951
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002952 test -n "$CXX" && break
2953 done
2954fi
2955if test -z "$CXX"; then
2956 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002957 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 +00002958do
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960set dummy $ac_prog; ac_word=$2
Sauw Ming6e6c2152010-12-14 13:03:10 +00002961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002965else
2966 if test -n "$ac_ct_CXX"; then
2967 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2968else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00002974 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002975 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 +00002976 ac_cv_prog_ac_ct_CXX="$ac_prog"
Sauw Ming6e6c2152010-12-14 13:03:10 +00002977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002978 break 2
2979 fi
2980done
Sauw Ming6e6c2152010-12-14 13:03:10 +00002981done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002982IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002983
2984fi
2985fi
2986ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2987if test -n "$ac_ct_CXX"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00002988 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2989echo "${ECHO_T}$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002990else
Sauw Ming6e6c2152010-12-14 13:03:10 +00002991 { echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002993fi
2994
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002995
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002996 test -n "$ac_ct_CXX" && break
2997done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002998
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002999 if test "x$ac_ct_CXX" = x; then
3000 CXX="g++"
3001 else
3002 case $cross_compiling:$ac_tool_warned in
3003yes:)
Sauw Ming6e6c2152010-12-14 13:03:10 +00003004{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3005whose name does not start with the host triplet. If you think this
3006configuration is useful to you, please write to autoconf@gnu.org." >&5
3007echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3008whose name does not start with the host triplet. If you think this
3009configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003010ac_tool_warned=yes ;;
3011esac
3012 CXX=$ac_ct_CXX
3013 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003014fi
3015
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003016 fi
3017fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003018# Provide some information about the compiler.
Sauw Ming6e6c2152010-12-14 13:03:10 +00003019echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3020ac_compiler=`set X $ac_compile; echo $2`
3021{ (ac_try="$ac_compiler --version >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003022case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
Sauw Ming6e6c2152010-12-14 13:03:10 +00003026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003028 ac_status=$?
Sauw Ming6e6c2152010-12-14 13:03:10 +00003029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3031{ (ac_try="$ac_compiler -v >&5"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compiler -v >&5") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3041{ (ac_try="$ac_compiler -V >&5"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compiler -V >&5") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003051
Sauw Ming6e6c2152010-12-14 13:03:10 +00003052{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3053echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3054if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003056else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003062/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003063
3064int
3065main ()
3066{
3067#ifndef __GNUC__
3068 choke me
3069#endif
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003075rm -f conftest.$ac_objext
3076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } && {
3089 test -z "$ac_cxx_werror_flag" ||
3090 test ! -s conftest.err
3091 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003092 ac_compiler_gnu=yes
3093else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003094 echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003098fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003099
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003101ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3102
3103fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003104{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3105echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3106GXX=`test $ac_compiler_gnu = yes && echo yes`
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003107ac_test_CXXFLAGS=${CXXFLAGS+set}
3108ac_save_CXXFLAGS=$CXXFLAGS
Sauw Ming6e6c2152010-12-14 13:03:10 +00003109{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3110echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3111if test "${ac_cv_prog_cxx_g+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003113else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003114 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3115 ac_cxx_werror_flag=yes
3116 ac_cv_prog_cxx_g=no
3117 CXXFLAGS="-g"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003118 cat >conftest.$ac_ext <<_ACEOF
3119/* confdefs.h. */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003123/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003124
3125int
3126main ()
3127{
3128
3129 ;
3130 return 0;
3131}
3132_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003133rm -f conftest.$ac_objext
3134if { (ac_try="$ac_compile"
3135case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138esac
3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } && {
3147 test -z "$ac_cxx_werror_flag" ||
3148 test ! -s conftest.err
3149 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003150 ac_cv_prog_cxx_g=yes
3151else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 CXXFLAGS=""
3156 cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003161/* end confdefs.h. */
3162
3163int
3164main ()
3165{
3166
3167 ;
3168 return 0;
3169}
3170_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003171rm -f conftest.$ac_objext
3172if { (ac_try="$ac_compile"
3173case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_cxx_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3188 :
Benny Prijonoc45d9512010-12-10 11:04:30 +00003189else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003194 CXXFLAGS="-g"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003195 cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h. */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003200/* end confdefs.h. */
3201
3202int
3203main ()
3204{
3205
3206 ;
3207 return 0;
3208}
3209_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003210rm -f conftest.$ac_objext
3211if { (ac_try="$ac_compile"
3212case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215esac
3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>conftest.er1
3218 ac_status=$?
3219 grep -v '^ *+' conftest.er1 >conftest.err
3220 rm -f conftest.er1
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } && {
3224 test -z "$ac_cxx_werror_flag" ||
3225 test ! -s conftest.err
3226 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003227 ac_cv_prog_cxx_g=yes
Sauw Ming6e6c2152010-12-14 13:03:10 +00003228else
3229 echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003233fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003234
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003236fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003237
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003240
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3243fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003244{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3245echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003246if test "$ac_test_CXXFLAGS" = set; then
3247 CXXFLAGS=$ac_save_CXXFLAGS
3248elif test $ac_cv_prog_cxx_g = yes; then
3249 if test "$GXX" = yes; then
3250 CXXFLAGS="-g -O2"
3251 else
3252 CXXFLAGS="-g"
3253 fi
3254else
3255 if test "$GXX" = yes; then
3256 CXXFLAGS="-O2"
3257 else
3258 CXXFLAGS=
3259 fi
3260fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003261ac_ext=c
3262ac_cpp='$CPP $CPPFLAGS'
3263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003267ac_ext=c
3268ac_cpp='$CPP $CPPFLAGS'
3269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003273
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003274if test -z "$CROSS_COMPILE"; then
3275 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3276fi
3277
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003278if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003279
3280if test "$LD" = ""; then LD="$CC"; fi
3281
3282if test "$LDOUT" = ""; then LDOUT="-o"; fi
3283
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003284if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003285
3286if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3287
3288if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3289
3290if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3291
3292if test "$CC_OUT" = ""; then CC_OUT="-o"; fi
3293
3294if test "$CC_INC" = ""; then CC_INC="-I"; fi
3295
3296if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3297
3298if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3299
3300if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3301
3302
3303
3304
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003305
Benny Prijono0822c192008-08-21 20:59:58 +00003306
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003307
3308case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003309 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003310 if pwd -W 2&> /dev/null; then
3311 ac_pjdir=`pwd -W`
3312 else
3313 # We're probably cross-compiling mingw on Linux
3314 ac_pjdir=`pwd`
3315 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003316 ;;
3317 *)
3318 ac_pjdir=`pwd`
3319 ;;
3320esac
Benny Prijono12483112007-03-12 10:44:38 +00003321
3322
Sauw Ming6e6c2152010-12-14 13:03:10 +00003323
3324{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3325echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
3326if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003328else
3329 ac_check_lib_save_LIBS=$LIBS
3330LIBS="-lpthread $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003331cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003336/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003337
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003338/* Override any GCC internal prototype to avoid an error.
3339 Use char because int might match the return type of a GCC
3340 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003341#ifdef __cplusplus
3342extern "C"
3343#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003344char pthread_create ();
3345int
3346main ()
3347{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003348return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003349 ;
3350 return 0;
3351}
3352_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003353rm -f conftest.$ac_objext conftest$ac_exeext
3354if { (ac_try="$ac_link"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_link") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && {
3367 test -z "$ac_c_werror_flag" ||
3368 test ! -s conftest.err
3369 } && test -s conftest$ac_exeext &&
3370 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003371 ac_cv_lib_pthread_pthread_create=yes
3372else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003373 echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003377fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003378
3379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3380 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003381LIBS=$ac_check_lib_save_LIBS
3382fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003383{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3384echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
3385if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003386 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003387#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003388_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003389
3390 LIBS="-lpthread $LIBS"
3391
3392fi
3393
Sauw Ming6e6c2152010-12-14 13:03:10 +00003394
3395{ echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
3396echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; }
3397if test "${ac_cv_lib_wsock32_puts+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003399else
3400 ac_check_lib_save_LIBS=$LIBS
3401LIBS="-lwsock32 $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003402cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003407/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003408
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003409/* Override any GCC internal prototype to avoid an error.
3410 Use char because int might match the return type of a GCC
3411 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003412#ifdef __cplusplus
3413extern "C"
3414#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003415char puts ();
3416int
3417main ()
3418{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003419return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003420 ;
3421 return 0;
3422}
3423_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003424rm -f conftest.$ac_objext conftest$ac_exeext
3425if { (ac_try="$ac_link"
3426case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429esac
3430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_link") 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } && {
3438 test -z "$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3440 } && test -s conftest$ac_exeext &&
3441 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003442 ac_cv_lib_wsock32_puts=yes
3443else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003444 echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003448fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003449
3450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3451 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003452LIBS=$ac_check_lib_save_LIBS
3453fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003454{ echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
3455echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; }
3456if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003457 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003458#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003459_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003460
3461 LIBS="-lwsock32 $LIBS"
3462
3463fi
3464
Sauw Ming6e6c2152010-12-14 13:03:10 +00003465
3466{ echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
3467echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; }
3468if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003470else
3471 ac_check_lib_save_LIBS=$LIBS
3472LIBS="-lws2_32 $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003473cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h. */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003478/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003479
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003480/* Override any GCC internal prototype to avoid an error.
3481 Use char because int might match the return type of a GCC
3482 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003483#ifdef __cplusplus
3484extern "C"
3485#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003486char puts ();
3487int
3488main ()
3489{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003490return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003491 ;
3492 return 0;
3493}
3494_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003495rm -f conftest.$ac_objext conftest$ac_exeext
3496if { (ac_try="$ac_link"
3497case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500esac
3501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_link") 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } && {
3509 test -z "$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 } && test -s conftest$ac_exeext &&
3512 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003513 ac_cv_lib_ws2_32_puts=yes
3514else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003515 echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003519fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003520
3521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3522 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003523LIBS=$ac_check_lib_save_LIBS
3524fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003525{ echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
3526echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; }
3527if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003528 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003529#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003530_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003531
3532 LIBS="-lws2_32 $LIBS"
3533
3534fi
3535
Sauw Ming6e6c2152010-12-14 13:03:10 +00003536
3537{ echo "$as_me:$LINENO: checking for puts in -lole32" >&5
3538echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; }
3539if test "${ac_cv_lib_ole32_puts+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003541else
3542 ac_check_lib_save_LIBS=$LIBS
3543LIBS="-lole32 $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003544cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h. */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003549/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003550
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003551/* Override any GCC internal prototype to avoid an error.
3552 Use char because int might match the return type of a GCC
3553 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003554#ifdef __cplusplus
3555extern "C"
3556#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003557char puts ();
3558int
3559main ()
3560{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003561return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003562 ;
3563 return 0;
3564}
3565_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003566rm -f conftest.$ac_objext conftest$ac_exeext
3567if { (ac_try="$ac_link"
3568case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
3572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_link") 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest$ac_exeext &&
3583 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003584 ac_cv_lib_ole32_puts=yes
3585else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003586 echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003590fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003591
3592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3593 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003594LIBS=$ac_check_lib_save_LIBS
3595fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003596{ echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3597echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; }
3598if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003599 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003600#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003601_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003602
3603 LIBS="-lole32 $LIBS"
3604
3605fi
3606
Sauw Ming6e6c2152010-12-14 13:03:10 +00003607
3608{ echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3609echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; }
3610if test "${ac_cv_lib_winmm_puts+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003612else
3613 ac_check_lib_save_LIBS=$LIBS
3614LIBS="-lwinmm $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003615cat >conftest.$ac_ext <<_ACEOF
3616/* confdefs.h. */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003620/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003621
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003622/* Override any GCC internal prototype to avoid an error.
3623 Use char because int might match the return type of a GCC
3624 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003625#ifdef __cplusplus
3626extern "C"
3627#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003628char puts ();
3629int
3630main ()
3631{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003632return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003633 ;
3634 return 0;
3635}
3636_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003637rm -f conftest.$ac_objext conftest$ac_exeext
3638if { (ac_try="$ac_link"
3639case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642esac
3643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_link") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } && {
3651 test -z "$ac_c_werror_flag" ||
3652 test ! -s conftest.err
3653 } && test -s conftest$ac_exeext &&
3654 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003655 ac_cv_lib_winmm_puts=yes
3656else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003657 echo "$as_me: failed program was:" >&5
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
3660 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003661fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003662
3663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3664 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003665LIBS=$ac_check_lib_save_LIBS
3666fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003667{ echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3668echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; }
3669if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003670 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003671#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003672_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003673
3674 LIBS="-lwinmm $LIBS"
3675
3676fi
3677
Sauw Ming6e6c2152010-12-14 13:03:10 +00003678
3679{ echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3680echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; }
3681if test "${ac_cv_lib_socket_puts+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003683else
3684 ac_check_lib_save_LIBS=$LIBS
3685LIBS="-lsocket $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003686cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h. */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003691/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003692
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003693/* Override any GCC internal prototype to avoid an error.
3694 Use char because int might match the return type of a GCC
3695 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003696#ifdef __cplusplus
3697extern "C"
3698#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003699char puts ();
3700int
3701main ()
3702{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003703return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003704 ;
3705 return 0;
3706}
3707_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003708rm -f conftest.$ac_objext conftest$ac_exeext
3709if { (ac_try="$ac_link"
3710case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713esac
3714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3715 (eval "$ac_link") 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && {
3722 test -z "$ac_c_werror_flag" ||
3723 test ! -s conftest.err
3724 } && test -s conftest$ac_exeext &&
3725 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003726 ac_cv_lib_socket_puts=yes
3727else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003728 echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003732fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003733
3734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3735 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003736LIBS=$ac_check_lib_save_LIBS
3737fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003738{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3739echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; }
3740if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003741 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003742#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003743_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003744
3745 LIBS="-lsocket $LIBS"
3746
3747fi
3748
Sauw Ming6e6c2152010-12-14 13:03:10 +00003749
3750{ echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3751echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; }
3752if test "${ac_cv_lib_rt_puts+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003754else
3755 ac_check_lib_save_LIBS=$LIBS
3756LIBS="-lrt $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003757cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h. */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003762/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003763
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003764/* Override any GCC internal prototype to avoid an error.
3765 Use char because int might match the return type of a GCC
3766 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003767#ifdef __cplusplus
3768extern "C"
3769#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003770char puts ();
3771int
3772main ()
3773{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003774return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775 ;
3776 return 0;
3777}
3778_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003779rm -f conftest.$ac_objext conftest$ac_exeext
3780if { (ac_try="$ac_link"
3781case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784esac
3785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_link") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest$ac_exeext &&
3796 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003797 ac_cv_lib_rt_puts=yes
3798else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003799 echo "$as_me: failed program was:" >&5
3800sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003803fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003804
3805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3806 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003807LIBS=$ac_check_lib_save_LIBS
3808fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003809{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3810echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; }
3811if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003812 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003813#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003814_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003815
3816 LIBS="-lrt $LIBS"
3817
3818fi
3819
Sauw Ming6e6c2152010-12-14 13:03:10 +00003820
3821{ echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3822echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; }
3823if test "${ac_cv_lib_nsl_puts+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003825else
3826 ac_check_lib_save_LIBS=$LIBS
3827LIBS="-lnsl $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003828cat >conftest.$ac_ext <<_ACEOF
3829/* confdefs.h. */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003833/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003834
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003835/* Override any GCC internal prototype to avoid an error.
3836 Use char because int might match the return type of a GCC
3837 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003838#ifdef __cplusplus
3839extern "C"
3840#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003841char puts ();
3842int
3843main ()
3844{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003845return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003846 ;
3847 return 0;
3848}
3849_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003850rm -f conftest.$ac_objext conftest$ac_exeext
3851if { (ac_try="$ac_link"
3852case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_link") 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest$ac_exeext &&
3867 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003868 ac_cv_lib_nsl_puts=yes
3869else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003870 echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003874fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003875
3876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3877 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003878LIBS=$ac_check_lib_save_LIBS
3879fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003880{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3881echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; }
3882if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003883 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003884#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003885_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003886
3887 LIBS="-lnsl $LIBS"
3888
3889fi
3890
Sauw Ming6e6c2152010-12-14 13:03:10 +00003891
3892{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3893echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
3894if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003896else
3897 ac_check_lib_save_LIBS=$LIBS
3898LIBS="-luuid $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003899cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono4e48b512007-05-16 13:41:00 +00003904/* end confdefs.h. */
3905
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003906/* Override any GCC internal prototype to avoid an error.
3907 Use char because int might match the return type of a GCC
3908 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003909#ifdef __cplusplus
3910extern "C"
3911#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003912char uuid_generate ();
3913int
3914main ()
3915{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003916return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003917 ;
3918 return 0;
3919}
3920_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003921rm -f conftest.$ac_objext conftest$ac_exeext
3922if { (ac_try="$ac_link"
3923case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926esac
3927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_link") 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && {
3935 test -z "$ac_c_werror_flag" ||
3936 test ! -s conftest.err
3937 } && test -s conftest$ac_exeext &&
3938 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003939 ac_cv_lib_uuid_uuid_generate=yes
3940else
Sauw Ming6e6c2152010-12-14 13:03:10 +00003941 echo "$as_me: failed program was:" >&5
3942sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003945fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003946
3947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3948 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003949LIBS=$ac_check_lib_save_LIBS
3950fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00003951{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3952echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
3953if test $ac_cv_lib_uuid_uuid_generate = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003954 cat >>confdefs.h <<_ACEOF
3955#define HAVE_LIBUUID 1
3956_ACEOF
3957
3958 LIBS="-luuid $LIBS"
3959
3960fi
3961
Sauw Ming6e6c2152010-12-14 13:03:10 +00003962{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3963echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
3964if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003966else
3967 ac_check_lib_save_LIBS=$LIBS
3968LIBS="-luuid $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00003969cat >conftest.$ac_ext <<_ACEOF
3970/* confdefs.h. */
3971_ACEOF
3972cat confdefs.h >>conftest.$ac_ext
3973cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono4e48b512007-05-16 13:41:00 +00003974/* end confdefs.h. */
3975
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003976/* Override any GCC internal prototype to avoid an error.
3977 Use char because int might match the return type of a GCC
3978 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003979#ifdef __cplusplus
3980extern "C"
3981#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003982char uuid_generate ();
3983int
3984main ()
3985{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003986return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003987 ;
3988 return 0;
3989}
3990_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00003991rm -f conftest.$ac_objext conftest$ac_exeext
3992if { (ac_try="$ac_link"
3993case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996esac
3997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_link") 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest$ac_exeext &&
4008 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00004009 ac_cv_lib_uuid_uuid_generate=yes
4010else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004011 echo "$as_me: failed program was:" >&5
4012sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00004015fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004016
4017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4018 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00004019LIBS=$ac_check_lib_save_LIBS
4020fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004021{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4022echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
4023if test $ac_cv_lib_uuid_uuid_generate = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00004024 ac_has_uuid_lib=1
4025fi
4026
4027
Sauw Ming6e6c2152010-12-14 13:03:10 +00004028{ echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
4029echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004030cat >>confdefs.h <<_ACEOF
4031#define PJ_M_NAME "$target_cpu"
4032_ACEOF
4033
4034
Sauw Ming6e6c2152010-12-14 13:03:10 +00004035{ echo "$as_me:$LINENO: checking memory alignment" >&5
4036echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004037case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00004038 sparc64-* | ia64-* | x86_64-* )
Sauw Ming6e6c2152010-12-14 13:03:10 +00004039 cat >>confdefs.h <<\_ACEOF
4040#define PJ_POOL_ALIGNMENT 8
4041_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00004042
Sauw Ming6e6c2152010-12-14 13:03:10 +00004043 { echo "$as_me:$LINENO: result: 8 bytes" >&5
4044echo "${ECHO_T}8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004045 ;;
4046 * )
Sauw Ming6e6c2152010-12-14 13:03:10 +00004047 cat >>confdefs.h <<\_ACEOF
4048#define PJ_POOL_ALIGNMENT 4
4049_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00004050
Sauw Ming6e6c2152010-12-14 13:03:10 +00004051 { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
4052echo "${ECHO_T}4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004053 ;;
4054esac
4055
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004056
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004057ac_ext=c
4058ac_cpp='$CPP $CPPFLAGS'
4059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061ac_compiler_gnu=$ac_cv_c_compiler_gnu
Sauw Ming6e6c2152010-12-14 13:03:10 +00004062{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4063echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004064# On Suns, sometimes $CPP names a directory.
4065if test -n "$CPP" && test -d "$CPP"; then
4066 CPP=
4067fi
4068if test -z "$CPP"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00004069 if test "${ac_cv_prog_CPP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004071else
4072 # Double quotes because CPP needs to be expanded
4073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4074 do
4075 ac_preproc_ok=false
4076for ac_c_preproc_warn_flag in '' yes
4077do
4078 # Use a header file that comes with gcc, so configuring glibc
4079 # with a fresh cross-compiler works.
4080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4081 # <limits.h> exists even on freestanding compilers.
4082 # On the NeXT, cc -E runs the code through the compiler's parser,
4083 # not just through cpp. "Syntax error" is here to catch this case.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004089/* end confdefs.h. */
4090#ifdef __STDC__
4091# include <limits.h>
4092#else
4093# include <assert.h>
4094#endif
4095 Syntax error
4096_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004097if { (ac_try="$ac_cpp conftest.$ac_ext"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } >/dev/null && {
4110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4111 test ! -s conftest.err
4112 }; then
4113 :
Benny Prijonoc45d9512010-12-10 11:04:30 +00004114else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004115 echo "$as_me: failed program was:" >&5
4116sed 's/^/| /' conftest.$ac_ext >&5
4117
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004118 # Broken: fails on valid input.
4119continue
4120fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004121
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004122rm -f conftest.err conftest.$ac_ext
4123
4124 # OK, works on sane cases. Now check whether nonexistent headers
4125 # can be detected and how.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004126 cat >conftest.$ac_ext <<_ACEOF
4127/* confdefs.h. */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004131/* end confdefs.h. */
4132#include <ac_nonexistent.h>
4133_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004134if { (ac_try="$ac_cpp conftest.$ac_ext"
4135case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } >/dev/null && {
4147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004150 # Broken: success on invalid input.
4151continue
4152else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004153 echo "$as_me: failed program was:" >&5
4154sed 's/^/| /' conftest.$ac_ext >&5
4155
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004156 # Passes both tests.
4157ac_preproc_ok=:
4158break
4159fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004160
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004161rm -f conftest.err conftest.$ac_ext
4162
4163done
4164# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4165rm -f conftest.err conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00004166if $ac_preproc_ok; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004167 break
4168fi
4169
4170 done
4171 ac_cv_prog_CPP=$CPP
4172
4173fi
4174 CPP=$ac_cv_prog_CPP
4175else
4176 ac_cv_prog_CPP=$CPP
4177fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004178{ echo "$as_me:$LINENO: result: $CPP" >&5
4179echo "${ECHO_T}$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004180ac_preproc_ok=false
4181for ac_c_preproc_warn_flag in '' yes
4182do
4183 # Use a header file that comes with gcc, so configuring glibc
4184 # with a fresh cross-compiler works.
4185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186 # <limits.h> exists even on freestanding compilers.
4187 # On the NeXT, cc -E runs the code through the compiler's parser,
4188 # not just through cpp. "Syntax error" is here to catch this case.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004189 cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h. */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004194/* end confdefs.h. */
4195#ifdef __STDC__
4196# include <limits.h>
4197#else
4198# include <assert.h>
4199#endif
4200 Syntax error
4201_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004202if { (ac_try="$ac_cpp conftest.$ac_ext"
4203case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4209 ac_status=$?
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } >/dev/null && {
4215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4216 test ! -s conftest.err
4217 }; then
4218 :
Benny Prijonoc45d9512010-12-10 11:04:30 +00004219else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004220 echo "$as_me: failed program was:" >&5
4221sed 's/^/| /' conftest.$ac_ext >&5
4222
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004223 # Broken: fails on valid input.
4224continue
4225fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004226
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004227rm -f conftest.err conftest.$ac_ext
4228
4229 # OK, works on sane cases. Now check whether nonexistent headers
4230 # can be detected and how.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004231 cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004236/* end confdefs.h. */
4237#include <ac_nonexistent.h>
4238_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004239if { (ac_try="$ac_cpp conftest.$ac_ext"
4240case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null && {
4252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4253 test ! -s conftest.err
4254 }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004255 # Broken: success on invalid input.
4256continue
4257else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004258 echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004261 # Passes both tests.
4262ac_preproc_ok=:
4263break
4264fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004265
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004266rm -f conftest.err conftest.$ac_ext
4267
4268done
4269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270rm -f conftest.err conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00004271if $ac_preproc_ok; then
4272 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004273else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004274 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4275See \`config.log' for more details." >&5
4276echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4277See \`config.log' for more details." >&2;}
4278 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004279fi
4280
4281ac_ext=c
4282ac_cpp='$CPP $CPPFLAGS'
4283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286
4287
Sauw Ming6e6c2152010-12-14 13:03:10 +00004288{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4289echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4290if test "${ac_cv_path_GREP+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004292else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004293 # Extract the first word of "grep ggrep" to use in msg output
4294if test -z "$GREP"; then
4295set dummy grep ggrep; ac_prog_name=$2
4296if test "${ac_cv_path_GREP+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004299 ac_path_GREP_found=false
Sauw Ming6e6c2152010-12-14 13:03:10 +00004300# Loop through the user's path and test for each of PROGNAME-LIST
4301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004306 for ac_prog in grep ggrep; do
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4310 # Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004311 # Check for GNU $ac_path_GREP
4312case `"$ac_path_GREP" --version 2>&1` in
4313*GNU*)
4314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4315*)
4316 ac_count=0
Sauw Ming6e6c2152010-12-14 13:03:10 +00004317 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004318 while :
4319 do
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
Sauw Ming6e6c2152010-12-14 13:03:10 +00004323 echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Sauw Ming6e6c2152010-12-14 13:03:10 +00004326 ac_count=`expr $ac_count + 1`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_GREP="$ac_path_GREP"
4330 ac_path_GREP_max=$ac_count
4331 fi
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4334 done
4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336esac
4337
Sauw Ming6e6c2152010-12-14 13:03:10 +00004338
4339 $ac_path_GREP_found && break 3
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004340 done
Sauw Ming6e6c2152010-12-14 13:03:10 +00004341done
4342
4343done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004344IFS=$as_save_IFS
Sauw Ming6e6c2152010-12-14 13:03:10 +00004345
4346
4347fi
4348
4349GREP="$ac_cv_path_GREP"
4350if test -z "$GREP"; then
4351 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4352echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4353 { (exit 1); exit 1; }; }
4354fi
4355
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004356else
4357 ac_cv_path_GREP=$GREP
4358fi
4359
Sauw Ming6e6c2152010-12-14 13:03:10 +00004360
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004361fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004362{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4363echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004364 GREP="$ac_cv_path_GREP"
4365
4366
Sauw Ming6e6c2152010-12-14 13:03:10 +00004367{ echo "$as_me:$LINENO: checking for egrep" >&5
4368echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4369if test "${ac_cv_path_EGREP+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004371else
4372 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4373 then ac_cv_path_EGREP="$GREP -E"
4374 else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004375 # Extract the first word of "egrep" to use in msg output
4376if test -z "$EGREP"; then
4377set dummy egrep; ac_prog_name=$2
4378if test "${ac_cv_path_EGREP+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004381 ac_path_EGREP_found=false
Sauw Ming6e6c2152010-12-14 13:03:10 +00004382# Loop through the user's path and test for each of PROGNAME-LIST
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004388 for ac_prog in egrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4391 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4392 # Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004393 # Check for GNU $ac_path_EGREP
4394case `"$ac_path_EGREP" --version 2>&1` in
4395*GNU*)
4396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4397*)
4398 ac_count=0
Sauw Ming6e6c2152010-12-14 13:03:10 +00004399 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004400 while :
4401 do
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
Sauw Ming6e6c2152010-12-14 13:03:10 +00004405 echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Sauw Ming6e6c2152010-12-14 13:03:10 +00004408 ac_count=`expr $ac_count + 1`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_EGREP="$ac_path_EGREP"
4412 ac_path_EGREP_max=$ac_count
4413 fi
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418esac
4419
Sauw Ming6e6c2152010-12-14 13:03:10 +00004420
4421 $ac_path_EGREP_found && break 3
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004422 done
Sauw Ming6e6c2152010-12-14 13:03:10 +00004423done
4424
4425done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004426IFS=$as_save_IFS
Sauw Ming6e6c2152010-12-14 13:03:10 +00004427
4428
4429fi
4430
4431EGREP="$ac_cv_path_EGREP"
4432if test -z "$EGREP"; then
4433 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4434echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4435 { (exit 1); exit 1; }; }
4436fi
4437
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004438else
4439 ac_cv_path_EGREP=$EGREP
4440fi
4441
Sauw Ming6e6c2152010-12-14 13:03:10 +00004442
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004443 fi
4444fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004445{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4446echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004447 EGREP="$ac_cv_path_EGREP"
4448
4449
Sauw Ming6e6c2152010-12-14 13:03:10 +00004450{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4451echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4452if test "${ac_cv_header_stdc+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004454else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004455 cat >conftest.$ac_ext <<_ACEOF
4456/* confdefs.h. */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004460/* end confdefs.h. */
4461#include <stdlib.h>
4462#include <stdarg.h>
4463#include <string.h>
4464#include <float.h>
4465
4466int
4467main ()
4468{
4469
4470 ;
4471 return 0;
4472}
4473_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004474rm -f conftest.$ac_objext
4475if { (ac_try="$ac_compile"
4476case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479esac
4480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4482 ac_status=$?
4483 grep -v '^ *+' conftest.er1 >conftest.err
4484 rm -f conftest.er1
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && {
4488 test -z "$ac_c_werror_flag" ||
4489 test ! -s conftest.err
4490 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004491 ac_cv_header_stdc=yes
4492else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004493 echo "$as_me: failed program was:" >&5
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004497fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004498
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500
4501if test $ac_cv_header_stdc = yes; then
4502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004503 cat >conftest.$ac_ext <<_ACEOF
4504/* confdefs.h. */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004508/* end confdefs.h. */
4509#include <string.h>
4510
4511_ACEOF
4512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sauw Ming6e6c2152010-12-14 13:03:10 +00004513 $EGREP "memchr" >/dev/null 2>&1; then
4514 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004515else
4516 ac_cv_header_stdc=no
4517fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004518rm -f -r conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004519
4520fi
4521
4522if test $ac_cv_header_stdc = yes; then
4523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004524 cat >conftest.$ac_ext <<_ACEOF
4525/* confdefs.h. */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004529/* end confdefs.h. */
4530#include <stdlib.h>
4531
4532_ACEOF
4533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sauw Ming6e6c2152010-12-14 13:03:10 +00004534 $EGREP "free" >/dev/null 2>&1; then
4535 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004536else
4537 ac_cv_header_stdc=no
4538fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004539rm -f -r conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004540
4541fi
4542
4543if test $ac_cv_header_stdc = yes; then
4544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004545 if test "$cross_compiling" = yes; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004546 :
4547else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004548 cat >conftest.$ac_ext <<_ACEOF
4549/* confdefs.h. */
4550_ACEOF
4551cat confdefs.h >>conftest.$ac_ext
4552cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004553/* end confdefs.h. */
4554#include <ctype.h>
4555#include <stdlib.h>
4556#if ((' ' & 0x0FF) == 0x020)
4557# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4558# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4559#else
4560# define ISLOWER(c) \
4561 (('a' <= (c) && (c) <= 'i') \
4562 || ('j' <= (c) && (c) <= 'r') \
4563 || ('s' <= (c) && (c) <= 'z'))
4564# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4565#endif
4566
4567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4568int
4569main ()
4570{
4571 int i;
4572 for (i = 0; i < 256; i++)
4573 if (XOR (islower (i), ISLOWER (i))
4574 || toupper (i) != TOUPPER (i))
4575 return 2;
4576 return 0;
4577}
4578_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004579rm -f conftest$ac_exeext
4580if { (ac_try="$ac_link"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_link") 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4590 { (case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_try") 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004600else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004601 echo "$as_me: program exited with status $ac_status" >&5
4602echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605( exit $ac_status )
4606ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004607fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004609fi
4610
Sauw Ming6e6c2152010-12-14 13:03:10 +00004611
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004612fi
4613fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004614{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4615echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004616if test $ac_cv_header_stdc = yes; then
4617
Sauw Ming6e6c2152010-12-14 13:03:10 +00004618cat >>confdefs.h <<\_ACEOF
4619#define STDC_HEADERS 1
4620_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004621
4622fi
4623
4624# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004625
4626
4627
4628
4629
4630
4631
4632
4633
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004634for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4635 inttypes.h stdint.h unistd.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004636do
4637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643 cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h. */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h. */
4649$ac_includes_default
4650
4651#include <$ac_header>
4652_ACEOF
4653rm -f conftest.$ac_objext
4654if { (ac_try="$ac_compile"
4655case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658esac
4659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_compile") 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 } && test -s conftest.$ac_objext; then
4670 eval "$as_ac_Header=yes"
4671else
4672 echo "$as_me: failed program was:" >&5
4673sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 eval "$as_ac_Header=no"
4676fi
4677
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679fi
4680ac_res=`eval echo '${'$as_ac_Header'}'`
4681 { echo "$as_me:$LINENO: result: $ac_res" >&5
4682echo "${ECHO_T}$ac_res" >&6; }
4683if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004684 cat >>confdefs.h <<_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004686_ACEOF
4687
4688fi
4689
4690done
4691
4692
Sauw Ming6e6c2152010-12-14 13:03:10 +00004693{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4694echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4695if test "${ac_cv_c_bigendian+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004697else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004698 # See if sys/param.h defines the BYTE_ORDER macro.
4699cat >conftest.$ac_ext <<_ACEOF
4700/* confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00004701_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004702cat confdefs.h >>conftest.$ac_ext
4703cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004704/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004705#include <sys/types.h>
Sauw Ming6e6c2152010-12-14 13:03:10 +00004706#include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004707
4708int
4709main ()
4710{
Sauw Ming6e6c2152010-12-14 13:03:10 +00004711#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4712 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4713 bogus endian macros
4714#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004715
4716 ;
4717 return 0;
4718}
4719_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004720rm -f conftest.$ac_objext
4721if { (ac_try="$ac_compile"
4722case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725esac
4726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_compile") 2>conftest.er1
4728 ac_status=$?
4729 grep -v '^ *+' conftest.er1 >conftest.err
4730 rm -f conftest.er1
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } && {
4734 test -z "$ac_c_werror_flag" ||
4735 test ! -s conftest.err
4736 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004737 # It does; now see whether it defined to BIG_ENDIAN or not.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004738cat >conftest.$ac_ext <<_ACEOF
4739/* confdefs.h. */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004743/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004744#include <sys/types.h>
Sauw Ming6e6c2152010-12-14 13:03:10 +00004745#include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004746
4747int
4748main ()
4749{
4750#if BYTE_ORDER != BIG_ENDIAN
Sauw Ming6e6c2152010-12-14 13:03:10 +00004751 not big endian
4752#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004753
4754 ;
4755 return 0;
4756}
4757_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004758rm -f conftest.$ac_objext
4759if { (ac_try="$ac_compile"
4760case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4763esac
4764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_compile") 2>conftest.er1
4766 ac_status=$?
4767 grep -v '^ *+' conftest.er1 >conftest.err
4768 rm -f conftest.er1
4769 cat conftest.err >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } && {
4772 test -z "$ac_c_werror_flag" ||
4773 test ! -s conftest.err
4774 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004775 ac_cv_c_bigendian=yes
4776else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004777 echo "$as_me: failed program was:" >&5
4778sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc45d9512010-12-10 11:04:30 +00004779
Sauw Ming6e6c2152010-12-14 13:03:10 +00004780 ac_cv_c_bigendian=no
4781fi
4782
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784else
4785 echo "$as_me: failed program was:" >&5
4786sed 's/^/| /' conftest.$ac_ext >&5
4787
4788 # It does not; compile a test program.
4789if test "$cross_compiling" = yes; then
4790 # try to guess the endianness by grepping values into an object file
4791 ac_cv_c_bigendian=unknown
4792 cat >conftest.$ac_ext <<_ACEOF
4793/* confdefs.h. */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h. */
4798short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4799short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4800void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4801short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4802short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4803void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004804int
4805main ()
4806{
Sauw Ming6e6c2152010-12-14 13:03:10 +00004807 _ascii (); _ebcdic ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004808 ;
4809 return 0;
4810}
4811_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004812rm -f conftest.$ac_objext
4813if { (ac_try="$ac_compile"
4814case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817esac
4818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_compile") 2>conftest.er1
4820 ac_status=$?
4821 grep -v '^ *+' conftest.er1 >conftest.err
4822 rm -f conftest.er1
4823 cat conftest.err >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } && {
4826 test -z "$ac_c_werror_flag" ||
4827 test ! -s conftest.err
4828 } && test -s conftest.$ac_objext; then
4829 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004830 ac_cv_c_bigendian=yes
Sauw Ming6e6c2152010-12-14 13:03:10 +00004831fi
4832if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4833 if test "$ac_cv_c_bigendian" = unknown; then
4834 ac_cv_c_bigendian=no
4835 else
4836 # finding both strings is unlikely to happen, but who knows?
4837 ac_cv_c_bigendian=unknown
4838 fi
4839fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004840else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004841 echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
Sauw Mingbe3771a2010-08-27 06:46:29 +00004843
Sauw Ming6e6c2152010-12-14 13:03:10 +00004844
Benny Prijonoc45d9512010-12-10 11:04:30 +00004845fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004846
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004848else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004849 cat >conftest.$ac_ext <<_ACEOF
4850/* confdefs.h. */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004854/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004855$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004856int
4857main ()
4858{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004859
Sauw Ming6e6c2152010-12-14 13:03:10 +00004860 /* Are we little or big endian? From Harbison&Steele. */
4861 union
4862 {
4863 long int l;
4864 char c[sizeof (long int)];
4865 } u;
4866 u.l = 1;
4867 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004868
4869 ;
4870 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004871}
4872_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00004873rm -f conftest$ac_exeext
4874if { (ac_try="$ac_link"
4875case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878esac
4879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_link") 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4884 { (case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887esac
4888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_try") 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004893 ac_cv_c_bigendian=no
4894else
Sauw Ming6e6c2152010-12-14 13:03:10 +00004895 echo "$as_me: program exited with status $ac_status" >&5
4896echo "$as_me: failed program was:" >&5
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
4899( exit $ac_status )
4900ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004901fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004903fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004904
Sauw Ming6e6c2152010-12-14 13:03:10 +00004905
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004906fi
Benny Prijonod5233702010-01-13 13:09:45 +00004907
Sauw Ming6e6c2152010-12-14 13:03:10 +00004908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909fi
4910{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4911echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4912case $ac_cv_c_bigendian in
4913 yes)
Benny Prijonod5233702010-01-13 13:09:45 +00004914
Sauw Ming6e6c2152010-12-14 13:03:10 +00004915cat >>confdefs.h <<\_ACEOF
4916#define WORDS_BIGENDIAN 1
4917_ACEOF
4918 ;;
4919 no)
4920 ;;
4921 *)
4922 { { echo "$as_me:$LINENO: error: unknown endianness
4923presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4924echo "$as_me: error: unknown endianness
4925presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4927esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004928
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004929
4930case $target in
4931 *mingw* | *cygw* | *win32* | *w32* )
Sauw Ming6e6c2152010-12-14 13:03:10 +00004932 cat >>confdefs.h <<\_ACEOF
4933#define PJ_WIN32 1
4934_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004935
Sauw Ming6e6c2152010-12-14 13:03:10 +00004936 cat >>confdefs.h <<\_ACEOF
4937#define PJ_WIN32_WINNT 0x0400
4938_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004939
Sauw Ming6e6c2152010-12-14 13:03:10 +00004940 cat >>confdefs.h <<\_ACEOF
4941#define WIN32_LEAN_AND_MEAN 1
4942_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004943
4944 ;;
4945 *darwin*)
Sauw Ming6e6c2152010-12-14 13:03:10 +00004946 cat >>confdefs.h <<\_ACEOF
4947#define PJ_DARWINOS 1
4948_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004949
4950 ;;
4951 *linux*)
Sauw Ming6e6c2152010-12-14 13:03:10 +00004952 cat >>confdefs.h <<\_ACEOF
4953#define PJ_LINUX 1
4954_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004955
4956 ;;
4957 *rtems*)
Sauw Ming6e6c2152010-12-14 13:03:10 +00004958 cat >>confdefs.h <<\_ACEOF
4959#define PJ_RTEMS 1
4960_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004961
4962 ;;
4963 *sunos* | *solaris* )
Sauw Ming6e6c2152010-12-14 13:03:10 +00004964 cat >>confdefs.h <<\_ACEOF
4965#define PJ_SUNOS 1
4966_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004967
4968 ;;
4969 *)
4970 ;;
4971esac
4972
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004973
4974
4975
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004976# Check whether --enable-floating-point was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +00004977if test "${enable_floating_point+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004978 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +00004979 cat >>confdefs.h <<\_ACEOF
4980#define PJ_HAS_FLOATING_POINT 0
4981_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004982
Sauw Ming6e6c2152010-12-14 13:03:10 +00004983 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
4984echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004985 fi
4986else
4987
Sauw Ming6e6c2152010-12-14 13:03:10 +00004988 cat >>confdefs.h <<\_ACEOF
4989#define PJ_HAS_FLOATING_POINT 1
4990_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004991
Sauw Ming6e6c2152010-12-14 13:03:10 +00004992 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
4993echo "${ECHO_T}Checking if floating point is disabled... no" >&6; }
4994
4995{ echo "$as_me:$LINENO: checking for fmod in -lm" >&5
4996echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
4997if test "${ac_cv_lib_m_fmod+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004999else
5000 ac_check_lib_save_LIBS=$LIBS
5001LIBS="-lm $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +00005002cat >conftest.$ac_ext <<_ACEOF
5003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005007/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005008
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005009/* Override any GCC internal prototype to avoid an error.
5010 Use char because int might match the return type of a GCC
5011 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005012#ifdef __cplusplus
5013extern "C"
5014#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005015char fmod ();
5016int
5017main ()
5018{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005019return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005020 ;
5021 return 0;
5022}
5023_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00005024rm -f conftest.$ac_objext conftest$ac_exeext
5025if { (ac_try="$ac_link"
5026case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029esac
5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_link") 2>conftest.er1
5032 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && {
5038 test -z "$ac_c_werror_flag" ||
5039 test ! -s conftest.err
5040 } && test -s conftest$ac_exeext &&
5041 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005042 ac_cv_lib_m_fmod=yes
5043else
Sauw Ming6e6c2152010-12-14 13:03:10 +00005044 echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005048fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00005049
5050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5051 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005052LIBS=$ac_check_lib_save_LIBS
5053fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00005054{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
5055echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
5056if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005057 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005058#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005059_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005060
5061 LIBS="-lm $LIBS"
5062
5063fi
5064
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005065
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005066fi
5067
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005068
5069
Sauw Ming6e6c2152010-12-14 13:03:10 +00005070if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5071 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5072echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
5073if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075fi
5076{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5077echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
5078else
5079 # Is the header compilable?
5080{ echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
5081echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
5082cat >conftest.$ac_ext <<_ACEOF
5083/* confdefs.h. */
5084_ACEOF
5085cat confdefs.h >>conftest.$ac_ext
5086cat >>conftest.$ac_ext <<_ACEOF
5087/* end confdefs.h. */
5088$ac_includes_default
5089#include <arpa/inet.h>
5090_ACEOF
5091rm -f conftest.$ac_objext
5092if { (ac_try="$ac_compile"
5093case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096esac
5097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 ac_header_compiler=yes
5109else
5110 echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 ac_header_compiler=no
5114fi
5115
5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118echo "${ECHO_T}$ac_header_compiler" >&6; }
5119
5120# Is the header present?
5121{ echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
5122echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
5123cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129#include <arpa/inet.h>
5130_ACEOF
5131if { (ac_try="$ac_cpp conftest.$ac_ext"
5132case "(($ac_try" in
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5135esac
5136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } >/dev/null && {
5144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5145 test ! -s conftest.err
5146 }; then
5147 ac_header_preproc=yes
5148else
5149 echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 ac_header_preproc=no
5153fi
5154
5155rm -f conftest.err conftest.$ac_ext
5156{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5157echo "${ECHO_T}$ac_header_preproc" >&6; }
5158
5159# So? What about this header?
5160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5161 yes:no: )
5162 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
5163echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
5165echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
5166 ac_header_preproc=yes
5167 ;;
5168 no:yes:* )
5169 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
5170echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
5172echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
5174echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
5176echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
5178echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
5180echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
5181
5182 ;;
5183esac
5184{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5185echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
5186if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 ac_cv_header_arpa_inet_h=$ac_header_preproc
5190fi
5191{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5192echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
5193
5194fi
5195if test $ac_cv_header_arpa_inet_h = yes; then
5196 cat >>confdefs.h <<\_ACEOF
5197#define PJ_HAS_ARPA_INET_H 1
5198_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005199
5200fi
5201
5202
Sauw Ming6e6c2152010-12-14 13:03:10 +00005203if test "${ac_cv_header_assert_h+set}" = set; then
5204 { echo "$as_me:$LINENO: checking for assert.h" >&5
5205echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
5206if test "${ac_cv_header_assert_h+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208fi
5209{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5210echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
5211else
5212 # Is the header compilable?
5213{ echo "$as_me:$LINENO: checking assert.h usability" >&5
5214echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
5215cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h. */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h. */
5221$ac_includes_default
5222#include <assert.h>
5223_ACEOF
5224rm -f conftest.$ac_objext
5225if { (ac_try="$ac_compile"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest.$ac_objext; then
5241 ac_header_compiler=yes
5242else
5243 echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246 ac_header_compiler=no
5247fi
5248
5249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5251echo "${ECHO_T}$ac_header_compiler" >&6; }
5252
5253# Is the header present?
5254{ echo "$as_me:$LINENO: checking assert.h presence" >&5
5255echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
5256cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h. */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h. */
5262#include <assert.h>
5263_ACEOF
5264if { (ac_try="$ac_cpp conftest.$ac_ext"
5265case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } >/dev/null && {
5277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 }; then
5280 ac_header_preproc=yes
5281else
5282 echo "$as_me: failed program was:" >&5
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 ac_header_preproc=no
5286fi
5287
5288rm -f conftest.err conftest.$ac_ext
5289{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290echo "${ECHO_T}$ac_header_preproc" >&6; }
5291
5292# So? What about this header?
5293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5294 yes:no: )
5295 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
5296echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
5298echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
5299 ac_header_preproc=yes
5300 ;;
5301 no:yes:* )
5302 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
5303echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
5304 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
5305echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
5306 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
5307echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
5309echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
5311echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
5312 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
5313echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
5314
5315 ;;
5316esac
5317{ echo "$as_me:$LINENO: checking for assert.h" >&5
5318echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
5319if test "${ac_cv_header_assert_h+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
5322 ac_cv_header_assert_h=$ac_header_preproc
5323fi
5324{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5325echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
5326
5327fi
5328if test $ac_cv_header_assert_h = yes; then
5329 cat >>confdefs.h <<\_ACEOF
5330#define PJ_HAS_ASSERT_H 1
5331_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005332
5333fi
5334
5335
Sauw Ming6e6c2152010-12-14 13:03:10 +00005336if test "${ac_cv_header_ctype_h+set}" = set; then
5337 { echo "$as_me:$LINENO: checking for ctype.h" >&5
5338echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
5339if test "${ac_cv_header_ctype_h+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341fi
5342{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5343echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
5344else
5345 # Is the header compilable?
5346{ echo "$as_me:$LINENO: checking ctype.h usability" >&5
5347echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; }
5348cat >conftest.$ac_ext <<_ACEOF
5349/* confdefs.h. */
5350_ACEOF
5351cat confdefs.h >>conftest.$ac_ext
5352cat >>conftest.$ac_ext <<_ACEOF
5353/* end confdefs.h. */
5354$ac_includes_default
5355#include <ctype.h>
5356_ACEOF
5357rm -f conftest.$ac_objext
5358if { (ac_try="$ac_compile"
5359case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362esac
5363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_compile") 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } && {
5371 test -z "$ac_c_werror_flag" ||
5372 test ! -s conftest.err
5373 } && test -s conftest.$ac_objext; then
5374 ac_header_compiler=yes
5375else
5376 echo "$as_me: failed program was:" >&5
5377sed 's/^/| /' conftest.$ac_ext >&5
5378
5379 ac_header_compiler=no
5380fi
5381
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5384echo "${ECHO_T}$ac_header_compiler" >&6; }
5385
5386# Is the header present?
5387{ echo "$as_me:$LINENO: checking ctype.h presence" >&5
5388echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; }
5389cat >conftest.$ac_ext <<_ACEOF
5390/* confdefs.h. */
5391_ACEOF
5392cat confdefs.h >>conftest.$ac_ext
5393cat >>conftest.$ac_ext <<_ACEOF
5394/* end confdefs.h. */
5395#include <ctype.h>
5396_ACEOF
5397if { (ac_try="$ac_cpp conftest.$ac_ext"
5398case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401esac
5402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } >/dev/null && {
5410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5411 test ! -s conftest.err
5412 }; then
5413 ac_header_preproc=yes
5414else
5415 echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 ac_header_preproc=no
5419fi
5420
5421rm -f conftest.err conftest.$ac_ext
5422{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5423echo "${ECHO_T}$ac_header_preproc" >&6; }
5424
5425# So? What about this header?
5426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5427 yes:no: )
5428 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
5429echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5430 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
5431echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
5432 ac_header_preproc=yes
5433 ;;
5434 no:yes:* )
5435 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
5436echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
5438echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
5440echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
5442echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
5444echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
5446echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
5447
5448 ;;
5449esac
5450{ echo "$as_me:$LINENO: checking for ctype.h" >&5
5451echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
5452if test "${ac_cv_header_ctype_h+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455 ac_cv_header_ctype_h=$ac_header_preproc
5456fi
5457{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5458echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
5459
5460fi
5461if test $ac_cv_header_ctype_h = yes; then
5462 cat >>confdefs.h <<\_ACEOF
5463#define PJ_HAS_CTYPE_H 1
5464_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005465
5466fi
5467
5468
5469
5470case $target in
5471 *mingw* | *cygw* | *win32* | *w32* )
Sauw Ming6e6c2152010-12-14 13:03:10 +00005472 cat >>confdefs.h <<\_ACEOF
5473#define PJ_HAS_ERRNO_H 0
5474_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005475
5476 ;;
5477 *)
Sauw Ming6e6c2152010-12-14 13:03:10 +00005478 if test "${ac_cv_header_errno_h+set}" = set; then
5479 { echo "$as_me:$LINENO: checking for errno.h" >&5
5480echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5481if test "${ac_cv_header_errno_h+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483fi
5484{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5485echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5486else
5487 # Is the header compilable?
5488{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5489echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
5490cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h. */
5496$ac_includes_default
5497#include <errno.h>
5498_ACEOF
5499rm -f conftest.$ac_objext
5500if { (ac_try="$ac_compile"
5501case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504esac
5505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_c_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5516 ac_header_compiler=yes
5517else
5518 echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521 ac_header_compiler=no
5522fi
5523
5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5526echo "${ECHO_T}$ac_header_compiler" >&6; }
5527
5528# Is the header present?
5529{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5530echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
5531cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h. */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
5537#include <errno.h>
5538_ACEOF
5539if { (ac_try="$ac_cpp conftest.$ac_ext"
5540case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543esac
5544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } >/dev/null && {
5552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 }; then
5555 ac_header_preproc=yes
5556else
5557 echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 ac_header_preproc=no
5561fi
5562
5563rm -f conftest.err conftest.$ac_ext
5564{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5565echo "${ECHO_T}$ac_header_preproc" >&6; }
5566
5567# So? What about this header?
5568case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5569 yes:no: )
5570 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5571echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5573echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5574 ac_header_preproc=yes
5575 ;;
5576 no:yes:* )
5577 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5578echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5579 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
5580echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
5581 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5582echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5583 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
5584echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
5585 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5586echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5588echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
5589
5590 ;;
5591esac
5592{ echo "$as_me:$LINENO: checking for errno.h" >&5
5593echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5594if test "${ac_cv_header_errno_h+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 ac_cv_header_errno_h=$ac_header_preproc
5598fi
5599{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5600echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5601
5602fi
5603if test $ac_cv_header_errno_h = yes; then
5604 cat >>confdefs.h <<\_ACEOF
5605#define PJ_HAS_ERRNO_H 1
5606_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005607
5608fi
5609
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005610
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005611 ;;
5612esac
5613
Sauw Ming6e6c2152010-12-14 13:03:10 +00005614if test "${ac_cv_header_fcntl_h+set}" = set; then
5615 { echo "$as_me:$LINENO: checking for fcntl.h" >&5
5616echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5617if test "${ac_cv_header_fcntl_h+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619fi
5620{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5621echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5622else
5623 # Is the header compilable?
5624{ echo "$as_me:$LINENO: checking fcntl.h usability" >&5
5625echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; }
5626cat >conftest.$ac_ext <<_ACEOF
5627/* confdefs.h. */
5628_ACEOF
5629cat confdefs.h >>conftest.$ac_ext
5630cat >>conftest.$ac_ext <<_ACEOF
5631/* end confdefs.h. */
5632$ac_includes_default
5633#include <fcntl.h>
5634_ACEOF
5635rm -f conftest.$ac_objext
5636if { (ac_try="$ac_compile"
5637case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640esac
5641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642 (eval "$ac_compile") 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && {
5649 test -z "$ac_c_werror_flag" ||
5650 test ! -s conftest.err
5651 } && test -s conftest.$ac_objext; then
5652 ac_header_compiler=yes
5653else
5654 echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
5657 ac_header_compiler=no
5658fi
5659
5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5662echo "${ECHO_T}$ac_header_compiler" >&6; }
5663
5664# Is the header present?
5665{ echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5666echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; }
5667cat >conftest.$ac_ext <<_ACEOF
5668/* confdefs.h. */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h. */
5673#include <fcntl.h>
5674_ACEOF
5675if { (ac_try="$ac_cpp conftest.$ac_ext"
5676case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } >/dev/null && {
5688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 }; then
5691 ac_header_preproc=yes
5692else
5693 echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
5696 ac_header_preproc=no
5697fi
5698
5699rm -f conftest.err conftest.$ac_ext
5700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5701echo "${ECHO_T}$ac_header_preproc" >&6; }
5702
5703# So? What about this header?
5704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5705 yes:no: )
5706 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5707echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5709echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5710 ac_header_preproc=yes
5711 ;;
5712 no:yes:* )
5713 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5714echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5715 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5716echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5717 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5718echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5719 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5720echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5721 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5722echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5724echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
5725
5726 ;;
5727esac
5728{ echo "$as_me:$LINENO: checking for fcntl.h" >&5
5729echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5730if test "${ac_cv_header_fcntl_h+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732else
5733 ac_cv_header_fcntl_h=$ac_header_preproc
5734fi
5735{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5736echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5737
5738fi
5739if test $ac_cv_header_fcntl_h = yes; then
5740 cat >>confdefs.h <<\_ACEOF
5741#define PJ_HAS_FCNTL_H 1
5742_ACEOF
Benny Prijono1d481ab2008-01-24 15:27:30 +00005743
5744fi
5745
5746
Sauw Ming6e6c2152010-12-14 13:03:10 +00005747if test "${ac_cv_header_linux_socket_h+set}" = set; then
5748 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5749echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
5750if test "${ac_cv_header_linux_socket_h+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752fi
5753{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5754echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
5755else
5756 # Is the header compilable?
5757{ echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5758echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; }
5759cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h. */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h. */
5765$ac_includes_default
5766#include <linux/socket.h>
5767_ACEOF
5768rm -f conftest.$ac_objext
5769if { (ac_try="$ac_compile"
5770case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773esac
5774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest.$ac_objext; then
5785 ac_header_compiler=yes
5786else
5787 echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_header_compiler=no
5791fi
5792
5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5795echo "${ECHO_T}$ac_header_compiler" >&6; }
5796
5797# Is the header present?
5798{ echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5799echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; }
5800cat >conftest.$ac_ext <<_ACEOF
5801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
5806#include <linux/socket.h>
5807_ACEOF
5808if { (ac_try="$ac_cpp conftest.$ac_ext"
5809case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } >/dev/null && {
5821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 }; then
5824 ac_header_preproc=yes
5825else
5826 echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 ac_header_preproc=no
5830fi
5831
5832rm -f conftest.err conftest.$ac_ext
5833{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5834echo "${ECHO_T}$ac_header_preproc" >&6; }
5835
5836# So? What about this header?
5837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5838 yes:no: )
5839 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5840echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5841 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5842echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5843 ac_header_preproc=yes
5844 ;;
5845 no:yes:* )
5846 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5847echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5848 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5849echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5850 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5851echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5853echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5855echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5856 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5857echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
5858
5859 ;;
5860esac
5861{ echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5862echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
5863if test "${ac_cv_header_linux_socket_h+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866 ac_cv_header_linux_socket_h=$ac_header_preproc
5867fi
5868{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5869echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
5870
5871fi
5872if test $ac_cv_header_linux_socket_h = yes; then
5873 cat >>confdefs.h <<\_ACEOF
5874#define PJ_HAS_LINUX_SOCKET_H 1
5875_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005876
5877fi
5878
5879
Sauw Ming6e6c2152010-12-14 13:03:10 +00005880if test "${ac_cv_header_malloc_h+set}" = set; then
5881 { echo "$as_me:$LINENO: checking for malloc.h" >&5
5882echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
5883if test "${ac_cv_header_malloc_h+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885fi
5886{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5887echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
5888else
5889 # Is the header compilable?
5890{ echo "$as_me:$LINENO: checking malloc.h usability" >&5
5891echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
5892cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
5898$ac_includes_default
5899#include <malloc.h>
5900_ACEOF
5901rm -f conftest.$ac_objext
5902if { (ac_try="$ac_compile"
5903case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906esac
5907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.$ac_objext; then
5918 ac_header_compiler=yes
5919else
5920 echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_header_compiler=no
5924fi
5925
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5928echo "${ECHO_T}$ac_header_compiler" >&6; }
5929
5930# Is the header present?
5931{ echo "$as_me:$LINENO: checking malloc.h presence" >&5
5932echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
5933cat >conftest.$ac_ext <<_ACEOF
5934/* confdefs.h. */
5935_ACEOF
5936cat confdefs.h >>conftest.$ac_ext
5937cat >>conftest.$ac_ext <<_ACEOF
5938/* end confdefs.h. */
5939#include <malloc.h>
5940_ACEOF
5941if { (ac_try="$ac_cpp conftest.$ac_ext"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null && {
5954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 }; then
5957 ac_header_preproc=yes
5958else
5959 echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962 ac_header_preproc=no
5963fi
5964
5965rm -f conftest.err conftest.$ac_ext
5966{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5967echo "${ECHO_T}$ac_header_preproc" >&6; }
5968
5969# So? What about this header?
5970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5971 yes:no: )
5972 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5973echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5975echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5976 ac_header_preproc=yes
5977 ;;
5978 no:yes:* )
5979 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5980echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5982echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5984echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5986echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5988echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5990echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5991
5992 ;;
5993esac
5994{ echo "$as_me:$LINENO: checking for malloc.h" >&5
5995echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
5996if test "${ac_cv_header_malloc_h+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999 ac_cv_header_malloc_h=$ac_header_preproc
6000fi
6001{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
6002echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
6003
6004fi
6005if test $ac_cv_header_malloc_h = yes; then
6006 cat >>confdefs.h <<\_ACEOF
6007#define PJ_HAS_MALLOC_H 1
6008_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006009
6010fi
6011
6012
Sauw Ming6e6c2152010-12-14 13:03:10 +00006013if test "${ac_cv_header_netdb_h+set}" = set; then
6014 { echo "$as_me:$LINENO: checking for netdb.h" >&5
6015echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
6016if test "${ac_cv_header_netdb_h+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018fi
6019{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6020echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
6021else
6022 # Is the header compilable?
6023{ echo "$as_me:$LINENO: checking netdb.h usability" >&5
6024echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; }
6025cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h. */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h. */
6031$ac_includes_default
6032#include <netdb.h>
6033_ACEOF
6034rm -f conftest.$ac_objext
6035if { (ac_try="$ac_compile"
6036case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039esac
6040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 (eval "$ac_compile") 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } && {
6048 test -z "$ac_c_werror_flag" ||
6049 test ! -s conftest.err
6050 } && test -s conftest.$ac_objext; then
6051 ac_header_compiler=yes
6052else
6053 echo "$as_me: failed program was:" >&5
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
6056 ac_header_compiler=no
6057fi
6058
6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6061echo "${ECHO_T}$ac_header_compiler" >&6; }
6062
6063# Is the header present?
6064{ echo "$as_me:$LINENO: checking netdb.h presence" >&5
6065echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; }
6066cat >conftest.$ac_ext <<_ACEOF
6067/* confdefs.h. */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h. */
6072#include <netdb.h>
6073_ACEOF
6074if { (ac_try="$ac_cpp conftest.$ac_ext"
6075case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } >/dev/null && {
6087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 }; then
6090 ac_header_preproc=yes
6091else
6092 echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_header_preproc=no
6096fi
6097
6098rm -f conftest.err conftest.$ac_ext
6099{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6100echo "${ECHO_T}$ac_header_preproc" >&6; }
6101
6102# So? What about this header?
6103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6104 yes:no: )
6105 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6106echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6107 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
6108echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
6109 ac_header_preproc=yes
6110 ;;
6111 no:yes:* )
6112 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
6113echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
6114 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
6115echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
6116 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
6117echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
6119echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
6121echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
6122 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
6123echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
6124
6125 ;;
6126esac
6127{ echo "$as_me:$LINENO: checking for netdb.h" >&5
6128echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
6129if test "${ac_cv_header_netdb_h+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132 ac_cv_header_netdb_h=$ac_header_preproc
6133fi
6134{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6135echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
6136
6137fi
6138if test $ac_cv_header_netdb_h = yes; then
6139 cat >>confdefs.h <<\_ACEOF
6140#define PJ_HAS_NETDB_H 1
6141_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006142
6143fi
6144
6145
Sauw Ming6e6c2152010-12-14 13:03:10 +00006146if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6147 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6148echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
6149if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151fi
6152{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6153echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
6154else
6155 # Is the header compilable?
6156{ echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5
6157echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; }
6158cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
6164$ac_includes_default
6165#include <netinet/in_systm.h>
6166_ACEOF
6167rm -f conftest.$ac_objext
6168if { (ac_try="$ac_compile"
6169case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6184 ac_header_compiler=yes
6185else
6186 echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 ac_header_compiler=no
6190fi
6191
6192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6194echo "${ECHO_T}$ac_header_compiler" >&6; }
6195
6196# Is the header present?
6197{ echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5
6198echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; }
6199cat >conftest.$ac_ext <<_ACEOF
6200/* confdefs.h. */
6201_ACEOF
6202cat confdefs.h >>conftest.$ac_ext
6203cat >>conftest.$ac_ext <<_ACEOF
6204/* end confdefs.h. */
6205#include <netinet/in_systm.h>
6206_ACEOF
6207if { (ac_try="$ac_cpp conftest.$ac_ext"
6208case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211esac
6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } >/dev/null && {
6220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 }; then
6223 ac_header_preproc=yes
6224else
6225 echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 ac_header_preproc=no
6229fi
6230
6231rm -f conftest.err conftest.$ac_ext
6232{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6233echo "${ECHO_T}$ac_header_preproc" >&6; }
6234
6235# So? What about this header?
6236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6237 yes:no: )
6238 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6239echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5
6241echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;}
6242 ac_header_preproc=yes
6243 ;;
6244 no:yes:* )
6245 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5
6246echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5
6248echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5
6250echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5
6252echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5
6254echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;}
6255 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5
6256echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;}
6257
6258 ;;
6259esac
6260{ echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6261echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
6262if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264else
6265 ac_cv_header_netinet_in_systm_h=$ac_header_preproc
6266fi
6267{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6268echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
6269
6270fi
6271if test $ac_cv_header_netinet_in_systm_h = yes; then
6272 cat >>confdefs.h <<\_ACEOF
6273#define PJ_HAS_NETINET_IN_SYSTM_H 1
6274_ACEOF
Benny Prijono37fc9de2008-08-04 14:45:02 +00006275
6276fi
6277
6278
Sauw Ming6e6c2152010-12-14 13:03:10 +00006279if test "${ac_cv_header_netinet_in_h+set}" = set; then
6280 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6281echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
6282if test "${ac_cv_header_netinet_in_h+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284fi
6285{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6286echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
6287else
6288 # Is the header compilable?
6289{ echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
6290echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
6291cat >conftest.$ac_ext <<_ACEOF
6292/* confdefs.h. */
6293_ACEOF
6294cat confdefs.h >>conftest.$ac_ext
6295cat >>conftest.$ac_ext <<_ACEOF
6296/* end confdefs.h. */
6297$ac_includes_default
6298#include <netinet/in.h>
6299_ACEOF
6300rm -f conftest.$ac_objext
6301if { (ac_try="$ac_compile"
6302case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305esac
6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_compile") 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && {
6314 test -z "$ac_c_werror_flag" ||
6315 test ! -s conftest.err
6316 } && test -s conftest.$ac_objext; then
6317 ac_header_compiler=yes
6318else
6319 echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322 ac_header_compiler=no
6323fi
6324
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6327echo "${ECHO_T}$ac_header_compiler" >&6; }
6328
6329# Is the header present?
6330{ echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
6331echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
6332cat >conftest.$ac_ext <<_ACEOF
6333/* confdefs.h. */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
6337/* end confdefs.h. */
6338#include <netinet/in.h>
6339_ACEOF
6340if { (ac_try="$ac_cpp conftest.$ac_ext"
6341case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } >/dev/null && {
6353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6354 test ! -s conftest.err
6355 }; then
6356 ac_header_preproc=yes
6357else
6358 echo "$as_me: failed program was:" >&5
6359sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 ac_header_preproc=no
6362fi
6363
6364rm -f conftest.err conftest.$ac_ext
6365{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6366echo "${ECHO_T}$ac_header_preproc" >&6; }
6367
6368# So? What about this header?
6369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6370 yes:no: )
6371 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
6372echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
6374echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
6375 ac_header_preproc=yes
6376 ;;
6377 no:yes:* )
6378 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
6379echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
6381echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
6382 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
6383echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
6385echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
6387echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
6389echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
6390
6391 ;;
6392esac
6393{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6394echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
6395if test "${ac_cv_header_netinet_in_h+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
6398 ac_cv_header_netinet_in_h=$ac_header_preproc
6399fi
6400{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6401echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
6402
6403fi
6404if test $ac_cv_header_netinet_in_h = yes; then
6405 cat >>confdefs.h <<\_ACEOF
6406#define PJ_HAS_NETINET_IN_H 1
6407_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006408
6409fi
6410
6411
Sauw Ming6e6c2152010-12-14 13:03:10 +00006412{ echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
6413echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; }
6414if test "${ac_cv_header_netinet_ip_h+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416else
6417 cat >conftest.$ac_ext <<_ACEOF
6418/* confdefs.h. */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h. */
6423#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00006424 # include <sys/types.h>
6425 #endif
6426 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00006427 # include <netinet/in_systm.h>
6428 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00006429 #if PJ_HAS_NETINET_IN_H
6430 # include <netinet/in.h>
6431 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00006432
Sauw Ming6e6c2152010-12-14 13:03:10 +00006433
6434#include <netinet/ip.h>
6435_ACEOF
6436rm -f conftest.$ac_objext
6437if { (ac_try="$ac_compile"
6438case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest.$ac_objext; then
6453 ac_cv_header_netinet_ip_h=yes
6454else
6455 echo "$as_me: failed program was:" >&5
6456sed 's/^/| /' conftest.$ac_ext >&5
6457
6458 ac_cv_header_netinet_ip_h=no
6459fi
6460
6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462fi
6463{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
6464echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; }
6465if test $ac_cv_header_netinet_ip_h = yes; then
6466 cat >>confdefs.h <<\_ACEOF
6467#define PJ_HAS_NETINET_IP_H 1
6468_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00006469
Sauw Mingbe3771a2010-08-27 06:46:29 +00006470fi
6471
Benny Prijono46bd0842010-02-12 14:12:41 +00006472
Sauw Ming6e6c2152010-12-14 13:03:10 +00006473if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6474 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
6475echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
6476if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478fi
6479{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
6480echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
6481else
6482 # Is the header compilable?
6483{ echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
6484echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
6485cat >conftest.$ac_ext <<_ACEOF
6486/* confdefs.h. */
6487_ACEOF
6488cat confdefs.h >>conftest.$ac_ext
6489cat >>conftest.$ac_ext <<_ACEOF
6490/* end confdefs.h. */
6491$ac_includes_default
6492#include <netinet/tcp.h>
6493_ACEOF
6494rm -f conftest.$ac_objext
6495if { (ac_try="$ac_compile"
6496case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499esac
6500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compile") 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.$ac_objext; then
6511 ac_header_compiler=yes
6512else
6513 echo "$as_me: failed program was:" >&5
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_header_compiler=no
6517fi
6518
6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6521echo "${ECHO_T}$ac_header_compiler" >&6; }
6522
6523# Is the header present?
6524{ echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
6525echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
6526cat >conftest.$ac_ext <<_ACEOF
6527/* confdefs.h. */
6528_ACEOF
6529cat confdefs.h >>conftest.$ac_ext
6530cat >>conftest.$ac_ext <<_ACEOF
6531/* end confdefs.h. */
6532#include <netinet/tcp.h>
6533_ACEOF
6534if { (ac_try="$ac_cpp conftest.$ac_ext"
6535case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } >/dev/null && {
6547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 }; then
6550 ac_header_preproc=yes
6551else
6552 echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 ac_header_preproc=no
6556fi
6557
6558rm -f conftest.err conftest.$ac_ext
6559{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6560echo "${ECHO_T}$ac_header_preproc" >&6; }
6561
6562# So? What about this header?
6563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6564 yes:no: )
6565 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6566echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
6568echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
6569 ac_header_preproc=yes
6570 ;;
6571 no:yes:* )
6572 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
6573echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
6575echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
6577echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
6579echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
6581echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
6583echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
6584
6585 ;;
6586esac
6587{ echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
6588echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
6589if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592 ac_cv_header_netinet_tcp_h=$ac_header_preproc
6593fi
6594{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
6595echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
6596
6597fi
6598if test $ac_cv_header_netinet_tcp_h = yes; then
6599 cat >>confdefs.h <<\_ACEOF
6600#define PJ_HAS_NETINET_TCP_H 1
6601_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00006602
Sauw Mingbe3771a2010-08-27 06:46:29 +00006603fi
6604
Sauw Mingbe3771a2010-08-27 06:46:29 +00006605
Sauw Ming6e6c2152010-12-14 13:03:10 +00006606if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6607 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6608echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
6609if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611fi
6612{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6613echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
6614else
6615 # Is the header compilable?
6616{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
6617echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
6618cat >conftest.$ac_ext <<_ACEOF
6619/* confdefs.h. */
6620_ACEOF
6621cat confdefs.h >>conftest.$ac_ext
6622cat >>conftest.$ac_ext <<_ACEOF
6623/* end confdefs.h. */
6624$ac_includes_default
6625#include <ifaddrs.h>
6626_ACEOF
6627rm -f conftest.$ac_objext
6628if { (ac_try="$ac_compile"
6629case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632esac
6633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_compile") 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest.$ac_objext; then
6644 ac_header_compiler=yes
6645else
6646 echo "$as_me: failed program was:" >&5
6647sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_header_compiler=no
6650fi
6651
6652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6654echo "${ECHO_T}$ac_header_compiler" >&6; }
6655
6656# Is the header present?
6657{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
6658echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
6659cat >conftest.$ac_ext <<_ACEOF
6660/* confdefs.h. */
6661_ACEOF
6662cat confdefs.h >>conftest.$ac_ext
6663cat >>conftest.$ac_ext <<_ACEOF
6664/* end confdefs.h. */
6665#include <ifaddrs.h>
6666_ACEOF
6667if { (ac_try="$ac_cpp conftest.$ac_ext"
6668case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671esac
6672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } >/dev/null && {
6680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 }; then
6683 ac_header_preproc=yes
6684else
6685 echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_header_preproc=no
6689fi
6690
6691rm -f conftest.err conftest.$ac_ext
6692{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6693echo "${ECHO_T}$ac_header_preproc" >&6; }
6694
6695# So? What about this header?
6696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6697 yes:no: )
6698 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6699echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6701echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6702 ac_header_preproc=yes
6703 ;;
6704 no:yes:* )
6705 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6706echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6708echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6710echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6712echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6713 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6714echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6715 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6716echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
6717
6718 ;;
6719esac
6720{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6721echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
6722if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725 ac_cv_header_ifaddrs_h=$ac_header_preproc
6726fi
6727{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6728echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
6729
6730fi
6731if test $ac_cv_header_ifaddrs_h = yes; then
6732 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
6733echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
6734if test "${ac_cv_func_getifaddrs+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736else
6737 cat >conftest.$ac_ext <<_ACEOF
6738/* confdefs.h. */
6739_ACEOF
6740cat confdefs.h >>conftest.$ac_ext
6741cat >>conftest.$ac_ext <<_ACEOF
6742/* end confdefs.h. */
6743/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
6744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6745#define getifaddrs innocuous_getifaddrs
6746
6747/* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char getifaddrs (); below.
6749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6750 <limits.h> exists even on freestanding compilers. */
6751
6752#ifdef __STDC__
6753# include <limits.h>
6754#else
6755# include <assert.h>
6756#endif
6757
6758#undef getifaddrs
6759
6760/* Override any GCC internal prototype to avoid an error.
6761 Use char because int might match the return type of a GCC
6762 builtin and then its argument prototype would still apply. */
6763#ifdef __cplusplus
6764extern "C"
6765#endif
6766char getifaddrs ();
6767/* The GNU C library defines this for functions which it implements
6768 to always fail with ENOSYS. Some functions are actually named
6769 something starting with __ and the normal name is an alias. */
6770#if defined __stub_getifaddrs || defined __stub___getifaddrs
6771choke me
6772#endif
6773
6774int
6775main ()
6776{
6777return getifaddrs ();
6778 ;
6779 return 0;
6780}
6781_ACEOF
6782rm -f conftest.$ac_objext conftest$ac_exeext
6783if { (ac_try="$ac_link"
6784case "(($ac_try" in
6785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6787esac
6788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_link") 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && {
6796 test -z "$ac_c_werror_flag" ||
6797 test ! -s conftest.err
6798 } && test -s conftest$ac_exeext &&
6799 $as_test_x conftest$ac_exeext; then
6800 ac_cv_func_getifaddrs=yes
6801else
6802 echo "$as_me: failed program was:" >&5
6803sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 ac_cv_func_getifaddrs=no
6806fi
6807
6808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6809 conftest$ac_exeext conftest.$ac_ext
6810fi
6811{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
6812echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
6813if test $ac_cv_func_getifaddrs = yes; then
6814 cat >>confdefs.h <<\_ACEOF
6815#define PJ_HAS_IFADDRS_H 1
6816_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00006817
6818fi
Benny Prijono46bd0842010-02-12 14:12:41 +00006819
Benny Prijono46bd0842010-02-12 14:12:41 +00006820fi
6821
Benny Prijono46bd0842010-02-12 14:12:41 +00006822
Sauw Ming6e6c2152010-12-14 13:03:10 +00006823if test "${ac_cv_header_semaphore_h+set}" = set; then
6824 { echo "$as_me:$LINENO: checking for semaphore.h" >&5
6825echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
6826if test "${ac_cv_header_semaphore_h+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828fi
6829{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6830echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
6831else
6832 # Is the header compilable?
6833{ echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6834echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; }
6835cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h. */
6841$ac_includes_default
6842#include <semaphore.h>
6843_ACEOF
6844rm -f conftest.$ac_objext
6845if { (ac_try="$ac_compile"
6846case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849esac
6850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6852 ac_status=$?
6853 grep -v '^ *+' conftest.er1 >conftest.err
6854 rm -f conftest.er1
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && {
6858 test -z "$ac_c_werror_flag" ||
6859 test ! -s conftest.err
6860 } && test -s conftest.$ac_objext; then
6861 ac_header_compiler=yes
6862else
6863 echo "$as_me: failed program was:" >&5
6864sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 ac_header_compiler=no
6867fi
6868
6869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6871echo "${ECHO_T}$ac_header_compiler" >&6; }
6872
6873# Is the header present?
6874{ echo "$as_me:$LINENO: checking semaphore.h presence" >&5
6875echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; }
6876cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h. */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h. */
6882#include <semaphore.h>
6883_ACEOF
6884if { (ac_try="$ac_cpp conftest.$ac_ext"
6885case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888esac
6889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev/null && {
6897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 }; then
6900 ac_header_preproc=yes
6901else
6902 echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 ac_header_preproc=no
6906fi
6907
6908rm -f conftest.err conftest.$ac_ext
6909{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6910echo "${ECHO_T}$ac_header_preproc" >&6; }
6911
6912# So? What about this header?
6913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6914 yes:no: )
6915 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
6916echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6917 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
6918echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
6919 ac_header_preproc=yes
6920 ;;
6921 no:yes:* )
6922 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
6923echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
6924 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
6925echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
6927echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
6928 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
6929echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
6930 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
6931echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
6933echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
6934
6935 ;;
6936esac
6937{ echo "$as_me:$LINENO: checking for semaphore.h" >&5
6938echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
6939if test "${ac_cv_header_semaphore_h+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942 ac_cv_header_semaphore_h=$ac_header_preproc
6943fi
6944{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6945echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
6946
6947fi
6948if test $ac_cv_header_semaphore_h = yes; then
6949 cat >>confdefs.h <<\_ACEOF
6950#define PJ_HAS_SEMAPHORE_H 1
6951_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00006952
Sauw Mingbe3771a2010-08-27 06:46:29 +00006953fi
6954
Sauw Mingbe3771a2010-08-27 06:46:29 +00006955
Sauw Ming6e6c2152010-12-14 13:03:10 +00006956if test "${ac_cv_header_setjmp_h+set}" = set; then
6957 { echo "$as_me:$LINENO: checking for setjmp.h" >&5
6958echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
6959if test "${ac_cv_header_setjmp_h+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961fi
6962{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6963echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
6964else
6965 # Is the header compilable?
6966{ echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6967echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; }
6968cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
6974$ac_includes_default
6975#include <setjmp.h>
6976_ACEOF
6977rm -f conftest.$ac_objext
6978if { (ac_try="$ac_compile"
6979case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982esac
6983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_compile") 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && {
6991 test -z "$ac_c_werror_flag" ||
6992 test ! -s conftest.err
6993 } && test -s conftest.$ac_objext; then
6994 ac_header_compiler=yes
6995else
6996 echo "$as_me: failed program was:" >&5
6997sed 's/^/| /' conftest.$ac_ext >&5
6998
6999 ac_header_compiler=no
7000fi
7001
7002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7004echo "${ECHO_T}$ac_header_compiler" >&6; }
7005
7006# Is the header present?
7007{ echo "$as_me:$LINENO: checking setjmp.h presence" >&5
7008echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; }
7009cat >conftest.$ac_ext <<_ACEOF
7010/* confdefs.h. */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h. */
7015#include <setjmp.h>
7016_ACEOF
7017if { (ac_try="$ac_cpp conftest.$ac_ext"
7018case "(($ac_try" in
7019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020 *) ac_try_echo=$ac_try;;
7021esac
7022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7024 ac_status=$?
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } >/dev/null && {
7030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 }; then
7033 ac_header_preproc=yes
7034else
7035 echo "$as_me: failed program was:" >&5
7036sed 's/^/| /' conftest.$ac_ext >&5
7037
7038 ac_header_preproc=no
7039fi
7040
7041rm -f conftest.err conftest.$ac_ext
7042{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7043echo "${ECHO_T}$ac_header_preproc" >&6; }
7044
7045# So? What about this header?
7046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7047 yes:no: )
7048 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
7049echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7050 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
7051echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
7052 ac_header_preproc=yes
7053 ;;
7054 no:yes:* )
7055 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
7056echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
7057 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
7058echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
7059 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
7060echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
7061 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
7062echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
7063 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
7064echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
7065 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
7066echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
7067
7068 ;;
7069esac
7070{ echo "$as_me:$LINENO: checking for setjmp.h" >&5
7071echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
7072if test "${ac_cv_header_setjmp_h+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074else
7075 ac_cv_header_setjmp_h=$ac_header_preproc
7076fi
7077{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
7078echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
7079
7080fi
7081if test $ac_cv_header_setjmp_h = yes; then
7082 cat >>confdefs.h <<\_ACEOF
7083#define PJ_HAS_SETJMP_H 1
7084_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00007085
Sauw Mingbe3771a2010-08-27 06:46:29 +00007086fi
7087
Sauw Mingbe3771a2010-08-27 06:46:29 +00007088
Sauw Ming6e6c2152010-12-14 13:03:10 +00007089if test "${ac_cv_header_stdarg_h+set}" = set; then
7090 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7091echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7092if test "${ac_cv_header_stdarg_h+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094fi
7095{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7096echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7097else
7098 # Is the header compilable?
7099{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7100echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7101cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h. */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h. */
7107$ac_includes_default
7108#include <stdarg.h>
7109_ACEOF
7110rm -f conftest.$ac_objext
7111if { (ac_try="$ac_compile"
7112case "(($ac_try" in
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7115esac
7116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.$ac_objext; then
7127 ac_header_compiler=yes
7128else
7129 echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_header_compiler=no
7133fi
7134
7135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7137echo "${ECHO_T}$ac_header_compiler" >&6; }
7138
7139# Is the header present?
7140{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7141echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7142cat >conftest.$ac_ext <<_ACEOF
7143/* confdefs.h. */
7144_ACEOF
7145cat confdefs.h >>conftest.$ac_ext
7146cat >>conftest.$ac_ext <<_ACEOF
7147/* end confdefs.h. */
7148#include <stdarg.h>
7149_ACEOF
7150if { (ac_try="$ac_cpp conftest.$ac_ext"
7151case "(($ac_try" in
7152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153 *) ac_try_echo=$ac_try;;
7154esac
7155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } >/dev/null && {
7163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7164 test ! -s conftest.err
7165 }; then
7166 ac_header_preproc=yes
7167else
7168 echo "$as_me: failed program was:" >&5
7169sed 's/^/| /' conftest.$ac_ext >&5
7170
7171 ac_header_preproc=no
7172fi
7173
7174rm -f conftest.err conftest.$ac_ext
7175{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7176echo "${ECHO_T}$ac_header_preproc" >&6; }
7177
7178# So? What about this header?
7179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7180 yes:no: )
7181 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7182echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7184echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7185 ac_header_preproc=yes
7186 ;;
7187 no:yes:* )
7188 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7189echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7190 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7191echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7193echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7194 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7195echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7197echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7199echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7200
7201 ;;
7202esac
7203{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
7204echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7205if test "${ac_cv_header_stdarg_h+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208 ac_cv_header_stdarg_h=$ac_header_preproc
7209fi
7210{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7211echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7212
7213fi
7214if test $ac_cv_header_stdarg_h = yes; then
7215 cat >>confdefs.h <<\_ACEOF
7216#define PJ_HAS_STDARG_H 1
7217_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00007218
7219fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00007220
Sauw Mingbe3771a2010-08-27 06:46:29 +00007221
Sauw Ming6e6c2152010-12-14 13:03:10 +00007222if test "${ac_cv_header_stddef_h+set}" = set; then
7223 { echo "$as_me:$LINENO: checking for stddef.h" >&5
7224echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7225if test "${ac_cv_header_stddef_h+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227fi
7228{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7229echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7230else
7231 # Is the header compilable?
7232{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
7233echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
7234cat >conftest.$ac_ext <<_ACEOF
7235/* confdefs.h. */
7236_ACEOF
7237cat confdefs.h >>conftest.$ac_ext
7238cat >>conftest.$ac_ext <<_ACEOF
7239/* end confdefs.h. */
7240$ac_includes_default
7241#include <stddef.h>
7242_ACEOF
7243rm -f conftest.$ac_objext
7244if { (ac_try="$ac_compile"
7245case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248esac
7249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compile") 2>conftest.er1
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest.$ac_objext; then
7260 ac_header_compiler=yes
7261else
7262 echo "$as_me: failed program was:" >&5
7263sed 's/^/| /' conftest.$ac_ext >&5
7264
7265 ac_header_compiler=no
7266fi
7267
7268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7270echo "${ECHO_T}$ac_header_compiler" >&6; }
7271
7272# Is the header present?
7273{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
7274echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
7275cat >conftest.$ac_ext <<_ACEOF
7276/* confdefs.h. */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h. */
7281#include <stddef.h>
7282_ACEOF
7283if { (ac_try="$ac_cpp conftest.$ac_ext"
7284case "(($ac_try" in
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7287esac
7288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } >/dev/null && {
7296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7297 test ! -s conftest.err
7298 }; then
7299 ac_header_preproc=yes
7300else
7301 echo "$as_me: failed program was:" >&5
7302sed 's/^/| /' conftest.$ac_ext >&5
7303
7304 ac_header_preproc=no
7305fi
7306
7307rm -f conftest.err conftest.$ac_ext
7308{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7309echo "${ECHO_T}$ac_header_preproc" >&6; }
7310
7311# So? What about this header?
7312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7313 yes:no: )
7314 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
7315echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7316 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
7317echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
7318 ac_header_preproc=yes
7319 ;;
7320 no:yes:* )
7321 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
7322echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
7323 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
7324echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
7326echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
7327 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
7328echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
7329 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
7330echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
7331 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
7332echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
7333
7334 ;;
7335esac
7336{ echo "$as_me:$LINENO: checking for stddef.h" >&5
7337echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7338if test "${ac_cv_header_stddef_h+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341 ac_cv_header_stddef_h=$ac_header_preproc
7342fi
7343{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7344echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7345
7346fi
7347if test $ac_cv_header_stddef_h = yes; then
7348 cat >>confdefs.h <<\_ACEOF
7349#define PJ_HAS_STDDEF_H 1
7350_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00007351
Sauw Mingbe3771a2010-08-27 06:46:29 +00007352fi
7353
Benny Prijono46bd0842010-02-12 14:12:41 +00007354
Sauw Ming6e6c2152010-12-14 13:03:10 +00007355if test "${ac_cv_header_stdio_h+set}" = set; then
7356 { echo "$as_me:$LINENO: checking for stdio.h" >&5
7357echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
7358if test "${ac_cv_header_stdio_h+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360fi
7361{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7362echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
7363else
7364 # Is the header compilable?
7365{ echo "$as_me:$LINENO: checking stdio.h usability" >&5
7366echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; }
7367cat >conftest.$ac_ext <<_ACEOF
7368/* confdefs.h. */
7369_ACEOF
7370cat confdefs.h >>conftest.$ac_ext
7371cat >>conftest.$ac_ext <<_ACEOF
7372/* end confdefs.h. */
7373$ac_includes_default
7374#include <stdio.h>
7375_ACEOF
7376rm -f conftest.$ac_objext
7377if { (ac_try="$ac_compile"
7378case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381esac
7382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 ac_header_compiler=yes
7394else
7395 echo "$as_me: failed program was:" >&5
7396sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 ac_header_compiler=no
7399fi
7400
7401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7403echo "${ECHO_T}$ac_header_compiler" >&6; }
7404
7405# Is the header present?
7406{ echo "$as_me:$LINENO: checking stdio.h presence" >&5
7407echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; }
7408cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h. */
7414#include <stdio.h>
7415_ACEOF
7416if { (ac_try="$ac_cpp conftest.$ac_ext"
7417case "(($ac_try" in
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7420esac
7421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } >/dev/null && {
7429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 }; then
7432 ac_header_preproc=yes
7433else
7434 echo "$as_me: failed program was:" >&5
7435sed 's/^/| /' conftest.$ac_ext >&5
7436
7437 ac_header_preproc=no
7438fi
7439
7440rm -f conftest.err conftest.$ac_ext
7441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7442echo "${ECHO_T}$ac_header_preproc" >&6; }
7443
7444# So? What about this header?
7445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7446 yes:no: )
7447 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7448echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
7450echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
7451 ac_header_preproc=yes
7452 ;;
7453 no:yes:* )
7454 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
7455echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
7456 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
7457echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
7458 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
7459echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
7461echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
7462 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
7463echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
7465echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
7466
7467 ;;
7468esac
7469{ echo "$as_me:$LINENO: checking for stdio.h" >&5
7470echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
7471if test "${ac_cv_header_stdio_h+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474 ac_cv_header_stdio_h=$ac_header_preproc
7475fi
7476{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7477echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
7478
7479fi
7480if test $ac_cv_header_stdio_h = yes; then
7481 cat >>confdefs.h <<\_ACEOF
7482#define PJ_HAS_STDIO_H 1
7483_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00007484
Benny Prijono5bbebc02010-06-15 05:21:43 +00007485fi
7486
Benny Prijono46bd0842010-02-12 14:12:41 +00007487
Sauw Ming6e6c2152010-12-14 13:03:10 +00007488if test "${ac_cv_header_stdint_h+set}" = set; then
7489 { echo "$as_me:$LINENO: checking for stdint.h" >&5
7490echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7491if test "${ac_cv_header_stdint_h+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493fi
7494{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7495echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7496else
7497 # Is the header compilable?
7498{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
7499echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
7500cat >conftest.$ac_ext <<_ACEOF
7501/* confdefs.h. */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h. */
7506$ac_includes_default
7507#include <stdint.h>
7508_ACEOF
7509rm -f conftest.$ac_objext
7510if { (ac_try="$ac_compile"
7511case "(($ac_try" in
7512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513 *) ac_try_echo=$ac_try;;
7514esac
7515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516 (eval "$ac_compile") 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } && {
7523 test -z "$ac_c_werror_flag" ||
7524 test ! -s conftest.err
7525 } && test -s conftest.$ac_objext; then
7526 ac_header_compiler=yes
7527else
7528 echo "$as_me: failed program was:" >&5
7529sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 ac_header_compiler=no
7532fi
7533
7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7536echo "${ECHO_T}$ac_header_compiler" >&6; }
7537
7538# Is the header present?
7539{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
7540echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
7541cat >conftest.$ac_ext <<_ACEOF
7542/* confdefs.h. */
7543_ACEOF
7544cat confdefs.h >>conftest.$ac_ext
7545cat >>conftest.$ac_ext <<_ACEOF
7546/* end confdefs.h. */
7547#include <stdint.h>
7548_ACEOF
7549if { (ac_try="$ac_cpp conftest.$ac_ext"
7550case "(($ac_try" in
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7553esac
7554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } >/dev/null && {
7562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 }; then
7565 ac_header_preproc=yes
7566else
7567 echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
7570 ac_header_preproc=no
7571fi
7572
7573rm -f conftest.err conftest.$ac_ext
7574{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7575echo "${ECHO_T}$ac_header_preproc" >&6; }
7576
7577# So? What about this header?
7578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7579 yes:no: )
7580 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
7581echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
7583echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
7584 ac_header_preproc=yes
7585 ;;
7586 no:yes:* )
7587 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
7588echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
7590echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
7591 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
7592echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
7594echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
7596echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
7597 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
7598echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
7599
7600 ;;
7601esac
7602{ echo "$as_me:$LINENO: checking for stdint.h" >&5
7603echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7604if test "${ac_cv_header_stdint_h+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607 ac_cv_header_stdint_h=$ac_header_preproc
7608fi
7609{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7610echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7611
7612fi
7613if test $ac_cv_header_stdint_h = yes; then
7614 cat >>confdefs.h <<\_ACEOF
7615#define PJ_HAS_STDINT_H 1
7616_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00007617
Sauw Mingbe3771a2010-08-27 06:46:29 +00007618fi
7619
Sauw Mingbe3771a2010-08-27 06:46:29 +00007620
Sauw Ming6e6c2152010-12-14 13:03:10 +00007621if test "${ac_cv_header_stdlib_h+set}" = set; then
7622 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
7623echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
7624if test "${ac_cv_header_stdlib_h+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626fi
7627{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7628echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
7629else
7630 # Is the header compilable?
7631{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7632echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
7633cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h. */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h. */
7639$ac_includes_default
7640#include <stdlib.h>
7641_ACEOF
7642rm -f conftest.$ac_objext
7643if { (ac_try="$ac_compile"
7644case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647esac
7648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 ac_header_compiler=yes
7660else
7661 echo "$as_me: failed program was:" >&5
7662sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 ac_header_compiler=no
7665fi
7666
7667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7669echo "${ECHO_T}$ac_header_compiler" >&6; }
7670
7671# Is the header present?
7672{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7673echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
7674cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h. */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h. */
7680#include <stdlib.h>
7681_ACEOF
7682if { (ac_try="$ac_cpp conftest.$ac_ext"
7683case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686esac
7687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } >/dev/null && {
7695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7696 test ! -s conftest.err
7697 }; then
7698 ac_header_preproc=yes
7699else
7700 echo "$as_me: failed program was:" >&5
7701sed 's/^/| /' conftest.$ac_ext >&5
7702
7703 ac_header_preproc=no
7704fi
7705
7706rm -f conftest.err conftest.$ac_ext
7707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7708echo "${ECHO_T}$ac_header_preproc" >&6; }
7709
7710# So? What about this header?
7711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7712 yes:no: )
7713 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7714echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7715 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7716echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7717 ac_header_preproc=yes
7718 ;;
7719 no:yes:* )
7720 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7721echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7723echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7725echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7726 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7727echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7728 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7729echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7731echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
7732
7733 ;;
7734esac
7735{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
7736echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
7737if test "${ac_cv_header_stdlib_h+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740 ac_cv_header_stdlib_h=$ac_header_preproc
7741fi
7742{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7743echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
7744
7745fi
7746if test $ac_cv_header_stdlib_h = yes; then
7747 cat >>confdefs.h <<\_ACEOF
7748#define PJ_HAS_STDLIB_H 1
7749_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00007750
Sauw Mingbe3771a2010-08-27 06:46:29 +00007751fi
7752
Sauw Mingbe3771a2010-08-27 06:46:29 +00007753
Sauw Ming6e6c2152010-12-14 13:03:10 +00007754if test "${ac_cv_header_string_h+set}" = set; then
7755 { echo "$as_me:$LINENO: checking for string.h" >&5
7756echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
7757if test "${ac_cv_header_string_h+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759fi
7760{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7761echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
7762else
7763 # Is the header compilable?
7764{ echo "$as_me:$LINENO: checking string.h usability" >&5
7765echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
7766cat >conftest.$ac_ext <<_ACEOF
7767/* confdefs.h. */
7768_ACEOF
7769cat confdefs.h >>conftest.$ac_ext
7770cat >>conftest.$ac_ext <<_ACEOF
7771/* end confdefs.h. */
7772$ac_includes_default
7773#include <string.h>
7774_ACEOF
7775rm -f conftest.$ac_objext
7776if { (ac_try="$ac_compile"
7777case "(($ac_try" in
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7780esac
7781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782 (eval "$ac_compile") 2>conftest.er1
7783 ac_status=$?
7784 grep -v '^ *+' conftest.er1 >conftest.err
7785 rm -f conftest.er1
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } && {
7789 test -z "$ac_c_werror_flag" ||
7790 test ! -s conftest.err
7791 } && test -s conftest.$ac_objext; then
7792 ac_header_compiler=yes
7793else
7794 echo "$as_me: failed program was:" >&5
7795sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 ac_header_compiler=no
7798fi
7799
7800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7802echo "${ECHO_T}$ac_header_compiler" >&6; }
7803
7804# Is the header present?
7805{ echo "$as_me:$LINENO: checking string.h presence" >&5
7806echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
7807cat >conftest.$ac_ext <<_ACEOF
7808/* confdefs.h. */
7809_ACEOF
7810cat confdefs.h >>conftest.$ac_ext
7811cat >>conftest.$ac_ext <<_ACEOF
7812/* end confdefs.h. */
7813#include <string.h>
7814_ACEOF
7815if { (ac_try="$ac_cpp conftest.$ac_ext"
7816case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7819esac
7820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7822 ac_status=$?
7823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } >/dev/null && {
7828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7829 test ! -s conftest.err
7830 }; then
7831 ac_header_preproc=yes
7832else
7833 echo "$as_me: failed program was:" >&5
7834sed 's/^/| /' conftest.$ac_ext >&5
7835
7836 ac_header_preproc=no
7837fi
7838
7839rm -f conftest.err conftest.$ac_ext
7840{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7841echo "${ECHO_T}$ac_header_preproc" >&6; }
7842
7843# So? What about this header?
7844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7845 yes:no: )
7846 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7847echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7849echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7850 ac_header_preproc=yes
7851 ;;
7852 no:yes:* )
7853 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7854echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7856echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7858echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7860echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7862echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7864echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
7865
7866 ;;
7867esac
7868{ echo "$as_me:$LINENO: checking for string.h" >&5
7869echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
7870if test "${ac_cv_header_string_h+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873 ac_cv_header_string_h=$ac_header_preproc
7874fi
7875{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7876echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
7877
7878fi
7879if test $ac_cv_header_string_h = yes; then
7880 cat >>confdefs.h <<\_ACEOF
7881#define PJ_HAS_STRING_H 1
7882_ACEOF
Benny Prijono1d61ba52009-10-24 00:00:40 +00007883
Benny Prijono1d61ba52009-10-24 00:00:40 +00007884fi
7885
Benny Prijono1d61ba52009-10-24 00:00:40 +00007886
Sauw Ming6e6c2152010-12-14 13:03:10 +00007887if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7888 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7889echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
7890if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892fi
7893{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7894echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
7895else
7896 # Is the header compilable?
7897{ echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7898echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; }
7899cat >conftest.$ac_ext <<_ACEOF
7900/* confdefs.h. */
7901_ACEOF
7902cat confdefs.h >>conftest.$ac_ext
7903cat >>conftest.$ac_ext <<_ACEOF
7904/* end confdefs.h. */
7905$ac_includes_default
7906#include <sys/ioctl.h>
7907_ACEOF
7908rm -f conftest.$ac_objext
7909if { (ac_try="$ac_compile"
7910case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913esac
7914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_header_compiler=yes
7926else
7927 echo "$as_me: failed program was:" >&5
7928sed 's/^/| /' conftest.$ac_ext >&5
7929
7930 ac_header_compiler=no
7931fi
7932
7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7935echo "${ECHO_T}$ac_header_compiler" >&6; }
7936
7937# Is the header present?
7938{ echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7939echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; }
7940cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
7946#include <sys/ioctl.h>
7947_ACEOF
7948if { (ac_try="$ac_cpp conftest.$ac_ext"
7949case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952esac
7953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } >/dev/null && {
7961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7962 test ! -s conftest.err
7963 }; then
7964 ac_header_preproc=yes
7965else
7966 echo "$as_me: failed program was:" >&5
7967sed 's/^/| /' conftest.$ac_ext >&5
7968
7969 ac_header_preproc=no
7970fi
7971
7972rm -f conftest.err conftest.$ac_ext
7973{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7974echo "${ECHO_T}$ac_header_preproc" >&6; }
7975
7976# So? What about this header?
7977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7978 yes:no: )
7979 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7980echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7981 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7982echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7983 ac_header_preproc=yes
7984 ;;
7985 no:yes:* )
7986 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7987echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7989echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7991echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7992 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7993echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7995echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7997echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
7998
7999 ;;
8000esac
8001{ echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
8002echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
8003if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005else
8006 ac_cv_header_sys_ioctl_h=$ac_header_preproc
8007fi
8008{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
8009echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
8010
8011fi
8012if test $ac_cv_header_sys_ioctl_h = yes; then
8013 cat >>confdefs.h <<\_ACEOF
8014#define PJ_HAS_SYS_IOCTL_H 1
8015_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00008016
Sauw Mingbe3771a2010-08-27 06:46:29 +00008017fi
8018
Sauw Mingbe3771a2010-08-27 06:46:29 +00008019
Sauw Ming6e6c2152010-12-14 13:03:10 +00008020if test "${ac_cv_header_sys_select_h+set}" = set; then
8021 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
8022echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
8023if test "${ac_cv_header_sys_select_h+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025fi
8026{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8027echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
8028else
8029 # Is the header compilable?
8030{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5
8031echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
8032cat >conftest.$ac_ext <<_ACEOF
8033/* confdefs.h. */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h. */
8038$ac_includes_default
8039#include <sys/select.h>
8040_ACEOF
8041rm -f conftest.$ac_objext
8042if { (ac_try="$ac_compile"
8043case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8046esac
8047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048 (eval "$ac_compile") 2>conftest.er1
8049 ac_status=$?
8050 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -f conftest.er1
8052 cat conftest.err >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } && {
8055 test -z "$ac_c_werror_flag" ||
8056 test ! -s conftest.err
8057 } && test -s conftest.$ac_objext; then
8058 ac_header_compiler=yes
8059else
8060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_header_compiler=no
8064fi
8065
8066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8068echo "${ECHO_T}$ac_header_compiler" >&6; }
8069
8070# Is the header present?
8071{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5
8072echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
8073cat >conftest.$ac_ext <<_ACEOF
8074/* confdefs.h. */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h. */
8079#include <sys/select.h>
8080_ACEOF
8081if { (ac_try="$ac_cpp conftest.$ac_ext"
8082case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8085esac
8086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } >/dev/null && {
8094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 }; then
8097 ac_header_preproc=yes
8098else
8099 echo "$as_me: failed program was:" >&5
8100sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 ac_header_preproc=no
8103fi
8104
8105rm -f conftest.err conftest.$ac_ext
8106{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107echo "${ECHO_T}$ac_header_preproc" >&6; }
8108
8109# So? What about this header?
8110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8111 yes:no: )
8112 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
8113echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
8115echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
8116 ac_header_preproc=yes
8117 ;;
8118 no:yes:* )
8119 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
8120echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
8122echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
8124echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
8126echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
8128echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
8129 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
8130echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
8131
8132 ;;
8133esac
8134{ echo "$as_me:$LINENO: checking for sys/select.h" >&5
8135echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
8136if test "${ac_cv_header_sys_select_h+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138else
8139 ac_cv_header_sys_select_h=$ac_header_preproc
8140fi
8141{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8142echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
8143
8144fi
8145if test $ac_cv_header_sys_select_h = yes; then
8146 cat >>confdefs.h <<\_ACEOF
8147#define PJ_HAS_SYS_SELECT_H 1
8148_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00008149
Sauw Mingbe3771a2010-08-27 06:46:29 +00008150fi
8151
Sauw Mingbe3771a2010-08-27 06:46:29 +00008152
Sauw Ming6e6c2152010-12-14 13:03:10 +00008153if test "${ac_cv_header_sys_socket_h+set}" = set; then
8154 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8155echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
8156if test "${ac_cv_header_sys_socket_h+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158fi
8159{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8160echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
8161else
8162 # Is the header compilable?
8163{ echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
8164echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
8165cat >conftest.$ac_ext <<_ACEOF
8166/* confdefs.h. */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h. */
8171$ac_includes_default
8172#include <sys/socket.h>
8173_ACEOF
8174rm -f conftest.$ac_objext
8175if { (ac_try="$ac_compile"
8176case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8179esac
8180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_compile") 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && {
8188 test -z "$ac_c_werror_flag" ||
8189 test ! -s conftest.err
8190 } && test -s conftest.$ac_objext; then
8191 ac_header_compiler=yes
8192else
8193 echo "$as_me: failed program was:" >&5
8194sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 ac_header_compiler=no
8197fi
8198
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8201echo "${ECHO_T}$ac_header_compiler" >&6; }
8202
8203# Is the header present?
8204{ echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
8205echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
8206cat >conftest.$ac_ext <<_ACEOF
8207/* confdefs.h. */
8208_ACEOF
8209cat confdefs.h >>conftest.$ac_ext
8210cat >>conftest.$ac_ext <<_ACEOF
8211/* end confdefs.h. */
8212#include <sys/socket.h>
8213_ACEOF
8214if { (ac_try="$ac_cpp conftest.$ac_ext"
8215case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } >/dev/null && {
8227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8228 test ! -s conftest.err
8229 }; then
8230 ac_header_preproc=yes
8231else
8232 echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
8235 ac_header_preproc=no
8236fi
8237
8238rm -f conftest.err conftest.$ac_ext
8239{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8240echo "${ECHO_T}$ac_header_preproc" >&6; }
8241
8242# So? What about this header?
8243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8244 yes:no: )
8245 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
8246echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8247 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
8248echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
8249 ac_header_preproc=yes
8250 ;;
8251 no:yes:* )
8252 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
8253echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
8254 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
8255echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
8256 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
8257echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
8258 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
8259echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
8260 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8261echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
8263echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
8264
8265 ;;
8266esac
8267{ echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8268echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
8269if test "${ac_cv_header_sys_socket_h+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272 ac_cv_header_sys_socket_h=$ac_header_preproc
8273fi
8274{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8275echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
8276
8277fi
8278if test $ac_cv_header_sys_socket_h = yes; then
8279 cat >>confdefs.h <<\_ACEOF
8280#define PJ_HAS_SYS_SOCKET_H 1
8281_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00008282
Benny Prijono46bd0842010-02-12 14:12:41 +00008283fi
8284
Benny Prijono46bd0842010-02-12 14:12:41 +00008285
Sauw Ming6e6c2152010-12-14 13:03:10 +00008286if test "${ac_cv_header_sys_time_h+set}" = set; then
8287 { echo "$as_me:$LINENO: checking for sys/time.h" >&5
8288echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
8289if test "${ac_cv_header_sys_time_h+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291fi
8292{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8293echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
8294else
8295 # Is the header compilable?
8296{ echo "$as_me:$LINENO: checking sys/time.h usability" >&5
8297echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; }
8298cat >conftest.$ac_ext <<_ACEOF
8299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
8303/* end confdefs.h. */
8304$ac_includes_default
8305#include <sys/time.h>
8306_ACEOF
8307rm -f conftest.$ac_objext
8308if { (ac_try="$ac_compile"
8309case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312esac
8313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.$ac_objext; then
8324 ac_header_compiler=yes
8325else
8326 echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
8329 ac_header_compiler=no
8330fi
8331
8332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8334echo "${ECHO_T}$ac_header_compiler" >&6; }
8335
8336# Is the header present?
8337{ echo "$as_me:$LINENO: checking sys/time.h presence" >&5
8338echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; }
8339cat >conftest.$ac_ext <<_ACEOF
8340/* confdefs.h. */
8341_ACEOF
8342cat confdefs.h >>conftest.$ac_ext
8343cat >>conftest.$ac_ext <<_ACEOF
8344/* end confdefs.h. */
8345#include <sys/time.h>
8346_ACEOF
8347if { (ac_try="$ac_cpp conftest.$ac_ext"
8348case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } >/dev/null && {
8360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 }; then
8363 ac_header_preproc=yes
8364else
8365 echo "$as_me: failed program was:" >&5
8366sed 's/^/| /' conftest.$ac_ext >&5
8367
8368 ac_header_preproc=no
8369fi
8370
8371rm -f conftest.err conftest.$ac_ext
8372{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8373echo "${ECHO_T}$ac_header_preproc" >&6; }
8374
8375# So? What about this header?
8376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8377 yes:no: )
8378 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8379echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
8381echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
8382 ac_header_preproc=yes
8383 ;;
8384 no:yes:* )
8385 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
8386echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
8388echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
8390echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
8391 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
8392echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
8394echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
8396echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
8397
8398 ;;
8399esac
8400{ echo "$as_me:$LINENO: checking for sys/time.h" >&5
8401echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
8402if test "${ac_cv_header_sys_time_h+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404else
8405 ac_cv_header_sys_time_h=$ac_header_preproc
8406fi
8407{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8408echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
8409
8410fi
8411if test $ac_cv_header_sys_time_h = yes; then
8412 cat >>confdefs.h <<\_ACEOF
8413#define PJ_HAS_SYS_TIME_H 1
8414_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00008415
Sauw Mingbe3771a2010-08-27 06:46:29 +00008416fi
8417
Sauw Mingbe3771a2010-08-27 06:46:29 +00008418
Sauw Ming6e6c2152010-12-14 13:03:10 +00008419if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8420 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8421echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
8422if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424fi
8425{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8426echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
8427else
8428 # Is the header compilable?
8429{ echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
8430echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; }
8431cat >conftest.$ac_ext <<_ACEOF
8432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
8437$ac_includes_default
8438#include <sys/timeb.h>
8439_ACEOF
8440rm -f conftest.$ac_objext
8441if { (ac_try="$ac_compile"
8442case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445esac
8446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_compile") 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest.$ac_objext; then
8457 ac_header_compiler=yes
8458else
8459 echo "$as_me: failed program was:" >&5
8460sed 's/^/| /' conftest.$ac_ext >&5
8461
8462 ac_header_compiler=no
8463fi
8464
8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8467echo "${ECHO_T}$ac_header_compiler" >&6; }
8468
8469# Is the header present?
8470{ echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
8471echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; }
8472cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
8478#include <sys/timeb.h>
8479_ACEOF
8480if { (ac_try="$ac_cpp conftest.$ac_ext"
8481case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484esac
8485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } >/dev/null && {
8493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8494 test ! -s conftest.err
8495 }; then
8496 ac_header_preproc=yes
8497else
8498 echo "$as_me: failed program was:" >&5
8499sed 's/^/| /' conftest.$ac_ext >&5
8500
8501 ac_header_preproc=no
8502fi
8503
8504rm -f conftest.err conftest.$ac_ext
8505{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8506echo "${ECHO_T}$ac_header_preproc" >&6; }
8507
8508# So? What about this header?
8509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8510 yes:no: )
8511 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8512echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
8514echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
8515 ac_header_preproc=yes
8516 ;;
8517 no:yes:* )
8518 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
8519echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
8521echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
8523echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
8525echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
8527echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
8529echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
8530
8531 ;;
8532esac
8533{ echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8534echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
8535if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8537else
8538 ac_cv_header_sys_timeb_h=$ac_header_preproc
8539fi
8540{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8541echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
8542
8543fi
8544if test $ac_cv_header_sys_timeb_h = yes; then
8545 cat >>confdefs.h <<\_ACEOF
8546#define PJ_HAS_SYS_TIMEB_H 1
8547_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00008548
Sauw Mingbe3771a2010-08-27 06:46:29 +00008549fi
8550
Sauw Mingbe3771a2010-08-27 06:46:29 +00008551
Sauw Ming6e6c2152010-12-14 13:03:10 +00008552if test "${ac_cv_header_sys_types_h+set}" = set; then
8553 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
8554echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
8555if test "${ac_cv_header_sys_types_h+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557fi
8558{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8559echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
8560else
8561 # Is the header compilable?
8562{ echo "$as_me:$LINENO: checking sys/types.h usability" >&5
8563echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
8564cat >conftest.$ac_ext <<_ACEOF
8565/* confdefs.h. */
8566_ACEOF
8567cat confdefs.h >>conftest.$ac_ext
8568cat >>conftest.$ac_ext <<_ACEOF
8569/* end confdefs.h. */
8570$ac_includes_default
8571#include <sys/types.h>
8572_ACEOF
8573rm -f conftest.$ac_objext
8574if { (ac_try="$ac_compile"
8575case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578esac
8579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } && {
8587 test -z "$ac_c_werror_flag" ||
8588 test ! -s conftest.err
8589 } && test -s conftest.$ac_objext; then
8590 ac_header_compiler=yes
8591else
8592 echo "$as_me: failed program was:" >&5
8593sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 ac_header_compiler=no
8596fi
8597
8598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8600echo "${ECHO_T}$ac_header_compiler" >&6; }
8601
8602# Is the header present?
8603{ echo "$as_me:$LINENO: checking sys/types.h presence" >&5
8604echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
8605cat >conftest.$ac_ext <<_ACEOF
8606/* confdefs.h. */
8607_ACEOF
8608cat confdefs.h >>conftest.$ac_ext
8609cat >>conftest.$ac_ext <<_ACEOF
8610/* end confdefs.h. */
8611#include <sys/types.h>
8612_ACEOF
8613if { (ac_try="$ac_cpp conftest.$ac_ext"
8614case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8617esac
8618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } >/dev/null && {
8626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 }; then
8629 ac_header_preproc=yes
8630else
8631 echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634 ac_header_preproc=no
8635fi
8636
8637rm -f conftest.err conftest.$ac_ext
8638{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8639echo "${ECHO_T}$ac_header_preproc" >&6; }
8640
8641# So? What about this header?
8642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8643 yes:no: )
8644 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8645echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8647echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8648 ac_header_preproc=yes
8649 ;;
8650 no:yes:* )
8651 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8652echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8654echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8656echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8658echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8660echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8662echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
8663
8664 ;;
8665esac
8666{ echo "$as_me:$LINENO: checking for sys/types.h" >&5
8667echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
8668if test "${ac_cv_header_sys_types_h+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670else
8671 ac_cv_header_sys_types_h=$ac_header_preproc
8672fi
8673{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8674echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
8675
8676fi
8677if test $ac_cv_header_sys_types_h = yes; then
8678 cat >>confdefs.h <<\_ACEOF
8679#define PJ_HAS_SYS_TYPES_H 1
8680_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00008681
Benny Prijono46bd0842010-02-12 14:12:41 +00008682fi
8683
Benny Prijono46bd0842010-02-12 14:12:41 +00008684
Sauw Ming6e6c2152010-12-14 13:03:10 +00008685if test "${ac_cv_header_sys_filio_h+set}" = set; then
8686 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
8687echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
8688if test "${ac_cv_header_sys_filio_h+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690fi
8691{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
8692echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
8693else
8694 # Is the header compilable?
8695{ echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
8696echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; }
8697cat >conftest.$ac_ext <<_ACEOF
8698/* confdefs.h. */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h. */
8703$ac_includes_default
8704#include <sys/filio.h>
8705_ACEOF
8706rm -f conftest.$ac_objext
8707if { (ac_try="$ac_compile"
8708case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8723 ac_header_compiler=yes
8724else
8725 echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_header_compiler=no
8729fi
8730
8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8733echo "${ECHO_T}$ac_header_compiler" >&6; }
8734
8735# Is the header present?
8736{ echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
8737echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; }
8738cat >conftest.$ac_ext <<_ACEOF
8739/* confdefs.h. */
8740_ACEOF
8741cat confdefs.h >>conftest.$ac_ext
8742cat >>conftest.$ac_ext <<_ACEOF
8743/* end confdefs.h. */
8744#include <sys/filio.h>
8745_ACEOF
8746if { (ac_try="$ac_cpp conftest.$ac_ext"
8747case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750esac
8751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } >/dev/null && {
8759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8760 test ! -s conftest.err
8761 }; then
8762 ac_header_preproc=yes
8763else
8764 echo "$as_me: failed program was:" >&5
8765sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 ac_header_preproc=no
8768fi
8769
8770rm -f conftest.err conftest.$ac_ext
8771{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8772echo "${ECHO_T}$ac_header_preproc" >&6; }
8773
8774# So? What about this header?
8775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8776 yes:no: )
8777 { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8778echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
8780echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
8781 ac_header_preproc=yes
8782 ;;
8783 no:yes:* )
8784 { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
8785echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
8786 { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5
8787echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
8789echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5
8791echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
8793echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
8795echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
8796
8797 ;;
8798esac
8799{ echo "$as_me:$LINENO: checking for sys/filio.h" >&5
8800echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
8801if test "${ac_cv_header_sys_filio_h+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803else
8804 ac_cv_header_sys_filio_h=$ac_header_preproc
8805fi
8806{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
8807echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
8808
8809fi
8810if test $ac_cv_header_sys_filio_h = yes; then
8811 cat >>confdefs.h <<\_ACEOF
8812#define PJ_HAS_SYS_FILIO_H 1
8813_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00008814
Sauw Mingbe3771a2010-08-27 06:46:29 +00008815fi
8816
Sauw Mingbe3771a2010-08-27 06:46:29 +00008817
Sauw Ming6e6c2152010-12-14 13:03:10 +00008818if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8819 { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5
8820echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; }
8821if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8823fi
8824{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5
8825echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; }
8826else
8827 # Is the header compilable?
8828{ echo "$as_me:$LINENO: checking sys/sockio.h usability" >&5
8829echo $ECHO_N "checking sys/sockio.h usability... $ECHO_C" >&6; }
8830cat >conftest.$ac_ext <<_ACEOF
8831/* confdefs.h. */
8832_ACEOF
8833cat confdefs.h >>conftest.$ac_ext
8834cat >>conftest.$ac_ext <<_ACEOF
8835/* end confdefs.h. */
8836$ac_includes_default
8837#include <sys/sockio.h>
8838_ACEOF
8839rm -f conftest.$ac_objext
8840if { (ac_try="$ac_compile"
8841case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8844esac
8845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.$ac_objext; then
8856 ac_header_compiler=yes
8857else
8858 echo "$as_me: failed program was:" >&5
8859sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 ac_header_compiler=no
8862fi
8863
8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8866echo "${ECHO_T}$ac_header_compiler" >&6; }
8867
8868# Is the header present?
8869{ echo "$as_me:$LINENO: checking sys/sockio.h presence" >&5
8870echo $ECHO_N "checking sys/sockio.h presence... $ECHO_C" >&6; }
8871cat >conftest.$ac_ext <<_ACEOF
8872/* confdefs.h. */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h. */
8877#include <sys/sockio.h>
8878_ACEOF
8879if { (ac_try="$ac_cpp conftest.$ac_ext"
8880case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883esac
8884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } >/dev/null && {
8892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 }; then
8895 ac_header_preproc=yes
8896else
8897 echo "$as_me: failed program was:" >&5
8898sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ac_header_preproc=no
8901fi
8902
8903rm -f conftest.err conftest.$ac_ext
8904{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8905echo "${ECHO_T}$ac_header_preproc" >&6; }
8906
8907# So? What about this header?
8908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8909 yes:no: )
8910 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8911echo "$as_me: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8912 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the compiler's result" >&5
8913echo "$as_me: WARNING: sys/sockio.h: proceeding with the compiler's result" >&2;}
8914 ac_header_preproc=yes
8915 ;;
8916 no:yes:* )
8917 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: present but cannot be compiled" >&5
8918echo "$as_me: WARNING: sys/sockio.h: present but cannot be compiled" >&2;}
8919 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&5
8920echo "$as_me: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&2;}
8921 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: see the Autoconf documentation" >&5
8922echo "$as_me: WARNING: sys/sockio.h: see the Autoconf documentation" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&5
8924echo "$as_me: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&5
8926echo "$as_me: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&5
8928echo "$as_me: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&2;}
8929
8930 ;;
8931esac
8932{ echo "$as_me:$LINENO: checking for sys/sockio.h" >&5
8933echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; }
8934if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936else
8937 ac_cv_header_sys_sockio_h=$ac_header_preproc
8938fi
8939{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5
8940echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; }
8941
8942fi
8943if test $ac_cv_header_sys_sockio_h = yes; then
8944 cat >>confdefs.h <<\_ACEOF
8945#define PJ_HAS_SYS_SOCKIO_H 1
8946_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00008947
Sauw Mingbe3771a2010-08-27 06:46:29 +00008948fi
8949
Sauw Mingbe3771a2010-08-27 06:46:29 +00008950
Sauw Ming6e6c2152010-12-14 13:03:10 +00008951if test "${ac_cv_header_time_h+set}" = set; then
8952 { echo "$as_me:$LINENO: checking for time.h" >&5
8953echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
8954if test "${ac_cv_header_time_h+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8956fi
8957{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8958echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
8959else
8960 # Is the header compilable?
8961{ echo "$as_me:$LINENO: checking time.h usability" >&5
8962echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
8963cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
8969$ac_includes_default
8970#include <time.h>
8971_ACEOF
8972rm -f conftest.$ac_objext
8973if { (ac_try="$ac_compile"
8974case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977esac
8978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_compile") 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.$ac_objext; then
8989 ac_header_compiler=yes
8990else
8991 echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 ac_header_compiler=no
8995fi
8996
8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8999echo "${ECHO_T}$ac_header_compiler" >&6; }
9000
9001# Is the header present?
9002{ echo "$as_me:$LINENO: checking time.h presence" >&5
9003echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
9004cat >conftest.$ac_ext <<_ACEOF
9005/* confdefs.h. */
9006_ACEOF
9007cat confdefs.h >>conftest.$ac_ext
9008cat >>conftest.$ac_ext <<_ACEOF
9009/* end confdefs.h. */
9010#include <time.h>
9011_ACEOF
9012if { (ac_try="$ac_cpp conftest.$ac_ext"
9013case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016esac
9017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } >/dev/null && {
9025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9026 test ! -s conftest.err
9027 }; then
9028 ac_header_preproc=yes
9029else
9030 echo "$as_me: failed program was:" >&5
9031sed 's/^/| /' conftest.$ac_ext >&5
9032
9033 ac_header_preproc=no
9034fi
9035
9036rm -f conftest.err conftest.$ac_ext
9037{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9038echo "${ECHO_T}$ac_header_preproc" >&6; }
9039
9040# So? What about this header?
9041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9042 yes:no: )
9043 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
9044echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
9046echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
9047 ac_header_preproc=yes
9048 ;;
9049 no:yes:* )
9050 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
9051echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
9053echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
9054 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
9055echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
9056 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
9057echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
9059echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
9061echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
9062
9063 ;;
9064esac
9065{ echo "$as_me:$LINENO: checking for time.h" >&5
9066echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
9067if test "${ac_cv_header_time_h+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9069else
9070 ac_cv_header_time_h=$ac_header_preproc
9071fi
9072{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
9073echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
9074
9075fi
9076if test $ac_cv_header_time_h = yes; then
9077 cat >>confdefs.h <<\_ACEOF
9078#define PJ_HAS_TIME_H 1
9079_ACEOF
Benny Prijono1d61ba52009-10-24 00:00:40 +00009080
Benny Prijono1d61ba52009-10-24 00:00:40 +00009081fi
9082
Benny Prijono1d61ba52009-10-24 00:00:40 +00009083
Sauw Ming6e6c2152010-12-14 13:03:10 +00009084if test "${ac_cv_header_unistd_h+set}" = set; then
9085 { echo "$as_me:$LINENO: checking for unistd.h" >&5
9086echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
9087if test "${ac_cv_header_unistd_h+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089fi
9090{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
9091echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
9092else
9093 # Is the header compilable?
9094{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
9095echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
9096cat >conftest.$ac_ext <<_ACEOF
9097/* confdefs.h. */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h. */
9102$ac_includes_default
9103#include <unistd.h>
9104_ACEOF
9105rm -f conftest.$ac_objext
9106if { (ac_try="$ac_compile"
9107case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110esac
9111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_compile") 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } && {
9119 test -z "$ac_c_werror_flag" ||
9120 test ! -s conftest.err
9121 } && test -s conftest.$ac_objext; then
9122 ac_header_compiler=yes
9123else
9124 echo "$as_me: failed program was:" >&5
9125sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ac_header_compiler=no
9128fi
9129
9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9132echo "${ECHO_T}$ac_header_compiler" >&6; }
9133
9134# Is the header present?
9135{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
9136echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
9137cat >conftest.$ac_ext <<_ACEOF
9138/* confdefs.h. */
9139_ACEOF
9140cat confdefs.h >>conftest.$ac_ext
9141cat >>conftest.$ac_ext <<_ACEOF
9142/* end confdefs.h. */
9143#include <unistd.h>
9144_ACEOF
9145if { (ac_try="$ac_cpp conftest.$ac_ext"
9146case "(($ac_try" in
9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9149esac
9150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } >/dev/null && {
9158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 }; then
9161 ac_header_preproc=yes
9162else
9163 echo "$as_me: failed program was:" >&5
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
9166 ac_header_preproc=no
9167fi
9168
9169rm -f conftest.err conftest.$ac_ext
9170{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9171echo "${ECHO_T}$ac_header_preproc" >&6; }
9172
9173# So? What about this header?
9174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9175 yes:no: )
9176 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
9177echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9178 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
9179echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
9180 ac_header_preproc=yes
9181 ;;
9182 no:yes:* )
9183 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
9184echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
9186echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
9188echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
9190echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
9192echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
9194echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
9195
9196 ;;
9197esac
9198{ echo "$as_me:$LINENO: checking for unistd.h" >&5
9199echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
9200if test "${ac_cv_header_unistd_h+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203 ac_cv_header_unistd_h=$ac_header_preproc
9204fi
9205{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
9206echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
9207
9208fi
9209if test $ac_cv_header_unistd_h = yes; then
9210 cat >>confdefs.h <<\_ACEOF
9211#define PJ_HAS_UNISTD_H 1
9212_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00009213
Sauw Mingbe3771a2010-08-27 06:46:29 +00009214fi
9215
Sauw Mingbe3771a2010-08-27 06:46:29 +00009216
Sauw Ming6e6c2152010-12-14 13:03:10 +00009217if test "${ac_cv_header_winsock_h+set}" = set; then
9218 { echo "$as_me:$LINENO: checking for winsock.h" >&5
9219echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
9220if test "${ac_cv_header_winsock_h+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9222fi
9223{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
9224echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
9225else
9226 # Is the header compilable?
9227{ echo "$as_me:$LINENO: checking winsock.h usability" >&5
9228echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
9229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235$ac_includes_default
9236#include <winsock.h>
9237_ACEOF
9238rm -f conftest.$ac_objext
9239if { (ac_try="$ac_compile"
9240case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9243esac
9244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_compile") 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } && {
9252 test -z "$ac_c_werror_flag" ||
9253 test ! -s conftest.err
9254 } && test -s conftest.$ac_objext; then
9255 ac_header_compiler=yes
9256else
9257 echo "$as_me: failed program was:" >&5
9258sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 ac_header_compiler=no
9261fi
9262
9263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9265echo "${ECHO_T}$ac_header_compiler" >&6; }
9266
9267# Is the header present?
9268{ echo "$as_me:$LINENO: checking winsock.h presence" >&5
9269echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
9270cat >conftest.$ac_ext <<_ACEOF
9271/* confdefs.h. */
9272_ACEOF
9273cat confdefs.h >>conftest.$ac_ext
9274cat >>conftest.$ac_ext <<_ACEOF
9275/* end confdefs.h. */
9276#include <winsock.h>
9277_ACEOF
9278if { (ac_try="$ac_cpp conftest.$ac_ext"
9279case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282esac
9283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } >/dev/null && {
9291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9292 test ! -s conftest.err
9293 }; then
9294 ac_header_preproc=yes
9295else
9296 echo "$as_me: failed program was:" >&5
9297sed 's/^/| /' conftest.$ac_ext >&5
9298
9299 ac_header_preproc=no
9300fi
9301
9302rm -f conftest.err conftest.$ac_ext
9303{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9304echo "${ECHO_T}$ac_header_preproc" >&6; }
9305
9306# So? What about this header?
9307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9308 yes:no: )
9309 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
9310echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
9312echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
9313 ac_header_preproc=yes
9314 ;;
9315 no:yes:* )
9316 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
9317echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
9319echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
9321echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
9323echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
9324 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
9325echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
9326 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
9327echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
9328
9329 ;;
9330esac
9331{ echo "$as_me:$LINENO: checking for winsock.h" >&5
9332echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
9333if test "${ac_cv_header_winsock_h+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335else
9336 ac_cv_header_winsock_h=$ac_header_preproc
9337fi
9338{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
9339echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
9340
9341fi
9342if test $ac_cv_header_winsock_h = yes; then
9343 cat >>confdefs.h <<\_ACEOF
9344#define PJ_HAS_WINSOCK_H 1
9345_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00009346
Sauw Mingbe3771a2010-08-27 06:46:29 +00009347fi
9348
Sauw Mingbe3771a2010-08-27 06:46:29 +00009349
Sauw Ming6e6c2152010-12-14 13:03:10 +00009350if test "${ac_cv_header_winsock2_h+set}" = set; then
9351 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
9352echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9353if test "${ac_cv_header_winsock2_h+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9355fi
9356{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9357echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9358else
9359 # Is the header compilable?
9360{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
9361echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
9362cat >conftest.$ac_ext <<_ACEOF
9363/* confdefs.h. */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
9367/* end confdefs.h. */
9368$ac_includes_default
9369#include <winsock2.h>
9370_ACEOF
9371rm -f conftest.$ac_objext
9372if { (ac_try="$ac_compile"
9373case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376esac
9377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_compile") 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.$ac_objext; then
9388 ac_header_compiler=yes
9389else
9390 echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 ac_header_compiler=no
9394fi
9395
9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9398echo "${ECHO_T}$ac_header_compiler" >&6; }
9399
9400# Is the header present?
9401{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
9402echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
9403cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h. */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h. */
9409#include <winsock2.h>
9410_ACEOF
9411if { (ac_try="$ac_cpp conftest.$ac_ext"
9412case "(($ac_try" in
9413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9415esac
9416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9418 ac_status=$?
9419 grep -v '^ *+' conftest.er1 >conftest.err
9420 rm -f conftest.er1
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } >/dev/null && {
9424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9425 test ! -s conftest.err
9426 }; then
9427 ac_header_preproc=yes
9428else
9429 echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_header_preproc=no
9433fi
9434
9435rm -f conftest.err conftest.$ac_ext
9436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9437echo "${ECHO_T}$ac_header_preproc" >&6; }
9438
9439# So? What about this header?
9440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9441 yes:no: )
9442 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
9443echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
9445echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
9446 ac_header_preproc=yes
9447 ;;
9448 no:yes:* )
9449 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
9450echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
9452echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
9454echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
9456echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
9458echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
9460echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
9461
9462 ;;
9463esac
9464{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
9465echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9466if test "${ac_cv_header_winsock2_h+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468else
9469 ac_cv_header_winsock2_h=$ac_header_preproc
9470fi
9471{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9472echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9473
9474fi
9475if test $ac_cv_header_winsock2_h = yes; then
9476 cat >>confdefs.h <<\_ACEOF
9477#define PJ_HAS_WINSOCK2_H 1
9478_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00009479
Sauw Mingbe3771a2010-08-27 06:46:29 +00009480fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00009481
Benny Prijono46bd0842010-02-12 14:12:41 +00009482
Sauw Ming6e6c2152010-12-14 13:03:10 +00009483{ echo "$as_me:$LINENO: checking for mswsock.h" >&5
9484echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; }
9485if test "${ac_cv_header_mswsock_h+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488 cat >conftest.$ac_ext <<_ACEOF
9489/* confdefs.h. */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h. */
9494#if PJ_HAS_WINSOCK2_H
Benny Prijonoa9948e62008-03-25 14:03:01 +00009495 # include <winsock2.h>
9496 #elif PJ_HAS_WINSOCK_H
9497 # include <winsock.h>
9498 #endif
9499
Sauw Ming6e6c2152010-12-14 13:03:10 +00009500
9501#include <mswsock.h>
9502_ACEOF
9503rm -f conftest.$ac_objext
9504if { (ac_try="$ac_compile"
9505case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508esac
9509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_compile") 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } && {
9517 test -z "$ac_c_werror_flag" ||
9518 test ! -s conftest.err
9519 } && test -s conftest.$ac_objext; then
9520 ac_cv_header_mswsock_h=yes
9521else
9522 echo "$as_me: failed program was:" >&5
9523sed 's/^/| /' conftest.$ac_ext >&5
9524
9525 ac_cv_header_mswsock_h=no
9526fi
9527
9528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9529fi
9530{ echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
9531echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; }
9532if test $ac_cv_header_mswsock_h = yes; then
9533 cat >>confdefs.h <<\_ACEOF
9534#define PJ_HAS_MSWSOCK_H 1
9535_ACEOF
Benny Prijonoa9948e62008-03-25 14:03:01 +00009536
9537fi
9538
9539
Sauw Ming6e6c2152010-12-14 13:03:10 +00009540if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9541 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
9542echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
9543if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545fi
9546{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
9547echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
9548else
9549 # Is the header compilable?
9550{ echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5
9551echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; }
9552cat >conftest.$ac_ext <<_ACEOF
9553/* confdefs.h. */
9554_ACEOF
9555cat confdefs.h >>conftest.$ac_ext
9556cat >>conftest.$ac_ext <<_ACEOF
9557/* end confdefs.h. */
9558$ac_includes_default
9559#include <ws2tcpip.h>
9560_ACEOF
9561rm -f conftest.$ac_objext
9562if { (ac_try="$ac_compile"
9563case "(($ac_try" in
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9566esac
9567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_compile") 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest.$ac_objext; then
9578 ac_header_compiler=yes
9579else
9580 echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 ac_header_compiler=no
9584fi
9585
9586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9588echo "${ECHO_T}$ac_header_compiler" >&6; }
9589
9590# Is the header present?
9591{ echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5
9592echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; }
9593cat >conftest.$ac_ext <<_ACEOF
9594/* confdefs.h. */
9595_ACEOF
9596cat confdefs.h >>conftest.$ac_ext
9597cat >>conftest.$ac_ext <<_ACEOF
9598/* end confdefs.h. */
9599#include <ws2tcpip.h>
9600_ACEOF
9601if { (ac_try="$ac_cpp conftest.$ac_ext"
9602case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605esac
9606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } >/dev/null && {
9614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 }; then
9617 ac_header_preproc=yes
9618else
9619 echo "$as_me: failed program was:" >&5
9620sed 's/^/| /' conftest.$ac_ext >&5
9621
9622 ac_header_preproc=no
9623fi
9624
9625rm -f conftest.err conftest.$ac_ext
9626{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627echo "${ECHO_T}$ac_header_preproc" >&6; }
9628
9629# So? What about this header?
9630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9631 yes:no: )
9632 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5
9633echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5
9635echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;}
9636 ac_header_preproc=yes
9637 ;;
9638 no:yes:* )
9639 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5
9640echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5
9642echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5
9644echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;}
9645 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5
9646echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5
9648echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5
9650echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;}
9651
9652 ;;
9653esac
9654{ echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
9655echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
9656if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658else
9659 ac_cv_header_ws2tcpip_h=$ac_header_preproc
9660fi
9661{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
9662echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
9663
9664fi
9665if test $ac_cv_header_ws2tcpip_h = yes; then
9666 cat >>confdefs.h <<\_ACEOF
9667#define PJ_HAS_WS2TCPIP_H 1
9668_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00009669
9670fi
9671
9672
Sauw Ming6e6c2152010-12-14 13:03:10 +00009673if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9674 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9675echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
9676if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678fi
9679{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9680echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
9681else
9682 # Is the header compilable?
9683{ echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
9684echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; }
9685cat >conftest.$ac_ext <<_ACEOF
9686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
9691$ac_includes_default
9692#include <uuid/uuid.h>
9693_ACEOF
9694rm -f conftest.$ac_objext
9695if { (ac_try="$ac_compile"
9696case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699esac
9700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_compile") 2>conftest.er1
9702 ac_status=$?
9703 grep -v '^ *+' conftest.er1 >conftest.err
9704 rm -f conftest.er1
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && {
9708 test -z "$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 } && test -s conftest.$ac_objext; then
9711 ac_header_compiler=yes
9712else
9713 echo "$as_me: failed program was:" >&5
9714sed 's/^/| /' conftest.$ac_ext >&5
9715
9716 ac_header_compiler=no
9717fi
9718
9719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721echo "${ECHO_T}$ac_header_compiler" >&6; }
9722
9723# Is the header present?
9724{ echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
9725echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; }
9726cat >conftest.$ac_ext <<_ACEOF
9727/* confdefs.h. */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h. */
9732#include <uuid/uuid.h>
9733_ACEOF
9734if { (ac_try="$ac_cpp conftest.$ac_ext"
9735case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } >/dev/null && {
9747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 }; then
9750 ac_header_preproc=yes
9751else
9752 echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_header_preproc=no
9756fi
9757
9758rm -f conftest.err conftest.$ac_ext
9759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9760echo "${ECHO_T}$ac_header_preproc" >&6; }
9761
9762# So? What about this header?
9763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9764 yes:no: )
9765 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
9766echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
9768echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
9769 ac_header_preproc=yes
9770 ;;
9771 no:yes:* )
9772 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
9773echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
9774 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
9775echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
9776 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
9777echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
9778 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
9779echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
9780 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
9781echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
9783echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
9784
9785 ;;
9786esac
9787{ echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9788echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
9789if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791else
9792 ac_cv_header_uuid_uuid_h=$ac_header_preproc
9793fi
9794{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9795echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
9796
9797fi
9798if test $ac_cv_header_uuid_uuid_h = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00009799 ac_has_uuid_h=1
9800fi
9801
9802
Sauw Ming6e6c2152010-12-14 13:03:10 +00009803{ echo "$as_me:$LINENO: checking for net/if.h" >&5
9804echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
9805if test "${ac_cv_header_net_if_h+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807else
9808 cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h. */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h. */
9814#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00009815 # include <sys/types.h>
9816 #endif
9817 #if PJ_HAS_SYS_SOCKET_H
9818
Benny Prijono188ba7e2008-03-25 13:53:16 +00009819 # include <sys/socket.h>
9820 #endif
9821
Sauw Ming6e6c2152010-12-14 13:03:10 +00009822
9823#include <net/if.h>
9824_ACEOF
9825rm -f conftest.$ac_objext
9826if { (ac_try="$ac_compile"
9827case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830esac
9831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_cv_header_net_if_h=yes
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_cv_header_net_if_h=no
9848fi
9849
9850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851fi
9852{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
9853echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
9854if test $ac_cv_header_net_if_h = yes; then
9855 cat >>confdefs.h <<\_ACEOF
9856#define PJ_HAS_NET_IF_H 1
9857_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +00009858
9859fi
9860
Benny Prijono188ba7e2008-03-25 13:53:16 +00009861
Sauw Ming6e6c2152010-12-14 13:03:10 +00009862{ echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
9863echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009864cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009865#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009866_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009867
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009868
Sauw Ming6e6c2152010-12-14 13:03:10 +00009869{ echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
9870echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
9871cat >>confdefs.h <<\_ACEOF
9872#define PJ_HAS_ERRNO_VAR 1
9873_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009874
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009875
Sauw Ming6e6c2152010-12-14 13:03:10 +00009876{ echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
9877echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
9878cat >>confdefs.h <<\_ACEOF
9879#define PJ_HAS_HIGH_RES_TIMER 1
9880_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009881
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009882
Sauw Ming6e6c2152010-12-14 13:03:10 +00009883{ echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
9884echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; }
9885cat >>confdefs.h <<\_ACEOF
9886#define PJ_HAS_MALLOC 1
9887_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009888
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009889
Sauw Ming6e6c2152010-12-14 13:03:10 +00009890{ echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
9891echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
9892cat >>confdefs.h <<\_ACEOF
9893#define PJ_NATIVE_STRING_IS_UNICODE 0
9894_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009895
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009896
Sauw Ming6e6c2152010-12-14 13:03:10 +00009897{ echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
9898echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
9899cat >>confdefs.h <<\_ACEOF
9900#define PJ_ATOMIC_VALUE_TYPE long
9901_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009902
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009903
Sauw Ming6e6c2152010-12-14 13:03:10 +00009904{ echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
9905echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; }
9906cat >conftest.$ac_ext <<_ACEOF
9907/* confdefs.h. */
9908_ACEOF
9909cat confdefs.h >>conftest.$ac_ext
9910cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009911/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009912#include <sys/types.h>
9913 #include <sys/socket.h>
9914 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009915int
9916main ()
9917{
9918inet_aton(0, 0);
9919 ;
9920 return 0;
9921}
9922_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00009923rm -f conftest.$ac_objext
9924if { (ac_try="$ac_compile"
9925case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9940 cat >>confdefs.h <<\_ACEOF
9941#define PJ_SOCK_HAS_INET_ATON 1
9942_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009943
Sauw Ming6e6c2152010-12-14 13:03:10 +00009944 { echo "$as_me:$LINENO: result: yes" >&5
9945echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009946else
Sauw Ming6e6c2152010-12-14 13:03:10 +00009947 echo "$as_me: failed program was:" >&5
9948sed 's/^/| /' conftest.$ac_ext >&5
9949
9950 { echo "$as_me:$LINENO: result: no" >&5
9951echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009952fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00009953
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955
Sauw Ming6e6c2152010-12-14 13:03:10 +00009956{ echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
9957echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; }
9958cat >conftest.$ac_ext <<_ACEOF
9959/* confdefs.h. */
9960_ACEOF
9961cat confdefs.h >>conftest.$ac_ext
9962cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009963/* end confdefs.h. */
9964#include <sys/types.h>
9965 #include <sys/socket.h>
9966 #include <arpa/inet.h>
9967int
9968main ()
9969{
9970inet_pton(0, 0, 0);
9971 ;
9972 return 0;
9973}
9974_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +00009975rm -f conftest.$ac_objext
9976if { (ac_try="$ac_compile"
9977case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980esac
9981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_compile") 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest.$ac_objext; then
9992 cat >>confdefs.h <<\_ACEOF
9993#define PJ_SOCK_HAS_INET_PTON 1
9994_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009995
Sauw Ming6e6c2152010-12-14 13:03:10 +00009996 { echo "$as_me:$LINENO: result: yes" >&5
9997echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009998else
Sauw Ming6e6c2152010-12-14 13:03:10 +00009999 echo "$as_me: failed program was:" >&5
10000sed 's/^/| /' conftest.$ac_ext >&5
10001
10002 { echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010004fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010005
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007
Sauw Ming6e6c2152010-12-14 13:03:10 +000010008{ echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
10009echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; }
10010cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010015/* end confdefs.h. */
10016#include <sys/types.h>
10017 #include <sys/socket.h>
10018 #include <arpa/inet.h>
10019int
10020main ()
10021{
10022inet_ntop(0, 0, 0, 0);
10023 ;
10024 return 0;
10025}
10026_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010027rm -f conftest.$ac_objext
10028if { (ac_try="$ac_compile"
10029case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032esac
10033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_compile") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest.$ac_objext; then
10044 cat >>confdefs.h <<\_ACEOF
10045#define PJ_SOCK_HAS_INET_NTOP 1
10046_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010047
Sauw Ming6e6c2152010-12-14 13:03:10 +000010048 { echo "$as_me:$LINENO: result: yes" >&5
10049echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010050else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 { echo "$as_me:$LINENO: result: no" >&5
10055echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010056fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010057
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059
Sauw Ming6e6c2152010-12-14 13:03:10 +000010060{ echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
10061echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; }
10062cat >conftest.$ac_ext <<_ACEOF
10063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010067/* end confdefs.h. */
10068#include <sys/types.h>
10069 #include <sys/socket.h>
10070 #include <netdb.h>
10071int
10072main ()
10073{
10074getaddrinfo(0, 0, 0, 0);
10075 ;
10076 return 0;
10077}
10078_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010079rm -f conftest.$ac_objext
10080if { (ac_try="$ac_compile"
10081case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084esac
10085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.$ac_objext; then
10096 cat >>confdefs.h <<\_ACEOF
10097#define PJ_SOCK_HAS_GETADDRINFO 1
10098_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010099
Sauw Ming6e6c2152010-12-14 13:03:10 +000010100 { echo "$as_me:$LINENO: result: yes" >&5
10101echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010102else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010103 echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106 { echo "$as_me:$LINENO: result: no" >&5
10107echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010108fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010109
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10111
Sauw Ming6e6c2152010-12-14 13:03:10 +000010112{ echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
10113echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; }
10114cat >conftest.$ac_ext <<_ACEOF
10115/* confdefs.h. */
10116_ACEOF
10117cat confdefs.h >>conftest.$ac_ext
10118cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010119/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +000010120#include <sys/types.h>
10121 #include <sys/socket.h>
10122 #include <netinet/in.h>
10123 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010124int
10125main ()
10126{
10127struct sockaddr_in a; a.sin_len=0;
10128 ;
10129 return 0;
10130}
10131_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010132rm -f conftest.$ac_objext
10133if { (ac_try="$ac_compile"
10134case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137esac
10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_compile") 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest.$ac_objext; then
10149 cat >>confdefs.h <<\_ACEOF
10150#define PJ_SOCKADDR_HAS_LEN 1
10151_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010152
Sauw Ming6e6c2152010-12-14 13:03:10 +000010153 { echo "$as_me:$LINENO: result: yes" >&5
10154echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010155else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010156 echo "$as_me: failed program was:" >&5
10157sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 { echo "$as_me:$LINENO: result: no" >&5
10160echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010161fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010162
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164
Sauw Ming6e6c2152010-12-14 13:03:10 +000010165{ echo "$as_me:$LINENO: checking if socklen_t is available" >&5
10166echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; }
10167cat >conftest.$ac_ext <<_ACEOF
10168/* confdefs.h. */
10169_ACEOF
10170cat confdefs.h >>conftest.$ac_ext
10171cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010172/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +000010173#include <sys/types.h>
10174 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +000010175int
10176main ()
10177{
10178socklen_t xxx = 0;
10179 ;
10180 return 0;
10181}
10182_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010183rm -f conftest.$ac_objext
10184if { (ac_try="$ac_compile"
10185case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188esac
10189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_compile") 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } && {
10197 test -z "$ac_c_werror_flag" ||
10198 test ! -s conftest.err
10199 } && test -s conftest.$ac_objext; then
10200 cat >>confdefs.h <<\_ACEOF
10201#define PJ_HAS_SOCKLEN_T 1
10202_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +000010203
Sauw Ming6e6c2152010-12-14 13:03:10 +000010204 { echo "$as_me:$LINENO: result: yes" >&5
10205echo "${ECHO_T}yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +000010206else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010207 echo "$as_me: failed program was:" >&5
10208sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 { echo "$as_me:$LINENO: result: no" >&5
10211echo "${ECHO_T}no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +000010212fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010213
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215
Sauw Ming6e6c2152010-12-14 13:03:10 +000010216{ echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
10217echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010218case $target in
10219 *mingw* | *cygw* | *win32* | *w32* )
Sauw Ming6e6c2152010-12-14 13:03:10 +000010220 cat >>confdefs.h <<\_ACEOF
10221#define PJ_HAS_SO_ERROR 1
10222_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010223
Sauw Ming6e6c2152010-12-14 13:03:10 +000010224 { echo "$as_me:$LINENO: result: yes" >&5
10225echo "${ECHO_T}yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010226 ;;
10227 *)
Sauw Ming6e6c2152010-12-14 13:03:10 +000010228 cat >conftest.$ac_ext <<_ACEOF
10229/* confdefs.h. */
10230_ACEOF
10231cat confdefs.h >>conftest.$ac_ext
10232cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010233/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +000010234#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010235 #include <sys/socket.h>
10236 #include <netinet/in.h>
10237 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010238int
10239main ()
10240{
10241int i=SO_ERROR;
10242 ;
10243 return 0;
10244}
10245_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010246rm -f conftest.$ac_objext
10247if { (ac_try="$ac_compile"
10248case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251esac
10252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_compile") 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && {
10260 test -z "$ac_c_werror_flag" ||
10261 test ! -s conftest.err
10262 } && test -s conftest.$ac_objext; then
10263 cat >>confdefs.h <<\_ACEOF
10264#define PJ_HAS_SO_ERROR 1
10265_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010266
Sauw Ming6e6c2152010-12-14 13:03:10 +000010267 { echo "$as_me:$LINENO: result: yes" >&5
10268echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010269else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010270 echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 { echo "$as_me:$LINENO: result: no" >&5
10274echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010275fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010276
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010278 ;;
10279esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010280
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010281
Sauw Ming6e6c2152010-12-14 13:03:10 +000010282{ echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
10283echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; }
10284cat >conftest.$ac_ext <<_ACEOF
10285/* confdefs.h. */
10286_ACEOF
10287cat confdefs.h >>conftest.$ac_ext
10288cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010289/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010290#include <pthread.h>
10291int
10292main ()
10293{
10294pthread_rwlock_t *x;
10295 ;
10296 return 0;
10297}
10298_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010299rm -f conftest.$ac_objext
10300if { (ac_try="$ac_compile"
10301case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10304esac
10305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_compile") 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } && {
10313 test -z "$ac_c_werror_flag" ||
10314 test ! -s conftest.err
10315 } && test -s conftest.$ac_objext; then
10316 cat >>confdefs.h <<\_ACEOF
10317#define PJ_EMULATE_RWMUTEX 0
10318_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010319
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010320 ac_rwmutex="yes"
Sauw Ming6e6c2152010-12-14 13:03:10 +000010321 { echo "$as_me:$LINENO: result: yes" >&5
10322echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010323else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010324 echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
10327 cat >>confdefs.h <<\_ACEOF
10328#define PJ_EMULATE_RWMUTEX 1
10329_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010330
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010331 ac_rwmutex="no"
Sauw Ming6e6c2152010-12-14 13:03:10 +000010332 { echo "$as_me:$LINENO: result: no" >&5
10333echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010334fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010335
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010337
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010338if test "$ac_rwmutex" = "no"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000010339 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
10340echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; }
10341 cat >conftest.$ac_ext <<_ACEOF
10342/* confdefs.h. */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010346/* end confdefs.h. */
10347#define _POSIX_READER_WRITER_LOCKS
10348 #include <pthread.h>
10349int
10350main ()
10351{
10352pthread_rwlock_t *x;
10353 ;
10354 return 0;
10355}
10356_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010357rm -f conftest.$ac_objext
10358if { (ac_try="$ac_compile"
10359case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10362esac
10363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_compile") 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest.$ac_objext; then
10374 cat >>confdefs.h <<\_ACEOF
10375#define PJ_EMULATE_RWMUTEX 0
10376_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010377
10378 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000010379 { echo "$as_me:$LINENO: result: yes" >&5
10380echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010381else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010382 echo "$as_me: failed program was:" >&5
10383sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010384
Sauw Ming6e6c2152010-12-14 13:03:10 +000010385 cat >>confdefs.h <<\_ACEOF
10386#define PJ_EMULATE_RWMUTEX 1
10387_ACEOF
10388
10389 { echo "$as_me:$LINENO: result: no" >&5
10390echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010391fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010392
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10394fi
10395
Sauw Ming6e6c2152010-12-14 13:03:10 +000010396{ echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
10397echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; }
10398cat >conftest.$ac_ext <<_ACEOF
10399/* confdefs.h. */
10400_ACEOF
10401cat confdefs.h >>conftest.$ac_ext
10402cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010403/* end confdefs.h. */
10404#include <pthread.h>
10405int
10406main ()
10407{
10408pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
10409 ;
10410 return 0;
10411}
10412_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010413rm -f conftest.$ac_objext
10414if { (ac_try="$ac_compile"
10415case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418esac
10419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_compile") 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } && {
10427 test -z "$ac_c_werror_flag" ||
10428 test ! -s conftest.err
10429 } && test -s conftest.$ac_objext; then
10430 cat >>confdefs.h <<\_ACEOF
10431#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
10432_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010433
Sauw Ming6e6c2152010-12-14 13:03:10 +000010434 { echo "$as_me:$LINENO: result: yes" >&5
10435echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010436else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010437 echo "$as_me: failed program was:" >&5
10438sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 { echo "$as_me:$LINENO: result: no" >&5
10441echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010442fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010443
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10445
Sauw Ming6e6c2152010-12-14 13:03:10 +000010446{ echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
10447echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; }
10448cat >conftest.$ac_ext <<_ACEOF
10449/* confdefs.h. */
10450_ACEOF
10451cat confdefs.h >>conftest.$ac_ext
10452cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010453/* end confdefs.h. */
10454#include <pthread.h>
10455int
10456main ()
10457{
10458pthread_mutexattr_t attr;
10459 attr.recursive=1;
10460 ;
10461 return 0;
10462}
10463_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010464rm -f conftest.$ac_objext
10465if { (ac_try="$ac_compile"
10466case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469esac
10470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_compile") 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && {
10478 test -z "$ac_c_werror_flag" ||
10479 test ! -s conftest.err
10480 } && test -s conftest.$ac_objext; then
10481 cat >>confdefs.h <<\_ACEOF
10482#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
10483_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010484
Sauw Ming6e6c2152010-12-14 13:03:10 +000010485 { echo "$as_me:$LINENO: result: yes" >&5
10486echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010487else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010488 echo "$as_me: failed program was:" >&5
10489sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 { echo "$as_me:$LINENO: result: no" >&5
10492echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010493fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010494
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000010496
Benny Prijono99eec382008-09-18 21:22:16 +000010497
Sauw Ming6e6c2152010-12-14 13:03:10 +000010498{ echo "$as_me:$LINENO: checking ioqueue backend" >&5
10499echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010500# Check whether --enable-epoll was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000010501if test "${enable_epoll+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010502 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +000010503 ac_os_objs=ioqueue_epoll.o
Sauw Ming6e6c2152010-12-14 13:03:10 +000010504 { echo "$as_me:$LINENO: result: /dev/epoll" >&5
10505echo "${ECHO_T}/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +000010506
10507else
10508
10509 ac_os_objs=ioqueue_select.o
Sauw Ming6e6c2152010-12-14 13:03:10 +000010510 { echo "$as_me:$LINENO: result: select()" >&5
10511echo "${ECHO_T}select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +000010512
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010513fi
10514
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010515
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010516
10517case $target in
10518 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +000010519 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 +000010520 ;;
10521 *)
Benny Prijono99eec382008-09-18 21:22:16 +000010522 ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
Benny Prijono4e48b512007-05-16 13:41:00 +000010523 # UUID
10524 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
10525 ac_os_objs="$ac_os_objs guid_uuid.o"
10526 else
10527 ac_os_objs="$ac_os_objs guid_simple.o"
10528 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010529 ;;
10530esac
10531
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010532
10533
10534
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010535ac_external_speex=0
10536
10537
10538# Check whether --with-external-speex was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000010539if test "${with_external_speex+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010540 withval=$with_external_speex;
10541 if test "x$with_external_speex" != "xno"; then
10542 # Test Speex installation
Sauw Ming6e6c2152010-12-14 13:03:10 +000010543 { echo "$as_me:$LINENO: checking if external Speex devkit is installed" >&5
10544echo $ECHO_N "checking if external Speex devkit is installed... $ECHO_C" >&6; }
10545 cat >conftest.$ac_ext <<_ACEOF
10546/* confdefs.h. */
10547_ACEOF
10548cat confdefs.h >>conftest.$ac_ext
10549cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010550/* end confdefs.h. */
10551#include <speex/speex.h>
10552 #include <speex/speex_echo.h>
10553
10554int
10555main ()
10556{
10557speex_echo_state_init(0, 0); speex_encoder_init(0);
10558 ;
10559 return 0;
10560}
10561_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010562rm -f conftest.$ac_objext
10563if { (ac_try="$ac_compile"
10564case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10567esac
10568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_compile") 2>conftest.er1
10570 ac_status=$?
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } && {
10576 test -z "$ac_c_werror_flag" ||
10577 test ! -s conftest.err
10578 } && test -s conftest.$ac_objext; then
10579 { echo "$as_me:$LINENO: result: yes!!" >&5
10580echo "${ECHO_T}yes!!" >&6; }
10581 cat >>confdefs.h <<\_ACEOF
10582#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1
10583_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010584
10585 ac_external_speex="1"
10586
10587else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010588 echo "$as_me: failed program was:" >&5
10589sed 's/^/| /' conftest.$ac_ext >&5
10590
10591 { { echo "$as_me:$LINENO: 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" >&5
10592echo "$as_me: 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" >&2;}
10593 { (exit 1); exit 1; }; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010594fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010595
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 fi
10598
10599
10600fi
10601
10602
10603ac_external_gsm=0
10604
10605
10606# Check whether --with-external-gsm was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000010607if test "${with_external_gsm+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010608 withval=$with_external_gsm;
10609 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +000010610 # Test GSM library installation
Sauw Ming6e6c2152010-12-14 13:03:10 +000010611 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm/gsm.h" >&5
10612echo $ECHO_N "checking if external GSM devkit is installed as gsm/gsm.h... $ECHO_C" >&6; }
10613 cat >conftest.$ac_ext <<_ACEOF
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010618/* end confdefs.h. */
10619#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010620int
10621main ()
10622{
10623gsm_create();
10624 ;
10625 return 0;
10626}
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010627_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010628rm -f conftest.$ac_objext
10629if { (ac_try="$ac_compile"
10630case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633esac
10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_compile") 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } && {
10642 test -z "$ac_c_werror_flag" ||
10643 test ! -s conftest.err
10644 } && test -s conftest.$ac_objext; then
10645 { echo "$as_me:$LINENO: result: yes!!" >&5
10646echo "${ECHO_T}yes!!" >&6; }
10647 cat >>confdefs.h <<\_ACEOF
10648#define PJMEDIA_EXTERNAL_GSM_CODEC 1
10649_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010650
Sauw Ming6e6c2152010-12-14 13:03:10 +000010651 cat >>confdefs.h <<\_ACEOF
10652#define PJMEDIA_EXTERNAL_GSM_GSM_H 1
10653_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010654
10655 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010656
10657else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010658 echo "$as_me: failed program was:" >&5
10659sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono46bd0842010-02-12 14:12:41 +000010660
Sauw Ming6e6c2152010-12-14 13:03:10 +000010661
10662 { echo "$as_me:$LINENO: result: no" >&5
10663echo "${ECHO_T}no" >&6; }
10664 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm.h" >&5
10665echo $ECHO_N "checking if external GSM devkit is installed as gsm.h... $ECHO_C" >&6; }
10666 cat >conftest.$ac_ext <<_ACEOF
10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010671/* end confdefs.h. */
10672#include <gsm.h>
10673int
10674main ()
10675{
10676gsm_create();
10677 ;
10678 return 0;
10679}
10680_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010681rm -f conftest.$ac_objext
10682if { (ac_try="$ac_compile"
10683case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686esac
10687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_compile") 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } && {
10695 test -z "$ac_c_werror_flag" ||
10696 test ! -s conftest.err
10697 } && test -s conftest.$ac_objext; then
10698 { echo "$as_me:$LINENO: result: yes!!" >&5
10699echo "${ECHO_T}yes!!" >&6; }
10700 cat >>confdefs.h <<\_ACEOF
10701#define PJMEDIA_EXTERNAL_GSM_CODEC 1
10702_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010703
Sauw Ming6e6c2152010-12-14 13:03:10 +000010704 cat >>confdefs.h <<\_ACEOF
10705#define PJMEDIA_EXTERNAL_GSM_H 1
10706_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010707
10708 ac_external_gsm="1"
10709
10710else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010711 echo "$as_me: failed program was:" >&5
10712sed 's/^/| /' conftest.$ac_ext >&5
10713
10714 { { echo "$as_me:$LINENO: 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" >&5
10715echo "$as_me: 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" >&2;}
10716 { (exit 1); exit 1; }; }
Benny Prijonod4306432010-05-01 22:05:41 +000010717
10718
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010719fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010720
Benny Prijonod4306432010-05-01 22:05:41 +000010721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +000010722
Benny Prijonod4306432010-05-01 22:05:41 +000010723
10724fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010725
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727 fi
10728
10729
10730fi
10731
10732
10733
10734
Benny Prijono4e48b512007-05-16 13:41:00 +000010735
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010736# Check whether --enable-sound was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000010737if test "${enable_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010738 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +000010739 ac_pjmedia_snd=null
Sauw Ming6e6c2152010-12-14 13:03:10 +000010740 { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
10741echo "${ECHO_T}Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +000010742 fi
10743
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010744fi
10745
Benny Prijono1d971622006-09-10 22:27:40 +000010746
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010747ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010748
Benny Prijono27c98722007-04-09 21:28:15 +000010749
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010750# Check whether --with-external-pa was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000010751if test "${with_external_pa+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010752 withval=$with_external_pa;
10753 if test "x$with_external_pa" != "xno"; then
10754 # Test PortAudio installation
Sauw Ming6e6c2152010-12-14 13:03:10 +000010755 { echo "$as_me:$LINENO: checking if external PortAudio devkit is installed" >&5
10756echo $ECHO_N "checking if external PortAudio devkit is installed... $ECHO_C" >&6; }
10757 cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010762/* end confdefs.h. */
10763#include <portaudio.h>
10764
10765int
10766main ()
10767{
10768Pa_Initialize();
10769 ;
10770 return 0;
10771}
10772_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000010773rm -f conftest.$ac_objext
10774if { (ac_try="$ac_compile"
10775case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778esac
10779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_compile") 2>conftest.er1
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && {
10787 test -z "$ac_c_werror_flag" ||
10788 test ! -s conftest.err
10789 } && test -s conftest.$ac_objext; then
10790 { echo "$as_me:$LINENO: result: yes!!" >&5
10791echo "${ECHO_T}yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010792 ac_external_pa="1"
10793
10794else
Sauw Ming6e6c2152010-12-14 13:03:10 +000010795 echo "$as_me: failed program was:" >&5
10796sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 { { echo "$as_me:$LINENO: 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" >&5
10799echo "$as_me: 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" >&2;}
10800 { (exit 1); exit 1; }; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010801fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000010802
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +000010804 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010805
Benny Prijono27c98722007-04-09 21:28:15 +000010806
10807fi
Benny Prijonofe0c1272010-01-13 16:28:15 +000010808
10809
10810
Sauw Ming6e6c2152010-12-14 13:03:10 +000010811if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
10812 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
10813echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
10814if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816fi
10817{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
10818echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
10819else
10820 # Is the header compilable?
10821{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
10822echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
10823cat >conftest.$ac_ext <<_ACEOF
10824/* confdefs.h. */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
10828/* end confdefs.h. */
10829$ac_includes_default
10830#include <sys/soundcard.h>
10831_ACEOF
10832rm -f conftest.$ac_objext
10833if { (ac_try="$ac_compile"
10834case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10837esac
10838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_compile") 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } && {
10846 test -z "$ac_c_werror_flag" ||
10847 test ! -s conftest.err
10848 } && test -s conftest.$ac_objext; then
10849 ac_header_compiler=yes
10850else
10851 echo "$as_me: failed program was:" >&5
10852sed 's/^/| /' conftest.$ac_ext >&5
10853
10854 ac_header_compiler=no
10855fi
10856
10857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10859echo "${ECHO_T}$ac_header_compiler" >&6; }
10860
10861# Is the header present?
10862{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
10863echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
10864cat >conftest.$ac_ext <<_ACEOF
10865/* confdefs.h. */
10866_ACEOF
10867cat confdefs.h >>conftest.$ac_ext
10868cat >>conftest.$ac_ext <<_ACEOF
10869/* end confdefs.h. */
10870#include <sys/soundcard.h>
10871_ACEOF
10872if { (ac_try="$ac_cpp conftest.$ac_ext"
10873case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } >/dev/null && {
10885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10886 test ! -s conftest.err
10887 }; then
10888 ac_header_preproc=yes
10889else
10890 echo "$as_me: failed program was:" >&5
10891sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 ac_header_preproc=no
10894fi
10895
10896rm -f conftest.err conftest.$ac_ext
10897{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10898echo "${ECHO_T}$ac_header_preproc" >&6; }
10899
10900# So? What about this header?
10901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10902 yes:no: )
10903 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10904echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
10906echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
10907 ac_header_preproc=yes
10908 ;;
10909 no:yes:* )
10910 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
10911echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
10913echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
10914 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
10915echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
10916 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10917echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
10919echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
10921echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
10922
10923 ;;
10924esac
10925{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
10926echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
10927if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929else
10930 ac_cv_header_sys_soundcard_h=$ac_header_preproc
10931fi
10932{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
10933echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
10934
10935fi
10936if test $ac_cv_header_sys_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000010937 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
10938fi
10939
10940
Sauw Ming6e6c2152010-12-14 13:03:10 +000010941if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
10942 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
10943echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
10944if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946fi
10947{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
10948echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
10949else
10950 # Is the header compilable?
10951{ echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
10952echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
10953cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h. */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h. */
10959$ac_includes_default
10960#include <linux/soundcard.h>
10961_ACEOF
10962rm -f conftest.$ac_objext
10963if { (ac_try="$ac_compile"
10964case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967esac
10968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest.$ac_objext; then
10979 ac_header_compiler=yes
10980else
10981 echo "$as_me: failed program was:" >&5
10982sed 's/^/| /' conftest.$ac_ext >&5
10983
10984 ac_header_compiler=no
10985fi
10986
10987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10989echo "${ECHO_T}$ac_header_compiler" >&6; }
10990
10991# Is the header present?
10992{ echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
10993echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
10994cat >conftest.$ac_ext <<_ACEOF
10995/* confdefs.h. */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
10999/* end confdefs.h. */
11000#include <linux/soundcard.h>
11001_ACEOF
11002if { (ac_try="$ac_cpp conftest.$ac_ext"
11003case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006esac
11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } >/dev/null && {
11015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11016 test ! -s conftest.err
11017 }; then
11018 ac_header_preproc=yes
11019else
11020 echo "$as_me: failed program was:" >&5
11021sed 's/^/| /' conftest.$ac_ext >&5
11022
11023 ac_header_preproc=no
11024fi
11025
11026rm -f conftest.err conftest.$ac_ext
11027{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11028echo "${ECHO_T}$ac_header_preproc" >&6; }
11029
11030# So? What about this header?
11031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11032 yes:no: )
11033 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11034echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
11036echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
11037 ac_header_preproc=yes
11038 ;;
11039 no:yes:* )
11040 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
11041echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
11043echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
11045echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11047echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
11049echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
11051echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
11052
11053 ;;
11054esac
11055{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
11056echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
11057if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11059else
11060 ac_cv_header_linux_soundcard_h=$ac_header_preproc
11061fi
11062{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
11063echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
11064
11065fi
11066if test $ac_cv_header_linux_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011067 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
11068fi
11069
11070
Sauw Ming6e6c2152010-12-14 13:03:10 +000011071if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11072 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
11073echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
11074if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076fi
11077{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
11078echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
11079else
11080 # Is the header compilable?
11081{ echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
11082echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; }
11083cat >conftest.$ac_ext <<_ACEOF
11084/* confdefs.h. */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
11089$ac_includes_default
11090#include <machine/soundcard.h>
11091_ACEOF
11092rm -f conftest.$ac_objext
11093if { (ac_try="$ac_compile"
11094case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097esac
11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_compile") 2>conftest.er1
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest.$ac_objext; then
11109 ac_header_compiler=yes
11110else
11111 echo "$as_me: failed program was:" >&5
11112sed 's/^/| /' conftest.$ac_ext >&5
11113
11114 ac_header_compiler=no
11115fi
11116
11117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11119echo "${ECHO_T}$ac_header_compiler" >&6; }
11120
11121# Is the header present?
11122{ echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
11123echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; }
11124cat >conftest.$ac_ext <<_ACEOF
11125/* confdefs.h. */
11126_ACEOF
11127cat confdefs.h >>conftest.$ac_ext
11128cat >>conftest.$ac_ext <<_ACEOF
11129/* end confdefs.h. */
11130#include <machine/soundcard.h>
11131_ACEOF
11132if { (ac_try="$ac_cpp conftest.$ac_ext"
11133case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } >/dev/null && {
11145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11146 test ! -s conftest.err
11147 }; then
11148 ac_header_preproc=yes
11149else
11150 echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153 ac_header_preproc=no
11154fi
11155
11156rm -f conftest.err conftest.$ac_ext
11157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11158echo "${ECHO_T}$ac_header_preproc" >&6; }
11159
11160# So? What about this header?
11161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11162 yes:no: )
11163 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11164echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
11166echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
11167 ac_header_preproc=yes
11168 ;;
11169 no:yes:* )
11170 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
11171echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
11173echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
11175echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11177echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
11179echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
11181echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
11182
11183 ;;
11184esac
11185{ echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
11186echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
11187if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190 ac_cv_header_machine_soundcard_h=$ac_header_preproc
11191fi
11192{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
11193echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
11194
11195fi
11196if test $ac_cv_header_machine_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011197 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
11198fi
11199
11200
11201
Benny Prijono3e091672008-01-09 15:43:02 +000011202if test "x$ac_cv_c_bigendian" = "xyes"; then
11203 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
11204else
11205 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
11206fi
11207
Benny Prijono1d971622006-09-10 22:27:40 +000011208if test "$enable_sound" = "no"; then
11209 true;
11210else
11211 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +000011212 arm-apple-darwin*)
Sauw Mingbe3771a2010-08-27 06:46:29 +000011213 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork"
Sauw Ming6e6c2152010-12-14 13:03:10 +000011214 { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&5
11215echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +000011216 ;;
Benny Prijonob466e232006-09-10 08:53:59 +000011217 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000011218 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
11219 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000011220 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000011221 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
11222 ac_pjmedia_snd=pa_old_darwinos
Sauw Ming6e6c2152010-12-14 13:03:10 +000011223 { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
11224echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000011225 else
11226 ac_pjmedia_snd=pa_darwinos
Sauw Ming6e6c2152010-12-14 13:03:10 +000011227 { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
11228echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000011229 fi
Benny Prijonob466e232006-09-10 08:53:59 +000011230 ;;
11231 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011232 ac_pjmedia_snd=pa_win32
Sauw Ming6e6c2152010-12-14 13:03:10 +000011233 { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
11234echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011235 ;;
11236 *rtems*)
11237 ac_pjmedia_snd=null
Sauw Ming6e6c2152010-12-14 13:03:10 +000011238 { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
11239echo "${ECHO_T}Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011240 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011241 *)
Benny Prijono0b462322008-03-12 22:44:24 +000011242 ac_pjmedia_snd=pa_unix
Sauw Ming6e6c2152010-12-14 13:03:10 +000011243 if test "${ac_cv_header_alsa_version_h+set}" = set; then
11244 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5
11245echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
11246if test "${ac_cv_header_alsa_version_h+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248fi
11249{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
11250echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
11251else
11252 # Is the header compilable?
11253{ echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
11254echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; }
11255cat >conftest.$ac_ext <<_ACEOF
11256/* confdefs.h. */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
11260/* end confdefs.h. */
11261$ac_includes_default
11262#include <alsa/version.h>
11263_ACEOF
11264rm -f conftest.$ac_objext
11265if { (ac_try="$ac_compile"
11266case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_compile") 2>conftest.er1
11272 ac_status=$?
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } && {
11278 test -z "$ac_c_werror_flag" ||
11279 test ! -s conftest.err
11280 } && test -s conftest.$ac_objext; then
11281 ac_header_compiler=yes
11282else
11283 echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
11286 ac_header_compiler=no
11287fi
11288
11289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11291echo "${ECHO_T}$ac_header_compiler" >&6; }
11292
11293# Is the header present?
11294{ echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
11295echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; }
11296cat >conftest.$ac_ext <<_ACEOF
11297/* confdefs.h. */
11298_ACEOF
11299cat confdefs.h >>conftest.$ac_ext
11300cat >>conftest.$ac_ext <<_ACEOF
11301/* end confdefs.h. */
11302#include <alsa/version.h>
11303_ACEOF
11304if { (ac_try="$ac_cpp conftest.$ac_ext"
11305case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308esac
11309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } >/dev/null && {
11317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11318 test ! -s conftest.err
11319 }; then
11320 ac_header_preproc=yes
11321else
11322 echo "$as_me: failed program was:" >&5
11323sed 's/^/| /' conftest.$ac_ext >&5
11324
11325 ac_header_preproc=no
11326fi
11327
11328rm -f conftest.err conftest.$ac_ext
11329{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11330echo "${ECHO_T}$ac_header_preproc" >&6; }
11331
11332# So? What about this header?
11333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11334 yes:no: )
11335 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
11336echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
11338echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
11339 ac_header_preproc=yes
11340 ;;
11341 no:yes:* )
11342 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
11343echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
11345echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
11347echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
11349echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
11351echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
11353echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
11354
11355 ;;
11356esac
11357{ echo "$as_me:$LINENO: checking for alsa/version.h" >&5
11358echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
11359if test "${ac_cv_header_alsa_version_h+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361else
11362 ac_cv_header_alsa_version_h=$ac_header_preproc
11363fi
11364{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
11365echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
11366
11367fi
11368if test $ac_cv_header_alsa_version_h = yes; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011369 ac_pa_use_alsa=1
11370
11371 LIBS="$LIBS -lasound"
11372
11373else
11374 ac_pa_use_alsa=0
11375
11376fi
11377
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011378
Sauw Ming6e6c2152010-12-14 13:03:10 +000011379 { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
11380echo "${ECHO_T}Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000011381
11382 ac_pa_use_oss=1
11383
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011384 # Check whether --enable-oss was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011385if test "${enable_oss+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011386 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +000011387 if test "$enable_oss" = "no"; then
11388 ac_pa_use_oss=0
Sauw Ming6e6c2152010-12-14 13:03:10 +000011389 { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
11390echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000011391 fi
11392
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011393fi
11394
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011395 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000011396 esac
11397fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011398
Sauw Ming6e6c2152010-12-14 13:03:10 +000011399
11400if test "$enable_video" = "no"; then
11401 true;
11402else
11403 case $target in
11404 arm-apple-darwin*)
11405 ac_pjmedia_video=iphone_os
11406
11407 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
11408 LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
11409 { echo "$as_me:$LINENO: result: Checking video device backend... AVFoundation" >&5
11410echo "${ECHO_T}Checking video device backend... AVFoundation" >&6; }
11411 ;;
11412 *darwin*)
11413 ac_pjmedia_video=mac_os
11414
11415
11416 SAVED_LIBS="$LIBS"
11417 LIBS="-framework QTKit"
11418 cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h. */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h. */
11424
11425int
11426main ()
11427{
11428
11429 ;
11430 return 0;
11431}
11432_ACEOF
11433rm -f conftest.$ac_objext conftest$ac_exeext
11434if { (ac_try="$ac_link"
11435case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11438esac
11439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_link") 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest$ac_exeext &&
11450 $as_test_x conftest$ac_exeext; then
11451 ac_pjmedia_video_has_qt=yes
11452else
11453 echo "$as_me: failed program was:" >&5
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 ac_pjmedia_video_has_qt=no
11457fi
11458
11459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11460 conftest$ac_exeext conftest.$ac_ext
11461 LIBS="$SAVED_LIBS"
11462 if test "$ac_pjmedia_video_has_qt" = "yes"; then
11463 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
11464 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore"
11465 { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... yes" >&5
11466echo "${ECHO_T}Checking if QTKit framework is available... yes" >&6; }
11467 else
11468 { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... no" >&5
11469echo "${ECHO_T}Checking if QTKit framework is available... no" >&6; }
11470 fi
11471 ;;
11472 esac
11473fi
11474
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011475# Check whether --enable-ext_sound was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011476if test "${enable_ext_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011477 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +000011478 ac_pjmedia_snd=external
Sauw Ming6e6c2152010-12-14 13:03:10 +000011479 { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5
11480echo "${ECHO_T}Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +000011481 fi
11482
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011483fi
Benny Prijonoebb2c332008-07-28 23:40:58 +000011484
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011485
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011486
11487# Check whether --enable-small-filter was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011488if test "${enable_small_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011489 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011490 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Sauw Ming6e6c2152010-12-14 13:03:10 +000011491 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
11492echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011493 fi
11494else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011495 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
11496echo "${ECHO_T}Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011497fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011498
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011499
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011500
11501# Check whether --enable-large-filter was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011502if test "${enable_large_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011503 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011504 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Sauw Ming6e6c2152010-12-14 13:03:10 +000011505 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
11506echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011507 fi
11508else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011509 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
11510echo "${ECHO_T}Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011511fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011512
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011513
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011514
11515# Check whether --enable-speex-aec was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011516if test "${enable_speex_aec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011517 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011518 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Sauw Ming6e6c2152010-12-14 13:03:10 +000011519 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
11520echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011521 fi
11522else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011523 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
11524echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011525fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011526
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011527
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011528
11529# Check whether --enable-g711-codec was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011530if test "${enable_g711_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011531 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011532 ac_no_g711_codec=1
Sauw Ming6e6c2152010-12-14 13:03:10 +000011533 cat >>confdefs.h <<\_ACEOF
11534#define PJMEDIA_HAS_G711_CODEC 0
11535_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011536
Sauw Ming6e6c2152010-12-14 13:03:10 +000011537 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
11538echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011539 fi
11540else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011541 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
11542echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011543fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011544
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011545
11546
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011547
11548# Check whether --enable-l16-codec was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011549if test "${enable_l16_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011550 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011551 ac_no_l16_codec=1
Sauw Ming6e6c2152010-12-14 13:03:10 +000011552 cat >>confdefs.h <<\_ACEOF
11553#define PJMEDIA_HAS_L16_CODEC 0
11554_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011555
Sauw Ming6e6c2152010-12-14 13:03:10 +000011556 { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
11557echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011558 fi
11559else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011560 { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
11561echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011562fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011563
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011564
11565
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011566
11567# Check whether --enable-gsm-codec was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011568if test "${enable_gsm_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011569 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011570 ac_no_gsm_codec=1
Sauw Ming6e6c2152010-12-14 13:03:10 +000011571 cat >>confdefs.h <<\_ACEOF
11572#define PJMEDIA_HAS_GSM_CODEC 0
11573_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011574
Sauw Ming6e6c2152010-12-14 13:03:10 +000011575 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
11576echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011577 fi
11578else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011579 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
11580echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011581fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011582
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011583
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011584
11585# Check whether --enable-g722-codec was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011586if test "${enable_g722_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011587 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +000011588 ac_no_g722_codec=1
Sauw Ming6e6c2152010-12-14 13:03:10 +000011589 cat >>confdefs.h <<\_ACEOF
11590#define PJMEDIA_HAS_G722_CODEC 0
11591_ACEOF
Benny Prijono71f657d2008-03-17 14:24:21 +000011592
Sauw Ming6e6c2152010-12-14 13:03:10 +000011593 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
11594echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +000011595 fi
11596else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011597 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
11598echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011599fi
Benny Prijono71f657d2008-03-17 14:24:21 +000011600
11601
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011602
11603# Check whether --enable-g7221-codec was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011604if test "${enable_g7221_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011605 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
11606 ac_no_g7221_codec=1
Sauw Ming6e6c2152010-12-14 13:03:10 +000011607 cat >>confdefs.h <<\_ACEOF
11608#define PJMEDIA_HAS_G7221_CODEC 0
11609_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011610
Sauw Ming6e6c2152010-12-14 13:03:10 +000011611 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5
11612echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011613 fi
11614else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011615 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&5
11616echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011617fi
11618
11619
11620
11621# Check whether --enable-speex-codec was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011622if test "${enable_speex_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011623 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011624 ac_no_speex_codec=1
Sauw Ming6e6c2152010-12-14 13:03:10 +000011625 cat >>confdefs.h <<\_ACEOF
11626#define PJMEDIA_HAS_SPEEX_CODEC 0
11627_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011628
Sauw Ming6e6c2152010-12-14 13:03:10 +000011629 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
11630echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011631 fi
11632else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011633 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
11634echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011635fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011636
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011637
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011638
11639# Check whether --enable-ilbc-codec was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011640if test "${enable_ilbc_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011641 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011642 ac_no_ilbc_codec=1
Sauw Ming6e6c2152010-12-14 13:03:10 +000011643 cat >>confdefs.h <<\_ACEOF
11644#define PJMEDIA_HAS_ILBC_CODEC 0
11645_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011646
Sauw Ming6e6c2152010-12-14 13:03:10 +000011647 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
11648echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011649 fi
11650else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011651 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
11652echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011653fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011654
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011655
11656# Check whether --enable-libsamplerate was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011657if test "${enable_libsamplerate+set}" = set; then
11658 enableval=$enable_libsamplerate;
11659{ echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
11660echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; }
11661if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000011663else
11664 ac_check_lib_save_LIBS=$LIBS
11665LIBS="-lsamplerate $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000011666cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono550a1a62007-10-16 08:54:00 +000011671/* end confdefs.h. */
11672
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011673/* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000011676#ifdef __cplusplus
11677extern "C"
11678#endif
Benny Prijono550a1a62007-10-16 08:54:00 +000011679char src_new ();
11680int
11681main ()
11682{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011683return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000011684 ;
11685 return 0;
11686}
11687_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000011688rm -f conftest.$ac_objext conftest$ac_exeext
11689if { (ac_try="$ac_link"
11690case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693esac
11694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_link") 2>conftest.er1
11696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest$ac_exeext &&
11705 $as_test_x conftest$ac_exeext; then
Benny Prijono550a1a62007-10-16 08:54:00 +000011706 ac_cv_lib_samplerate_src_new=yes
11707else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011708 echo "$as_me: failed program was:" >&5
11709sed 's/^/| /' conftest.$ac_ext >&5
11710
11711 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000011712fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011713
11714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11715 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +000011716LIBS=$ac_check_lib_save_LIBS
11717fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011718{ echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
11719echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; }
11720if test $ac_cv_lib_samplerate_src_new = yes; then
Benny Prijono550a1a62007-10-16 08:54:00 +000011721 cat >>confdefs.h <<_ACEOF
11722#define HAVE_LIBSAMPLERATE 1
11723_ACEOF
11724
11725 LIBS="-lsamplerate $LIBS"
11726
11727fi
11728
11729else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011730 { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
11731echo "${ECHO_T}Skipping libsamplerate detection" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000011732
11733fi
11734
11735
11736# Check whether --enable-sdl was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011737if test "${enable_sdl+set}" = set; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000011738 enableval=$enable_sdl;
11739 if test "$enable_sdl" = "no"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000011740 { echo "$as_me:$LINENO: result: Checking if SDL is disabled... yes" >&5
11741echo "${ECHO_T}Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000011742 fi
11743
11744else
11745
Sauw Ming6e6c2152010-12-14 13:03:10 +000011746 { echo "$as_me:$LINENO: checking SDL availability.." >&5
11747echo $ECHO_N "checking SDL availability..... $ECHO_C" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000011748 if sdl-config --version; then
11749
11750
11751 ac_sdl_cflags=`sdl-config --cflags`
11752 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
11753 ac_sdl_ldflags=`sdl-config --libs`
Benny Prijono69b1f822010-12-10 11:33:01 +000011754 LIBS="$LIBS $ac_sdl_ldflags"
Benny Prijonoc45d9512010-12-10 11:04:30 +000011755 fi
Benny Prijono550a1a62007-10-16 08:54:00 +000011756
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011757fi
Benny Prijono0822c192008-08-21 20:59:58 +000011758
11759
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011760
Benny Prijonoc45d9512010-12-10 11:04:30 +000011761# Check whether --enable-ffmpeg was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000011762if test "${enable_ffmpeg+set}" = set; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000011763 enableval=$enable_ffmpeg;
11764 ac_has_ffmpeg=0
11765
11766 if test "$enable_ffmpeg" = "no"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000011767 { echo "$as_me:$LINENO: result: Checking if ffmpeg is disabled... yes" >&5
11768echo "${ECHO_T}Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000011769 fi
11770
11771else
11772
11773
11774
11775
Sauw Ming6e6c2152010-12-14 13:03:10 +000011776 { echo "$as_me:$LINENO: checking for avdevice_version in -lavdevice" >&5
11777echo $ECHO_N "checking for avdevice_version in -lavdevice... $ECHO_C" >&6; }
11778if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000011780else
11781 ac_check_lib_save_LIBS=$LIBS
11782LIBS="-lavdevice $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000011783cat >conftest.$ac_ext <<_ACEOF
11784/* confdefs.h. */
11785_ACEOF
11786cat confdefs.h >>conftest.$ac_ext
11787cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000011788/* end confdefs.h. */
11789
11790/* Override any GCC internal prototype to avoid an error.
11791 Use char because int might match the return type of a GCC
11792 builtin and then its argument prototype would still apply. */
11793#ifdef __cplusplus
11794extern "C"
11795#endif
11796char avdevice_version ();
11797int
11798main ()
11799{
11800return avdevice_version ();
11801 ;
11802 return 0;
11803}
11804_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000011805rm -f conftest.$ac_objext conftest$ac_exeext
11806if { (ac_try="$ac_link"
11807case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_link") 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } && {
11819 test -z "$ac_c_werror_flag" ||
11820 test ! -s conftest.err
11821 } && test -s conftest$ac_exeext &&
11822 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000011823 ac_cv_lib_avdevice_avdevice_version=yes
11824else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011825 echo "$as_me: failed program was:" >&5
11826sed 's/^/| /' conftest.$ac_ext >&5
11827
11828 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000011829fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011830
11831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11832 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000011833LIBS=$ac_check_lib_save_LIBS
11834fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011835{ echo "$as_me:$LINENO: result: $ac_cv_lib_avdevice_avdevice_version" >&5
11836echo "${ECHO_T}$ac_cv_lib_avdevice_avdevice_version" >&6; }
11837if test $ac_cv_lib_avdevice_avdevice_version = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000011838 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
11839 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
11840
11841
11842fi
11843
Sauw Ming6e6c2152010-12-14 13:03:10 +000011844 { echo "$as_me:$LINENO: checking for av_register_all in -lavformat" >&5
11845echo $ECHO_N "checking for av_register_all in -lavformat... $ECHO_C" >&6; }
11846if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000011848else
11849 ac_check_lib_save_LIBS=$LIBS
11850LIBS="-lavformat $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000011851cat >conftest.$ac_ext <<_ACEOF
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000011856/* end confdefs.h. */
11857
11858/* Override any GCC internal prototype to avoid an error.
11859 Use char because int might match the return type of a GCC
11860 builtin and then its argument prototype would still apply. */
11861#ifdef __cplusplus
11862extern "C"
11863#endif
11864char av_register_all ();
11865int
11866main ()
11867{
11868return av_register_all ();
11869 ;
11870 return 0;
11871}
11872_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000011873rm -f conftest.$ac_objext conftest$ac_exeext
11874if { (ac_try="$ac_link"
11875case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878esac
11879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_link") 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } && {
11887 test -z "$ac_c_werror_flag" ||
11888 test ! -s conftest.err
11889 } && test -s conftest$ac_exeext &&
11890 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000011891 ac_cv_lib_avformat_av_register_all=yes
11892else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011893 echo "$as_me: failed program was:" >&5
11894sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_lib_avformat_av_register_all=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000011897fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011898
11899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11900 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000011901LIBS=$ac_check_lib_save_LIBS
11902fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011903{ echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_register_all" >&5
11904echo "${ECHO_T}$ac_cv_lib_avformat_av_register_all" >&6; }
11905if test $ac_cv_lib_avformat_av_register_all = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000011906 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
11907 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
11908
11909
11910fi
11911
Sauw Ming6e6c2152010-12-14 13:03:10 +000011912 { echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5
11913echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6; }
11914if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000011916else
11917 ac_check_lib_save_LIBS=$LIBS
11918LIBS="-lavcodec $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000011919cat >conftest.$ac_ext <<_ACEOF
11920/* confdefs.h. */
11921_ACEOF
11922cat confdefs.h >>conftest.$ac_ext
11923cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000011924/* end confdefs.h. */
11925
11926/* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11929#ifdef __cplusplus
11930extern "C"
11931#endif
11932char avcodec_init ();
11933int
11934main ()
11935{
11936return avcodec_init ();
11937 ;
11938 return 0;
11939}
11940_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000011941rm -f conftest.$ac_objext conftest$ac_exeext
11942if { (ac_try="$ac_link"
11943case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946esac
11947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_link") 2>conftest.er1
11949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } && {
11955 test -z "$ac_c_werror_flag" ||
11956 test ! -s conftest.err
11957 } && test -s conftest$ac_exeext &&
11958 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000011959 ac_cv_lib_avcodec_avcodec_init=yes
11960else
Sauw Ming6e6c2152010-12-14 13:03:10 +000011961 echo "$as_me: failed program was:" >&5
11962sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 ac_cv_lib_avcodec_avcodec_init=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000011965fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011966
11967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11968 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000011969LIBS=$ac_check_lib_save_LIBS
11970fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011971{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_init" >&5
11972echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6; }
11973if test $ac_cv_lib_avcodec_avcodec_init = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000011974 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
11975 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
11976
11977
11978fi
11979
Sauw Ming6e6c2152010-12-14 13:03:10 +000011980 { echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5
11981echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; }
11982if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000011984else
11985 ac_check_lib_save_LIBS=$LIBS
11986LIBS="-lswscale $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000011987cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000011992/* end confdefs.h. */
11993
11994/* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
11997#ifdef __cplusplus
11998extern "C"
11999#endif
12000char sws_scale ();
12001int
12002main ()
12003{
12004return sws_scale ();
12005 ;
12006 return 0;
12007}
12008_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000012009rm -f conftest.$ac_objext conftest$ac_exeext
12010if { (ac_try="$ac_link"
12011case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014esac
12015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_link") 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && {
12023 test -z "$ac_c_werror_flag" ||
12024 test ! -s conftest.err
12025 } && test -s conftest$ac_exeext &&
12026 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012027 ac_cv_lib_swscale_sws_scale=yes
12028else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_cv_lib_swscale_sws_scale=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012033fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012034
12035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12036 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012037LIBS=$ac_check_lib_save_LIBS
12038fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012039{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5
12040echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; }
12041if test $ac_cv_lib_swscale_sws_scale = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012042 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
12043 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
12044
12045
12046fi
12047
Sauw Ming6e6c2152010-12-14 13:03:10 +000012048 { echo "$as_me:$LINENO: checking for av_malloc in -lavutil" >&5
12049echo $ECHO_N "checking for av_malloc in -lavutil... $ECHO_C" >&6; }
12050if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012052else
12053 ac_check_lib_save_LIBS=$LIBS
12054LIBS="-lavutil $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000012055cat >conftest.$ac_ext <<_ACEOF
12056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012060/* end confdefs.h. */
12061
12062/* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
12065#ifdef __cplusplus
12066extern "C"
12067#endif
12068char av_malloc ();
12069int
12070main ()
12071{
12072return av_malloc ();
12073 ;
12074 return 0;
12075}
12076_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000012077rm -f conftest.$ac_objext conftest$ac_exeext
12078if { (ac_try="$ac_link"
12079case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12082esac
12083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_link") 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } && {
12091 test -z "$ac_c_werror_flag" ||
12092 test ! -s conftest.err
12093 } && test -s conftest$ac_exeext &&
12094 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012095 ac_cv_lib_avutil_av_malloc=yes
12096else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012097 echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012101fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012102
12103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12104 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012105LIBS=$ac_check_lib_save_LIBS
12106fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012107{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_malloc" >&5
12108echo "${ECHO_T}$ac_cv_lib_avutil_av_malloc" >&6; }
12109if test $ac_cv_lib_avutil_av_malloc = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012110 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
12111 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
12112
12113
12114fi
12115
Sauw Ming6e6c2152010-12-14 13:03:10 +000012116 { echo "$as_me:$LINENO: checking for avcore_version in -lavcore" >&5
12117echo $ECHO_N "checking for avcore_version in -lavcore... $ECHO_C" >&6; }
12118if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012120else
12121 ac_check_lib_save_LIBS=$LIBS
12122LIBS="-lavcore $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000012123cat >conftest.$ac_ext <<_ACEOF
12124/* confdefs.h. */
12125_ACEOF
12126cat confdefs.h >>conftest.$ac_ext
12127cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012128/* end confdefs.h. */
12129
12130/* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12133#ifdef __cplusplus
12134extern "C"
12135#endif
12136char avcore_version ();
12137int
12138main ()
12139{
12140return avcore_version ();
12141 ;
12142 return 0;
12143}
12144_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000012145rm -f conftest.$ac_objext conftest$ac_exeext
12146if { (ac_try="$ac_link"
12147case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150esac
12151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_link") 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } && {
12159 test -z "$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 } && test -s conftest$ac_exeext &&
12162 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012163 ac_cv_lib_avcore_avcore_version=yes
12164else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012165 echo "$as_me: failed program was:" >&5
12166sed 's/^/| /' conftest.$ac_ext >&5
12167
12168 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012169fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012170
12171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12172 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012173LIBS=$ac_check_lib_save_LIBS
12174fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012175{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcore_avcore_version" >&5
12176echo "${ECHO_T}$ac_cv_lib_avcore_avcore_version" >&6; }
12177if test $ac_cv_lib_avcore_avcore_version = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012178 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
12179 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
12180
12181
12182fi
12183
Benny Prijono69b1f822010-12-10 11:33:01 +000012184 LIBS="$LIBS $ac_ffmpeg_ldflags"
Benny Prijonoc45d9512010-12-10 11:04:30 +000012185
12186
12187fi
12188
12189
12190# Check whether --enable-v4l2 was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000012191if test "${enable_v4l2+set}" = set; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012192 enableval=$enable_v4l2;
12193 if test "$enable_v4l2" = "no"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012194 { echo "$as_me:$LINENO: result: Checking if V4L2 is disabled... yes" >&5
12195echo "${ECHO_T}Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000012196 fi
12197
12198else
12199
12200
12201
Sauw Ming6e6c2152010-12-14 13:03:10 +000012202 { echo "$as_me:$LINENO: checking for v4l2_open in -lv4l2" >&5
12203echo $ECHO_N "checking for v4l2_open in -lv4l2... $ECHO_C" >&6; }
12204if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012206else
12207 ac_check_lib_save_LIBS=$LIBS
12208LIBS="-lv4l2 $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000012209cat >conftest.$ac_ext <<_ACEOF
12210/* confdefs.h. */
12211_ACEOF
12212cat confdefs.h >>conftest.$ac_ext
12213cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012214/* end confdefs.h. */
12215
12216/* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12219#ifdef __cplusplus
12220extern "C"
12221#endif
12222char v4l2_open ();
12223int
12224main ()
12225{
12226return v4l2_open ();
12227 ;
12228 return 0;
12229}
12230_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000012231rm -f conftest.$ac_objext conftest$ac_exeext
12232if { (ac_try="$ac_link"
12233case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236esac
12237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_link") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest$ac_exeext &&
12248 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012249 ac_cv_lib_v4l2_v4l2_open=yes
12250else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012255fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012256
12257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12258 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012259LIBS=$ac_check_lib_save_LIBS
12260fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012261{ echo "$as_me:$LINENO: result: $ac_cv_lib_v4l2_v4l2_open" >&5
12262echo "${ECHO_T}$ac_cv_lib_v4l2_v4l2_open" >&6; }
12263if test $ac_cv_lib_v4l2_v4l2_open = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012264 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
12265 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +000012266 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +000012267
12268
12269fi
12270
12271
12272fi
12273
12274
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012275# Check whether --enable-ipp was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000012276if test "${enable_ipp+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012277 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000012278else
12279 enable_ipp=no
12280
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012281fi
Benny Prijono0822c192008-08-21 20:59:58 +000012282
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012283
Benny Prijono3965f192010-02-10 18:46:05 +000012284
12285# Check whether --with-ipp was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000012286if test "${with_ipp+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000012287 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000012288else
12289 with_ipp=no
12290
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012291fi
Benny Prijono0822c192008-08-21 20:59:58 +000012292
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012293
Benny Prijono3965f192010-02-10 18:46:05 +000012294
12295# Check whether --with-ipp-samples was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000012296if test "${with_ipp_samples+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000012297 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +000012298else
12299 with_ipp_samples=no
12300
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012301fi
12302
Benny Prijono0822c192008-08-21 20:59:58 +000012303
Benny Prijono3965f192010-02-10 18:46:05 +000012304
12305# Check whether --with-ipp-arch was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000012306if test "${with_ipp_arch+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000012307 withval=$with_ipp_arch;
12308else
12309 with_ipp_arch=no
12310
12311fi
12312
12313
Benny Prijono0822c192008-08-21 20:59:58 +000012314if test "x$enable_ipp" != "xno"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012315 { echo "$as_me:$LINENO: checking Intel IPP location" >&5
12316echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012317
12318 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012319 { echo "$as_me:$LINENO: result: $with_ipp" >&5
12320echo "${ECHO_T}$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012321 IPPROOT=$with_ipp
12322 elif test "x$IPPROOT" = "x"; then
12323 if test -d /opt/intel/ipp; then
12324 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Sauw Ming6e6c2152010-12-14 13:03:10 +000012325 { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5
12326echo "${ECHO_T}autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012327 fi
12328 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012329 { echo "$as_me:$LINENO: result: $IPPROOT" >&5
12330echo "${ECHO_T}$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012331 fi
12332
Benny Prijono3965f192010-02-10 18:46:05 +000012333 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +000012334 IPP_SUFFIX=$with_ipp_arch
Sauw Ming6e6c2152010-12-14 13:03:10 +000012335 { echo "$as_me:$LINENO: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
12336echo "${ECHO_T}IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000012337 else
12338 IPP_SUFFIX=""
Sauw Ming6e6c2152010-12-14 13:03:10 +000012339 { echo "$as_me:$LINENO: result: IPP arch suffix is set to empty" >&5
12340echo "${ECHO_T}IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000012341 fi
12342
Benny Prijono0822c192008-08-21 20:59:58 +000012343 if test x$IPPROOT = x; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012344 { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&5
12345echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;}
12346 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012347 elif test ! -d $IPPROOT; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012348 { { echo "$as_me:$LINENO: error: not found" >&5
12349echo "$as_me: error: not found" >&2;}
12350 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012351 elif test ! -d $IPPROOT/include; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012352 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
12353echo "$as_me: error: directory doesn't seem to be valid" >&2;}
12354 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012355 else
12356 # IPP directory looks okay.
12357 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +000012358 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +000012359
12360 SAVED_CFLAGS="$CFLAGS"
12361 SAVED_LDFLAGS="$LDFLAGS"
12362 SAVED_LIBS="$LIBS"
12363
12364 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijono46bd0842010-02-12 14:12:41 +000012365 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
12366
12367 # Some differences between Mac OS X and Linux
12368 case $target in
12369 *darwin* )
12370 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
12371 ;;
12372 *)
12373 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
12374 IPP_LIBS="$IPP_LIBS -lguide"
12375 ;;
12376 esac
12377
Benny Prijono0822c192008-08-21 20:59:58 +000012378 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +000012379 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +000012380 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
12381
12382 CFLAGS="$CFLAGS $IPP_CFLAGS"
12383 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
12384 LIBS="$IPP_LIBS $LIBS"
12385
12386
Sauw Ming6e6c2152010-12-14 13:03:10 +000012387 { echo "$as_me:$LINENO: checking Intel IPP usability" >&5
12388echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; }
12389 cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000012394/* end confdefs.h. */
12395#include <ippcore.h>
12396
12397int
12398main ()
12399{
12400ippStaticInit();
12401 ;
12402 return 0;
12403}
12404_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000012405rm -f conftest.$ac_objext conftest$ac_exeext
12406if { (ac_try="$ac_link"
12407case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_link") 2>conftest.er1
12413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest$ac_exeext &&
12422 $as_test_x conftest$ac_exeext; then
12423 { echo "$as_me:$LINENO: result: ok" >&5
12424echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012425else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012426 echo "$as_me: failed program was:" >&5
12427sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 { { echo "$as_me:$LINENO: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
12430See \`config.log' for more details." >&5
12431echo "$as_me: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
12432See \`config.log' for more details." >&2;}
12433 { (exit run with --help for more info); exit run with --help for more info; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012434fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012435
12436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000012438
12439 CFLAGS="$SAVED_CFLAGS"
12440 LDFLAGS="$SAVED_LDFLAGS"
12441 LIBS="$SAVED_LIBS"
12442 fi
12443
Sauw Ming6e6c2152010-12-14 13:03:10 +000012444 { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5
12445echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012446
12447 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012448 { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5
12449echo "${ECHO_T}$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012450 IPPSAMPLES=$with_ipp_samples
12451 elif test "x$IPPSAMPLES" = "x"; then
12452 if test -d /opt/intel/ipp-samples; then
12453 IPPSAMPLES=/opt/intel/ipp-samples
Sauw Ming6e6c2152010-12-14 13:03:10 +000012454 { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5
12455echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012456 fi
12457 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012458 { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5
12459echo "${ECHO_T}$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012460 fi
12461
12462 if test x$IPPSAMPLES = x; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012463 { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&5
12464echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&2;}
12465 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012466 elif test ! -d $IPPSAMPLES; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012467 { { echo "$as_me:$LINENO: error: not found" >&5
12468echo "$as_me: error: not found" >&2;}
12469 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012470 elif test ! -d $IPPSAMPLES/speech-codecs; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012471 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
12472echo "$as_me: error: directory doesn't seem to be valid" >&2;}
12473 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012474 else
12475 # Remove trailing backslash
12476 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
12477
Benny Prijono3965f192010-02-10 18:46:05 +000012478 # Guess the libusc.a/libspeech.a build location
Sauw Ming6e6c2152010-12-14 13:03:10 +000012479 { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5
12480echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000012481 if test -d $IPPSAMPLES/speech-codecs/bin; then
12482 IPPVER=5
12483 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
12484 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
12485 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +000012486 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
12487 # gcc compiler
12488 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
12489 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
12490 # icc compiler
12491 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
12492 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012493 { { echo "$as_me:$LINENO: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
12494See \`config.log' for more details." >&5
12495echo "$as_me: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
12496See \`config.log' for more details." >&2;}
12497 { (exit 1); exit 1; }; }
Benny Prijono46bd0842010-02-12 14:12:41 +000012498 fi
Benny Prijono3965f192010-02-10 18:46:05 +000012499 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012500 { { echo "$as_me:$LINENO: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
12501See \`config.log' for more details." >&5
12502echo "$as_me: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
12503See \`config.log' for more details." >&2;}
12504 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012505 fi
Benny Prijono3965f192010-02-10 18:46:05 +000012506
12507 # Test the directory
12508 if test ! -d $IPPSAMP_DIR; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012509 { { echo "$as_me:$LINENO: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist
12510See \`config.log' for more details." >&5
12511echo "$as_me: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist
12512See \`config.log' for more details." >&2;}
12513 { (exit 1); exit 1; }; }
Benny Prijono3965f192010-02-10 18:46:05 +000012514 exit 1;
12515 fi
12516
12517 if test "x$IPPVER" = "x5"; then
12518 IPPSAMP_LIBS="libusc.a"
12519 IPPSAMP_LDLIBS="-lusc"
12520 elif test "x$IPPVER" = "x6"; then
12521 IPPSAMP_LIBS="libspeech.a"
12522 IPPSAMP_LDLIBS="-lspeech"
12523 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012524 { { echo "$as_me:$LINENO: error: bug in this script: unsupported IPP version
12525See \`config.log' for more details." >&5
12526echo "$as_me: error: bug in this script: unsupported IPP version
12527See \`config.log' for more details." >&2;}
12528 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012529 fi
Benny Prijono3965f192010-02-10 18:46:05 +000012530
12531 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012532 { { echo "$as_me:$LINENO: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
12533See \`config.log' for more details." >&5
12534echo "$as_me: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
12535See \`config.log' for more details." >&2;}
12536 { (exit 1); exit 1; }; }
Benny Prijono3965f192010-02-10 18:46:05 +000012537 fi
12538
Sauw Ming6e6c2152010-12-14 13:03:10 +000012539 { echo "$as_me:$LINENO: result: $IPPSAMP_DIR" >&5
12540echo "${ECHO_T}$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012541
12542 SAVED_CFLAGS="$CFLAGS"
12543 SAVED_LDFLAGS="$LDFLAGS"
12544 SAVED_LIBS="$LIBS"
12545
Benny Prijono3965f192010-02-10 18:46:05 +000012546 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
12547 CFLAGS="$CFLAGS $IPPSAMP_INC"
12548 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
12549 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000012550
Sauw Ming6e6c2152010-12-14 13:03:10 +000012551 { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5
12552echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; }
12553 cat >conftest.$ac_ext <<_ACEOF
12554/* confdefs.h. */
12555_ACEOF
12556cat confdefs.h >>conftest.$ac_ext
12557cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000012558/* end confdefs.h. */
12559#include <usc.h>
12560
12561int
12562main ()
12563{
12564extern USC_Fxns USC_G729AFP_Fxns;
12565 ;
12566 return 0;
12567}
12568_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000012569rm -f conftest.$ac_objext conftest$ac_exeext
12570if { (ac_try="$ac_link"
12571case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_link") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest$ac_exeext &&
12586 $as_test_x conftest$ac_exeext; then
12587 { echo "$as_me:$LINENO: result: ok" >&5
12588echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012589else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012590 echo "$as_me: failed program was:" >&5
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 { { echo "$as_me:$LINENO: error: failed
12594See \`config.log' for more details." >&5
12595echo "$as_me: error: failed
12596See \`config.log' for more details." >&2;}
12597 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012598fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012599
12600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12601 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000012602
12603 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +000012604 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
12605 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000012606
Benny Prijono3965f192010-02-10 18:46:05 +000012607 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
12608 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
12609 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000012610 fi
12611
Benny Prijono3965f192010-02-10 18:46:05 +000012612 CFLAGS="$CFLAGS $IPP_CFLAGS"
12613 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
12614 LIBS="$LIBS $IPP_LIBS"
12615
Benny Prijono0822c192008-08-21 20:59:58 +000012616 ac_build_mak_vars="$ac_build_mak_vars\n\
12617export IPP_CFLAGS=$IPP_CFLAGS\n\
12618export IPP_LDFLAGS=$IPP_LDFLAGS\n\
12619export IPP_LIBS=$IPP_LIBS"
12620else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012621 { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5
12622echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012623fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012624
12625
12626
12627
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012628# Check whether --enable-ssl was given.
Sauw Ming6e6c2152010-12-14 13:03:10 +000012629if test "${enable_ssl+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012630 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012631 if test "$enable_ssl" = "no"; then
12632 ac_no_ssl=1
Sauw Ming6e6c2152010-12-14 13:03:10 +000012633 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
12634echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012635 fi
12636
12637else
12638
Sauw Ming6e6c2152010-12-14 13:03:10 +000012639 { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
12640echo "${ECHO_T}checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012641
12642
12643
Sauw Ming6e6c2152010-12-14 13:03:10 +000012644 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12645 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12646echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12647if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649fi
12650{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12651echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12652else
12653 # Is the header compilable?
12654{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12655echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
12656cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h. */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h. */
12662$ac_includes_default
12663#include <openssl/ssl.h>
12664_ACEOF
12665rm -f conftest.$ac_objext
12666if { (ac_try="$ac_compile"
12667case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670esac
12671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_compile") 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } && {
12679 test -z "$ac_c_werror_flag" ||
12680 test ! -s conftest.err
12681 } && test -s conftest.$ac_objext; then
12682 ac_header_compiler=yes
12683else
12684 echo "$as_me: failed program was:" >&5
12685sed 's/^/| /' conftest.$ac_ext >&5
12686
12687 ac_header_compiler=no
12688fi
12689
12690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12692echo "${ECHO_T}$ac_header_compiler" >&6; }
12693
12694# Is the header present?
12695{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12696echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
12697cat >conftest.$ac_ext <<_ACEOF
12698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703#include <openssl/ssl.h>
12704_ACEOF
12705if { (ac_try="$ac_cpp conftest.$ac_ext"
12706case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12709esac
12710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } >/dev/null && {
12718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12719 test ! -s conftest.err
12720 }; then
12721 ac_header_preproc=yes
12722else
12723 echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 ac_header_preproc=no
12727fi
12728
12729rm -f conftest.err conftest.$ac_ext
12730{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12731echo "${ECHO_T}$ac_header_preproc" >&6; }
12732
12733# So? What about this header?
12734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12735 yes:no: )
12736 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12737echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12738 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12739echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12740 ac_header_preproc=yes
12741 ;;
12742 no:yes:* )
12743 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12744echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12746echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12748echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12750echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12752echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12754echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12755
12756 ;;
12757esac
12758{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12759echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12760if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762else
12763 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12764fi
12765{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12766echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12767
12768fi
12769if test $ac_cv_header_openssl_ssl_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012770 openssl_h_present=1
12771fi
12772
12773
Sauw Ming6e6c2152010-12-14 13:03:10 +000012774 { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
12775echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; }
12776if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012778else
12779 ac_check_lib_save_LIBS=$LIBS
12780LIBS="-lcrypto $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000012781cat >conftest.$ac_ext <<_ACEOF
12782/* confdefs.h. */
12783_ACEOF
12784cat confdefs.h >>conftest.$ac_ext
12785cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012786/* end confdefs.h. */
12787
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012788/* Override any GCC internal prototype to avoid an error.
12789 Use char because int might match the return type of a GCC
12790 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012791#ifdef __cplusplus
12792extern "C"
12793#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012794char ERR_load_BIO_strings ();
12795int
12796main ()
12797{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012798return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012799 ;
12800 return 0;
12801}
12802_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000012803rm -f conftest.$ac_objext conftest$ac_exeext
12804if { (ac_try="$ac_link"
12805case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808esac
12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest$ac_exeext &&
12820 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012821 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
12822else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012827fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012828
12829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12830 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012831LIBS=$ac_check_lib_save_LIBS
12832fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012833{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
12834echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
12835if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012836 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
12837fi
12838
Sauw Ming6e6c2152010-12-14 13:03:10 +000012839 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
12840echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
12841if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonod5233702010-01-13 13:09:45 +000012843else
12844 ac_check_lib_save_LIBS=$LIBS
12845LIBS="-lssl $LIBS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000012846cat >conftest.$ac_ext <<_ACEOF
12847/* confdefs.h. */
12848_ACEOF
12849cat confdefs.h >>conftest.$ac_ext
12850cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +000012851/* end confdefs.h. */
12852
12853/* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12856#ifdef __cplusplus
12857extern "C"
12858#endif
12859char SSL_library_init ();
12860int
12861main ()
12862{
12863return SSL_library_init ();
12864 ;
12865 return 0;
12866}
12867_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000012868rm -f conftest.$ac_objext conftest$ac_exeext
12869if { (ac_try="$ac_link"
12870case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873esac
12874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12875 (eval "$ac_link") 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } && {
12882 test -z "$ac_c_werror_flag" ||
12883 test ! -s conftest.err
12884 } && test -s conftest$ac_exeext &&
12885 $as_test_x conftest$ac_exeext; then
Benny Prijonod5233702010-01-13 13:09:45 +000012886 ac_cv_lib_ssl_SSL_library_init=yes
12887else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012888 echo "$as_me: failed program was:" >&5
12889sed 's/^/| /' conftest.$ac_ext >&5
12890
12891 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +000012892fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012893
12894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12895 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +000012896LIBS=$ac_check_lib_save_LIBS
12897fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000012898{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
12899echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
12900if test $ac_cv_lib_ssl_SSL_library_init = yes; then
Benny Prijonod5233702010-01-13 13:09:45 +000012901 libssl_present=1 && LIBS="$LIBS -lssl"
12902fi
12903
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012904 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000012905 { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
12906echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +000012907 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
12908 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Sauw Ming6e6c2152010-12-14 13:03:10 +000012909 cat >>confdefs.h <<\_ACEOF
12910#define PJ_HAS_SSL_SOCK 1
12911_ACEOF
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +000012912
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012913 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000012914 { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
12915echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012916 fi
12917
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012918fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012919
12920
12921
12922
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012923
Sauw Ming6e6c2152010-12-14 13:03:10 +000012924{ echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
12925echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012926case $target in
Sauw Ming6e6c2152010-12-14 13:03:10 +000012927 *rtems*) cat >>confdefs.h <<\_ACEOF
12928#define PJ_SELECT_NEEDS_NFDS 1
12929_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012930
Sauw Ming6e6c2152010-12-14 13:03:10 +000012931 { echo "$as_me:$LINENO: result: yes" >&5
12932echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012933 ;;
Sauw Ming6e6c2152010-12-14 13:03:10 +000012934 *) cat >>confdefs.h <<\_ACEOF
12935#define PJ_SELECT_NEEDS_NFDS 0
12936_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012937
Sauw Ming6e6c2152010-12-14 13:03:10 +000012938 { echo "$as_me:$LINENO: result: no (default)" >&5
12939echo "${ECHO_T}no (default)" >&6; }
12940 { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
12941echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012942 ;;
12943esac
12944
Sauw Ming6e6c2152010-12-14 13:03:10 +000012945{ echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
12946echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012947case $target in
Sauw Ming6e6c2152010-12-14 13:03:10 +000012948 *rtems*) cat >>confdefs.h <<\_ACEOF
12949#define PJ_THREAD_SET_STACK_SIZE 1
12950_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012951
Sauw Ming6e6c2152010-12-14 13:03:10 +000012952 { echo "$as_me:$LINENO: result: yes" >&5
12953echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012954 ;;
Sauw Ming6e6c2152010-12-14 13:03:10 +000012955 *) cat >>confdefs.h <<\_ACEOF
12956#define PJ_THREAD_SET_STACK_SIZE 0
12957_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012958
Sauw Ming6e6c2152010-12-14 13:03:10 +000012959 { echo "$as_me:$LINENO: result: no (default)" >&5
12960echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012961 ;;
12962esac
12963
Sauw Ming6e6c2152010-12-14 13:03:10 +000012964{ echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
12965echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012966case $target in
Sauw Ming6e6c2152010-12-14 13:03:10 +000012967 *rtems*) cat >>confdefs.h <<\_ACEOF
12968#define PJ_THREAD_ALLOCATE_STACK 1
12969_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012970
Sauw Ming6e6c2152010-12-14 13:03:10 +000012971 { echo "$as_me:$LINENO: result: yes" >&5
12972echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012973 ;;
Sauw Ming6e6c2152010-12-14 13:03:10 +000012974 *) cat >>confdefs.h <<\_ACEOF
12975#define PJ_THREAD_ALLOCATE_STACK 0
12976_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012977
Sauw Ming6e6c2152010-12-14 13:03:10 +000012978 { echo "$as_me:$LINENO: result: no (default)" >&5
12979echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012980 ;;
12981esac
12982
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012983case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012984 *mingw* | *cygw* | *win32* | *w32* )
Sauw Ming6e6c2152010-12-14 13:03:10 +000012985 cat >>confdefs.h <<\_ACEOF
12986#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
12987_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012988
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012989 ;;
Sauw Ming6e6c2152010-12-14 13:03:10 +000012990 *) cat >>confdefs.h <<\_ACEOF
12991#define PJ_BLOCKING_ERROR_VAL EAGAIN
12992_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012993
Sauw Ming6e6c2152010-12-14 13:03:10 +000012994 { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
12995echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012996 ;;
12997esac
12998
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012999case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013000 *mingw* | *cygw* | *win32* | *w32* )
Sauw Ming6e6c2152010-12-14 13:03:10 +000013001 cat >>confdefs.h <<\_ACEOF
13002#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
13003_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013004
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013005 ;;
Sauw Ming6e6c2152010-12-14 13:03:10 +000013006 *) cat >>confdefs.h <<\_ACEOF
13007#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
13008_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013009
Sauw Ming6e6c2152010-12-14 13:03:10 +000013010 { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
13011echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013012 ;;
13013esac
13014
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013015
13016
13017
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013018if test "$build" = "$host"; then
13019 ac_cross_compile=
13020else
Benny Prijono5b818b22006-09-17 22:58:51 +000013021 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013022fi
13023ac_linux_poll=select
13024
13025ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013026
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013027
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013028case $target in
13029 *rtems*)
13030 ac_main_obj=main_rtems.o
13031 ;;
13032 *)
13033 ac_main_obj=main.o
13034 ;;
13035esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013036
Benny Prijono0822c192008-08-21 20:59:58 +000013037
13038ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013039cat >confcache <<\_ACEOF
13040# This file is a shell script that caches the results of configure
13041# tests run on this system so they can be shared between configure
13042# scripts and configure runs, see configure's option --config-cache.
13043# It is not useful on other systems. If it contains results you don't
13044# want to keep, you may remove or edit it.
13045#
13046# config.status only pays attention to the cache file if you give it
13047# the --recheck option to rerun configure.
13048#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013049# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013050# loading this file, other *unset* `ac_cv_foo' will be assigned the
13051# following values.
13052
13053_ACEOF
13054
13055# The following way of writing the cache mishandles newlines in values,
13056# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013057# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013058# Ultrix sh set writes to stderr and can't be redirected directly,
13059# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013060(
13061 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13062 eval ac_val=\$$ac_var
13063 case $ac_val in #(
13064 *${as_nl}*)
13065 case $ac_var in #(
Sauw Ming6e6c2152010-12-14 13:03:10 +000013066 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13067echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013068 esac
13069 case $ac_var in #(
13070 _ | IFS | as_nl) ;; #(
Sauw Ming6e6c2152010-12-14 13:03:10 +000013071 *) $as_unset $ac_var ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013072 esac ;;
13073 esac
13074 done
13075
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013076 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13078 *${as_nl}ac_space=\ *)
Sauw Ming6e6c2152010-12-14 13:03:10 +000013079 # `set' does not quote correctly, so add quotes (double-quote
13080 # substitution turns \\\\ into \\, and sed turns \\ into \).
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013081 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013082 "s/'/'\\\\''/g;
13083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013084 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013085 *)
13086 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013088 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013089 esac |
13090 sort
13091) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013092 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013093 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013094 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013095 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13097 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13099 :end' >>confcache
13100if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13101 if test -w "$cache_file"; then
13102 test "x$cache_file" != "x/dev/null" &&
Sauw Ming6e6c2152010-12-14 13:03:10 +000013103 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13104echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013105 cat confcache >$cache_file
13106 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000013107 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13108echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013109 fi
13110fi
13111rm -f confcache
13112
13113test "x$prefix" = xNONE && prefix=$ac_default_prefix
13114# Let make expand exec_prefix.
13115test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13116
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013117DEFS=-DHAVE_CONFIG_H
13118
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013119ac_libobjs=
13120ac_ltlibobjs=
13121for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13122 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Sauw Ming6e6c2152010-12-14 13:03:10 +000013124 ac_i=`echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13126 # will be set to the directory where LIBOBJS objects are built.
Sauw Ming6e6c2152010-12-14 13:03:10 +000013127 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13128 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013129done
13130LIBOBJS=$ac_libobjs
13131
13132LTLIBOBJS=$ac_ltlibobjs
13133
13134
13135
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013136: ${CONFIG_STATUS=./config.status}
13137ac_clean_files_save=$ac_clean_files
13138ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Sauw Ming6e6c2152010-12-14 13:03:10 +000013139{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13140echo "$as_me: creating $CONFIG_STATUS" >&6;}
13141cat >$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013142#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013143# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013144# Run this file to recreate the current configuration.
13145# Compiler output produced by configure, useful for debugging
13146# configure, is in config.log if it exists.
13147
13148debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013149ac_cs_recheck=false
13150ac_cs_silent=false
Benny Prijonoc45d9512010-12-10 11:04:30 +000013151SHELL=\${CONFIG_SHELL-$SHELL}
Sauw Ming6e6c2152010-12-14 13:03:10 +000013152_ACEOF
13153
13154cat >>$CONFIG_STATUS <<\_ACEOF
13155## --------------------- ##
13156## M4sh Initialization. ##
13157## --------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013158
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013159# Be more Bourne compatible
13160DUALCASE=1; export DUALCASE # for MKS sh
Sauw Ming6e6c2152010-12-14 13:03:10 +000013161if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013162 emulate sh
13163 NULLCMD=:
Sauw Ming6e6c2152010-12-14 13:03:10 +000013164 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013165 # is contrary to our usage. Disable this feature.
13166 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013167 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000013168else
Sauw Ming6e6c2152010-12-14 13:03:10 +000013169 case `(set -o) 2>/dev/null` in
13170 *posix*) set -o posix ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013171esac
Sauw Ming6e6c2152010-12-14 13:03:10 +000013172
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013173fi
13174
13175
Sauw Ming6e6c2152010-12-14 13:03:10 +000013176
13177
13178# PATH needs CR
13179# Avoid depending upon Character Ranges.
13180as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13181as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13182as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13183as_cr_digits='0123456789'
13184as_cr_alnum=$as_cr_Letters$as_cr_digits
Benny Prijonod5233702010-01-13 13:09:45 +000013185
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013186# The user is always right.
13187if test "${PATH_SEPARATOR+set}" != set; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000013188 echo "#! /bin/sh" >conf$$.sh
13189 echo "exit 0" >>conf$$.sh
13190 chmod +x conf$$.sh
13191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13192 PATH_SEPARATOR=';'
13193 else
13194 PATH_SEPARATOR=:
13195 fi
13196 rm -f conf$$.sh
13197fi
13198
13199# Support unset when possible.
13200if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13201 as_unset=unset
13202else
13203 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013204fi
13205
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013206
13207# IFS
13208# We need space, tab and new line, in precisely that order. Quoting is
13209# there to prevent editors from complaining about space-tab.
13210# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13211# splitting by setting IFS to empty value.)
Sauw Ming6e6c2152010-12-14 13:03:10 +000013212as_nl='
13213'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013214IFS=" "" $as_nl"
13215
13216# Find who we are. Look in the path if we contain no directory separator.
Sauw Ming6e6c2152010-12-14 13:03:10 +000013217case $0 in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013218 *[\\/]* ) as_myself=$0 ;;
13219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013220for as_dir in $PATH
13221do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
Sauw Ming6e6c2152010-12-14 13:03:10 +000013224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13225done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013226IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013227
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013228 ;;
13229esac
13230# We did not find ourselves, most probably we were run as `sh COMMAND'
13231# in which case we are not to be found in the path.
13232if test "x$as_myself" = x; then
13233 as_myself=$0
13234fi
13235if test ! -f "$as_myself"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000013236 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13237 { (exit 1); exit 1; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013238fi
13239
Sauw Ming6e6c2152010-12-14 13:03:10 +000013240# Work around bugs in pre-3.0 UWIN ksh.
13241for as_var in ENV MAIL MAILPATH
13242do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013243done
13244PS1='$ '
13245PS2='> '
13246PS4='+ '
13247
13248# NLS nuisances.
Sauw Ming6e6c2152010-12-14 13:03:10 +000013249for as_var in \
13250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13252 LC_TELEPHONE LC_TIME
13253do
13254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13255 eval $as_var=C; export $as_var
13256 else
13257 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijonoc45d9512010-12-10 11:04:30 +000013258 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000013259done
Benny Prijonoc45d9512010-12-10 11:04:30 +000013260
Sauw Ming6e6c2152010-12-14 13:03:10 +000013261# Required to use basename.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013262if expr a : '\(a\)' >/dev/null 2>&1 &&
13263 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13264 as_expr=expr
13265else
13266 as_expr=false
13267fi
13268
13269if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13270 as_basename=basename
13271else
13272 as_basename=false
13273fi
13274
13275
Sauw Ming6e6c2152010-12-14 13:03:10 +000013276# Name of the executable.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013277as_me=`$as_basename -- "$0" ||
13278$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13279 X"$0" : 'X\(//\)$' \| \
13280 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Sauw Ming6e6c2152010-12-14 13:03:10 +000013281echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013282 sed '/^.*\/\([^/][^/]*\)\/*$/{
13283 s//\1/
13284 q
13285 }
13286 /^X\/\(\/\/\)$/{
13287 s//\1/
13288 q
13289 }
13290 /^X\/\(\/\).*/{
13291 s//\1/
13292 q
13293 }
13294 s/.*/./; q'`
13295
Sauw Ming6e6c2152010-12-14 13:03:10 +000013296# CDPATH.
13297$as_unset CDPATH
13298
13299
13300
13301 as_lineno_1=$LINENO
13302 as_lineno_2=$LINENO
13303 test "x$as_lineno_1" != "x$as_lineno_2" &&
13304 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13305
13306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13307 # uniformly replaced by the line number. The first 'sed' inserts a
13308 # line-number line after each line using $LINENO; the second 'sed'
13309 # does the real work. The second script uses 'N' to pair each
13310 # line-number line with the line containing $LINENO, and appends
13311 # trailing '-' during substitution so that $LINENO is not a special
13312 # case at line end.
13313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13314 # scripts with optimization help from Paolo Bonzini. Blame Lee
13315 # E. McMahon (1931-1989) for sed's syntax. :-)
13316 sed -n '
13317 p
13318 /[$]LINENO/=
13319 ' <$as_myself |
13320 sed '
13321 s/[$]LINENO.*/&-/
13322 t lineno
13323 b
13324 :lineno
13325 N
13326 :loop
13327 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13328 t loop
13329 s/-\n.*//
13330 ' >$as_me.lineno &&
13331 chmod +x "$as_me.lineno" ||
13332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13333 { (exit 1); exit 1; }; }
13334
13335 # Don't try to exec as it changes $[0], causing all sort of problems
13336 # (the dirname of $[0] is not the place where we might find the
13337 # original and so on. Autoconf is especially sensitive to this).
13338 . "./$as_me.lineno"
13339 # Exit status is that of the last command.
13340 exit
13341}
13342
13343
13344if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13345 as_dirname=dirname
13346else
13347 as_dirname=false
13348fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013349
13350ECHO_C= ECHO_N= ECHO_T=
Sauw Ming6e6c2152010-12-14 13:03:10 +000013351case `echo -n x` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013352-n*)
Sauw Ming6e6c2152010-12-14 13:03:10 +000013353 case `echo 'x\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013354 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Sauw Ming6e6c2152010-12-14 13:03:10 +000013355 *) ECHO_C='\c';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013356 esac;;
13357*)
13358 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013359esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013360
Sauw Ming6e6c2152010-12-14 13:03:10 +000013361if expr a : '\(a\)' >/dev/null 2>&1 &&
13362 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13363 as_expr=expr
13364else
13365 as_expr=false
13366fi
13367
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013368rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013369if test -d conf$$.dir; then
13370 rm -f conf$$.dir/conf$$.file
13371else
13372 rm -f conf$$.dir
Sauw Ming6e6c2152010-12-14 13:03:10 +000013373 mkdir conf$$.dir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013374fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000013375echo >conf$$.file
13376if ln -s conf$$.file conf$$ 2>/dev/null; then
13377 as_ln_s='ln -s'
13378 # ... but there are two gotchas:
13379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13381 # In both cases, we have to default to `cp -p'.
13382 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013383 as_ln_s='cp -p'
Sauw Ming6e6c2152010-12-14 13:03:10 +000013384elif ln conf$$.file conf$$ 2>/dev/null; then
13385 as_ln_s=ln
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013386else
13387 as_ln_s='cp -p'
13388fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013389rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13390rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013391
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013392if mkdir -p . 2>/dev/null; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000013393 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000013394else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013395 test -d ./-p && rmdir ./-p
13396 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000013397fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013398
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013399if test -x / >/dev/null 2>&1; then
13400 as_test_x='test -x'
13401else
13402 if ls -dL / >/dev/null 2>&1; then
13403 as_ls_L_option=L
13404 else
13405 as_ls_L_option=
13406 fi
13407 as_test_x='
13408 eval sh -c '\''
13409 if test -d "$1"; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000013410 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013411 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000013412 case $1 in
13413 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013414 esac;
Sauw Ming6e6c2152010-12-14 13:03:10 +000013415 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013416 ???[sx]*):;;*)false;;esac;fi
13417 '\'' sh
13418 '
13419fi
13420as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013421
13422# Sed expression to map a string onto a valid CPP name.
13423as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13424
13425# Sed expression to map a string onto a valid variable name.
13426as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13427
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013428
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013429exec 6>&1
13430
Sauw Ming6e6c2152010-12-14 13:03:10 +000013431# Save the log message, to keep $[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013432# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013433# values after options handling.
13434ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +000013435This file was extended by pjproject $as_me 1.x, which was
Sauw Ming6e6c2152010-12-14 13:03:10 +000013436generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013437
13438 CONFIG_FILES = $CONFIG_FILES
13439 CONFIG_HEADERS = $CONFIG_HEADERS
13440 CONFIG_LINKS = $CONFIG_LINKS
13441 CONFIG_COMMANDS = $CONFIG_COMMANDS
13442 $ $0 $@
13443
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013444on `(hostname || uname -n) 2>/dev/null | sed 1q`
13445"
13446
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013447_ACEOF
13448
Sauw Ming6e6c2152010-12-14 13:03:10 +000013449cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013450# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013451config_files="$ac_config_files"
13452config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013453
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013454_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013455
Sauw Ming6e6c2152010-12-14 13:03:10 +000013456cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013457ac_cs_usage="\
Sauw Ming6e6c2152010-12-14 13:03:10 +000013458\`$as_me' instantiates files from templates according to the
13459current configuration.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013460
Sauw Ming6e6c2152010-12-14 13:03:10 +000013461Usage: $0 [OPTIONS] [FILE]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013462
13463 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013464 -V, --version print version number and configuration settings, then exit
Sauw Ming6e6c2152010-12-14 13:03:10 +000013465 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013466 -d, --debug don't remove temporary files
13467 --recheck update $as_me by reconfiguring in the same conditions
Sauw Ming6e6c2152010-12-14 13:03:10 +000013468 --file=FILE[:TEMPLATE]
13469 instantiate the configuration file FILE
13470 --header=FILE[:TEMPLATE]
13471 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013472
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013473Configuration files:
13474$config_files
13475
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013476Configuration headers:
13477$config_headers
13478
Sauw Ming6e6c2152010-12-14 13:03:10 +000013479Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonoe2746132008-09-27 13:16:35 +000013480
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013481_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000013482cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013483ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +000013484pjproject config.status 1.x
Sauw Ming6e6c2152010-12-14 13:03:10 +000013485configured by $0, generated by GNU Autoconf 2.61,
13486 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013487
Sauw Ming6e6c2152010-12-14 13:03:10 +000013488Copyright (C) 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013489This config.status script is free software; the Free Software Foundation
13490gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013491
13492ac_pwd='$ac_pwd'
13493srcdir='$srcdir'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013494_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013495
Sauw Ming6e6c2152010-12-14 13:03:10 +000013496cat >>$CONFIG_STATUS <<\_ACEOF
13497# If no file are specified by the user, then we need to provide default
13498# value. By we need to know if files were specified by the user.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013499ac_need_defaults=:
13500while test $# != 0
13501do
13502 case $1 in
13503 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013504 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13505 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013506 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013507 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013508 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013509 ac_option=$1
13510 ac_optarg=$2
13511 ac_shift=shift
13512 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013513 esac
13514
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013515 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013516 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013518 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Sauw Ming6e6c2152010-12-14 13:03:10 +000013520 echo "$ac_cs_version"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013521 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013522 debug=: ;;
13523 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013524 $ac_shift
Sauw Ming6e6c2152010-12-14 13:03:10 +000013525 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013526 ac_need_defaults=false;;
13527 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013528 $ac_shift
Sauw Ming6e6c2152010-12-14 13:03:10 +000013529 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013530 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013531 --he | --h)
13532 # Conflict between --help and --header
Sauw Ming6e6c2152010-12-14 13:03:10 +000013533 { echo "$as_me: error: ambiguous option: $1
13534Try \`$0 --help' for more information." >&2
13535 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013536 --help | --hel | -h )
Sauw Ming6e6c2152010-12-14 13:03:10 +000013537 echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13539 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13540 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013541
13542 # This is an error.
Sauw Ming6e6c2152010-12-14 13:03:10 +000013543 -*) { echo "$as_me: error: unrecognized option: $1
13544Try \`$0 --help' for more information." >&2
13545 { (exit 1); exit 1; }; } ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013546
Sauw Ming6e6c2152010-12-14 13:03:10 +000013547 *) ac_config_targets="$ac_config_targets $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013548 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013549
13550 esac
13551 shift
13552done
13553
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013554ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013555
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013556if $ac_cs_silent; then
13557 exec 6>/dev/null
13558 ac_configure_extra_args="$ac_configure_extra_args --silent"
13559fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013560
13561_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000013562cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013563if \$ac_cs_recheck; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000013564 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13565 CONFIG_SHELL=$SHELL
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013566 export CONFIG_SHELL
Sauw Ming6e6c2152010-12-14 13:03:10 +000013567 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013568fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013569
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013570_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000013571cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013572exec 5>>config.log
13573{
13574 echo
13575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13576## Running $as_me. ##
13577_ASBOX
Sauw Ming6e6c2152010-12-14 13:03:10 +000013578 echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013579} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013580
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013581_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000013582cat >>$CONFIG_STATUS <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013583_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013584
Sauw Ming6e6c2152010-12-14 13:03:10 +000013585cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013586
13587# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013588for ac_config_target in $ac_config_targets
13589do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013590 case $ac_config_target in
13591 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
13592 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
13593 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
13594 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
13595 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
13596 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
13597 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +000013598 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013599 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
13600 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
13601 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
13602 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013603 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +000013604 "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 +000013605
Sauw Ming6e6c2152010-12-14 13:03:10 +000013606 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13607echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13608 { (exit 1); exit 1; }; };;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013609 esac
13610done
13611
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013612
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013613# If the user did not use the arguments to specify the items to instantiate,
13614# then the envvar interface is used. Set only those that are not.
13615# We use the long form for the default assignment because of an extremely
13616# bizarre bug on SunOS 4.1.3.
13617if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013619 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13620fi
13621
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013622# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013623# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013624# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013625# Hook for its removal unless debugging.
13626# Note that there is a small window in which the directory will not be cleaned:
13627# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013628$debug ||
13629{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013630 tmp=
13631 trap 'exit_status=$?
13632 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13633' 0
Sauw Ming6e6c2152010-12-14 13:03:10 +000013634 trap '{ (exit 1); exit 1; }' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013635}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013636# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013637
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013638{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013640 test -n "$tmp" && test -d "$tmp"
13641} ||
13642{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013643 tmp=./conf$$-$RANDOM
13644 (umask 077 && mkdir "$tmp")
Sauw Ming6e6c2152010-12-14 13:03:10 +000013645} ||
13646{
13647 echo "$me: cannot create a temporary directory in ." >&2
13648 { (exit 1); exit 1; }
13649}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013650
Sauw Ming6e6c2152010-12-14 13:03:10 +000013651#
13652# Set up the sed scripts for CONFIG_FILES section.
13653#
13654
13655# No need to generate the scripts if there are no CONFIG_FILES.
13656# This happens for instance when ./config.status config.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013657if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013658
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013659_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013660
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013661
Sauw Ming6e6c2152010-12-14 13:03:10 +000013662
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013663ac_delim='%!_!# '
13664for ac_last_try in false false false false false :; do
Sauw Ming6e6c2152010-12-14 13:03:10 +000013665 cat >conf$$subs.sed <<_ACEOF
13666SHELL!$SHELL$ac_delim
13667PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13668PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13669PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13670PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13671PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13672PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13673exec_prefix!$exec_prefix$ac_delim
13674prefix!$prefix$ac_delim
13675program_transform_name!$program_transform_name$ac_delim
13676bindir!$bindir$ac_delim
13677sbindir!$sbindir$ac_delim
13678libexecdir!$libexecdir$ac_delim
13679datarootdir!$datarootdir$ac_delim
13680datadir!$datadir$ac_delim
13681sysconfdir!$sysconfdir$ac_delim
13682sharedstatedir!$sharedstatedir$ac_delim
13683localstatedir!$localstatedir$ac_delim
13684includedir!$includedir$ac_delim
13685oldincludedir!$oldincludedir$ac_delim
13686docdir!$docdir$ac_delim
13687infodir!$infodir$ac_delim
13688htmldir!$htmldir$ac_delim
13689dvidir!$dvidir$ac_delim
13690pdfdir!$pdfdir$ac_delim
13691psdir!$psdir$ac_delim
13692libdir!$libdir$ac_delim
13693localedir!$localedir$ac_delim
13694mandir!$mandir$ac_delim
13695DEFS!$DEFS$ac_delim
13696ECHO_C!$ECHO_C$ac_delim
13697ECHO_N!$ECHO_N$ac_delim
13698ECHO_T!$ECHO_T$ac_delim
13699LIBS!$LIBS$ac_delim
13700build_alias!$build_alias$ac_delim
13701host_alias!$host_alias$ac_delim
13702target_alias!$target_alias$ac_delim
13703build!$build$ac_delim
13704build_cpu!$build_cpu$ac_delim
13705build_vendor!$build_vendor$ac_delim
13706build_os!$build_os$ac_delim
13707host!$host$ac_delim
13708host_cpu!$host_cpu$ac_delim
13709host_vendor!$host_vendor$ac_delim
13710host_os!$host_os$ac_delim
13711target!$target$ac_delim
13712target_cpu!$target_cpu$ac_delim
13713target_vendor!$target_vendor$ac_delim
13714target_os!$target_os$ac_delim
13715CC!$CC$ac_delim
13716CFLAGS!$CFLAGS$ac_delim
13717LDFLAGS!$LDFLAGS$ac_delim
13718CPPFLAGS!$CPPFLAGS$ac_delim
13719ac_ct_CC!$ac_ct_CC$ac_delim
13720EXEEXT!$EXEEXT$ac_delim
13721OBJEXT!$OBJEXT$ac_delim
13722CXX!$CXX$ac_delim
13723CXXFLAGS!$CXXFLAGS$ac_delim
13724ac_ct_CXX!$ac_ct_CXX$ac_delim
13725AR!$AR$ac_delim
13726LD!$LD$ac_delim
13727LDOUT!$LDOUT$ac_delim
13728RANLIB!$RANLIB$ac_delim
13729LIBEXT!$LIBEXT$ac_delim
13730LIBEXT2!$LIBEXT2$ac_delim
13731CC_OUT!$CC_OUT$ac_delim
13732CC_INC!$CC_INC$ac_delim
13733CC_DEF!$CC_DEF$ac_delim
13734CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim
13735CC_CFLAGS!$CC_CFLAGS$ac_delim
13736ac_pjdir!$ac_pjdir$ac_delim
13737ac_build_mak_vars!$ac_build_mak_vars$ac_delim
13738CPP!$CPP$ac_delim
13739GREP!$GREP$ac_delim
13740EGREP!$EGREP$ac_delim
13741ac_os_objs!$ac_os_objs$ac_delim
13742ac_external_speex!$ac_external_speex$ac_delim
13743ac_external_gsm!$ac_external_gsm$ac_delim
13744ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim
13745ac_external_pa!$ac_external_pa$ac_delim
13746ac_pa_cflags!$ac_pa_cflags$ac_delim
13747ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim
13748ac_pa_use_oss!$ac_pa_use_oss$ac_delim
13749ac_pjmedia_video!$ac_pjmedia_video$ac_delim
13750ac_ios_cflags!$ac_ios_cflags$ac_delim
13751ac_pjmedia_video_has_qt!$ac_pjmedia_video_has_qt$ac_delim
13752ac_qt_cflags!$ac_qt_cflags$ac_delim
13753ac_no_small_filter!$ac_no_small_filter$ac_delim
13754ac_no_large_filter!$ac_no_large_filter$ac_delim
13755ac_no_speex_aec!$ac_no_speex_aec$ac_delim
13756ac_no_g711_codec!$ac_no_g711_codec$ac_delim
13757ac_no_l16_codec!$ac_no_l16_codec$ac_delim
13758ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim
13759ac_no_g722_codec!$ac_no_g722_codec$ac_delim
13760ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim
13761ac_no_speex_codec!$ac_no_speex_codec$ac_delim
13762ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim
13763_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013764
Sauw Ming6e6c2152010-12-14 13:03:10 +000013765 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013766 break
13767 elif $ac_last_try; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000013768 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13769echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13770 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013771 else
13772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013773 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013774done
13775
Sauw Ming6e6c2152010-12-14 13:03:10 +000013776ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13777if test -n "$ac_eof"; then
13778 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13779 ac_eof=`expr $ac_eof + 1`
13780fi
13781
13782cat >>$CONFIG_STATUS <<_ACEOF
13783cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13784/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013785_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000013786sed '
13787s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13788s/^/s,@/; s/!/@,|#_!!_#|/
13789:n
13790t n
13791s/'"$ac_delim"'$/,g/; t
13792s/$/\\/; p
13793N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13794' >>$CONFIG_STATUS <conf$$subs.sed
13795rm -f conf$$subs.sed
13796cat >>$CONFIG_STATUS <<_ACEOF
13797CEOF$ac_eof
Benny Prijonod4306432010-05-01 22:05:41 +000013798_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000013799
13800
13801ac_delim='%!_!# '
13802for ac_last_try in false false false false false :; do
13803 cat >conf$$subs.sed <<_ACEOF
13804ac_sdl_cflags!$ac_sdl_cflags$ac_delim
13805ac_sdl_ldflags!$ac_sdl_ldflags$ac_delim
13806ac_has_ffmpeg!$ac_has_ffmpeg$ac_delim
13807ac_ffmpeg_cflags!$ac_ffmpeg_cflags$ac_delim
13808ac_ffmpeg_ldflags!$ac_ffmpeg_ldflags$ac_delim
13809ac_v4l2_cflags!$ac_v4l2_cflags$ac_delim
13810ac_v4l2_ldflags!$ac_v4l2_ldflags$ac_delim
13811ac_no_ssl!$ac_no_ssl$ac_delim
13812openssl_h_present!$openssl_h_present$ac_delim
13813libssl_present!$libssl_present$ac_delim
13814libcrypto_present!$libcrypto_present$ac_delim
13815ac_cross_compile!$ac_cross_compile$ac_delim
13816ac_linux_poll!$ac_linux_poll$ac_delim
13817ac_host!$ac_host$ac_delim
13818ac_main_obj!$ac_main_obj$ac_delim
13819LIBOBJS!$LIBOBJS$ac_delim
13820LTLIBOBJS!$LTLIBOBJS$ac_delim
Benny Prijonod4306432010-05-01 22:05:41 +000013821_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013822
Sauw Ming6e6c2152010-12-14 13:03:10 +000013823 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
13824 break
13825 elif $ac_last_try; then
13826 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13827echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13828 { (exit 1); exit 1; }; }
13829 else
13830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13831 fi
13832done
13833
13834ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13835if test -n "$ac_eof"; then
13836 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13837 ac_eof=`expr $ac_eof + 1`
13838fi
13839
13840cat >>$CONFIG_STATUS <<_ACEOF
13841cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13842/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13843_ACEOF
13844sed '
13845s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13846s/^/s,@/; s/!/@,|#_!!_#|/
13847:n
13848t n
13849s/'"$ac_delim"'$/,g/; t
13850s/$/\\/; p
13851N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13852' >>$CONFIG_STATUS <conf$$subs.sed
13853rm -f conf$$subs.sed
13854cat >>$CONFIG_STATUS <<_ACEOF
13855:end
13856s/|#_!!_#|//g
13857CEOF$ac_eof
13858_ACEOF
13859
13860
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013861# VPATH may cause trouble with some makes, so we remove $(srcdir),
13862# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13863# trailing colons and then remove the whole line if VPATH becomes empty
13864# (actually we leave an empty line to preserve line numbers).
13865if test "x$srcdir" = x.; then
13866 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13867s/:*\$(srcdir):*/:/
13868s/:*\${srcdir}:*/:/
13869s/:*@srcdir@:*/:/
13870s/^\([^=]*=[ ]*\):*/\1/
13871s/:*$//
13872s/^[^=]*=[ ]*$//
13873}'
13874fi
13875
Sauw Ming6e6c2152010-12-14 13:03:10 +000013876cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013877fi # test -n "$CONFIG_FILES"
13878
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013879
Sauw Ming6e6c2152010-12-14 13:03:10 +000013880for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013881do
13882 case $ac_tag in
13883 :[FHLC]) ac_mode=$ac_tag; continue;;
13884 esac
13885 case $ac_mode$ac_tag in
13886 :[FHL]*:*);;
Sauw Ming6e6c2152010-12-14 13:03:10 +000013887 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13888echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13889 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013890 :[FH]-) ac_tag=-:-;;
13891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13892 esac
13893 ac_save_IFS=$IFS
13894 IFS=:
13895 set x $ac_tag
13896 IFS=$ac_save_IFS
13897 shift
13898 ac_file=$1
13899 shift
13900
13901 case $ac_mode in
13902 :L) ac_source=$1;;
13903 :[FH])
13904 ac_file_inputs=
13905 for ac_f
13906 do
13907 case $ac_f in
13908 -) ac_f="$tmp/stdin";;
13909 *) # Look for the file first in the build tree, then in the source tree
13910 # (if the path is not absolute). The absolute path cannot be DOS-style,
13911 # because $ac_f cannot contain `:'.
13912 test -f "$ac_f" ||
13913 case $ac_f in
13914 [\\/$]*) false;;
13915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13916 esac ||
Sauw Ming6e6c2152010-12-14 13:03:10 +000013917 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13918echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13919 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013920 esac
Sauw Ming6e6c2152010-12-14 13:03:10 +000013921 ac_file_inputs="$ac_file_inputs $ac_f"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013922 done
13923
13924 # Let's still pretend it is `configure' which instantiates (i.e., don't
13925 # use $as_me), people would be surprised to read:
13926 # /* config.h. Generated by config.status. */
Sauw Ming6e6c2152010-12-14 13:03:10 +000013927 configure_input="Generated from "`IFS=:
13928 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013929 if test x"$ac_file" != x-; then
13930 configure_input="$ac_file. $configure_input"
Sauw Ming6e6c2152010-12-14 13:03:10 +000013931 { echo "$as_me:$LINENO: creating $ac_file" >&5
13932echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013933 fi
13934
13935 case $ac_tag in
Sauw Ming6e6c2152010-12-14 13:03:10 +000013936 *:-:* | *:-) cat >"$tmp/stdin";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013937 esac
13938 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013939 esac
13940
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013941 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013942$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13943 X"$ac_file" : 'X\(//\)[^/]' \| \
13944 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Sauw Ming6e6c2152010-12-14 13:03:10 +000013946echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13948 s//\1/
13949 q
13950 }
13951 /^X\(\/\/\)[^/].*/{
13952 s//\1/
13953 q
13954 }
13955 /^X\(\/\/\)$/{
13956 s//\1/
13957 q
13958 }
13959 /^X\(\/\).*/{
13960 s//\1/
13961 q
13962 }
13963 s/.*/./; q'`
Sauw Ming6e6c2152010-12-14 13:03:10 +000013964 { as_dir="$ac_dir"
13965 case $as_dir in #(
13966 -*) as_dir=./$as_dir;;
13967 esac
13968 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13969 as_dirs=
13970 while :; do
13971 case $as_dir in #(
13972 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13973 *) as_qdir=$as_dir;;
13974 esac
13975 as_dirs="'$as_qdir' $as_dirs"
13976 as_dir=`$as_dirname -- "$as_dir" ||
13977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13978 X"$as_dir" : 'X\(//\)[^/]' \| \
13979 X"$as_dir" : 'X\(//\)$' \| \
13980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13981echo X"$as_dir" |
13982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13983 s//\1/
13984 q
13985 }
13986 /^X\(\/\/\)[^/].*/{
13987 s//\1/
13988 q
13989 }
13990 /^X\(\/\/\)$/{
13991 s//\1/
13992 q
13993 }
13994 /^X\(\/\).*/{
13995 s//\1/
13996 q
13997 }
13998 s/.*/./; q'`
13999 test -d "$as_dir" && break
14000 done
14001 test -z "$as_dirs" || eval "mkdir $as_dirs"
14002 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14003echo "$as_me: error: cannot create directory $as_dir" >&2;}
14004 { (exit 1); exit 1; }; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014005 ac_builddir=.
14006
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014007case "$ac_dir" in
14008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14009*)
Sauw Ming6e6c2152010-12-14 13:03:10 +000014010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014011 # A ".." for each directory in $ac_dir_suffix.
Sauw Ming6e6c2152010-12-14 13:03:10 +000014012 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014013 case $ac_top_builddir_sub in
14014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14016 esac ;;
14017esac
14018ac_abs_top_builddir=$ac_pwd
14019ac_abs_builddir=$ac_pwd$ac_dir_suffix
14020# for backward compatibility:
14021ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014022
14023case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014024 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014025 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014026 ac_top_srcdir=$ac_top_builddir_sub
14027 ac_abs_top_srcdir=$ac_pwd ;;
14028 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014029 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014030 ac_top_srcdir=$srcdir
14031 ac_abs_top_srcdir=$srcdir ;;
14032 *) # Relative name.
14033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14034 ac_top_srcdir=$ac_top_build_prefix$srcdir
14035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014036esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +000014038
Benny Prijonoe2746132008-09-27 13:16:35 +000014039
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014040 case $ac_mode in
14041 :F)
14042 #
14043 # CONFIG_FILE
14044 #
Benny Prijonoe2746132008-09-27 13:16:35 +000014045
Benny Prijonoe2746132008-09-27 13:16:35 +000014046_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014047
Sauw Ming6e6c2152010-12-14 13:03:10 +000014048cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014049# If the template does not know about datarootdir, expand it.
14050# FIXME: This hack should be removed a few years after 2.60.
14051ac_datarootdir_hack=; ac_datarootdir_seen=
Sauw Ming6e6c2152010-12-14 13:03:10 +000014052
14053case `sed -n '/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014054 p
14055 q
14056}
14057/@datadir@/p
14058/@docdir@/p
14059/@infodir@/p
14060/@localedir@/p
Sauw Ming6e6c2152010-12-14 13:03:10 +000014061/@mandir@/p
14062' $ac_file_inputs` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014063*datarootdir*) ac_datarootdir_seen=yes;;
14064*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Sauw Ming6e6c2152010-12-14 13:03:10 +000014065 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14066echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014067_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000014068cat >>$CONFIG_STATUS <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014069 ac_datarootdir_hack='
14070 s&@datadir@&$datadir&g
14071 s&@docdir@&$docdir&g
14072 s&@infodir@&$infodir&g
14073 s&@localedir@&$localedir&g
14074 s&@mandir@&$mandir&g
Sauw Ming6e6c2152010-12-14 13:03:10 +000014075 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014076esac
14077_ACEOF
14078
14079# Neutralize VPATH when `$srcdir' = `.'.
14080# Shell code in configure.ac might set extrasub.
14081# FIXME: do we really want to maintain this feature?
Sauw Ming6e6c2152010-12-14 13:03:10 +000014082cat >>$CONFIG_STATUS <<_ACEOF
14083 sed "$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014084$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014085_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000014086cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014087:t
14088/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Sauw Ming6e6c2152010-12-14 13:03:10 +000014089s&@configure_input@&$configure_input&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014090s&@top_builddir@&$ac_top_builddir_sub&;t t
14091s&@srcdir@&$ac_srcdir&;t t
14092s&@abs_srcdir@&$ac_abs_srcdir&;t t
14093s&@top_srcdir@&$ac_top_srcdir&;t t
14094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14095s&@builddir@&$ac_builddir&;t t
14096s&@abs_builddir@&$ac_abs_builddir&;t t
14097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14098$ac_datarootdir_hack
Sauw Ming6e6c2152010-12-14 13:03:10 +000014099" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014100
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014101test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14102 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14103 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Sauw Ming6e6c2152010-12-14 13:03:10 +000014104 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014105which seems to be undefined. Please make sure it is defined." >&5
Sauw Ming6e6c2152010-12-14 13:03:10 +000014106echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014107which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014108
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014109 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014110 case $ac_file in
Sauw Ming6e6c2152010-12-14 13:03:10 +000014111 -) cat "$tmp/out"; rm -f "$tmp/out";;
14112 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14113 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014114 ;;
14115 :H)
14116 #
14117 # CONFIG_HEADER
14118 #
Sauw Ming6e6c2152010-12-14 13:03:10 +000014119_ACEOF
14120
14121# Transform confdefs.h into a sed script `conftest.defines', that
14122# substitutes the proper values into config.h.in to produce config.h.
14123rm -f conftest.defines conftest.tail
14124# First, append a space to every undef/define line, to ease matching.
14125echo 's/$/ /' >conftest.defines
14126# Then, protect against being on the right side of a sed subst, or in
14127# an unquoted here document, in config.status. If some macros were
14128# called several times there might be several #defines for the same
14129# symbol, which is useless. But do not sort them, since the last
14130# AC_DEFINE must be honored.
14131ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14132# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14133# NAME is the cpp macro being defined, VALUE is the value it is being given.
14134# PARAMS is the parameter list in the macro definition--in most cases, it's
14135# just an empty string.
14136ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14137ac_dB='\\)[ (].*,\\1define\\2'
14138ac_dC=' '
14139ac_dD=' ,'
14140
14141uniq confdefs.h |
14142 sed -n '
14143 t rset
14144 :rset
14145 s/^[ ]*#[ ]*define[ ][ ]*//
14146 t ok
14147 d
14148 :ok
14149 s/[\\&,]/\\&/g
14150 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14151 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14152 ' >>conftest.defines
14153
14154# Remove the space that was appended to ease matching.
14155# Then replace #undef with comments. This is necessary, for
14156# example, in the case of _POSIX_SOURCE, which is predefined and required
14157# on some systems where configure will not decide to define it.
14158# (The regexp can be short, since the line contains either #define or #undef.)
14159echo 's/ $//
14160s,^[ #]*u.*,/* & */,' >>conftest.defines
14161
14162# Break up conftest.defines:
14163ac_max_sed_lines=50
14164
14165# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14166# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14167# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14168# et cetera.
14169ac_in='$ac_file_inputs'
14170ac_out='"$tmp/out1"'
14171ac_nxt='"$tmp/out2"'
14172
14173while :
14174do
14175 # Write a here document:
14176 cat >>$CONFIG_STATUS <<_ACEOF
14177 # First, check the format of the line:
14178 cat >"\$tmp/defines.sed" <<\\CEOF
14179/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14180/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14181b
14182:def
14183_ACEOF
14184 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14185 echo 'CEOF
14186 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14187 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14188 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14189 grep . conftest.tail >/dev/null || break
14190 rm -f conftest.defines
14191 mv conftest.tail conftest.defines
14192done
14193rm -f conftest.defines conftest.tail
14194
14195echo "ac_result=$ac_in" >>$CONFIG_STATUS
14196cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014197 if test x"$ac_file" != x-; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000014198 echo "/* $configure_input */" >"$tmp/config.h"
14199 cat "$ac_result" >>"$tmp/config.h"
14200 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14201 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14202echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014203 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000014204 rm -f $ac_file
14205 mv "$tmp/config.h" $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014206 fi
14207 else
Sauw Ming6e6c2152010-12-14 13:03:10 +000014208 echo "/* $configure_input */"
14209 cat "$ac_result"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014210 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000014211 rm -f "$tmp/out12"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014212 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014213
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014214
14215 esac
14216
14217done # for ac_tag
14218
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014219
Sauw Ming6e6c2152010-12-14 13:03:10 +000014220{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014221_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000014222chmod +x $CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014223ac_clean_files=$ac_clean_files_save
14224
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014225
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014226# configure is writing to config.log, and then calls config.status.
14227# config.status does its own redirection, appending to config.log.
14228# Unfortunately, on DOS this fails, as config.log is still kept open
14229# by configure, so config.status won't be able to write to it; its
14230# output is simply discarded. So we exec the FD to /dev/null,
14231# effectively closing config.log, so it can be properly (re)opened and
14232# appended to by config.status. When coming back to configure, we
14233# need to make the FD available again.
14234if test "$no_create" != yes; then
14235 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014236 ac_config_status_args=
14237 test "$silent" = yes &&
14238 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014239 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014241 exec 5>>config.log
14242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14243 # would make configure fail if this is the last instruction.
Sauw Ming6e6c2152010-12-14 13:03:10 +000014244 $ac_cs_success || { (exit 1); exit 1; }
Benny Prijonod5233702010-01-13 13:09:45 +000014245fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014246
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014247
Benny Prijonod9627842007-04-18 09:24:31 +000014248
Sauw Ming6e6c2152010-12-14 13:03:10 +000014249{ echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000014250
Benny Prijonoc16c6e32007-11-18 14:53:47 +000014251Configurations 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 +000014252
Benny Prijonoc16c6e32007-11-18 14:53:47 +000014253Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000014254 - 'user.mak'
14255 - 'pjlib/include/pj/config_site.h'
14256
14257The next step now is to run 'make dep' and 'make'.
14258" >&5
Sauw Ming6e6c2152010-12-14 13:03:10 +000014259echo "${ECHO_T}
Benny Prijonod9627842007-04-18 09:24:31 +000014260
Benny Prijonoc16c6e32007-11-18 14:53:47 +000014261Configurations 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 +000014262
Benny Prijonoc16c6e32007-11-18 14:53:47 +000014263Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000014264 - 'user.mak'
14265 - 'pjlib/include/pj/config_site.h'
14266
14267The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014268" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +000014269