blob: fffca6bc166f473547b371bfd1eec10343a70e40 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003# Generated by GNU Autoconf 2.61 for pjproject 1.0.
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,
6# 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.
Benny Prijono7e0d75f2006-12-25 20:34:14 +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
Benny Prijono7e0d75f2006-12-25 20:34:14 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # 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
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Benny Prijono7e0d75f2006-12-25 20:34:14 +000027fi
28
29
Benny Prijono7e0d75f2006-12-25 20:34:14 +000030
31
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000032# PATH needs CR
Benny Prijonoa9b372a2006-07-24 02:07:11 +000033# 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
39
Benny Prijono7e0d75f2006-12-25 20:34:14 +000040# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 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
Benny Prijonoa9b372a2006-07-24 02:07:11 +000051fi
52
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000059
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.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) 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=.
78 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
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# 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
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for 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
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000112 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000113done
114
115# Required to use basename.
116if 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
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 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
150# CDPATH.
151$as_unset CDPATH
152
153
154if 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=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000221 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=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000226 case $as_dir in
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000227 /*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000228 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(
Benny Prijonoe2746132008-09-27 13:16:35 +0000328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Benny Prijonoe2746132008-09-27 13:16:35 +0000330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000331 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" || {
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000427
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
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000430 # 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.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 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" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
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
465
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000481esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000482
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -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
495 mkdir conf$$.dir
496fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000499 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'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
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
515 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
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[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
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000551
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000552exec 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=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000570SHELL=${CONFIG_SHELL-/bin/sh}
571
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000572# Identity of this package.
573PACKAGE_NAME='pjproject'
574PACKAGE_TARNAME='pjproject'
Benny Prijono0822c192008-08-21 20:59:58 +0000575PACKAGE_VERSION='1.0'
576PACKAGE_STRING='pjproject 1.0'
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
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000615ac_subst_vars='SHELL
616PATH_SEPARATOR
617PACKAGE_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
674ac_pjdir
675ac_build_mak_vars
676CPP
677GREP
678EGREP
679ac_os_objs
680ac_pjmedia_snd
681ac_pa_cflags
682ac_pa_use_alsa
683ac_pa_use_oss
684ac_no_small_filter
685ac_no_large_filter
686ac_no_speex_aec
687ac_no_g711_codec
688ac_no_l16_codec
689ac_no_gsm_codec
690ac_no_g722_codec
691ac_no_g7221_codec
692ac_no_speex_codec
693ac_no_ilbc_codec
694ac_no_ssl
695openssl_h_present
696libssl_present
697libcrypto_present
698ac_cross_compile
699ac_linux_poll
700ac_host
701ac_main_obj
702LIBOBJS
703LTLIBOBJS'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000704ac_subst_files=''
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000705 ac_precious_vars='build_alias
706host_alias
707target_alias
708CC
709CFLAGS
710LDFLAGS
711LIBS
712CPPFLAGS
713CXX
714CXXFLAGS
715CCC
716CPP'
717
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000718
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000719# Initialize some variables set by options.
720ac_init_help=
721ac_init_version=false
722# The variables have the same names as the options, with
723# dashes changed to underlines.
724cache_file=/dev/null
725exec_prefix=NONE
726no_create=
727no_recursion=
728prefix=NONE
729program_prefix=NONE
730program_suffix=NONE
731program_transform_name=s,x,x,
732silent=
733site=
734srcdir=
735verbose=
736x_includes=NONE
737x_libraries=NONE
738
739# Installation directory options.
740# These are left unexpanded so users can "make install exec_prefix=/foo"
741# and all the variables that are supposed to be based on exec_prefix
742# by default will actually change.
743# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000744# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000745bindir='${exec_prefix}/bin'
746sbindir='${exec_prefix}/sbin'
747libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000748datarootdir='${prefix}/share'
749datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000750sysconfdir='${prefix}/etc'
751sharedstatedir='${prefix}/com'
752localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000753includedir='${prefix}/include'
754oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000755docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
756infodir='${datarootdir}/info'
757htmldir='${docdir}'
758dvidir='${docdir}'
759pdfdir='${docdir}'
760psdir='${docdir}'
761libdir='${exec_prefix}/lib'
762localedir='${datarootdir}/locale'
763mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000764
765ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000766ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000767for ac_option
768do
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000771 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000772 ac_prev=
773 continue
774 fi
775
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000776 case $ac_option in
777 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *) ac_optarg=yes ;;
779 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000780
781 # Accept the important Cygnus configure options, so we can diagnose typos.
782
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000783 case $ac_dashdash$ac_option in
784 --)
785 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000786
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 ac_prev=bindir ;;
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790 bindir=$ac_optarg ;;
791
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
796
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
803
804 --config-cache | -C)
805 cache_file=config.cache ;;
806
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000807 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000808 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000810 datadir=$ac_optarg ;;
811
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
818
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000819 -disable-* | --disable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=no ;;
827
828 -docdir | --docdir | --docdi | --doc | --do)
829 ac_prev=docdir ;;
830 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831 docdir=$ac_optarg ;;
832
833 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834 ac_prev=dvidir ;;
835 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000837
838 -enable-* | --enable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000907 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000908 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000924 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_$ac_package=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001043
1044 -without-* | --without-*)
1045 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001047 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001048 { echo "$as_me: error: invalid package name: $ac_package" >&2
1049 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001050 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051 eval with_$ac_package=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001052
1053 --x)
1054 # Obsolete; use --with-x.
1055 with_x=yes ;;
1056
1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058 | --x-incl | --x-inc | --x-in | --x-i)
1059 ac_prev=x_includes ;;
1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062 x_includes=$ac_optarg ;;
1063
1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066 ac_prev=x_libraries ;;
1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069 x_libraries=$ac_optarg ;;
1070
1071 -*) { echo "$as_me: error: unrecognized option: $ac_option
1072Try \`$0 --help' for more information." >&2
1073 { (exit 1); exit 1; }; }
1074 ;;
1075
1076 *=*)
1077 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001082 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001083 export $ac_envvar ;;
1084
1085 *)
1086 # FIXME: should be removed in autoconf 3.0.
1087 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091 ;;
1092
1093 esac
1094done
1095
1096if test -n "$ac_prev"; then
1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098 { echo "$as_me: error: missing argument to $ac_option" >&2
1099 { (exit 1); exit 1; }; }
1100fi
1101
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001102# Be sure to have absolute directory names.
1103for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001107do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001108 eval ac_val=\$$ac_var
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001109 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001112 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001113 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001115done
1116
1117# There might be people who depend on the old broken behavior: `$host'
1118# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001119# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001120build=$build_alias
1121host=$host_alias
1122target=$target_alias
1123
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001124# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001125if test "x$host_alias" != x; then
1126 if test "x$build_alias" = x; then
1127 cross_compiling=maybe
1128 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129 If a cross compiler is detected then cross compile mode will be used." >&2
1130 elif test "x$build_alias" != "x$host_alias"; then
1131 cross_compiling=yes
1132 fi
1133fi
1134
1135ac_tool_prefix=
1136test -n "$host_alias" && ac_tool_prefix=$host_alias-
1137
1138test "$silent" = yes && exec 6>/dev/null
1139
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001140
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001141ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142ac_ls_di=`ls -di .` &&
1143ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144 { echo "$as_me: error: Working directory cannot be determined" >&2
1145 { (exit 1); exit 1; }; }
1146test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 { echo "$as_me: error: pwd does not report name of working directory" >&2
1148 { (exit 1); exit 1; }; }
1149
1150
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001151# Find the source files, if location was not specified.
1152if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$0" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001156$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$0" : 'X\(//\)[^/]' \| \
1158 X"$0" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001160echo X"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162 s//\1/
1163 q
1164 }
1165 /^X\(\/\/\)[^/].*/{
1166 s//\1/
1167 q
1168 }
1169 /^X\(\/\/\)$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\).*/{
1174 s//\1/
1175 q
1176 }
1177 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001178 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001179 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001180 srcdir=..
1181 fi
1182else
1183 ac_srcdir_defaulted=no
1184fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001185if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001188 { (exit 1); exit 1; }; }
Benny Prijono9489e7a2008-09-19 22:18:50 +00001189fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001190ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191ac_abs_confdir=`(
1192 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Benny Prijonoe2746132008-09-27 13:16:35 +00001193 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001194 pwd)`
1195# When building in place, set srcdir=.
1196if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 srcdir=.
1198fi
1199# Remove unnecessary trailing slashes from srcdir.
1200# Double slashes in file names in object file debugging info
1201# mess up M-x gdb in Emacs.
1202case $srcdir in
1203*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204esac
1205for ac_var in $ac_precious_vars; do
1206 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_env_${ac_var}_value=\$${ac_var}
1208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001211
1212#
1213# Report the --help message.
1214#
1215if test "$ac_init_help" = "long"; then
1216 # Omit some internal or obsolete options to make the list less imposing.
1217 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001218 cat <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00001219\`configure' configures pjproject 1.0 to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001220
1221Usage: $0 [OPTION]... [VAR=VALUE]...
1222
1223To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224VAR=VALUE. See below for descriptions of some of the useful variables.
1225
1226Defaults for the options are specified in brackets.
1227
1228Configuration:
1229 -h, --help display this help and exit
1230 --help=short display options specific to this package
1231 --help=recursive display the short help of all the included packages
1232 -V, --version display version information and exit
1233 -q, --quiet, --silent do not print \`checking...' messages
1234 --cache-file=FILE cache test results in FILE [disabled]
1235 -C, --config-cache alias for \`--cache-file=config.cache'
1236 -n, --no-create do not create output files
1237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1238
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001239Installation directories:
1240 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001241 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001243 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001244
1245By default, \`make install' will install all the files in
1246\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1247an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248for instance \`--prefix=\$HOME'.
1249
1250For better control, use the options below.
1251
1252Fine tuning of the installation directories:
1253 --bindir=DIR user executables [EPREFIX/bin]
1254 --sbindir=DIR system admin executables [EPREFIX/sbin]
1255 --libexecdir=DIR program executables [EPREFIX/libexec]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1259 --libdir=DIR object code libraries [EPREFIX/lib]
1260 --includedir=DIR C header files [PREFIX/include]
1261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1264 --infodir=DIR info documentation [DATAROOTDIR/info]
1265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1266 --mandir=DIR man documentation [DATAROOTDIR/man]
1267 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1268 --htmldir=DIR html documentation [DOCDIR]
1269 --dvidir=DIR dvi documentation [DOCDIR]
1270 --pdfdir=DIR pdf documentation [DOCDIR]
1271 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001272_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001273
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275
1276System types:
1277 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001278 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001279 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001280_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001281fi
1282
1283if test -n "$ac_init_help"; then
1284 case $ac_init_help in
Benny Prijono0822c192008-08-21 20:59:58 +00001285 short | recursive ) echo "Configuration of pjproject 1.0:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001286 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001287 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001288
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001289Optional Features:
1290 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1291 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1292 --disable-floating-point
1293 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001294 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001295 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001296 --disable-oss Disable OSS audio (default: not disabled)
1297
Benny Prijonoebb2c332008-07-28 23:40:58 +00001298 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001299 --disable-small-filter Exclude small filter in resampling
1300 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001301 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1302 --disable-g711-codec Exclude G.711 codecs from the build
1303 --disable-l16-codec Exclude Linear/L16 codec family from the build
1304 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001305 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001306 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001307 --disable-speex-codec Exclude Speex codecs in the build
1308 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001309 --enable-libsamplerate Link with libsamplerate when available. Note that
1310 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono0822c192008-08-21 20:59:58 +00001311 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1312 package and samples location using IPPROOT and
1313 IPPSAMPLES env var or with --with-ipp and
1314 --with-ipp-samples options
1315 --with-ipp=DIR Specify the Intel IPP location
1316 --with-ipp-samples=DIR Specify the Intel IPP samples location
Benny Prijonoce1db762007-02-14 02:21:08 +00001317 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001318
1319
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001320Some influential environment variables:
1321 CC C compiler command
1322 CFLAGS C compiler flags
1323 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1324 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001325 LIBS libraries to pass to the linker, e.g. -l<library>
1326 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1327 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001328 CXX C++ compiler command
1329 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001330 CPP C preprocessor
1331
1332Use these variables to override the choices made by `configure' or to help
1333it to find libraries and programs with nonstandard names/locations.
1334
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001335_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001336ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001337fi
1338
1339if test "$ac_init_help" = "recursive"; then
1340 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001341 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001342 test -d "$ac_dir" || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001343 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001344
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001345case "$ac_dir" in
1346.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001349 # A ".." for each directory in $ac_dir_suffix.
1350 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1351 case $ac_top_builddir_sub in
1352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1354 esac ;;
1355esac
1356ac_abs_top_builddir=$ac_pwd
1357ac_abs_builddir=$ac_pwd$ac_dir_suffix
1358# for backward compatibility:
1359ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001360
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001361case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001362 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001363 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001364 ac_top_srcdir=$ac_top_builddir_sub
1365 ac_abs_top_srcdir=$ac_pwd ;;
1366 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001367 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001368 ac_top_srcdir=$srcdir
1369 ac_abs_top_srcdir=$srcdir ;;
1370 *) # Relative name.
1371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1372 ac_top_srcdir=$ac_top_build_prefix$srcdir
1373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001374esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001375ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001376
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001377 cd "$ac_dir" || { ac_status=$?; continue; }
1378 # Check for guested configure.
1379 if test -f "$ac_srcdir/configure.gnu"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1382 elif test -f "$ac_srcdir/configure"; then
1383 echo &&
1384 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001385 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001386 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001387 fi || ac_status=$?
1388 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001389 done
1390fi
1391
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001392test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001393if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001394 cat <<\_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00001395pjproject configure 1.0
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001396generated by GNU Autoconf 2.61
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001397
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001398Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13992002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001400This configure script is free software; the Free Software Foundation
1401gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001402_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001403 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001404fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001405cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001406This file contains any messages produced by compilers while
1407running configure, to aid debugging if configure makes a mistake.
1408
Benny Prijono0822c192008-08-21 20:59:58 +00001409It was created by pjproject $as_me 1.0, which was
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001410generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001411
1412 $ $0 $@
1413
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001414_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001415exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001416{
1417cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001418## --------- ##
1419## Platform. ##
1420## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001421
1422hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1423uname -m = `(uname -m) 2>/dev/null || echo unknown`
1424uname -r = `(uname -r) 2>/dev/null || echo unknown`
1425uname -s = `(uname -s) 2>/dev/null || echo unknown`
1426uname -v = `(uname -v) 2>/dev/null || echo unknown`
1427
1428/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1429/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1430
1431/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1432/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1433/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001434/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001435/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1436/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1437/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1438
1439_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001440
1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442for as_dir in $PATH
1443do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 echo "PATH: $as_dir"
1447done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001448IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001449
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001450} >&5
1451
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001452cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001453
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001454
1455## ----------- ##
1456## Core tests. ##
1457## ----------- ##
1458
1459_ACEOF
1460
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001461
1462# Keep a trace of the command line.
1463# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001464# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001465# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001466# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001467ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001468ac_configure_args0=
1469ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001470ac_must_keep_next=false
1471for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001472do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001473 for ac_arg
1474 do
1475 case $ac_arg in
1476 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1478 | -silent | --silent | --silen | --sile | --sil)
1479 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001480 *\'*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001481 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1482 esac
1483 case $ac_pass in
1484 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1485 2)
1486 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1487 if test $ac_must_keep_next = true; then
1488 ac_must_keep_next=false # Got value, back to normal.
1489 else
1490 case $ac_arg in
1491 *=* | --config-cache | -C | -disable-* | --disable-* \
1492 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1493 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1494 | -with-* | --with-* | -without-* | --without-* | --x)
1495 case "$ac_configure_args0 " in
1496 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1497 esac
1498 ;;
1499 -* ) ac_must_keep_next=true ;;
1500 esac
1501 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001502 ac_configure_args="$ac_configure_args '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001503 ;;
1504 esac
1505 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001506done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001507$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1508$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 +00001509
1510# When interrupted or exit'd, cleanup temporary files, and complete
1511# config.log. We remove comments because anyway the quotes in there
1512# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001513# WARNING: Use '\'' to represent an apostrophe within the trap.
1514# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001515trap 'exit_status=$?
1516 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001517 {
1518 echo
1519
1520 cat <<\_ASBOX
1521## ---------------- ##
1522## Cache variables. ##
1523## ---------------- ##
1524_ASBOX
1525 echo
1526 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001527(
1528 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1529 eval ac_val=\$$ac_var
1530 case $ac_val in #(
1531 *${as_nl}*)
1532 case $ac_var in #(
1533 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1534echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1535 esac
1536 case $ac_var in #(
1537 _ | IFS | as_nl) ;; #(
1538 *) $as_unset $ac_var ;;
1539 esac ;;
1540 esac
1541 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001542 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001543 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1544 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001545 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001546 "s/'\''/'\''\\\\'\'''\''/g;
1547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1548 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00001549 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00001551 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001552 esac |
1553 sort
1554)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001555 echo
1556
1557 cat <<\_ASBOX
1558## ----------------- ##
1559## Output variables. ##
1560## ----------------- ##
1561_ASBOX
1562 echo
1563 for ac_var in $ac_subst_vars
1564 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001565 eval ac_val=\$$ac_var
1566 case $ac_val in
1567 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568 esac
1569 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001570 done | sort
1571 echo
1572
1573 if test -n "$ac_subst_files"; then
1574 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001575## ------------------- ##
1576## File substitutions. ##
1577## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001578_ASBOX
1579 echo
1580 for ac_var in $ac_subst_files
1581 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001582 eval ac_val=\$$ac_var
1583 case $ac_val in
1584 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1585 esac
1586 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001587 done | sort
1588 echo
1589 fi
1590
1591 if test -s confdefs.h; then
1592 cat <<\_ASBOX
1593## ----------- ##
1594## confdefs.h. ##
1595## ----------- ##
1596_ASBOX
1597 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001598 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001599 echo
1600 fi
1601 test "$ac_signal" != 0 &&
1602 echo "$as_me: caught signal $ac_signal"
1603 echo "$as_me: exit $exit_status"
1604 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001605 rm -f core *.core core.conftest.* &&
1606 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001607 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001608' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001609for ac_signal in 1 2 13 15; do
1610 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1611done
1612ac_signal=0
1613
1614# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001615rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001616
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001617# Predefined preprocessor variables.
1618
1619cat >>confdefs.h <<_ACEOF
1620#define PACKAGE_NAME "$PACKAGE_NAME"
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define PACKAGE_VERSION "$PACKAGE_VERSION"
1631_ACEOF
1632
1633
1634cat >>confdefs.h <<_ACEOF
1635#define PACKAGE_STRING "$PACKAGE_STRING"
1636_ACEOF
1637
1638
1639cat >>confdefs.h <<_ACEOF
1640#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1641_ACEOF
1642
1643
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001644# Let the site file select an alternate cache file if it wants to.
1645# Prefer explicitly selected file to automatically selected ones.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001646if test -n "$CONFIG_SITE"; then
1647 set x "$CONFIG_SITE"
1648elif test "x$prefix" != xNONE; then
1649 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1650else
1651 set x "$ac_default_prefix/share/config.site" \
1652 "$ac_default_prefix/etc/config.site"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001653fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001654shift
1655for ac_site_file
1656do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001657 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001658 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001659echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001660 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001661 . "$ac_site_file"
1662 fi
1663done
1664
1665if test -r "$cache_file"; then
1666 # Some versions of bash will fail to source /dev/null (special
1667 # files actually), so we avoid doing that.
1668 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001669 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001670echo "$as_me: loading cache $cache_file" >&6;}
1671 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001672 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1673 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001674 esac
1675 fi
1676else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001677 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001678echo "$as_me: creating cache $cache_file" >&6;}
1679 >$cache_file
1680fi
1681
1682# Check that the precious variables saved in the cache have kept the same
1683# value.
1684ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001685for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001686 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1687 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001688 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1689 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001690 case $ac_old_set,$ac_new_set in
1691 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001692 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001693echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1694 ac_cache_corrupted=: ;;
1695 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001696 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001697echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1699 ,);;
1700 *)
1701 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001702 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001703echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001704 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001705echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001706 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001707echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001708 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001709 fi;;
1710 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001711 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001712 if test "$ac_new_set" = set; then
1713 case $ac_new_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001714 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001715 *) ac_arg=$ac_var=$ac_new_val ;;
1716 esac
1717 case " $ac_configure_args " in
1718 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1719 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001720 esac
1721 fi
1722done
1723if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001724 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001725echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001726 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001727echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1728 { (exit 1); exit 1; }; }
1729fi
1730
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001755ac_ext=c
1756ac_cpp='$CPP $CPPFLAGS'
1757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001761
1762
Benny Prijono5b818b22006-09-17 22:58:51 +00001763host_orig="$host"
1764
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001765ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001766for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1767 if test -f "$ac_dir/install-sh"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001768 ac_aux_dir=$ac_dir
1769 ac_install_sh="$ac_aux_dir/install-sh -c"
1770 break
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001771 elif test -f "$ac_dir/install.sh"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001772 ac_aux_dir=$ac_dir
1773 ac_install_sh="$ac_aux_dir/install.sh -c"
1774 break
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001775 elif test -f "$ac_dir/shtool"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001776 ac_aux_dir=$ac_dir
1777 ac_install_sh="$ac_aux_dir/shtool install -c"
1778 break
1779 fi
1780done
1781if test -z "$ac_aux_dir"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001782 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1783echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001784 { (exit 1); exit 1; }; }
1785fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001786
1787# These three variables are undocumented and unsupported,
1788# and are intended to be withdrawn in a future Autoconf release.
1789# They can cause serious problems if a builder's source tree is in a directory
1790# whose full name contains unusual characters.
1791ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1792ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1793ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1794
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001795
1796# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001797$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1799echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001800 { (exit 1); exit 1; }; }
1801
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001802{ echo "$as_me:$LINENO: checking build system type" >&5
1803echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001804if test "${ac_cv_build+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001807 ac_build_alias=$build_alias
1808test "x$ac_build_alias" = x &&
1809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1810test "x$ac_build_alias" = x &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001812echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1813 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001814ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1816echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001817 { (exit 1); exit 1; }; }
1818
1819fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001820{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1821echo "${ECHO_T}$ac_cv_build" >&6; }
1822case $ac_cv_build in
1823*-*-*) ;;
1824*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1825echo "$as_me: error: invalid value of canonical build" >&2;}
1826 { (exit 1); exit 1; }; };;
1827esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001828build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001829ac_save_IFS=$IFS; IFS='-'
1830set x $ac_cv_build
1831shift
1832build_cpu=$1
1833build_vendor=$2
1834shift; shift
1835# Remember, the first character of IFS is used to create $*,
1836# except with old shells:
1837build_os=$*
1838IFS=$ac_save_IFS
1839case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001840
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001841
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001842{ echo "$as_me:$LINENO: checking host system type" >&5
1843echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001844if test "${ac_cv_host+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001847 if test "x$host_alias" = x; then
1848 ac_cv_host=$ac_cv_build
1849else
1850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1852echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001853 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001854fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001855
1856fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001857{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1858echo "${ECHO_T}$ac_cv_host" >&6; }
1859case $ac_cv_host in
1860*-*-*) ;;
1861*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1862echo "$as_me: error: invalid value of canonical host" >&2;}
1863 { (exit 1); exit 1; }; };;
1864esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001865host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001866ac_save_IFS=$IFS; IFS='-'
1867set x $ac_cv_host
1868shift
1869host_cpu=$1
1870host_vendor=$2
1871shift; shift
1872# Remember, the first character of IFS is used to create $*,
1873# except with old shells:
1874host_os=$*
1875IFS=$ac_save_IFS
1876case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001877
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001878
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001879{ echo "$as_me:$LINENO: checking target system type" >&5
1880echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001881if test "${ac_cv_target+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1883else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001884 if test "x$target_alias" = x; then
1885 ac_cv_target=$ac_cv_host
1886else
1887 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1888 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1889echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001890 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001891fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001892
1893fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001894{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1895echo "${ECHO_T}$ac_cv_target" >&6; }
1896case $ac_cv_target in
1897*-*-*) ;;
1898*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1899echo "$as_me: error: invalid value of canonical target" >&2;}
1900 { (exit 1); exit 1; }; };;
1901esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001902target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001903ac_save_IFS=$IFS; IFS='-'
1904set x $ac_cv_target
1905shift
1906target_cpu=$1
1907target_vendor=$2
1908shift; shift
1909# Remember, the first character of IFS is used to create $*,
1910# except with old shells:
1911target_os=$*
1912IFS=$ac_save_IFS
1913case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001914
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001915
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001916# The aliases save the names the user supplied, while $host etc.
1917# will get canonicalized.
1918test -n "$target_alias" &&
1919 test "$program_prefix$program_suffix$program_transform_name" = \
1920 NONENONEs,x,x, &&
1921 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001922ac_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 +00001923
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001924ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/portaudio/os-auto.mak third_party/build/os-auto.mak"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001925
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001926
Benny Prijono12483112007-03-12 10:44:38 +00001927
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001928if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001929 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001930else
1931 CFLAGS="$CFLAGS"
1932fi
1933
1934CXXFLAGS="$CFLAGS $CXXFLAGS"
1935
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001936ac_ext=c
1937ac_cpp='$CPP $CPPFLAGS'
1938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941if test -n "$ac_tool_prefix"; then
1942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1943set dummy ${ac_tool_prefix}gcc; ac_word=$2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001946if test "${ac_cv_prog_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948else
1949 if test -n "$CC"; then
1950 ac_cv_prog_CC="$CC" # Let the user override the test.
1951else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001958 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 +00001959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1962 fi
1963done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001964done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001965IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001966
1967fi
1968fi
1969CC=$ac_cv_prog_CC
1970if test -n "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001971 { echo "$as_me:$LINENO: result: $CC" >&5
1972echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001973else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001974 { echo "$as_me:$LINENO: result: no" >&5
1975echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001976fi
1977
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001978
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001979fi
1980if test -z "$ac_cv_prog_CC"; then
1981 ac_ct_CC=$CC
1982 # Extract the first word of "gcc", so it can be a program name with args.
1983set dummy gcc; ac_word=$2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001986if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989 if test -n "$ac_ct_CC"; then
1990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1991else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001998 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 +00001999 ac_cv_prog_ac_ct_CC="gcc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2002 fi
2003done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002004done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002005IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002006
2007fi
2008fi
2009ac_ct_CC=$ac_cv_prog_ac_ct_CC
2010if test -n "$ac_ct_CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002011 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2012echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002013else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002014 { echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002016fi
2017
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002018 if test "x$ac_ct_CC" = x; then
2019 CC=""
2020 else
2021 case $cross_compiling:$ac_tool_warned in
2022yes:)
2023{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2024whose name does not start with the host triplet. If you think this
2025configuration is useful to you, please write to autoconf@gnu.org." >&5
2026echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2027whose name does not start with the host triplet. If you think this
2028configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2029ac_tool_warned=yes ;;
2030esac
2031 CC=$ac_ct_CC
2032 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002033else
2034 CC="$ac_cv_prog_CC"
2035fi
2036
2037if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002038 if test -n "$ac_tool_prefix"; then
2039 # 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 +00002040set dummy ${ac_tool_prefix}cc; ac_word=$2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002043if test "${ac_cv_prog_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2048else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002055 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 +00002056 ac_cv_prog_CC="${ac_tool_prefix}cc"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2059 fi
2060done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002061done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002062IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002063
2064fi
2065fi
2066CC=$ac_cv_prog_CC
2067if test -n "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002068 { echo "$as_me:$LINENO: result: $CC" >&5
2069echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002070else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002071 { echo "$as_me:$LINENO: result: no" >&5
2072echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002073fi
2074
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002075
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002076 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002077fi
2078if test -z "$CC"; then
2079 # Extract the first word of "cc", so it can be a program name with args.
2080set dummy cc; ac_word=$2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002083if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2088else
2089 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002096 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 +00002097 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2098 ac_prog_rejected=yes
2099 continue
2100 fi
2101 ac_cv_prog_CC="cc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2104 fi
2105done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002106done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002107IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002108
2109if test $ac_prog_rejected = yes; then
2110 # We found a bogon in the path, so make sure we never use it.
2111 set dummy $ac_cv_prog_CC
2112 shift
2113 if test $# != 0; then
2114 # We chose a different compiler from the bogus one.
2115 # However, it has the same basename, so the bogon will be chosen
2116 # first if we set CC to just the basename; use the full file name.
2117 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002118 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002119 fi
2120fi
2121fi
2122fi
2123CC=$ac_cv_prog_CC
2124if test -n "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002125 { echo "$as_me:$LINENO: result: $CC" >&5
2126echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002127else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002128 { echo "$as_me:$LINENO: result: no" >&5
2129echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002130fi
2131
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002132
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002133fi
2134if test -z "$CC"; then
2135 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002136 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002137 do
2138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2139set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002142if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH
2150do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002154 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 +00002155 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2158 fi
2159done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002160done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002161IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002162
2163fi
2164fi
2165CC=$ac_cv_prog_CC
2166if test -n "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002167 { echo "$as_me:$LINENO: result: $CC" >&5
2168echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002169else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002170 { echo "$as_me:$LINENO: result: no" >&5
2171echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002172fi
2173
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002174
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002175 test -n "$CC" && break
2176 done
2177fi
2178if test -z "$CC"; then
2179 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002180 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002181do
2182 # Extract the first word of "$ac_prog", so it can be a program name with args.
2183set dummy $ac_prog; ac_word=$2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002186if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189 if test -n "$ac_ct_CC"; then
2190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002198 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 +00002199 ac_cv_prog_ac_ct_CC="$ac_prog"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002204done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002205IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002206
2207fi
2208fi
2209ac_ct_CC=$ac_cv_prog_ac_ct_CC
2210if test -n "$ac_ct_CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002211 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2212echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002213else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002214 { echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002216fi
2217
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002218
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002219 test -n "$ac_ct_CC" && break
2220done
2221
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002222 if test "x$ac_ct_CC" = x; then
2223 CC=""
2224 else
2225 case $cross_compiling:$ac_tool_warned in
2226yes:)
2227{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2228whose name does not start with the host triplet. If you think this
2229configuration is useful to you, please write to autoconf@gnu.org." >&5
2230echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2231whose name does not start with the host triplet. If you think this
2232configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2233ac_tool_warned=yes ;;
2234esac
2235 CC=$ac_ct_CC
2236 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002237fi
2238
2239fi
2240
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002241
2242test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: no acceptable C compiler found in \$PATH
2245See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002246 { (exit 1); exit 1; }; }
2247
2248# Provide some information about the compiler.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002249echo "$as_me:$LINENO: checking for C compiler version" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002250ac_compiler=`set X $ac_compile; echo $2`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002251{ (ac_try="$ac_compiler --version >&5"
2252case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2255esac
2256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002258 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002260 (exit $ac_status); }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002261{ (ac_try="$ac_compiler -v >&5"
2262case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265esac
2266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_compiler -v >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002268 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002270 (exit $ac_status); }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002271{ (ac_try="$ac_compiler -V >&5"
2272case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_compiler -V >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002278 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002280 (exit $ac_status); }
2281
2282cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002283/* confdefs.h. */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002288
2289int
2290main ()
2291{
2292
2293 ;
2294 return 0;
2295}
2296_ACEOF
2297ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002298ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002299# Try to create an executable without -o first, disregard a.out.
2300# It will help us diagnose broken compilers, and finding out an intuition
2301# of exeext.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002302{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2303echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002304ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002305#
2306# List of possible output files, starting from the most likely.
2307# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2308# only as a last resort. b.out is created by i960 compilers.
2309ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2310#
2311# The IRIX 6 linker writes into existing files which may not be
2312# executable, retaining their permissions. Remove them first so a
2313# subsequent execution test works.
2314ac_rmfiles=
2315for ac_file in $ac_files
2316do
2317 case $ac_file in
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2319 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2320 esac
2321done
2322rm -f $ac_rmfiles
2323
2324if { (ac_try="$ac_link_default"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002331 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002333 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002334 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2335# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2336# in a Makefile. We should not override ac_cv_exeext if it was cached,
2337# so that the user can short-circuit this test for compilers unknown to
2338# Autoconf.
2339for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002340do
2341 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002342 case $ac_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002344 ;;
2345 [ab].out )
2346 # We found the default executable, but exeext='' is most
2347 # certainly right.
2348 break;;
2349 *.* )
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002350 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2351 then :; else
2352 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2353 fi
2354 # We set ac_cv_exeext here because the later test for it is not
2355 # safe: cross compilers may not add the suffix if given an `-o'
2356 # argument, so we may need to know it at that point already.
2357 # Even if this section looks crufty: it has the advantage of
2358 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002359 break;;
2360 * )
2361 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002362 esac
2363done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002364test "$ac_cv_exeext" = no && ac_cv_exeext=
2365
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002366else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002367 ac_file=''
2368fi
2369
2370{ echo "$as_me:$LINENO: result: $ac_file" >&5
2371echo "${ECHO_T}$ac_file" >&6; }
2372if test -z "$ac_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002373 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2377See \`config.log' for more details." >&5
2378echo "$as_me: error: C compiler cannot create executables
2379See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002380 { (exit 77); exit 77; }; }
2381fi
2382
2383ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002384
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002385# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002386# the compiler is broken, or we cross compile.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002387{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2388echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002389# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2390# If not cross compiling, check that we can run a simple program.
2391if test "$cross_compiling" != yes; then
2392 if { ac_try='./$ac_file'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002393 { (case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396esac
2397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_try") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002399 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002401 (exit $ac_status); }; }; then
2402 cross_compiling=no
2403 else
2404 if test "$cross_compiling" = maybe; then
2405 cross_compiling=yes
2406 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002407 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2408If you meant to cross compile, use \`--host'.
2409See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002410echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002411If you meant to cross compile, use \`--host'.
2412See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002413 { (exit 1); exit 1; }; }
2414 fi
2415 fi
2416fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002417{ echo "$as_me:$LINENO: result: yes" >&5
2418echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002419
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002420rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002421ac_clean_files=$ac_clean_files_save
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002422# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002423# the compiler is broken, or we cross compile.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002424{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2425echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2426{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2427echo "${ECHO_T}$cross_compiling" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002428
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002429{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2430echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2431if { (ac_try="$ac_link"
2432case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435esac
2436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002438 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002440 (exit $ac_status); }; then
2441 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2442# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2443# work properly (i.e., refer to `conftest.exe'), while it won't with
2444# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002445for ac_file in conftest.exe conftest conftest.*; do
2446 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002447 case $ac_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002449 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002450 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002451 * ) break;;
2452 esac
2453done
2454else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002455 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2456See \`config.log' for more details." >&5
2457echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2458See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002459 { (exit 1); exit 1; }; }
2460fi
2461
2462rm -f conftest$ac_cv_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002463{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2464echo "${ECHO_T}$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002465
2466rm -f conftest.$ac_ext
2467EXEEXT=$ac_cv_exeext
2468ac_exeext=$EXEEXT
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002469{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2470echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002471if test "${ac_cv_objext+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002480
2481int
2482main ()
2483{
2484
2485 ;
2486 return 0;
2487}
2488_ACEOF
2489rm -f conftest.o conftest.obj
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002490if { (ac_try="$ac_compile"
2491case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494esac
2495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002497 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002499 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002500 for ac_file in conftest.o conftest.obj conftest.*; do
2501 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002502 case $ac_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2505 break;;
2506 esac
2507done
2508else
2509 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2513See \`config.log' for more details." >&5
2514echo "$as_me: error: cannot compute suffix of object files: cannot compile
2515See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002516 { (exit 1); exit 1; }; }
2517fi
2518
2519rm -f conftest.$ac_cv_objext conftest.$ac_ext
2520fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002521{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2522echo "${ECHO_T}$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002523OBJEXT=$ac_cv_objext
2524ac_objext=$OBJEXT
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002525{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2526echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002527if test "${ac_cv_c_compiler_gnu+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002536
2537int
2538main ()
2539{
2540#ifndef __GNUC__
2541 choke me
2542#endif
2543
2544 ;
2545 return 0;
2546}
2547_ACEOF
2548rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002549if { (ac_try="$ac_compile"
2550case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2553esac
2554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002556 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002561 (exit $ac_status); } && {
2562 test -z "$ac_c_werror_flag" ||
2563 test ! -s conftest.err
2564 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002565 ac_compiler_gnu=yes
2566else
2567 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002568sed 's/^/| /' conftest.$ac_ext >&5
2569
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002570 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002571fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002572
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002574ac_cv_c_compiler_gnu=$ac_compiler_gnu
2575
2576fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002577{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2578echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002579GCC=`test $ac_compiler_gnu = yes && echo yes`
2580ac_test_CFLAGS=${CFLAGS+set}
2581ac_save_CFLAGS=$CFLAGS
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002582{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2583echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002584if test "${ac_cv_prog_cc_g+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002587 ac_save_c_werror_flag=$ac_c_werror_flag
2588 ac_c_werror_flag=yes
2589 ac_cv_prog_cc_g=no
2590 CFLAGS="-g"
2591 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002597
2598int
2599main ()
2600{
2601
2602 ;
2603 return 0;
2604}
2605_ACEOF
2606rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002607if { (ac_try="$ac_compile"
2608case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2611esac
2612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002614 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002619 (exit $ac_status); } && {
2620 test -z "$ac_c_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002623 ac_cv_prog_cc_g=yes
2624else
2625 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002626sed 's/^/| /' conftest.$ac_ext >&5
2627
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002628 CFLAGS=""
2629 cat >conftest.$ac_ext <<_ACEOF
2630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
2635
2636int
2637main ()
2638{
2639
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (ac_try="$ac_compile"
2646case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649esac
2650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compile") 2>conftest.er1
2652 ac_status=$?
2653 grep -v '^ *+' conftest.er1 >conftest.err
2654 rm -f conftest.er1
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } && {
2658 test -z "$ac_c_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest.$ac_objext; then
2661 :
2662else
2663 echo "$as_me: failed program was:" >&5
2664sed 's/^/| /' conftest.$ac_ext >&5
2665
2666 ac_c_werror_flag=$ac_save_c_werror_flag
2667 CFLAGS="-g"
2668 cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h. */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h. */
2674
2675int
2676main ()
2677{
2678
2679 ;
2680 return 0;
2681}
2682_ACEOF
2683rm -f conftest.$ac_objext
2684if { (ac_try="$ac_compile"
2685case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688esac
2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compile") 2>conftest.er1
2691 ac_status=$?
2692 grep -v '^ *+' conftest.er1 >conftest.err
2693 rm -f conftest.er1
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } && {
2697 test -z "$ac_c_werror_flag" ||
2698 test ! -s conftest.err
2699 } && test -s conftest.$ac_objext; then
2700 ac_cv_prog_cc_g=yes
2701else
2702 echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002706fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002707
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002709fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002710
2711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712fi
2713
2714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 ac_c_werror_flag=$ac_save_c_werror_flag
2716fi
2717{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2718echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002719if test "$ac_test_CFLAGS" = set; then
2720 CFLAGS=$ac_save_CFLAGS
2721elif test $ac_cv_prog_cc_g = yes; then
2722 if test "$GCC" = yes; then
2723 CFLAGS="-g -O2"
2724 else
2725 CFLAGS="-g"
2726 fi
2727else
2728 if test "$GCC" = yes; then
2729 CFLAGS="-O2"
2730 else
2731 CFLAGS=
2732 fi
2733fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002734{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2735echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2736if test "${ac_cv_prog_cc_c89+set}" = set; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002739 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002740ac_save_CC=$CC
2741cat >conftest.$ac_ext <<_ACEOF
2742/* confdefs.h. */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h. */
2747#include <stdarg.h>
2748#include <stdio.h>
2749#include <sys/types.h>
2750#include <sys/stat.h>
2751/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2752struct buf { int x; };
2753FILE * (*rcsopen) (struct buf *, struct stat *, int);
2754static char *e (p, i)
2755 char **p;
2756 int i;
2757{
2758 return p[i];
2759}
2760static char *f (char * (*g) (char **, int), char **p, ...)
2761{
2762 char *s;
2763 va_list v;
2764 va_start (v,p);
2765 s = g (p, va_arg (v,int));
2766 va_end (v);
2767 return s;
2768}
2769
2770/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2771 function prototypes and stuff, but not '\xHH' hex character constants.
2772 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002773 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002774 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2775 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002776 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002777int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2778
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002779/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2780 inside strings and character constants. */
2781#define FOO(x) 'x'
2782int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2783
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002784int test (int i, double x);
2785struct s1 {int (*f) (int a);};
2786struct s2 {int (*f) (double a);};
2787int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2788int argc;
2789char **argv;
2790int
2791main ()
2792{
2793return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2794 ;
2795 return 0;
2796}
2797_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002798for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2799 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002800do
2801 CC="$ac_save_CC $ac_arg"
2802 rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002803if { (ac_try="$ac_compile"
2804case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807esac
2808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002810 ac_status=$?
2811 grep -v '^ *+' conftest.er1 >conftest.err
2812 rm -f conftest.er1
2813 cat conftest.err >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002815 (exit $ac_status); } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest.$ac_objext; then
2819 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002820else
2821 echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002824
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002825fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002826
2827rm -f core conftest.err conftest.$ac_objext
2828 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002829done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002830rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002831CC=$ac_save_CC
2832
2833fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002834# AC_CACHE_VAL
2835case "x$ac_cv_prog_cc_c89" in
2836 x)
2837 { echo "$as_me:$LINENO: result: none needed" >&5
2838echo "${ECHO_T}none needed" >&6; } ;;
2839 xno)
2840 { echo "$as_me:$LINENO: result: unsupported" >&5
2841echo "${ECHO_T}unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002842 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002843 CC="$CC $ac_cv_prog_cc_c89"
2844 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2845echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002846esac
2847
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002848
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002849ac_ext=c
2850ac_cpp='$CPP $CPPFLAGS'
2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002855ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002856ac_cpp='$CXXCPP $CPPFLAGS'
2857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002860if test -z "$CXX"; then
2861 if test -n "$CCC"; then
2862 CXX=$CCC
2863 else
2864 if test -n "$ac_tool_prefix"; then
2865 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 +00002866 do
2867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002871if test "${ac_cv_prog_CXX+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 if test -n "$CXX"; then
2875 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2876else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002883 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 +00002884 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002889done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002890IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002891
2892fi
2893fi
2894CXX=$ac_cv_prog_CXX
2895if test -n "$CXX"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002896 { echo "$as_me:$LINENO: result: $CXX" >&5
2897echo "${ECHO_T}$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002898else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002899 { echo "$as_me:$LINENO: result: no" >&5
2900echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002901fi
2902
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002903
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002904 test -n "$CXX" && break
2905 done
2906fi
2907if test -z "$CXX"; then
2908 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002909 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 +00002910do
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912set dummy $ac_prog; ac_word=$2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002915if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 if test -n "$ac_ct_CXX"; then
2919 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2920else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002927 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 +00002928 ac_cv_prog_ac_ct_CXX="$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002933done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002934IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002935
2936fi
2937fi
2938ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2939if test -n "$ac_ct_CXX"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002940 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2941echo "${ECHO_T}$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002942else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002943 { echo "$as_me:$LINENO: result: no" >&5
2944echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002945fi
2946
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002947
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002948 test -n "$ac_ct_CXX" && break
2949done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002950
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002951 if test "x$ac_ct_CXX" = x; then
2952 CXX="g++"
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955yes:)
2956{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2957whose name does not start with the host triplet. If you think this
2958configuration is useful to you, please write to autoconf@gnu.org." >&5
2959echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2960whose name does not start with the host triplet. If you think this
2961configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2962ac_tool_warned=yes ;;
2963esac
2964 CXX=$ac_ct_CXX
2965 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002966fi
2967
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002968 fi
2969fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002970# Provide some information about the compiler.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002971echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002972ac_compiler=`set X $ac_compile; echo $2`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002973{ (ac_try="$ac_compiler --version >&5"
2974case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002980 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002982 (exit $ac_status); }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002983{ (ac_try="$ac_compiler -v >&5"
2984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compiler -v >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002990 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002992 (exit $ac_status); }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002993{ (ac_try="$ac_compiler -V >&5"
2994case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_compiler -V >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003000 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003002 (exit $ac_status); }
3003
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003004{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3005echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003006if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003015
3016int
3017main ()
3018{
3019#ifndef __GNUC__
3020 choke me
3021#endif
3022
3023 ;
3024 return 0;
3025}
3026_ACEOF
3027rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003028if { (ac_try="$ac_compile"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003035 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003040 (exit $ac_status); } && {
3041 test -z "$ac_cxx_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003044 ac_compiler_gnu=yes
3045else
3046 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003047sed 's/^/| /' conftest.$ac_ext >&5
3048
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003049 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003050fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003051
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003053ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3054
3055fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003056{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3057echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003058GXX=`test $ac_compiler_gnu = yes && echo yes`
3059ac_test_CXXFLAGS=${CXXFLAGS+set}
3060ac_save_CXXFLAGS=$CXXFLAGS
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003061{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3062echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003063if test "${ac_cv_prog_cxx_g+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003066 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3067 ac_cxx_werror_flag=yes
3068 ac_cv_prog_cxx_g=no
3069 CXXFLAGS="-g"
3070 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003071/* confdefs.h. */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003076
3077int
3078main ()
3079{
3080
3081 ;
3082 return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003093 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003098 (exit $ac_status); } && {
3099 test -z "$ac_cxx_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003102 ac_cv_prog_cxx_g=yes
3103else
3104 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003105sed 's/^/| /' conftest.$ac_ext >&5
3106
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003107 CXXFLAGS=""
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext
3124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } && {
3137 test -z "$ac_cxx_werror_flag" ||
3138 test ! -s conftest.err
3139 } && test -s conftest.$ac_objext; then
3140 :
3141else
3142 echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3146 CXXFLAGS="-g"
3147 cat >conftest.$ac_ext <<_ACEOF
3148/* confdefs.h. */
3149_ACEOF
3150cat confdefs.h >>conftest.$ac_ext
3151cat >>conftest.$ac_ext <<_ACEOF
3152/* end confdefs.h. */
3153
3154int
3155main ()
3156{
3157
3158 ;
3159 return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (ac_try="$ac_compile"
3164case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3170 ac_status=$?
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } && {
3176 test -z "$ac_cxx_werror_flag" ||
3177 test ! -s conftest.err
3178 } && test -s conftest.$ac_objext; then
3179 ac_cv_prog_cxx_g=yes
3180else
3181 echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003185fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003186
3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003188fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003189
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191fi
3192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3195fi
3196{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3197echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003198if test "$ac_test_CXXFLAGS" = set; then
3199 CXXFLAGS=$ac_save_CXXFLAGS
3200elif test $ac_cv_prog_cxx_g = yes; then
3201 if test "$GXX" = yes; then
3202 CXXFLAGS="-g -O2"
3203 else
3204 CXXFLAGS="-g"
3205 fi
3206else
3207 if test "$GXX" = yes; then
3208 CXXFLAGS="-O2"
3209 else
3210 CXXFLAGS=
3211 fi
3212fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003219ac_ext=c
3220ac_cpp='$CPP $CPPFLAGS'
3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003225
3226
Benny Prijono0822c192008-08-21 20:59:58 +00003227
Benny Prijono53847a32007-09-24 16:10:13 +00003228case $target in
3229 *mingw* | *cygw* | *win32* | *w32* )
3230 ac_pjdir=`pwd -W`
3231 ;;
3232 *)
3233 ac_pjdir=`pwd`
3234 ;;
3235esac
Benny Prijono12483112007-03-12 10:44:38 +00003236
3237
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003238
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003239{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3240echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003241if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
3244 ac_check_lib_save_LIBS=$LIBS
3245LIBS="-lpthread $LIBS"
3246cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003252
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003253/* Override any GCC internal prototype to avoid an error.
3254 Use char because int might match the return type of a GCC
3255 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003256#ifdef __cplusplus
3257extern "C"
3258#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003259char pthread_create ();
3260int
3261main ()
3262{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003263return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003264 ;
3265 return 0;
3266}
3267_ACEOF
3268rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003269if { (ac_try="$ac_link"
3270case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003276 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest$ac_exeext &&
3285 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003286 ac_cv_lib_pthread_pthread_create=yes
3287else
3288 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003289sed 's/^/| /' conftest.$ac_ext >&5
3290
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003291 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003292fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003293
3294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003295 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003296LIBS=$ac_check_lib_save_LIBS
3297fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003298{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3299echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003300if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003301 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003302#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003303_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003304
3305 LIBS="-lpthread $LIBS"
3306
3307fi
3308
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003309
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003310{ echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
3311echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003312if test "${ac_cv_lib_wsock32_puts+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315 ac_check_lib_save_LIBS=$LIBS
3316LIBS="-lwsock32 $LIBS"
3317cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003323
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003324/* Override any GCC internal prototype to avoid an error.
3325 Use char because int might match the return type of a GCC
3326 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003327#ifdef __cplusplus
3328extern "C"
3329#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003330char puts ();
3331int
3332main ()
3333{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003334return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003335 ;
3336 return 0;
3337}
3338_ACEOF
3339rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003340if { (ac_try="$ac_link"
3341case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003347 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003352 (exit $ac_status); } && {
3353 test -z "$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 } && test -s conftest$ac_exeext &&
3356 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003357 ac_cv_lib_wsock32_puts=yes
3358else
3359 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003360sed 's/^/| /' conftest.$ac_ext >&5
3361
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003362 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003363fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003364
3365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003366 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003367LIBS=$ac_check_lib_save_LIBS
3368fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003369{ echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
3370echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003371if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003372 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003373#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003374_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003375
3376 LIBS="-lwsock32 $LIBS"
3377
3378fi
3379
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003380
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003381{ echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
3382echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003383if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386 ac_check_lib_save_LIBS=$LIBS
3387LIBS="-lws2_32 $LIBS"
3388cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003394
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003395/* Override any GCC internal prototype to avoid an error.
3396 Use char because int might match the return type of a GCC
3397 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003398#ifdef __cplusplus
3399extern "C"
3400#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003401char puts ();
3402int
3403main ()
3404{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003405return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003406 ;
3407 return 0;
3408}
3409_ACEOF
3410rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003411if { (ac_try="$ac_link"
3412case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415esac
3416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003418 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003423 (exit $ac_status); } && {
3424 test -z "$ac_c_werror_flag" ||
3425 test ! -s conftest.err
3426 } && test -s conftest$ac_exeext &&
3427 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003428 ac_cv_lib_ws2_32_puts=yes
3429else
3430 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003431sed 's/^/| /' conftest.$ac_ext >&5
3432
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003433 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003434fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003435
3436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003437 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003438LIBS=$ac_check_lib_save_LIBS
3439fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003440{ echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
3441echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003442if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003443 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003444#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003445_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003446
3447 LIBS="-lws2_32 $LIBS"
3448
3449fi
3450
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003451
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003452{ echo "$as_me:$LINENO: checking for puts in -lole32" >&5
3453echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003454if test "${ac_cv_lib_ole32_puts+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456else
3457 ac_check_lib_save_LIBS=$LIBS
3458LIBS="-lole32 $LIBS"
3459cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003465
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003466/* Override any GCC internal prototype to avoid an error.
3467 Use char because int might match the return type of a GCC
3468 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003469#ifdef __cplusplus
3470extern "C"
3471#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003472char puts ();
3473int
3474main ()
3475{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003476return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003477 ;
3478 return 0;
3479}
3480_ACEOF
3481rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003482if { (ac_try="$ac_link"
3483case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486esac
3487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003489 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003494 (exit $ac_status); } && {
3495 test -z "$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 } && test -s conftest$ac_exeext &&
3498 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003499 ac_cv_lib_ole32_puts=yes
3500else
3501 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003502sed 's/^/| /' conftest.$ac_ext >&5
3503
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003504 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003505fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003506
3507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003508 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003509LIBS=$ac_check_lib_save_LIBS
3510fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003511{ echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3512echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003513if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003514 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003515#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003516_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003517
3518 LIBS="-lole32 $LIBS"
3519
3520fi
3521
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003522
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003523{ echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3524echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003525if test "${ac_cv_lib_winmm_puts+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
3528 ac_check_lib_save_LIBS=$LIBS
3529LIBS="-lwinmm $LIBS"
3530cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003531/* confdefs.h. */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003536
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003537/* Override any GCC internal prototype to avoid an error.
3538 Use char because int might match the return type of a GCC
3539 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003540#ifdef __cplusplus
3541extern "C"
3542#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003543char puts ();
3544int
3545main ()
3546{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003547return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003548 ;
3549 return 0;
3550}
3551_ACEOF
3552rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003553if { (ac_try="$ac_link"
3554case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557esac
3558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003560 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest$ac_exeext &&
3569 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003570 ac_cv_lib_winmm_puts=yes
3571else
3572 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003573sed 's/^/| /' conftest.$ac_ext >&5
3574
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003575 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003576fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003577
3578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003579 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003580LIBS=$ac_check_lib_save_LIBS
3581fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003582{ echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3583echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003584if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003585 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003586#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003587_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003588
3589 LIBS="-lwinmm $LIBS"
3590
3591fi
3592
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003593
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003594{ echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3595echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003596if test "${ac_cv_lib_socket_puts+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599 ac_check_lib_save_LIBS=$LIBS
3600LIBS="-lsocket $LIBS"
3601cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003607
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003608/* Override any GCC internal prototype to avoid an error.
3609 Use char because int might match the return type of a GCC
3610 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003611#ifdef __cplusplus
3612extern "C"
3613#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003614char puts ();
3615int
3616main ()
3617{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003618return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003619 ;
3620 return 0;
3621}
3622_ACEOF
3623rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003624if { (ac_try="$ac_link"
3625case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
3629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest$ac_exeext &&
3640 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003641 ac_cv_lib_socket_puts=yes
3642else
3643 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003644sed 's/^/| /' conftest.$ac_ext >&5
3645
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003646 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003647fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003648
3649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003650 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003651LIBS=$ac_check_lib_save_LIBS
3652fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003653{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3654echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003655if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003656 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003657#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003658_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003659
3660 LIBS="-lsocket $LIBS"
3661
3662fi
3663
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003664
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003665{ echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3666echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003667if test "${ac_cv_lib_rt_puts+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670 ac_check_lib_save_LIBS=$LIBS
3671LIBS="-lrt $LIBS"
3672cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003678
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003679/* Override any GCC internal prototype to avoid an error.
3680 Use char because int might match the return type of a GCC
3681 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003682#ifdef __cplusplus
3683extern "C"
3684#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003685char puts ();
3686int
3687main ()
3688{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003689return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003690 ;
3691 return 0;
3692}
3693_ACEOF
3694rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003695if { (ac_try="$ac_link"
3696case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699esac
3700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003702 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest$ac_exeext &&
3711 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003712 ac_cv_lib_rt_puts=yes
3713else
3714 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003715sed 's/^/| /' conftest.$ac_ext >&5
3716
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003717 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003718fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003719
3720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003721 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003722LIBS=$ac_check_lib_save_LIBS
3723fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003724{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3725echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003726if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003727 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003728#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003729_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003730
3731 LIBS="-lrt $LIBS"
3732
3733fi
3734
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003735
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003736{ echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3737echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003738if test "${ac_cv_lib_nsl_puts+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 ac_check_lib_save_LIBS=$LIBS
3742LIBS="-lnsl $LIBS"
3743cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003749
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003750/* Override any GCC internal prototype to avoid an error.
3751 Use char because int might match the return type of a GCC
3752 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003753#ifdef __cplusplus
3754extern "C"
3755#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003756char puts ();
3757int
3758main ()
3759{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003760return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003761 ;
3762 return 0;
3763}
3764_ACEOF
3765rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003766if { (ac_try="$ac_link"
3767case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770esac
3771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003773 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest$ac_exeext &&
3782 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783 ac_cv_lib_nsl_puts=yes
3784else
3785 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003786sed 's/^/| /' conftest.$ac_ext >&5
3787
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003788 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003789fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003790
3791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003792 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003793LIBS=$ac_check_lib_save_LIBS
3794fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003795{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3796echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003797if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003798 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003799#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003800_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003801
3802 LIBS="-lnsl $LIBS"
3803
3804fi
3805
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003806
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003807{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3808echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003809if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812 ac_check_lib_save_LIBS=$LIBS
3813LIBS="-luuid $LIBS"
3814cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
3820
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003821/* Override any GCC internal prototype to avoid an error.
3822 Use char because int might match the return type of a GCC
3823 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003824#ifdef __cplusplus
3825extern "C"
3826#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003827char uuid_generate ();
3828int
3829main ()
3830{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003831return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003832 ;
3833 return 0;
3834}
3835_ACEOF
3836rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003837if { (ac_try="$ac_link"
3838case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841esac
3842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843 (eval "$ac_link") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003844 ac_status=$?
3845 grep -v '^ *+' conftest.er1 >conftest.err
3846 rm -f conftest.er1
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003849 (exit $ac_status); } && {
3850 test -z "$ac_c_werror_flag" ||
3851 test ! -s conftest.err
3852 } && test -s conftest$ac_exeext &&
3853 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003854 ac_cv_lib_uuid_uuid_generate=yes
3855else
3856 echo "$as_me: failed program was:" >&5
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003859 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003860fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003861
3862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono4e48b512007-05-16 13:41:00 +00003863 conftest$ac_exeext conftest.$ac_ext
3864LIBS=$ac_check_lib_save_LIBS
3865fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003866{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3867echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003868if test $ac_cv_lib_uuid_uuid_generate = yes; then
3869 cat >>confdefs.h <<_ACEOF
3870#define HAVE_LIBUUID 1
3871_ACEOF
3872
3873 LIBS="-luuid $LIBS"
3874
3875fi
3876
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003877{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3878echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003879if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 ac_check_lib_save_LIBS=$LIBS
3883LIBS="-luuid $LIBS"
3884cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003891/* Override any GCC internal prototype to avoid an error.
3892 Use char because int might match the return type of a GCC
3893 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003894#ifdef __cplusplus
3895extern "C"
3896#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003897char uuid_generate ();
3898int
3899main ()
3900{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003901return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003902 ;
3903 return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003907if { (ac_try="$ac_link"
3908case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911esac
3912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_link") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest$ac_exeext &&
3923 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003924 ac_cv_lib_uuid_uuid_generate=yes
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003929 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003930fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003931
3932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono4e48b512007-05-16 13:41:00 +00003933 conftest$ac_exeext conftest.$ac_ext
3934LIBS=$ac_check_lib_save_LIBS
3935fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003936{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3937echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003938if test $ac_cv_lib_uuid_uuid_generate = yes; then
3939 ac_has_uuid_lib=1
3940fi
3941
3942
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003943{ echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3944echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003945cat >>confdefs.h <<_ACEOF
3946#define PJ_M_NAME "$target_cpu"
3947_ACEOF
3948
3949
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003950{ echo "$as_me:$LINENO: checking memory alignment" >&5
3951echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003952case $target in
3953 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003954 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003955#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003956_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003957
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003958 { echo "$as_me:$LINENO: result: 8 bytes" >&5
3959echo "${ECHO_T}8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003960 ;;
3961 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003962 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003963#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003964_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003965
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003966 { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
3967echo "${ECHO_T}4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003968 ;;
3969esac
3970
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003971
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003972ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3978echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3979# On Suns, sometimes $CPP names a directory.
3980if test -n "$CPP" && test -d "$CPP"; then
3981 CPP=
3982fi
3983if test -z "$CPP"; then
3984 if test "${ac_cv_prog_CPP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987 # Double quotes because CPP needs to be expanded
3988 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3989 do
3990 ac_preproc_ok=false
3991for ac_c_preproc_warn_flag in '' yes
3992do
3993 # Use a header file that comes with gcc, so configuring glibc
3994 # with a fresh cross-compiler works.
3995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3996 # <limits.h> exists even on freestanding compilers.
3997 # On the NeXT, cc -E runs the code through the compiler's parser,
3998 # not just through cpp. "Syntax error" is here to catch this case.
3999 cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
4005#ifdef __STDC__
4006# include <limits.h>
4007#else
4008# include <assert.h>
4009#endif
4010 Syntax error
4011_ACEOF
4012if { (ac_try="$ac_cpp conftest.$ac_ext"
4013case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } >/dev/null && {
4025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 }; then
4028 :
4029else
4030 echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 # Broken: fails on valid input.
4034continue
4035fi
4036
4037rm -f conftest.err conftest.$ac_ext
4038
4039 # OK, works on sane cases. Now check whether nonexistent headers
4040 # can be detected and how.
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047#include <ac_nonexistent.h>
4048_ACEOF
4049if { (ac_try="$ac_cpp conftest.$ac_ext"
4050case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053esac
4054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4056 ac_status=$?
4057 grep -v '^ *+' conftest.er1 >conftest.err
4058 rm -f conftest.er1
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } >/dev/null && {
4062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4063 test ! -s conftest.err
4064 }; then
4065 # Broken: success on invalid input.
4066continue
4067else
4068 echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 # Passes both tests.
4072ac_preproc_ok=:
4073break
4074fi
4075
4076rm -f conftest.err conftest.$ac_ext
4077
4078done
4079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080rm -f conftest.err conftest.$ac_ext
4081if $ac_preproc_ok; then
4082 break
4083fi
4084
4085 done
4086 ac_cv_prog_CPP=$CPP
4087
4088fi
4089 CPP=$ac_cv_prog_CPP
4090else
4091 ac_cv_prog_CPP=$CPP
4092fi
4093{ echo "$as_me:$LINENO: result: $CPP" >&5
4094echo "${ECHO_T}$CPP" >&6; }
4095ac_preproc_ok=false
4096for ac_c_preproc_warn_flag in '' yes
4097do
4098 # Use a header file that comes with gcc, so configuring glibc
4099 # with a fresh cross-compiler works.
4100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4101 # <limits.h> exists even on freestanding compilers.
4102 # On the NeXT, cc -E runs the code through the compiler's parser,
4103 # not just through cpp. "Syntax error" is here to catch this case.
4104 cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110#ifdef __STDC__
4111# include <limits.h>
4112#else
4113# include <assert.h>
4114#endif
4115 Syntax error
4116_ACEOF
4117if { (ac_try="$ac_cpp conftest.$ac_ext"
4118case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev/null && {
4130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 }; then
4133 :
4134else
4135 echo "$as_me: failed program was:" >&5
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 # Broken: fails on valid input.
4139continue
4140fi
4141
4142rm -f conftest.err conftest.$ac_ext
4143
4144 # OK, works on sane cases. Now check whether nonexistent headers
4145 # can be detected and how.
4146 cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h. */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
4151/* end confdefs.h. */
4152#include <ac_nonexistent.h>
4153_ACEOF
4154if { (ac_try="$ac_cpp conftest.$ac_ext"
4155case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } >/dev/null && {
4167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4168 test ! -s conftest.err
4169 }; then
4170 # Broken: success on invalid input.
4171continue
4172else
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
4176 # Passes both tests.
4177ac_preproc_ok=:
4178break
4179fi
4180
4181rm -f conftest.err conftest.$ac_ext
4182
4183done
4184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185rm -f conftest.err conftest.$ac_ext
4186if $ac_preproc_ok; then
4187 :
4188else
4189 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4190See \`config.log' for more details." >&5
4191echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4192See \`config.log' for more details." >&2;}
4193 { (exit 1); exit 1; }; }
4194fi
4195
4196ac_ext=c
4197ac_cpp='$CPP $CPPFLAGS'
4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201
4202
4203{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4204echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4205if test "${ac_cv_path_GREP+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208 # Extract the first word of "grep ggrep" to use in msg output
4209if test -z "$GREP"; then
4210set dummy grep ggrep; ac_prog_name=$2
4211if test "${ac_cv_path_GREP+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214 ac_path_GREP_found=false
4215# Loop through the user's path and test for each of PROGNAME-LIST
4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_prog in grep ggrep; do
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4225 # Check for GNU ac_path_GREP and select it if it is found.
4226 # Check for GNU $ac_path_GREP
4227case `"$ac_path_GREP" --version 2>&1` in
4228*GNU*)
4229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4230*)
4231 ac_count=0
4232 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4233 while :
4234 do
4235 cat "conftest.in" "conftest.in" >"conftest.tmp"
4236 mv "conftest.tmp" "conftest.in"
4237 cp "conftest.in" "conftest.nl"
4238 echo 'GREP' >> "conftest.nl"
4239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241 ac_count=`expr $ac_count + 1`
4242 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4243 # Best one so far, save it but keep looking for a better one
4244 ac_cv_path_GREP="$ac_path_GREP"
4245 ac_path_GREP_max=$ac_count
4246 fi
4247 # 10*(2^10) chars as input seems more than enough
4248 test $ac_count -gt 10 && break
4249 done
4250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251esac
4252
4253
4254 $ac_path_GREP_found && break 3
4255 done
4256done
4257
4258done
4259IFS=$as_save_IFS
4260
4261
4262fi
4263
4264GREP="$ac_cv_path_GREP"
4265if test -z "$GREP"; then
4266 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4267echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4268 { (exit 1); exit 1; }; }
4269fi
4270
4271else
4272 ac_cv_path_GREP=$GREP
4273fi
4274
4275
4276fi
4277{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4278echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4279 GREP="$ac_cv_path_GREP"
4280
4281
4282{ echo "$as_me:$LINENO: checking for egrep" >&5
4283echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4284if test "${ac_cv_path_EGREP+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
4287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4288 then ac_cv_path_EGREP="$GREP -E"
4289 else
4290 # Extract the first word of "egrep" to use in msg output
4291if test -z "$EGREP"; then
4292set dummy egrep; ac_prog_name=$2
4293if test "${ac_cv_path_EGREP+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296 ac_path_EGREP_found=false
4297# Loop through the user's path and test for each of PROGNAME-LIST
4298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_prog in egrep; do
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4307 # Check for GNU ac_path_EGREP and select it if it is found.
4308 # Check for GNU $ac_path_EGREP
4309case `"$ac_path_EGREP" --version 2>&1` in
4310*GNU*)
4311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4312*)
4313 ac_count=0
4314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4315 while :
4316 do
4317 cat "conftest.in" "conftest.in" >"conftest.tmp"
4318 mv "conftest.tmp" "conftest.in"
4319 cp "conftest.in" "conftest.nl"
4320 echo 'EGREP' >> "conftest.nl"
4321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4323 ac_count=`expr $ac_count + 1`
4324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4325 # Best one so far, save it but keep looking for a better one
4326 ac_cv_path_EGREP="$ac_path_EGREP"
4327 ac_path_EGREP_max=$ac_count
4328 fi
4329 # 10*(2^10) chars as input seems more than enough
4330 test $ac_count -gt 10 && break
4331 done
4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333esac
4334
4335
4336 $ac_path_EGREP_found && break 3
4337 done
4338done
4339
4340done
4341IFS=$as_save_IFS
4342
4343
4344fi
4345
4346EGREP="$ac_cv_path_EGREP"
4347if test -z "$EGREP"; then
4348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4351fi
4352
4353else
4354 ac_cv_path_EGREP=$EGREP
4355fi
4356
4357
4358 fi
4359fi
4360{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4361echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4362 EGREP="$ac_cv_path_EGREP"
4363
4364
4365{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4366echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4367if test "${ac_cv_header_stdc+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370 cat >conftest.$ac_ext <<_ACEOF
4371/* confdefs.h. */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h. */
4376#include <stdlib.h>
4377#include <stdarg.h>
4378#include <string.h>
4379#include <float.h>
4380
4381int
4382main ()
4383{
4384
4385 ;
4386 return 0;
4387}
4388_ACEOF
4389rm -f conftest.$ac_objext
4390if { (ac_try="$ac_compile"
4391case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394esac
4395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_compile") 2>conftest.er1
4397 ac_status=$?
4398 grep -v '^ *+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } && {
4403 test -z "$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4405 } && test -s conftest.$ac_objext; then
4406 ac_cv_header_stdc=yes
4407else
4408 echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_cv_header_stdc=no
4412fi
4413
4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415
4416if test $ac_cv_header_stdc = yes; then
4417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4418 cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h. */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h. */
4424#include <string.h>
4425
4426_ACEOF
4427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4428 $EGREP "memchr" >/dev/null 2>&1; then
4429 :
4430else
4431 ac_cv_header_stdc=no
4432fi
4433rm -f conftest*
4434
4435fi
4436
4437if test $ac_cv_header_stdc = yes; then
4438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4439 cat >conftest.$ac_ext <<_ACEOF
4440/* confdefs.h. */
4441_ACEOF
4442cat confdefs.h >>conftest.$ac_ext
4443cat >>conftest.$ac_ext <<_ACEOF
4444/* end confdefs.h. */
4445#include <stdlib.h>
4446
4447_ACEOF
4448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4449 $EGREP "free" >/dev/null 2>&1; then
4450 :
4451else
4452 ac_cv_header_stdc=no
4453fi
4454rm -f conftest*
4455
4456fi
4457
4458if test $ac_cv_header_stdc = yes; then
4459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4460 if test "$cross_compiling" = yes; then
4461 :
4462else
4463 cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469#include <ctype.h>
4470#include <stdlib.h>
4471#if ((' ' & 0x0FF) == 0x020)
4472# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4473# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4474#else
4475# define ISLOWER(c) \
4476 (('a' <= (c) && (c) <= 'i') \
4477 || ('j' <= (c) && (c) <= 'r') \
4478 || ('s' <= (c) && (c) <= 'z'))
4479# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4480#endif
4481
4482#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4483int
4484main ()
4485{
4486 int i;
4487 for (i = 0; i < 256; i++)
4488 if (XOR (islower (i), ISLOWER (i))
4489 || toupper (i) != TOUPPER (i))
4490 return 2;
4491 return 0;
4492}
4493_ACEOF
4494rm -f conftest$ac_exeext
4495if { (ac_try="$ac_link"
4496case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499esac
4500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_link") 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4505 { (case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508esac
4509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_try") 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 :
4515else
4516 echo "$as_me: program exited with status $ac_status" >&5
4517echo "$as_me: failed program was:" >&5
4518sed 's/^/| /' conftest.$ac_ext >&5
4519
4520( exit $ac_status )
4521ac_cv_header_stdc=no
4522fi
4523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4524fi
4525
4526
4527fi
4528fi
4529{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4530echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4531if test $ac_cv_header_stdc = yes; then
4532
4533cat >>confdefs.h <<\_ACEOF
4534#define STDC_HEADERS 1
4535_ACEOF
4536
4537fi
4538
4539# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4550 inttypes.h stdint.h unistd.h
4551do
4552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4553{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557else
4558 cat >conftest.$ac_ext <<_ACEOF
4559/* confdefs.h. */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
4563/* end confdefs.h. */
4564$ac_includes_default
4565
4566#include <$ac_header>
4567_ACEOF
4568rm -f conftest.$ac_objext
4569if { (ac_try="$ac_compile"
4570case "(($ac_try" in
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4573esac
4574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4575 (eval "$ac_compile") 2>conftest.er1
4576 ac_status=$?
4577 grep -v '^ *+' conftest.er1 >conftest.err
4578 rm -f conftest.er1
4579 cat conftest.err >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } && {
4582 test -z "$ac_c_werror_flag" ||
4583 test ! -s conftest.err
4584 } && test -s conftest.$ac_objext; then
4585 eval "$as_ac_Header=yes"
4586else
4587 echo "$as_me: failed program was:" >&5
4588sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 eval "$as_ac_Header=no"
4591fi
4592
4593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594fi
4595ac_res=`eval echo '${'$as_ac_Header'}'`
4596 { echo "$as_me:$LINENO: result: $ac_res" >&5
4597echo "${ECHO_T}$ac_res" >&6; }
4598if test `eval echo '${'$as_ac_Header'}'` = yes; then
4599 cat >>confdefs.h <<_ACEOF
4600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4601_ACEOF
4602
4603fi
4604
4605done
4606
4607
4608{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4609echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004610if test "${ac_cv_c_bigendian+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004613 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004614cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004615/* confdefs.h. */
4616_ACEOF
4617cat confdefs.h >>conftest.$ac_ext
4618cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004620#include <sys/types.h>
4621#include <sys/param.h>
4622
4623int
4624main ()
4625{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004626#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4627 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004628 bogus endian macros
4629#endif
4630
4631 ;
4632 return 0;
4633}
4634_ACEOF
4635rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004636if { (ac_try="$ac_compile"
4637case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640esac
4641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004643 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004652 # It does; now see whether it defined to BIG_ENDIAN or not.
4653cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004654/* confdefs.h. */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004659#include <sys/types.h>
4660#include <sys/param.h>
4661
4662int
4663main ()
4664{
4665#if BYTE_ORDER != BIG_ENDIAN
4666 not big endian
4667#endif
4668
4669 ;
4670 return 0;
4671}
4672_ACEOF
4673rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004674if { (ac_try="$ac_compile"
4675case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678esac
4679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004681 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004686 (exit $ac_status); } && {
4687 test -z "$ac_c_werror_flag" ||
4688 test ! -s conftest.err
4689 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004690 ac_cv_c_bigendian=yes
4691else
4692 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004693sed 's/^/| /' conftest.$ac_ext >&5
4694
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004695 ac_cv_c_bigendian=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004696fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004697
4698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004699else
4700 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004701sed 's/^/| /' conftest.$ac_ext >&5
4702
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004703 # It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004704if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004705 # try to guess the endianness by grepping values into an object file
4706 ac_cv_c_bigendian=unknown
4707 cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h. */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004713short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4714short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004715void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004716short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4717short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004718void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4719int
4720main ()
4721{
4722 _ascii (); _ebcdic ();
4723 ;
4724 return 0;
4725}
4726_ACEOF
4727rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004728if { (ac_try="$ac_compile"
4729case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732esac
4733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004740 (exit $ac_status); } && {
4741 test -z "$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004744 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4745 ac_cv_c_bigendian=yes
4746fi
4747if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4748 if test "$ac_cv_c_bigendian" = unknown; then
4749 ac_cv_c_bigendian=no
4750 else
4751 # finding both strings is unlikely to happen, but who knows?
4752 ac_cv_c_bigendian=unknown
4753 fi
4754fi
4755else
4756 echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004759
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004760fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004761
4762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004763else
4764 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004765/* confdefs.h. */
4766_ACEOF
4767cat confdefs.h >>conftest.$ac_ext
4768cat >>conftest.$ac_ext <<_ACEOF
4769/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004770$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004771int
4772main ()
4773{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004774
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004775 /* Are we little or big endian? From Harbison&Steele. */
4776 union
4777 {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004778 long int l;
4779 char c[sizeof (long int)];
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004780 } u;
4781 u.l = 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004782 return u.c[sizeof (long int) - 1] == 1;
4783
4784 ;
4785 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004786}
4787_ACEOF
4788rm -f conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004789if { (ac_try="$ac_link"
4790case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793esac
4794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795 (eval "$ac_link") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004796 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004799 { (case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802esac
4803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_try") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004805 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004807 (exit $ac_status); }; }; then
4808 ac_cv_c_bigendian=no
4809else
4810 echo "$as_me: program exited with status $ac_status" >&5
4811echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004812sed 's/^/| /' conftest.$ac_ext >&5
4813
4814( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004815ac_cv_c_bigendian=yes
4816fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004817rm -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 +00004818fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004819
4820
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004821fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004822
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004824fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004825{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4826echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004827case $ac_cv_c_bigendian in
4828 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004829
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004830cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00004831#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004832_ACEOF
4833 ;;
4834 no)
4835 ;;
4836 *)
4837 { { echo "$as_me:$LINENO: error: unknown endianness
4838presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4839echo "$as_me: error: unknown endianness
4840presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4841 { (exit 1); exit 1; }; } ;;
4842esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004843
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004844
4845case $target in
4846 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004847 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004848#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004849_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004850
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004851 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004852#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004853_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004854
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004855 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004856#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004857_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004858
4859 ;;
4860 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004861 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004862#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004863_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004864
4865 ;;
4866 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004867 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004868#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004869_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004870
4871 ;;
4872 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004873 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004874#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004875_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004876
4877 ;;
4878 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004879 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004880#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004881_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004882
4883 ;;
4884 *)
4885 ;;
4886esac
4887
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004888
4889
4890
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004891# Check whether --enable-floating-point was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004892if test "${enable_floating_point+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004893 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004894 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004895#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004896_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004897
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004898 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
4899echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004900 fi
4901else
4902
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004903 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004904#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004905_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004906
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004907 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
4908echo "${ECHO_T}Checking if floating point is disabled... no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004909
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004910{ echo "$as_me:$LINENO: checking for fmod in -lm" >&5
4911echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004912if test "${ac_cv_lib_m_fmod+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914else
4915 ac_check_lib_save_LIBS=$LIBS
4916LIBS="-lm $LIBS"
4917cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004918/* confdefs.h. */
4919_ACEOF
4920cat confdefs.h >>conftest.$ac_ext
4921cat >>conftest.$ac_ext <<_ACEOF
4922/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004923
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004924/* Override any GCC internal prototype to avoid an error.
4925 Use char because int might match the return type of a GCC
4926 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004927#ifdef __cplusplus
4928extern "C"
4929#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004930char fmod ();
4931int
4932main ()
4933{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004934return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004935 ;
4936 return 0;
4937}
4938_ACEOF
4939rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004940if { (ac_try="$ac_link"
4941case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944esac
4945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004947 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004952 (exit $ac_status); } && {
4953 test -z "$ac_c_werror_flag" ||
4954 test ! -s conftest.err
4955 } && test -s conftest$ac_exeext &&
4956 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004957 ac_cv_lib_m_fmod=yes
4958else
4959 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004960sed 's/^/| /' conftest.$ac_ext >&5
4961
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004962 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004963fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004964
4965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004966 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004967LIBS=$ac_check_lib_save_LIBS
4968fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004969{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
4970echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004971if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004972 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004973#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004974_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004975
4976 LIBS="-lm $LIBS"
4977
4978fi
4979
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004980
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004981fi
4982
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004983
4984
4985if test "${ac_cv_header_arpa_inet_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004986 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4987echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004988if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004991{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4992echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004993else
4994 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004995{ echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4996echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004997cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h. */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h. */
5003$ac_includes_default
5004#include <arpa/inet.h>
5005_ACEOF
5006rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005007if { (ac_try="$ac_compile"
5008case "(($ac_try" in
5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010 *) ac_try_echo=$ac_try;;
5011esac
5012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005019 (exit $ac_status); } && {
5020 test -z "$ac_c_werror_flag" ||
5021 test ! -s conftest.err
5022 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005023 ac_header_compiler=yes
5024else
5025 echo "$as_me: failed program was:" >&5
5026sed 's/^/| /' conftest.$ac_ext >&5
5027
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005028 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005029fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005030
5031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5033echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005034
5035# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005036{ echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
5037echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005038cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#include <arpa/inet.h>
5045_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005046if { (ac_try="$ac_cpp conftest.$ac_ext"
5047case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050esac
5051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005058 (exit $ac_status); } >/dev/null && {
5059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5060 test ! -s conftest.err
5061 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005062 ac_header_preproc=yes
5063else
5064 echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ac_header_preproc=no
5068fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005069
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005070rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005071{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5072echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005073
5074# So? What about this header?
5075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5076 yes:no: )
5077 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
5078echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
5080echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
5081 ac_header_preproc=yes
5082 ;;
5083 no:yes:* )
5084 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
5085echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
5086 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
5087echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
5088 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
5089echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
5090 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
5091echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
5092 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
5093echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
5094 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
5095echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005096
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005097 ;;
5098esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005099{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5100echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005101if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005103else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005104 ac_cv_header_arpa_inet_h=$ac_header_preproc
5105fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005106{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5107echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005108
5109fi
5110if test $ac_cv_header_arpa_inet_h = yes; then
5111 cat >>confdefs.h <<\_ACEOF
5112#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005113_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005114
5115fi
5116
5117
5118if test "${ac_cv_header_assert_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005119 { echo "$as_me:$LINENO: checking for assert.h" >&5
5120echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005121if test "${ac_cv_header_assert_h+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005124{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5125echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005126else
5127 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005128{ echo "$as_me:$LINENO: checking assert.h usability" >&5
5129echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005130cat >conftest.$ac_ext <<_ACEOF
5131/* confdefs.h. */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h. */
5136$ac_includes_default
5137#include <assert.h>
5138_ACEOF
5139rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005140if { (ac_try="$ac_compile"
5141case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5144esac
5145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005147 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005148 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005149 rm -f conftest.er1
5150 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005152 (exit $ac_status); } && {
5153 test -z "$ac_c_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005156 ac_header_compiler=yes
5157else
5158 echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005161 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005162fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005163
5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5166echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005167
5168# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005169{ echo "$as_me:$LINENO: checking assert.h presence" >&5
5170echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h. */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h. */
5177#include <assert.h>
5178_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005179if { (ac_try="$ac_cpp conftest.$ac_ext"
5180case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183esac
5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005191 (exit $ac_status); } >/dev/null && {
5192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5194 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005195 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005196else
5197 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005201fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005202
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005203rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005204{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5205echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005206
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005207# So? What about this header?
5208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5209 yes:no: )
5210 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
5211echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
5213echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
5214 ac_header_preproc=yes
5215 ;;
5216 no:yes:* )
5217 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
5218echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
5220echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
5221 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
5222echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
5223 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
5224echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
5226echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
5227 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
5228echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005229
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005230 ;;
5231esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005232{ echo "$as_me:$LINENO: checking for assert.h" >&5
5233echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005234if test "${ac_cv_header_assert_h+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005236else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005237 ac_cv_header_assert_h=$ac_header_preproc
5238fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005239{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5240echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005241
5242fi
5243if test $ac_cv_header_assert_h = yes; then
5244 cat >>confdefs.h <<\_ACEOF
5245#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005246_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005247
5248fi
5249
5250
5251if test "${ac_cv_header_ctype_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005252 { echo "$as_me:$LINENO: checking for ctype.h" >&5
5253echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005254if test "${ac_cv_header_ctype_h+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005257{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5258echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005259else
5260 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005261{ echo "$as_me:$LINENO: checking ctype.h usability" >&5
5262echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005263cat >conftest.$ac_ext <<_ACEOF
5264/* confdefs.h. */
5265_ACEOF
5266cat confdefs.h >>conftest.$ac_ext
5267cat >>conftest.$ac_ext <<_ACEOF
5268/* end confdefs.h. */
5269$ac_includes_default
5270#include <ctype.h>
5271_ACEOF
5272rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005273if { (ac_try="$ac_compile"
5274case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277esac
5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005280 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005281 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005282 rm -f conftest.er1
5283 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005285 (exit $ac_status); } && {
5286 test -z "$ac_c_werror_flag" ||
5287 test ! -s conftest.err
5288 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005289 ac_header_compiler=yes
5290else
5291 echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005294 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005295fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005296
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5299echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005300
5301# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005302{ echo "$as_me:$LINENO: checking ctype.h presence" >&5
5303echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005304cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310#include <ctype.h>
5311_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005312if { (ac_try="$ac_cpp conftest.$ac_ext"
5313case "(($ac_try" in
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5316esac
5317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005324 (exit $ac_status); } >/dev/null && {
5325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005328 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005329else
5330 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005331sed 's/^/| /' conftest.$ac_ext >&5
5332
5333 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005334fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005335
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005336rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005337{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5338echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005339
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005340# So? What about this header?
5341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5342 yes:no: )
5343 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
5344echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5345 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
5346echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
5347 ac_header_preproc=yes
5348 ;;
5349 no:yes:* )
5350 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
5351echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
5353echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
5354 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
5355echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
5356 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
5357echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
5359echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
5361echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005362
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005363 ;;
5364esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005365{ echo "$as_me:$LINENO: checking for ctype.h" >&5
5366echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005367if test "${ac_cv_header_ctype_h+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005369else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005370 ac_cv_header_ctype_h=$ac_header_preproc
5371fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005372{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5373echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005374
5375fi
5376if test $ac_cv_header_ctype_h = yes; then
5377 cat >>confdefs.h <<\_ACEOF
5378#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005379_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005380
5381fi
5382
5383
5384
5385case $target in
5386 *mingw* | *cygw* | *win32* | *w32* )
5387 cat >>confdefs.h <<\_ACEOF
5388#define PJ_HAS_ERRNO_H 0
5389_ACEOF
5390
5391 ;;
5392 *)
5393 if test "${ac_cv_header_errno_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005394 { echo "$as_me:$LINENO: checking for errno.h" >&5
5395echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005396if test "${ac_cv_header_errno_h+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005399{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5400echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005401else
5402 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005403{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5404echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005405cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h. */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h. */
5411$ac_includes_default
5412#include <errno.h>
5413_ACEOF
5414rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005415if { (ac_try="$ac_compile"
5416case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419esac
5420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005422 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005423 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005424 rm -f conftest.er1
5425 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005427 (exit $ac_status); } && {
5428 test -z "$ac_c_werror_flag" ||
5429 test ! -s conftest.err
5430 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005431 ac_header_compiler=yes
5432else
5433 echo "$as_me: failed program was:" >&5
5434sed 's/^/| /' conftest.$ac_ext >&5
5435
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005436 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005437fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005438
5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5441echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005442
5443# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005444{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5445echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005446cat >conftest.$ac_ext <<_ACEOF
5447/* confdefs.h. */
5448_ACEOF
5449cat confdefs.h >>conftest.$ac_ext
5450cat >>conftest.$ac_ext <<_ACEOF
5451/* end confdefs.h. */
5452#include <errno.h>
5453_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005454if { (ac_try="$ac_cpp conftest.$ac_ext"
5455case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458esac
5459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005466 (exit $ac_status); } >/dev/null && {
5467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5468 test ! -s conftest.err
5469 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005470 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005471else
5472 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005473sed 's/^/| /' conftest.$ac_ext >&5
5474
5475 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005476fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005477
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005478rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005479{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5480echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005481
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005482# So? What about this header?
5483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5484 yes:no: )
5485 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5486echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5488echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5489 ac_header_preproc=yes
5490 ;;
5491 no:yes:* )
5492 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5493echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5494 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
5495echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
5496 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5497echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5498 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
5499echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
5500 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5501echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5502 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5503echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005504
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005505 ;;
5506esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005507{ echo "$as_me:$LINENO: checking for errno.h" >&5
5508echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005509if test "${ac_cv_header_errno_h+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005511else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005512 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005513fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005514{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5515echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005516
5517fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005518if test $ac_cv_header_errno_h = yes; then
5519 cat >>confdefs.h <<\_ACEOF
5520#define PJ_HAS_ERRNO_H 1
5521_ACEOF
5522
5523fi
5524
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005525
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005526 ;;
5527esac
5528
Benny Prijono1d481ab2008-01-24 15:27:30 +00005529if test "${ac_cv_header_fcntl_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005530 { echo "$as_me:$LINENO: checking for fcntl.h" >&5
5531echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005532if test "${ac_cv_header_fcntl_h+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005535{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5536echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005537else
5538 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005539{ echo "$as_me:$LINENO: checking fcntl.h usability" >&5
5540echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005541cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h. */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h. */
5547$ac_includes_default
5548#include <fcntl.h>
5549_ACEOF
5550rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005551if { (ac_try="$ac_compile"
5552case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555esac
5556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005563 (exit $ac_status); } && {
5564 test -z "$ac_c_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.$ac_objext; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005567 ac_header_compiler=yes
5568else
5569 echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005572 ac_header_compiler=no
Benny Prijono1d481ab2008-01-24 15:27:30 +00005573fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005574
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5577echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005578
5579# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005580{ echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5581echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005582cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588#include <fcntl.h>
5589_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005590if { (ac_try="$ac_cpp conftest.$ac_ext"
5591case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005602 (exit $ac_status); } >/dev/null && {
5603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5604 test ! -s conftest.err
5605 }; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005606 ac_header_preproc=yes
5607else
5608 echo "$as_me: failed program was:" >&5
5609sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 ac_header_preproc=no
5612fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005613
Benny Prijono1d481ab2008-01-24 15:27:30 +00005614rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5616echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005617
5618# So? What about this header?
5619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5620 yes:no: )
5621 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5622echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5623 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5624echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5625 ac_header_preproc=yes
5626 ;;
5627 no:yes:* )
5628 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5629echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5630 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5631echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5632 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5633echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5634 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5635echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5636 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5637echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5638 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5639echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005640
Benny Prijono1d481ab2008-01-24 15:27:30 +00005641 ;;
5642esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005643{ echo "$as_me:$LINENO: checking for fcntl.h" >&5
5644echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005645if test "${ac_cv_header_fcntl_h+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647else
5648 ac_cv_header_fcntl_h=$ac_header_preproc
5649fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005650{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5651echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005652
5653fi
5654if test $ac_cv_header_fcntl_h = yes; then
5655 cat >>confdefs.h <<\_ACEOF
5656#define PJ_HAS_FCNTL_H 1
5657_ACEOF
5658
5659fi
5660
5661
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005662if test "${ac_cv_header_linux_socket_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005663 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5664echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005665if test "${ac_cv_header_linux_socket_h+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005668{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5669echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005670else
5671 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005672{ echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5673echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005674cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h. */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h. */
5680$ac_includes_default
5681#include <linux/socket.h>
5682_ACEOF
5683rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005684if { (ac_try="$ac_compile"
5685case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005700 ac_header_compiler=yes
5701else
5702 echo "$as_me: failed program was:" >&5
5703sed 's/^/| /' conftest.$ac_ext >&5
5704
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005705 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005706fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005707
5708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5710echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005711
5712# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005713{ echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5714echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005715cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h. */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
5721#include <linux/socket.h>
5722_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005723if { (ac_try="$ac_cpp conftest.$ac_ext"
5724case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5737 test ! -s conftest.err
5738 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005739 ac_header_preproc=yes
5740else
5741 echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 ac_header_preproc=no
5745fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005746
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005747rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005748{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005750
5751# So? What about this header?
5752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5753 yes:no: )
5754 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5755echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5757echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5758 ac_header_preproc=yes
5759 ;;
5760 no:yes:* )
5761 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5762echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5764echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5766echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5768echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5769 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5770echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5772echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005773
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005774 ;;
5775esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005776{ echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5777echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005778if test "${ac_cv_header_linux_socket_h+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005780else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005781 ac_cv_header_linux_socket_h=$ac_header_preproc
5782fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005783{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5784echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005785
5786fi
5787if test $ac_cv_header_linux_socket_h = yes; then
5788 cat >>confdefs.h <<\_ACEOF
5789#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005790_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005791
5792fi
5793
5794
5795if test "${ac_cv_header_malloc_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005796 { echo "$as_me:$LINENO: checking for malloc.h" >&5
5797echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005798if test "${ac_cv_header_malloc_h+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005801{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5802echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005803else
5804 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005805{ echo "$as_me:$LINENO: checking malloc.h usability" >&5
5806echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005807cat >conftest.$ac_ext <<_ACEOF
5808/* confdefs.h. */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
5812/* end confdefs.h. */
5813$ac_includes_default
5814#include <malloc.h>
5815_ACEOF
5816rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005824 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005825 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005826 rm -f conftest.er1
5827 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005833 ac_header_compiler=yes
5834else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005838 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005839fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005840
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5843echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005844
5845# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005846{ echo "$as_me:$LINENO: checking malloc.h presence" >&5
5847echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005848cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h. */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h. */
5854#include <malloc.h>
5855_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005856if { (ac_try="$ac_cpp conftest.$ac_ext"
5857case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860esac
5861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005868 (exit $ac_status); } >/dev/null && {
5869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5870 test ! -s conftest.err
5871 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005872 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005873else
5874 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005875sed 's/^/| /' conftest.$ac_ext >&5
5876
5877 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005878fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005879
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005880rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005881{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5882echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005883
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005884# So? What about this header?
5885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5886 yes:no: )
5887 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5888echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5890echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5891 ac_header_preproc=yes
5892 ;;
5893 no:yes:* )
5894 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5895echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5897echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5899echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5900 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5901echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5902 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5903echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5904 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5905echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005906
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005907 ;;
5908esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005909{ echo "$as_me:$LINENO: checking for malloc.h" >&5
5910echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005911if test "${ac_cv_header_malloc_h+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005913else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005914 ac_cv_header_malloc_h=$ac_header_preproc
5915fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005916{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5917echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005918
5919fi
5920if test $ac_cv_header_malloc_h = yes; then
5921 cat >>confdefs.h <<\_ACEOF
5922#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005923_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005924
5925fi
5926
5927
5928if test "${ac_cv_header_netdb_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005929 { echo "$as_me:$LINENO: checking for netdb.h" >&5
5930echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005931if test "${ac_cv_header_netdb_h+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005934{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5935echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005936else
5937 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005938{ echo "$as_me:$LINENO: checking netdb.h usability" >&5
5939echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005940cat >conftest.$ac_ext <<_ACEOF
5941/* confdefs.h. */
5942_ACEOF
5943cat confdefs.h >>conftest.$ac_ext
5944cat >>conftest.$ac_ext <<_ACEOF
5945/* end confdefs.h. */
5946$ac_includes_default
5947#include <netdb.h>
5948_ACEOF
5949rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005950if { (ac_try="$ac_compile"
5951case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954esac
5955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005957 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005958 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005959 rm -f conftest.er1
5960 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005962 (exit $ac_status); } && {
5963 test -z "$ac_c_werror_flag" ||
5964 test ! -s conftest.err
5965 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005966 ac_header_compiler=yes
5967else
5968 echo "$as_me: failed program was:" >&5
5969sed 's/^/| /' conftest.$ac_ext >&5
5970
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005971 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005972fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005973
5974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5976echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005977
5978# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005979{ echo "$as_me:$LINENO: checking netdb.h presence" >&5
5980echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005981cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987#include <netdb.h>
5988_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005989if { (ac_try="$ac_cpp conftest.$ac_ext"
5990case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006001 (exit $ac_status); } >/dev/null && {
6002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6003 test ! -s conftest.err
6004 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006005 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006006else
6007 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006011fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006012
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006013rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006014{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6015echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006016
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006017# So? What about this header?
6018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6019 yes:no: )
6020 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6021echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
6023echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
6024 ac_header_preproc=yes
6025 ;;
6026 no:yes:* )
6027 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
6028echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
6030echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
6032echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
6034echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
6036echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
6038echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006039
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006040 ;;
6041esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006042{ echo "$as_me:$LINENO: checking for netdb.h" >&5
6043echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006044if test "${ac_cv_header_netdb_h+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006046else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006047 ac_cv_header_netdb_h=$ac_header_preproc
6048fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006049{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6050echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006051
6052fi
6053if test $ac_cv_header_netdb_h = yes; then
6054 cat >>confdefs.h <<\_ACEOF
6055#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006056_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006057
6058fi
6059
6060
Benny Prijono37fc9de2008-08-04 14:45:02 +00006061if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006062 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6063echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006064if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006067{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6068echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006069else
6070 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006071{ echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5
6072echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006073cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h. */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h. */
6079$ac_includes_default
6080#include <netinet/in_systm.h>
6081_ACEOF
6082rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006083if { (ac_try="$ac_compile"
6084case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087esac
6088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_compile") 2>conftest.er1
Benny Prijono37fc9de2008-08-04 14:45:02 +00006090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest.$ac_objext; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00006099 ac_header_compiler=yes
6100else
6101 echo "$as_me: failed program was:" >&5
6102sed 's/^/| /' conftest.$ac_ext >&5
6103
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006104 ac_header_compiler=no
Benny Prijono37fc9de2008-08-04 14:45:02 +00006105fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006106
6107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6109echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006110
6111# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006112{ echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5
6113echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006114cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h. */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h. */
6120#include <netinet/in_systm.h>
6121_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006122if { (ac_try="$ac_cpp conftest.$ac_ext"
6123case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono37fc9de2008-08-04 14:45:02 +00006129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006134 (exit $ac_status); } >/dev/null && {
6135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6137 }; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00006138 ac_header_preproc=yes
6139else
6140 echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_header_preproc=no
6144fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006145
Benny Prijono37fc9de2008-08-04 14:45:02 +00006146rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006147{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6148echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006149
6150# So? What about this header?
6151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6152 yes:no: )
6153 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6154echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5
6156echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;}
6157 ac_header_preproc=yes
6158 ;;
6159 no:yes:* )
6160 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5
6161echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5
6163echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;}
6164 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5
6165echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5
6167echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5
6169echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5
6171echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006172
Benny Prijono37fc9de2008-08-04 14:45:02 +00006173 ;;
6174esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006175{ echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6176echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006177if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
6180 ac_cv_header_netinet_in_systm_h=$ac_header_preproc
6181fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006182{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6183echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006184
6185fi
6186if test $ac_cv_header_netinet_in_systm_h = yes; then
6187 cat >>confdefs.h <<\_ACEOF
6188#define PJ_HAS_NETINET_IN_SYSTM_H 1
6189_ACEOF
6190
6191fi
6192
6193
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006194if test "${ac_cv_header_netinet_in_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006195 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6196echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006197if test "${ac_cv_header_netinet_in_h+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006200{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6201echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006202else
6203 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006204{ echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
6205echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006206cat >conftest.$ac_ext <<_ACEOF
6207/* confdefs.h. */
6208_ACEOF
6209cat confdefs.h >>conftest.$ac_ext
6210cat >>conftest.$ac_ext <<_ACEOF
6211/* end confdefs.h. */
6212$ac_includes_default
6213#include <netinet/in.h>
6214_ACEOF
6215rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006216if { (ac_try="$ac_compile"
6217case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220esac
6221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006223 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006224 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006225 rm -f conftest.er1
6226 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006232 ac_header_compiler=yes
6233else
6234 echo "$as_me: failed program was:" >&5
6235sed 's/^/| /' conftest.$ac_ext >&5
6236
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006237 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006238fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006239
6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6242echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006243
6244# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006245{ echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
6246echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006247cat >conftest.$ac_ext <<_ACEOF
6248/* confdefs.h. */
6249_ACEOF
6250cat confdefs.h >>conftest.$ac_ext
6251cat >>conftest.$ac_ext <<_ACEOF
6252/* end confdefs.h. */
6253#include <netinet/in.h>
6254_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006255if { (ac_try="$ac_cpp conftest.$ac_ext"
6256case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006267 (exit $ac_status); } >/dev/null && {
6268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6269 test ! -s conftest.err
6270 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006271 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006272else
6273 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006274sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006277fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006278
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006279rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006280{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6281echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006282
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006283# So? What about this header?
6284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6285 yes:no: )
6286 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
6287echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
6289echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
6290 ac_header_preproc=yes
6291 ;;
6292 no:yes:* )
6293 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
6294echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
6296echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
6298echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
6300echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
6301 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
6302echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
6303 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
6304echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006305
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006306 ;;
6307esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006308{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6309echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006310if test "${ac_cv_header_netinet_in_h+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006312else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006313 ac_cv_header_netinet_in_h=$ac_header_preproc
6314fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006315{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6316echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006317
6318fi
6319if test $ac_cv_header_netinet_in_h = yes; then
6320 cat >>confdefs.h <<\_ACEOF
6321#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006322_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006323
6324fi
6325
6326
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006327{ echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
6328echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006329if test "${ac_cv_header_netinet_ip_h+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00006331else
Benny Prijono37fc9de2008-08-04 14:45:02 +00006332 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonof63a2552007-02-01 00:36:52 +00006333/* confdefs.h. */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
6337/* end confdefs.h. */
Benny Prijono37fc9de2008-08-04 14:45:02 +00006338#if PJ_HAS_NETINET_IN_SYSTM_H
6339 # include <netinet/in_systm.h>
6340 #endif
6341
6342
Benny Prijonof63a2552007-02-01 00:36:52 +00006343#include <netinet/ip.h>
6344_ACEOF
6345rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006346if { (ac_try="$ac_compile"
6347case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350esac
6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_compile") 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00006353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest.$ac_objext; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00006362 ac_cv_header_netinet_ip_h=yes
Benny Prijonof63a2552007-02-01 00:36:52 +00006363else
6364 echo "$as_me: failed program was:" >&5
6365sed 's/^/| /' conftest.$ac_ext >&5
6366
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006367 ac_cv_header_netinet_ip_h=no
Benny Prijonof63a2552007-02-01 00:36:52 +00006368fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006369
6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonof63a2552007-02-01 00:36:52 +00006371fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006372{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
6373echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006374if test $ac_cv_header_netinet_ip_h = yes; then
6375 cat >>confdefs.h <<\_ACEOF
6376#define PJ_HAS_NETINET_IP_H 1
6377_ACEOF
6378
6379fi
6380
6381
Benny Prijono1d65f702007-12-03 04:03:17 +00006382if test "${ac_cv_header_ifaddrs_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006383 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6384echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006385if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006388{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6389echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006390else
6391 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006392{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
6393echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006394cat >conftest.$ac_ext <<_ACEOF
6395/* confdefs.h. */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h. */
6400$ac_includes_default
6401#include <ifaddrs.h>
6402_ACEOF
6403rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006404if { (ac_try="$ac_compile"
6405case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00006411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
Benny Prijono1d65f702007-12-03 04:03:17 +00006420 ac_header_compiler=yes
6421else
6422 echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006425 ac_header_compiler=no
Benny Prijono1d65f702007-12-03 04:03:17 +00006426fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006427
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006431
6432# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006433{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
6434echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006435cat >conftest.$ac_ext <<_ACEOF
6436/* confdefs.h. */
6437_ACEOF
6438cat confdefs.h >>conftest.$ac_ext
6439cat >>conftest.$ac_ext <<_ACEOF
6440/* end confdefs.h. */
6441#include <ifaddrs.h>
6442_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006443if { (ac_try="$ac_cpp conftest.$ac_ext"
6444case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447esac
6448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00006450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006455 (exit $ac_status); } >/dev/null && {
6456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6457 test ! -s conftest.err
6458 }; then
Benny Prijono1d65f702007-12-03 04:03:17 +00006459 ac_header_preproc=yes
6460else
6461 echo "$as_me: failed program was:" >&5
6462sed 's/^/| /' conftest.$ac_ext >&5
6463
6464 ac_header_preproc=no
6465fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006466
Benny Prijono1d65f702007-12-03 04:03:17 +00006467rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006468{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6469echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006470
6471# So? What about this header?
6472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6473 yes:no: )
6474 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6475echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6477echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6478 ac_header_preproc=yes
6479 ;;
6480 no:yes:* )
6481 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6482echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6484echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6486echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6488echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6490echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6492echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006493
Benny Prijono1d65f702007-12-03 04:03:17 +00006494 ;;
6495esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006496{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6497echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006498if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501 ac_cv_header_ifaddrs_h=$ac_header_preproc
6502fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006503{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6504echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006505
6506fi
6507if test $ac_cv_header_ifaddrs_h = yes; then
6508 cat >>confdefs.h <<\_ACEOF
6509#define PJ_HAS_IFADDRS_H 1
6510_ACEOF
6511
6512fi
6513
6514
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006515if test "${ac_cv_header_semaphore_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006516 { echo "$as_me:$LINENO: checking for semaphore.h" >&5
6517echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006518if test "${ac_cv_header_semaphore_h+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006521{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6522echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006523else
6524 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006525{ echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6526echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006527cat >conftest.$ac_ext <<_ACEOF
6528/* confdefs.h. */
6529_ACEOF
6530cat confdefs.h >>conftest.$ac_ext
6531cat >>conftest.$ac_ext <<_ACEOF
6532/* end confdefs.h. */
6533$ac_includes_default
6534#include <semaphore.h>
6535_ACEOF
6536rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006537if { (ac_try="$ac_compile"
6538case "(($ac_try" in
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6541esac
6542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006544 ac_status=$?
6545 grep -v '^ *+' conftest.er1 >conftest.err
6546 rm -f conftest.er1
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006549 (exit $ac_status); } && {
6550 test -z "$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 } && test -s conftest.$ac_objext; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006553 ac_header_compiler=yes
6554else
6555 echo "$as_me: failed program was:" >&5
6556sed 's/^/| /' conftest.$ac_ext >&5
6557
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006558 ac_header_compiler=no
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006559fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006560
6561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6563echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006564
6565# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006566{ echo "$as_me:$LINENO: checking semaphore.h presence" >&5
6567echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006568cat >conftest.$ac_ext <<_ACEOF
6569/* confdefs.h. */
6570_ACEOF
6571cat confdefs.h >>conftest.$ac_ext
6572cat >>conftest.$ac_ext <<_ACEOF
6573/* end confdefs.h. */
6574#include <semaphore.h>
6575_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006576if { (ac_try="$ac_cpp conftest.$ac_ext"
6577case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580esac
6581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006588 (exit $ac_status); } >/dev/null && {
6589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006592 ac_header_preproc=yes
6593else
6594 echo "$as_me: failed program was:" >&5
6595sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 ac_header_preproc=no
6598fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006599
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006600rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6602echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006603
6604# So? What about this header?
6605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6606 yes:no: )
6607 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
6608echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6609 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
6610echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
6611 ac_header_preproc=yes
6612 ;;
6613 no:yes:* )
6614 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
6615echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
6616 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
6617echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
6619echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
6621echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
6623echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
6625echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006626
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006627 ;;
6628esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006629{ echo "$as_me:$LINENO: checking for semaphore.h" >&5
6630echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006631if test "${ac_cv_header_semaphore_h+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634 ac_cv_header_semaphore_h=$ac_header_preproc
6635fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006636{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6637echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006638
6639fi
6640if test $ac_cv_header_semaphore_h = yes; then
6641 cat >>confdefs.h <<\_ACEOF
6642#define PJ_HAS_SEMAPHORE_H 1
6643_ACEOF
6644
6645fi
6646
6647
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006648if test "${ac_cv_header_setjmp_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006649 { echo "$as_me:$LINENO: checking for setjmp.h" >&5
6650echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006651if test "${ac_cv_header_setjmp_h+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006654{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6655echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006656else
6657 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006658{ echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6659echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006660cat >conftest.$ac_ext <<_ACEOF
6661/* confdefs.h. */
6662_ACEOF
6663cat confdefs.h >>conftest.$ac_ext
6664cat >>conftest.$ac_ext <<_ACEOF
6665/* end confdefs.h. */
6666$ac_includes_default
6667#include <setjmp.h>
6668_ACEOF
6669rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006670if { (ac_try="$ac_compile"
6671case "(($ac_try" in
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6674esac
6675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6676 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006677 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006678 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006679 rm -f conftest.er1
6680 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006682 (exit $ac_status); } && {
6683 test -z "$ac_c_werror_flag" ||
6684 test ! -s conftest.err
6685 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006686 ac_header_compiler=yes
6687else
6688 echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
6690
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006691 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006692fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006693
6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6696echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006697
6698# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006699{ echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6700echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006701cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h. */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h. */
6707#include <setjmp.h>
6708_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006709if { (ac_try="$ac_cpp conftest.$ac_ext"
6710case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713esac
6714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006721 (exit $ac_status); } >/dev/null && {
6722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006725 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006726else
6727 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006728sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006731fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006732
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006733rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006734{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6735echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006736
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006737# So? What about this header?
6738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6739 yes:no: )
6740 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6741echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6742 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
6743echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
6744 ac_header_preproc=yes
6745 ;;
6746 no:yes:* )
6747 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
6748echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
6750echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
6751 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
6752echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
6753 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
6754echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6755 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
6756echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
6757 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
6758echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006759
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006760 ;;
6761esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006762{ echo "$as_me:$LINENO: checking for setjmp.h" >&5
6763echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006764if test "${ac_cv_header_setjmp_h+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006766else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006767 ac_cv_header_setjmp_h=$ac_header_preproc
6768fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006769{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6770echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006771
6772fi
6773if test $ac_cv_header_setjmp_h = yes; then
6774 cat >>confdefs.h <<\_ACEOF
6775#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006776_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006777
6778fi
6779
6780
6781if test "${ac_cv_header_stdarg_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006782 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
6783echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006784if test "${ac_cv_header_stdarg_h+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006787{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6788echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006789else
6790 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006791{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6792echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006793cat >conftest.$ac_ext <<_ACEOF
6794/* confdefs.h. */
6795_ACEOF
6796cat confdefs.h >>conftest.$ac_ext
6797cat >>conftest.$ac_ext <<_ACEOF
6798/* end confdefs.h. */
6799$ac_includes_default
6800#include <stdarg.h>
6801_ACEOF
6802rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006803if { (ac_try="$ac_compile"
6804case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807esac
6808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006810 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006811 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006812 rm -f conftest.er1
6813 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006819 ac_header_compiler=yes
6820else
6821 echo "$as_me: failed program was:" >&5
6822sed 's/^/| /' conftest.$ac_ext >&5
6823
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006824 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006825fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006826
6827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6829echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006830
6831# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006832{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6833echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006834cat >conftest.$ac_ext <<_ACEOF
6835/* confdefs.h. */
6836_ACEOF
6837cat confdefs.h >>conftest.$ac_ext
6838cat >>conftest.$ac_ext <<_ACEOF
6839/* end confdefs.h. */
6840#include <stdarg.h>
6841_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006842if { (ac_try="$ac_cpp conftest.$ac_ext"
6843case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846esac
6847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006854 (exit $ac_status); } >/dev/null && {
6855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006858 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006859else
6860 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006861sed 's/^/| /' conftest.$ac_ext >&5
6862
6863 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006864fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006865
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006866rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6868echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006869
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006870# So? What about this header?
6871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6872 yes:no: )
6873 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6874echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6875 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6876echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6877 ac_header_preproc=yes
6878 ;;
6879 no:yes:* )
6880 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6881echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6882 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6883echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6884 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6885echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6886 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6887echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6889echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6890 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6891echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006892
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006893 ;;
6894esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006895{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
6896echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006897if test "${ac_cv_header_stdarg_h+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006899else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006900 ac_cv_header_stdarg_h=$ac_header_preproc
6901fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006902{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6903echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006904
6905fi
6906if test $ac_cv_header_stdarg_h = yes; then
6907 cat >>confdefs.h <<\_ACEOF
6908#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006909_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006910
6911fi
6912
6913
6914if test "${ac_cv_header_stddef_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006915 { echo "$as_me:$LINENO: checking for stddef.h" >&5
6916echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006917if test "${ac_cv_header_stddef_h+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006920{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6921echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006922else
6923 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006924{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
6925echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006926cat >conftest.$ac_ext <<_ACEOF
6927/* confdefs.h. */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h. */
6932$ac_includes_default
6933#include <stddef.h>
6934_ACEOF
6935rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006936if { (ac_try="$ac_compile"
6937case "(($ac_try" in
6938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939 *) ac_try_echo=$ac_try;;
6940esac
6941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6942 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006943 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006944 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006945 rm -f conftest.er1
6946 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006948 (exit $ac_status); } && {
6949 test -z "$ac_c_werror_flag" ||
6950 test ! -s conftest.err
6951 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006952 ac_header_compiler=yes
6953else
6954 echo "$as_me: failed program was:" >&5
6955sed 's/^/| /' conftest.$ac_ext >&5
6956
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006957 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006958fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006959
6960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6962echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006963
6964# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006965{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
6966echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006967cat >conftest.$ac_ext <<_ACEOF
6968/* confdefs.h. */
6969_ACEOF
6970cat confdefs.h >>conftest.$ac_ext
6971cat >>conftest.$ac_ext <<_ACEOF
6972/* end confdefs.h. */
6973#include <stddef.h>
6974_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006975if { (ac_try="$ac_cpp conftest.$ac_ext"
6976case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979esac
6980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006987 (exit $ac_status); } >/dev/null && {
6988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006991 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006992else
6993 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006997fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006998
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006999rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007000{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7001echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007002
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007003# So? What about this header?
7004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7005 yes:no: )
7006 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
7007echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7008 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
7009echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
7010 ac_header_preproc=yes
7011 ;;
7012 no:yes:* )
7013 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
7014echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
7015 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
7016echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
7017 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
7018echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
7019 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
7020echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
7021 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
7022echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
7023 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
7024echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007025
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007026 ;;
7027esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007028{ echo "$as_me:$LINENO: checking for stddef.h" >&5
7029echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007030if test "${ac_cv_header_stddef_h+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007032else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007033 ac_cv_header_stddef_h=$ac_header_preproc
7034fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007035{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7036echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007037
7038fi
7039if test $ac_cv_header_stddef_h = yes; then
7040 cat >>confdefs.h <<\_ACEOF
7041#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007042_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007043
7044fi
7045
7046
7047if test "${ac_cv_header_stdio_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007048 { echo "$as_me:$LINENO: checking for stdio.h" >&5
7049echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007050if test "${ac_cv_header_stdio_h+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007053{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7054echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007055else
7056 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007057{ echo "$as_me:$LINENO: checking stdio.h usability" >&5
7058echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007059cat >conftest.$ac_ext <<_ACEOF
7060/* confdefs.h. */
7061_ACEOF
7062cat confdefs.h >>conftest.$ac_ext
7063cat >>conftest.$ac_ext <<_ACEOF
7064/* end confdefs.h. */
7065$ac_includes_default
7066#include <stdio.h>
7067_ACEOF
7068rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007069if { (ac_try="$ac_compile"
7070case "(($ac_try" in
7071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7073esac
7074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007076 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007077 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007078 rm -f conftest.er1
7079 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007085 ac_header_compiler=yes
7086else
7087 echo "$as_me: failed program was:" >&5
7088sed 's/^/| /' conftest.$ac_ext >&5
7089
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007090 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007091fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007092
7093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007096
7097# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007098{ echo "$as_me:$LINENO: checking stdio.h presence" >&5
7099echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007100cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h. */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h. */
7106#include <stdio.h>
7107_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007108if { (ac_try="$ac_cpp conftest.$ac_ext"
7109case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112esac
7113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007120 (exit $ac_status); } >/dev/null && {
7121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007124 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007125else
7126 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007127sed 's/^/| /' conftest.$ac_ext >&5
7128
7129 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007130fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007131
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007132rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007133{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7134echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007135
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007136# So? What about this header?
7137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7138 yes:no: )
7139 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7140echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7141 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
7142echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
7143 ac_header_preproc=yes
7144 ;;
7145 no:yes:* )
7146 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
7147echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
7148 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
7149echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
7150 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
7151echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
7152 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
7153echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
7154 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
7155echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
7156 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
7157echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007158
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007159 ;;
7160esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007161{ echo "$as_me:$LINENO: checking for stdio.h" >&5
7162echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007163if test "${ac_cv_header_stdio_h+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007165else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007166 ac_cv_header_stdio_h=$ac_header_preproc
7167fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007168{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7169echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007170
7171fi
7172if test $ac_cv_header_stdio_h = yes; then
7173 cat >>confdefs.h <<\_ACEOF
7174#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007175_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007176
7177fi
7178
7179
Benny Prijonofdafd402008-01-23 14:34:46 +00007180if test "${ac_cv_header_stdint_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007181 { echo "$as_me:$LINENO: checking for stdint.h" >&5
7182echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007183if test "${ac_cv_header_stdint_h+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007186{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7187echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007188else
7189 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007190{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
7191echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007192cat >conftest.$ac_ext <<_ACEOF
7193/* confdefs.h. */
7194_ACEOF
7195cat confdefs.h >>conftest.$ac_ext
7196cat >>conftest.$ac_ext <<_ACEOF
7197/* end confdefs.h. */
7198$ac_includes_default
7199#include <stdint.h>
7200_ACEOF
7201rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007202if { (ac_try="$ac_compile"
7203case "(($ac_try" in
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7206esac
7207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00007209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.$ac_objext; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007218 ac_header_compiler=yes
7219else
7220 echo "$as_me: failed program was:" >&5
7221sed 's/^/| /' conftest.$ac_ext >&5
7222
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007223 ac_header_compiler=no
Benny Prijonofdafd402008-01-23 14:34:46 +00007224fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007225
7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7228echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007229
7230# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007231{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
7232echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007233cat >conftest.$ac_ext <<_ACEOF
7234/* confdefs.h. */
7235_ACEOF
7236cat confdefs.h >>conftest.$ac_ext
7237cat >>conftest.$ac_ext <<_ACEOF
7238/* end confdefs.h. */
7239#include <stdint.h>
7240_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007241if { (ac_try="$ac_cpp conftest.$ac_ext"
7242case "(($ac_try" in
7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244 *) ac_try_echo=$ac_try;;
7245esac
7246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00007248 ac_status=$?
7249 grep -v '^ *+' conftest.er1 >conftest.err
7250 rm -f conftest.er1
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007253 (exit $ac_status); } >/dev/null && {
7254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7255 test ! -s conftest.err
7256 }; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007257 ac_header_preproc=yes
7258else
7259 echo "$as_me: failed program was:" >&5
7260sed 's/^/| /' conftest.$ac_ext >&5
7261
7262 ac_header_preproc=no
7263fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007264
Benny Prijonofdafd402008-01-23 14:34:46 +00007265rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007266{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7267echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007268
7269# So? What about this header?
7270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7271 yes:no: )
7272 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
7273echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7274 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
7275echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
7276 ac_header_preproc=yes
7277 ;;
7278 no:yes:* )
7279 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
7280echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
7281 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
7282echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
7283 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
7284echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
7285 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
7286echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
7287 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
7288echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
7289 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
7290echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007291
Benny Prijonofdafd402008-01-23 14:34:46 +00007292 ;;
7293esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007294{ echo "$as_me:$LINENO: checking for stdint.h" >&5
7295echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007296if test "${ac_cv_header_stdint_h+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
7299 ac_cv_header_stdint_h=$ac_header_preproc
7300fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007301{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7302echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007303
7304fi
7305if test $ac_cv_header_stdint_h = yes; then
7306 cat >>confdefs.h <<\_ACEOF
7307#define PJ_HAS_STDINT_H 1
7308_ACEOF
7309
7310fi
7311
7312
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007313if test "${ac_cv_header_stdlib_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007314 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
7315echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007316if test "${ac_cv_header_stdlib_h+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007319{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7320echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007321else
7322 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007323{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7324echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007325cat >conftest.$ac_ext <<_ACEOF
7326/* confdefs.h. */
7327_ACEOF
7328cat confdefs.h >>conftest.$ac_ext
7329cat >>conftest.$ac_ext <<_ACEOF
7330/* end confdefs.h. */
7331$ac_includes_default
7332#include <stdlib.h>
7333_ACEOF
7334rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007335if { (ac_try="$ac_compile"
7336case "(($ac_try" in
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7339esac
7340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007342 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007343 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007344 rm -f conftest.er1
7345 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007347 (exit $ac_status); } && {
7348 test -z "$ac_c_werror_flag" ||
7349 test ! -s conftest.err
7350 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007351 ac_header_compiler=yes
7352else
7353 echo "$as_me: failed program was:" >&5
7354sed 's/^/| /' conftest.$ac_ext >&5
7355
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007356 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007357fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007358
7359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7361echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007362
7363# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007364{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7365echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007366cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h. */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h. */
7372#include <stdlib.h>
7373_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007374if { (ac_try="$ac_cpp conftest.$ac_ext"
7375case "(($ac_try" in
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7378esac
7379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007386 (exit $ac_status); } >/dev/null && {
7387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007390 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007391else
7392 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007393sed 's/^/| /' conftest.$ac_ext >&5
7394
7395 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007396fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007397
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007398rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007399{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7400echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007401
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007402# So? What about this header?
7403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7404 yes:no: )
7405 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7406echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7408echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7409 ac_header_preproc=yes
7410 ;;
7411 no:yes:* )
7412 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7413echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7414 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7415echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7416 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7417echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7418 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7419echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7420 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7421echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7422 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7423echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007424
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007425 ;;
7426esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007427{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
7428echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007429if test "${ac_cv_header_stdlib_h+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007431else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007432 ac_cv_header_stdlib_h=$ac_header_preproc
7433fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007434{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7435echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007436
7437fi
7438if test $ac_cv_header_stdlib_h = yes; then
7439 cat >>confdefs.h <<\_ACEOF
7440#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007441_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007442
7443fi
7444
7445
7446if test "${ac_cv_header_string_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007447 { echo "$as_me:$LINENO: checking for string.h" >&5
7448echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007449if test "${ac_cv_header_string_h+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007452{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7453echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007454else
7455 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007456{ echo "$as_me:$LINENO: checking string.h usability" >&5
7457echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007458cat >conftest.$ac_ext <<_ACEOF
7459/* confdefs.h. */
7460_ACEOF
7461cat confdefs.h >>conftest.$ac_ext
7462cat >>conftest.$ac_ext <<_ACEOF
7463/* end confdefs.h. */
7464$ac_includes_default
7465#include <string.h>
7466_ACEOF
7467rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007468if { (ac_try="$ac_compile"
7469case "(($ac_try" in
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7472esac
7473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007475 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007476 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007477 rm -f conftest.er1
7478 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007480 (exit $ac_status); } && {
7481 test -z "$ac_c_werror_flag" ||
7482 test ! -s conftest.err
7483 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007484 ac_header_compiler=yes
7485else
7486 echo "$as_me: failed program was:" >&5
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007489 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007490fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007491
7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007495
7496# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007497{ echo "$as_me:$LINENO: checking string.h presence" >&5
7498echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007499cat >conftest.$ac_ext <<_ACEOF
7500/* confdefs.h. */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h. */
7505#include <string.h>
7506_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007507if { (ac_try="$ac_cpp conftest.$ac_ext"
7508case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511esac
7512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007519 (exit $ac_status); } >/dev/null && {
7520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007523 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007524else
7525 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007529fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007530
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007531rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007532{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7533echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007534
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007535# So? What about this header?
7536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7537 yes:no: )
7538 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7539echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7540 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7541echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7542 ac_header_preproc=yes
7543 ;;
7544 no:yes:* )
7545 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7546echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7548echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7550echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7552echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7553 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7554echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7556echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007557
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007558 ;;
7559esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007560{ echo "$as_me:$LINENO: checking for string.h" >&5
7561echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007562if test "${ac_cv_header_string_h+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007564else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007565 ac_cv_header_string_h=$ac_header_preproc
7566fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007567{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7568echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007569
7570fi
7571if test $ac_cv_header_string_h = yes; then
7572 cat >>confdefs.h <<\_ACEOF
7573#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007574_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007575
7576fi
7577
7578
7579if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007580 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7581echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007582if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007585{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7586echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007587else
7588 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007589{ echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7590echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007591cat >conftest.$ac_ext <<_ACEOF
7592/* confdefs.h. */
7593_ACEOF
7594cat confdefs.h >>conftest.$ac_ext
7595cat >>conftest.$ac_ext <<_ACEOF
7596/* end confdefs.h. */
7597$ac_includes_default
7598#include <sys/ioctl.h>
7599_ACEOF
7600rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007601if { (ac_try="$ac_compile"
7602case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605esac
7606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007608 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007609 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007610 rm -f conftest.er1
7611 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007613 (exit $ac_status); } && {
7614 test -z "$ac_c_werror_flag" ||
7615 test ! -s conftest.err
7616 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007617 ac_header_compiler=yes
7618else
7619 echo "$as_me: failed program was:" >&5
7620sed 's/^/| /' conftest.$ac_ext >&5
7621
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007622 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007623fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007624
7625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7627echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007628
7629# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007630{ echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7631echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007632cat >conftest.$ac_ext <<_ACEOF
7633/* confdefs.h. */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h. */
7638#include <sys/ioctl.h>
7639_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007640if { (ac_try="$ac_cpp conftest.$ac_ext"
7641case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644esac
7645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007652 (exit $ac_status); } >/dev/null && {
7653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007656 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007657else
7658 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007659sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007662fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007663
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007664rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7666echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007667
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007668# So? What about this header?
7669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7670 yes:no: )
7671 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7672echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7673 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7674echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7675 ac_header_preproc=yes
7676 ;;
7677 no:yes:* )
7678 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7679echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7681echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7683echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7685echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7687echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7689echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007690
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007691 ;;
7692esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007693{ echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7694echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007695if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007697else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007698 ac_cv_header_sys_ioctl_h=$ac_header_preproc
7699fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007700{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7701echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007702
7703fi
7704if test $ac_cv_header_sys_ioctl_h = yes; then
7705 cat >>confdefs.h <<\_ACEOF
7706#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007707_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007708
7709fi
7710
7711
7712if test "${ac_cv_header_sys_select_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007713 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
7714echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007715if test "${ac_cv_header_sys_select_h+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007718{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7719echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007720else
7721 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007722{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5
7723echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007724cat >conftest.$ac_ext <<_ACEOF
7725/* confdefs.h. */
7726_ACEOF
7727cat confdefs.h >>conftest.$ac_ext
7728cat >>conftest.$ac_ext <<_ACEOF
7729/* end confdefs.h. */
7730$ac_includes_default
7731#include <sys/select.h>
7732_ACEOF
7733rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007734if { (ac_try="$ac_compile"
7735case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738esac
7739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007741 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007742 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007743 rm -f conftest.er1
7744 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007746 (exit $ac_status); } && {
7747 test -z "$ac_c_werror_flag" ||
7748 test ! -s conftest.err
7749 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007750 ac_header_compiler=yes
7751else
7752 echo "$as_me: failed program was:" >&5
7753sed 's/^/| /' conftest.$ac_ext >&5
7754
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007755 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007756fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007757
7758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7760echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007761
7762# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007763{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5
7764echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007765cat >conftest.$ac_ext <<_ACEOF
7766/* confdefs.h. */
7767_ACEOF
7768cat confdefs.h >>conftest.$ac_ext
7769cat >>conftest.$ac_ext <<_ACEOF
7770/* end confdefs.h. */
7771#include <sys/select.h>
7772_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007773if { (ac_try="$ac_cpp conftest.$ac_ext"
7774case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777esac
7778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007785 (exit $ac_status); } >/dev/null && {
7786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007789 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007790else
7791 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007792sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007795fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007796
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007797rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007798{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7799echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007800
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007801# So? What about this header?
7802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7803 yes:no: )
7804 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
7805echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7806 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
7807echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
7808 ac_header_preproc=yes
7809 ;;
7810 no:yes:* )
7811 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
7812echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
7813 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
7814echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
7815 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
7816echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
7817 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
7818echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
7820echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
7822echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007823
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007824 ;;
7825esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007826{ echo "$as_me:$LINENO: checking for sys/select.h" >&5
7827echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007828if test "${ac_cv_header_sys_select_h+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007830else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007831 ac_cv_header_sys_select_h=$ac_header_preproc
7832fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007833{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7834echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007835
7836fi
7837if test $ac_cv_header_sys_select_h = yes; then
7838 cat >>confdefs.h <<\_ACEOF
7839#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007840_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007841
7842fi
7843
7844
7845if test "${ac_cv_header_sys_socket_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007846 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7847echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007848if test "${ac_cv_header_sys_socket_h+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007851{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7852echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007853else
7854 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007855{ echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7856echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007857cat >conftest.$ac_ext <<_ACEOF
7858/* confdefs.h. */
7859_ACEOF
7860cat confdefs.h >>conftest.$ac_ext
7861cat >>conftest.$ac_ext <<_ACEOF
7862/* end confdefs.h. */
7863$ac_includes_default
7864#include <sys/socket.h>
7865_ACEOF
7866rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007867if { (ac_try="$ac_compile"
7868case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007874 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007875 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007876 rm -f conftest.er1
7877 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007883 ac_header_compiler=yes
7884else
7885 echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007888 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007889fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007890
7891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7893echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007894
7895# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007896{ echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7897echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007898cat >conftest.$ac_ext <<_ACEOF
7899/* confdefs.h. */
7900_ACEOF
7901cat confdefs.h >>conftest.$ac_ext
7902cat >>conftest.$ac_ext <<_ACEOF
7903/* end confdefs.h. */
7904#include <sys/socket.h>
7905_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007906if { (ac_try="$ac_cpp conftest.$ac_ext"
7907case "(($ac_try" in
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7910esac
7911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007913 ac_status=$?
7914 grep -v '^ *+' conftest.er1 >conftest.err
7915 rm -f conftest.er1
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007918 (exit $ac_status); } >/dev/null && {
7919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7920 test ! -s conftest.err
7921 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007922 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007923else
7924 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007925sed 's/^/| /' conftest.$ac_ext >&5
7926
7927 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007928fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007929
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007930rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7932echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007933
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007934# So? What about this header?
7935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7936 yes:no: )
7937 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7938echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7939 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7940echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7941 ac_header_preproc=yes
7942 ;;
7943 no:yes:* )
7944 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7945echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7946 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7947echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7948 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7949echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7950 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7951echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7953echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7955echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007956
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007957 ;;
7958esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007959{ echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7960echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007961if test "${ac_cv_header_sys_socket_h+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007963else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007964 ac_cv_header_sys_socket_h=$ac_header_preproc
7965fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007966{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7967echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007968
7969fi
7970if test $ac_cv_header_sys_socket_h = yes; then
7971 cat >>confdefs.h <<\_ACEOF
7972#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007973_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007974
7975fi
7976
7977
7978if test "${ac_cv_header_sys_time_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007979 { echo "$as_me:$LINENO: checking for sys/time.h" >&5
7980echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007981if test "${ac_cv_header_sys_time_h+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007984{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7985echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007986else
7987 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007988{ echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7989echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007990cat >conftest.$ac_ext <<_ACEOF
7991/* confdefs.h. */
7992_ACEOF
7993cat confdefs.h >>conftest.$ac_ext
7994cat >>conftest.$ac_ext <<_ACEOF
7995/* end confdefs.h. */
7996$ac_includes_default
7997#include <sys/time.h>
7998_ACEOF
7999rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008000if { (ac_try="$ac_compile"
8001case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004esac
8005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008007 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008008 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008009 rm -f conftest.er1
8010 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008016 ac_header_compiler=yes
8017else
8018 echo "$as_me: failed program was:" >&5
8019sed 's/^/| /' conftest.$ac_ext >&5
8020
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008021 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008022fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008023
8024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8026echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008027
8028# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008029{ echo "$as_me:$LINENO: checking sys/time.h presence" >&5
8030echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008031cat >conftest.$ac_ext <<_ACEOF
8032/* confdefs.h. */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h. */
8037#include <sys/time.h>
8038_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008039if { (ac_try="$ac_cpp conftest.$ac_ext"
8040case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043esac
8044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008051 (exit $ac_status); } >/dev/null && {
8052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008055 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008056else
8057 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008058sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008061fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008062
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008063rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008064{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8065echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008066
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008067# So? What about this header?
8068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8069 yes:no: )
8070 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8071echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
8073echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
8074 ac_header_preproc=yes
8075 ;;
8076 no:yes:* )
8077 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
8078echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
8080echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
8082echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
8084echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
8086echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
8088echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008089
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008090 ;;
8091esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008092{ echo "$as_me:$LINENO: checking for sys/time.h" >&5
8093echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008094if test "${ac_cv_header_sys_time_h+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008096else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008097 ac_cv_header_sys_time_h=$ac_header_preproc
8098fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008099{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8100echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008101
8102fi
8103if test $ac_cv_header_sys_time_h = yes; then
8104 cat >>confdefs.h <<\_ACEOF
8105#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008106_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008107
8108fi
8109
8110
8111if test "${ac_cv_header_sys_timeb_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008112 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8113echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008114if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008117{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8118echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008119else
8120 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008121{ echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
8122echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008123cat >conftest.$ac_ext <<_ACEOF
8124/* confdefs.h. */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h. */
8129$ac_includes_default
8130#include <sys/timeb.h>
8131_ACEOF
8132rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008133if { (ac_try="$ac_compile"
8134case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137esac
8138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008140 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008141 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008142 rm -f conftest.er1
8143 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008149 ac_header_compiler=yes
8150else
8151 echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008154 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008155fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008156
8157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8159echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008160
8161# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008162{ echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
8163echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008164cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170#include <sys/timeb.h>
8171_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008172if { (ac_try="$ac_cpp conftest.$ac_ext"
8173case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176esac
8177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008184 (exit $ac_status); } >/dev/null && {
8185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008188 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008189else
8190 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008191sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008194fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008195
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008196rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008197{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8198echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008199
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008200# So? What about this header?
8201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8202 yes:no: )
8203 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8204echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
8206echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
8207 ac_header_preproc=yes
8208 ;;
8209 no:yes:* )
8210 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
8211echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
8212 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
8213echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
8215echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
8217echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
8219echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
8221echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008222
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008223 ;;
8224esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008225{ echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8226echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008227if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008229else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008230 ac_cv_header_sys_timeb_h=$ac_header_preproc
8231fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008232{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8233echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008234
8235fi
8236if test $ac_cv_header_sys_timeb_h = yes; then
8237 cat >>confdefs.h <<\_ACEOF
8238#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008239_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008240
8241fi
8242
8243
8244if test "${ac_cv_header_sys_types_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008245 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
8246echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008247if test "${ac_cv_header_sys_types_h+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008250{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8251echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008252else
8253 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008254{ echo "$as_me:$LINENO: checking sys/types.h usability" >&5
8255echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008256cat >conftest.$ac_ext <<_ACEOF
8257/* confdefs.h. */
8258_ACEOF
8259cat confdefs.h >>conftest.$ac_ext
8260cat >>conftest.$ac_ext <<_ACEOF
8261/* end confdefs.h. */
8262$ac_includes_default
8263#include <sys/types.h>
8264_ACEOF
8265rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008266if { (ac_try="$ac_compile"
8267case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8270esac
8271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008273 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008274 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008275 rm -f conftest.er1
8276 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008278 (exit $ac_status); } && {
8279 test -z "$ac_c_werror_flag" ||
8280 test ! -s conftest.err
8281 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008282 ac_header_compiler=yes
8283else
8284 echo "$as_me: failed program was:" >&5
8285sed 's/^/| /' conftest.$ac_ext >&5
8286
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008287 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008288fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008289
8290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8292echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008293
8294# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008295{ echo "$as_me:$LINENO: checking sys/types.h presence" >&5
8296echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008297cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
8303#include <sys/types.h>
8304_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008305if { (ac_try="$ac_cpp conftest.$ac_ext"
8306case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309esac
8310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008317 (exit $ac_status); } >/dev/null && {
8318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008321 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008322else
8323 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008324sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008327fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008328
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008329rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8331echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008332
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008333# So? What about this header?
8334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8335 yes:no: )
8336 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8337echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8338 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8339echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8340 ac_header_preproc=yes
8341 ;;
8342 no:yes:* )
8343 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8344echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8345 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8346echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8347 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8348echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8349 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8350echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8351 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8352echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8354echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008355
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008356 ;;
8357esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008358{ echo "$as_me:$LINENO: checking for sys/types.h" >&5
8359echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008360if test "${ac_cv_header_sys_types_h+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008362else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008363 ac_cv_header_sys_types_h=$ac_header_preproc
8364fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008365{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8366echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008367
8368fi
8369if test $ac_cv_header_sys_types_h = yes; then
8370 cat >>confdefs.h <<\_ACEOF
8371#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008372_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008373
8374fi
8375
8376
8377if test "${ac_cv_header_time_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008378 { echo "$as_me:$LINENO: checking for time.h" >&5
8379echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008380if test "${ac_cv_header_time_h+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008383{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8384echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008385else
8386 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008387{ echo "$as_me:$LINENO: checking time.h usability" >&5
8388echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008389cat >conftest.$ac_ext <<_ACEOF
8390/* confdefs.h. */
8391_ACEOF
8392cat confdefs.h >>conftest.$ac_ext
8393cat >>conftest.$ac_ext <<_ACEOF
8394/* end confdefs.h. */
8395$ac_includes_default
8396#include <time.h>
8397_ACEOF
8398rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008399if { (ac_try="$ac_compile"
8400case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008406 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008407 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008408 rm -f conftest.er1
8409 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008415 ac_header_compiler=yes
8416else
8417 echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008420 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008421fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008422
8423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8425echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008426
8427# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008428{ echo "$as_me:$LINENO: checking time.h presence" >&5
8429echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008430cat >conftest.$ac_ext <<_ACEOF
8431/* confdefs.h. */
8432_ACEOF
8433cat confdefs.h >>conftest.$ac_ext
8434cat >>conftest.$ac_ext <<_ACEOF
8435/* end confdefs.h. */
8436#include <time.h>
8437_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008438if { (ac_try="$ac_cpp conftest.$ac_ext"
8439case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442esac
8443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008450 (exit $ac_status); } >/dev/null && {
8451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008454 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008455else
8456 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008457sed 's/^/| /' conftest.$ac_ext >&5
8458
8459 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008460fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008461
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008462rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008463{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8464echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008465
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008466# So? What about this header?
8467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8468 yes:no: )
8469 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8470echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
8472echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
8473 ac_header_preproc=yes
8474 ;;
8475 no:yes:* )
8476 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
8477echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
8479echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
8481echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
8483echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
8485echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
8487echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008488
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008489 ;;
8490esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008491{ echo "$as_me:$LINENO: checking for time.h" >&5
8492echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008493if test "${ac_cv_header_time_h+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008495else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008496 ac_cv_header_time_h=$ac_header_preproc
8497fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008498{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8499echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008500
8501fi
8502if test $ac_cv_header_time_h = yes; then
8503 cat >>confdefs.h <<\_ACEOF
8504#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008505_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008506
8507fi
8508
8509
8510if test "${ac_cv_header_unistd_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008511 { echo "$as_me:$LINENO: checking for unistd.h" >&5
8512echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008513if test "${ac_cv_header_unistd_h+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008516{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8517echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008518else
8519 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008520{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
8521echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008522cat >conftest.$ac_ext <<_ACEOF
8523/* confdefs.h. */
8524_ACEOF
8525cat confdefs.h >>conftest.$ac_ext
8526cat >>conftest.$ac_ext <<_ACEOF
8527/* end confdefs.h. */
8528$ac_includes_default
8529#include <unistd.h>
8530_ACEOF
8531rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008532if { (ac_try="$ac_compile"
8533case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8536esac
8537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008539 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008540 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008541 rm -f conftest.er1
8542 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008548 ac_header_compiler=yes
8549else
8550 echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008553 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008554fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008555
8556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8558echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008559
8560# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008561{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
8562echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008563cat >conftest.$ac_ext <<_ACEOF
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
8569#include <unistd.h>
8570_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008571if { (ac_try="$ac_cpp conftest.$ac_ext"
8572case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575esac
8576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008583 (exit $ac_status); } >/dev/null && {
8584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8585 test ! -s conftest.err
8586 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008587 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008588else
8589 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008590sed 's/^/| /' conftest.$ac_ext >&5
8591
8592 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008593fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008594
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008595rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008596{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008598
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008599# So? What about this header?
8600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8601 yes:no: )
8602 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8603echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8605echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8606 ac_header_preproc=yes
8607 ;;
8608 no:yes:* )
8609 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8610echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
8612echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8614echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
8616echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8618echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8620echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008621
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008622 ;;
8623esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008624{ echo "$as_me:$LINENO: checking for unistd.h" >&5
8625echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008626if test "${ac_cv_header_unistd_h+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008628else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008629 ac_cv_header_unistd_h=$ac_header_preproc
8630fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008631{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8632echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008633
8634fi
8635if test $ac_cv_header_unistd_h = yes; then
8636 cat >>confdefs.h <<\_ACEOF
8637#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008638_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008639
8640fi
8641
8642
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008643if test "${ac_cv_header_winsock_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008644 { echo "$as_me:$LINENO: checking for winsock.h" >&5
8645echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008646if test "${ac_cv_header_winsock_h+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008649{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8650echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008651else
8652 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008653{ echo "$as_me:$LINENO: checking winsock.h usability" >&5
8654echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008655cat >conftest.$ac_ext <<_ACEOF
8656/* confdefs.h. */
8657_ACEOF
8658cat confdefs.h >>conftest.$ac_ext
8659cat >>conftest.$ac_ext <<_ACEOF
8660/* end confdefs.h. */
8661$ac_includes_default
8662#include <winsock.h>
8663_ACEOF
8664rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008665if { (ac_try="$ac_compile"
8666case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669esac
8670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008672 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008673 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008674 rm -f conftest.er1
8675 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008677 (exit $ac_status); } && {
8678 test -z "$ac_c_werror_flag" ||
8679 test ! -s conftest.err
8680 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008681 ac_header_compiler=yes
8682else
8683 echo "$as_me: failed program was:" >&5
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008686 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008687fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008688
8689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8691echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008692
8693# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008694{ echo "$as_me:$LINENO: checking winsock.h presence" >&5
8695echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008696cat >conftest.$ac_ext <<_ACEOF
8697/* confdefs.h. */
8698_ACEOF
8699cat confdefs.h >>conftest.$ac_ext
8700cat >>conftest.$ac_ext <<_ACEOF
8701/* end confdefs.h. */
8702#include <winsock.h>
8703_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008704if { (ac_try="$ac_cpp conftest.$ac_ext"
8705case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708esac
8709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008716 (exit $ac_status); } >/dev/null && {
8717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008720 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008721else
8722 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008723sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008726fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008727
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008728rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008731
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008732# So? What about this header?
8733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8734 yes:no: )
8735 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8736echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8737 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8738echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8739 ac_header_preproc=yes
8740 ;;
8741 no:yes:* )
8742 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8743echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8745echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8746 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8747echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8749echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8751echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8752 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8753echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008754
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008755 ;;
8756esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008757{ echo "$as_me:$LINENO: checking for winsock.h" >&5
8758echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008759if test "${ac_cv_header_winsock_h+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008761else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008762 ac_cv_header_winsock_h=$ac_header_preproc
8763fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008764{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8765echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008766
8767fi
8768if test $ac_cv_header_winsock_h = yes; then
8769 cat >>confdefs.h <<\_ACEOF
8770#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008771_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008772
8773fi
8774
8775
8776if test "${ac_cv_header_winsock2_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008777 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
8778echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008779if test "${ac_cv_header_winsock2_h+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8781fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008782{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8783echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008784else
8785 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008786{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8787echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008788cat >conftest.$ac_ext <<_ACEOF
8789/* confdefs.h. */
8790_ACEOF
8791cat confdefs.h >>conftest.$ac_ext
8792cat >>conftest.$ac_ext <<_ACEOF
8793/* end confdefs.h. */
8794$ac_includes_default
8795#include <winsock2.h>
8796_ACEOF
8797rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008798if { (ac_try="$ac_compile"
8799case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802esac
8803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008805 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008806 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008807 rm -f conftest.er1
8808 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008810 (exit $ac_status); } && {
8811 test -z "$ac_c_werror_flag" ||
8812 test ! -s conftest.err
8813 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008814 ac_header_compiler=yes
8815else
8816 echo "$as_me: failed program was:" >&5
8817sed 's/^/| /' conftest.$ac_ext >&5
8818
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008819 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008820fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008821
8822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8824echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008825
8826# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008827{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8828echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008829cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h. */
8835#include <winsock2.h>
8836_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008837if { (ac_try="$ac_cpp conftest.$ac_ext"
8838case "(($ac_try" in
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8841esac
8842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008844 ac_status=$?
8845 grep -v '^ *+' conftest.er1 >conftest.err
8846 rm -f conftest.er1
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008849 (exit $ac_status); } >/dev/null && {
8850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8851 test ! -s conftest.err
8852 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008853 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008854else
8855 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008856sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008859fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008860
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008861rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008862{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8863echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008864
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008865# So? What about this header?
8866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8867 yes:no: )
8868 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8869echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8871echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8872 ac_header_preproc=yes
8873 ;;
8874 no:yes:* )
8875 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8876echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8878echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8880echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8882echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8884echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8886echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008887
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008888 ;;
8889esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008890{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
8891echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008892if test "${ac_cv_header_winsock2_h+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008894else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008895 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008896fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008897{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8898echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008899
8900fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008901if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008902 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008903#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008904_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008905
8906fi
8907
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008908
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008909{ echo "$as_me:$LINENO: checking for mswsock.h" >&5
8910echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; }
Benny Prijonoa9948e62008-03-25 14:03:01 +00008911if test "${ac_cv_header_mswsock_h+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8913else
8914 cat >conftest.$ac_ext <<_ACEOF
8915/* confdefs.h. */
8916_ACEOF
8917cat confdefs.h >>conftest.$ac_ext
8918cat >>conftest.$ac_ext <<_ACEOF
8919/* end confdefs.h. */
8920#if PJ_HAS_WINSOCK2_H
8921 # include <winsock2.h>
8922 #elif PJ_HAS_WINSOCK_H
8923 # include <winsock.h>
8924 #endif
8925
8926
8927#include <mswsock.h>
8928_ACEOF
8929rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008930if { (ac_try="$ac_compile"
8931case "(($ac_try" in
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8934esac
8935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9948e62008-03-25 14:03:01 +00008937 ac_status=$?
8938 grep -v '^ *+' conftest.er1 >conftest.err
8939 rm -f conftest.er1
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008942 (exit $ac_status); } && {
8943 test -z "$ac_c_werror_flag" ||
8944 test ! -s conftest.err
8945 } && test -s conftest.$ac_objext; then
Benny Prijonoa9948e62008-03-25 14:03:01 +00008946 ac_cv_header_mswsock_h=yes
8947else
8948 echo "$as_me: failed program was:" >&5
8949sed 's/^/| /' conftest.$ac_ext >&5
8950
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008951 ac_cv_header_mswsock_h=no
Benny Prijonoa9948e62008-03-25 14:03:01 +00008952fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008953
8954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9948e62008-03-25 14:03:01 +00008955fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008956{ echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8957echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; }
Benny Prijonoa9948e62008-03-25 14:03:01 +00008958if test $ac_cv_header_mswsock_h = yes; then
8959 cat >>confdefs.h <<\_ACEOF
8960#define PJ_HAS_MSWSOCK_H 1
8961_ACEOF
8962
8963fi
8964
8965
Benny Prijonoe2746132008-09-27 13:16:35 +00008966if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008967 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
8968echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
Benny Prijonoe2746132008-09-27 13:16:35 +00008969if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8971fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008972{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
8973echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
Benny Prijonoe2746132008-09-27 13:16:35 +00008974else
8975 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008976{ echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5
8977echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; }
Benny Prijonoe2746132008-09-27 13:16:35 +00008978cat >conftest.$ac_ext <<_ACEOF
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
8984$ac_includes_default
8985#include <ws2tcpip.h>
8986_ACEOF
8987rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008988if { (ac_try="$ac_compile"
8989case "(($ac_try" in
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8992esac
8993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoe2746132008-09-27 13:16:35 +00008995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009000 (exit $ac_status); } && {
9001 test -z "$ac_c_werror_flag" ||
9002 test ! -s conftest.err
9003 } && test -s conftest.$ac_objext; then
Benny Prijonoe2746132008-09-27 13:16:35 +00009004 ac_header_compiler=yes
9005else
9006 echo "$as_me: failed program was:" >&5
9007sed 's/^/| /' conftest.$ac_ext >&5
9008
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009009 ac_header_compiler=no
Benny Prijonoe2746132008-09-27 13:16:35 +00009010fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009011
9012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9014echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijonoe2746132008-09-27 13:16:35 +00009015
9016# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009017{ echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5
9018echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; }
Benny Prijonoe2746132008-09-27 13:16:35 +00009019cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h. */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
9024/* end confdefs.h. */
9025#include <ws2tcpip.h>
9026_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009027if { (ac_try="$ac_cpp conftest.$ac_ext"
9028case "(($ac_try" in
9029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9031esac
9032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijonoe2746132008-09-27 13:16:35 +00009034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009039 (exit $ac_status); } >/dev/null && {
9040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 }; then
Benny Prijonoe2746132008-09-27 13:16:35 +00009043 ac_header_preproc=yes
9044else
9045 echo "$as_me: failed program was:" >&5
9046sed 's/^/| /' conftest.$ac_ext >&5
9047
9048 ac_header_preproc=no
9049fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009050
Benny Prijonoe2746132008-09-27 13:16:35 +00009051rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009052{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoe2746132008-09-27 13:16:35 +00009054
9055# So? What about this header?
9056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9057 yes:no: )
9058 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5
9059echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5
9061echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;}
9062 ac_header_preproc=yes
9063 ;;
9064 no:yes:* )
9065 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5
9066echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5
9068echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5
9070echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5
9072echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5
9074echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5
9076echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009077
Benny Prijonoe2746132008-09-27 13:16:35 +00009078 ;;
9079esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009080{ echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
9081echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
Benny Prijonoe2746132008-09-27 13:16:35 +00009082if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084else
9085 ac_cv_header_ws2tcpip_h=$ac_header_preproc
9086fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009087{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
9088echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
Benny Prijonoe2746132008-09-27 13:16:35 +00009089
9090fi
9091if test $ac_cv_header_ws2tcpip_h = yes; then
9092 cat >>confdefs.h <<\_ACEOF
9093#define PJ_HAS_WS2TCPIP_H 1
9094_ACEOF
9095
9096fi
9097
9098
Benny Prijono4e48b512007-05-16 13:41:00 +00009099if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009100 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9101echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009102if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009105{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9106echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009107else
9108 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009109{ echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
9110echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009111cat >conftest.$ac_ext <<_ACEOF
9112/* confdefs.h. */
9113_ACEOF
9114cat confdefs.h >>conftest.$ac_ext
9115cat >>conftest.$ac_ext <<_ACEOF
9116/* end confdefs.h. */
9117$ac_includes_default
9118#include <uuid/uuid.h>
9119_ACEOF
9120rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009121if { (ac_try="$ac_compile"
9122case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_compile") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00009128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.$ac_objext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00009137 ac_header_compiler=yes
9138else
9139 echo "$as_me: failed program was:" >&5
9140sed 's/^/| /' conftest.$ac_ext >&5
9141
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009142 ac_header_compiler=no
Benny Prijono4e48b512007-05-16 13:41:00 +00009143fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009144
9145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9147echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009148
9149# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009150{ echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
9151echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009152cat >conftest.$ac_ext <<_ACEOF
9153/* confdefs.h. */
9154_ACEOF
9155cat confdefs.h >>conftest.$ac_ext
9156cat >>conftest.$ac_ext <<_ACEOF
9157/* end confdefs.h. */
9158#include <uuid/uuid.h>
9159_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009160if { (ac_try="$ac_cpp conftest.$ac_ext"
9161case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164esac
9165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00009167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009172 (exit $ac_status); } >/dev/null && {
9173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00009176 ac_header_preproc=yes
9177else
9178 echo "$as_me: failed program was:" >&5
9179sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 ac_header_preproc=no
9182fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009183
Benny Prijono4e48b512007-05-16 13:41:00 +00009184rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009185{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009187
9188# So? What about this header?
9189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9190 yes:no: )
9191 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
9192echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
9194echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
9195 ac_header_preproc=yes
9196 ;;
9197 no:yes:* )
9198 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
9199echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
9201echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
9203echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
9205echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
9207echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
9209echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009210
Benny Prijono4e48b512007-05-16 13:41:00 +00009211 ;;
9212esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009213{ echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9214echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009215if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217else
9218 ac_cv_header_uuid_uuid_h=$ac_header_preproc
9219fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009220{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9221echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009222
9223fi
9224if test $ac_cv_header_uuid_uuid_h = yes; then
9225 ac_has_uuid_h=1
9226fi
9227
9228
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009229{ echo "$as_me:$LINENO: checking for net/if.h" >&5
9230echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
Benny Prijonoa9948e62008-03-25 14:03:01 +00009231if test "${ac_cv_header_net_if_h+set}" = set; then
Benny Prijono188ba7e2008-03-25 13:53:16 +00009232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233else
9234 cat >conftest.$ac_ext <<_ACEOF
9235/* confdefs.h. */
9236_ACEOF
9237cat confdefs.h >>conftest.$ac_ext
9238cat >>conftest.$ac_ext <<_ACEOF
9239/* end confdefs.h. */
9240#if PJ_HAS_SYS_SOCKET_H
9241 # include <sys/socket.h>
9242 #endif
9243
9244
Benny Prijonoa9948e62008-03-25 14:03:01 +00009245#include <net/if.h>
Benny Prijono188ba7e2008-03-25 13:53:16 +00009246_ACEOF
9247rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009248if { (ac_try="$ac_compile"
9249case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9252esac
9253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_compile") 2>conftest.er1
Benny Prijono188ba7e2008-03-25 13:53:16 +00009255 ac_status=$?
9256 grep -v '^ *+' conftest.er1 >conftest.err
9257 rm -f conftest.er1
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009260 (exit $ac_status); } && {
9261 test -z "$ac_c_werror_flag" ||
9262 test ! -s conftest.err
9263 } && test -s conftest.$ac_objext; then
Benny Prijonoa9948e62008-03-25 14:03:01 +00009264 ac_cv_header_net_if_h=yes
Benny Prijono188ba7e2008-03-25 13:53:16 +00009265else
9266 echo "$as_me: failed program was:" >&5
9267sed 's/^/| /' conftest.$ac_ext >&5
9268
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009269 ac_cv_header_net_if_h=no
Benny Prijono188ba7e2008-03-25 13:53:16 +00009270fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009271
9272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono188ba7e2008-03-25 13:53:16 +00009273fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009274{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
9275echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
Benny Prijonoa9948e62008-03-25 14:03:01 +00009276if test $ac_cv_header_net_if_h = yes; then
9277 cat >>confdefs.h <<\_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +00009278#define PJ_HAS_NET_IF_H 1
9279_ACEOF
9280
9281fi
9282
Benny Prijono188ba7e2008-03-25 13:53:16 +00009283
9284
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009285{ echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
9286echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009287cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009288#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009289_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009290
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009291
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009292{ echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
9293echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009294cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009295#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009296_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009297
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009298
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009299{ echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
9300echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009301cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009302#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009303_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009304
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009305
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009306{ echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
9307echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009308cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009309#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009310_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009311
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009312
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009313{ echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
9314echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009315cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009316#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009317_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009318
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009319
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009320{ echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
9321echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009322cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009323#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009324_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009325
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009326
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009327{ echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
9328echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009329cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009330/* confdefs.h. */
9331_ACEOF
9332cat confdefs.h >>conftest.$ac_ext
9333cat >>conftest.$ac_ext <<_ACEOF
9334/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009335#include <sys/types.h>
9336 #include <sys/socket.h>
9337 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009338int
9339main ()
9340{
9341inet_aton(0, 0);
9342 ;
9343 return 0;
9344}
9345_ACEOF
9346rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009347if { (ac_try="$ac_compile"
9348case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9351esac
9352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009354 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
9362 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009363 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009364#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009365_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009366
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009367 { echo "$as_me:$LINENO: result: yes" >&5
9368echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009369else
9370 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009371sed 's/^/| /' conftest.$ac_ext >&5
9372
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009373 { echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009375fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009376
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378
9379{ echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
9380echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009381cat >conftest.$ac_ext <<_ACEOF
9382/* confdefs.h. */
9383_ACEOF
9384cat confdefs.h >>conftest.$ac_ext
9385cat >>conftest.$ac_ext <<_ACEOF
9386/* end confdefs.h. */
9387#include <sys/types.h>
9388 #include <sys/socket.h>
9389 #include <arpa/inet.h>
9390int
9391main ()
9392{
9393inet_pton(0, 0, 0);
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009399if { (ac_try="$ac_compile"
9400case "(($ac_try" in
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9403esac
9404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest.$ac_objext; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009415 cat >>confdefs.h <<\_ACEOF
9416#define PJ_SOCK_HAS_INET_PTON 1
9417_ACEOF
9418
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009419 { echo "$as_me:$LINENO: result: yes" >&5
9420echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009421else
9422 echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009425 { echo "$as_me:$LINENO: result: no" >&5
9426echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009427fi
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009428
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430
9431{ echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
9432echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009433cat >conftest.$ac_ext <<_ACEOF
9434/* confdefs.h. */
9435_ACEOF
9436cat confdefs.h >>conftest.$ac_ext
9437cat >>conftest.$ac_ext <<_ACEOF
9438/* end confdefs.h. */
9439#include <sys/types.h>
9440 #include <sys/socket.h>
9441 #include <arpa/inet.h>
9442int
9443main ()
9444{
9445inet_ntop(0, 0, 0, 0);
9446 ;
9447 return 0;
9448}
9449_ACEOF
9450rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009451if { (ac_try="$ac_compile"
9452case "(($ac_try" in
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9455esac
9456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009463 (exit $ac_status); } && {
9464 test -z "$ac_c_werror_flag" ||
9465 test ! -s conftest.err
9466 } && test -s conftest.$ac_objext; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009467 cat >>confdefs.h <<\_ACEOF
9468#define PJ_SOCK_HAS_INET_NTOP 1
9469_ACEOF
9470
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009471 { echo "$as_me:$LINENO: result: yes" >&5
9472echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009473else
9474 echo "$as_me: failed program was:" >&5
9475sed 's/^/| /' conftest.$ac_ext >&5
9476
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009477 { echo "$as_me:$LINENO: result: no" >&5
9478echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009479fi
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009480
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9482
9483{ echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
9484echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009485cat >conftest.$ac_ext <<_ACEOF
9486/* confdefs.h. */
9487_ACEOF
9488cat confdefs.h >>conftest.$ac_ext
9489cat >>conftest.$ac_ext <<_ACEOF
9490/* end confdefs.h. */
9491#include <sys/types.h>
9492 #include <sys/socket.h>
9493 #include <netdb.h>
9494int
9495main ()
9496{
9497getaddrinfo(0, 0, 0, 0);
9498 ;
9499 return 0;
9500}
9501_ACEOF
9502rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009503if { (ac_try="$ac_compile"
9504case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507esac
9508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009510 ac_status=$?
9511 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest.$ac_objext; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009519 cat >>confdefs.h <<\_ACEOF
9520#define PJ_SOCK_HAS_GETADDRINFO 1
9521_ACEOF
9522
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009523 { echo "$as_me:$LINENO: result: yes" >&5
9524echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009525else
9526 echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009529 { echo "$as_me:$LINENO: result: no" >&5
9530echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009531fi
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009532
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9534
9535{ echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
9536echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009537cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009538/* confdefs.h. */
9539_ACEOF
9540cat confdefs.h >>conftest.$ac_ext
9541cat >>conftest.$ac_ext <<_ACEOF
9542/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009543#include <sys/types.h>
9544 #include <sys/socket.h>
9545 #include <netinet/in.h>
9546 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009547int
9548main ()
9549{
9550struct sockaddr_in a; a.sin_len=0;
9551 ;
9552 return 0;
9553}
9554_ACEOF
9555rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009556if { (ac_try="$ac_compile"
9557case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9560esac
9561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009563 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009568 (exit $ac_status); } && {
9569 test -z "$ac_c_werror_flag" ||
9570 test ! -s conftest.err
9571 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009572 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009573#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009574_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009575
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009576 { echo "$as_me:$LINENO: result: yes" >&5
9577echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009578else
9579 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009580sed 's/^/| /' conftest.$ac_ext >&5
9581
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009582 { echo "$as_me:$LINENO: result: no" >&5
9583echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009584fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009585
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587
9588{ echo "$as_me:$LINENO: checking if socklen_t is available" >&5
9589echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00009590cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009591/* confdefs.h. */
9592_ACEOF
9593cat confdefs.h >>conftest.$ac_ext
9594cat >>conftest.$ac_ext <<_ACEOF
9595/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00009596#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00009597int
9598main ()
9599{
9600socklen_t xxx = 0;
9601 ;
9602 return 0;
9603}
9604_ACEOF
9605rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009606if { (ac_try="$ac_compile"
9607case "(($ac_try" in
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9610esac
9611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_compile") 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00009613 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009622 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009623#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009624_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009625
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009626 { echo "$as_me:$LINENO: result: yes" >&5
9627echo "${ECHO_T}yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00009628else
9629 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009630sed 's/^/| /' conftest.$ac_ext >&5
9631
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009632 { echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00009634fi
Benny Prijono30f85c62006-09-09 20:05:33 +00009635
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637
9638{ echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
9639echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009640case $target in
9641 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009642 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009643#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009644_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009645
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009646 { echo "$as_me:$LINENO: result: yes" >&5
9647echo "${ECHO_T}yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009648 ;;
9649 *)
9650 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009651/* confdefs.h. */
9652_ACEOF
9653cat confdefs.h >>conftest.$ac_ext
9654cat >>conftest.$ac_ext <<_ACEOF
9655/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009656#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009657 #include <sys/socket.h>
9658 #include <netinet/in.h>
9659 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009660int
9661main ()
9662{
9663int i=SO_ERROR;
9664 ;
9665 return 0;
9666}
9667_ACEOF
9668rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009669if { (ac_try="$ac_compile"
9670case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673esac
9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009676 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009685 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009686#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009687_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009688
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009689 { echo "$as_me:$LINENO: result: yes" >&5
9690echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009691else
9692 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009693sed 's/^/| /' conftest.$ac_ext >&5
9694
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009695 { echo "$as_me:$LINENO: result: no" >&5
9696echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009697fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009698
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009700 ;;
9701esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009702
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009703
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009704{ echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
9705echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009706cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009712#include <pthread.h>
9713int
9714main ()
9715{
9716pthread_rwlock_t *x;
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009722if { (ac_try="$ac_compile"
9723case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726esac
9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009729 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009738 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009739#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009740_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009741
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009742 ac_rwmutex="yes"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009743 { echo "$as_me:$LINENO: result: yes" >&5
9744echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009745else
9746 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009747sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009748
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009749 cat >>confdefs.h <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009750#define PJ_EMULATE_RWMUTEX 1
9751_ACEOF
9752
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009753 ac_rwmutex="no"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009754 { echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009756fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009757
9758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009759
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009760if test "$ac_rwmutex" = "no"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009761 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
9762echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009763 cat >conftest.$ac_ext <<_ACEOF
9764/* confdefs.h. */
9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
9769#define _POSIX_READER_WRITER_LOCKS
9770 #include <pthread.h>
9771int
9772main ()
9773{
9774pthread_rwlock_t *x;
9775 ;
9776 return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009780if { (ac_try="$ac_compile"
9781case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest.$ac_objext; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009796 cat >>confdefs.h <<\_ACEOF
9797#define PJ_EMULATE_RWMUTEX 0
9798_ACEOF
9799
9800 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009801 { echo "$as_me:$LINENO: result: yes" >&5
9802echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009803else
9804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009807 cat >>confdefs.h <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009808#define PJ_EMULATE_RWMUTEX 1
9809_ACEOF
9810
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009811 { echo "$as_me:$LINENO: result: no" >&5
9812echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009813fi
9814
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816fi
9817
9818{ echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
9819echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009820cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
9826#include <pthread.h>
9827int
9828main ()
9829{
9830pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
9831 ;
9832 return 0;
9833}
9834_ACEOF
9835rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009836if { (ac_try="$ac_compile"
9837case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
9841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.$ac_objext; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009852 cat >>confdefs.h <<\_ACEOF
9853#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
9854_ACEOF
9855
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009856 { echo "$as_me:$LINENO: result: yes" >&5
9857echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009858else
9859 echo "$as_me: failed program was:" >&5
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009862 { echo "$as_me:$LINENO: result: no" >&5
9863echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009864fi
9865
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9867
9868{ echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
9869echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009870cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h. */
9876#include <pthread.h>
9877int
9878main ()
9879{
9880pthread_mutexattr_t attr;
9881 attr.recursive=1;
9882 ;
9883 return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009887if { (ac_try="$ac_compile"
9888case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009899 (exit $ac_status); } && {
9900 test -z "$ac_c_werror_flag" ||
9901 test ! -s conftest.err
9902 } && test -s conftest.$ac_objext; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009903 cat >>confdefs.h <<\_ACEOF
9904#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
9905_ACEOF
9906
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009907 { echo "$as_me:$LINENO: result: yes" >&5
9908echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009909else
9910 echo "$as_me: failed program was:" >&5
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009913 { echo "$as_me:$LINENO: result: no" >&5
9914echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009915fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009916
9917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00009918
Benny Prijono99eec382008-09-18 21:22:16 +00009919
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009920{ echo "$as_me:$LINENO: checking ioqueue backend" >&5
9921echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; }
9922# Check whether --enable-epoll was given.
Benny Prijono99eec382008-09-18 21:22:16 +00009923if test "${enable_epoll+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009924 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00009925 ac_os_objs=ioqueue_epoll.o
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009926 { echo "$as_me:$LINENO: result: /dev/epoll" >&5
9927echo "${ECHO_T}/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00009928
9929else
9930
9931 ac_os_objs=ioqueue_select.o
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009932 { echo "$as_me:$LINENO: result: select()" >&5
9933echo "${ECHO_T}select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00009934
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009935fi
9936
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009937
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009938
9939case $target in
9940 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00009941 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 +00009942 ;;
9943 *)
Benny Prijono99eec382008-09-18 21:22:16 +00009944 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 +00009945 # UUID
9946 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
9947 ac_os_objs="$ac_os_objs guid_uuid.o"
9948 else
9949 ac_os_objs="$ac_os_objs guid_simple.o"
9950 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009951 ;;
9952esac
9953
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009954
9955
9956
Benny Prijono4e48b512007-05-16 13:41:00 +00009957
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009958# Check whether --enable-sound was given.
Benny Prijono1d971622006-09-10 22:27:40 +00009959if test "${enable_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009960 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00009961 ac_pjmedia_snd=null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009962 { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
9963echo "${ECHO_T}Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00009964 fi
9965
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009966fi
9967
Benny Prijono1d971622006-09-10 22:27:40 +00009968
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009969
Benny Prijono27c98722007-04-09 21:28:15 +00009970if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009971 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9972echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009973if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009976{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9977echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009978else
9979 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009980{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9981echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009982cat >conftest.$ac_ext <<_ACEOF
9983/* confdefs.h. */
9984_ACEOF
9985cat confdefs.h >>conftest.$ac_ext
9986cat >>conftest.$ac_ext <<_ACEOF
9987/* end confdefs.h. */
9988$ac_includes_default
9989#include <sys/soundcard.h>
9990_ACEOF
9991rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009992if { (ac_try="$ac_compile"
9993case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996esac
9997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_compile") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest.$ac_objext; then
Benny Prijono27c98722007-04-09 21:28:15 +000010008 ac_header_compiler=yes
10009else
10010 echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010013 ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +000010014fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010015
10016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10018echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010019
10020# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010021{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
10022echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010023cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h. */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h. */
10029#include <sys/soundcard.h>
10030_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010031if { (ac_try="$ac_cpp conftest.$ac_ext"
10032case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10035esac
10036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010038 ac_status=$?
10039 grep -v '^ *+' conftest.er1 >conftest.err
10040 rm -f conftest.er1
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010043 (exit $ac_status); } >/dev/null && {
10044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10045 test ! -s conftest.err
10046 }; then
Benny Prijono27c98722007-04-09 21:28:15 +000010047 ac_header_preproc=yes
10048else
10049 echo "$as_me: failed program was:" >&5
10050sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 ac_header_preproc=no
10053fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010054
Benny Prijono27c98722007-04-09 21:28:15 +000010055rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010056{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10057echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010058
10059# So? What about this header?
10060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10061 yes:no: )
10062 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10063echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
10065echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
10066 ac_header_preproc=yes
10067 ;;
10068 no:yes:* )
10069 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
10070echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
10072echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
10074echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10076echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
10078echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
10080echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010081
Benny Prijono27c98722007-04-09 21:28:15 +000010082 ;;
10083esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010084{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
10085echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010086if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088else
10089 ac_cv_header_sys_soundcard_h=$ac_header_preproc
10090fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010091{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
10092echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010093
10094fi
10095if test $ac_cv_header_sys_soundcard_h = yes; then
10096 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
10097fi
10098
10099
10100if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010101 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
10102echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010103if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010106{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
10107echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010108else
10109 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010110{ echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
10111echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010112cat >conftest.$ac_ext <<_ACEOF
10113/* confdefs.h. */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
10117/* end confdefs.h. */
10118$ac_includes_default
10119#include <linux/soundcard.h>
10120_ACEOF
10121rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010122if { (ac_try="$ac_compile"
10123case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126esac
10127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_compile") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest.$ac_objext; then
Benny Prijono27c98722007-04-09 21:28:15 +000010138 ac_header_compiler=yes
10139else
10140 echo "$as_me: failed program was:" >&5
10141sed 's/^/| /' conftest.$ac_ext >&5
10142
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010143 ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +000010144fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010145
10146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10148echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010149
10150# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010151{ echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
10152echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010153cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
10159#include <linux/soundcard.h>
10160_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010161if { (ac_try="$ac_cpp conftest.$ac_ext"
10162case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165esac
10166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010173 (exit $ac_status); } >/dev/null && {
10174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 }; then
Benny Prijono27c98722007-04-09 21:28:15 +000010177 ac_header_preproc=yes
10178else
10179 echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 ac_header_preproc=no
10183fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010184
Benny Prijono27c98722007-04-09 21:28:15 +000010185rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010186{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10187echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010188
10189# So? What about this header?
10190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10191 yes:no: )
10192 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10193echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10194 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
10195echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
10196 ac_header_preproc=yes
10197 ;;
10198 no:yes:* )
10199 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
10200echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
10202echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
10204echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
10205 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10206echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
10208echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
10210echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010211
Benny Prijono27c98722007-04-09 21:28:15 +000010212 ;;
10213esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010214{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
10215echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010216if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218else
10219 ac_cv_header_linux_soundcard_h=$ac_header_preproc
10220fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010221{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
10222echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010223
10224fi
10225if test $ac_cv_header_linux_soundcard_h = yes; then
10226 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
10227fi
10228
10229
10230if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010231 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
10232echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010233if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010236{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
10237echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010238else
10239 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010240{ echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
10241echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010242cat >conftest.$ac_ext <<_ACEOF
10243/* confdefs.h. */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h. */
10248$ac_includes_default
10249#include <machine/soundcard.h>
10250_ACEOF
10251rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010252if { (ac_try="$ac_compile"
10253case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10256esac
10257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_compile") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010264 (exit $ac_status); } && {
10265 test -z "$ac_c_werror_flag" ||
10266 test ! -s conftest.err
10267 } && test -s conftest.$ac_objext; then
Benny Prijono27c98722007-04-09 21:28:15 +000010268 ac_header_compiler=yes
10269else
10270 echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
10272
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010273 ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +000010274fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010275
10276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10277{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10278echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010279
10280# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010281{ echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
10282echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010283cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h. */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h. */
10289#include <machine/soundcard.h>
10290_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010291if { (ac_try="$ac_cpp conftest.$ac_ext"
10292case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295esac
10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010303 (exit $ac_status); } >/dev/null && {
10304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10305 test ! -s conftest.err
10306 }; then
Benny Prijono27c98722007-04-09 21:28:15 +000010307 ac_header_preproc=yes
10308else
10309 echo "$as_me: failed program was:" >&5
10310sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 ac_header_preproc=no
10313fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010314
Benny Prijono27c98722007-04-09 21:28:15 +000010315rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010316{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10317echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010318
10319# So? What about this header?
10320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10321 yes:no: )
10322 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10323echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10324 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
10325echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
10326 ac_header_preproc=yes
10327 ;;
10328 no:yes:* )
10329 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
10330echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
10332echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
10334echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10336echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
10338echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
10340echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010341
Benny Prijono27c98722007-04-09 21:28:15 +000010342 ;;
10343esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010344{ echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
10345echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010346if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10348else
10349 ac_cv_header_machine_soundcard_h=$ac_header_preproc
10350fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010351{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
10352echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010353
10354fi
10355if test $ac_cv_header_machine_soundcard_h = yes; then
10356 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
10357fi
10358
10359
10360
Benny Prijono3e091672008-01-09 15:43:02 +000010361if test "x$ac_cv_c_bigendian" = "xyes"; then
10362 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
10363else
10364 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
10365fi
10366
Benny Prijono1d971622006-09-10 22:27:40 +000010367if test "$enable_sound" = "no"; then
10368 true;
10369else
10370 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +000010371 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000010372 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
10373 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010374 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000010375 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
10376 ac_pjmedia_snd=pa_old_darwinos
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010377 { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
10378echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000010379 else
10380 ac_pjmedia_snd=pa_darwinos
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010381 { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
10382echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000010383 fi
Benny Prijonob466e232006-09-10 08:53:59 +000010384 ;;
10385 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010386 ac_pjmedia_snd=pa_win32
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010387 { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
10388echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010389 ;;
10390 *rtems*)
10391 ac_pjmedia_snd=null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010392 { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
10393echo "${ECHO_T}Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010394 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010395 *)
Benny Prijono0b462322008-03-12 22:44:24 +000010396 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010397 if test "${ac_cv_header_alsa_version_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010398 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10399echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010400if test "${ac_cv_header_alsa_version_h+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010402fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010403{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10404echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010405else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010406 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010407{ echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
10408echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010409cat >conftest.$ac_ext <<_ACEOF
10410/* confdefs.h. */
10411_ACEOF
10412cat confdefs.h >>conftest.$ac_ext
10413cat >>conftest.$ac_ext <<_ACEOF
10414/* end confdefs.h. */
10415$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010416#include <alsa/version.h>
10417_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010418rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010419if { (ac_try="$ac_compile"
10420case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10423esac
10424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010426 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010427 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010428 rm -f conftest.er1
10429 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010435 ac_header_compiler=yes
10436else
10437 echo "$as_me: failed program was:" >&5
10438sed 's/^/| /' conftest.$ac_ext >&5
10439
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010440 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010441fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010442
10443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10445echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010446
10447# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010448{ echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
10449echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010450cat >conftest.$ac_ext <<_ACEOF
10451/* confdefs.h. */
10452_ACEOF
10453cat confdefs.h >>conftest.$ac_ext
10454cat >>conftest.$ac_ext <<_ACEOF
10455/* end confdefs.h. */
10456#include <alsa/version.h>
10457_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010458if { (ac_try="$ac_cpp conftest.$ac_ext"
10459case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462esac
10463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010470 (exit $ac_status); } >/dev/null && {
10471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10472 test ! -s conftest.err
10473 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010474 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010475else
10476 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010477sed 's/^/| /' conftest.$ac_ext >&5
10478
10479 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010480fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010481
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010482rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010483{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10484echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010485
10486# So? What about this header?
10487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10488 yes:no: )
10489 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10490echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10491 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
10492echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
10493 ac_header_preproc=yes
10494 ;;
10495 no:yes:* )
10496 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
10497echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
10498 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
10499echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
10500 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
10501echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
10502 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
10503echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
10505echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
10507echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010508
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010509 ;;
10510esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010511{ echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10512echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010513if test "${ac_cv_header_alsa_version_h+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
10516 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010517fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010518{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10519echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010520
10521fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010522if test $ac_cv_header_alsa_version_h = yes; then
10523 ac_pa_use_alsa=1
10524
10525 LIBS="$LIBS -lasound"
10526
10527else
10528 ac_pa_use_alsa=0
10529
10530fi
10531
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010532
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010533 { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
10534echo "${ECHO_T}Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000010535
10536 ac_pa_use_oss=1
10537
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010538 # Check whether --enable-oss was given.
Benny Prijono0b462322008-03-12 22:44:24 +000010539if test "${enable_oss+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010540 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +000010541 if test "$enable_oss" = "no"; then
10542 ac_pa_use_oss=0
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010543 { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
10544echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000010545 fi
10546
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010547fi
10548
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010549 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000010550 esac
10551fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010552
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010553# Check whether --enable-ext_sound was given.
Benny Prijonoebb2c332008-07-28 23:40:58 +000010554if test "${enable_ext_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010555 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +000010556 ac_pjmedia_snd=external
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010557 { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5
10558echo "${ECHO_T}Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +000010559 fi
10560
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010561fi
Benny Prijonoebb2c332008-07-28 23:40:58 +000010562
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010563
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010564
10565# Check whether --enable-small-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010566if test "${enable_small_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010567 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010568 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010569 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
10570echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010571 fi
10572else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010573 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
10574echo "${ECHO_T}Checking if small filter is disabled... no" >&6; }
10575fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010576
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010577
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010578
10579# Check whether --enable-large-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010580if test "${enable_large_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010581 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010582 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010583 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
10584echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010585 fi
10586else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010587 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
10588echo "${ECHO_T}Checking if large filter is disabled... no" >&6; }
10589fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010590
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010591
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010592
10593# Check whether --enable-speex-aec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010594if test "${enable_speex_aec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010595 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010596 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010597 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
10598echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010599 fi
10600else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010601 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
10602echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; }
10603fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010604
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010605
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010606
10607# Check whether --enable-g711-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010608if test "${enable_g711_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010609 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010610 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010611 cat >>confdefs.h <<\_ACEOF
10612#define PJMEDIA_HAS_G711_CODEC 0
10613_ACEOF
10614
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010615 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
10616echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010617 fi
10618else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010619 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
10620echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; }
10621fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010622
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010623
10624
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010625
10626# Check whether --enable-l16-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010627if test "${enable_l16_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010628 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010629 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010630 cat >>confdefs.h <<\_ACEOF
10631#define PJMEDIA_HAS_L16_CODEC 0
10632_ACEOF
10633
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010634 { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
10635echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010636 fi
10637else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010638 { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
10639echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; }
10640fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010641
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010642
10643
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010644
10645# Check whether --enable-gsm-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010646if test "${enable_gsm_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010647 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010648 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010649 cat >>confdefs.h <<\_ACEOF
10650#define PJMEDIA_HAS_GSM_CODEC 0
10651_ACEOF
10652
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010653 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
10654echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010655 fi
10656else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010657 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
10658echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; }
10659fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010660
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010661
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010662
10663# Check whether --enable-g722-codec was given.
Benny Prijono71f657d2008-03-17 14:24:21 +000010664if test "${enable_g722_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010665 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +000010666 ac_no_g722_codec=1
10667 cat >>confdefs.h <<\_ACEOF
10668#define PJMEDIA_HAS_G722_CODEC 0
10669_ACEOF
10670
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010671 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
10672echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +000010673 fi
10674else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010675 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
10676echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; }
10677fi
Benny Prijono71f657d2008-03-17 14:24:21 +000010678
10679
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010680
10681# Check whether --enable-g7221-codec was given.
10682if test "${enable_g7221_codec+set}" = set; then
10683 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
10684 ac_no_g7221_codec=1
10685 cat >>confdefs.h <<\_ACEOF
10686#define PJMEDIA_HAS_G7221_CODEC 0
10687_ACEOF
10688
10689 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5
10690echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; }
10691 fi
10692else
10693 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&5
10694echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; }
10695fi
10696
10697
10698
10699# Check whether --enable-speex-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010700if test "${enable_speex_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010701 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010702 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010703 cat >>confdefs.h <<\_ACEOF
10704#define PJMEDIA_HAS_SPEEX_CODEC 0
10705_ACEOF
10706
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010707 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
10708echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010709 fi
10710else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010711 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
10712echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; }
10713fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010714
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010715
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010716
10717# Check whether --enable-ilbc-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010718if test "${enable_ilbc_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010719 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010720 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010721 cat >>confdefs.h <<\_ACEOF
10722#define PJMEDIA_HAS_ILBC_CODEC 0
10723_ACEOF
10724
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010725 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
10726echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010727 fi
10728else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010729 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
10730echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; }
10731fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010732
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010733
10734# Check whether --enable-libsamplerate was given.
Benny Prijono550a1a62007-10-16 08:54:00 +000010735if test "${enable_libsamplerate+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010736 enableval=$enable_libsamplerate;
10737{ echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
10738echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000010739if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742 ac_check_lib_save_LIBS=$LIBS
10743LIBS="-lsamplerate $LIBS"
10744cat >conftest.$ac_ext <<_ACEOF
10745/* confdefs.h. */
10746_ACEOF
10747cat confdefs.h >>conftest.$ac_ext
10748cat >>conftest.$ac_ext <<_ACEOF
10749/* end confdefs.h. */
10750
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010751/* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010754#ifdef __cplusplus
10755extern "C"
10756#endif
Benny Prijono550a1a62007-10-16 08:54:00 +000010757char src_new ();
10758int
10759main ()
10760{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010761return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000010762 ;
10763 return 0;
10764}
10765_ACEOF
10766rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010767if { (ac_try="$ac_link"
10768case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10771esac
10772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_link") 2>conftest.er1
Benny Prijono550a1a62007-10-16 08:54:00 +000010774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010779 (exit $ac_status); } && {
10780 test -z "$ac_c_werror_flag" ||
10781 test ! -s conftest.err
10782 } && test -s conftest$ac_exeext &&
10783 $as_test_x conftest$ac_exeext; then
Benny Prijono550a1a62007-10-16 08:54:00 +000010784 ac_cv_lib_samplerate_src_new=yes
10785else
10786 echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010789 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000010790fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010791
10792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono550a1a62007-10-16 08:54:00 +000010793 conftest$ac_exeext conftest.$ac_ext
10794LIBS=$ac_check_lib_save_LIBS
10795fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010796{ echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
10797echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000010798if test $ac_cv_lib_samplerate_src_new = yes; then
10799 cat >>confdefs.h <<_ACEOF
10800#define HAVE_LIBSAMPLERATE 1
10801_ACEOF
10802
10803 LIBS="-lsamplerate $LIBS"
10804
10805fi
10806
10807else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010808 { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
10809echo "${ECHO_T}Skipping libsamplerate detection" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000010810
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010811fi
Benny Prijono0822c192008-08-21 20:59:58 +000010812
10813
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010814
10815# Check whether --enable-ipp was given.
Benny Prijono0822c192008-08-21 20:59:58 +000010816if test "${enable_ipp+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010817 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000010818else
10819 enable_ipp=no
10820
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010821fi
Benny Prijono0822c192008-08-21 20:59:58 +000010822
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010823
10824# Check whether --enable-ipp was given.
Benny Prijono0822c192008-08-21 20:59:58 +000010825if test "${enable_ipp+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010826 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000010827else
10828 with_ipp=no
10829
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010830fi
Benny Prijono0822c192008-08-21 20:59:58 +000010831
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010832
10833# Check whether --enable-ipp-samples was given.
Benny Prijono0822c192008-08-21 20:59:58 +000010834if test "${enable_ipp_samples+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010835 enableval=$enable_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +000010836else
10837 with_ipp_samples=no
10838
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010839fi
10840
Benny Prijono0822c192008-08-21 20:59:58 +000010841
10842if test "x$enable_ipp" != "xno"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010843 { echo "$as_me:$LINENO: checking Intel IPP location" >&5
10844echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010845
10846 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010847 { echo "$as_me:$LINENO: result: $with_ipp" >&5
10848echo "${ECHO_T}$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010849 IPPROOT=$with_ipp
10850 elif test "x$IPPROOT" = "x"; then
10851 if test -d /opt/intel/ipp; then
10852 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010853 { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5
10854echo "${ECHO_T}autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010855 fi
10856 else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010857 { echo "$as_me:$LINENO: result: $IPPROOT" >&5
10858echo "${ECHO_T}$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010859 fi
10860
10861 if test x$IPPROOT = x; then
10862 { { 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
10863echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;}
10864 { (exit 1); exit 1; }; }
10865 elif test ! -d $IPPROOT; then
10866 { { echo "$as_me:$LINENO: error: not found" >&5
10867echo "$as_me: error: not found" >&2;}
10868 { (exit 1); exit 1; }; }
10869 elif test ! -d $IPPROOT/include; then
10870 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
10871echo "$as_me: error: directory doesn't seem to be valid" >&2;}
10872 { (exit 1); exit 1; }; }
10873 else
10874 # IPP directory looks okay.
10875 # Remove trailing backslash
10876 IPPROOT=`echo $IPPROOT/ | sed 's/\/$//'`
10877
10878 SAVED_CFLAGS="$CFLAGS"
10879 SAVED_LDFLAGS="$LDFLAGS"
10880 SAVED_LIBS="$LIBS"
10881
10882 IPP_CFLAGS="-I$IPPROOT/include"
10883 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
10884 IPP_LIBS="-lippsc -lipps -lippsr -lippcore -lguide"
10885 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
10886 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
10887
10888 CFLAGS="$CFLAGS $IPP_CFLAGS"
10889 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
10890 LIBS="$IPP_LIBS $LIBS"
10891
10892
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010893 { echo "$as_me:$LINENO: checking Intel IPP usability" >&5
10894echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010895 cat >conftest.$ac_ext <<_ACEOF
10896/* confdefs.h. */
10897_ACEOF
10898cat confdefs.h >>conftest.$ac_ext
10899cat >>conftest.$ac_ext <<_ACEOF
10900/* end confdefs.h. */
10901#include <ippcore.h>
10902
10903int
10904main ()
10905{
10906ippStaticInit();
10907 ;
10908 return 0;
10909}
10910_ACEOF
10911rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010912if { (ac_try="$ac_link"
10913case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916esac
10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_link") 2>conftest.er1
Benny Prijono0822c192008-08-21 20:59:58 +000010919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest$ac_exeext &&
10928 $as_test_x conftest$ac_exeext; then
10929 { echo "$as_me:$LINENO: result: ok" >&5
10930echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010931else
10932 echo "$as_me: failed program was:" >&5
10933sed 's/^/| /' conftest.$ac_ext >&5
10934
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010935 { { echo "$as_me:$LINENO: error: failed
Benny Prijono0822c192008-08-21 20:59:58 +000010936See \`config.log' for more details." >&5
10937echo "$as_me: error: failed
10938See \`config.log' for more details." >&2;}
10939 { (exit 1); exit 1; }; }
10940fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010941
10942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono0822c192008-08-21 20:59:58 +000010943 conftest$ac_exeext conftest.$ac_ext
10944
10945 CFLAGS="$SAVED_CFLAGS"
10946 LDFLAGS="$SAVED_LDFLAGS"
10947 LIBS="$SAVED_LIBS"
10948 fi
10949
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010950 { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5
10951echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010952
10953 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010954 { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5
10955echo "${ECHO_T}$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010956 IPPSAMPLES=$with_ipp_samples
10957 elif test "x$IPPSAMPLES" = "x"; then
10958 if test -d /opt/intel/ipp-samples; then
10959 IPPSAMPLES=/opt/intel/ipp-samples
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010960 { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5
10961echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010962 fi
10963 else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010964 { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5
10965echo "${ECHO_T}$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010966 fi
10967
10968 if test x$IPPSAMPLES = x; then
10969 { { 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
10970echo "$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;}
10971 { (exit 1); exit 1; }; }
10972 elif test ! -d $IPPSAMPLES; then
10973 { { echo "$as_me:$LINENO: error: not found" >&5
10974echo "$as_me: error: not found" >&2;}
10975 { (exit 1); exit 1; }; }
10976 elif test ! -d $IPPSAMPLES/speech-codecs; then
10977 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
10978echo "$as_me: error: directory doesn't seem to be valid" >&2;}
10979 { (exit 1); exit 1; }; }
10980 else
10981 # Remove trailing backslash
10982 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
10983
10984 # Guess the libusc.a build location
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010985 { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5
10986echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000010987 IPPSAMPLESLIB=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
10988 if test ! -d $IPPSAMPLESLIB; then
10989 { { echo "$as_me:$LINENO: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples?
10990See \`config.log' for more details." >&5
10991echo "$as_me: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples?
10992See \`config.log' for more details." >&2;}
10993 { (exit 1); exit 1; }; }
10994 fi
10995 if test ! -f $IPPSAMPLESLIB/libusc.a; then
10996 { { echo "$as_me:$LINENO: error: libusc.a doesn't exist in $IPPSAMPLESLIB
10997See \`config.log' for more details." >&5
10998echo "$as_me: error: libusc.a doesn't exist in $IPPSAMPLESLIB
10999See \`config.log' for more details." >&2;}
11000 { (exit 1); exit 1; }; }
11001 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011002 { echo "$as_me:$LINENO: result: $IPPSAMPLESLIB" >&5
11003echo "${ECHO_T}$IPPSAMPLESLIB" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011004
11005 SAVED_CFLAGS="$CFLAGS"
11006 SAVED_LDFLAGS="$LDFLAGS"
11007 SAVED_LIBS="$LIBS"
11008
11009 IPPSAMPLESINC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
11010 CFLAGS="$CFLAGS $IPPSAMPLESINC"
11011 LDFLAGS="$LDFLAGS -L$IPPSAMPLESLIB"
11012 LIBS="-lusc $LIBS"
11013
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011014 { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5
11015echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011016 cat >conftest.$ac_ext <<_ACEOF
11017/* confdefs.h. */
11018_ACEOF
11019cat confdefs.h >>conftest.$ac_ext
11020cat >>conftest.$ac_ext <<_ACEOF
11021/* end confdefs.h. */
11022#include <usc.h>
11023
11024int
11025main ()
11026{
11027extern USC_Fxns USC_G729AFP_Fxns;
11028 ;
11029 return 0;
11030}
11031_ACEOF
11032rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011033if { (ac_try="$ac_link"
11034case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11037esac
11038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_link") 2>conftest.er1
Benny Prijono0822c192008-08-21 20:59:58 +000011040 ac_status=$?
11041 grep -v '^ *+' conftest.er1 >conftest.err
11042 rm -f conftest.er1
11043 cat conftest.err >&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011045 (exit $ac_status); } && {
11046 test -z "$ac_c_werror_flag" ||
11047 test ! -s conftest.err
11048 } && test -s conftest$ac_exeext &&
11049 $as_test_x conftest$ac_exeext; then
11050 { echo "$as_me:$LINENO: result: ok" >&5
11051echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011052else
11053 echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011056 { { echo "$as_me:$LINENO: error: failed
Benny Prijono0822c192008-08-21 20:59:58 +000011057See \`config.log' for more details." >&5
11058echo "$as_me: error: failed
11059See \`config.log' for more details." >&2;}
11060 { (exit 1); exit 1; }; }
11061fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011062
11063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono0822c192008-08-21 20:59:58 +000011064 conftest$ac_exeext conftest.$ac_ext
11065
11066 CFLAGS="$SAVED_CFLAGS"
11067 LDFLAGS="\$(IPP_LDFLAGS) $SAVED_LDFLAGS"
11068 LIBS="\$(IPP_LIBS) $SAVED_LIBS"
11069
11070 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMPLESINC"
11071 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMPLESLIB"
11072 IPP_LIBS="-lusc $IPP_LIBS"
11073 fi
11074
11075 ac_build_mak_vars="$ac_build_mak_vars\n\
11076export IPP_CFLAGS=$IPP_CFLAGS\n\
11077export IPP_LDFLAGS=$IPP_LDFLAGS\n\
11078export IPP_LIBS=$IPP_LIBS"
11079else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011080 { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5
11081echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011082fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011083
11084
11085
11086
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011087# Check whether --enable-ssl was given.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011088if test "${enable_ssl+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011089 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011090 if test "$enable_ssl" = "no"; then
11091 ac_no_ssl=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011092 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
11093echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011094 fi
11095
11096else
11097
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011098 { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
11099echo "${ECHO_T}checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011100
11101
11102
11103 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011104 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11105echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011106if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011109{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11110echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011111else
11112 # Is the header compilable?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011113{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11114echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011115cat >conftest.$ac_ext <<_ACEOF
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
11121$ac_includes_default
11122#include <openssl/ssl.h>
11123_ACEOF
11124rm -f conftest.$ac_objext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011125if { (ac_try="$ac_compile"
11126case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129esac
11130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011141 ac_header_compiler=yes
11142else
11143 echo "$as_me: failed program was:" >&5
11144sed 's/^/| /' conftest.$ac_ext >&5
11145
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011146 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011147fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011148
11149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11151echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011152
11153# Is the header present?
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011154{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11155echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011156cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h. */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h. */
11162#include <openssl/ssl.h>
11163_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011164if { (ac_try="$ac_cpp conftest.$ac_ext"
11165case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011176 (exit $ac_status); } >/dev/null && {
11177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11178 test ! -s conftest.err
11179 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011180 ac_header_preproc=yes
11181else
11182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
11185 ac_header_preproc=no
11186fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011187
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011188rm -f conftest.err conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011189{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11190echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011191
11192# So? What about this header?
11193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11194 yes:no: )
11195 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11196echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11198echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11199 ac_header_preproc=yes
11200 ;;
11201 no:yes:* )
11202 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11203echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11205echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11206 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11207echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11209echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11211echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11213echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011214
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011215 ;;
11216esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011217{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11218echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011219if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221else
11222 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11223fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011224{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11225echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011226
11227fi
11228if test $ac_cv_header_openssl_ssl_h = yes; then
11229 openssl_h_present=1
11230fi
11231
11232
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011233 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
11234echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011235if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237else
11238 ac_check_lib_save_LIBS=$LIBS
11239LIBS="-lssl $LIBS"
11240cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011247/* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011250#ifdef __cplusplus
11251extern "C"
11252#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011253char SSL_library_init ();
11254int
11255main ()
11256{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011257return SSL_library_init ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011258 ;
11259 return 0;
11260}
11261_ACEOF
11262rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011263if { (ac_try="$ac_link"
11264case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267esac
11268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_link") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest$ac_exeext &&
11279 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011280 ac_cv_lib_ssl_SSL_library_init=yes
11281else
11282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011285 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011286fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011287
11288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011289 conftest$ac_exeext conftest.$ac_ext
11290LIBS=$ac_check_lib_save_LIBS
11291fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011292{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
11293echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011294if test $ac_cv_lib_ssl_SSL_library_init = yes; then
11295 libssl_present=1 && LIBS="$LIBS -lssl"
11296fi
11297
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011298 { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
11299echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011300if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303 ac_check_lib_save_LIBS=$LIBS
11304LIBS="-lcrypto $LIBS"
11305cat >conftest.$ac_ext <<_ACEOF
11306/* confdefs.h. */
11307_ACEOF
11308cat confdefs.h >>conftest.$ac_ext
11309cat >>conftest.$ac_ext <<_ACEOF
11310/* end confdefs.h. */
11311
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011312/* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011315#ifdef __cplusplus
11316extern "C"
11317#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011318char ERR_load_BIO_strings ();
11319int
11320main ()
11321{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011322return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011323 ;
11324 return 0;
11325}
11326_ACEOF
11327rm -f conftest.$ac_objext conftest$ac_exeext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011328if { (ac_try="$ac_link"
11329case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332esac
11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_link") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest$ac_exeext &&
11344 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011345 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
11346else
11347 echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011350 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011351fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011352
11353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011354 conftest$ac_exeext conftest.$ac_ext
11355LIBS=$ac_check_lib_save_LIBS
11356fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011357{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
11358echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011359if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
11360 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
11361fi
11362
11363 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011364 { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
11365echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011366 cat >>confdefs.h <<\_ACEOF
11367#define PJSIP_HAS_TLS_TRANSPORT 1
11368_ACEOF
11369
11370 else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011371 { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
11372echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011373 fi
11374
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011375fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011376
11377
11378
11379
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011380
11381{ echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
11382echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011383case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011384 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011385#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011386_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011387
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011388 { echo "$as_me:$LINENO: result: yes" >&5
11389echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011390 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011391 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011392#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011393_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011394
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011395 { echo "$as_me:$LINENO: result: no (default)" >&5
11396echo "${ECHO_T}no (default)" >&6; }
11397 { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
11398echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011399 ;;
11400esac
11401
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011402{ echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
11403echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011404case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011405 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011406#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011407_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011408
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011409 { echo "$as_me:$LINENO: result: yes" >&5
11410echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011411 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011412 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011413#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011414_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011415
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011416 { echo "$as_me:$LINENO: result: no (default)" >&5
11417echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011418 ;;
11419esac
11420
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011421{ echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
11422echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011423case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011424 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011425#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011426_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011427
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011428 { echo "$as_me:$LINENO: result: yes" >&5
11429echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011430 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011431 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011432#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011433_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011434
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011435 { echo "$as_me:$LINENO: result: no (default)" >&5
11436echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011437 ;;
11438esac
11439
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011440case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011441 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011442 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011443#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011444_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011445
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011446 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011447 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011448#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011449_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011450
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011451 { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
11452echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011453 ;;
11454esac
11455
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011456case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011457 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011458 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011459#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011460_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011461
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011462 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011463 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011464#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011465_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011466
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011467 { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
11468echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011469 ;;
11470esac
11471
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011472
11473
11474
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011475if test "$build" = "$host"; then
11476 ac_cross_compile=
11477else
Benny Prijono5b818b22006-09-17 22:58:51 +000011478 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011479fi
11480ac_linux_poll=select
11481
11482ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011483
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011484
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011485case $target in
11486 *rtems*)
11487 ac_main_obj=main_rtems.o
11488 ;;
11489 *)
11490 ac_main_obj=main.o
11491 ;;
11492esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011493
Benny Prijono0822c192008-08-21 20:59:58 +000011494
11495ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011496cat >confcache <<\_ACEOF
11497# This file is a shell script that caches the results of configure
11498# tests run on this system so they can be shared between configure
11499# scripts and configure runs, see configure's option --config-cache.
11500# It is not useful on other systems. If it contains results you don't
11501# want to keep, you may remove or edit it.
11502#
11503# config.status only pays attention to the cache file if you give it
11504# the --recheck option to rerun configure.
11505#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011506# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011507# loading this file, other *unset* `ac_cv_foo' will be assigned the
11508# following values.
11509
11510_ACEOF
11511
11512# The following way of writing the cache mishandles newlines in values,
11513# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011514# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011515# Ultrix sh set writes to stderr and can't be redirected directly,
11516# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011517(
11518 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11519 eval ac_val=\$$ac_var
11520 case $ac_val in #(
11521 *${as_nl}*)
11522 case $ac_var in #(
11523 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11524echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11525 esac
11526 case $ac_var in #(
11527 _ | IFS | as_nl) ;; #(
11528 *) $as_unset $ac_var ;;
11529 esac ;;
11530 esac
11531 done
11532
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011533 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011534 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11535 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011536 # `set' does not quote correctly, so add quotes (double-quote
11537 # substitution turns \\\\ into \\, and sed turns \\ into \).
11538 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011539 "s/'/'\\\\''/g;
11540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011541 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011542 *)
11543 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011544 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011545 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011546 esac |
11547 sort
11548) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011549 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011550 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011551 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011552 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011553 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11554 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011555 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11556 :end' >>confcache
11557if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11558 if test -w "$cache_file"; then
11559 test "x$cache_file" != "x/dev/null" &&
11560 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11561echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011562 cat confcache >$cache_file
11563 else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011564 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11565echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011566 fi
11567fi
11568rm -f confcache
11569
11570test "x$prefix" = xNONE && prefix=$ac_default_prefix
11571# Let make expand exec_prefix.
11572test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11573
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011574DEFS=-DHAVE_CONFIG_H
11575
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011576ac_libobjs=
11577ac_ltlibobjs=
11578for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11579 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011580 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11581 ac_i=`echo "$ac_i" | sed "$ac_script"`
11582 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11583 # will be set to the directory where LIBOBJS objects are built.
11584 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11585 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011586done
11587LIBOBJS=$ac_libobjs
11588
11589LTLIBOBJS=$ac_ltlibobjs
11590
11591
11592
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011593: ${CONFIG_STATUS=./config.status}
11594ac_clean_files_save=$ac_clean_files
11595ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011596{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011597echo "$as_me: creating $CONFIG_STATUS" >&6;}
11598cat >$CONFIG_STATUS <<_ACEOF
11599#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011600# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011601# Run this file to recreate the current configuration.
11602# Compiler output produced by configure, useful for debugging
11603# configure, is in config.log if it exists.
11604
11605debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011606ac_cs_recheck=false
11607ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011608SHELL=\${CONFIG_SHELL-$SHELL}
11609_ACEOF
11610
11611cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011612## --------------------- ##
11613## M4sh Initialization. ##
11614## --------------------- ##
11615
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011616# Be more Bourne compatible
11617DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011618if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11619 emulate sh
11620 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11622 # is contrary to our usage. Disable this feature.
11623 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011624 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000011625else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011626 case `(set -o) 2>/dev/null` in
11627 *posix*) set -o posix ;;
11628esac
11629
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011630fi
11631
11632
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011633
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011634
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011635# PATH needs CR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011636# Avoid depending upon Character Ranges.
11637as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11638as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11639as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11640as_cr_digits='0123456789'
11641as_cr_alnum=$as_cr_Letters$as_cr_digits
11642
11643# The user is always right.
11644if test "${PATH_SEPARATOR+set}" != set; then
11645 echo "#! /bin/sh" >conf$$.sh
11646 echo "exit 0" >>conf$$.sh
11647 chmod +x conf$$.sh
11648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11649 PATH_SEPARATOR=';'
11650 else
11651 PATH_SEPARATOR=:
11652 fi
11653 rm -f conf$$.sh
11654fi
11655
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011656# Support unset when possible.
11657if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11658 as_unset=unset
11659else
11660 as_unset=false
11661fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011662
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011663
11664# IFS
11665# We need space, tab and new line, in precisely that order. Quoting is
11666# there to prevent editors from complaining about space-tab.
11667# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11668# splitting by setting IFS to empty value.)
11669as_nl='
11670'
11671IFS=" "" $as_nl"
11672
11673# Find who we are. Look in the path if we contain no directory separator.
11674case $0 in
11675 *[\\/]* ) as_myself=$0 ;;
11676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011677for as_dir in $PATH
11678do
11679 IFS=$as_save_IFS
11680 test -z "$as_dir" && as_dir=.
11681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11682done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011683IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011684
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011685 ;;
11686esac
11687# We did not find ourselves, most probably we were run as `sh COMMAND'
11688# in which case we are not to be found in the path.
11689if test "x$as_myself" = x; then
11690 as_myself=$0
11691fi
11692if test ! -f "$as_myself"; then
11693 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11694 { (exit 1); exit 1; }
11695fi
11696
11697# Work around bugs in pre-3.0 UWIN ksh.
11698for as_var in ENV MAIL MAILPATH
11699do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11700done
11701PS1='$ '
11702PS2='> '
11703PS4='+ '
11704
11705# NLS nuisances.
11706for as_var in \
11707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11709 LC_TELEPHONE LC_TIME
Benny Prijonoe2746132008-09-27 13:16:35 +000011710do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011711 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11712 eval $as_var=C; export $as_var
11713 else
11714 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11715 fi
11716done
11717
11718# Required to use basename.
11719if expr a : '\(a\)' >/dev/null 2>&1 &&
11720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11721 as_expr=expr
11722else
11723 as_expr=false
11724fi
11725
11726if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11727 as_basename=basename
11728else
11729 as_basename=false
11730fi
11731
11732
11733# Name of the executable.
11734as_me=`$as_basename -- "$0" ||
11735$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11736 X"$0" : 'X\(//\)$' \| \
11737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11738echo X/"$0" |
11739 sed '/^.*\/\([^/][^/]*\)\/*$/{
11740 s//\1/
11741 q
11742 }
11743 /^X\/\(\/\/\)$/{
11744 s//\1/
11745 q
11746 }
11747 /^X\/\(\/\).*/{
11748 s//\1/
11749 q
11750 }
11751 s/.*/./; q'`
11752
11753# CDPATH.
11754$as_unset CDPATH
11755
11756
11757
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011758 as_lineno_1=$LINENO
11759 as_lineno_2=$LINENO
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011760 test "x$as_lineno_1" != "x$as_lineno_2" &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011761 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011762
11763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11764 # uniformly replaced by the line number. The first 'sed' inserts a
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011765 # line-number line after each line using $LINENO; the second 'sed'
11766 # does the real work. The second script uses 'N' to pair each
11767 # line-number line with the line containing $LINENO, and appends
11768 # trailing '-' during substitution so that $LINENO is not a special
11769 # case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011771 # scripts with optimization help from Paolo Bonzini. Blame Lee
11772 # E. McMahon (1931-1989) for sed's syntax. :-)
11773 sed -n '
11774 p
11775 /[$]LINENO/=
11776 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011777 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011778 s/[$]LINENO.*/&-/
11779 t lineno
11780 b
11781 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011782 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011783 :loop
11784 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011785 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011786 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011787 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011788 chmod +x "$as_me.lineno" ||
11789 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011790 { (exit 1); exit 1; }; }
11791
11792 # Don't try to exec as it changes $[0], causing all sort of problems
11793 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011794 # original and so on. Autoconf is especially sensitive to this).
11795 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011796 # Exit status is that of the last command.
11797 exit
11798}
11799
11800
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011801if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11802 as_dirname=dirname
11803else
11804 as_dirname=false
11805fi
11806
11807ECHO_C= ECHO_N= ECHO_T=
11808case `echo -n x` in
11809-n*)
11810 case `echo 'x\c'` in
11811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11812 *) ECHO_C='\c';;
11813 esac;;
11814*)
11815 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011816esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011817
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011818if expr a : '\(a\)' >/dev/null 2>&1 &&
11819 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011820 as_expr=expr
11821else
11822 as_expr=false
11823fi
11824
11825rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011826if test -d conf$$.dir; then
11827 rm -f conf$$.dir/conf$$.file
11828else
11829 rm -f conf$$.dir
11830 mkdir conf$$.dir
11831fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011832echo >conf$$.file
11833if ln -s conf$$.file conf$$ 2>/dev/null; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011834 as_ln_s='ln -s'
11835 # ... but there are two gotchas:
11836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11838 # In both cases, we have to default to `cp -p'.
11839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011840 as_ln_s='cp -p'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011841elif ln conf$$.file conf$$ 2>/dev/null; then
11842 as_ln_s=ln
11843else
11844 as_ln_s='cp -p'
11845fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011846rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11847rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011848
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011849if mkdir -p . 2>/dev/null; then
11850 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000011851else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011852 test -d ./-p && rmdir ./-p
11853 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000011854fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011855
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011856if test -x / >/dev/null 2>&1; then
11857 as_test_x='test -x'
11858else
11859 if ls -dL / >/dev/null 2>&1; then
11860 as_ls_L_option=L
11861 else
11862 as_ls_L_option=
11863 fi
11864 as_test_x='
11865 eval sh -c '\''
11866 if test -d "$1"; then
11867 test -d "$1/.";
11868 else
11869 case $1 in
11870 -*)set "./$1";;
11871 esac;
11872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11873 ???[sx]*):;;*)false;;esac;fi
11874 '\'' sh
11875 '
11876fi
11877as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011878
11879# Sed expression to map a string onto a valid CPP name.
11880as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11881
11882# Sed expression to map a string onto a valid variable name.
11883as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11884
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011885
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011886exec 6>&1
11887
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011888# Save the log message, to keep $[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011889# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011890# values after options handling.
11891ac_log="
Benny Prijono0822c192008-08-21 20:59:58 +000011892This file was extended by pjproject $as_me 1.0, which was
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011893generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011894
11895 CONFIG_FILES = $CONFIG_FILES
11896 CONFIG_HEADERS = $CONFIG_HEADERS
11897 CONFIG_LINKS = $CONFIG_LINKS
11898 CONFIG_COMMANDS = $CONFIG_COMMANDS
11899 $ $0 $@
11900
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011901on `(hostname || uname -n) 2>/dev/null | sed 1q`
11902"
11903
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011904_ACEOF
11905
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011906cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011907# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011908config_files="$ac_config_files"
11909config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011910
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011911_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011912
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011913cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011914ac_cs_usage="\
11915\`$as_me' instantiates files from templates according to the
11916current configuration.
11917
11918Usage: $0 [OPTIONS] [FILE]...
11919
11920 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011921 -V, --version print version number and configuration settings, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011922 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011923 -d, --debug don't remove temporary files
11924 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011925 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011926 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011927 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011928 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011929
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011930Configuration files:
11931$config_files
11932
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011933Configuration headers:
11934$config_headers
11935
11936Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonoe2746132008-09-27 13:16:35 +000011937
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011938_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011939cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011940ac_cs_version="\\
Benny Prijono0822c192008-08-21 20:59:58 +000011941pjproject config.status 1.0
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011942configured by $0, generated by GNU Autoconf 2.61,
11943 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011944
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011945Copyright (C) 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011946This config.status script is free software; the Free Software Foundation
11947gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011948
11949ac_pwd='$ac_pwd'
11950srcdir='$srcdir'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011951_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011952
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011953cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011954# If no file are specified by the user, then we need to provide default
11955# value. By we need to know if files were specified by the user.
11956ac_need_defaults=:
11957while test $# != 0
11958do
11959 case $1 in
11960 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011963 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011964 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011965 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011966 ac_option=$1
11967 ac_optarg=$2
11968 ac_shift=shift
11969 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011970 esac
11971
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011972 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011973 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011975 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011976 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11977 echo "$ac_cs_version"; exit ;;
11978 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011979 debug=: ;;
11980 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011981 $ac_shift
11982 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011983 ac_need_defaults=false;;
11984 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011985 $ac_shift
11986 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011987 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011988 --he | --h)
11989 # Conflict between --help and --header
11990 { echo "$as_me: error: ambiguous option: $1
11991Try \`$0 --help' for more information." >&2
11992 { (exit 1); exit 1; }; };;
11993 --help | --hel | -h )
11994 echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11996 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11997 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011998
11999 # This is an error.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012000 -*) { echo "$as_me: error: unrecognized option: $1
12001Try \`$0 --help' for more information." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012002 { (exit 1); exit 1; }; } ;;
12003
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012004 *) ac_config_targets="$ac_config_targets $1"
12005 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012006
12007 esac
12008 shift
12009done
12010
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012011ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012012
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012013if $ac_cs_silent; then
12014 exec 6>/dev/null
12015 ac_configure_extra_args="$ac_configure_extra_args --silent"
12016fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012017
12018_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012019cat >>$CONFIG_STATUS <<_ACEOF
12020if \$ac_cs_recheck; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012021 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12022 CONFIG_SHELL=$SHELL
12023 export CONFIG_SHELL
12024 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012025fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012026
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012027_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012028cat >>$CONFIG_STATUS <<\_ACEOF
12029exec 5>>config.log
12030{
12031 echo
12032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12033## Running $as_me. ##
12034_ASBOX
12035 echo "$ac_log"
12036} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012037
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012038_ACEOF
12039cat >>$CONFIG_STATUS <<_ACEOF
12040_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012041
12042cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012043
12044# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012045for ac_config_target in $ac_config_targets
12046do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012047 case $ac_config_target in
12048 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
12049 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
12050 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
12051 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
12052 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
12053 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
12054 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
12055 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
12056 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
12057 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
12058 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
12059 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
12060 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
12061
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012062 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012063echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12064 { (exit 1); exit 1; }; };;
12065 esac
12066done
12067
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012068
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012069# If the user did not use the arguments to specify the items to instantiate,
12070# then the envvar interface is used. Set only those that are not.
12071# We use the long form for the default assignment because of an extremely
12072# bizarre bug on SunOS 4.1.3.
12073if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012074 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012075 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12076fi
12077
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012078# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012079# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012080# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012081# Hook for its removal unless debugging.
12082# Note that there is a small window in which the directory will not be cleaned:
12083# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012084$debug ||
12085{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012086 tmp=
12087 trap 'exit_status=$?
12088 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12089' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012090 trap '{ (exit 1); exit 1; }' 1 2 13 15
12091}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012092# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012093
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012094{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012095 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012096 test -n "$tmp" && test -d "$tmp"
12097} ||
12098{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012099 tmp=./conf$$-$RANDOM
12100 (umask 077 && mkdir "$tmp")
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012101} ||
12102{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012103 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012104 { (exit 1); exit 1; }
12105}
12106
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012107#
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012108# Set up the sed scripts for CONFIG_FILES section.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012109#
12110
12111# No need to generate the scripts if there are no CONFIG_FILES.
12112# This happens for instance when ./config.status config.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012113if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012114
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012115_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012116
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012117
12118
12119ac_delim='%!_!# '
12120for ac_last_try in false false false false false :; do
12121 cat >conf$$subs.sed <<_ACEOF
12122SHELL!$SHELL$ac_delim
12123PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12124PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12125PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12126PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12127PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12128PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12129exec_prefix!$exec_prefix$ac_delim
12130prefix!$prefix$ac_delim
12131program_transform_name!$program_transform_name$ac_delim
12132bindir!$bindir$ac_delim
12133sbindir!$sbindir$ac_delim
12134libexecdir!$libexecdir$ac_delim
12135datarootdir!$datarootdir$ac_delim
12136datadir!$datadir$ac_delim
12137sysconfdir!$sysconfdir$ac_delim
12138sharedstatedir!$sharedstatedir$ac_delim
12139localstatedir!$localstatedir$ac_delim
12140includedir!$includedir$ac_delim
12141oldincludedir!$oldincludedir$ac_delim
12142docdir!$docdir$ac_delim
12143infodir!$infodir$ac_delim
12144htmldir!$htmldir$ac_delim
12145dvidir!$dvidir$ac_delim
12146pdfdir!$pdfdir$ac_delim
12147psdir!$psdir$ac_delim
12148libdir!$libdir$ac_delim
12149localedir!$localedir$ac_delim
12150mandir!$mandir$ac_delim
12151DEFS!$DEFS$ac_delim
12152ECHO_C!$ECHO_C$ac_delim
12153ECHO_N!$ECHO_N$ac_delim
12154ECHO_T!$ECHO_T$ac_delim
12155LIBS!$LIBS$ac_delim
12156build_alias!$build_alias$ac_delim
12157host_alias!$host_alias$ac_delim
12158target_alias!$target_alias$ac_delim
12159build!$build$ac_delim
12160build_cpu!$build_cpu$ac_delim
12161build_vendor!$build_vendor$ac_delim
12162build_os!$build_os$ac_delim
12163host!$host$ac_delim
12164host_cpu!$host_cpu$ac_delim
12165host_vendor!$host_vendor$ac_delim
12166host_os!$host_os$ac_delim
12167target!$target$ac_delim
12168target_cpu!$target_cpu$ac_delim
12169target_vendor!$target_vendor$ac_delim
12170target_os!$target_os$ac_delim
12171CC!$CC$ac_delim
12172CFLAGS!$CFLAGS$ac_delim
12173LDFLAGS!$LDFLAGS$ac_delim
12174CPPFLAGS!$CPPFLAGS$ac_delim
12175ac_ct_CC!$ac_ct_CC$ac_delim
12176EXEEXT!$EXEEXT$ac_delim
12177OBJEXT!$OBJEXT$ac_delim
12178CXX!$CXX$ac_delim
12179CXXFLAGS!$CXXFLAGS$ac_delim
12180ac_ct_CXX!$ac_ct_CXX$ac_delim
12181ac_pjdir!$ac_pjdir$ac_delim
12182ac_build_mak_vars!$ac_build_mak_vars$ac_delim
12183CPP!$CPP$ac_delim
12184GREP!$GREP$ac_delim
12185EGREP!$EGREP$ac_delim
12186ac_os_objs!$ac_os_objs$ac_delim
12187ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim
12188ac_pa_cflags!$ac_pa_cflags$ac_delim
12189ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim
12190ac_pa_use_oss!$ac_pa_use_oss$ac_delim
12191ac_no_small_filter!$ac_no_small_filter$ac_delim
12192ac_no_large_filter!$ac_no_large_filter$ac_delim
12193ac_no_speex_aec!$ac_no_speex_aec$ac_delim
12194ac_no_g711_codec!$ac_no_g711_codec$ac_delim
12195ac_no_l16_codec!$ac_no_l16_codec$ac_delim
12196ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim
12197ac_no_g722_codec!$ac_no_g722_codec$ac_delim
12198ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim
12199ac_no_speex_codec!$ac_no_speex_codec$ac_delim
12200ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim
12201ac_no_ssl!$ac_no_ssl$ac_delim
12202openssl_h_present!$openssl_h_present$ac_delim
12203libssl_present!$libssl_present$ac_delim
12204libcrypto_present!$libcrypto_present$ac_delim
12205ac_cross_compile!$ac_cross_compile$ac_delim
12206ac_linux_poll!$ac_linux_poll$ac_delim
12207ac_host!$ac_host$ac_delim
12208ac_main_obj!$ac_main_obj$ac_delim
12209LIBOBJS!$LIBOBJS$ac_delim
12210LTLIBOBJS!$LTLIBOBJS$ac_delim
12211_ACEOF
12212
12213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
12214 break
12215 elif $ac_last_try; then
12216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12217echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12218 { (exit 1); exit 1; }; }
12219 else
12220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012221 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012222done
12223
12224ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12225if test -n "$ac_eof"; then
12226 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12227 ac_eof=`expr $ac_eof + 1`
12228fi
12229
12230cat >>$CONFIG_STATUS <<_ACEOF
12231cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12233_ACEOF
12234sed '
12235s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12236s/^/s,@/; s/!/@,|#_!!_#|/
12237:n
12238t n
12239s/'"$ac_delim"'$/,g/; t
12240s/$/\\/; p
12241N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12242' >>$CONFIG_STATUS <conf$$subs.sed
12243rm -f conf$$subs.sed
12244cat >>$CONFIG_STATUS <<_ACEOF
12245:end
12246s/|#_!!_#|//g
12247CEOF$ac_eof
12248_ACEOF
12249
12250
12251# VPATH may cause trouble with some makes, so we remove $(srcdir),
12252# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12253# trailing colons and then remove the whole line if VPATH becomes empty
12254# (actually we leave an empty line to preserve line numbers).
12255if test "x$srcdir" = x.; then
12256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12257s/:*\$(srcdir):*/:/
12258s/:*\${srcdir}:*/:/
12259s/:*@srcdir@:*/:/
12260s/^\([^=]*=[ ]*\):*/\1/
12261s/:*$//
12262s/^[^=]*=[ ]*$//
12263}'
12264fi
12265
12266cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012267fi # test -n "$CONFIG_FILES"
12268
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012269
12270for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12271do
12272 case $ac_tag in
12273 :[FHLC]) ac_mode=$ac_tag; continue;;
12274 esac
12275 case $ac_mode$ac_tag in
12276 :[FHL]*:*);;
12277 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12278echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12279 { (exit 1); exit 1; }; };;
12280 :[FH]-) ac_tag=-:-;;
12281 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12282 esac
12283 ac_save_IFS=$IFS
12284 IFS=:
12285 set x $ac_tag
12286 IFS=$ac_save_IFS
12287 shift
12288 ac_file=$1
12289 shift
12290
12291 case $ac_mode in
12292 :L) ac_source=$1;;
12293 :[FH])
12294 ac_file_inputs=
12295 for ac_f
12296 do
12297 case $ac_f in
12298 -) ac_f="$tmp/stdin";;
12299 *) # Look for the file first in the build tree, then in the source tree
12300 # (if the path is not absolute). The absolute path cannot be DOS-style,
12301 # because $ac_f cannot contain `:'.
12302 test -f "$ac_f" ||
12303 case $ac_f in
12304 [\\/$]*) false;;
12305 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12306 esac ||
12307 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12308echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12309 { (exit 1); exit 1; }; };;
12310 esac
12311 ac_file_inputs="$ac_file_inputs $ac_f"
12312 done
12313
12314 # Let's still pretend it is `configure' which instantiates (i.e., don't
12315 # use $as_me), people would be surprised to read:
12316 # /* config.h. Generated by config.status. */
12317 configure_input="Generated from "`IFS=:
12318 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12319 if test x"$ac_file" != x-; then
12320 configure_input="$ac_file. $configure_input"
12321 { echo "$as_me:$LINENO: creating $ac_file" >&5
12322echo "$as_me: creating $ac_file" >&6;}
12323 fi
12324
12325 case $ac_tag in
12326 *:-:* | *:-) cat >"$tmp/stdin";;
12327 esac
12328 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012329 esac
12330
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012331 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12333 X"$ac_file" : 'X\(//\)[^/]' \| \
12334 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012336echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12338 s//\1/
12339 q
12340 }
12341 /^X\(\/\/\)[^/].*/{
12342 s//\1/
12343 q
12344 }
12345 /^X\(\/\/\)$/{
12346 s//\1/
12347 q
12348 }
12349 /^X\(\/\).*/{
12350 s//\1/
12351 q
12352 }
12353 s/.*/./; q'`
12354 { as_dir="$ac_dir"
12355 case $as_dir in #(
12356 -*) as_dir=./$as_dir;;
12357 esac
12358 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012359 as_dirs=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012360 while :; do
12361 case $as_dir in #(
12362 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12363 *) as_qdir=$as_dir;;
12364 esac
12365 as_dirs="'$as_qdir' $as_dirs"
12366 as_dir=`$as_dirname -- "$as_dir" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012367$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12368 X"$as_dir" : 'X\(//\)[^/]' \| \
12369 X"$as_dir" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012371echo X"$as_dir" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12373 s//\1/
12374 q
12375 }
12376 /^X\(\/\/\)[^/].*/{
12377 s//\1/
12378 q
12379 }
12380 /^X\(\/\/\)$/{
12381 s//\1/
12382 q
12383 }
12384 /^X\(\/\).*/{
12385 s//\1/
12386 q
12387 }
12388 s/.*/./; q'`
12389 test -d "$as_dir" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012390 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012391 test -z "$as_dirs" || eval "mkdir $as_dirs"
12392 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12393echo "$as_me: error: cannot create directory $as_dir" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012394 { (exit 1); exit 1; }; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012395 ac_builddir=.
12396
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012397case "$ac_dir" in
12398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12399*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012401 # A ".." for each directory in $ac_dir_suffix.
12402 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12403 case $ac_top_builddir_sub in
12404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12406 esac ;;
12407esac
12408ac_abs_top_builddir=$ac_pwd
12409ac_abs_builddir=$ac_pwd$ac_dir_suffix
12410# for backward compatibility:
12411ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012412
12413case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012414 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012415 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012416 ac_top_srcdir=$ac_top_builddir_sub
12417 ac_abs_top_srcdir=$ac_pwd ;;
12418 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012419 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012420 ac_top_srcdir=$srcdir
12421 ac_abs_top_srcdir=$srcdir ;;
12422 *) # Relative name.
12423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12424 ac_top_srcdir=$ac_top_build_prefix$srcdir
12425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012426esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +000012428
Benny Prijonoe2746132008-09-27 13:16:35 +000012429
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012430 case $ac_mode in
12431 :F)
12432 #
12433 # CONFIG_FILE
12434 #
Benny Prijonoe2746132008-09-27 13:16:35 +000012435
Benny Prijonoe2746132008-09-27 13:16:35 +000012436_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012437
12438cat >>$CONFIG_STATUS <<\_ACEOF
12439# If the template does not know about datarootdir, expand it.
12440# FIXME: This hack should be removed a few years after 2.60.
12441ac_datarootdir_hack=; ac_datarootdir_seen=
12442
12443case `sed -n '/datarootdir/ {
12444 p
12445 q
12446}
12447/@datadir@/p
12448/@docdir@/p
12449/@infodir@/p
12450/@localedir@/p
12451/@mandir@/p
12452' $ac_file_inputs` in
12453*datarootdir*) ac_datarootdir_seen=yes;;
12454*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12455 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12456echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12457_ACEOF
12458cat >>$CONFIG_STATUS <<_ACEOF
12459 ac_datarootdir_hack='
12460 s&@datadir@&$datadir&g
12461 s&@docdir@&$docdir&g
12462 s&@infodir@&$infodir&g
12463 s&@localedir@&$localedir&g
12464 s&@mandir@&$mandir&g
12465 s&\\\${datarootdir}&$datarootdir&g' ;;
12466esac
12467_ACEOF
12468
12469# Neutralize VPATH when `$srcdir' = `.'.
12470# Shell code in configure.ac might set extrasub.
12471# FIXME: do we really want to maintain this feature?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012472cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012473 sed "$ac_vpsub
12474$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012475_ACEOF
12476cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012477:t
12478/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012479s&@configure_input@&$configure_input&;t t
12480s&@top_builddir@&$ac_top_builddir_sub&;t t
12481s&@srcdir@&$ac_srcdir&;t t
12482s&@abs_srcdir@&$ac_abs_srcdir&;t t
12483s&@top_srcdir@&$ac_top_srcdir&;t t
12484s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12485s&@builddir@&$ac_builddir&;t t
12486s&@abs_builddir@&$ac_abs_builddir&;t t
12487s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12488$ac_datarootdir_hack
12489" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012490
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012491test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12494 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12495which seems to be undefined. Please make sure it is defined." >&5
12496echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12497which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012498
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012499 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012500 case $ac_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012501 -) cat "$tmp/out"; rm -f "$tmp/out";;
12502 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012503 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012504 ;;
12505 :H)
12506 #
12507 # CONFIG_HEADER
12508 #
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012509_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012510
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012511# Transform confdefs.h into a sed script `conftest.defines', that
12512# substitutes the proper values into config.h.in to produce config.h.
12513rm -f conftest.defines conftest.tail
12514# First, append a space to every undef/define line, to ease matching.
12515echo 's/$/ /' >conftest.defines
12516# Then, protect against being on the right side of a sed subst, or in
12517# an unquoted here document, in config.status. If some macros were
12518# called several times there might be several #defines for the same
12519# symbol, which is useless. But do not sort them, since the last
12520# AC_DEFINE must be honored.
12521ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12522# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12523# NAME is the cpp macro being defined, VALUE is the value it is being given.
12524# PARAMS is the parameter list in the macro definition--in most cases, it's
12525# just an empty string.
12526ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12527ac_dB='\\)[ (].*,\\1define\\2'
12528ac_dC=' '
12529ac_dD=' ,'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012530
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012531uniq confdefs.h |
12532 sed -n '
12533 t rset
12534 :rset
12535 s/^[ ]*#[ ]*define[ ][ ]*//
12536 t ok
12537 d
12538 :ok
12539 s/[\\&,]/\\&/g
12540 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12541 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12542 ' >>conftest.defines
12543
12544# Remove the space that was appended to ease matching.
12545# Then replace #undef with comments. This is necessary, for
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012546# example, in the case of _POSIX_SOURCE, which is predefined and required
12547# on some systems where configure will not decide to define it.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012548# (The regexp can be short, since the line contains either #define or #undef.)
12549echo 's/ $//
12550s,^[ #]*u.*,/* & */,' >>conftest.defines
Benny Prijonoe2746132008-09-27 13:16:35 +000012551
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012552# Break up conftest.defines:
12553ac_max_sed_lines=50
12554
12555# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12556# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12557# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12558# et cetera.
12559ac_in='$ac_file_inputs'
12560ac_out='"$tmp/out1"'
12561ac_nxt='"$tmp/out2"'
12562
12563while :
Benny Prijonoe2746132008-09-27 13:16:35 +000012564do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012565 # Write a here document:
12566 cat >>$CONFIG_STATUS <<_ACEOF
12567 # First, check the format of the line:
12568 cat >"\$tmp/defines.sed" <<\\CEOF
12569/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12570/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12571b
12572:def
12573_ACEOF
12574 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012575 echo 'CEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012576 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12577 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12578 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12579 grep . conftest.tail >/dev/null || break
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012580 rm -f conftest.defines
12581 mv conftest.tail conftest.defines
12582done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012583rm -f conftest.defines conftest.tail
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012584
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012585echo "ac_result=$ac_in" >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012586cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012587 if test x"$ac_file" != x-; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012588 echo "/* $configure_input */" >"$tmp/config.h"
12589 cat "$ac_result" >>"$tmp/config.h"
12590 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012591 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012592echo "$as_me: $ac_file is unchanged" >&6;}
12593 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012594 rm -f $ac_file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012595 mv "$tmp/config.h" $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012596 fi
12597 else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012598 echo "/* $configure_input */"
12599 cat "$ac_result"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012600 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012601 rm -f "$tmp/out12"
12602 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012603
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012604
12605 esac
12606
12607done # for ac_tag
12608
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012609
12610{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012611_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012612chmod +x $CONFIG_STATUS
12613ac_clean_files=$ac_clean_files_save
12614
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012615
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012616# configure is writing to config.log, and then calls config.status.
12617# config.status does its own redirection, appending to config.log.
12618# Unfortunately, on DOS this fails, as config.log is still kept open
12619# by configure, so config.status won't be able to write to it; its
12620# output is simply discarded. So we exec the FD to /dev/null,
12621# effectively closing config.log, so it can be properly (re)opened and
12622# appended to by config.status. When coming back to configure, we
12623# need to make the FD available again.
12624if test "$no_create" != yes; then
12625 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012626 ac_config_status_args=
12627 test "$silent" = yes &&
12628 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012629 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012631 exec 5>>config.log
12632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12633 # would make configure fail if this is the last instruction.
12634 $ac_cs_success || { (exit 1); exit 1; }
12635fi
12636
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012637
Benny Prijonod9627842007-04-18 09:24:31 +000012638
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012639{ echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000012640
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012641Configurations 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 +000012642
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012643Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012644 - 'user.mak'
12645 - 'pjlib/include/pj/config_site.h'
12646
12647The next step now is to run 'make dep' and 'make'.
12648" >&5
12649echo "${ECHO_T}
12650
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012651Configurations 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 +000012652
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012653Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012654 - 'user.mak'
12655 - 'pjlib/include/pj/config_site.h'
12656
12657The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012658" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +000012659