blob: ef1e64c4d2a191beb9a5cea19a899f74c985f70d [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono0822c192008-08-21 20:59:58 +00003# Generated by GNU Autoconf 2.61 for pjproject 1.0.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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+"$@"}'='"$@"'
Benny Prijono0822c192008-08-21 20:59:58 +000021 setopt NO_GLOB_SUBST
Benny Prijono0b462322008-03-12 22:44:24 +000022else
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +000080IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000081
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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=.
Benny Prijono0822c192008-08-21 20:59:58 +0000226 case $as_dir in
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000227 /*)
Benny Prijono0822c192008-08-21 20:59:58 +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 Prijono0b462322008-03-12 22:44:24 +0000328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Benny Prijono0b462322008-03-12 22:44:24 +0000330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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 '
Benny Prijono0822c192008-08-21 20:59:58 +0000443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000447 N
Benny Prijono0822c192008-08-21 20:59:58 +0000448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000450 t loop
Benny Prijono0822c192008-08-21 20:59:58 +0000451 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000452 ' >$as_me.lineno &&
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +0000563ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564ac_config_libobj_dir=.
Benny Prijono0822c192008-08-21 20:59:58 +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>
Benny Prijono0822c192008-08-21 20:59:58 +0000582#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000583# include <sys/types.h>
584#endif
Benny Prijono0822c192008-08-21 20:59:58 +0000585#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000586# include <sys/stat.h>
587#endif
Benny Prijono0822c192008-08-21 20:59:58 +0000588#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000589# include <stdlib.h>
590# include <stddef.h>
591#else
Benny Prijono0822c192008-08-21 20:59:58 +0000592# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000593# include <stdlib.h>
594# endif
595#endif
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +0000602#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000603# include <strings.h>
604#endif
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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
Benny Prijono0822c192008-08-21 20:59:58 +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_speex_codec
692ac_no_ilbc_codec
693ac_no_ssl
694openssl_h_present
695libssl_present
696libcrypto_present
697ac_cross_compile
698ac_linux_poll
699ac_host
700ac_main_obj
701LIBOBJS
702LTLIBOBJS'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000703ac_subst_files=''
Benny Prijono0822c192008-08-21 20:59:58 +0000704 ac_precious_vars='build_alias
705host_alias
706target_alias
707CC
708CFLAGS
709LDFLAGS
710LIBS
711CPPFLAGS
712CXX
713CXXFLAGS
714CCC
715CPP'
716
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000717
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000718# Initialize some variables set by options.
719ac_init_help=
720ac_init_version=false
721# The variables have the same names as the options, with
722# dashes changed to underlines.
723cache_file=/dev/null
724exec_prefix=NONE
725no_create=
726no_recursion=
727prefix=NONE
728program_prefix=NONE
729program_suffix=NONE
730program_transform_name=s,x,x,
731silent=
732site=
733srcdir=
734verbose=
735x_includes=NONE
736x_libraries=NONE
737
738# Installation directory options.
739# These are left unexpanded so users can "make install exec_prefix=/foo"
740# and all the variables that are supposed to be based on exec_prefix
741# by default will actually change.
742# Use braces instead of parens because sh, perl, etc. also accept them.
Benny Prijono0822c192008-08-21 20:59:58 +0000743# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000744bindir='${exec_prefix}/bin'
745sbindir='${exec_prefix}/sbin'
746libexecdir='${exec_prefix}/libexec'
Benny Prijono0822c192008-08-21 20:59:58 +0000747datarootdir='${prefix}/share'
748datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000749sysconfdir='${prefix}/etc'
750sharedstatedir='${prefix}/com'
751localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000752includedir='${prefix}/include'
753oldincludedir='/usr/include'
Benny Prijono0822c192008-08-21 20:59:58 +0000754docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
755infodir='${datarootdir}/info'
756htmldir='${docdir}'
757dvidir='${docdir}'
758pdfdir='${docdir}'
759psdir='${docdir}'
760libdir='${exec_prefix}/lib'
761localedir='${datarootdir}/locale'
762mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000763
764ac_prev=
Benny Prijono0822c192008-08-21 20:59:58 +0000765ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000766for ac_option
767do
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
Benny Prijono0822c192008-08-21 20:59:58 +0000770 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000771 ac_prev=
772 continue
773 fi
774
Benny Prijono0822c192008-08-21 20:59:58 +0000775 case $ac_option in
776 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777 *) ac_optarg=yes ;;
778 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000779
780 # Accept the important Cygnus configure options, so we can diagnose typos.
781
Benny Prijono0822c192008-08-21 20:59:58 +0000782 case $ac_dashdash$ac_option in
783 --)
784 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000785
786 -bindir | --bindir | --bindi | --bind | --bin | --bi)
787 ac_prev=bindir ;;
788 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 bindir=$ac_optarg ;;
790
791 -build | --build | --buil | --bui | --bu)
792 ac_prev=build_alias ;;
793 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794 build_alias=$ac_optarg ;;
795
796 -cache-file | --cache-file | --cache-fil | --cache-fi \
797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798 ac_prev=cache_file ;;
799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801 cache_file=$ac_optarg ;;
802
803 --config-cache | -C)
804 cache_file=config.cache ;;
805
Benny Prijono0822c192008-08-21 20:59:58 +0000806 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000807 ac_prev=datadir ;;
Benny Prijono0822c192008-08-21 20:59:58 +0000808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000809 datadir=$ac_optarg ;;
810
Benny Prijono0822c192008-08-21 20:59:58 +0000811 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812 | --dataroo | --dataro | --datar)
813 ac_prev=datarootdir ;;
814 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816 datarootdir=$ac_optarg ;;
817
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000818 -disable-* | --disable-*)
819 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
820 # Reject names that are not valid shell variable names.
Benny Prijono0822c192008-08-21 20:59:58 +0000821 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000822 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
823 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +0000824 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
825 eval enable_$ac_feature=no ;;
826
827 -docdir | --docdir | --docdi | --doc | --do)
828 ac_prev=docdir ;;
829 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830 docdir=$ac_optarg ;;
831
832 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833 ac_prev=dvidir ;;
834 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000836
837 -enable-* | --enable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839 # Reject names that are not valid shell variable names.
Benny Prijono0822c192008-08-21 20:59:58 +0000840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +0000843 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_$ac_feature=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
853 exec_prefix=$ac_optarg ;;
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
865
866 -host | --host | --hos | --ho)
867 ac_prev=host_alias ;;
868 -host=* | --host=* | --hos=* | --ho=*)
869 host_alias=$ac_optarg ;;
870
Benny Prijono0822c192008-08-21 20:59:58 +0000871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
882 includedir=$ac_optarg ;;
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887 infodir=$ac_optarg ;;
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 libdir=$ac_optarg ;;
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
899 libexecdir=$ac_optarg ;;
900
Benny Prijono0822c192008-08-21 20:59:58 +0000901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000906 -localstatedir | --localstatedir | --localstatedi | --localstated \
Benny Prijono0822c192008-08-21 20:59:58 +0000907 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Benny Prijono0822c192008-08-21 20:59:58 +0000910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000911 localstatedir=$ac_optarg ;;
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 mandir=$ac_optarg ;;
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000923 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937 oldincludedir=$ac_optarg ;;
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 prefix=$ac_optarg ;;
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949 program_prefix=$ac_optarg ;;
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956 program_suffix=$ac_optarg ;;
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
973 program_transform_name=$ac_optarg ;;
974
Benny Prijono0822c192008-08-21 20:59:58 +0000975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
989 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990 ac_prev=sbindir ;;
991 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992 | --sbi=* | --sb=*)
993 sbindir=$ac_optarg ;;
994
995 -sharedstatedir | --sharedstatedir | --sharedstatedi \
996 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997 | --sharedst | --shareds | --shared | --share | --shar \
998 | --sha | --sh)
999 ac_prev=sharedstatedir ;;
1000 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003 | --sha=* | --sh=*)
1004 sharedstatedir=$ac_optarg ;;
1005
1006 -site | --site | --sit)
1007 ac_prev=site ;;
1008 -site=* | --site=* | --sit=*)
1009 site=$ac_optarg ;;
1010
1011 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012 ac_prev=srcdir ;;
1013 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014 srcdir=$ac_optarg ;;
1015
1016 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017 | --syscon | --sysco | --sysc | --sys | --sy)
1018 ac_prev=sysconfdir ;;
1019 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021 sysconfdir=$ac_optarg ;;
1022
1023 -target | --target | --targe | --targ | --tar | --ta | --t)
1024 ac_prev=target_alias ;;
1025 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026 target_alias=$ac_optarg ;;
1027
1028 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029 verbose=yes ;;
1030
1031 -version | --version | --versio | --versi | --vers | -V)
1032 ac_init_version=: ;;
1033
1034 -with-* | --with-*)
1035 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
Benny Prijono0822c192008-08-21 20:59:58 +00001037 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001038 { echo "$as_me: error: invalid package name: $ac_package" >&2
1039 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00001040 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1041 eval with_$ac_package=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001042
1043 -without-* | --without-*)
1044 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
Benny Prijono0822c192008-08-21 20:59:58 +00001046 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001047 { echo "$as_me: error: invalid package name: $ac_package" >&2
1048 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00001049 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1050 eval with_$ac_package=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001051
1052 --x)
1053 # Obsolete; use --with-x.
1054 with_x=yes ;;
1055
1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057 | --x-incl | --x-inc | --x-in | --x-i)
1058 ac_prev=x_includes ;;
1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061 x_includes=$ac_optarg ;;
1062
1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065 ac_prev=x_libraries ;;
1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068 x_libraries=$ac_optarg ;;
1069
1070 -*) { echo "$as_me: error: unrecognized option: $ac_option
1071Try \`$0 --help' for more information." >&2
1072 { (exit 1); exit 1; }; }
1073 ;;
1074
1075 *=*)
1076 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1080 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00001081 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001082 export $ac_envvar ;;
1083
1084 *)
1085 # FIXME: should be removed in autoconf 3.0.
1086 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 ;;
1091
1092 esac
1093done
1094
1095if test -n "$ac_prev"; then
1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097 { echo "$as_me: error: missing argument to $ac_option" >&2
1098 { (exit 1); exit 1; }; }
1099fi
1100
Benny Prijono0822c192008-08-21 20:59:58 +00001101# Be sure to have absolute directory names.
1102for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1103 datadir sysconfdir sharedstatedir localstatedir includedir \
1104 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1105 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001106do
Benny Prijono0822c192008-08-21 20:59:58 +00001107 eval ac_val=\$$ac_var
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001108 case $ac_val in
Benny Prijono0822c192008-08-21 20:59:58 +00001109 [\\/$]* | ?:[\\/]* ) continue;;
1110 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001111 esac
Benny Prijono0822c192008-08-21 20:59:58 +00001112 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1113 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001114done
1115
1116# There might be people who depend on the old broken behavior: `$host'
1117# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001118# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001119build=$build_alias
1120host=$host_alias
1121target=$target_alias
1122
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001123# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001124if test "x$host_alias" != x; then
1125 if test "x$build_alias" = x; then
1126 cross_compiling=maybe
1127 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1128 If a cross compiler is detected then cross compile mode will be used." >&2
1129 elif test "x$build_alias" != "x$host_alias"; then
1130 cross_compiling=yes
1131 fi
1132fi
1133
1134ac_tool_prefix=
1135test -n "$host_alias" && ac_tool_prefix=$host_alias-
1136
1137test "$silent" = yes && exec 6>/dev/null
1138
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001139
Benny Prijono0822c192008-08-21 20:59:58 +00001140ac_pwd=`pwd` && test -n "$ac_pwd" &&
1141ac_ls_di=`ls -di .` &&
1142ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1143 { echo "$as_me: error: Working directory cannot be determined" >&2
1144 { (exit 1); exit 1; }; }
1145test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1146 { echo "$as_me: error: pwd does not report name of working directory" >&2
1147 { (exit 1); exit 1; }; }
1148
1149
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001150# Find the source files, if location was not specified.
1151if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
Benny Prijono0822c192008-08-21 20:59:58 +00001153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$0" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001155$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$0" : 'X\(//\)[^/]' \| \
1157 X"$0" : 'X\(//\)$' \| \
Benny Prijono0822c192008-08-21 20:59:58 +00001158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001159echo X"$0" |
Benny Prijono0822c192008-08-21 20:59:58 +00001160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 s//\1/
1162 q
1163 }
1164 /^X\(\/\/\)[^/].*/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)$/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\).*/{
1173 s//\1/
1174 q
1175 }
1176 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001177 srcdir=$ac_confdir
Benny Prijono0822c192008-08-21 20:59:58 +00001178 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001179 srcdir=..
1180 fi
1181else
1182 ac_srcdir_defaulted=no
1183fi
Benny Prijono0822c192008-08-21 20:59:58 +00001184if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001187 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +00001188fi
Benny Prijono0822c192008-08-21 20:59:58 +00001189ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1190ac_abs_confdir=`(
1191 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Benny Prijono0b462322008-03-12 22:44:24 +00001192 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00001193 pwd)`
1194# When building in place, set srcdir=.
1195if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 srcdir=.
1197fi
1198# Remove unnecessary trailing slashes from srcdir.
1199# Double slashes in file names in object file debugging info
1200# mess up M-x gdb in Emacs.
1201case $srcdir in
1202*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203esac
1204for ac_var in $ac_precious_vars; do
1205 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_env_${ac_var}_value=\$${ac_var}
1207 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1209done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001210
1211#
1212# Report the --help message.
1213#
1214if test "$ac_init_help" = "long"; then
1215 # Omit some internal or obsolete options to make the list less imposing.
1216 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001217 cat <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00001218\`configure' configures pjproject 1.0 to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001219
1220Usage: $0 [OPTION]... [VAR=VALUE]...
1221
1222To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223VAR=VALUE. See below for descriptions of some of the useful variables.
1224
1225Defaults for the options are specified in brackets.
1226
1227Configuration:
1228 -h, --help display this help and exit
1229 --help=short display options specific to this package
1230 --help=recursive display the short help of all the included packages
1231 -V, --version display version information and exit
1232 -q, --quiet, --silent do not print \`checking...' messages
1233 --cache-file=FILE cache test results in FILE [disabled]
1234 -C, --config-cache alias for \`--cache-file=config.cache'
1235 -n, --no-create do not create output files
1236 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001238Installation directories:
1239 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001240 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001241 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001242 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001243
1244By default, \`make install' will install all the files in
1245\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247for instance \`--prefix=\$HOME'.
1248
1249For better control, use the options below.
1250
1251Fine tuning of the installation directories:
1252 --bindir=DIR user executables [EPREFIX/bin]
1253 --sbindir=DIR system admin executables [EPREFIX/sbin]
1254 --libexecdir=DIR program executables [EPREFIX/libexec]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001255 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1256 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1257 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1258 --libdir=DIR object code libraries [EPREFIX/lib]
1259 --includedir=DIR C header files [PREFIX/include]
1260 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Benny Prijono0822c192008-08-21 20:59:58 +00001261 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1262 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1263 --infodir=DIR info documentation [DATAROOTDIR/info]
1264 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1265 --mandir=DIR man documentation [DATAROOTDIR/man]
1266 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1267 --htmldir=DIR html documentation [DOCDIR]
1268 --dvidir=DIR dvi documentation [DOCDIR]
1269 --pdfdir=DIR pdf documentation [DOCDIR]
1270 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001271_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001272
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001273 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001274
1275System types:
1276 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001277 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001278 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001279_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001280fi
1281
1282if test -n "$ac_init_help"; then
1283 case $ac_init_help in
Benny Prijono0822c192008-08-21 20:59:58 +00001284 short | recursive ) echo "Configuration of pjproject 1.0:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001285 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001286 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001287
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001288Optional Features:
1289 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1290 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1291 --disable-floating-point
1292 Disable floating point where possible
Benny Prijono1d971622006-09-10 22:27:40 +00001293 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001294 --disable-oss Disable OSS audio (default: not disabled)
1295
Benny Prijonoebb2c332008-07-28 23:40:58 +00001296 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001297 --disable-small-filter Exclude small filter in resampling
1298 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001299 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1300 --disable-g711-codec Exclude G.711 codecs from the build
1301 --disable-l16-codec Exclude Linear/L16 codec family from the build
1302 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001303 --disable-g722-codec Exclude G.722 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001304 --disable-speex-codec Exclude Speex codecs in the build
1305 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001306 --enable-libsamplerate Link with libsamplerate when available. Note that
1307 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono0822c192008-08-21 20:59:58 +00001308 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1309 package and samples location using IPPROOT and
1310 IPPSAMPLES env var or with --with-ipp and
1311 --with-ipp-samples options
1312 --with-ipp=DIR Specify the Intel IPP location
1313 --with-ipp-samples=DIR Specify the Intel IPP samples location
Benny Prijonoce1db762007-02-14 02:21:08 +00001314 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001315
1316
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001317Some influential environment variables:
1318 CC C compiler command
1319 CFLAGS C compiler flags
1320 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1321 nonstandard directory <lib dir>
Benny Prijono0822c192008-08-21 20:59:58 +00001322 LIBS libraries to pass to the linker, e.g. -l<library>
1323 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1324 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001325 CXX C++ compiler command
1326 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001327 CPP C preprocessor
1328
1329Use these variables to override the choices made by `configure' or to help
1330it to find libraries and programs with nonstandard names/locations.
1331
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001332_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00001333ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001334fi
1335
1336if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono0822c192008-08-21 20:59:58 +00001339 test -d "$ac_dir" || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001340 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001341
Benny Prijono0822c192008-08-21 20:59:58 +00001342case "$ac_dir" in
1343.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0822c192008-08-21 20:59:58 +00001346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 esac ;;
1352esac
1353ac_abs_top_builddir=$ac_pwd
1354ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355# for backward compatibility:
1356ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001357
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001358case $srcdir in
Benny Prijono0822c192008-08-21 20:59:58 +00001359 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001360 ac_srcdir=.
Benny Prijono0822c192008-08-21 20:59:58 +00001361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001364 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0822c192008-08-21 20:59:58 +00001365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1367 *) # Relative name.
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001371esac
Benny Prijono0822c192008-08-21 20:59:58 +00001372ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001373
Benny Prijono0822c192008-08-21 20:59:58 +00001374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1377 echo &&
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001382 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001383 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijono0822c192008-08-21 20:59:58 +00001384 fi || ac_status=$?
1385 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001386 done
1387fi
1388
Benny Prijono0822c192008-08-21 20:59:58 +00001389test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001390if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001391 cat <<\_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00001392pjproject configure 1.0
1393generated by GNU Autoconf 2.61
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001394
Benny Prijono0822c192008-08-21 20:59:58 +00001395Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13962002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001397This configure script is free software; the Free Software Foundation
1398gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001399_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00001400 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001401fi
Benny Prijono0822c192008-08-21 20:59:58 +00001402cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001403This file contains any messages produced by compilers while
1404running configure, to aid debugging if configure makes a mistake.
1405
Benny Prijono0822c192008-08-21 20:59:58 +00001406It was created by pjproject $as_me 1.0, which was
1407generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001408
1409 $ $0 $@
1410
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001411_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00001412exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001413{
1414cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001415## --------- ##
1416## Platform. ##
1417## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001418
1419hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423uname -v = `(uname -v) 2>/dev/null || echo unknown`
1424
1425/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1427
1428/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1429/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1430/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Benny Prijono0822c192008-08-21 20:59:58 +00001431/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001432/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1433/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1434/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1435
1436_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001437
1438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439for as_dir in $PATH
1440do
1441 IFS=$as_save_IFS
1442 test -z "$as_dir" && as_dir=.
1443 echo "PATH: $as_dir"
1444done
Benny Prijono0822c192008-08-21 20:59:58 +00001445IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001446
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001447} >&5
1448
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001449cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001450
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001451
1452## ----------- ##
1453## Core tests. ##
1454## ----------- ##
1455
1456_ACEOF
1457
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001458
1459# Keep a trace of the command line.
1460# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001461# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001462# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001463# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001464ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001465ac_configure_args0=
1466ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001467ac_must_keep_next=false
1468for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001469do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001470 for ac_arg
1471 do
1472 case $ac_arg in
1473 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1476 continue ;;
Benny Prijono0822c192008-08-21 20:59:58 +00001477 *\'*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001478 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 esac
1480 case $ac_pass in
1481 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1482 2)
1483 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1484 if test $ac_must_keep_next = true; then
1485 ac_must_keep_next=false # Got value, back to normal.
1486 else
1487 case $ac_arg in
1488 *=* | --config-cache | -C | -disable-* | --disable-* \
1489 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1490 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1491 | -with-* | --with-* | -without-* | --without-* | --x)
1492 case "$ac_configure_args0 " in
1493 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1494 esac
1495 ;;
1496 -* ) ac_must_keep_next=true ;;
1497 esac
1498 fi
Benny Prijono0822c192008-08-21 20:59:58 +00001499 ac_configure_args="$ac_configure_args '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001500 ;;
1501 esac
1502 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001503done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001504$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1505$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 +00001506
1507# When interrupted or exit'd, cleanup temporary files, and complete
1508# config.log. We remove comments because anyway the quotes in there
1509# would cause problems or look ugly.
Benny Prijono0822c192008-08-21 20:59:58 +00001510# WARNING: Use '\'' to represent an apostrophe within the trap.
1511# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001512trap 'exit_status=$?
1513 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001514 {
1515 echo
1516
1517 cat <<\_ASBOX
1518## ---------------- ##
1519## Cache variables. ##
1520## ---------------- ##
1521_ASBOX
1522 echo
1523 # The following way of writing the cache mishandles newlines in values,
Benny Prijono0822c192008-08-21 20:59:58 +00001524(
1525 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526 eval ac_val=\$$ac_var
1527 case $ac_val in #(
1528 *${as_nl}*)
1529 case $ac_var in #(
1530 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1532 esac
1533 case $ac_var in #(
1534 _ | IFS | as_nl) ;; #(
1535 *) $as_unset $ac_var ;;
1536 esac ;;
1537 esac
1538 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001539 (set) 2>&1 |
Benny Prijono0822c192008-08-21 20:59:58 +00001540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001542 sed -n \
Benny Prijono0822c192008-08-21 20:59:58 +00001543 "s/'\''/'\''\\\\'\'''\''/g;
1544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1545 ;; #(
Benny Prijono0b462322008-03-12 22:44:24 +00001546 *)
Benny Prijono0822c192008-08-21 20:59:58 +00001547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijono0b462322008-03-12 22:44:24 +00001548 ;;
Benny Prijono0822c192008-08-21 20:59:58 +00001549 esac |
1550 sort
1551)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001552 echo
1553
1554 cat <<\_ASBOX
1555## ----------------- ##
1556## Output variables. ##
1557## ----------------- ##
1558_ASBOX
1559 echo
1560 for ac_var in $ac_subst_vars
1561 do
Benny Prijono0822c192008-08-21 20:59:58 +00001562 eval ac_val=\$$ac_var
1563 case $ac_val in
1564 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565 esac
1566 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001567 done | sort
1568 echo
1569
1570 if test -n "$ac_subst_files"; then
1571 cat <<\_ASBOX
Benny Prijono0822c192008-08-21 20:59:58 +00001572## ------------------- ##
1573## File substitutions. ##
1574## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001575_ASBOX
1576 echo
1577 for ac_var in $ac_subst_files
1578 do
Benny Prijono0822c192008-08-21 20:59:58 +00001579 eval ac_val=\$$ac_var
1580 case $ac_val in
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582 esac
1583 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001584 done | sort
1585 echo
1586 fi
1587
1588 if test -s confdefs.h; then
1589 cat <<\_ASBOX
1590## ----------- ##
1591## confdefs.h. ##
1592## ----------- ##
1593_ASBOX
1594 echo
Benny Prijono0822c192008-08-21 20:59:58 +00001595 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001596 echo
1597 fi
1598 test "$ac_signal" != 0 &&
1599 echo "$as_me: caught signal $ac_signal"
1600 echo "$as_me: exit $exit_status"
1601 } >&5
Benny Prijono0822c192008-08-21 20:59:58 +00001602 rm -f core *.core core.conftest.* &&
1603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001604 exit $exit_status
Benny Prijono0822c192008-08-21 20:59:58 +00001605' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001606for ac_signal in 1 2 13 15; do
1607 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1608done
1609ac_signal=0
1610
1611# confdefs.h avoids OS command line length limits that DEFS can exceed.
Benny Prijono0822c192008-08-21 20:59:58 +00001612rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001613
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001614# Predefined preprocessor variables.
1615
1616cat >>confdefs.h <<_ACEOF
1617#define PACKAGE_NAME "$PACKAGE_NAME"
1618_ACEOF
1619
1620
1621cat >>confdefs.h <<_ACEOF
1622#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1623_ACEOF
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define PACKAGE_VERSION "$PACKAGE_VERSION"
1628_ACEOF
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_STRING "$PACKAGE_STRING"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1638_ACEOF
1639
1640
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001641# Let the site file select an alternate cache file if it wants to.
1642# Prefer explicitly selected file to automatically selected ones.
Benny Prijono0822c192008-08-21 20:59:58 +00001643if test -n "$CONFIG_SITE"; then
1644 set x "$CONFIG_SITE"
1645elif test "x$prefix" != xNONE; then
1646 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1647else
1648 set x "$ac_default_prefix/share/config.site" \
1649 "$ac_default_prefix/etc/config.site"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001650fi
Benny Prijono0822c192008-08-21 20:59:58 +00001651shift
1652for ac_site_file
1653do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001654 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001655 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001656echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001657 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001658 . "$ac_site_file"
1659 fi
1660done
1661
1662if test -r "$cache_file"; then
1663 # Some versions of bash will fail to source /dev/null (special
1664 # files actually), so we avoid doing that.
1665 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001666 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001667echo "$as_me: loading cache $cache_file" >&6;}
1668 case $cache_file in
Benny Prijono0822c192008-08-21 20:59:58 +00001669 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1670 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001671 esac
1672 fi
1673else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001674 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001675echo "$as_me: creating cache $cache_file" >&6;}
1676 >$cache_file
1677fi
1678
1679# Check that the precious variables saved in the cache have kept the same
1680# value.
1681ac_cache_corrupted=false
Benny Prijono0822c192008-08-21 20:59:58 +00001682for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001683 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1684 eval ac_new_set=\$ac_env_${ac_var}_set
Benny Prijono0822c192008-08-21 20:59:58 +00001685 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1686 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001687 case $ac_old_set,$ac_new_set in
1688 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001689 { 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 +00001690echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1691 ac_cache_corrupted=: ;;
1692 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001693 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001694echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1695 ac_cache_corrupted=: ;;
1696 ,);;
1697 *)
1698 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001699 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001700echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001701 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001702echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001703 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001704echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001705 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001706 fi;;
1707 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001708 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001709 if test "$ac_new_set" = set; then
1710 case $ac_new_val in
Benny Prijono0822c192008-08-21 20:59:58 +00001711 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001712 *) ac_arg=$ac_var=$ac_new_val ;;
1713 esac
1714 case " $ac_configure_args " in
1715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1716 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001717 esac
1718 fi
1719done
1720if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001721 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001722echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001723 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001724echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1725 { (exit 1); exit 1; }; }
1726fi
1727
Benny Prijono0822c192008-08-21 20:59:58 +00001728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001752ac_ext=c
1753ac_cpp='$CPP $CPPFLAGS'
1754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756ac_compiler_gnu=$ac_cv_c_compiler_gnu
1757
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001758
1759
Benny Prijono5b818b22006-09-17 22:58:51 +00001760host_orig="$host"
1761
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001762ac_aux_dir=
Benny Prijono0822c192008-08-21 20:59:58 +00001763for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1764 if test -f "$ac_dir/install-sh"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001765 ac_aux_dir=$ac_dir
1766 ac_install_sh="$ac_aux_dir/install-sh -c"
1767 break
Benny Prijono0822c192008-08-21 20:59:58 +00001768 elif test -f "$ac_dir/install.sh"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001769 ac_aux_dir=$ac_dir
1770 ac_install_sh="$ac_aux_dir/install.sh -c"
1771 break
Benny Prijono0822c192008-08-21 20:59:58 +00001772 elif test -f "$ac_dir/shtool"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001773 ac_aux_dir=$ac_dir
1774 ac_install_sh="$ac_aux_dir/shtool install -c"
1775 break
1776 fi
1777done
1778if test -z "$ac_aux_dir"; then
Benny Prijono0822c192008-08-21 20:59:58 +00001779 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1780echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001781 { (exit 1); exit 1; }; }
1782fi
Benny Prijono0822c192008-08-21 20:59:58 +00001783
1784# These three variables are undocumented and unsupported,
1785# and are intended to be withdrawn in a future Autoconf release.
1786# They can cause serious problems if a builder's source tree is in a directory
1787# whose full name contains unusual characters.
1788ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1789ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1790ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1791
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001792
1793# Make sure we can run config.sub.
Benny Prijono0822c192008-08-21 20:59:58 +00001794$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1795 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1796echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001797 { (exit 1); exit 1; }; }
1798
Benny Prijono0822c192008-08-21 20:59:58 +00001799{ echo "$as_me:$LINENO: checking build system type" >&5
1800echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001801if test "${ac_cv_build+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803else
Benny Prijono0822c192008-08-21 20:59:58 +00001804 ac_build_alias=$build_alias
1805test "x$ac_build_alias" = x &&
1806 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1807test "x$ac_build_alias" = x &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001808 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001809echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1810 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00001811ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1812 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1813echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001814 { (exit 1); exit 1; }; }
1815
1816fi
Benny Prijono0822c192008-08-21 20:59:58 +00001817{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1818echo "${ECHO_T}$ac_cv_build" >&6; }
1819case $ac_cv_build in
1820*-*-*) ;;
1821*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1822echo "$as_me: error: invalid value of canonical build" >&2;}
1823 { (exit 1); exit 1; }; };;
1824esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001825build=$ac_cv_build
Benny Prijono0822c192008-08-21 20:59:58 +00001826ac_save_IFS=$IFS; IFS='-'
1827set x $ac_cv_build
1828shift
1829build_cpu=$1
1830build_vendor=$2
1831shift; shift
1832# Remember, the first character of IFS is used to create $*,
1833# except with old shells:
1834build_os=$*
1835IFS=$ac_save_IFS
1836case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001837
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001838
Benny Prijono0822c192008-08-21 20:59:58 +00001839{ echo "$as_me:$LINENO: checking host system type" >&5
1840echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001841if test "${ac_cv_host+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843else
Benny Prijono0822c192008-08-21 20:59:58 +00001844 if test "x$host_alias" = x; then
1845 ac_cv_host=$ac_cv_build
1846else
1847 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1848 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1849echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001850 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00001851fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001852
1853fi
Benny Prijono0822c192008-08-21 20:59:58 +00001854{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1855echo "${ECHO_T}$ac_cv_host" >&6; }
1856case $ac_cv_host in
1857*-*-*) ;;
1858*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1859echo "$as_me: error: invalid value of canonical host" >&2;}
1860 { (exit 1); exit 1; }; };;
1861esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001862host=$ac_cv_host
Benny Prijono0822c192008-08-21 20:59:58 +00001863ac_save_IFS=$IFS; IFS='-'
1864set x $ac_cv_host
1865shift
1866host_cpu=$1
1867host_vendor=$2
1868shift; shift
1869# Remember, the first character of IFS is used to create $*,
1870# except with old shells:
1871host_os=$*
1872IFS=$ac_save_IFS
1873case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001874
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001875
Benny Prijono0822c192008-08-21 20:59:58 +00001876{ echo "$as_me:$LINENO: checking target system type" >&5
1877echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001878if test "${ac_cv_target+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880else
Benny Prijono0822c192008-08-21 20:59:58 +00001881 if test "x$target_alias" = x; then
1882 ac_cv_target=$ac_cv_host
1883else
1884 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1885 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1886echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001887 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00001888fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001889
1890fi
Benny Prijono0822c192008-08-21 20:59:58 +00001891{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1892echo "${ECHO_T}$ac_cv_target" >&6; }
1893case $ac_cv_target in
1894*-*-*) ;;
1895*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1896echo "$as_me: error: invalid value of canonical target" >&2;}
1897 { (exit 1); exit 1; }; };;
1898esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001899target=$ac_cv_target
Benny Prijono0822c192008-08-21 20:59:58 +00001900ac_save_IFS=$IFS; IFS='-'
1901set x $ac_cv_target
1902shift
1903target_cpu=$1
1904target_vendor=$2
1905shift; shift
1906# Remember, the first character of IFS is used to create $*,
1907# except with old shells:
1908target_os=$*
1909IFS=$ac_save_IFS
1910case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001911
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001912
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001913# The aliases save the names the user supplied, while $host etc.
1914# will get canonicalized.
1915test -n "$target_alias" &&
1916 test "$program_prefix$program_suffix$program_transform_name" = \
1917 NONENONEs,x,x, &&
1918 program_prefix=${target_alias}-
Benny Prijono0822c192008-08-21 20:59:58 +00001919ac_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 +00001920
Benny Prijono0822c192008-08-21 20:59:58 +00001921ac_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 +00001922
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001923
Benny Prijono12483112007-03-12 10:44:38 +00001924
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001925if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001926 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001927else
1928 CFLAGS="$CFLAGS"
1929fi
1930
1931CXXFLAGS="$CFLAGS $CXXFLAGS"
1932
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001933ac_ext=c
1934ac_cpp='$CPP $CPPFLAGS'
1935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938if test -n "$ac_tool_prefix"; then
1939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1940set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono0822c192008-08-21 20:59:58 +00001941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001943if test "${ac_cv_prog_CC+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945else
1946 if test -n "$CC"; then
1947 ac_cv_prog_CC="$CC" # Let the user override the test.
1948else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950for as_dir in $PATH
1951do
1952 IFS=$as_save_IFS
1953 test -z "$as_dir" && as_dir=.
1954 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0822c192008-08-21 20:59:58 +00001955 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 +00001956 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 break 2
1959 fi
1960done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001961done
Benny Prijono0822c192008-08-21 20:59:58 +00001962IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001963
1964fi
1965fi
1966CC=$ac_cv_prog_CC
1967if test -n "$CC"; then
Benny Prijono0822c192008-08-21 20:59:58 +00001968 { echo "$as_me:$LINENO: result: $CC" >&5
1969echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001970else
Benny Prijono0822c192008-08-21 20:59:58 +00001971 { echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001973fi
1974
Benny Prijono0822c192008-08-21 20:59:58 +00001975
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001976fi
1977if test -z "$ac_cv_prog_CC"; then
1978 ac_ct_CC=$CC
1979 # Extract the first word of "gcc", so it can be a program name with args.
1980set dummy gcc; ac_word=$2
Benny Prijono0822c192008-08-21 20:59:58 +00001981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001983if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986 if test -n "$ac_ct_CC"; then
1987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0822c192008-08-21 20:59:58 +00001995 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 +00001996 ac_cv_prog_ac_ct_CC="gcc"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
1999 fi
2000done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002001done
Benny Prijono0822c192008-08-21 20:59:58 +00002002IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002003
2004fi
2005fi
2006ac_ct_CC=$ac_cv_prog_ac_ct_CC
2007if test -n "$ac_ct_CC"; then
Benny Prijono0822c192008-08-21 20:59:58 +00002008 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2009echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002010else
Benny Prijono0822c192008-08-21 20:59:58 +00002011 { echo "$as_me:$LINENO: result: no" >&5
2012echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002013fi
2014
Benny Prijono0822c192008-08-21 20:59:58 +00002015 if test "x$ac_ct_CC" = x; then
2016 CC=""
2017 else
2018 case $cross_compiling:$ac_tool_warned in
2019yes:)
2020{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2021whose name does not start with the host triplet. If you think this
2022configuration is useful to you, please write to autoconf@gnu.org." >&5
2023echo "$as_me: 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." >&2;}
2026ac_tool_warned=yes ;;
2027esac
2028 CC=$ac_ct_CC
2029 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002030else
2031 CC="$ac_cv_prog_CC"
2032fi
2033
2034if test -z "$CC"; then
Benny Prijono0822c192008-08-21 20:59:58 +00002035 if test -n "$ac_tool_prefix"; then
2036 # 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 +00002037set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono0822c192008-08-21 20:59:58 +00002038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002040if test "${ac_cv_prog_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043 if test -n "$CC"; then
2044 ac_cv_prog_CC="$CC" # Let the user override the test.
2045else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0822c192008-08-21 20:59:58 +00002052 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 +00002053 ac_cv_prog_CC="${ac_tool_prefix}cc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002058done
Benny Prijono0822c192008-08-21 20:59:58 +00002059IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002060
2061fi
2062fi
2063CC=$ac_cv_prog_CC
2064if test -n "$CC"; then
Benny Prijono0822c192008-08-21 20:59:58 +00002065 { echo "$as_me:$LINENO: result: $CC" >&5
2066echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002067else
Benny Prijono0822c192008-08-21 20:59:58 +00002068 { echo "$as_me:$LINENO: result: no" >&5
2069echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002070fi
2071
Benny Prijono0822c192008-08-21 20:59:58 +00002072
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002073 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002074fi
2075if test -z "$CC"; then
2076 # Extract the first word of "cc", so it can be a program name with args.
2077set dummy cc; ac_word=$2
Benny Prijono0822c192008-08-21 20:59:58 +00002078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002080if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2085else
2086 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0822c192008-08-21 20:59:58 +00002093 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 +00002094 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2095 ac_prog_rejected=yes
2096 continue
2097 fi
2098 ac_cv_prog_CC="cc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 break 2
2101 fi
2102done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002103done
Benny Prijono0822c192008-08-21 20:59:58 +00002104IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002105
2106if test $ac_prog_rejected = yes; then
2107 # We found a bogon in the path, so make sure we never use it.
2108 set dummy $ac_cv_prog_CC
2109 shift
2110 if test $# != 0; then
2111 # We chose a different compiler from the bogus one.
2112 # However, it has the same basename, so the bogon will be chosen
2113 # first if we set CC to just the basename; use the full file name.
2114 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002115 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002116 fi
2117fi
2118fi
2119fi
2120CC=$ac_cv_prog_CC
2121if test -n "$CC"; then
Benny Prijono0822c192008-08-21 20:59:58 +00002122 { echo "$as_me:$LINENO: result: $CC" >&5
2123echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002124else
Benny Prijono0822c192008-08-21 20:59:58 +00002125 { echo "$as_me:$LINENO: result: no" >&5
2126echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002127fi
2128
Benny Prijono0822c192008-08-21 20:59:58 +00002129
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002130fi
2131if test -z "$CC"; then
2132 if test -n "$ac_tool_prefix"; then
Benny Prijono0822c192008-08-21 20:59:58 +00002133 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002134 do
2135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0822c192008-08-21 20:59:58 +00002137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002139if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141else
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2144else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0822c192008-08-21 20:59:58 +00002151 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 +00002152 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 break 2
2155 fi
2156done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002157done
Benny Prijono0822c192008-08-21 20:59:58 +00002158IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002159
2160fi
2161fi
2162CC=$ac_cv_prog_CC
2163if test -n "$CC"; then
Benny Prijono0822c192008-08-21 20:59:58 +00002164 { echo "$as_me:$LINENO: result: $CC" >&5
2165echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002166else
Benny Prijono0822c192008-08-21 20:59:58 +00002167 { echo "$as_me:$LINENO: result: no" >&5
2168echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002169fi
2170
Benny Prijono0822c192008-08-21 20:59:58 +00002171
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002172 test -n "$CC" && break
2173 done
2174fi
2175if test -z "$CC"; then
2176 ac_ct_CC=$CC
Benny Prijono0822c192008-08-21 20:59:58 +00002177 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002178do
2179 # Extract the first word of "$ac_prog", so it can be a program name with args.
2180set dummy $ac_prog; ac_word=$2
Benny Prijono0822c192008-08-21 20:59:58 +00002181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002183if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185else
2186 if test -n "$ac_ct_CC"; then
2187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190for as_dir in $PATH
2191do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0822c192008-08-21 20:59:58 +00002195 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 +00002196 ac_cv_prog_ac_ct_CC="$ac_prog"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 break 2
2199 fi
2200done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002201done
Benny Prijono0822c192008-08-21 20:59:58 +00002202IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002203
2204fi
2205fi
2206ac_ct_CC=$ac_cv_prog_ac_ct_CC
2207if test -n "$ac_ct_CC"; then
Benny Prijono0822c192008-08-21 20:59:58 +00002208 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2209echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002210else
Benny Prijono0822c192008-08-21 20:59:58 +00002211 { echo "$as_me:$LINENO: result: no" >&5
2212echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002213fi
2214
Benny Prijono0822c192008-08-21 20:59:58 +00002215
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002216 test -n "$ac_ct_CC" && break
2217done
2218
Benny Prijono0822c192008-08-21 20:59:58 +00002219 if test "x$ac_ct_CC" = x; then
2220 CC=""
2221 else
2222 case $cross_compiling:$ac_tool_warned in
2223yes:)
2224{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2225whose name does not start with the host triplet. If you think this
2226configuration is useful to you, please write to autoconf@gnu.org." >&5
2227echo "$as_me: 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." >&2;}
2230ac_tool_warned=yes ;;
2231esac
2232 CC=$ac_ct_CC
2233 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002234fi
2235
2236fi
2237
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002238
2239test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: no acceptable C compiler found in \$PATH
2242See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002243 { (exit 1); exit 1; }; }
2244
2245# Provide some information about the compiler.
Benny Prijono0822c192008-08-21 20:59:58 +00002246echo "$as_me:$LINENO: checking for C compiler version" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002247ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0822c192008-08-21 20:59:58 +00002248{ (ac_try="$ac_compiler --version >&5"
2249case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2252esac
2253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2254 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002255 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002257 (exit $ac_status); }
Benny Prijono0822c192008-08-21 20:59:58 +00002258{ (ac_try="$ac_compiler -v >&5"
2259case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2262esac
2263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264 (eval "$ac_compiler -v >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002265 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002267 (exit $ac_status); }
Benny Prijono0822c192008-08-21 20:59:58 +00002268{ (ac_try="$ac_compiler -V >&5"
2269case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2272esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274 (eval "$ac_compiler -V >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002275 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002277 (exit $ac_status); }
2278
2279cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002280/* confdefs.h. */
2281_ACEOF
2282cat confdefs.h >>conftest.$ac_ext
2283cat >>conftest.$ac_ext <<_ACEOF
2284/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002285
2286int
2287main ()
2288{
2289
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002295ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002296# Try to create an executable without -o first, disregard a.out.
2297# It will help us diagnose broken compilers, and finding out an intuition
2298# of exeext.
Benny Prijono0822c192008-08-21 20:59:58 +00002299{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2300echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002301ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono0822c192008-08-21 20:59:58 +00002302#
2303# List of possible output files, starting from the most likely.
2304# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2305# only as a last resort. b.out is created by i960 compilers.
2306ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2307#
2308# The IRIX 6 linker writes into existing files which may not be
2309# executable, retaining their permissions. Remove them first so a
2310# subsequent execution test works.
2311ac_rmfiles=
2312for ac_file in $ac_files
2313do
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2316 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2317 esac
2318done
2319rm -f $ac_rmfiles
2320
2321if { (ac_try="$ac_link_default"
2322case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2325esac
2326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002328 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002330 (exit $ac_status); }; then
Benny Prijono0822c192008-08-21 20:59:58 +00002331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2332# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2333# in a Makefile. We should not override ac_cv_exeext if it was cached,
2334# so that the user can short-circuit this test for compilers unknown to
2335# Autoconf.
2336for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002337do
2338 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002339 case $ac_file in
Benny Prijono0822c192008-08-21 20:59:58 +00002340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002341 ;;
2342 [ab].out )
2343 # We found the default executable, but exeext='' is most
2344 # certainly right.
2345 break;;
2346 *.* )
Benny Prijono0822c192008-08-21 20:59:58 +00002347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2348 then :; else
2349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2350 fi
2351 # We set ac_cv_exeext here because the later test for it is not
2352 # safe: cross compilers may not add the suffix if given an `-o'
2353 # argument, so we may need to know it at that point already.
2354 # Even if this section looks crufty: it has the advantage of
2355 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002356 break;;
2357 * )
2358 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002359 esac
2360done
Benny Prijono0822c192008-08-21 20:59:58 +00002361test "$ac_cv_exeext" = no && ac_cv_exeext=
2362
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002363else
Benny Prijono0822c192008-08-21 20:59:58 +00002364 ac_file=''
2365fi
2366
2367{ echo "$as_me:$LINENO: result: $ac_file" >&5
2368echo "${ECHO_T}$ac_file" >&6; }
2369if test -z "$ac_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002370 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002371sed 's/^/| /' conftest.$ac_ext >&5
2372
2373{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2374See \`config.log' for more details." >&5
2375echo "$as_me: error: C compiler cannot create executables
2376See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002377 { (exit 77); exit 77; }; }
2378fi
2379
2380ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002381
Benny Prijono0822c192008-08-21 20:59:58 +00002382# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002383# the compiler is broken, or we cross compile.
Benny Prijono0822c192008-08-21 20:59:58 +00002384{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2385echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002386# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2387# If not cross compiling, check that we can run a simple program.
2388if test "$cross_compiling" != yes; then
2389 if { ac_try='./$ac_file'
Benny Prijono0822c192008-08-21 20:59:58 +00002390 { (case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393esac
2394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_try") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002396 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002398 (exit $ac_status); }; }; then
2399 cross_compiling=no
2400 else
2401 if test "$cross_compiling" = maybe; then
2402 cross_compiling=yes
2403 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002404 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2405If you meant to cross compile, use \`--host'.
2406See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002407echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002408If you meant to cross compile, use \`--host'.
2409See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002410 { (exit 1); exit 1; }; }
2411 fi
2412 fi
2413fi
Benny Prijono0822c192008-08-21 20:59:58 +00002414{ echo "$as_me:$LINENO: result: yes" >&5
2415echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002416
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002417rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002418ac_clean_files=$ac_clean_files_save
Benny Prijono0822c192008-08-21 20:59:58 +00002419# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002420# the compiler is broken, or we cross compile.
Benny Prijono0822c192008-08-21 20:59:58 +00002421{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2422echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2423{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2424echo "${ECHO_T}$cross_compiling" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002425
Benny Prijono0822c192008-08-21 20:59:58 +00002426{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2427echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2428if { (ac_try="$ac_link"
2429case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432esac
2433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002435 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002437 (exit $ac_status); }; then
2438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2439# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2440# work properly (i.e., refer to `conftest.exe'), while it won't with
2441# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002442for ac_file in conftest.exe conftest conftest.*; do
2443 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002444 case $ac_file in
Benny Prijono0822c192008-08-21 20:59:58 +00002445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002447 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002448 * ) break;;
2449 esac
2450done
2451else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002452 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2453See \`config.log' for more details." >&5
2454echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2455See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002456 { (exit 1); exit 1; }; }
2457fi
2458
2459rm -f conftest$ac_cv_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00002460{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2461echo "${ECHO_T}$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002462
2463rm -f conftest.$ac_ext
2464EXEEXT=$ac_cv_exeext
2465ac_exeext=$EXEEXT
Benny Prijono0822c192008-08-21 20:59:58 +00002466{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2467echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002468if test "${ac_cv_objext+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470else
2471 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002472/* confdefs.h. */
2473_ACEOF
2474cat confdefs.h >>conftest.$ac_ext
2475cat >>conftest.$ac_ext <<_ACEOF
2476/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002477
2478int
2479main ()
2480{
2481
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486rm -f conftest.o conftest.obj
Benny Prijono0822c192008-08-21 20:59:58 +00002487if { (ac_try="$ac_compile"
2488case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491esac
2492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002494 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002496 (exit $ac_status); }; then
Benny Prijono0822c192008-08-21 20:59:58 +00002497 for ac_file in conftest.o conftest.obj conftest.*; do
2498 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002499 case $ac_file in
Benny Prijono0822c192008-08-21 20:59:58 +00002500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002501 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2502 break;;
2503 esac
2504done
2505else
2506 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002507sed 's/^/| /' conftest.$ac_ext >&5
2508
2509{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2510See \`config.log' for more details." >&5
2511echo "$as_me: error: cannot compute suffix of object files: cannot compile
2512See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002513 { (exit 1); exit 1; }; }
2514fi
2515
2516rm -f conftest.$ac_cv_objext conftest.$ac_ext
2517fi
Benny Prijono0822c192008-08-21 20:59:58 +00002518{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2519echo "${ECHO_T}$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002520OBJEXT=$ac_cv_objext
2521ac_objext=$OBJEXT
Benny Prijono0822c192008-08-21 20:59:58 +00002522{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2523echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002524if test "${ac_cv_c_compiler_gnu+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002528/* confdefs.h. */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002533
2534int
2535main ()
2536{
2537#ifndef __GNUC__
2538 choke me
2539#endif
2540
2541 ;
2542 return 0;
2543}
2544_ACEOF
2545rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00002546if { (ac_try="$ac_compile"
2547case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2550esac
2551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002553 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00002558 (exit $ac_status); } && {
2559 test -z "$ac_c_werror_flag" ||
2560 test ! -s conftest.err
2561 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002562 ac_compiler_gnu=yes
2563else
2564 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002565sed 's/^/| /' conftest.$ac_ext >&5
2566
Benny Prijono0822c192008-08-21 20:59:58 +00002567 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002568fi
Benny Prijono0822c192008-08-21 20:59:58 +00002569
2570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002571ac_cv_c_compiler_gnu=$ac_compiler_gnu
2572
2573fi
Benny Prijono0822c192008-08-21 20:59:58 +00002574{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2575echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002576GCC=`test $ac_compiler_gnu = yes && echo yes`
2577ac_test_CFLAGS=${CFLAGS+set}
2578ac_save_CFLAGS=$CFLAGS
Benny Prijono0822c192008-08-21 20:59:58 +00002579{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2580echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002581if test "${ac_cv_prog_cc_g+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
Benny Prijono0822c192008-08-21 20:59:58 +00002584 ac_save_c_werror_flag=$ac_c_werror_flag
2585 ac_c_werror_flag=yes
2586 ac_cv_prog_cc_g=no
2587 CFLAGS="-g"
2588 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002589/* confdefs.h. */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
2593/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002594
2595int
2596main ()
2597{
2598
2599 ;
2600 return 0;
2601}
2602_ACEOF
2603rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00002604if { (ac_try="$ac_compile"
2605case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608esac
2609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002611 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00002616 (exit $ac_status); } && {
2617 test -z "$ac_c_werror_flag" ||
2618 test ! -s conftest.err
2619 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002620 ac_cv_prog_cc_g=yes
2621else
2622 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002623sed 's/^/| /' conftest.$ac_ext >&5
2624
Benny Prijono0822c192008-08-21 20:59:58 +00002625 CFLAGS=""
2626 cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h. */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h. */
2632
2633int
2634main ()
2635{
2636
2637 ;
2638 return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
2642if { (ac_try="$ac_compile"
2643case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646esac
2647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } && {
2655 test -z "$ac_c_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest.$ac_objext; then
2658 :
2659else
2660 echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 ac_c_werror_flag=$ac_save_c_werror_flag
2664 CFLAGS="-g"
2665 cat >conftest.$ac_ext <<_ACEOF
2666/* confdefs.h. */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h. */
2671
2672int
2673main ()
2674{
2675
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (ac_try="$ac_compile"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compile") 2>conftest.er1
2688 ac_status=$?
2689 grep -v '^ *+' conftest.er1 >conftest.err
2690 rm -f conftest.er1
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } && {
2694 test -z "$ac_c_werror_flag" ||
2695 test ! -s conftest.err
2696 } && test -s conftest.$ac_objext; then
2697 ac_cv_prog_cc_g=yes
2698else
2699 echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002703fi
Benny Prijono0822c192008-08-21 20:59:58 +00002704
2705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002706fi
Benny Prijono0822c192008-08-21 20:59:58 +00002707
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709fi
2710
2711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 ac_c_werror_flag=$ac_save_c_werror_flag
2713fi
2714{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2715echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002716if test "$ac_test_CFLAGS" = set; then
2717 CFLAGS=$ac_save_CFLAGS
2718elif test $ac_cv_prog_cc_g = yes; then
2719 if test "$GCC" = yes; then
2720 CFLAGS="-g -O2"
2721 else
2722 CFLAGS="-g"
2723 fi
2724else
2725 if test "$GCC" = yes; then
2726 CFLAGS="-O2"
2727 else
2728 CFLAGS=
2729 fi
2730fi
Benny Prijono0822c192008-08-21 20:59:58 +00002731{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2732echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2733if test "${ac_cv_prog_cc_c89+set}" = set; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735else
Benny Prijono0822c192008-08-21 20:59:58 +00002736 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002737ac_save_CC=$CC
2738cat >conftest.$ac_ext <<_ACEOF
2739/* confdefs.h. */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
2743/* end confdefs.h. */
2744#include <stdarg.h>
2745#include <stdio.h>
2746#include <sys/types.h>
2747#include <sys/stat.h>
2748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2749struct buf { int x; };
2750FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751static char *e (p, i)
2752 char **p;
2753 int i;
2754{
2755 return p[i];
2756}
2757static char *f (char * (*g) (char **, int), char **p, ...)
2758{
2759 char *s;
2760 va_list v;
2761 va_start (v,p);
2762 s = g (p, va_arg (v,int));
2763 va_end (v);
2764 return s;
2765}
2766
2767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2768 function prototypes and stuff, but not '\xHH' hex character constants.
2769 These don't provoke an error unfortunately, instead are silently treated
Benny Prijono0822c192008-08-21 20:59:58 +00002770 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2772 array size at least. It's necessary to write '\x00'==0 to get something
Benny Prijono0822c192008-08-21 20:59:58 +00002773 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002774int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2775
Benny Prijono0822c192008-08-21 20:59:58 +00002776/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2777 inside strings and character constants. */
2778#define FOO(x) 'x'
2779int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2780
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002781int test (int i, double x);
2782struct s1 {int (*f) (int a);};
2783struct s2 {int (*f) (double a);};
2784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2785int argc;
2786char **argv;
2787int
2788main ()
2789{
2790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2791 ;
2792 return 0;
2793}
2794_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00002795for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002797do
2798 CC="$ac_save_CC $ac_arg"
2799 rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00002800if { (ac_try="$ac_compile"
2801case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804esac
2805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002807 ac_status=$?
2808 grep -v '^ *+' conftest.er1 >conftest.err
2809 rm -f conftest.er1
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00002812 (exit $ac_status); } && {
2813 test -z "$ac_c_werror_flag" ||
2814 test ! -s conftest.err
2815 } && test -s conftest.$ac_objext; then
2816 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002817else
2818 echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
Benny Prijono0822c192008-08-21 20:59:58 +00002821
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002822fi
Benny Prijono0822c192008-08-21 20:59:58 +00002823
2824rm -f core conftest.err conftest.$ac_objext
2825 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002826done
Benny Prijono0822c192008-08-21 20:59:58 +00002827rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002828CC=$ac_save_CC
2829
2830fi
Benny Prijono0822c192008-08-21 20:59:58 +00002831# AC_CACHE_VAL
2832case "x$ac_cv_prog_cc_c89" in
2833 x)
2834 { echo "$as_me:$LINENO: result: none needed" >&5
2835echo "${ECHO_T}none needed" >&6; } ;;
2836 xno)
2837 { echo "$as_me:$LINENO: result: unsupported" >&5
2838echo "${ECHO_T}unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002839 *)
Benny Prijono0822c192008-08-21 20:59:58 +00002840 CC="$CC $ac_cv_prog_cc_c89"
2841 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2842echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002843esac
2844
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002845
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002846ac_ext=c
2847ac_cpp='$CPP $CPPFLAGS'
2848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851
Benny Prijono0822c192008-08-21 20:59:58 +00002852ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002853ac_cpp='$CXXCPP $CPPFLAGS'
2854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Benny Prijono0822c192008-08-21 20:59:58 +00002857if test -z "$CXX"; then
2858 if test -n "$CCC"; then
2859 CXX=$CCC
2860 else
2861 if test -n "$ac_tool_prefix"; then
2862 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 +00002863 do
2864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2865set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0822c192008-08-21 20:59:58 +00002866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002868if test "${ac_cv_prog_CXX+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871 if test -n "$CXX"; then
2872 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2873else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0822c192008-08-21 20:59:58 +00002880 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 +00002881 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002886done
Benny Prijono0822c192008-08-21 20:59:58 +00002887IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002888
2889fi
2890fi
2891CXX=$ac_cv_prog_CXX
2892if test -n "$CXX"; then
Benny Prijono0822c192008-08-21 20:59:58 +00002893 { echo "$as_me:$LINENO: result: $CXX" >&5
2894echo "${ECHO_T}$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002895else
Benny Prijono0822c192008-08-21 20:59:58 +00002896 { echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002898fi
2899
Benny Prijono0822c192008-08-21 20:59:58 +00002900
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002901 test -n "$CXX" && break
2902 done
2903fi
2904if test -z "$CXX"; then
2905 ac_ct_CXX=$CXX
Benny Prijono0822c192008-08-21 20:59:58 +00002906 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 +00002907do
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909set dummy $ac_prog; ac_word=$2
Benny Prijono0822c192008-08-21 20:59:58 +00002910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002912if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914else
2915 if test -n "$ac_ct_CXX"; then
2916 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2917else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0822c192008-08-21 20:59:58 +00002924 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 +00002925 ac_cv_prog_ac_ct_CXX="$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002930done
Benny Prijono0822c192008-08-21 20:59:58 +00002931IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002932
2933fi
2934fi
2935ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2936if test -n "$ac_ct_CXX"; then
Benny Prijono0822c192008-08-21 20:59:58 +00002937 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2938echo "${ECHO_T}$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002939else
Benny Prijono0822c192008-08-21 20:59:58 +00002940 { echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002942fi
2943
Benny Prijono0822c192008-08-21 20:59:58 +00002944
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002945 test -n "$ac_ct_CXX" && break
2946done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002947
Benny Prijono0822c192008-08-21 20:59:58 +00002948 if test "x$ac_ct_CXX" = x; then
2949 CXX="g++"
2950 else
2951 case $cross_compiling:$ac_tool_warned in
2952yes:)
2953{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2954whose name does not start with the host triplet. If you think this
2955configuration is useful to you, please write to autoconf@gnu.org." >&5
2956echo "$as_me: 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." >&2;}
2959ac_tool_warned=yes ;;
2960esac
2961 CXX=$ac_ct_CXX
2962 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002963fi
2964
Benny Prijono0822c192008-08-21 20:59:58 +00002965 fi
2966fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002967# Provide some information about the compiler.
Benny Prijono0822c192008-08-21 20:59:58 +00002968echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002969ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0822c192008-08-21 20:59:58 +00002970{ (ac_try="$ac_compiler --version >&5"
2971case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002977 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002979 (exit $ac_status); }
Benny Prijono0822c192008-08-21 20:59:58 +00002980{ (ac_try="$ac_compiler -v >&5"
2981case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compiler -v >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002987 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002989 (exit $ac_status); }
Benny Prijono0822c192008-08-21 20:59:58 +00002990{ (ac_try="$ac_compiler -V >&5"
2991case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994esac
2995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_compiler -V >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002997 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002999 (exit $ac_status); }
3000
Benny Prijono0822c192008-08-21 20:59:58 +00003001{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3002echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003003if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003012
3013int
3014main ()
3015{
3016#ifndef __GNUC__
3017 choke me
3018#endif
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00003025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003032 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003037 (exit $ac_status); } && {
3038 test -z "$ac_cxx_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003041 ac_compiler_gnu=yes
3042else
3043 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003044sed 's/^/| /' conftest.$ac_ext >&5
3045
Benny Prijono0822c192008-08-21 20:59:58 +00003046 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003047fi
Benny Prijono0822c192008-08-21 20:59:58 +00003048
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003050ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3051
3052fi
Benny Prijono0822c192008-08-21 20:59:58 +00003053{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3054echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003055GXX=`test $ac_compiler_gnu = yes && echo yes`
3056ac_test_CXXFLAGS=${CXXFLAGS+set}
3057ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono0822c192008-08-21 20:59:58 +00003058{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3059echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003060if test "${ac_cv_prog_cxx_g+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
Benny Prijono0822c192008-08-21 20:59:58 +00003063 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3064 ac_cxx_werror_flag=yes
3065 ac_cv_prog_cxx_g=no
3066 CXXFLAGS="-g"
3067 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00003083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003090 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003095 (exit $ac_status); } && {
3096 test -z "$ac_cxx_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003099 ac_cv_prog_cxx_g=yes
3100else
3101 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003102sed 's/^/| /' conftest.$ac_ext >&5
3103
Benny Prijono0822c192008-08-21 20:59:58 +00003104 CXXFLAGS=""
3105 cat >conftest.$ac_ext <<_ACEOF
3106/* confdefs.h. */
3107_ACEOF
3108cat confdefs.h >>conftest.$ac_ext
3109cat >>conftest.$ac_ext <<_ACEOF
3110/* end confdefs.h. */
3111
3112int
3113main ()
3114{
3115
3116 ;
3117 return 0;
3118}
3119_ACEOF
3120rm -f conftest.$ac_objext
3121if { (ac_try="$ac_compile"
3122case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
3126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_cxx_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.$ac_objext; then
3137 :
3138else
3139 echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3143 CXXFLAGS="-g"
3144 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150
3151int
3152main ()
3153{
3154
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (ac_try="$ac_compile"
3161case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_cxx_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3176 ac_cv_prog_cxx_g=yes
3177else
3178 echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003182fi
Benny Prijono0822c192008-08-21 20:59:58 +00003183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003185fi
Benny Prijono0822c192008-08-21 20:59:58 +00003186
3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188fi
3189
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3192fi
3193{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3194echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003195if test "$ac_test_CXXFLAGS" = set; then
3196 CXXFLAGS=$ac_save_CXXFLAGS
3197elif test $ac_cv_prog_cxx_g = yes; then
3198 if test "$GXX" = yes; then
3199 CXXFLAGS="-g -O2"
3200 else
3201 CXXFLAGS="-g"
3202 fi
3203else
3204 if test "$GXX" = yes; then
3205 CXXFLAGS="-O2"
3206 else
3207 CXXFLAGS=
3208 fi
3209fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003216ac_ext=c
3217ac_cpp='$CPP $CPPFLAGS'
3218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003222
3223
Benny Prijono0822c192008-08-21 20:59:58 +00003224
Benny Prijono53847a32007-09-24 16:10:13 +00003225case $target in
3226 *mingw* | *cygw* | *win32* | *w32* )
3227 ac_pjdir=`pwd -W`
3228 ;;
3229 *)
3230 ac_pjdir=`pwd`
3231 ;;
3232esac
Benny Prijono12483112007-03-12 10:44:38 +00003233
3234
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003235
Benny Prijono0822c192008-08-21 20:59:58 +00003236{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3237echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003238if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241 ac_check_lib_save_LIBS=$LIBS
3242LIBS="-lpthread $LIBS"
3243cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003249
Benny Prijono0822c192008-08-21 20:59:58 +00003250/* Override any GCC internal prototype to avoid an error.
3251 Use char because int might match the return type of a GCC
3252 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003253#ifdef __cplusplus
3254extern "C"
3255#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003256char pthread_create ();
3257int
3258main ()
3259{
Benny Prijono0822c192008-08-21 20:59:58 +00003260return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003266if { (ac_try="$ac_link"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003273 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest$ac_exeext &&
3282 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003283 ac_cv_lib_pthread_pthread_create=yes
3284else
3285 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003286sed 's/^/| /' conftest.$ac_ext >&5
3287
Benny Prijono0822c192008-08-21 20:59:58 +00003288 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003289fi
Benny Prijono0822c192008-08-21 20:59:58 +00003290
3291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003292 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003293LIBS=$ac_check_lib_save_LIBS
3294fi
Benny Prijono0822c192008-08-21 20:59:58 +00003295{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3296echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003297if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003298 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003299#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003300_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003301
3302 LIBS="-lpthread $LIBS"
3303
3304fi
3305
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003306
Benny Prijono0822c192008-08-21 20:59:58 +00003307{ echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
3308echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003309if test "${ac_cv_lib_wsock32_puts+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312 ac_check_lib_save_LIBS=$LIBS
3313LIBS="-lwsock32 $LIBS"
3314cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003315/* confdefs.h. */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003320
Benny Prijono0822c192008-08-21 20:59:58 +00003321/* Override any GCC internal prototype to avoid an error.
3322 Use char because int might match the return type of a GCC
3323 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003324#ifdef __cplusplus
3325extern "C"
3326#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003327char puts ();
3328int
3329main ()
3330{
Benny Prijono0822c192008-08-21 20:59:58 +00003331return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003332 ;
3333 return 0;
3334}
3335_ACEOF
3336rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003337if { (ac_try="$ac_link"
3338case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341esac
3342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003344 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003349 (exit $ac_status); } && {
3350 test -z "$ac_c_werror_flag" ||
3351 test ! -s conftest.err
3352 } && test -s conftest$ac_exeext &&
3353 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003354 ac_cv_lib_wsock32_puts=yes
3355else
3356 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003357sed 's/^/| /' conftest.$ac_ext >&5
3358
Benny Prijono0822c192008-08-21 20:59:58 +00003359 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003360fi
Benny Prijono0822c192008-08-21 20:59:58 +00003361
3362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003363 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003364LIBS=$ac_check_lib_save_LIBS
3365fi
Benny Prijono0822c192008-08-21 20:59:58 +00003366{ echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
3367echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003368if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003369 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003370#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003371_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003372
3373 LIBS="-lwsock32 $LIBS"
3374
3375fi
3376
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003377
Benny Prijono0822c192008-08-21 20:59:58 +00003378{ echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
3379echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003380if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383 ac_check_lib_save_LIBS=$LIBS
3384LIBS="-lws2_32 $LIBS"
3385cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
3390/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003391
Benny Prijono0822c192008-08-21 20:59:58 +00003392/* Override any GCC internal prototype to avoid an error.
3393 Use char because int might match the return type of a GCC
3394 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003395#ifdef __cplusplus
3396extern "C"
3397#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003398char puts ();
3399int
3400main ()
3401{
Benny Prijono0822c192008-08-21 20:59:58 +00003402return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003403 ;
3404 return 0;
3405}
3406_ACEOF
3407rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003408if { (ac_try="$ac_link"
3409case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412esac
3413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003415 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003420 (exit $ac_status); } && {
3421 test -z "$ac_c_werror_flag" ||
3422 test ! -s conftest.err
3423 } && test -s conftest$ac_exeext &&
3424 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003425 ac_cv_lib_ws2_32_puts=yes
3426else
3427 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003428sed 's/^/| /' conftest.$ac_ext >&5
3429
Benny Prijono0822c192008-08-21 20:59:58 +00003430 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003431fi
Benny Prijono0822c192008-08-21 20:59:58 +00003432
3433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003434 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003435LIBS=$ac_check_lib_save_LIBS
3436fi
Benny Prijono0822c192008-08-21 20:59:58 +00003437{ echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
3438echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003439if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003440 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003441#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003442_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003443
3444 LIBS="-lws2_32 $LIBS"
3445
3446fi
3447
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003448
Benny Prijono0822c192008-08-21 20:59:58 +00003449{ echo "$as_me:$LINENO: checking for puts in -lole32" >&5
3450echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003451if test "${ac_cv_lib_ole32_puts+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454 ac_check_lib_save_LIBS=$LIBS
3455LIBS="-lole32 $LIBS"
3456cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003457/* confdefs.h. */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003462
Benny Prijono0822c192008-08-21 20:59:58 +00003463/* Override any GCC internal prototype to avoid an error.
3464 Use char because int might match the return type of a GCC
3465 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003466#ifdef __cplusplus
3467extern "C"
3468#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003469char puts ();
3470int
3471main ()
3472{
Benny Prijono0822c192008-08-21 20:59:58 +00003473return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003474 ;
3475 return 0;
3476}
3477_ACEOF
3478rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003479if { (ac_try="$ac_link"
3480case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483esac
3484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003486 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest$ac_exeext &&
3495 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003496 ac_cv_lib_ole32_puts=yes
3497else
3498 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003499sed 's/^/| /' conftest.$ac_ext >&5
3500
Benny Prijono0822c192008-08-21 20:59:58 +00003501 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003502fi
Benny Prijono0822c192008-08-21 20:59:58 +00003503
3504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003505 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003506LIBS=$ac_check_lib_save_LIBS
3507fi
Benny Prijono0822c192008-08-21 20:59:58 +00003508{ echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3509echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003510if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003511 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003512#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003513_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003514
3515 LIBS="-lole32 $LIBS"
3516
3517fi
3518
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003519
Benny Prijono0822c192008-08-21 20:59:58 +00003520{ echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3521echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003522if test "${ac_cv_lib_winmm_puts+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525 ac_check_lib_save_LIBS=$LIBS
3526LIBS="-lwinmm $LIBS"
3527cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003528/* confdefs.h. */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003533
Benny Prijono0822c192008-08-21 20:59:58 +00003534/* Override any GCC internal prototype to avoid an error.
3535 Use char because int might match the return type of a GCC
3536 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003537#ifdef __cplusplus
3538extern "C"
3539#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003540char puts ();
3541int
3542main ()
3543{
Benny Prijono0822c192008-08-21 20:59:58 +00003544return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003550if { (ac_try="$ac_link"
3551case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554esac
3555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003557 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest$ac_exeext &&
3566 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003567 ac_cv_lib_winmm_puts=yes
3568else
3569 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003570sed 's/^/| /' conftest.$ac_ext >&5
3571
Benny Prijono0822c192008-08-21 20:59:58 +00003572 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003573fi
Benny Prijono0822c192008-08-21 20:59:58 +00003574
3575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003576 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003577LIBS=$ac_check_lib_save_LIBS
3578fi
Benny Prijono0822c192008-08-21 20:59:58 +00003579{ echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3580echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003581if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003582 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003583#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003584_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003585
3586 LIBS="-lwinmm $LIBS"
3587
3588fi
3589
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003590
Benny Prijono0822c192008-08-21 20:59:58 +00003591{ echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3592echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003593if test "${ac_cv_lib_socket_puts+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595else
3596 ac_check_lib_save_LIBS=$LIBS
3597LIBS="-lsocket $LIBS"
3598cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003599/* confdefs.h. */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003604
Benny Prijono0822c192008-08-21 20:59:58 +00003605/* Override any GCC internal prototype to avoid an error.
3606 Use char because int might match the return type of a GCC
3607 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003608#ifdef __cplusplus
3609extern "C"
3610#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003611char puts ();
3612int
3613main ()
3614{
Benny Prijono0822c192008-08-21 20:59:58 +00003615return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003616 ;
3617 return 0;
3618}
3619_ACEOF
3620rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003621if { (ac_try="$ac_link"
3622case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625esac
3626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003628 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003633 (exit $ac_status); } && {
3634 test -z "$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 } && test -s conftest$ac_exeext &&
3637 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003638 ac_cv_lib_socket_puts=yes
3639else
3640 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003641sed 's/^/| /' conftest.$ac_ext >&5
3642
Benny Prijono0822c192008-08-21 20:59:58 +00003643 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003644fi
Benny Prijono0822c192008-08-21 20:59:58 +00003645
3646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003647 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003648LIBS=$ac_check_lib_save_LIBS
3649fi
Benny Prijono0822c192008-08-21 20:59:58 +00003650{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3651echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003652if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003653 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003654#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003655_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003656
3657 LIBS="-lsocket $LIBS"
3658
3659fi
3660
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003661
Benny Prijono0822c192008-08-21 20:59:58 +00003662{ echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3663echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003664if test "${ac_cv_lib_rt_puts+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667 ac_check_lib_save_LIBS=$LIBS
3668LIBS="-lrt $LIBS"
3669cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003675
Benny Prijono0822c192008-08-21 20:59:58 +00003676/* Override any GCC internal prototype to avoid an error.
3677 Use char because int might match the return type of a GCC
3678 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003679#ifdef __cplusplus
3680extern "C"
3681#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003682char puts ();
3683int
3684main ()
3685{
Benny Prijono0822c192008-08-21 20:59:58 +00003686return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003687 ;
3688 return 0;
3689}
3690_ACEOF
3691rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003692if { (ac_try="$ac_link"
3693case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696esac
3697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003699 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003704 (exit $ac_status); } && {
3705 test -z "$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 } && test -s conftest$ac_exeext &&
3708 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003709 ac_cv_lib_rt_puts=yes
3710else
3711 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003712sed 's/^/| /' conftest.$ac_ext >&5
3713
Benny Prijono0822c192008-08-21 20:59:58 +00003714 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003715fi
Benny Prijono0822c192008-08-21 20:59:58 +00003716
3717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003718 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003719LIBS=$ac_check_lib_save_LIBS
3720fi
Benny Prijono0822c192008-08-21 20:59:58 +00003721{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3722echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003723if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003724 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003725#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003726_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003727
3728 LIBS="-lrt $LIBS"
3729
3730fi
3731
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003732
Benny Prijono0822c192008-08-21 20:59:58 +00003733{ echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3734echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003735if test "${ac_cv_lib_nsl_puts+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
3738 ac_check_lib_save_LIBS=$LIBS
3739LIBS="-lnsl $LIBS"
3740cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003746
Benny Prijono0822c192008-08-21 20:59:58 +00003747/* Override any GCC internal prototype to avoid an error.
3748 Use char because int might match the return type of a GCC
3749 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003750#ifdef __cplusplus
3751extern "C"
3752#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003753char puts ();
3754int
3755main ()
3756{
Benny Prijono0822c192008-08-21 20:59:58 +00003757return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003758 ;
3759 return 0;
3760}
3761_ACEOF
3762rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003763if { (ac_try="$ac_link"
3764case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767esac
3768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003770 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003775 (exit $ac_status); } && {
3776 test -z "$ac_c_werror_flag" ||
3777 test ! -s conftest.err
3778 } && test -s conftest$ac_exeext &&
3779 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003780 ac_cv_lib_nsl_puts=yes
3781else
3782 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003783sed 's/^/| /' conftest.$ac_ext >&5
3784
Benny Prijono0822c192008-08-21 20:59:58 +00003785 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003786fi
Benny Prijono0822c192008-08-21 20:59:58 +00003787
3788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003789 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003790LIBS=$ac_check_lib_save_LIBS
3791fi
Benny Prijono0822c192008-08-21 20:59:58 +00003792{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3793echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003794if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003795 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003796#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003797_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003798
3799 LIBS="-lnsl $LIBS"
3800
3801fi
3802
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003803
Benny Prijono0822c192008-08-21 20:59:58 +00003804{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3805echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003806if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808else
3809 ac_check_lib_save_LIBS=$LIBS
3810LIBS="-luuid $LIBS"
3811cat >conftest.$ac_ext <<_ACEOF
3812/* confdefs.h. */
3813_ACEOF
3814cat confdefs.h >>conftest.$ac_ext
3815cat >>conftest.$ac_ext <<_ACEOF
3816/* end confdefs.h. */
3817
Benny Prijono0822c192008-08-21 20:59:58 +00003818/* Override any GCC internal prototype to avoid an error.
3819 Use char because int might match the return type of a GCC
3820 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003821#ifdef __cplusplus
3822extern "C"
3823#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003824char uuid_generate ();
3825int
3826main ()
3827{
Benny Prijono0822c192008-08-21 20:59:58 +00003828return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003829 ;
3830 return 0;
3831}
3832_ACEOF
3833rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003834if { (ac_try="$ac_link"
3835case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_link") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003846 (exit $ac_status); } && {
3847 test -z "$ac_c_werror_flag" ||
3848 test ! -s conftest.err
3849 } && test -s conftest$ac_exeext &&
3850 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003851 ac_cv_lib_uuid_uuid_generate=yes
3852else
3853 echo "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
Benny Prijono0822c192008-08-21 20:59:58 +00003856 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003857fi
Benny Prijono0822c192008-08-21 20:59:58 +00003858
3859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono4e48b512007-05-16 13:41:00 +00003860 conftest$ac_exeext conftest.$ac_ext
3861LIBS=$ac_check_lib_save_LIBS
3862fi
Benny Prijono0822c192008-08-21 20:59:58 +00003863{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3864echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003865if test $ac_cv_lib_uuid_uuid_generate = yes; then
3866 cat >>confdefs.h <<_ACEOF
3867#define HAVE_LIBUUID 1
3868_ACEOF
3869
3870 LIBS="-luuid $LIBS"
3871
3872fi
3873
Benny Prijono0822c192008-08-21 20:59:58 +00003874{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3875echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003876if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 ac_check_lib_save_LIBS=$LIBS
3880LIBS="-luuid $LIBS"
3881cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h. */
3887
Benny Prijono0822c192008-08-21 20:59:58 +00003888/* Override any GCC internal prototype to avoid an error.
3889 Use char because int might match the return type of a GCC
3890 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003891#ifdef __cplusplus
3892extern "C"
3893#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003894char uuid_generate ();
3895int
3896main ()
3897{
Benny Prijono0822c192008-08-21 20:59:58 +00003898return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003899 ;
3900 return 0;
3901}
3902_ACEOF
3903rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00003904if { (ac_try="$ac_link"
3905case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908esac
3909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_link") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00003916 (exit $ac_status); } && {
3917 test -z "$ac_c_werror_flag" ||
3918 test ! -s conftest.err
3919 } && test -s conftest$ac_exeext &&
3920 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003921 ac_cv_lib_uuid_uuid_generate=yes
3922else
3923 echo "$as_me: failed program was:" >&5
3924sed 's/^/| /' conftest.$ac_ext >&5
3925
Benny Prijono0822c192008-08-21 20:59:58 +00003926 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003927fi
Benny Prijono0822c192008-08-21 20:59:58 +00003928
3929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono4e48b512007-05-16 13:41:00 +00003930 conftest$ac_exeext conftest.$ac_ext
3931LIBS=$ac_check_lib_save_LIBS
3932fi
Benny Prijono0822c192008-08-21 20:59:58 +00003933{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3934echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003935if test $ac_cv_lib_uuid_uuid_generate = yes; then
3936 ac_has_uuid_lib=1
3937fi
3938
3939
Benny Prijono0822c192008-08-21 20:59:58 +00003940{ echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3941echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003942cat >>confdefs.h <<_ACEOF
3943#define PJ_M_NAME "$target_cpu"
3944_ACEOF
3945
3946
Benny Prijono0822c192008-08-21 20:59:58 +00003947{ echo "$as_me:$LINENO: checking memory alignment" >&5
3948echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003949case $target in
3950 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003951 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003952#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003953_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003954
Benny Prijono0822c192008-08-21 20:59:58 +00003955 { echo "$as_me:$LINENO: result: 8 bytes" >&5
3956echo "${ECHO_T}8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003957 ;;
3958 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003959 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003960#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003961_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003962
Benny Prijono0822c192008-08-21 20:59:58 +00003963 { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
3964echo "${ECHO_T}4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003965 ;;
3966esac
3967
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003968
Benny Prijono0822c192008-08-21 20:59:58 +00003969ac_ext=c
3970ac_cpp='$CPP $CPPFLAGS'
3971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3975echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3976# On Suns, sometimes $CPP names a directory.
3977if test -n "$CPP" && test -d "$CPP"; then
3978 CPP=
3979fi
3980if test -z "$CPP"; then
3981 if test "${ac_cv_prog_CPP+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984 # Double quotes because CPP needs to be expanded
3985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3986 do
3987 ac_preproc_ok=false
3988for ac_c_preproc_warn_flag in '' yes
3989do
3990 # Use a header file that comes with gcc, so configuring glibc
3991 # with a fresh cross-compiler works.
3992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 # <limits.h> exists even on freestanding compilers.
3994 # On the NeXT, cc -E runs the code through the compiler's parser,
3995 # not just through cpp. "Syntax error" is here to catch this case.
3996 cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
4002#ifdef __STDC__
4003# include <limits.h>
4004#else
4005# include <assert.h>
4006#endif
4007 Syntax error
4008_ACEOF
4009if { (ac_try="$ac_cpp conftest.$ac_ext"
4010case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013esac
4014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null && {
4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 }; then
4025 :
4026else
4027 echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 # Broken: fails on valid input.
4031continue
4032fi
4033
4034rm -f conftest.err conftest.$ac_ext
4035
4036 # OK, works on sane cases. Now check whether nonexistent headers
4037 # can be detected and how.
4038 cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h. */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h. */
4044#include <ac_nonexistent.h>
4045_ACEOF
4046if { (ac_try="$ac_cpp conftest.$ac_ext"
4047case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } >/dev/null && {
4059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4060 test ! -s conftest.err
4061 }; then
4062 # Broken: success on invalid input.
4063continue
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 # Passes both tests.
4069ac_preproc_ok=:
4070break
4071fi
4072
4073rm -f conftest.err conftest.$ac_ext
4074
4075done
4076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4077rm -f conftest.err conftest.$ac_ext
4078if $ac_preproc_ok; then
4079 break
4080fi
4081
4082 done
4083 ac_cv_prog_CPP=$CPP
4084
4085fi
4086 CPP=$ac_cv_prog_CPP
4087else
4088 ac_cv_prog_CPP=$CPP
4089fi
4090{ echo "$as_me:$LINENO: result: $CPP" >&5
4091echo "${ECHO_T}$CPP" >&6; }
4092ac_preproc_ok=false
4093for ac_c_preproc_warn_flag in '' yes
4094do
4095 # Use a header file that comes with gcc, so configuring glibc
4096 # with a fresh cross-compiler works.
4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098 # <limits.h> exists even on freestanding compilers.
4099 # On the NeXT, cc -E runs the code through the compiler's parser,
4100 # not just through cpp. "Syntax error" is here to catch this case.
4101 cat >conftest.$ac_ext <<_ACEOF
4102/* confdefs.h. */
4103_ACEOF
4104cat confdefs.h >>conftest.$ac_ext
4105cat >>conftest.$ac_ext <<_ACEOF
4106/* end confdefs.h. */
4107#ifdef __STDC__
4108# include <limits.h>
4109#else
4110# include <assert.h>
4111#endif
4112 Syntax error
4113_ACEOF
4114if { (ac_try="$ac_cpp conftest.$ac_ext"
4115case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118esac
4119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } >/dev/null && {
4127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 }; then
4130 :
4131else
4132 echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 # Broken: fails on valid input.
4136continue
4137fi
4138
4139rm -f conftest.err conftest.$ac_ext
4140
4141 # OK, works on sane cases. Now check whether nonexistent headers
4142 # can be detected and how.
4143 cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
4145_ACEOF
4146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
4148/* end confdefs.h. */
4149#include <ac_nonexistent.h>
4150_ACEOF
4151if { (ac_try="$ac_cpp conftest.$ac_ext"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } >/dev/null && {
4164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4166 }; then
4167 # Broken: success on invalid input.
4168continue
4169else
4170 echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 # Passes both tests.
4174ac_preproc_ok=:
4175break
4176fi
4177
4178rm -f conftest.err conftest.$ac_ext
4179
4180done
4181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182rm -f conftest.err conftest.$ac_ext
4183if $ac_preproc_ok; then
4184 :
4185else
4186 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4187See \`config.log' for more details." >&5
4188echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4189See \`config.log' for more details." >&2;}
4190 { (exit 1); exit 1; }; }
4191fi
4192
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199
4200{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4201echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4202if test "${ac_cv_path_GREP+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205 # Extract the first word of "grep ggrep" to use in msg output
4206if test -z "$GREP"; then
4207set dummy grep ggrep; ac_prog_name=$2
4208if test "${ac_cv_path_GREP+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211 ac_path_GREP_found=false
4212# Loop through the user's path and test for each of PROGNAME-LIST
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in grep ggrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4222 # Check for GNU ac_path_GREP and select it if it is found.
4223 # Check for GNU $ac_path_GREP
4224case `"$ac_path_GREP" --version 2>&1` in
4225*GNU*)
4226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4227*)
4228 ac_count=0
4229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4230 while :
4231 do
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 echo 'GREP' >> "conftest.nl"
4236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 ac_count=`expr $ac_count + 1`
4239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_GREP="$ac_path_GREP"
4242 ac_path_GREP_max=$ac_count
4243 fi
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4246 done
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248esac
4249
4250
4251 $ac_path_GREP_found && break 3
4252 done
4253done
4254
4255done
4256IFS=$as_save_IFS
4257
4258
4259fi
4260
4261GREP="$ac_cv_path_GREP"
4262if test -z "$GREP"; then
4263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265 { (exit 1); exit 1; }; }
4266fi
4267
4268else
4269 ac_cv_path_GREP=$GREP
4270fi
4271
4272
4273fi
4274{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4275echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4276 GREP="$ac_cv_path_GREP"
4277
4278
4279{ echo "$as_me:$LINENO: checking for egrep" >&5
4280echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4281if test "${ac_cv_path_EGREP+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285 then ac_cv_path_EGREP="$GREP -E"
4286 else
4287 # Extract the first word of "egrep" to use in msg output
4288if test -z "$EGREP"; then
4289set dummy egrep; ac_prog_name=$2
4290if test "${ac_cv_path_EGREP+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293 ac_path_EGREP_found=false
4294# Loop through the user's path and test for each of PROGNAME-LIST
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_prog in egrep; do
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4304 # Check for GNU ac_path_EGREP and select it if it is found.
4305 # Check for GNU $ac_path_EGREP
4306case `"$ac_path_EGREP" --version 2>&1` in
4307*GNU*)
4308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4309*)
4310 ac_count=0
4311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4312 while :
4313 do
4314 cat "conftest.in" "conftest.in" >"conftest.tmp"
4315 mv "conftest.tmp" "conftest.in"
4316 cp "conftest.in" "conftest.nl"
4317 echo 'EGREP' >> "conftest.nl"
4318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4320 ac_count=`expr $ac_count + 1`
4321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4322 # Best one so far, save it but keep looking for a better one
4323 ac_cv_path_EGREP="$ac_path_EGREP"
4324 ac_path_EGREP_max=$ac_count
4325 fi
4326 # 10*(2^10) chars as input seems more than enough
4327 test $ac_count -gt 10 && break
4328 done
4329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4330esac
4331
4332
4333 $ac_path_EGREP_found && break 3
4334 done
4335done
4336
4337done
4338IFS=$as_save_IFS
4339
4340
4341fi
4342
4343EGREP="$ac_cv_path_EGREP"
4344if test -z "$EGREP"; then
4345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4346echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4347 { (exit 1); exit 1; }; }
4348fi
4349
4350else
4351 ac_cv_path_EGREP=$EGREP
4352fi
4353
4354
4355 fi
4356fi
4357{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4358echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4359 EGREP="$ac_cv_path_EGREP"
4360
4361
4362{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4363echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4364if test "${ac_cv_header_stdc+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367 cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373#include <stdlib.h>
4374#include <stdarg.h>
4375#include <string.h>
4376#include <float.h>
4377
4378int
4379main ()
4380{
4381
4382 ;
4383 return 0;
4384}
4385_ACEOF
4386rm -f conftest.$ac_objext
4387if { (ac_try="$ac_compile"
4388case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_compile") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && {
4400 test -z "$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 } && test -s conftest.$ac_objext; then
4403 ac_cv_header_stdc=yes
4404else
4405 echo "$as_me: failed program was:" >&5
4406sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 ac_cv_header_stdc=no
4409fi
4410
4411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412
4413if test $ac_cv_header_stdc = yes; then
4414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4415 cat >conftest.$ac_ext <<_ACEOF
4416/* confdefs.h. */
4417_ACEOF
4418cat confdefs.h >>conftest.$ac_ext
4419cat >>conftest.$ac_ext <<_ACEOF
4420/* end confdefs.h. */
4421#include <string.h>
4422
4423_ACEOF
4424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4425 $EGREP "memchr" >/dev/null 2>&1; then
4426 :
4427else
4428 ac_cv_header_stdc=no
4429fi
4430rm -f conftest*
4431
4432fi
4433
4434if test $ac_cv_header_stdc = yes; then
4435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4436 cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442#include <stdlib.h>
4443
4444_ACEOF
4445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4446 $EGREP "free" >/dev/null 2>&1; then
4447 :
4448else
4449 ac_cv_header_stdc=no
4450fi
4451rm -f conftest*
4452
4453fi
4454
4455if test $ac_cv_header_stdc = yes; then
4456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4457 if test "$cross_compiling" = yes; then
4458 :
4459else
4460 cat >conftest.$ac_ext <<_ACEOF
4461/* confdefs.h. */
4462_ACEOF
4463cat confdefs.h >>conftest.$ac_ext
4464cat >>conftest.$ac_ext <<_ACEOF
4465/* end confdefs.h. */
4466#include <ctype.h>
4467#include <stdlib.h>
4468#if ((' ' & 0x0FF) == 0x020)
4469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4471#else
4472# define ISLOWER(c) \
4473 (('a' <= (c) && (c) <= 'i') \
4474 || ('j' <= (c) && (c) <= 'r') \
4475 || ('s' <= (c) && (c) <= 'z'))
4476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4477#endif
4478
4479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4480int
4481main ()
4482{
4483 int i;
4484 for (i = 0; i < 256; i++)
4485 if (XOR (islower (i), ISLOWER (i))
4486 || toupper (i) != TOUPPER (i))
4487 return 2;
4488 return 0;
4489}
4490_ACEOF
4491rm -f conftest$ac_exeext
4492if { (ac_try="$ac_link"
4493case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_link") 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505esac
4506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 :
4512else
4513 echo "$as_me: program exited with status $ac_status" >&5
4514echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517( exit $ac_status )
4518ac_cv_header_stdc=no
4519fi
4520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4521fi
4522
4523
4524fi
4525fi
4526{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4527echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4528if test $ac_cv_header_stdc = yes; then
4529
4530cat >>confdefs.h <<\_ACEOF
4531#define STDC_HEADERS 1
4532_ACEOF
4533
4534fi
4535
4536# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4547 inttypes.h stdint.h unistd.h
4548do
4549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555 cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h. */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h. */
4561$ac_includes_default
4562
4563#include <$ac_header>
4564_ACEOF
4565rm -f conftest.$ac_objext
4566if { (ac_try="$ac_compile"
4567case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570esac
4571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_compile") 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && {
4579 test -z "$ac_c_werror_flag" ||
4580 test ! -s conftest.err
4581 } && test -s conftest.$ac_objext; then
4582 eval "$as_ac_Header=yes"
4583else
4584 echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 eval "$as_ac_Header=no"
4588fi
4589
4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591fi
4592ac_res=`eval echo '${'$as_ac_Header'}'`
4593 { echo "$as_me:$LINENO: result: $ac_res" >&5
4594echo "${ECHO_T}$ac_res" >&6; }
4595if test `eval echo '${'$as_ac_Header'}'` = yes; then
4596 cat >>confdefs.h <<_ACEOF
4597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4598_ACEOF
4599
4600fi
4601
4602done
4603
4604
4605{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4606echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004607if test "${ac_cv_c_bigendian+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004610 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004611cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004612/* confdefs.h. */
4613_ACEOF
4614cat confdefs.h >>conftest.$ac_ext
4615cat >>conftest.$ac_ext <<_ACEOF
4616/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004617#include <sys/types.h>
4618#include <sys/param.h>
4619
4620int
4621main ()
4622{
Benny Prijono0822c192008-08-21 20:59:58 +00004623#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4624 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004625 bogus endian macros
4626#endif
4627
4628 ;
4629 return 0;
4630}
4631_ACEOF
4632rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00004633if { (ac_try="$ac_compile"
4634case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637esac
4638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004640 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00004645 (exit $ac_status); } && {
4646 test -z "$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004649 # It does; now see whether it defined to BIG_ENDIAN or not.
4650cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004656#include <sys/types.h>
4657#include <sys/param.h>
4658
4659int
4660main ()
4661{
4662#if BYTE_ORDER != BIG_ENDIAN
4663 not big endian
4664#endif
4665
4666 ;
4667 return 0;
4668}
4669_ACEOF
4670rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00004671if { (ac_try="$ac_compile"
4672case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675esac
4676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004678 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004679 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00004683 (exit $ac_status); } && {
4684 test -z "$ac_c_werror_flag" ||
4685 test ! -s conftest.err
4686 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004687 ac_cv_c_bigendian=yes
4688else
4689 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004690sed 's/^/| /' conftest.$ac_ext >&5
4691
Benny Prijono0822c192008-08-21 20:59:58 +00004692 ac_cv_c_bigendian=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004693fi
Benny Prijono0822c192008-08-21 20:59:58 +00004694
4695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004696else
4697 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004698sed 's/^/| /' conftest.$ac_ext >&5
4699
Benny Prijono0822c192008-08-21 20:59:58 +00004700 # It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004701if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004702 # try to guess the endianness by grepping values into an object file
4703 ac_cv_c_bigendian=unknown
4704 cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
Benny Prijono0822c192008-08-21 20:59:58 +00004710short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4711short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004712void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Benny Prijono0822c192008-08-21 20:59:58 +00004713short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4714short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004715void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4716int
4717main ()
4718{
4719 _ascii (); _ebcdic ();
4720 ;
4721 return 0;
4722}
4723_ACEOF
4724rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00004725if { (ac_try="$ac_compile"
4726case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729esac
4730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00004737 (exit $ac_status); } && {
4738 test -z "$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004741 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4742 ac_cv_c_bigendian=yes
4743fi
4744if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4745 if test "$ac_cv_c_bigendian" = unknown; then
4746 ac_cv_c_bigendian=no
4747 else
4748 # finding both strings is unlikely to happen, but who knows?
4749 ac_cv_c_bigendian=unknown
4750 fi
4751fi
4752else
4753 echo "$as_me: failed program was:" >&5
4754sed 's/^/| /' conftest.$ac_ext >&5
4755
Benny Prijono0822c192008-08-21 20:59:58 +00004756
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004757fi
Benny Prijono0822c192008-08-21 20:59:58 +00004758
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004760else
4761 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004762/* confdefs.h. */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h. */
Benny Prijono0822c192008-08-21 20:59:58 +00004767$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004768int
4769main ()
4770{
Benny Prijono0822c192008-08-21 20:59:58 +00004771
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004772 /* Are we little or big endian? From Harbison&Steele. */
4773 union
4774 {
Benny Prijono0822c192008-08-21 20:59:58 +00004775 long int l;
4776 char c[sizeof (long int)];
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004777 } u;
4778 u.l = 1;
Benny Prijono0822c192008-08-21 20:59:58 +00004779 return u.c[sizeof (long int) - 1] == 1;
4780
4781 ;
4782 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004783}
4784_ACEOF
4785rm -f conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00004786if { (ac_try="$ac_link"
4787case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790esac
4791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_link") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004793 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono0822c192008-08-21 20:59:58 +00004796 { (case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799esac
4800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_try") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004802 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004804 (exit $ac_status); }; }; then
4805 ac_cv_c_bigendian=no
4806else
4807 echo "$as_me: program exited with status $ac_status" >&5
4808echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004809sed 's/^/| /' conftest.$ac_ext >&5
4810
4811( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004812ac_cv_c_bigendian=yes
4813fi
Benny Prijono0822c192008-08-21 20:59:58 +00004814rm -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 +00004815fi
Benny Prijono0822c192008-08-21 20:59:58 +00004816
4817
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004818fi
Benny Prijono0822c192008-08-21 20:59:58 +00004819
4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004821fi
Benny Prijono0822c192008-08-21 20:59:58 +00004822{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4823echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004824case $ac_cv_c_bigendian in
4825 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004826
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004827cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00004828#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004829_ACEOF
4830 ;;
4831 no)
4832 ;;
4833 *)
4834 { { echo "$as_me:$LINENO: error: unknown endianness
4835presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4836echo "$as_me: error: unknown endianness
4837presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4838 { (exit 1); exit 1; }; } ;;
4839esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004840
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004841
4842case $target in
4843 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004844 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004845#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004846_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004847
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004848 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004849#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004850_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004851
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004852 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004853#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004854_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004855
4856 ;;
4857 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004858 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004859#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004860_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004861
4862 ;;
4863 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004864 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004865#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004866_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004867
4868 ;;
4869 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004870 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004871#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004872_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004873
4874 ;;
4875 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004876 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004877#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004878_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004879
4880 ;;
4881 *)
4882 ;;
4883esac
4884
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004885
4886
4887
Benny Prijono0822c192008-08-21 20:59:58 +00004888# Check whether --enable-floating-point was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004889if test "${enable_floating_point+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00004890 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004891 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004892#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004893_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004894
Benny Prijono0822c192008-08-21 20:59:58 +00004895 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
4896echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004897 fi
4898else
4899
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004900 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004901#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004902_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004903
Benny Prijono0822c192008-08-21 20:59:58 +00004904 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
4905echo "${ECHO_T}Checking if floating point is disabled... no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004906
Benny Prijono0822c192008-08-21 20:59:58 +00004907{ echo "$as_me:$LINENO: checking for fmod in -lm" >&5
4908echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004909if test "${ac_cv_lib_m_fmod+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 ac_check_lib_save_LIBS=$LIBS
4913LIBS="-lm $LIBS"
4914cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004915/* confdefs.h. */
4916_ACEOF
4917cat confdefs.h >>conftest.$ac_ext
4918cat >>conftest.$ac_ext <<_ACEOF
4919/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004920
Benny Prijono0822c192008-08-21 20:59:58 +00004921/* Override any GCC internal prototype to avoid an error.
4922 Use char because int might match the return type of a GCC
4923 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004924#ifdef __cplusplus
4925extern "C"
4926#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004927char fmod ();
4928int
4929main ()
4930{
Benny Prijono0822c192008-08-21 20:59:58 +00004931return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004932 ;
4933 return 0;
4934}
4935_ACEOF
4936rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +00004937if { (ac_try="$ac_link"
4938case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941esac
4942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004944 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00004949 (exit $ac_status); } && {
4950 test -z "$ac_c_werror_flag" ||
4951 test ! -s conftest.err
4952 } && test -s conftest$ac_exeext &&
4953 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004954 ac_cv_lib_m_fmod=yes
4955else
4956 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004957sed 's/^/| /' conftest.$ac_ext >&5
4958
Benny Prijono0822c192008-08-21 20:59:58 +00004959 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004960fi
Benny Prijono0822c192008-08-21 20:59:58 +00004961
4962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004963 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004964LIBS=$ac_check_lib_save_LIBS
4965fi
Benny Prijono0822c192008-08-21 20:59:58 +00004966{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
4967echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004968if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004969 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004970#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004971_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004972
4973 LIBS="-lm $LIBS"
4974
4975fi
4976
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004977
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004978fi
4979
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004980
4981
4982if test "${ac_cv_header_arpa_inet_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00004983 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4984echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004985if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987fi
Benny Prijono0822c192008-08-21 20:59:58 +00004988{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4989echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004990else
4991 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00004992{ echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4993echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004994cat >conftest.$ac_ext <<_ACEOF
4995/* confdefs.h. */
4996_ACEOF
4997cat confdefs.h >>conftest.$ac_ext
4998cat >>conftest.$ac_ext <<_ACEOF
4999/* end confdefs.h. */
5000$ac_includes_default
5001#include <arpa/inet.h>
5002_ACEOF
5003rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00005004if { (ac_try="$ac_compile"
5005case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008esac
5009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005016 (exit $ac_status); } && {
5017 test -z "$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5019 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005020 ac_header_compiler=yes
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
Benny Prijono0822c192008-08-21 20:59:58 +00005025 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005026fi
Benny Prijono0822c192008-08-21 20:59:58 +00005027
5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5030echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005031
5032# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00005033{ echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
5034echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005035cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041#include <arpa/inet.h>
5042_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00005043if { (ac_try="$ac_cpp conftest.$ac_ext"
5044case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047esac
5048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005055 (exit $ac_status); } >/dev/null && {
5056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005059 ac_header_preproc=yes
5060else
5061 echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 ac_header_preproc=no
5065fi
Benny Prijono0822c192008-08-21 20:59:58 +00005066
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005067rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005068{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5069echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005070
5071# So? What about this header?
5072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5073 yes:no: )
5074 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
5075echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5076 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
5077echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
5078 ac_header_preproc=yes
5079 ;;
5080 no:yes:* )
5081 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
5082echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
5084echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
5086echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
5087 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
5088echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
5090echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
5092echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00005093
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005094 ;;
5095esac
Benny Prijono0822c192008-08-21 20:59:58 +00005096{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5097echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005098if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005100else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005101 ac_cv_header_arpa_inet_h=$ac_header_preproc
5102fi
Benny Prijono0822c192008-08-21 20:59:58 +00005103{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5104echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005105
5106fi
5107if test $ac_cv_header_arpa_inet_h = yes; then
5108 cat >>confdefs.h <<\_ACEOF
5109#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005110_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005111
5112fi
5113
5114
5115if test "${ac_cv_header_assert_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00005116 { echo "$as_me:$LINENO: checking for assert.h" >&5
5117echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005118if test "${ac_cv_header_assert_h+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120fi
Benny Prijono0822c192008-08-21 20:59:58 +00005121{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5122echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005123else
5124 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00005125{ echo "$as_me:$LINENO: checking assert.h usability" >&5
5126echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005127cat >conftest.$ac_ext <<_ACEOF
5128/* confdefs.h. */
5129_ACEOF
5130cat confdefs.h >>conftest.$ac_ext
5131cat >>conftest.$ac_ext <<_ACEOF
5132/* end confdefs.h. */
5133$ac_includes_default
5134#include <assert.h>
5135_ACEOF
5136rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00005137if { (ac_try="$ac_compile"
5138case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141esac
5142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005144 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005145 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005146 rm -f conftest.er1
5147 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005149 (exit $ac_status); } && {
5150 test -z "$ac_c_werror_flag" ||
5151 test ! -s conftest.err
5152 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005153 ac_header_compiler=yes
5154else
5155 echo "$as_me: failed program was:" >&5
5156sed 's/^/| /' conftest.$ac_ext >&5
5157
Benny Prijono0822c192008-08-21 20:59:58 +00005158 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005159fi
Benny Prijono0822c192008-08-21 20:59:58 +00005160
5161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5163echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005164
5165# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00005166{ echo "$as_me:$LINENO: checking assert.h presence" >&5
5167echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005168cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h. */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h. */
5174#include <assert.h>
5175_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00005176if { (ac_try="$ac_cpp conftest.$ac_ext"
5177case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180esac
5181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005188 (exit $ac_status); } >/dev/null && {
5189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5191 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005192 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005193else
5194 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005195sed 's/^/| /' conftest.$ac_ext >&5
5196
5197 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005198fi
Benny Prijono0822c192008-08-21 20:59:58 +00005199
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005200rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005201{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5202echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005203
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005204# So? What about this header?
5205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5206 yes:no: )
5207 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
5208echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5209 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
5210echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
5211 ac_header_preproc=yes
5212 ;;
5213 no:yes:* )
5214 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
5215echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
5216 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
5217echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
5218 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
5219echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
5220 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
5221echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
5223echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
5225echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00005226
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005227 ;;
5228esac
Benny Prijono0822c192008-08-21 20:59:58 +00005229{ echo "$as_me:$LINENO: checking for assert.h" >&5
5230echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005231if test "${ac_cv_header_assert_h+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005233else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005234 ac_cv_header_assert_h=$ac_header_preproc
5235fi
Benny Prijono0822c192008-08-21 20:59:58 +00005236{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5237echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005238
5239fi
5240if test $ac_cv_header_assert_h = yes; then
5241 cat >>confdefs.h <<\_ACEOF
5242#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005243_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005244
5245fi
5246
5247
5248if test "${ac_cv_header_ctype_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00005249 { echo "$as_me:$LINENO: checking for ctype.h" >&5
5250echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005251if test "${ac_cv_header_ctype_h+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253fi
Benny Prijono0822c192008-08-21 20:59:58 +00005254{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5255echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005256else
5257 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00005258{ echo "$as_me:$LINENO: checking ctype.h usability" >&5
5259echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005260cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h. */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h. */
5266$ac_includes_default
5267#include <ctype.h>
5268_ACEOF
5269rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00005270if { (ac_try="$ac_compile"
5271case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274esac
5275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005277 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005278 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005279 rm -f conftest.er1
5280 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005282 (exit $ac_status); } && {
5283 test -z "$ac_c_werror_flag" ||
5284 test ! -s conftest.err
5285 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005286 ac_header_compiler=yes
5287else
5288 echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
Benny Prijono0822c192008-08-21 20:59:58 +00005291 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005292fi
Benny Prijono0822c192008-08-21 20:59:58 +00005293
5294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5296echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005297
5298# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00005299{ echo "$as_me:$LINENO: checking ctype.h presence" >&5
5300echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005301cat >conftest.$ac_ext <<_ACEOF
5302/* confdefs.h. */
5303_ACEOF
5304cat confdefs.h >>conftest.$ac_ext
5305cat >>conftest.$ac_ext <<_ACEOF
5306/* end confdefs.h. */
5307#include <ctype.h>
5308_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00005309if { (ac_try="$ac_cpp conftest.$ac_ext"
5310case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313esac
5314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005316 ac_status=$?
5317 grep -v '^ *+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005321 (exit $ac_status); } >/dev/null && {
5322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5323 test ! -s conftest.err
5324 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005325 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005326else
5327 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005328sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005331fi
Benny Prijono0822c192008-08-21 20:59:58 +00005332
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005333rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005334{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5335echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005336
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005337# So? What about this header?
5338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5339 yes:no: )
5340 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
5341echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5342 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
5343echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
5344 ac_header_preproc=yes
5345 ;;
5346 no:yes:* )
5347 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
5348echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
5350echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
5352echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
5354echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
5356echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
5357 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
5358echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00005359
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005360 ;;
5361esac
Benny Prijono0822c192008-08-21 20:59:58 +00005362{ echo "$as_me:$LINENO: checking for ctype.h" >&5
5363echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005364if test "${ac_cv_header_ctype_h+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005366else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005367 ac_cv_header_ctype_h=$ac_header_preproc
5368fi
Benny Prijono0822c192008-08-21 20:59:58 +00005369{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5370echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005371
5372fi
5373if test $ac_cv_header_ctype_h = yes; then
5374 cat >>confdefs.h <<\_ACEOF
5375#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005376_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005377
5378fi
5379
5380
5381
5382case $target in
5383 *mingw* | *cygw* | *win32* | *w32* )
5384 cat >>confdefs.h <<\_ACEOF
5385#define PJ_HAS_ERRNO_H 0
5386_ACEOF
5387
5388 ;;
5389 *)
5390 if test "${ac_cv_header_errno_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00005391 { echo "$as_me:$LINENO: checking for errno.h" >&5
5392echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005393if test "${ac_cv_header_errno_h+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395fi
Benny Prijono0822c192008-08-21 20:59:58 +00005396{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5397echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005398else
5399 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00005400{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5401echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005402cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
5408$ac_includes_default
5409#include <errno.h>
5410_ACEOF
5411rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00005412if { (ac_try="$ac_compile"
5413case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005419 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005420 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005421 rm -f conftest.er1
5422 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005424 (exit $ac_status); } && {
5425 test -z "$ac_c_werror_flag" ||
5426 test ! -s conftest.err
5427 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005428 ac_header_compiler=yes
5429else
5430 echo "$as_me: failed program was:" >&5
5431sed 's/^/| /' conftest.$ac_ext >&5
5432
Benny Prijono0822c192008-08-21 20:59:58 +00005433 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005434fi
Benny Prijono0822c192008-08-21 20:59:58 +00005435
5436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5438echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005439
5440# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00005441{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5442echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005443cat >conftest.$ac_ext <<_ACEOF
5444/* confdefs.h. */
5445_ACEOF
5446cat confdefs.h >>conftest.$ac_ext
5447cat >>conftest.$ac_ext <<_ACEOF
5448/* end confdefs.h. */
5449#include <errno.h>
5450_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00005451if { (ac_try="$ac_cpp conftest.$ac_ext"
5452case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455esac
5456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005463 (exit $ac_status); } >/dev/null && {
5464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5465 test ! -s conftest.err
5466 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005467 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005468else
5469 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005470sed 's/^/| /' conftest.$ac_ext >&5
5471
5472 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005473fi
Benny Prijono0822c192008-08-21 20:59:58 +00005474
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005475rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5477echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005478
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005479# So? What about this header?
5480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5481 yes:no: )
5482 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5483echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5485echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5486 ac_header_preproc=yes
5487 ;;
5488 no:yes:* )
5489 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5490echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
5492echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5494echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
5496echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
5497 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5498echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5499 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5500echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00005501
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005502 ;;
5503esac
Benny Prijono0822c192008-08-21 20:59:58 +00005504{ echo "$as_me:$LINENO: checking for errno.h" >&5
5505echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005506if test "${ac_cv_header_errno_h+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005508else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005509 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005510fi
Benny Prijono0822c192008-08-21 20:59:58 +00005511{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5512echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005513
5514fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005515if test $ac_cv_header_errno_h = yes; then
5516 cat >>confdefs.h <<\_ACEOF
5517#define PJ_HAS_ERRNO_H 1
5518_ACEOF
5519
5520fi
5521
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005522
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005523 ;;
5524esac
5525
Benny Prijono1d481ab2008-01-24 15:27:30 +00005526if test "${ac_cv_header_fcntl_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00005527 { echo "$as_me:$LINENO: checking for fcntl.h" >&5
5528echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005529if test "${ac_cv_header_fcntl_h+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531fi
Benny Prijono0822c192008-08-21 20:59:58 +00005532{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5533echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005534else
5535 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00005536{ echo "$as_me:$LINENO: checking fcntl.h usability" >&5
5537echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005538cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h. */
5544$ac_includes_default
5545#include <fcntl.h>
5546_ACEOF
5547rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00005548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005564 ac_header_compiler=yes
5565else
5566 echo "$as_me: failed program was:" >&5
5567sed 's/^/| /' conftest.$ac_ext >&5
5568
Benny Prijono0822c192008-08-21 20:59:58 +00005569 ac_header_compiler=no
Benny Prijono1d481ab2008-01-24 15:27:30 +00005570fi
Benny Prijono0822c192008-08-21 20:59:58 +00005571
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5574echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005575
5576# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00005577{ echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5578echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005579cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h. */
5585#include <fcntl.h>
5586_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00005587if { (ac_try="$ac_cpp conftest.$ac_ext"
5588case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005599 (exit $ac_status); } >/dev/null && {
5600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 }; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005603 ac_header_preproc=yes
5604else
5605 echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 ac_header_preproc=no
5609fi
Benny Prijono0822c192008-08-21 20:59:58 +00005610
Benny Prijono1d481ab2008-01-24 15:27:30 +00005611rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005612{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5613echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005614
5615# So? What about this header?
5616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5617 yes:no: )
5618 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5619echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5620 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5621echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5622 ac_header_preproc=yes
5623 ;;
5624 no:yes:* )
5625 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5626echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5627 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5628echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5630echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5632echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5634echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5636echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00005637
Benny Prijono1d481ab2008-01-24 15:27:30 +00005638 ;;
5639esac
Benny Prijono0822c192008-08-21 20:59:58 +00005640{ echo "$as_me:$LINENO: checking for fcntl.h" >&5
5641echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005642if test "${ac_cv_header_fcntl_h+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645 ac_cv_header_fcntl_h=$ac_header_preproc
5646fi
Benny Prijono0822c192008-08-21 20:59:58 +00005647{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5648echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
Benny Prijono1d481ab2008-01-24 15:27:30 +00005649
5650fi
5651if test $ac_cv_header_fcntl_h = yes; then
5652 cat >>confdefs.h <<\_ACEOF
5653#define PJ_HAS_FCNTL_H 1
5654_ACEOF
5655
5656fi
5657
5658
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005659if test "${ac_cv_header_linux_socket_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00005660 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5661echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005662if test "${ac_cv_header_linux_socket_h+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664fi
Benny Prijono0822c192008-08-21 20:59:58 +00005665{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5666echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005667else
5668 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00005669{ echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5670echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005671cat >conftest.$ac_ext <<_ACEOF
5672/* confdefs.h. */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h. */
5677$ac_includes_default
5678#include <linux/socket.h>
5679_ACEOF
5680rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00005681if { (ac_try="$ac_compile"
5682case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685esac
5686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005697 ac_header_compiler=yes
5698else
5699 echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
Benny Prijono0822c192008-08-21 20:59:58 +00005702 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005703fi
Benny Prijono0822c192008-08-21 20:59:58 +00005704
5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5707echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005708
5709# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00005710{ echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5711echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005712cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718#include <linux/socket.h>
5719_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00005720if { (ac_try="$ac_cpp conftest.$ac_ext"
5721case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724esac
5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005732 (exit $ac_status); } >/dev/null && {
5733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005736 ac_header_preproc=yes
5737else
5738 echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_header_preproc=no
5742fi
Benny Prijono0822c192008-08-21 20:59:58 +00005743
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005744rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005745{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5746echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005747
5748# So? What about this header?
5749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5750 yes:no: )
5751 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5752echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5754echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5755 ac_header_preproc=yes
5756 ;;
5757 no:yes:* )
5758 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5759echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5761echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5763echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5765echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5767echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5769echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00005770
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005771 ;;
5772esac
Benny Prijono0822c192008-08-21 20:59:58 +00005773{ echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5774echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005775if test "${ac_cv_header_linux_socket_h+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005777else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005778 ac_cv_header_linux_socket_h=$ac_header_preproc
5779fi
Benny Prijono0822c192008-08-21 20:59:58 +00005780{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5781echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005782
5783fi
5784if test $ac_cv_header_linux_socket_h = yes; then
5785 cat >>confdefs.h <<\_ACEOF
5786#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005787_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005788
5789fi
5790
5791
5792if test "${ac_cv_header_malloc_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00005793 { echo "$as_me:$LINENO: checking for malloc.h" >&5
5794echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005795if test "${ac_cv_header_malloc_h+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797fi
Benny Prijono0822c192008-08-21 20:59:58 +00005798{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5799echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005800else
5801 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00005802{ echo "$as_me:$LINENO: checking malloc.h usability" >&5
5803echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005804cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h. */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h. */
5810$ac_includes_default
5811#include <malloc.h>
5812_ACEOF
5813rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00005814if { (ac_try="$ac_compile"
5815case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005821 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005822 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005823 rm -f conftest.er1
5824 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005826 (exit $ac_status); } && {
5827 test -z "$ac_c_werror_flag" ||
5828 test ! -s conftest.err
5829 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005830 ac_header_compiler=yes
5831else
5832 echo "$as_me: failed program was:" >&5
5833sed 's/^/| /' conftest.$ac_ext >&5
5834
Benny Prijono0822c192008-08-21 20:59:58 +00005835 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005836fi
Benny Prijono0822c192008-08-21 20:59:58 +00005837
5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5840echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005841
5842# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00005843{ echo "$as_me:$LINENO: checking malloc.h presence" >&5
5844echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005845cat >conftest.$ac_ext <<_ACEOF
5846/* confdefs.h. */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h. */
5851#include <malloc.h>
5852_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00005853if { (ac_try="$ac_cpp conftest.$ac_ext"
5854case "(($ac_try" in
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5857esac
5858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005865 (exit $ac_status); } >/dev/null && {
5866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5868 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005869 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005870else
5871 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005875fi
Benny Prijono0822c192008-08-21 20:59:58 +00005876
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005877rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005878{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5879echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005880
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005881# So? What about this header?
5882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5883 yes:no: )
5884 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5885echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5886 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5887echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5888 ac_header_preproc=yes
5889 ;;
5890 no:yes:* )
5891 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5892echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5894echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5896echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5897 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5898echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5899 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5900echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5901 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5902echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00005903
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005904 ;;
5905esac
Benny Prijono0822c192008-08-21 20:59:58 +00005906{ echo "$as_me:$LINENO: checking for malloc.h" >&5
5907echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005908if test "${ac_cv_header_malloc_h+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005910else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005911 ac_cv_header_malloc_h=$ac_header_preproc
5912fi
Benny Prijono0822c192008-08-21 20:59:58 +00005913{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5914echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005915
5916fi
5917if test $ac_cv_header_malloc_h = yes; then
5918 cat >>confdefs.h <<\_ACEOF
5919#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005920_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005921
5922fi
5923
5924
5925if test "${ac_cv_header_netdb_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00005926 { echo "$as_me:$LINENO: checking for netdb.h" >&5
5927echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005928if test "${ac_cv_header_netdb_h+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930fi
Benny Prijono0822c192008-08-21 20:59:58 +00005931{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5932echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005933else
5934 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00005935{ echo "$as_me:$LINENO: checking netdb.h usability" >&5
5936echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005937cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h. */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
5943$ac_includes_default
5944#include <netdb.h>
5945_ACEOF
5946rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00005947if { (ac_try="$ac_compile"
5948case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951esac
5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005954 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005955 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005956 rm -f conftest.er1
5957 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005963 ac_header_compiler=yes
5964else
5965 echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
Benny Prijono0822c192008-08-21 20:59:58 +00005968 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005969fi
Benny Prijono0822c192008-08-21 20:59:58 +00005970
5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5973echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005974
5975# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00005976{ echo "$as_me:$LINENO: checking netdb.h presence" >&5
5977echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005978cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h. */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
5983/* end confdefs.h. */
5984#include <netdb.h>
5985_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00005986if { (ac_try="$ac_cpp conftest.$ac_ext"
5987case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990esac
5991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00005998 (exit $ac_status); } >/dev/null && {
5999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006002 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006003else
6004 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006008fi
Benny Prijono0822c192008-08-21 20:59:58 +00006009
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006010rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006011{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6012echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006013
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006014# So? What about this header?
6015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6016 yes:no: )
6017 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6018echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
6020echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
6021 ac_header_preproc=yes
6022 ;;
6023 no:yes:* )
6024 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
6025echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
6027echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
6029echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
6031echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
6033echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
6035echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00006036
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006037 ;;
6038esac
Benny Prijono0822c192008-08-21 20:59:58 +00006039{ echo "$as_me:$LINENO: checking for netdb.h" >&5
6040echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006041if test "${ac_cv_header_netdb_h+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006043else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006044 ac_cv_header_netdb_h=$ac_header_preproc
6045fi
Benny Prijono0822c192008-08-21 20:59:58 +00006046{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6047echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006048
6049fi
6050if test $ac_cv_header_netdb_h = yes; then
6051 cat >>confdefs.h <<\_ACEOF
6052#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006053_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006054
6055fi
6056
6057
Benny Prijono37fc9de2008-08-04 14:45:02 +00006058if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00006059 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6060echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006061if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063fi
Benny Prijono0822c192008-08-21 20:59:58 +00006064{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6065echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006066else
6067 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00006068{ echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5
6069echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006070cat >conftest.$ac_ext <<_ACEOF
6071/* confdefs.h. */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
6075/* end confdefs.h. */
6076$ac_includes_default
6077#include <netinet/in_systm.h>
6078_ACEOF
6079rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00006080if { (ac_try="$ac_compile"
6081case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_compile") 2>conftest.er1
Benny Prijono37fc9de2008-08-04 14:45:02 +00006087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006092 (exit $ac_status); } && {
6093 test -z "$ac_c_werror_flag" ||
6094 test ! -s conftest.err
6095 } && test -s conftest.$ac_objext; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00006096 ac_header_compiler=yes
6097else
6098 echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
Benny Prijono0822c192008-08-21 20:59:58 +00006101 ac_header_compiler=no
Benny Prijono37fc9de2008-08-04 14:45:02 +00006102fi
Benny Prijono0822c192008-08-21 20:59:58 +00006103
6104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6106echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006107
6108# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00006109{ echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5
6110echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006111cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
6117#include <netinet/in_systm.h>
6118_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00006119if { (ac_try="$ac_cpp conftest.$ac_ext"
6120case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono37fc9de2008-08-04 14:45:02 +00006126 ac_status=$?
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006131 (exit $ac_status); } >/dev/null && {
6132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6133 test ! -s conftest.err
6134 }; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00006135 ac_header_preproc=yes
6136else
6137 echo "$as_me: failed program was:" >&5
6138sed 's/^/| /' conftest.$ac_ext >&5
6139
6140 ac_header_preproc=no
6141fi
Benny Prijono0822c192008-08-21 20:59:58 +00006142
Benny Prijono37fc9de2008-08-04 14:45:02 +00006143rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006144{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6145echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006146
6147# So? What about this header?
6148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6149 yes:no: )
6150 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6151echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6152 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5
6153echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;}
6154 ac_header_preproc=yes
6155 ;;
6156 no:yes:* )
6157 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5
6158echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5
6160echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5
6162echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;}
6163 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5
6164echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;}
6165 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5
6166echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;}
6167 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5
6168echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00006169
Benny Prijono37fc9de2008-08-04 14:45:02 +00006170 ;;
6171esac
Benny Prijono0822c192008-08-21 20:59:58 +00006172{ echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6173echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006174if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177 ac_cv_header_netinet_in_systm_h=$ac_header_preproc
6178fi
Benny Prijono0822c192008-08-21 20:59:58 +00006179{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6180echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
Benny Prijono37fc9de2008-08-04 14:45:02 +00006181
6182fi
6183if test $ac_cv_header_netinet_in_systm_h = yes; then
6184 cat >>confdefs.h <<\_ACEOF
6185#define PJ_HAS_NETINET_IN_SYSTM_H 1
6186_ACEOF
6187
6188fi
6189
6190
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006191if test "${ac_cv_header_netinet_in_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00006192 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6193echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006194if test "${ac_cv_header_netinet_in_h+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196fi
Benny Prijono0822c192008-08-21 20:59:58 +00006197{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6198echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006199else
6200 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00006201{ echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
6202echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006203cat >conftest.$ac_ext <<_ACEOF
6204/* confdefs.h. */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h. */
6209$ac_includes_default
6210#include <netinet/in.h>
6211_ACEOF
6212rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00006213if { (ac_try="$ac_compile"
6214case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217esac
6218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006220 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006221 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006222 rm -f conftest.er1
6223 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006225 (exit $ac_status); } && {
6226 test -z "$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006229 ac_header_compiler=yes
6230else
6231 echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
Benny Prijono0822c192008-08-21 20:59:58 +00006234 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006235fi
Benny Prijono0822c192008-08-21 20:59:58 +00006236
6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6239echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006240
6241# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00006242{ echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
6243echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006244cat >conftest.$ac_ext <<_ACEOF
6245/* confdefs.h. */
6246_ACEOF
6247cat confdefs.h >>conftest.$ac_ext
6248cat >>conftest.$ac_ext <<_ACEOF
6249/* end confdefs.h. */
6250#include <netinet/in.h>
6251_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00006252if { (ac_try="$ac_cpp conftest.$ac_ext"
6253case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256esac
6257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006264 (exit $ac_status); } >/dev/null && {
6265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6266 test ! -s conftest.err
6267 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006268 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006269else
6270 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006274fi
Benny Prijono0822c192008-08-21 20:59:58 +00006275
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006276rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006277{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6278echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006279
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006280# So? What about this header?
6281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6282 yes:no: )
6283 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
6284echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
6286echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
6287 ac_header_preproc=yes
6288 ;;
6289 no:yes:* )
6290 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
6291echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
6293echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
6295echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
6296 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
6297echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
6298 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
6299echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
6300 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
6301echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00006302
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006303 ;;
6304esac
Benny Prijono0822c192008-08-21 20:59:58 +00006305{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6306echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006307if test "${ac_cv_header_netinet_in_h+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006309else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006310 ac_cv_header_netinet_in_h=$ac_header_preproc
6311fi
Benny Prijono0822c192008-08-21 20:59:58 +00006312{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6313echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006314
6315fi
6316if test $ac_cv_header_netinet_in_h = yes; then
6317 cat >>confdefs.h <<\_ACEOF
6318#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006319_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006320
6321fi
6322
6323
Benny Prijono0822c192008-08-21 20:59:58 +00006324{ echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
6325echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006326if test "${ac_cv_header_netinet_ip_h+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00006328else
Benny Prijono37fc9de2008-08-04 14:45:02 +00006329 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonof63a2552007-02-01 00:36:52 +00006330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h. */
Benny Prijono37fc9de2008-08-04 14:45:02 +00006335#if PJ_HAS_NETINET_IN_SYSTM_H
6336 # include <netinet/in_systm.h>
6337 #endif
6338
6339
Benny Prijonof63a2552007-02-01 00:36:52 +00006340#include <netinet/ip.h>
6341_ACEOF
6342rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00006343if { (ac_try="$ac_compile"
6344case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compile") 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00006350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006355 (exit $ac_status); } && {
6356 test -z "$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00006359 ac_cv_header_netinet_ip_h=yes
Benny Prijonof63a2552007-02-01 00:36:52 +00006360else
6361 echo "$as_me: failed program was:" >&5
6362sed 's/^/| /' conftest.$ac_ext >&5
6363
Benny Prijono0822c192008-08-21 20:59:58 +00006364 ac_cv_header_netinet_ip_h=no
Benny Prijonof63a2552007-02-01 00:36:52 +00006365fi
Benny Prijono0822c192008-08-21 20:59:58 +00006366
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonof63a2552007-02-01 00:36:52 +00006368fi
Benny Prijono0822c192008-08-21 20:59:58 +00006369{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
6370echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006371if test $ac_cv_header_netinet_ip_h = yes; then
6372 cat >>confdefs.h <<\_ACEOF
6373#define PJ_HAS_NETINET_IP_H 1
6374_ACEOF
6375
6376fi
6377
6378
Benny Prijono1d65f702007-12-03 04:03:17 +00006379if test "${ac_cv_header_ifaddrs_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00006380 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6381echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006382if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384fi
Benny Prijono0822c192008-08-21 20:59:58 +00006385{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6386echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006387else
6388 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00006389{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
6390echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006391cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h. */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h. */
6397$ac_includes_default
6398#include <ifaddrs.h>
6399_ACEOF
6400rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00006401if { (ac_try="$ac_compile"
6402case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00006408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006413 (exit $ac_status); } && {
6414 test -z "$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6416 } && test -s conftest.$ac_objext; then
Benny Prijono1d65f702007-12-03 04:03:17 +00006417 ac_header_compiler=yes
6418else
6419 echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
Benny Prijono0822c192008-08-21 20:59:58 +00006422 ac_header_compiler=no
Benny Prijono1d65f702007-12-03 04:03:17 +00006423fi
Benny Prijono0822c192008-08-21 20:59:58 +00006424
6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6427echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006428
6429# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00006430{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
6431echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006432cat >conftest.$ac_ext <<_ACEOF
6433/* confdefs.h. */
6434_ACEOF
6435cat confdefs.h >>conftest.$ac_ext
6436cat >>conftest.$ac_ext <<_ACEOF
6437/* end confdefs.h. */
6438#include <ifaddrs.h>
6439_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00006440if { (ac_try="$ac_cpp conftest.$ac_ext"
6441case "(($ac_try" in
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6444esac
6445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00006447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006452 (exit $ac_status); } >/dev/null && {
6453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6454 test ! -s conftest.err
6455 }; then
Benny Prijono1d65f702007-12-03 04:03:17 +00006456 ac_header_preproc=yes
6457else
6458 echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 ac_header_preproc=no
6462fi
Benny Prijono0822c192008-08-21 20:59:58 +00006463
Benny Prijono1d65f702007-12-03 04:03:17 +00006464rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6466echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006467
6468# So? What about this header?
6469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6470 yes:no: )
6471 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6472echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6474echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6475 ac_header_preproc=yes
6476 ;;
6477 no:yes:* )
6478 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6479echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6481echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6482 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6483echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6485echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6487echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6489echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00006490
Benny Prijono1d65f702007-12-03 04:03:17 +00006491 ;;
6492esac
Benny Prijono0822c192008-08-21 20:59:58 +00006493{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6494echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006495if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498 ac_cv_header_ifaddrs_h=$ac_header_preproc
6499fi
Benny Prijono0822c192008-08-21 20:59:58 +00006500{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6501echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006502
6503fi
6504if test $ac_cv_header_ifaddrs_h = yes; then
6505 cat >>confdefs.h <<\_ACEOF
6506#define PJ_HAS_IFADDRS_H 1
6507_ACEOF
6508
6509fi
6510
6511
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006512if test "${ac_cv_header_semaphore_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00006513 { echo "$as_me:$LINENO: checking for semaphore.h" >&5
6514echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006515if test "${ac_cv_header_semaphore_h+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517fi
Benny Prijono0822c192008-08-21 20:59:58 +00006518{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6519echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006520else
6521 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00006522{ echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6523echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006524cat >conftest.$ac_ext <<_ACEOF
6525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h. */
6530$ac_includes_default
6531#include <semaphore.h>
6532_ACEOF
6533rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00006534if { (ac_try="$ac_compile"
6535case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest.$ac_objext; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006550 ac_header_compiler=yes
6551else
6552 echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
Benny Prijono0822c192008-08-21 20:59:58 +00006555 ac_header_compiler=no
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006556fi
Benny Prijono0822c192008-08-21 20:59:58 +00006557
6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6560echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006561
6562# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00006563{ echo "$as_me:$LINENO: checking semaphore.h presence" >&5
6564echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006565cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h. */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h. */
6571#include <semaphore.h>
6572_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00006573if { (ac_try="$ac_cpp conftest.$ac_ext"
6574case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577esac
6578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006589 ac_header_preproc=yes
6590else
6591 echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_header_preproc=no
6595fi
Benny Prijono0822c192008-08-21 20:59:58 +00006596
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006597rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006598{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006600
6601# So? What about this header?
6602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6603 yes:no: )
6604 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
6605echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
6607echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6609 ;;
6610 no:yes:* )
6611 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
6612echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
6614echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
6616echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
6618echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
6620echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
6621 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
6622echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00006623
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006624 ;;
6625esac
Benny Prijono0822c192008-08-21 20:59:58 +00006626{ echo "$as_me:$LINENO: checking for semaphore.h" >&5
6627echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006628if test "${ac_cv_header_semaphore_h+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631 ac_cv_header_semaphore_h=$ac_header_preproc
6632fi
Benny Prijono0822c192008-08-21 20:59:58 +00006633{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6634echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006635
6636fi
6637if test $ac_cv_header_semaphore_h = yes; then
6638 cat >>confdefs.h <<\_ACEOF
6639#define PJ_HAS_SEMAPHORE_H 1
6640_ACEOF
6641
6642fi
6643
6644
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006645if test "${ac_cv_header_setjmp_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00006646 { echo "$as_me:$LINENO: checking for setjmp.h" >&5
6647echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006648if test "${ac_cv_header_setjmp_h+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650fi
Benny Prijono0822c192008-08-21 20:59:58 +00006651{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6652echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006653else
6654 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00006655{ echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6656echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006657cat >conftest.$ac_ext <<_ACEOF
6658/* confdefs.h. */
6659_ACEOF
6660cat confdefs.h >>conftest.$ac_ext
6661cat >>conftest.$ac_ext <<_ACEOF
6662/* end confdefs.h. */
6663$ac_includes_default
6664#include <setjmp.h>
6665_ACEOF
6666rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00006667if { (ac_try="$ac_compile"
6668case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671esac
6672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006674 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006675 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006676 rm -f conftest.er1
6677 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006683 ac_header_compiler=yes
6684else
6685 echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
6687
Benny Prijono0822c192008-08-21 20:59:58 +00006688 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006689fi
Benny Prijono0822c192008-08-21 20:59:58 +00006690
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6693echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006694
6695# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00006696{ echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6697echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006698cat >conftest.$ac_ext <<_ACEOF
6699/* confdefs.h. */
6700_ACEOF
6701cat confdefs.h >>conftest.$ac_ext
6702cat >>conftest.$ac_ext <<_ACEOF
6703/* end confdefs.h. */
6704#include <setjmp.h>
6705_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00006706if { (ac_try="$ac_cpp conftest.$ac_ext"
6707case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710esac
6711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006718 (exit $ac_status); } >/dev/null && {
6719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006722 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006723else
6724 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006725sed 's/^/| /' conftest.$ac_ext >&5
6726
6727 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006728fi
Benny Prijono0822c192008-08-21 20:59:58 +00006729
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006730rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006731{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6732echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006733
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006734# So? What about this header?
6735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6736 yes:no: )
6737 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6738echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
6740echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
6741 ac_header_preproc=yes
6742 ;;
6743 no:yes:* )
6744 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
6745echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
6746 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
6747echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
6749echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
6751echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
6753echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
6755echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00006756
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006757 ;;
6758esac
Benny Prijono0822c192008-08-21 20:59:58 +00006759{ echo "$as_me:$LINENO: checking for setjmp.h" >&5
6760echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006761if test "${ac_cv_header_setjmp_h+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006763else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006764 ac_cv_header_setjmp_h=$ac_header_preproc
6765fi
Benny Prijono0822c192008-08-21 20:59:58 +00006766{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6767echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006768
6769fi
6770if test $ac_cv_header_setjmp_h = yes; then
6771 cat >>confdefs.h <<\_ACEOF
6772#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006773_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006774
6775fi
6776
6777
6778if test "${ac_cv_header_stdarg_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00006779 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
6780echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006781if test "${ac_cv_header_stdarg_h+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783fi
Benny Prijono0822c192008-08-21 20:59:58 +00006784{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6785echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006786else
6787 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00006788{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6789echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006790cat >conftest.$ac_ext <<_ACEOF
6791/* confdefs.h. */
6792_ACEOF
6793cat confdefs.h >>conftest.$ac_ext
6794cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h. */
6796$ac_includes_default
6797#include <stdarg.h>
6798_ACEOF
6799rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00006800if { (ac_try="$ac_compile"
6801case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804esac
6805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006807 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006808 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006809 rm -f conftest.er1
6810 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006816 ac_header_compiler=yes
6817else
6818 echo "$as_me: failed program was:" >&5
6819sed 's/^/| /' conftest.$ac_ext >&5
6820
Benny Prijono0822c192008-08-21 20:59:58 +00006821 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006822fi
Benny Prijono0822c192008-08-21 20:59:58 +00006823
6824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6826echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006827
6828# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00006829{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6830echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006831cat >conftest.$ac_ext <<_ACEOF
6832/* confdefs.h. */
6833_ACEOF
6834cat confdefs.h >>conftest.$ac_ext
6835cat >>conftest.$ac_ext <<_ACEOF
6836/* end confdefs.h. */
6837#include <stdarg.h>
6838_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00006839if { (ac_try="$ac_cpp conftest.$ac_ext"
6840case "(($ac_try" in
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6843esac
6844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006851 (exit $ac_status); } >/dev/null && {
6852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6853 test ! -s conftest.err
6854 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006855 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006856else
6857 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006858sed 's/^/| /' conftest.$ac_ext >&5
6859
6860 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006861fi
Benny Prijono0822c192008-08-21 20:59:58 +00006862
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006863rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006864{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6865echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006866
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006867# So? What about this header?
6868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6869 yes:no: )
6870 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6871echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6872 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6873echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6874 ac_header_preproc=yes
6875 ;;
6876 no:yes:* )
6877 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6878echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6880echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6882echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6883 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6884echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6885 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6886echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6887 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6888echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00006889
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006890 ;;
6891esac
Benny Prijono0822c192008-08-21 20:59:58 +00006892{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
6893echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006894if test "${ac_cv_header_stdarg_h+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006896else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006897 ac_cv_header_stdarg_h=$ac_header_preproc
6898fi
Benny Prijono0822c192008-08-21 20:59:58 +00006899{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6900echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006901
6902fi
6903if test $ac_cv_header_stdarg_h = yes; then
6904 cat >>confdefs.h <<\_ACEOF
6905#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006906_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006907
6908fi
6909
6910
6911if test "${ac_cv_header_stddef_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00006912 { echo "$as_me:$LINENO: checking for stddef.h" >&5
6913echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006914if test "${ac_cv_header_stddef_h+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916fi
Benny Prijono0822c192008-08-21 20:59:58 +00006917{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6918echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006919else
6920 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00006921{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
6922echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006923cat >conftest.$ac_ext <<_ACEOF
6924/* confdefs.h. */
6925_ACEOF
6926cat confdefs.h >>conftest.$ac_ext
6927cat >>conftest.$ac_ext <<_ACEOF
6928/* end confdefs.h. */
6929$ac_includes_default
6930#include <stddef.h>
6931_ACEOF
6932rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00006933if { (ac_try="$ac_compile"
6934case "(($ac_try" in
6935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936 *) ac_try_echo=$ac_try;;
6937esac
6938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6939 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006940 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006941 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006942 rm -f conftest.er1
6943 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006945 (exit $ac_status); } && {
6946 test -z "$ac_c_werror_flag" ||
6947 test ! -s conftest.err
6948 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006949 ac_header_compiler=yes
6950else
6951 echo "$as_me: failed program was:" >&5
6952sed 's/^/| /' conftest.$ac_ext >&5
6953
Benny Prijono0822c192008-08-21 20:59:58 +00006954 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006955fi
Benny Prijono0822c192008-08-21 20:59:58 +00006956
6957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6959echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006960
6961# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00006962{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
6963echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006964cat >conftest.$ac_ext <<_ACEOF
6965/* confdefs.h. */
6966_ACEOF
6967cat confdefs.h >>conftest.$ac_ext
6968cat >>conftest.$ac_ext <<_ACEOF
6969/* end confdefs.h. */
6970#include <stddef.h>
6971_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00006972if { (ac_try="$ac_cpp conftest.$ac_ext"
6973case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976esac
6977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00006984 (exit $ac_status); } >/dev/null && {
6985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006988 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006989else
6990 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006991sed 's/^/| /' conftest.$ac_ext >&5
6992
6993 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006994fi
Benny Prijono0822c192008-08-21 20:59:58 +00006995
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006996rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006997{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6998echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006999
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007000# So? What about this header?
7001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7002 yes:no: )
7003 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
7004echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7005 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
7006echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
7007 ac_header_preproc=yes
7008 ;;
7009 no:yes:* )
7010 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
7011echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
7012 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
7013echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
7014 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
7015echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
7017echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
7019echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
7021echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00007022
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007023 ;;
7024esac
Benny Prijono0822c192008-08-21 20:59:58 +00007025{ echo "$as_me:$LINENO: checking for stddef.h" >&5
7026echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007027if test "${ac_cv_header_stddef_h+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007029else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007030 ac_cv_header_stddef_h=$ac_header_preproc
7031fi
Benny Prijono0822c192008-08-21 20:59:58 +00007032{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7033echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007034
7035fi
7036if test $ac_cv_header_stddef_h = yes; then
7037 cat >>confdefs.h <<\_ACEOF
7038#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007039_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007040
7041fi
7042
7043
7044if test "${ac_cv_header_stdio_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00007045 { echo "$as_me:$LINENO: checking for stdio.h" >&5
7046echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007047if test "${ac_cv_header_stdio_h+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049fi
Benny Prijono0822c192008-08-21 20:59:58 +00007050{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7051echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007052else
7053 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00007054{ echo "$as_me:$LINENO: checking stdio.h usability" >&5
7055echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007056cat >conftest.$ac_ext <<_ACEOF
7057/* confdefs.h. */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
7061/* end confdefs.h. */
7062$ac_includes_default
7063#include <stdio.h>
7064_ACEOF
7065rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00007066if { (ac_try="$ac_compile"
7067case "(($ac_try" in
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7070esac
7071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007073 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007074 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007075 rm -f conftest.er1
7076 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007082 ac_header_compiler=yes
7083else
7084 echo "$as_me: failed program was:" >&5
7085sed 's/^/| /' conftest.$ac_ext >&5
7086
Benny Prijono0822c192008-08-21 20:59:58 +00007087 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007088fi
Benny Prijono0822c192008-08-21 20:59:58 +00007089
7090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7092echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007093
7094# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00007095{ echo "$as_me:$LINENO: checking stdio.h presence" >&5
7096echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007097cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h. */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h. */
7103#include <stdio.h>
7104_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00007105if { (ac_try="$ac_cpp conftest.$ac_ext"
7106case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109esac
7110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007117 (exit $ac_status); } >/dev/null && {
7118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007121 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007122else
7123 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007124sed 's/^/| /' conftest.$ac_ext >&5
7125
7126 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007127fi
Benny Prijono0822c192008-08-21 20:59:58 +00007128
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007129rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00007130{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7131echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007132
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007133# So? What about this header?
7134case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7135 yes:no: )
7136 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7137echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7138 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
7139echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
7140 ac_header_preproc=yes
7141 ;;
7142 no:yes:* )
7143 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
7144echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
7145 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
7146echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
7147 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
7148echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
7149 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
7150echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
7152echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
7154echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00007155
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007156 ;;
7157esac
Benny Prijono0822c192008-08-21 20:59:58 +00007158{ echo "$as_me:$LINENO: checking for stdio.h" >&5
7159echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007160if test "${ac_cv_header_stdio_h+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007162else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007163 ac_cv_header_stdio_h=$ac_header_preproc
7164fi
Benny Prijono0822c192008-08-21 20:59:58 +00007165{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7166echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007167
7168fi
7169if test $ac_cv_header_stdio_h = yes; then
7170 cat >>confdefs.h <<\_ACEOF
7171#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007172_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007173
7174fi
7175
7176
Benny Prijonofdafd402008-01-23 14:34:46 +00007177if test "${ac_cv_header_stdint_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00007178 { echo "$as_me:$LINENO: checking for stdint.h" >&5
7179echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007180if test "${ac_cv_header_stdint_h+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182fi
Benny Prijono0822c192008-08-21 20:59:58 +00007183{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7184echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007185else
7186 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00007187{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
7188echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007189cat >conftest.$ac_ext <<_ACEOF
7190/* confdefs.h. */
7191_ACEOF
7192cat confdefs.h >>conftest.$ac_ext
7193cat >>conftest.$ac_ext <<_ACEOF
7194/* end confdefs.h. */
7195$ac_includes_default
7196#include <stdint.h>
7197_ACEOF
7198rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00007199if { (ac_try="$ac_compile"
7200case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203esac
7204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00007206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007215 ac_header_compiler=yes
7216else
7217 echo "$as_me: failed program was:" >&5
7218sed 's/^/| /' conftest.$ac_ext >&5
7219
Benny Prijono0822c192008-08-21 20:59:58 +00007220 ac_header_compiler=no
Benny Prijonofdafd402008-01-23 14:34:46 +00007221fi
Benny Prijono0822c192008-08-21 20:59:58 +00007222
7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7225echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007226
7227# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00007228{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
7229echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007230cat >conftest.$ac_ext <<_ACEOF
7231/* confdefs.h. */
7232_ACEOF
7233cat confdefs.h >>conftest.$ac_ext
7234cat >>conftest.$ac_ext <<_ACEOF
7235/* end confdefs.h. */
7236#include <stdint.h>
7237_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00007238if { (ac_try="$ac_cpp conftest.$ac_ext"
7239case "(($ac_try" in
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7242esac
7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00007245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007250 (exit $ac_status); } >/dev/null && {
7251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7252 test ! -s conftest.err
7253 }; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007254 ac_header_preproc=yes
7255else
7256 echo "$as_me: failed program was:" >&5
7257sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ac_header_preproc=no
7260fi
Benny Prijono0822c192008-08-21 20:59:58 +00007261
Benny Prijonofdafd402008-01-23 14:34:46 +00007262rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00007263{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7264echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007265
7266# So? What about this header?
7267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7268 yes:no: )
7269 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
7270echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7271 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
7272echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
7273 ac_header_preproc=yes
7274 ;;
7275 no:yes:* )
7276 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
7277echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
7278 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
7279echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
7280 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
7281echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
7282 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
7283echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
7284 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
7285echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
7286 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
7287echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00007288
Benny Prijonofdafd402008-01-23 14:34:46 +00007289 ;;
7290esac
Benny Prijono0822c192008-08-21 20:59:58 +00007291{ echo "$as_me:$LINENO: checking for stdint.h" >&5
7292echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007293if test "${ac_cv_header_stdint_h+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296 ac_cv_header_stdint_h=$ac_header_preproc
7297fi
Benny Prijono0822c192008-08-21 20:59:58 +00007298{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7299echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
Benny Prijonofdafd402008-01-23 14:34:46 +00007300
7301fi
7302if test $ac_cv_header_stdint_h = yes; then
7303 cat >>confdefs.h <<\_ACEOF
7304#define PJ_HAS_STDINT_H 1
7305_ACEOF
7306
7307fi
7308
7309
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007310if test "${ac_cv_header_stdlib_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00007311 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
7312echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007313if test "${ac_cv_header_stdlib_h+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315fi
Benny Prijono0822c192008-08-21 20:59:58 +00007316{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7317echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007318else
7319 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00007320{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7321echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007322cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h. */
7328$ac_includes_default
7329#include <stdlib.h>
7330_ACEOF
7331rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00007332if { (ac_try="$ac_compile"
7333case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336esac
7337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007339 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007340 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007341 rm -f conftest.er1
7342 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007344 (exit $ac_status); } && {
7345 test -z "$ac_c_werror_flag" ||
7346 test ! -s conftest.err
7347 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007348 ac_header_compiler=yes
7349else
7350 echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
Benny Prijono0822c192008-08-21 20:59:58 +00007353 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007354fi
Benny Prijono0822c192008-08-21 20:59:58 +00007355
7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7358echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007359
7360# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00007361{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7362echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007363cat >conftest.$ac_ext <<_ACEOF
7364/* confdefs.h. */
7365_ACEOF
7366cat confdefs.h >>conftest.$ac_ext
7367cat >>conftest.$ac_ext <<_ACEOF
7368/* end confdefs.h. */
7369#include <stdlib.h>
7370_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00007371if { (ac_try="$ac_cpp conftest.$ac_ext"
7372case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375esac
7376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007383 (exit $ac_status); } >/dev/null && {
7384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7385 test ! -s conftest.err
7386 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007387 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007388else
7389 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007390sed 's/^/| /' conftest.$ac_ext >&5
7391
7392 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007393fi
Benny Prijono0822c192008-08-21 20:59:58 +00007394
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007395rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00007396{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7397echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007398
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007399# So? What about this header?
7400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7401 yes:no: )
7402 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7403echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7405echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7406 ac_header_preproc=yes
7407 ;;
7408 no:yes:* )
7409 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7410echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7412echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7413 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7414echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7416echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7417 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7418echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7419 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7420echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00007421
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007422 ;;
7423esac
Benny Prijono0822c192008-08-21 20:59:58 +00007424{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
7425echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007426if test "${ac_cv_header_stdlib_h+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007428else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007429 ac_cv_header_stdlib_h=$ac_header_preproc
7430fi
Benny Prijono0822c192008-08-21 20:59:58 +00007431{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7432echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007433
7434fi
7435if test $ac_cv_header_stdlib_h = yes; then
7436 cat >>confdefs.h <<\_ACEOF
7437#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007438_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007439
7440fi
7441
7442
7443if test "${ac_cv_header_string_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00007444 { echo "$as_me:$LINENO: checking for string.h" >&5
7445echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007446if test "${ac_cv_header_string_h+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448fi
Benny Prijono0822c192008-08-21 20:59:58 +00007449{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7450echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007451else
7452 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00007453{ echo "$as_me:$LINENO: checking string.h usability" >&5
7454echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007455cat >conftest.$ac_ext <<_ACEOF
7456/* confdefs.h. */
7457_ACEOF
7458cat confdefs.h >>conftest.$ac_ext
7459cat >>conftest.$ac_ext <<_ACEOF
7460/* end confdefs.h. */
7461$ac_includes_default
7462#include <string.h>
7463_ACEOF
7464rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00007465if { (ac_try="$ac_compile"
7466case "(($ac_try" in
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7469esac
7470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007472 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007473 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007474 rm -f conftest.er1
7475 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007481 ac_header_compiler=yes
7482else
7483 echo "$as_me: failed program was:" >&5
7484sed 's/^/| /' conftest.$ac_ext >&5
7485
Benny Prijono0822c192008-08-21 20:59:58 +00007486 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007487fi
Benny Prijono0822c192008-08-21 20:59:58 +00007488
7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7491echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007492
7493# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00007494{ echo "$as_me:$LINENO: checking string.h presence" >&5
7495echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007496cat >conftest.$ac_ext <<_ACEOF
7497/* confdefs.h. */
7498_ACEOF
7499cat confdefs.h >>conftest.$ac_ext
7500cat >>conftest.$ac_ext <<_ACEOF
7501/* end confdefs.h. */
7502#include <string.h>
7503_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00007504if { (ac_try="$ac_cpp conftest.$ac_ext"
7505case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
7509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007516 (exit $ac_status); } >/dev/null && {
7517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007520 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007521else
7522 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007523sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007526fi
Benny Prijono0822c192008-08-21 20:59:58 +00007527
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007528rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00007529{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7530echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007531
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007532# So? What about this header?
7533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7534 yes:no: )
7535 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7536echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7538echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7539 ac_header_preproc=yes
7540 ;;
7541 no:yes:* )
7542 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7543echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7544 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7545echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7547echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7549echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7551echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7553echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00007554
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007555 ;;
7556esac
Benny Prijono0822c192008-08-21 20:59:58 +00007557{ echo "$as_me:$LINENO: checking for string.h" >&5
7558echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007559if test "${ac_cv_header_string_h+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007561else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007562 ac_cv_header_string_h=$ac_header_preproc
7563fi
Benny Prijono0822c192008-08-21 20:59:58 +00007564{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7565echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007566
7567fi
7568if test $ac_cv_header_string_h = yes; then
7569 cat >>confdefs.h <<\_ACEOF
7570#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007571_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007572
7573fi
7574
7575
7576if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00007577 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7578echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007579if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581fi
Benny Prijono0822c192008-08-21 20:59:58 +00007582{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7583echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007584else
7585 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00007586{ echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7587echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007588cat >conftest.$ac_ext <<_ACEOF
7589/* confdefs.h. */
7590_ACEOF
7591cat confdefs.h >>conftest.$ac_ext
7592cat >>conftest.$ac_ext <<_ACEOF
7593/* end confdefs.h. */
7594$ac_includes_default
7595#include <sys/ioctl.h>
7596_ACEOF
7597rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00007598if { (ac_try="$ac_compile"
7599case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602esac
7603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007605 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007606 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007607 rm -f conftest.er1
7608 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007610 (exit $ac_status); } && {
7611 test -z "$ac_c_werror_flag" ||
7612 test ! -s conftest.err
7613 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007614 ac_header_compiler=yes
7615else
7616 echo "$as_me: failed program was:" >&5
7617sed 's/^/| /' conftest.$ac_ext >&5
7618
Benny Prijono0822c192008-08-21 20:59:58 +00007619 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007620fi
Benny Prijono0822c192008-08-21 20:59:58 +00007621
7622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7624echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007625
7626# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00007627{ echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7628echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007629cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h. */
7631_ACEOF
7632cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h. */
7635#include <sys/ioctl.h>
7636_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00007637if { (ac_try="$ac_cpp conftest.$ac_ext"
7638case "(($ac_try" in
7639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640 *) ac_try_echo=$ac_try;;
7641esac
7642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007649 (exit $ac_status); } >/dev/null && {
7650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007653 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007654else
7655 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007656sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007659fi
Benny Prijono0822c192008-08-21 20:59:58 +00007660
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007661rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00007662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7663echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007664
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007665# So? What about this header?
7666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7667 yes:no: )
7668 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7669echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7670 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7671echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7672 ac_header_preproc=yes
7673 ;;
7674 no:yes:* )
7675 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7676echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7678echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7680echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7682echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7683 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7684echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7686echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00007687
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007688 ;;
7689esac
Benny Prijono0822c192008-08-21 20:59:58 +00007690{ echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7691echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007692if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007694else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007695 ac_cv_header_sys_ioctl_h=$ac_header_preproc
7696fi
Benny Prijono0822c192008-08-21 20:59:58 +00007697{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7698echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007699
7700fi
7701if test $ac_cv_header_sys_ioctl_h = yes; then
7702 cat >>confdefs.h <<\_ACEOF
7703#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007704_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007705
7706fi
7707
7708
7709if test "${ac_cv_header_sys_select_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00007710 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
7711echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007712if test "${ac_cv_header_sys_select_h+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714fi
Benny Prijono0822c192008-08-21 20:59:58 +00007715{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7716echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007717else
7718 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00007719{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5
7720echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007721cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h. */
7723_ACEOF
7724cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h. */
7727$ac_includes_default
7728#include <sys/select.h>
7729_ACEOF
7730rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00007731if { (ac_try="$ac_compile"
7732case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735esac
7736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007738 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007739 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007740 rm -f conftest.er1
7741 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007747 ac_header_compiler=yes
7748else
7749 echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
Benny Prijono0822c192008-08-21 20:59:58 +00007752 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007753fi
Benny Prijono0822c192008-08-21 20:59:58 +00007754
7755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7757echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007758
7759# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00007760{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5
7761echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007762cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h. */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h. */
7768#include <sys/select.h>
7769_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00007770if { (ac_try="$ac_cpp conftest.$ac_ext"
7771case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7774esac
7775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007782 (exit $ac_status); } >/dev/null && {
7783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007786 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007787else
7788 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007789sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007792fi
Benny Prijono0822c192008-08-21 20:59:58 +00007793
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007794rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00007795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7796echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007797
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007798# So? What about this header?
7799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7800 yes:no: )
7801 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
7802echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
7804echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
7805 ac_header_preproc=yes
7806 ;;
7807 no:yes:* )
7808 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
7809echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
7810 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
7811echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
7812 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
7813echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
7815echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
7816 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
7817echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
7818 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
7819echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00007820
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007821 ;;
7822esac
Benny Prijono0822c192008-08-21 20:59:58 +00007823{ echo "$as_me:$LINENO: checking for sys/select.h" >&5
7824echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007825if test "${ac_cv_header_sys_select_h+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007827else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007828 ac_cv_header_sys_select_h=$ac_header_preproc
7829fi
Benny Prijono0822c192008-08-21 20:59:58 +00007830{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7831echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007832
7833fi
7834if test $ac_cv_header_sys_select_h = yes; then
7835 cat >>confdefs.h <<\_ACEOF
7836#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007837_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007838
7839fi
7840
7841
7842if test "${ac_cv_header_sys_socket_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00007843 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7844echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007845if test "${ac_cv_header_sys_socket_h+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847fi
Benny Prijono0822c192008-08-21 20:59:58 +00007848{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7849echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007850else
7851 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00007852{ echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7853echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007854cat >conftest.$ac_ext <<_ACEOF
7855/* confdefs.h. */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h. */
7860$ac_includes_default
7861#include <sys/socket.h>
7862_ACEOF
7863rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00007864if { (ac_try="$ac_compile"
7865case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007871 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007872 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007873 rm -f conftest.er1
7874 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007880 ac_header_compiler=yes
7881else
7882 echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
Benny Prijono0822c192008-08-21 20:59:58 +00007885 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007886fi
Benny Prijono0822c192008-08-21 20:59:58 +00007887
7888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7890echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007891
7892# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00007893{ echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7894echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007895cat >conftest.$ac_ext <<_ACEOF
7896/* confdefs.h. */
7897_ACEOF
7898cat confdefs.h >>conftest.$ac_ext
7899cat >>conftest.$ac_ext <<_ACEOF
7900/* end confdefs.h. */
7901#include <sys/socket.h>
7902_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00007903if { (ac_try="$ac_cpp conftest.$ac_ext"
7904case "(($ac_try" in
7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7907esac
7908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00007915 (exit $ac_status); } >/dev/null && {
7916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7917 test ! -s conftest.err
7918 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007919 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007920else
7921 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007922sed 's/^/| /' conftest.$ac_ext >&5
7923
7924 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007925fi
Benny Prijono0822c192008-08-21 20:59:58 +00007926
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007927rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00007928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7929echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007930
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007931# So? What about this header?
7932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7933 yes:no: )
7934 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7935echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7936 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7937echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7938 ac_header_preproc=yes
7939 ;;
7940 no:yes:* )
7941 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7942echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7943 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7944echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7945 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7946echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7947 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7948echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7949 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7950echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7951 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7952echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00007953
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007954 ;;
7955esac
Benny Prijono0822c192008-08-21 20:59:58 +00007956{ echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7957echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007958if test "${ac_cv_header_sys_socket_h+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007960else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007961 ac_cv_header_sys_socket_h=$ac_header_preproc
7962fi
Benny Prijono0822c192008-08-21 20:59:58 +00007963{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7964echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007965
7966fi
7967if test $ac_cv_header_sys_socket_h = yes; then
7968 cat >>confdefs.h <<\_ACEOF
7969#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007970_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007971
7972fi
7973
7974
7975if test "${ac_cv_header_sys_time_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00007976 { echo "$as_me:$LINENO: checking for sys/time.h" >&5
7977echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007978if test "${ac_cv_header_sys_time_h+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980fi
Benny Prijono0822c192008-08-21 20:59:58 +00007981{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7982echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007983else
7984 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00007985{ echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7986echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007987cat >conftest.$ac_ext <<_ACEOF
7988/* confdefs.h. */
7989_ACEOF
7990cat confdefs.h >>conftest.$ac_ext
7991cat >>conftest.$ac_ext <<_ACEOF
7992/* end confdefs.h. */
7993$ac_includes_default
7994#include <sys/time.h>
7995_ACEOF
7996rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00007997if { (ac_try="$ac_compile"
7998case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001esac
8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008004 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008005 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008006 rm -f conftest.er1
8007 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008009 (exit $ac_status); } && {
8010 test -z "$ac_c_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008013 ac_header_compiler=yes
8014else
8015 echo "$as_me: failed program was:" >&5
8016sed 's/^/| /' conftest.$ac_ext >&5
8017
Benny Prijono0822c192008-08-21 20:59:58 +00008018 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008019fi
Benny Prijono0822c192008-08-21 20:59:58 +00008020
8021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8023echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008024
8025# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00008026{ echo "$as_me:$LINENO: checking sys/time.h presence" >&5
8027echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008028cat >conftest.$ac_ext <<_ACEOF
8029/* confdefs.h. */
8030_ACEOF
8031cat confdefs.h >>conftest.$ac_ext
8032cat >>conftest.$ac_ext <<_ACEOF
8033/* end confdefs.h. */
8034#include <sys/time.h>
8035_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00008036if { (ac_try="$ac_cpp conftest.$ac_ext"
8037case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040esac
8041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008048 (exit $ac_status); } >/dev/null && {
8049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008052 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008053else
8054 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008055sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008058fi
Benny Prijono0822c192008-08-21 20:59:58 +00008059
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008060rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00008061{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8062echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008063
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008064# So? What about this header?
8065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8066 yes:no: )
8067 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8068echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
8070echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
8071 ac_header_preproc=yes
8072 ;;
8073 no:yes:* )
8074 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
8075echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
8077echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
8079echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
8080 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
8081echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8082 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
8083echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
8084 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
8085echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00008086
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008087 ;;
8088esac
Benny Prijono0822c192008-08-21 20:59:58 +00008089{ echo "$as_me:$LINENO: checking for sys/time.h" >&5
8090echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008091if test "${ac_cv_header_sys_time_h+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008093else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008094 ac_cv_header_sys_time_h=$ac_header_preproc
8095fi
Benny Prijono0822c192008-08-21 20:59:58 +00008096{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8097echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008098
8099fi
8100if test $ac_cv_header_sys_time_h = yes; then
8101 cat >>confdefs.h <<\_ACEOF
8102#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008103_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008104
8105fi
8106
8107
8108if test "${ac_cv_header_sys_timeb_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00008109 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8110echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008111if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8113fi
Benny Prijono0822c192008-08-21 20:59:58 +00008114{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8115echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008116else
8117 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00008118{ echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
8119echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008120cat >conftest.$ac_ext <<_ACEOF
8121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
8126$ac_includes_default
8127#include <sys/timeb.h>
8128_ACEOF
8129rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00008130if { (ac_try="$ac_compile"
8131case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134esac
8135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008137 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008138 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008139 rm -f conftest.er1
8140 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008146 ac_header_compiler=yes
8147else
8148 echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
Benny Prijono0822c192008-08-21 20:59:58 +00008151 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008152fi
Benny Prijono0822c192008-08-21 20:59:58 +00008153
8154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008157
8158# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00008159{ echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
8160echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008161cat >conftest.$ac_ext <<_ACEOF
8162/* confdefs.h. */
8163_ACEOF
8164cat confdefs.h >>conftest.$ac_ext
8165cat >>conftest.$ac_ext <<_ACEOF
8166/* end confdefs.h. */
8167#include <sys/timeb.h>
8168_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00008169if { (ac_try="$ac_cpp conftest.$ac_ext"
8170case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173esac
8174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008181 (exit $ac_status); } >/dev/null && {
8182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008185 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008186else
8187 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008188sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008191fi
Benny Prijono0822c192008-08-21 20:59:58 +00008192
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008193rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00008194{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008196
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008197# So? What about this header?
8198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8199 yes:no: )
8200 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8201echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
8203echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
8204 ac_header_preproc=yes
8205 ;;
8206 no:yes:* )
8207 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
8208echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
8210echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
8212echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
8214echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
8216echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
8218echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00008219
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008220 ;;
8221esac
Benny Prijono0822c192008-08-21 20:59:58 +00008222{ echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8223echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008224if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008226else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008227 ac_cv_header_sys_timeb_h=$ac_header_preproc
8228fi
Benny Prijono0822c192008-08-21 20:59:58 +00008229{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8230echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008231
8232fi
8233if test $ac_cv_header_sys_timeb_h = yes; then
8234 cat >>confdefs.h <<\_ACEOF
8235#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008236_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008237
8238fi
8239
8240
8241if test "${ac_cv_header_sys_types_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00008242 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
8243echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008244if test "${ac_cv_header_sys_types_h+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246fi
Benny Prijono0822c192008-08-21 20:59:58 +00008247{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8248echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008249else
8250 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00008251{ echo "$as_me:$LINENO: checking sys/types.h usability" >&5
8252echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008253cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h. */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h. */
8259$ac_includes_default
8260#include <sys/types.h>
8261_ACEOF
8262rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00008263if { (ac_try="$ac_compile"
8264case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008270 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008271 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008272 rm -f conftest.er1
8273 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008279 ac_header_compiler=yes
8280else
8281 echo "$as_me: failed program was:" >&5
8282sed 's/^/| /' conftest.$ac_ext >&5
8283
Benny Prijono0822c192008-08-21 20:59:58 +00008284 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008285fi
Benny Prijono0822c192008-08-21 20:59:58 +00008286
8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8289echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008290
8291# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00008292{ echo "$as_me:$LINENO: checking sys/types.h presence" >&5
8293echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008294cat >conftest.$ac_ext <<_ACEOF
8295/* confdefs.h. */
8296_ACEOF
8297cat confdefs.h >>conftest.$ac_ext
8298cat >>conftest.$ac_ext <<_ACEOF
8299/* end confdefs.h. */
8300#include <sys/types.h>
8301_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00008302if { (ac_try="$ac_cpp conftest.$ac_ext"
8303case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008314 (exit $ac_status); } >/dev/null && {
8315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008318 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008319else
8320 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008321sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008324fi
Benny Prijono0822c192008-08-21 20:59:58 +00008325
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008326rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00008327{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008329
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008330# So? What about this header?
8331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8332 yes:no: )
8333 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8334echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8336echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8337 ac_header_preproc=yes
8338 ;;
8339 no:yes:* )
8340 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8341echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8343echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8345echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8347echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8349echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8351echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00008352
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008353 ;;
8354esac
Benny Prijono0822c192008-08-21 20:59:58 +00008355{ echo "$as_me:$LINENO: checking for sys/types.h" >&5
8356echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008357if test "${ac_cv_header_sys_types_h+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008359else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008360 ac_cv_header_sys_types_h=$ac_header_preproc
8361fi
Benny Prijono0822c192008-08-21 20:59:58 +00008362{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8363echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008364
8365fi
8366if test $ac_cv_header_sys_types_h = yes; then
8367 cat >>confdefs.h <<\_ACEOF
8368#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008369_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008370
8371fi
8372
8373
8374if test "${ac_cv_header_time_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00008375 { echo "$as_me:$LINENO: checking for time.h" >&5
8376echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008377if test "${ac_cv_header_time_h+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379fi
Benny Prijono0822c192008-08-21 20:59:58 +00008380{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8381echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008382else
8383 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00008384{ echo "$as_me:$LINENO: checking time.h usability" >&5
8385echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008386cat >conftest.$ac_ext <<_ACEOF
8387/* confdefs.h. */
8388_ACEOF
8389cat confdefs.h >>conftest.$ac_ext
8390cat >>conftest.$ac_ext <<_ACEOF
8391/* end confdefs.h. */
8392$ac_includes_default
8393#include <time.h>
8394_ACEOF
8395rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00008396if { (ac_try="$ac_compile"
8397case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400esac
8401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008403 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008404 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008405 rm -f conftest.er1
8406 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008412 ac_header_compiler=yes
8413else
8414 echo "$as_me: failed program was:" >&5
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
Benny Prijono0822c192008-08-21 20:59:58 +00008417 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008418fi
Benny Prijono0822c192008-08-21 20:59:58 +00008419
8420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8422echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008423
8424# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00008425{ echo "$as_me:$LINENO: checking time.h presence" >&5
8426echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008427cat >conftest.$ac_ext <<_ACEOF
8428/* confdefs.h. */
8429_ACEOF
8430cat confdefs.h >>conftest.$ac_ext
8431cat >>conftest.$ac_ext <<_ACEOF
8432/* end confdefs.h. */
8433#include <time.h>
8434_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00008435if { (ac_try="$ac_cpp conftest.$ac_ext"
8436case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8439esac
8440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008447 (exit $ac_status); } >/dev/null && {
8448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008451 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008452else
8453 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008454sed 's/^/| /' conftest.$ac_ext >&5
8455
8456 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008457fi
Benny Prijono0822c192008-08-21 20:59:58 +00008458
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008459rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00008460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8461echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008462
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008463# So? What about this header?
8464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8465 yes:no: )
8466 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8467echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8468 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
8469echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
8470 ac_header_preproc=yes
8471 ;;
8472 no:yes:* )
8473 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
8474echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
8476echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
8478echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
8480echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
8482echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
8484echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00008485
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008486 ;;
8487esac
Benny Prijono0822c192008-08-21 20:59:58 +00008488{ echo "$as_me:$LINENO: checking for time.h" >&5
8489echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008490if test "${ac_cv_header_time_h+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008492else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008493 ac_cv_header_time_h=$ac_header_preproc
8494fi
Benny Prijono0822c192008-08-21 20:59:58 +00008495{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8496echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008497
8498fi
8499if test $ac_cv_header_time_h = yes; then
8500 cat >>confdefs.h <<\_ACEOF
8501#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008502_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008503
8504fi
8505
8506
8507if test "${ac_cv_header_unistd_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00008508 { echo "$as_me:$LINENO: checking for unistd.h" >&5
8509echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008510if test "${ac_cv_header_unistd_h+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8512fi
Benny Prijono0822c192008-08-21 20:59:58 +00008513{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8514echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008515else
8516 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00008517{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
8518echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008519cat >conftest.$ac_ext <<_ACEOF
8520/* confdefs.h. */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h. */
8525$ac_includes_default
8526#include <unistd.h>
8527_ACEOF
8528rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00008529if { (ac_try="$ac_compile"
8530case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533esac
8534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008536 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008537 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008538 rm -f conftest.er1
8539 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008545 ac_header_compiler=yes
8546else
8547 echo "$as_me: failed program was:" >&5
8548sed 's/^/| /' conftest.$ac_ext >&5
8549
Benny Prijono0822c192008-08-21 20:59:58 +00008550 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008551fi
Benny Prijono0822c192008-08-21 20:59:58 +00008552
8553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8555echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008556
8557# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00008558{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
8559echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008560cat >conftest.$ac_ext <<_ACEOF
8561/* confdefs.h. */
8562_ACEOF
8563cat confdefs.h >>conftest.$ac_ext
8564cat >>conftest.$ac_ext <<_ACEOF
8565/* end confdefs.h. */
8566#include <unistd.h>
8567_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00008568if { (ac_try="$ac_cpp conftest.$ac_ext"
8569case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572esac
8573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008580 (exit $ac_status); } >/dev/null && {
8581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008584 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008585else
8586 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008587sed 's/^/| /' conftest.$ac_ext >&5
8588
8589 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008590fi
Benny Prijono0822c192008-08-21 20:59:58 +00008591
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008592rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00008593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8594echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008595
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008596# So? What about this header?
8597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8598 yes:no: )
8599 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8600echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8602echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8603 ac_header_preproc=yes
8604 ;;
8605 no:yes:* )
8606 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8607echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
8609echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8611echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
8613echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8615echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8616 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8617echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00008618
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008619 ;;
8620esac
Benny Prijono0822c192008-08-21 20:59:58 +00008621{ echo "$as_me:$LINENO: checking for unistd.h" >&5
8622echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008623if test "${ac_cv_header_unistd_h+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008625else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008626 ac_cv_header_unistd_h=$ac_header_preproc
8627fi
Benny Prijono0822c192008-08-21 20:59:58 +00008628{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8629echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008630
8631fi
8632if test $ac_cv_header_unistd_h = yes; then
8633 cat >>confdefs.h <<\_ACEOF
8634#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008635_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008636
8637fi
8638
8639
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008640if test "${ac_cv_header_winsock_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00008641 { echo "$as_me:$LINENO: checking for winsock.h" >&5
8642echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008643if test "${ac_cv_header_winsock_h+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645fi
Benny Prijono0822c192008-08-21 20:59:58 +00008646{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8647echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008648else
8649 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00008650{ echo "$as_me:$LINENO: checking winsock.h usability" >&5
8651echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008652cat >conftest.$ac_ext <<_ACEOF
8653/* confdefs.h. */
8654_ACEOF
8655cat confdefs.h >>conftest.$ac_ext
8656cat >>conftest.$ac_ext <<_ACEOF
8657/* end confdefs.h. */
8658$ac_includes_default
8659#include <winsock.h>
8660_ACEOF
8661rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00008662if { (ac_try="$ac_compile"
8663case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666esac
8667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008669 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008670 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008671 rm -f conftest.er1
8672 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008678 ac_header_compiler=yes
8679else
8680 echo "$as_me: failed program was:" >&5
8681sed 's/^/| /' conftest.$ac_ext >&5
8682
Benny Prijono0822c192008-08-21 20:59:58 +00008683 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008684fi
Benny Prijono0822c192008-08-21 20:59:58 +00008685
8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8688echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008689
8690# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00008691{ echo "$as_me:$LINENO: checking winsock.h presence" >&5
8692echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008693cat >conftest.$ac_ext <<_ACEOF
8694/* confdefs.h. */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */
8699#include <winsock.h>
8700_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00008701if { (ac_try="$ac_cpp conftest.$ac_ext"
8702case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705esac
8706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008713 (exit $ac_status); } >/dev/null && {
8714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008717 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008718else
8719 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008723fi
Benny Prijono0822c192008-08-21 20:59:58 +00008724
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008725rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00008726{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8727echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008728
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008729# So? What about this header?
8730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8731 yes:no: )
8732 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8733echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8735echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8736 ac_header_preproc=yes
8737 ;;
8738 no:yes:* )
8739 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8740echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8741 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8742echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8744echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8746echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8748echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8750echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00008751
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008752 ;;
8753esac
Benny Prijono0822c192008-08-21 20:59:58 +00008754{ echo "$as_me:$LINENO: checking for winsock.h" >&5
8755echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008756if test "${ac_cv_header_winsock_h+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008758else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008759 ac_cv_header_winsock_h=$ac_header_preproc
8760fi
Benny Prijono0822c192008-08-21 20:59:58 +00008761{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8762echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008763
8764fi
8765if test $ac_cv_header_winsock_h = yes; then
8766 cat >>confdefs.h <<\_ACEOF
8767#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008768_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008769
8770fi
8771
8772
8773if test "${ac_cv_header_winsock2_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00008774 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
8775echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008776if test "${ac_cv_header_winsock2_h+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778fi
Benny Prijono0822c192008-08-21 20:59:58 +00008779{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8780echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008781else
8782 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00008783{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8784echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008785cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h. */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h. */
8791$ac_includes_default
8792#include <winsock2.h>
8793_ACEOF
8794rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00008795if { (ac_try="$ac_compile"
8796case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799esac
8800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008802 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008803 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008804 rm -f conftest.er1
8805 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008811 ac_header_compiler=yes
8812else
8813 echo "$as_me: failed program was:" >&5
8814sed 's/^/| /' conftest.$ac_ext >&5
8815
Benny Prijono0822c192008-08-21 20:59:58 +00008816 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008817fi
Benny Prijono0822c192008-08-21 20:59:58 +00008818
8819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8821echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008822
8823# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00008824{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8825echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008826cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h. */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h. */
8832#include <winsock2.h>
8833_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00008834if { (ac_try="$ac_cpp conftest.$ac_ext"
8835case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8838esac
8839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008841 ac_status=$?
8842 grep -v '^ *+' conftest.er1 >conftest.err
8843 rm -f conftest.er1
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008846 (exit $ac_status); } >/dev/null && {
8847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8848 test ! -s conftest.err
8849 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008850 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008851else
8852 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008853sed 's/^/| /' conftest.$ac_ext >&5
8854
8855 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008856fi
Benny Prijono0822c192008-08-21 20:59:58 +00008857
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008858rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00008859{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8860echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008861
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008862# So? What about this header?
8863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8864 yes:no: )
8865 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8866echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8867 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8868echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8869 ac_header_preproc=yes
8870 ;;
8871 no:yes:* )
8872 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8873echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8875echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8877echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8879echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8881echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8883echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00008884
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008885 ;;
8886esac
Benny Prijono0822c192008-08-21 20:59:58 +00008887{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
8888echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008889if test "${ac_cv_header_winsock2_h+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008891else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008892 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008893fi
Benny Prijono0822c192008-08-21 20:59:58 +00008894{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8895echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008896
8897fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008898if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008899 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008900#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008901_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008902
8903fi
8904
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008905
Benny Prijono0822c192008-08-21 20:59:58 +00008906{ echo "$as_me:$LINENO: checking for mswsock.h" >&5
8907echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; }
Benny Prijonoa9948e62008-03-25 14:03:01 +00008908if test "${ac_cv_header_mswsock_h+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910else
8911 cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h. */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
8916/* end confdefs.h. */
8917#if PJ_HAS_WINSOCK2_H
8918 # include <winsock2.h>
8919 #elif PJ_HAS_WINSOCK_H
8920 # include <winsock.h>
8921 #endif
8922
8923
8924#include <mswsock.h>
8925_ACEOF
8926rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00008927if { (ac_try="$ac_compile"
8928case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931esac
8932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9948e62008-03-25 14:03:01 +00008934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest.$ac_objext; then
Benny Prijonoa9948e62008-03-25 14:03:01 +00008943 ac_cv_header_mswsock_h=yes
8944else
8945 echo "$as_me: failed program was:" >&5
8946sed 's/^/| /' conftest.$ac_ext >&5
8947
Benny Prijono0822c192008-08-21 20:59:58 +00008948 ac_cv_header_mswsock_h=no
Benny Prijonoa9948e62008-03-25 14:03:01 +00008949fi
Benny Prijono0822c192008-08-21 20:59:58 +00008950
8951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9948e62008-03-25 14:03:01 +00008952fi
Benny Prijono0822c192008-08-21 20:59:58 +00008953{ echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8954echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; }
Benny Prijonoa9948e62008-03-25 14:03:01 +00008955if test $ac_cv_header_mswsock_h = yes; then
8956 cat >>confdefs.h <<\_ACEOF
8957#define PJ_HAS_MSWSOCK_H 1
8958_ACEOF
8959
8960fi
8961
8962
Benny Prijono4e48b512007-05-16 13:41:00 +00008963if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00008964 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8965echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00008966if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8968fi
Benny Prijono0822c192008-08-21 20:59:58 +00008969{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8970echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00008971else
8972 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00008973{ echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8974echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00008975cat >conftest.$ac_ext <<_ACEOF
8976/* confdefs.h. */
8977_ACEOF
8978cat confdefs.h >>conftest.$ac_ext
8979cat >>conftest.$ac_ext <<_ACEOF
8980/* end confdefs.h. */
8981$ac_includes_default
8982#include <uuid/uuid.h>
8983_ACEOF
8984rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00008985if { (ac_try="$ac_compile"
8986case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989esac
8990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_compile") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00008997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest.$ac_objext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00009001 ac_header_compiler=yes
9002else
9003 echo "$as_me: failed program was:" >&5
9004sed 's/^/| /' conftest.$ac_ext >&5
9005
Benny Prijono0822c192008-08-21 20:59:58 +00009006 ac_header_compiler=no
Benny Prijono4e48b512007-05-16 13:41:00 +00009007fi
Benny Prijono0822c192008-08-21 20:59:58 +00009008
9009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9011echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009012
9013# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00009014{ echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
9015echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009016cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h. */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h. */
9022#include <uuid/uuid.h>
9023_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00009024if { (ac_try="$ac_cpp conftest.$ac_ext"
9025case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9028esac
9029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00009031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009036 (exit $ac_status); } >/dev/null && {
9037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00009040 ac_header_preproc=yes
9041else
9042 echo "$as_me: failed program was:" >&5
9043sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 ac_header_preproc=no
9046fi
Benny Prijono0822c192008-08-21 20:59:58 +00009047
Benny Prijono4e48b512007-05-16 13:41:00 +00009048rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00009049{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9050echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009051
9052# So? What about this header?
9053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9054 yes:no: )
9055 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
9056echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
9058echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
9059 ac_header_preproc=yes
9060 ;;
9061 no:yes:* )
9062 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
9063echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
9065echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
9067echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
9068 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
9069echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
9071echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
9073echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00009074
Benny Prijono4e48b512007-05-16 13:41:00 +00009075 ;;
9076esac
Benny Prijono0822c192008-08-21 20:59:58 +00009077{ echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9078echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009079if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081else
9082 ac_cv_header_uuid_uuid_h=$ac_header_preproc
9083fi
Benny Prijono0822c192008-08-21 20:59:58 +00009084{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9085echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009086
9087fi
9088if test $ac_cv_header_uuid_uuid_h = yes; then
9089 ac_has_uuid_h=1
9090fi
9091
9092
Benny Prijono0822c192008-08-21 20:59:58 +00009093{ echo "$as_me:$LINENO: checking for net/if.h" >&5
9094echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
Benny Prijonoa9948e62008-03-25 14:03:01 +00009095if test "${ac_cv_header_net_if_h+set}" = set; then
Benny Prijono188ba7e2008-03-25 13:53:16 +00009096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097else
9098 cat >conftest.$ac_ext <<_ACEOF
9099/* confdefs.h. */
9100_ACEOF
9101cat confdefs.h >>conftest.$ac_ext
9102cat >>conftest.$ac_ext <<_ACEOF
9103/* end confdefs.h. */
9104#if PJ_HAS_SYS_SOCKET_H
9105 # include <sys/socket.h>
9106 #endif
9107
9108
Benny Prijonoa9948e62008-03-25 14:03:01 +00009109#include <net/if.h>
Benny Prijono188ba7e2008-03-25 13:53:16 +00009110_ACEOF
9111rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009112if { (ac_try="$ac_compile"
9113case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
Benny Prijono188ba7e2008-03-25 13:53:16 +00009119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest.$ac_objext; then
Benny Prijonoa9948e62008-03-25 14:03:01 +00009128 ac_cv_header_net_if_h=yes
Benny Prijono188ba7e2008-03-25 13:53:16 +00009129else
9130 echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
Benny Prijono0822c192008-08-21 20:59:58 +00009133 ac_cv_header_net_if_h=no
Benny Prijono188ba7e2008-03-25 13:53:16 +00009134fi
Benny Prijono0822c192008-08-21 20:59:58 +00009135
9136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono188ba7e2008-03-25 13:53:16 +00009137fi
Benny Prijono0822c192008-08-21 20:59:58 +00009138{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
9139echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
Benny Prijonoa9948e62008-03-25 14:03:01 +00009140if test $ac_cv_header_net_if_h = yes; then
9141 cat >>confdefs.h <<\_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +00009142#define PJ_HAS_NET_IF_H 1
9143_ACEOF
9144
9145fi
9146
Benny Prijono188ba7e2008-03-25 13:53:16 +00009147
9148
Benny Prijono0822c192008-08-21 20:59:58 +00009149{ echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
9150echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009151cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009152#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009153_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009154
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009155
Benny Prijono0822c192008-08-21 20:59:58 +00009156{ echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
9157echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009158cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009159#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009160_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009161
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009162
Benny Prijono0822c192008-08-21 20:59:58 +00009163{ echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
9164echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009165cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009166#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009167_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009168
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009169
Benny Prijono0822c192008-08-21 20:59:58 +00009170{ echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
9171echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009172cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009173#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009174_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009175
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009176
Benny Prijono0822c192008-08-21 20:59:58 +00009177{ echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
9178echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009179cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009180#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009181_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009182
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009183
Benny Prijono0822c192008-08-21 20:59:58 +00009184{ echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
9185echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009186cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009187#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009188_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009189
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009190
Benny Prijono0822c192008-08-21 20:59:58 +00009191{ echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
9192echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009193cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009194/* confdefs.h. */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009199#include <sys/types.h>
9200 #include <sys/socket.h>
9201 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009202int
9203main ()
9204{
9205inet_aton(0, 0);
9206 ;
9207 return 0;
9208}
9209_ACEOF
9210rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009211if { (ac_try="$ac_compile"
9212case "(($ac_try" in
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9215esac
9216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009218 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009227 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009228#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009229_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009230
Benny Prijono0822c192008-08-21 20:59:58 +00009231 { echo "$as_me:$LINENO: result: yes" >&5
9232echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009233else
9234 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009235sed 's/^/| /' conftest.$ac_ext >&5
9236
Benny Prijono0822c192008-08-21 20:59:58 +00009237 { echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009239fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009240
Benny Prijono0822c192008-08-21 20:59:58 +00009241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242
9243{ echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
9244echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009245cat >conftest.$ac_ext <<_ACEOF
9246/* confdefs.h. */
9247_ACEOF
9248cat confdefs.h >>conftest.$ac_ext
9249cat >>conftest.$ac_ext <<_ACEOF
9250/* end confdefs.h. */
9251#include <sys/types.h>
9252 #include <sys/socket.h>
9253 #include <arpa/inet.h>
9254int
9255main ()
9256{
9257inet_pton(0, 0, 0);
9258 ;
9259 return 0;
9260}
9261_ACEOF
9262rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009263if { (ac_try="$ac_compile"
9264case "(($ac_try" in
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9267esac
9268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9269 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009270 ac_status=$?
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009275 (exit $ac_status); } && {
9276 test -z "$ac_c_werror_flag" ||
9277 test ! -s conftest.err
9278 } && test -s conftest.$ac_objext; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009279 cat >>confdefs.h <<\_ACEOF
9280#define PJ_SOCK_HAS_INET_PTON 1
9281_ACEOF
9282
Benny Prijono0822c192008-08-21 20:59:58 +00009283 { echo "$as_me:$LINENO: result: yes" >&5
9284echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009285else
9286 echo "$as_me: failed program was:" >&5
9287sed 's/^/| /' conftest.$ac_ext >&5
9288
Benny Prijono0822c192008-08-21 20:59:58 +00009289 { echo "$as_me:$LINENO: result: no" >&5
9290echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009291fi
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009292
Benny Prijono0822c192008-08-21 20:59:58 +00009293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294
9295{ echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
9296echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009297cat >conftest.$ac_ext <<_ACEOF
9298/* confdefs.h. */
9299_ACEOF
9300cat confdefs.h >>conftest.$ac_ext
9301cat >>conftest.$ac_ext <<_ACEOF
9302/* end confdefs.h. */
9303#include <sys/types.h>
9304 #include <sys/socket.h>
9305 #include <arpa/inet.h>
9306int
9307main ()
9308{
9309inet_ntop(0, 0, 0, 0);
9310 ;
9311 return 0;
9312}
9313_ACEOF
9314rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009315if { (ac_try="$ac_compile"
9316case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319esac
9320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest.$ac_objext; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009331 cat >>confdefs.h <<\_ACEOF
9332#define PJ_SOCK_HAS_INET_NTOP 1
9333_ACEOF
9334
Benny Prijono0822c192008-08-21 20:59:58 +00009335 { echo "$as_me:$LINENO: result: yes" >&5
9336echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009337else
9338 echo "$as_me: failed program was:" >&5
9339sed 's/^/| /' conftest.$ac_ext >&5
9340
Benny Prijono0822c192008-08-21 20:59:58 +00009341 { echo "$as_me:$LINENO: result: no" >&5
9342echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009343fi
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009344
Benny Prijono0822c192008-08-21 20:59:58 +00009345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346
9347{ echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
9348echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009349cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h. */
9355#include <sys/types.h>
9356 #include <sys/socket.h>
9357 #include <netdb.h>
9358int
9359main ()
9360{
9361getaddrinfo(0, 0, 0, 0);
9362 ;
9363 return 0;
9364}
9365_ACEOF
9366rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009367if { (ac_try="$ac_compile"
9368case "(($ac_try" in
9369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370 *) ac_try_echo=$ac_try;;
9371esac
9372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009374 ac_status=$?
9375 grep -v '^ *+' conftest.er1 >conftest.err
9376 rm -f conftest.er1
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009379 (exit $ac_status); } && {
9380 test -z "$ac_c_werror_flag" ||
9381 test ! -s conftest.err
9382 } && test -s conftest.$ac_objext; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009383 cat >>confdefs.h <<\_ACEOF
9384#define PJ_SOCK_HAS_GETADDRINFO 1
9385_ACEOF
9386
Benny Prijono0822c192008-08-21 20:59:58 +00009387 { echo "$as_me:$LINENO: result: yes" >&5
9388echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009389else
9390 echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
Benny Prijono0822c192008-08-21 20:59:58 +00009393 { echo "$as_me:$LINENO: result: no" >&5
9394echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009395fi
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009396
Benny Prijono0822c192008-08-21 20:59:58 +00009397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398
9399{ echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
9400echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009401cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009402/* confdefs.h. */
9403_ACEOF
9404cat confdefs.h >>conftest.$ac_ext
9405cat >>conftest.$ac_ext <<_ACEOF
9406/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009407#include <sys/types.h>
9408 #include <sys/socket.h>
9409 #include <netinet/in.h>
9410 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009411int
9412main ()
9413{
9414struct sockaddr_in a; a.sin_len=0;
9415 ;
9416 return 0;
9417}
9418_ACEOF
9419rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009420if { (ac_try="$ac_compile"
9421case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424esac
9425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009427 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009436 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009437#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009438_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009439
Benny Prijono0822c192008-08-21 20:59:58 +00009440 { echo "$as_me:$LINENO: result: yes" >&5
9441echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009442else
9443 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009444sed 's/^/| /' conftest.$ac_ext >&5
9445
Benny Prijono0822c192008-08-21 20:59:58 +00009446 { echo "$as_me:$LINENO: result: no" >&5
9447echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009448fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009449
Benny Prijono0822c192008-08-21 20:59:58 +00009450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451
9452{ echo "$as_me:$LINENO: checking if socklen_t is available" >&5
9453echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00009454cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009455/* confdefs.h. */
9456_ACEOF
9457cat confdefs.h >>conftest.$ac_ext
9458cat >>conftest.$ac_ext <<_ACEOF
9459/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00009460#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00009461int
9462main ()
9463{
9464socklen_t xxx = 0;
9465 ;
9466 return 0;
9467}
9468_ACEOF
9469rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009470if { (ac_try="$ac_compile"
9471case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9474esac
9475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_compile") 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00009477 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009478 grep -v '^ *+' conftest.er1 >conftest.err
9479 rm -f conftest.er1
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009482 (exit $ac_status); } && {
9483 test -z "$ac_c_werror_flag" ||
9484 test ! -s conftest.err
9485 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009486 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009487#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009488_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009489
Benny Prijono0822c192008-08-21 20:59:58 +00009490 { echo "$as_me:$LINENO: result: yes" >&5
9491echo "${ECHO_T}yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00009492else
9493 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009494sed 's/^/| /' conftest.$ac_ext >&5
9495
Benny Prijono0822c192008-08-21 20:59:58 +00009496 { echo "$as_me:$LINENO: result: no" >&5
9497echo "${ECHO_T}no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00009498fi
Benny Prijono30f85c62006-09-09 20:05:33 +00009499
Benny Prijono0822c192008-08-21 20:59:58 +00009500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9501
9502{ echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
9503echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009504case $target in
9505 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009506 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009507#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009508_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009509
Benny Prijono0822c192008-08-21 20:59:58 +00009510 { echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009512 ;;
9513 *)
9514 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009515/* confdefs.h. */
9516_ACEOF
9517cat confdefs.h >>conftest.$ac_ext
9518cat >>conftest.$ac_ext <<_ACEOF
9519/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009520#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009521 #include <sys/socket.h>
9522 #include <netinet/in.h>
9523 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009524int
9525main ()
9526{
9527int i=SO_ERROR;
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009533if { (ac_try="$ac_compile"
9534case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537esac
9538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009540 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009545 (exit $ac_status); } && {
9546 test -z "$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009549 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009550#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009551_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009552
Benny Prijono0822c192008-08-21 20:59:58 +00009553 { echo "$as_me:$LINENO: result: yes" >&5
9554echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009555else
9556 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009557sed 's/^/| /' conftest.$ac_ext >&5
9558
Benny Prijono0822c192008-08-21 20:59:58 +00009559 { echo "$as_me:$LINENO: result: no" >&5
9560echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009561fi
Benny Prijono0822c192008-08-21 20:59:58 +00009562
9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009564 ;;
9565esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009566
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009567
Benny Prijono0822c192008-08-21 20:59:58 +00009568{ echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
9569echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009570cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009571/* confdefs.h. */
9572_ACEOF
9573cat confdefs.h >>conftest.$ac_ext
9574cat >>conftest.$ac_ext <<_ACEOF
9575/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009576#include <pthread.h>
9577int
9578main ()
9579{
9580pthread_rwlock_t *x;
9581 ;
9582 return 0;
9583}
9584_ACEOF
9585rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009586if { (ac_try="$ac_compile"
9587case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590esac
9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009593 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009602 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009603#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009604_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009605
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009606 ac_rwmutex="yes"
Benny Prijono0822c192008-08-21 20:59:58 +00009607 { echo "$as_me:$LINENO: result: yes" >&5
9608echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009609else
9610 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009611sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009612
Benny Prijono0822c192008-08-21 20:59:58 +00009613 cat >>confdefs.h <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009614#define PJ_EMULATE_RWMUTEX 1
9615_ACEOF
9616
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009617 ac_rwmutex="no"
Benny Prijono0822c192008-08-21 20:59:58 +00009618 { echo "$as_me:$LINENO: result: no" >&5
9619echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009620fi
Benny Prijono0822c192008-08-21 20:59:58 +00009621
9622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009623
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009624if test "$ac_rwmutex" = "no"; then
Benny Prijono0822c192008-08-21 20:59:58 +00009625 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
9626echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009627 cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633#define _POSIX_READER_WRITER_LOCKS
9634 #include <pthread.h>
9635int
9636main ()
9637{
9638pthread_rwlock_t *x;
9639 ;
9640 return 0;
9641}
9642_ACEOF
9643rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009644if { (ac_try="$ac_compile"
9645case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9648esac
9649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009656 (exit $ac_status); } && {
9657 test -z "$ac_c_werror_flag" ||
9658 test ! -s conftest.err
9659 } && test -s conftest.$ac_objext; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009660 cat >>confdefs.h <<\_ACEOF
9661#define PJ_EMULATE_RWMUTEX 0
9662_ACEOF
9663
9664 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono0822c192008-08-21 20:59:58 +00009665 { echo "$as_me:$LINENO: result: yes" >&5
9666echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009667else
9668 echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
Benny Prijono0822c192008-08-21 20:59:58 +00009671 cat >>confdefs.h <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009672#define PJ_EMULATE_RWMUTEX 1
9673_ACEOF
9674
Benny Prijono0822c192008-08-21 20:59:58 +00009675 { echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009677fi
9678
Benny Prijono0822c192008-08-21 20:59:58 +00009679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9680fi
9681
9682{ echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
9683echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009684cat >conftest.$ac_ext <<_ACEOF
9685/* confdefs.h. */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h. */
9690#include <pthread.h>
9691int
9692main ()
9693{
9694pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009700if { (ac_try="$ac_compile"
9701case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704esac
9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest.$ac_objext; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009716 cat >>confdefs.h <<\_ACEOF
9717#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
9718_ACEOF
9719
Benny Prijono0822c192008-08-21 20:59:58 +00009720 { echo "$as_me:$LINENO: result: yes" >&5
9721echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009722else
9723 echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
Benny Prijono0822c192008-08-21 20:59:58 +00009726 { echo "$as_me:$LINENO: result: no" >&5
9727echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009728fi
9729
Benny Prijono0822c192008-08-21 20:59:58 +00009730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731
9732{ echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
9733echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009734cat >conftest.$ac_ext <<_ACEOF
9735/* confdefs.h. */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h. */
9740#include <pthread.h>
9741int
9742main ()
9743{
9744pthread_mutexattr_t attr;
9745 attr.recursive=1;
9746 ;
9747 return 0;
9748}
9749_ACEOF
9750rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009751if { (ac_try="$ac_compile"
9752case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755esac
9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009758 ac_status=$?
9759 grep -v '^ *+' conftest.er1 >conftest.err
9760 rm -f conftest.er1
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009763 (exit $ac_status); } && {
9764 test -z "$ac_c_werror_flag" ||
9765 test ! -s conftest.err
9766 } && test -s conftest.$ac_objext; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009767 cat >>confdefs.h <<\_ACEOF
9768#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
9769_ACEOF
9770
Benny Prijono0822c192008-08-21 20:59:58 +00009771 { echo "$as_me:$LINENO: result: yes" >&5
9772echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009773else
9774 echo "$as_me: failed program was:" >&5
9775sed 's/^/| /' conftest.$ac_ext >&5
9776
Benny Prijono0822c192008-08-21 20:59:58 +00009777 { echo "$as_me:$LINENO: result: no" >&5
9778echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009779fi
Benny Prijono0822c192008-08-21 20:59:58 +00009780
9781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009782
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009783
9784case $target in
9785 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00009786 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 ioqueue_select.o"
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009787 ;;
9788 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00009789 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 ioqueue_select.o"
9790 # UUID
9791 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
9792 ac_os_objs="$ac_os_objs guid_uuid.o"
9793 else
9794 ac_os_objs="$ac_os_objs guid_simple.o"
9795 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009796 ;;
9797esac
9798
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009799
9800
9801
Benny Prijono4e48b512007-05-16 13:41:00 +00009802
Benny Prijono0822c192008-08-21 20:59:58 +00009803# Check whether --enable-sound was given.
Benny Prijono1d971622006-09-10 22:27:40 +00009804if test "${enable_sound+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00009805 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00009806 ac_pjmedia_snd=null
Benny Prijono0822c192008-08-21 20:59:58 +00009807 { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
9808echo "${ECHO_T}Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00009809 fi
9810
Benny Prijono0822c192008-08-21 20:59:58 +00009811fi
9812
Benny Prijono1d971622006-09-10 22:27:40 +00009813
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009814
Benny Prijono27c98722007-04-09 21:28:15 +00009815if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00009816 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9817echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009818if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820fi
Benny Prijono0822c192008-08-21 20:59:58 +00009821{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9822echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009823else
9824 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00009825{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9826echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009827cat >conftest.$ac_ext <<_ACEOF
9828/* confdefs.h. */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h. */
9833$ac_includes_default
9834#include <sys/soundcard.h>
9835_ACEOF
9836rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009837if { (ac_try="$ac_compile"
9838case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841esac
9842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_compile") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest.$ac_objext; then
Benny Prijono27c98722007-04-09 21:28:15 +00009853 ac_header_compiler=yes
9854else
9855 echo "$as_me: failed program was:" >&5
9856sed 's/^/| /' conftest.$ac_ext >&5
9857
Benny Prijono0822c192008-08-21 20:59:58 +00009858 ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009859fi
Benny Prijono0822c192008-08-21 20:59:58 +00009860
9861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9863echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009864
9865# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00009866{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9867echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009868cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874#include <sys/soundcard.h>
9875_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +00009876if { (ac_try="$ac_cpp conftest.$ac_ext"
9877case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009888 (exit $ac_status); } >/dev/null && {
9889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009892 ac_header_preproc=yes
9893else
9894 echo "$as_me: failed program was:" >&5
9895sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ac_header_preproc=no
9898fi
Benny Prijono0822c192008-08-21 20:59:58 +00009899
Benny Prijono27c98722007-04-09 21:28:15 +00009900rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00009901{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9902echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009903
9904# So? What about this header?
9905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906 yes:no: )
9907 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9908echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9910echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9911 ac_header_preproc=yes
9912 ;;
9913 no:yes:* )
9914 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9915echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9917echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9919echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9921echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9923echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9925echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +00009926
Benny Prijono27c98722007-04-09 21:28:15 +00009927 ;;
9928esac
Benny Prijono0822c192008-08-21 20:59:58 +00009929{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9930echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009931if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9935fi
Benny Prijono0822c192008-08-21 20:59:58 +00009936{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9937echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009938
9939fi
9940if test $ac_cv_header_sys_soundcard_h = yes; then
9941 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
9942fi
9943
9944
9945if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +00009946 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9947echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009948if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950fi
Benny Prijono0822c192008-08-21 20:59:58 +00009951{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9952echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009953else
9954 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +00009955{ echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
9956echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009957cat >conftest.$ac_ext <<_ACEOF
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
9963$ac_includes_default
9964#include <linux/soundcard.h>
9965_ACEOF
9966rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +00009967if { (ac_try="$ac_compile"
9968case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_compile") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +00009979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest.$ac_objext; then
Benny Prijono27c98722007-04-09 21:28:15 +00009983 ac_header_compiler=yes
9984else
9985 echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
Benny Prijono0822c192008-08-21 20:59:58 +00009988 ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009989fi
Benny Prijono0822c192008-08-21 20:59:58 +00009990
9991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9993echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009994
9995# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +00009996{ echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
9997echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h. */
10004#include <linux/soundcard.h>
10005_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000010006if { (ac_try="$ac_cpp conftest.$ac_ext"
10007case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010esac
10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000010018 (exit $ac_status); } >/dev/null && {
10019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 }; then
Benny Prijono27c98722007-04-09 21:28:15 +000010022 ac_header_preproc=yes
10023else
10024 echo "$as_me: failed program was:" >&5
10025sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 ac_header_preproc=no
10028fi
Benny Prijono0822c192008-08-21 20:59:58 +000010029
Benny Prijono27c98722007-04-09 21:28:15 +000010030rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000010031{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10032echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010033
10034# So? What about this header?
10035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10036 yes:no: )
10037 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10038echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
10040echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
10041 ac_header_preproc=yes
10042 ;;
10043 no:yes:* )
10044 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
10045echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
10047echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
10049echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10051echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
10053echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
10055echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +000010056
Benny Prijono27c98722007-04-09 21:28:15 +000010057 ;;
10058esac
Benny Prijono0822c192008-08-21 20:59:58 +000010059{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
10060echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010061if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063else
10064 ac_cv_header_linux_soundcard_h=$ac_header_preproc
10065fi
Benny Prijono0822c192008-08-21 20:59:58 +000010066{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
10067echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010068
10069fi
10070if test $ac_cv_header_linux_soundcard_h = yes; then
10071 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
10072fi
10073
10074
10075if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010076 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
10077echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010078if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080fi
Benny Prijono0822c192008-08-21 20:59:58 +000010081{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
10082echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010083else
10084 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +000010085{ echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
10086echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010087cat >conftest.$ac_ext <<_ACEOF
10088/* confdefs.h. */
10089_ACEOF
10090cat confdefs.h >>conftest.$ac_ext
10091cat >>conftest.$ac_ext <<_ACEOF
10092/* end confdefs.h. */
10093$ac_includes_default
10094#include <machine/soundcard.h>
10095_ACEOF
10096rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +000010097if { (ac_try="$ac_compile"
10098case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101esac
10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_compile") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000010109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest.$ac_objext; then
Benny Prijono27c98722007-04-09 21:28:15 +000010113 ac_header_compiler=yes
10114else
10115 echo "$as_me: failed program was:" >&5
10116sed 's/^/| /' conftest.$ac_ext >&5
10117
Benny Prijono0822c192008-08-21 20:59:58 +000010118 ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +000010119fi
Benny Prijono0822c192008-08-21 20:59:58 +000010120
10121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10123echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010124
10125# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +000010126{ echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
10127echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010128cat >conftest.$ac_ext <<_ACEOF
10129/* confdefs.h. */
10130_ACEOF
10131cat confdefs.h >>conftest.$ac_ext
10132cat >>conftest.$ac_ext <<_ACEOF
10133/* end confdefs.h. */
10134#include <machine/soundcard.h>
10135_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000010136if { (ac_try="$ac_cpp conftest.$ac_ext"
10137case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140esac
10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000010148 (exit $ac_status); } >/dev/null && {
10149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 }; then
Benny Prijono27c98722007-04-09 21:28:15 +000010152 ac_header_preproc=yes
10153else
10154 echo "$as_me: failed program was:" >&5
10155sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 ac_header_preproc=no
10158fi
Benny Prijono0822c192008-08-21 20:59:58 +000010159
Benny Prijono27c98722007-04-09 21:28:15 +000010160rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000010161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10162echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010163
10164# So? What about this header?
10165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10166 yes:no: )
10167 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10168echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
10170echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
10171 ac_header_preproc=yes
10172 ;;
10173 no:yes:* )
10174 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
10175echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
10177echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
10179echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10181echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
10183echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
10185echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +000010186
Benny Prijono27c98722007-04-09 21:28:15 +000010187 ;;
10188esac
Benny Prijono0822c192008-08-21 20:59:58 +000010189{ echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
10190echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010191if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 ac_cv_header_machine_soundcard_h=$ac_header_preproc
10195fi
Benny Prijono0822c192008-08-21 20:59:58 +000010196{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
10197echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +000010198
10199fi
10200if test $ac_cv_header_machine_soundcard_h = yes; then
10201 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
10202fi
10203
10204
10205
Benny Prijono3e091672008-01-09 15:43:02 +000010206if test "x$ac_cv_c_bigendian" = "xyes"; then
10207 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
10208else
10209 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
10210fi
10211
Benny Prijono1d971622006-09-10 22:27:40 +000010212if test "$enable_sound" = "no"; then
10213 true;
10214else
10215 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +000010216 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000010217 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
10218 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010219 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000010220 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
10221 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono0822c192008-08-21 20:59:58 +000010222 { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
10223echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000010224 else
10225 ac_pjmedia_snd=pa_darwinos
Benny Prijono0822c192008-08-21 20:59:58 +000010226 { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
10227echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000010228 fi
Benny Prijonob466e232006-09-10 08:53:59 +000010229 ;;
10230 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010231 ac_pjmedia_snd=pa_win32
Benny Prijono0822c192008-08-21 20:59:58 +000010232 { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
10233echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010234 ;;
10235 *rtems*)
10236 ac_pjmedia_snd=null
Benny Prijono0822c192008-08-21 20:59:58 +000010237 { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
10238echo "${ECHO_T}Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010239 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010240 *)
Benny Prijono0b462322008-03-12 22:44:24 +000010241 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010242 if test "${ac_cv_header_alsa_version_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010243 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10244echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010245if test "${ac_cv_header_alsa_version_h+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010247fi
Benny Prijono0822c192008-08-21 20:59:58 +000010248{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10249echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010250else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010251 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +000010252{ echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
10253echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010254cat >conftest.$ac_ext <<_ACEOF
10255/* confdefs.h. */
10256_ACEOF
10257cat confdefs.h >>conftest.$ac_ext
10258cat >>conftest.$ac_ext <<_ACEOF
10259/* end confdefs.h. */
10260$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010261#include <alsa/version.h>
10262_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010263rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +000010264if { (ac_try="$ac_compile"
10265case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268esac
10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010271 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010272 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010273 rm -f conftest.er1
10274 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000010276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010280 ac_header_compiler=yes
10281else
10282 echo "$as_me: failed program was:" >&5
10283sed 's/^/| /' conftest.$ac_ext >&5
10284
Benny Prijono0822c192008-08-21 20:59:58 +000010285 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010286fi
Benny Prijono0822c192008-08-21 20:59:58 +000010287
10288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10290echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010291
10292# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +000010293{ echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
10294echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010295cat >conftest.$ac_ext <<_ACEOF
10296/* confdefs.h. */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h. */
10301#include <alsa/version.h>
10302_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000010303if { (ac_try="$ac_cpp conftest.$ac_ext"
10304case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10307esac
10308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000010315 (exit $ac_status); } >/dev/null && {
10316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10317 test ! -s conftest.err
10318 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010319 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010320else
10321 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010322sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010325fi
Benny Prijono0822c192008-08-21 20:59:58 +000010326
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010327rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000010328{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10329echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010330
10331# So? What about this header?
10332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10333 yes:no: )
10334 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10335echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
10337echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
10338 ac_header_preproc=yes
10339 ;;
10340 no:yes:* )
10341 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
10342echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
10344echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
10346echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
10348echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
10350echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
10352echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +000010353
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010354 ;;
10355esac
Benny Prijono0822c192008-08-21 20:59:58 +000010356{ echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10357echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010358if test "${ac_cv_header_alsa_version_h+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360else
10361 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010362fi
Benny Prijono0822c192008-08-21 20:59:58 +000010363{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10364echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010365
10366fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010367if test $ac_cv_header_alsa_version_h = yes; then
10368 ac_pa_use_alsa=1
10369
10370 LIBS="$LIBS -lasound"
10371
10372else
10373 ac_pa_use_alsa=0
10374
10375fi
10376
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010377
Benny Prijono0822c192008-08-21 20:59:58 +000010378 { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
10379echo "${ECHO_T}Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000010380
10381 ac_pa_use_oss=1
10382
Benny Prijono0822c192008-08-21 20:59:58 +000010383 # Check whether --enable-oss was given.
Benny Prijono0b462322008-03-12 22:44:24 +000010384if test "${enable_oss+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010385 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +000010386 if test "$enable_oss" = "no"; then
10387 ac_pa_use_oss=0
Benny Prijono0822c192008-08-21 20:59:58 +000010388 { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
10389echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000010390 fi
10391
Benny Prijono0822c192008-08-21 20:59:58 +000010392fi
10393
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010394 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000010395 esac
10396fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010397
Benny Prijono0822c192008-08-21 20:59:58 +000010398# Check whether --enable-ext_sound was given.
Benny Prijonoebb2c332008-07-28 23:40:58 +000010399if test "${enable_ext_sound+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010400 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +000010401 ac_pjmedia_snd=external
Benny Prijono0822c192008-08-21 20:59:58 +000010402 { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5
10403echo "${ECHO_T}Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +000010404 fi
10405
Benny Prijono0822c192008-08-21 20:59:58 +000010406fi
Benny Prijonoebb2c332008-07-28 23:40:58 +000010407
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010408
Benny Prijono0822c192008-08-21 20:59:58 +000010409
10410# Check whether --enable-small-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010411if test "${enable_small_filter+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010412 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010413 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono0822c192008-08-21 20:59:58 +000010414 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
10415echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010416 fi
10417else
Benny Prijono0822c192008-08-21 20:59:58 +000010418 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
10419echo "${ECHO_T}Checking if small filter is disabled... no" >&6; }
10420fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010421
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010422
Benny Prijono0822c192008-08-21 20:59:58 +000010423
10424# Check whether --enable-large-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010425if test "${enable_large_filter+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010426 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010427 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono0822c192008-08-21 20:59:58 +000010428 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
10429echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010430 fi
10431else
Benny Prijono0822c192008-08-21 20:59:58 +000010432 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
10433echo "${ECHO_T}Checking if large filter is disabled... no" >&6; }
10434fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010435
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010436
Benny Prijono0822c192008-08-21 20:59:58 +000010437
10438# Check whether --enable-speex-aec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010439if test "${enable_speex_aec+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010440 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010441 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono0822c192008-08-21 20:59:58 +000010442 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
10443echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010444 fi
10445else
Benny Prijono0822c192008-08-21 20:59:58 +000010446 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
10447echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; }
10448fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010449
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010450
Benny Prijono0822c192008-08-21 20:59:58 +000010451
10452# Check whether --enable-g711-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010453if test "${enable_g711_codec+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010454 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010455 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010456 cat >>confdefs.h <<\_ACEOF
10457#define PJMEDIA_HAS_G711_CODEC 0
10458_ACEOF
10459
Benny Prijono0822c192008-08-21 20:59:58 +000010460 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
10461echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010462 fi
10463else
Benny Prijono0822c192008-08-21 20:59:58 +000010464 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
10465echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; }
10466fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010467
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010468
10469
Benny Prijono0822c192008-08-21 20:59:58 +000010470
10471# Check whether --enable-l16-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010472if test "${enable_l16_codec+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010473 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010474 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010475 cat >>confdefs.h <<\_ACEOF
10476#define PJMEDIA_HAS_L16_CODEC 0
10477_ACEOF
10478
Benny Prijono0822c192008-08-21 20:59:58 +000010479 { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
10480echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010481 fi
10482else
Benny Prijono0822c192008-08-21 20:59:58 +000010483 { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
10484echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; }
10485fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010486
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010487
10488
Benny Prijono0822c192008-08-21 20:59:58 +000010489
10490# Check whether --enable-gsm-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010491if test "${enable_gsm_codec+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010492 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010493 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010494 cat >>confdefs.h <<\_ACEOF
10495#define PJMEDIA_HAS_GSM_CODEC 0
10496_ACEOF
10497
Benny Prijono0822c192008-08-21 20:59:58 +000010498 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
10499echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010500 fi
10501else
Benny Prijono0822c192008-08-21 20:59:58 +000010502 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
10503echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; }
10504fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010505
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010506
Benny Prijono0822c192008-08-21 20:59:58 +000010507
10508# Check whether --enable-g722-codec was given.
Benny Prijono71f657d2008-03-17 14:24:21 +000010509if test "${enable_g722_codec+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010510 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +000010511 ac_no_g722_codec=1
10512 cat >>confdefs.h <<\_ACEOF
10513#define PJMEDIA_HAS_G722_CODEC 0
10514_ACEOF
10515
Benny Prijono0822c192008-08-21 20:59:58 +000010516 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
10517echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +000010518 fi
10519else
Benny Prijono0822c192008-08-21 20:59:58 +000010520 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
10521echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; }
10522fi
Benny Prijono71f657d2008-03-17 14:24:21 +000010523
10524
Benny Prijono0822c192008-08-21 20:59:58 +000010525
10526# Check whether --enable-speex-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010527if test "${enable_speex_codec+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010528 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010529 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010530 cat >>confdefs.h <<\_ACEOF
10531#define PJMEDIA_HAS_SPEEX_CODEC 0
10532_ACEOF
10533
Benny Prijono0822c192008-08-21 20:59:58 +000010534 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
10535echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010536 fi
10537else
Benny Prijono0822c192008-08-21 20:59:58 +000010538 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
10539echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; }
10540fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010541
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010542
Benny Prijono0822c192008-08-21 20:59:58 +000010543
10544# Check whether --enable-ilbc-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010545if test "${enable_ilbc_codec+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010546 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010547 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010548 cat >>confdefs.h <<\_ACEOF
10549#define PJMEDIA_HAS_ILBC_CODEC 0
10550_ACEOF
10551
Benny Prijono0822c192008-08-21 20:59:58 +000010552 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
10553echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010554 fi
10555else
Benny Prijono0822c192008-08-21 20:59:58 +000010556 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
10557echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; }
10558fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010559
Benny Prijono0822c192008-08-21 20:59:58 +000010560
10561# Check whether --enable-libsamplerate was given.
Benny Prijono550a1a62007-10-16 08:54:00 +000010562if test "${enable_libsamplerate+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010563 enableval=$enable_libsamplerate;
10564{ echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
10565echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000010566if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568else
10569 ac_check_lib_save_LIBS=$LIBS
10570LIBS="-lsamplerate $LIBS"
10571cat >conftest.$ac_ext <<_ACEOF
10572/* confdefs.h. */
10573_ACEOF
10574cat confdefs.h >>conftest.$ac_ext
10575cat >>conftest.$ac_ext <<_ACEOF
10576/* end confdefs.h. */
10577
Benny Prijono0822c192008-08-21 20:59:58 +000010578/* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010581#ifdef __cplusplus
10582extern "C"
10583#endif
Benny Prijono550a1a62007-10-16 08:54:00 +000010584char src_new ();
10585int
10586main ()
10587{
Benny Prijono0822c192008-08-21 20:59:58 +000010588return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000010589 ;
10590 return 0;
10591}
10592_ACEOF
10593rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +000010594if { (ac_try="$ac_link"
10595case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598esac
10599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
Benny Prijono550a1a62007-10-16 08:54:00 +000010601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000010606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
Benny Prijono550a1a62007-10-16 08:54:00 +000010611 ac_cv_lib_samplerate_src_new=yes
10612else
10613 echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
Benny Prijono0822c192008-08-21 20:59:58 +000010616 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000010617fi
Benny Prijono0822c192008-08-21 20:59:58 +000010618
10619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono550a1a62007-10-16 08:54:00 +000010620 conftest$ac_exeext conftest.$ac_ext
10621LIBS=$ac_check_lib_save_LIBS
10622fi
Benny Prijono0822c192008-08-21 20:59:58 +000010623{ echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
10624echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000010625if test $ac_cv_lib_samplerate_src_new = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627#define HAVE_LIBSAMPLERATE 1
10628_ACEOF
10629
10630 LIBS="-lsamplerate $LIBS"
10631
10632fi
10633
10634else
Benny Prijono0822c192008-08-21 20:59:58 +000010635 { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
10636echo "${ECHO_T}Skipping libsamplerate detection" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000010637
Benny Prijono0822c192008-08-21 20:59:58 +000010638fi
10639
10640
10641
10642# Check whether --enable-ipp was given.
10643if test "${enable_ipp+set}" = set; then
10644 enableval=$enable_ipp;
10645else
10646 enable_ipp=no
10647
10648fi
10649
10650
10651# Check whether --enable-ipp was given.
10652if test "${enable_ipp+set}" = set; then
10653 enableval=$enable_ipp;
10654else
10655 with_ipp=no
10656
10657fi
10658
10659
10660# Check whether --enable-ipp-samples was given.
10661if test "${enable_ipp_samples+set}" = set; then
10662 enableval=$enable_ipp_samples;
10663else
10664 with_ipp_samples=no
10665
10666fi
10667
10668
10669if test "x$enable_ipp" != "xno"; then
10670 { echo "$as_me:$LINENO: checking Intel IPP location" >&5
10671echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; }
10672
10673 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
10674 { echo "$as_me:$LINENO: result: $with_ipp" >&5
10675echo "${ECHO_T}$with_ipp" >&6; }
10676 IPPROOT=$with_ipp
10677 elif test "x$IPPROOT" = "x"; then
10678 if test -d /opt/intel/ipp; then
10679 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
10680 { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5
10681echo "${ECHO_T}autodetected in $IPPROOT" >&6; }
10682 fi
10683 else
10684 { echo "$as_me:$LINENO: result: $IPPROOT" >&5
10685echo "${ECHO_T}$IPPROOT" >&6; }
10686 fi
10687
10688 if test x$IPPROOT = x; then
10689 { { 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
10690echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;}
10691 { (exit 1); exit 1; }; }
10692 elif test ! -d $IPPROOT; then
10693 { { echo "$as_me:$LINENO: error: not found" >&5
10694echo "$as_me: error: not found" >&2;}
10695 { (exit 1); exit 1; }; }
10696 elif test ! -d $IPPROOT/include; then
10697 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
10698echo "$as_me: error: directory doesn't seem to be valid" >&2;}
10699 { (exit 1); exit 1; }; }
10700 else
10701 # IPP directory looks okay.
10702 # Remove trailing backslash
10703 IPPROOT=`echo $IPPROOT/ | sed 's/\/$//'`
10704
10705 SAVED_CFLAGS="$CFLAGS"
10706 SAVED_LDFLAGS="$LDFLAGS"
10707 SAVED_LIBS="$LIBS"
10708
10709 IPP_CFLAGS="-I$IPPROOT/include"
10710 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
10711 IPP_LIBS="-lippsc -lipps -lippsr -lippcore -lguide"
10712 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
10713 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
10714
10715 CFLAGS="$CFLAGS $IPP_CFLAGS"
10716 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
10717 LIBS="$IPP_LIBS $LIBS"
10718
10719
10720 { echo "$as_me:$LINENO: checking Intel IPP usability" >&5
10721echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; }
10722 cat >conftest.$ac_ext <<_ACEOF
10723/* confdefs.h. */
10724_ACEOF
10725cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF
10727/* end confdefs.h. */
10728#include <ippcore.h>
10729
10730int
10731main ()
10732{
10733ippStaticInit();
10734 ;
10735 return 0;
10736}
10737_ACEOF
10738rm -f conftest.$ac_objext conftest$ac_exeext
10739if { (ac_try="$ac_link"
10740case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10743esac
10744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745 (eval "$ac_link") 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && {
10752 test -z "$ac_c_werror_flag" ||
10753 test ! -s conftest.err
10754 } && test -s conftest$ac_exeext &&
10755 $as_test_x conftest$ac_exeext; then
10756 { echo "$as_me:$LINENO: result: ok" >&5
10757echo "${ECHO_T}ok" >&6; }
10758else
10759 echo "$as_me: failed program was:" >&5
10760sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 { { echo "$as_me:$LINENO: error: failed
10763See \`config.log' for more details." >&5
10764echo "$as_me: error: failed
10765See \`config.log' for more details." >&2;}
10766 { (exit 1); exit 1; }; }
10767fi
10768
10769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10770 conftest$ac_exeext conftest.$ac_ext
10771
10772 CFLAGS="$SAVED_CFLAGS"
10773 LDFLAGS="$SAVED_LDFLAGS"
10774 LIBS="$SAVED_LIBS"
10775 fi
10776
10777 { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5
10778echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; }
10779
10780 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
10781 { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5
10782echo "${ECHO_T}$with_ipp_samples" >&6; }
10783 IPPSAMPLES=$with_ipp_samples
10784 elif test "x$IPPSAMPLES" = "x"; then
10785 if test -d /opt/intel/ipp-samples; then
10786 IPPSAMPLES=/opt/intel/ipp-samples
10787 { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5
10788echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; }
10789 fi
10790 else
10791 { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5
10792echo "${ECHO_T}$IPPSAMPLES" >&6; }
10793 fi
10794
10795 if test x$IPPSAMPLES = x; then
10796 { { 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
10797echo "$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;}
10798 { (exit 1); exit 1; }; }
10799 elif test ! -d $IPPSAMPLES; then
10800 { { echo "$as_me:$LINENO: error: not found" >&5
10801echo "$as_me: error: not found" >&2;}
10802 { (exit 1); exit 1; }; }
10803 elif test ! -d $IPPSAMPLES/speech-codecs; then
10804 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
10805echo "$as_me: error: directory doesn't seem to be valid" >&2;}
10806 { (exit 1); exit 1; }; }
10807 else
10808 # Remove trailing backslash
10809 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
10810
10811 # Guess the libusc.a build location
10812 { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5
10813echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; }
10814 IPPSAMPLESLIB=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
10815 if test ! -d $IPPSAMPLESLIB; then
10816 { { echo "$as_me:$LINENO: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples?
10817See \`config.log' for more details." >&5
10818echo "$as_me: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples?
10819See \`config.log' for more details." >&2;}
10820 { (exit 1); exit 1; }; }
10821 fi
10822 if test ! -f $IPPSAMPLESLIB/libusc.a; then
10823 { { echo "$as_me:$LINENO: error: libusc.a doesn't exist in $IPPSAMPLESLIB
10824See \`config.log' for more details." >&5
10825echo "$as_me: error: libusc.a doesn't exist in $IPPSAMPLESLIB
10826See \`config.log' for more details." >&2;}
10827 { (exit 1); exit 1; }; }
10828 fi
10829 { echo "$as_me:$LINENO: result: $IPPSAMPLESLIB" >&5
10830echo "${ECHO_T}$IPPSAMPLESLIB" >&6; }
10831
10832 SAVED_CFLAGS="$CFLAGS"
10833 SAVED_LDFLAGS="$LDFLAGS"
10834 SAVED_LIBS="$LIBS"
10835
10836 IPPSAMPLESINC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
10837 CFLAGS="$CFLAGS $IPPSAMPLESINC"
10838 LDFLAGS="$LDFLAGS -L$IPPSAMPLESLIB"
10839 LIBS="-lusc $LIBS"
10840
10841 { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5
10842echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; }
10843 cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h. */
10849#include <usc.h>
10850
10851int
10852main ()
10853{
10854extern USC_Fxns USC_G729AFP_Fxns;
10855 ;
10856 return 0;
10857}
10858_ACEOF
10859rm -f conftest.$ac_objext conftest$ac_exeext
10860if { (ac_try="$ac_link"
10861case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_link") 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest$ac_exeext &&
10876 $as_test_x conftest$ac_exeext; then
10877 { echo "$as_me:$LINENO: result: ok" >&5
10878echo "${ECHO_T}ok" >&6; }
10879else
10880 echo "$as_me: failed program was:" >&5
10881sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 { { echo "$as_me:$LINENO: error: failed
10884See \`config.log' for more details." >&5
10885echo "$as_me: error: failed
10886See \`config.log' for more details." >&2;}
10887 { (exit 1); exit 1; }; }
10888fi
10889
10890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10891 conftest$ac_exeext conftest.$ac_ext
10892
10893 CFLAGS="$SAVED_CFLAGS"
10894 LDFLAGS="\$(IPP_LDFLAGS) $SAVED_LDFLAGS"
10895 LIBS="\$(IPP_LIBS) $SAVED_LIBS"
10896
10897 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMPLESINC"
10898 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMPLESLIB"
10899 IPP_LIBS="-lusc $IPP_LIBS"
10900 fi
10901
10902 ac_build_mak_vars="$ac_build_mak_vars\n\
10903export IPP_CFLAGS=$IPP_CFLAGS\n\
10904export IPP_LDFLAGS=$IPP_LDFLAGS\n\
10905export IPP_LIBS=$IPP_LIBS"
10906else
10907 { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5
10908echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; }
10909fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010910
10911
10912
10913
Benny Prijono0822c192008-08-21 20:59:58 +000010914# Check whether --enable-ssl was given.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010915if test "${enable_ssl+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010916 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010917 if test "$enable_ssl" = "no"; then
10918 ac_no_ssl=1
Benny Prijono0822c192008-08-21 20:59:58 +000010919 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
10920echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010921 fi
10922
10923else
10924
Benny Prijono0822c192008-08-21 20:59:58 +000010925 { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
10926echo "${ECHO_T}checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010927
10928
10929
10930 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
Benny Prijono0822c192008-08-21 20:59:58 +000010931 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10932echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010933if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10935fi
Benny Prijono0822c192008-08-21 20:59:58 +000010936{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10937echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010938else
10939 # Is the header compilable?
Benny Prijono0822c192008-08-21 20:59:58 +000010940{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10941echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010942cat >conftest.$ac_ext <<_ACEOF
10943/* confdefs.h. */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
10947/* end confdefs.h. */
10948$ac_includes_default
10949#include <openssl/ssl.h>
10950_ACEOF
10951rm -f conftest.$ac_objext
Benny Prijono0822c192008-08-21 20:59:58 +000010952if { (ac_try="$ac_compile"
10953case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956esac
10957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010959 ac_status=$?
10960 grep -v '^ *+' conftest.er1 >conftest.err
10961 rm -f conftest.er1
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000010964 (exit $ac_status); } && {
10965 test -z "$ac_c_werror_flag" ||
10966 test ! -s conftest.err
10967 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010968 ac_header_compiler=yes
10969else
10970 echo "$as_me: failed program was:" >&5
10971sed 's/^/| /' conftest.$ac_ext >&5
10972
Benny Prijono0822c192008-08-21 20:59:58 +000010973 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010974fi
Benny Prijono0822c192008-08-21 20:59:58 +000010975
10976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10978echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010979
10980# Is the header present?
Benny Prijono0822c192008-08-21 20:59:58 +000010981{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10982echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010983cat >conftest.$ac_ext <<_ACEOF
10984/* confdefs.h. */
10985_ACEOF
10986cat confdefs.h >>conftest.$ac_ext
10987cat >>conftest.$ac_ext <<_ACEOF
10988/* end confdefs.h. */
10989#include <openssl/ssl.h>
10990_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000010991if { (ac_try="$ac_cpp conftest.$ac_ext"
10992case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995esac
10996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000011003 (exit $ac_status); } >/dev/null && {
11004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011007 ac_header_preproc=yes
11008else
11009 echo "$as_me: failed program was:" >&5
11010sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 ac_header_preproc=no
11013fi
Benny Prijono0822c192008-08-21 20:59:58 +000011014
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011015rm -f conftest.err conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000011016{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11017echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011018
11019# So? What about this header?
11020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11021 yes:no: )
11022 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11023echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11025echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11026 ac_header_preproc=yes
11027 ;;
11028 no:yes:* )
11029 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11030echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11032echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11034echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11036echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11038echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11040echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0822c192008-08-21 20:59:58 +000011041
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011042 ;;
11043esac
Benny Prijono0822c192008-08-21 20:59:58 +000011044{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11045echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011046if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11050fi
Benny Prijono0822c192008-08-21 20:59:58 +000011051{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11052echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011053
11054fi
11055if test $ac_cv_header_openssl_ssl_h = yes; then
11056 openssl_h_present=1
11057fi
11058
11059
Benny Prijono0822c192008-08-21 20:59:58 +000011060 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
11061echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011062if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064else
11065 ac_check_lib_save_LIBS=$LIBS
11066LIBS="-lssl $LIBS"
11067cat >conftest.$ac_ext <<_ACEOF
11068/* confdefs.h. */
11069_ACEOF
11070cat confdefs.h >>conftest.$ac_ext
11071cat >>conftest.$ac_ext <<_ACEOF
11072/* end confdefs.h. */
11073
Benny Prijono0822c192008-08-21 20:59:58 +000011074/* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011077#ifdef __cplusplus
11078extern "C"
11079#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011080char SSL_library_init ();
11081int
11082main ()
11083{
Benny Prijono0822c192008-08-21 20:59:58 +000011084return SSL_library_init ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011085 ;
11086 return 0;
11087}
11088_ACEOF
11089rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +000011090if { (ac_try="$ac_link"
11091case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094esac
11095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_link") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000011102 (exit $ac_status); } && {
11103 test -z "$ac_c_werror_flag" ||
11104 test ! -s conftest.err
11105 } && test -s conftest$ac_exeext &&
11106 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011107 ac_cv_lib_ssl_SSL_library_init=yes
11108else
11109 echo "$as_me: failed program was:" >&5
11110sed 's/^/| /' conftest.$ac_ext >&5
11111
Benny Prijono0822c192008-08-21 20:59:58 +000011112 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011113fi
Benny Prijono0822c192008-08-21 20:59:58 +000011114
11115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011116 conftest$ac_exeext conftest.$ac_ext
11117LIBS=$ac_check_lib_save_LIBS
11118fi
Benny Prijono0822c192008-08-21 20:59:58 +000011119{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
11120echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011121if test $ac_cv_lib_ssl_SSL_library_init = yes; then
11122 libssl_present=1 && LIBS="$LIBS -lssl"
11123fi
11124
Benny Prijono0822c192008-08-21 20:59:58 +000011125 { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
11126echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011127if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130 ac_check_lib_save_LIBS=$LIBS
11131LIBS="-lcrypto $LIBS"
11132cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h. */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h. */
11138
Benny Prijono0822c192008-08-21 20:59:58 +000011139/* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011142#ifdef __cplusplus
11143extern "C"
11144#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011145char ERR_load_BIO_strings ();
11146int
11147main ()
11148{
Benny Prijono0822c192008-08-21 20:59:58 +000011149return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011150 ;
11151 return 0;
11152}
11153_ACEOF
11154rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0822c192008-08-21 20:59:58 +000011155if { (ac_try="$ac_link"
11156case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159esac
11160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_link") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0822c192008-08-21 20:59:58 +000011167 (exit $ac_status); } && {
11168 test -z "$ac_c_werror_flag" ||
11169 test ! -s conftest.err
11170 } && test -s conftest$ac_exeext &&
11171 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011172 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
11173else
11174 echo "$as_me: failed program was:" >&5
11175sed 's/^/| /' conftest.$ac_ext >&5
11176
Benny Prijono0822c192008-08-21 20:59:58 +000011177 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011178fi
Benny Prijono0822c192008-08-21 20:59:58 +000011179
11180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011181 conftest$ac_exeext conftest.$ac_ext
11182LIBS=$ac_check_lib_save_LIBS
11183fi
Benny Prijono0822c192008-08-21 20:59:58 +000011184{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
11185echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011186if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
11187 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
11188fi
11189
11190 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijono0822c192008-08-21 20:59:58 +000011191 { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
11192echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011193 cat >>confdefs.h <<\_ACEOF
11194#define PJSIP_HAS_TLS_TRANSPORT 1
11195_ACEOF
11196
11197 else
Benny Prijono0822c192008-08-21 20:59:58 +000011198 { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
11199echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011200 fi
11201
Benny Prijono0822c192008-08-21 20:59:58 +000011202fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011203
11204
11205
11206
Benny Prijono0822c192008-08-21 20:59:58 +000011207
11208{ echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
11209echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011210case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011211 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011212#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011213_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011214
Benny Prijono0822c192008-08-21 20:59:58 +000011215 { echo "$as_me:$LINENO: result: yes" >&5
11216echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011217 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011218 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011219#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011220_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011221
Benny Prijono0822c192008-08-21 20:59:58 +000011222 { echo "$as_me:$LINENO: result: no (default)" >&5
11223echo "${ECHO_T}no (default)" >&6; }
11224 { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
11225echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011226 ;;
11227esac
11228
Benny Prijono0822c192008-08-21 20:59:58 +000011229{ echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
11230echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011231case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011232 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011233#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011234_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011235
Benny Prijono0822c192008-08-21 20:59:58 +000011236 { echo "$as_me:$LINENO: result: yes" >&5
11237echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011238 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011239 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011240#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011241_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011242
Benny Prijono0822c192008-08-21 20:59:58 +000011243 { echo "$as_me:$LINENO: result: no (default)" >&5
11244echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011245 ;;
11246esac
11247
Benny Prijono0822c192008-08-21 20:59:58 +000011248{ echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
11249echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011250case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011251 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011252#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011253_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011254
Benny Prijono0822c192008-08-21 20:59:58 +000011255 { echo "$as_me:$LINENO: result: yes" >&5
11256echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011257 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011258 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011259#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011260_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011261
Benny Prijono0822c192008-08-21 20:59:58 +000011262 { echo "$as_me:$LINENO: result: no (default)" >&5
11263echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011264 ;;
11265esac
11266
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011267case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011268 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011269 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011270#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011271_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011272
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011273 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011274 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011275#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011276_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011277
Benny Prijono0822c192008-08-21 20:59:58 +000011278 { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
11279echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011280 ;;
11281esac
11282
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011283case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011284 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011285 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011286#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011287_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011288
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011289 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011290 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011291#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011292_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011293
Benny Prijono0822c192008-08-21 20:59:58 +000011294 { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
11295echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011296 ;;
11297esac
11298
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011299
11300
11301
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011302if test "$build" = "$host"; then
11303 ac_cross_compile=
11304else
Benny Prijono5b818b22006-09-17 22:58:51 +000011305 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011306fi
11307ac_linux_poll=select
11308
11309ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011310
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011311
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011312case $target in
11313 *rtems*)
11314 ac_main_obj=main_rtems.o
11315 ;;
11316 *)
11317 ac_main_obj=main.o
11318 ;;
11319esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011320
Benny Prijono0822c192008-08-21 20:59:58 +000011321
11322ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011323cat >confcache <<\_ACEOF
11324# This file is a shell script that caches the results of configure
11325# tests run on this system so they can be shared between configure
11326# scripts and configure runs, see configure's option --config-cache.
11327# It is not useful on other systems. If it contains results you don't
11328# want to keep, you may remove or edit it.
11329#
11330# config.status only pays attention to the cache file if you give it
11331# the --recheck option to rerun configure.
11332#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011333# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011334# loading this file, other *unset* `ac_cv_foo' will be assigned the
11335# following values.
11336
11337_ACEOF
11338
11339# The following way of writing the cache mishandles newlines in values,
11340# but we know of no workaround that is simple, portable, and efficient.
Benny Prijono0822c192008-08-21 20:59:58 +000011341# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011342# Ultrix sh set writes to stderr and can't be redirected directly,
11343# and sets the high bit in the cache file unless we assign to the vars.
Benny Prijono0822c192008-08-21 20:59:58 +000011344(
11345 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11346 eval ac_val=\$$ac_var
11347 case $ac_val in #(
11348 *${as_nl}*)
11349 case $ac_var in #(
11350 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11351echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11352 esac
11353 case $ac_var in #(
11354 _ | IFS | as_nl) ;; #(
11355 *) $as_unset $ac_var ;;
11356 esac ;;
11357 esac
11358 done
11359
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011360 (set) 2>&1 |
Benny Prijono0822c192008-08-21 20:59:58 +000011361 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11362 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011363 # `set' does not quote correctly, so add quotes (double-quote
11364 # substitution turns \\\\ into \\, and sed turns \\ into \).
11365 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011366 "s/'/'\\\\''/g;
11367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijono0822c192008-08-21 20:59:58 +000011368 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011369 *)
11370 # `set' quotes correctly as required by POSIX, so do not add quotes.
Benny Prijono0822c192008-08-21 20:59:58 +000011371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011372 ;;
Benny Prijono0822c192008-08-21 20:59:58 +000011373 esac |
11374 sort
11375) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011376 sed '
Benny Prijono0822c192008-08-21 20:59:58 +000011377 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011378 t clear
Benny Prijono0822c192008-08-21 20:59:58 +000011379 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011380 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11381 t end
Benny Prijono0822c192008-08-21 20:59:58 +000011382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11383 :end' >>confcache
11384if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11385 if test -w "$cache_file"; then
11386 test "x$cache_file" != "x/dev/null" &&
11387 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11388echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011389 cat confcache >$cache_file
11390 else
Benny Prijono0822c192008-08-21 20:59:58 +000011391 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11392echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011393 fi
11394fi
11395rm -f confcache
11396
11397test "x$prefix" = xNONE && prefix=$ac_default_prefix
11398# Let make expand exec_prefix.
11399test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11400
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011401DEFS=-DHAVE_CONFIG_H
11402
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011403ac_libobjs=
11404ac_ltlibobjs=
11405for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11406 # 1. Remove the extension, and $U if already installed.
Benny Prijono0822c192008-08-21 20:59:58 +000011407 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11408 ac_i=`echo "$ac_i" | sed "$ac_script"`
11409 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11410 # will be set to the directory where LIBOBJS objects are built.
11411 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11412 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011413done
11414LIBOBJS=$ac_libobjs
11415
11416LTLIBOBJS=$ac_ltlibobjs
11417
11418
11419
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011420: ${CONFIG_STATUS=./config.status}
11421ac_clean_files_save=$ac_clean_files
11422ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011423{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011424echo "$as_me: creating $CONFIG_STATUS" >&6;}
11425cat >$CONFIG_STATUS <<_ACEOF
11426#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011427# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011428# Run this file to recreate the current configuration.
11429# Compiler output produced by configure, useful for debugging
11430# configure, is in config.log if it exists.
11431
11432debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011433ac_cs_recheck=false
11434ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011435SHELL=\${CONFIG_SHELL-$SHELL}
11436_ACEOF
11437
11438cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011439## --------------------- ##
11440## M4sh Initialization. ##
11441## --------------------- ##
11442
Benny Prijono0822c192008-08-21 20:59:58 +000011443# Be more Bourne compatible
11444DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011445if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11446 emulate sh
11447 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011448 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11449 # is contrary to our usage. Disable this feature.
11450 alias -g '${1+"$@"}'='"$@"'
Benny Prijono0822c192008-08-21 20:59:58 +000011451 setopt NO_GLOB_SUBST
Benny Prijono0b462322008-03-12 22:44:24 +000011452else
Benny Prijono0822c192008-08-21 20:59:58 +000011453 case `(set -o) 2>/dev/null` in
11454 *posix*) set -o posix ;;
11455esac
11456
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011457fi
11458
11459
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011460
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011461
Benny Prijono0822c192008-08-21 20:59:58 +000011462# PATH needs CR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011463# Avoid depending upon Character Ranges.
11464as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11465as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11466as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11467as_cr_digits='0123456789'
11468as_cr_alnum=$as_cr_Letters$as_cr_digits
11469
11470# The user is always right.
11471if test "${PATH_SEPARATOR+set}" != set; then
11472 echo "#! /bin/sh" >conf$$.sh
11473 echo "exit 0" >>conf$$.sh
11474 chmod +x conf$$.sh
11475 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11476 PATH_SEPARATOR=';'
11477 else
11478 PATH_SEPARATOR=:
11479 fi
11480 rm -f conf$$.sh
11481fi
11482
Benny Prijono0822c192008-08-21 20:59:58 +000011483# Support unset when possible.
11484if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11485 as_unset=unset
11486else
11487 as_unset=false
11488fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011489
Benny Prijono0822c192008-08-21 20:59:58 +000011490
11491# IFS
11492# We need space, tab and new line, in precisely that order. Quoting is
11493# there to prevent editors from complaining about space-tab.
11494# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11495# splitting by setting IFS to empty value.)
11496as_nl='
11497'
11498IFS=" "" $as_nl"
11499
11500# Find who we are. Look in the path if we contain no directory separator.
11501case $0 in
11502 *[\\/]* ) as_myself=$0 ;;
11503 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011504for as_dir in $PATH
11505do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11509done
Benny Prijono0822c192008-08-21 20:59:58 +000011510IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011511
Benny Prijono0822c192008-08-21 20:59:58 +000011512 ;;
11513esac
11514# We did not find ourselves, most probably we were run as `sh COMMAND'
11515# in which case we are not to be found in the path.
11516if test "x$as_myself" = x; then
11517 as_myself=$0
11518fi
11519if test ! -f "$as_myself"; then
11520 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11521 { (exit 1); exit 1; }
11522fi
11523
11524# Work around bugs in pre-3.0 UWIN ksh.
11525for as_var in ENV MAIL MAILPATH
11526do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11527done
11528PS1='$ '
11529PS2='> '
11530PS4='+ '
11531
11532# NLS nuisances.
11533for as_var in \
11534 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11535 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11536 LC_TELEPHONE LC_TIME
Benny Prijono0b462322008-03-12 22:44:24 +000011537do
Benny Prijono0822c192008-08-21 20:59:58 +000011538 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11539 eval $as_var=C; export $as_var
11540 else
11541 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11542 fi
11543done
11544
11545# Required to use basename.
11546if expr a : '\(a\)' >/dev/null 2>&1 &&
11547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11548 as_expr=expr
11549else
11550 as_expr=false
11551fi
11552
11553if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11554 as_basename=basename
11555else
11556 as_basename=false
11557fi
11558
11559
11560# Name of the executable.
11561as_me=`$as_basename -- "$0" ||
11562$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11563 X"$0" : 'X\(//\)$' \| \
11564 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11565echo X/"$0" |
11566 sed '/^.*\/\([^/][^/]*\)\/*$/{
11567 s//\1/
11568 q
11569 }
11570 /^X\/\(\/\/\)$/{
11571 s//\1/
11572 q
11573 }
11574 /^X\/\(\/\).*/{
11575 s//\1/
11576 q
11577 }
11578 s/.*/./; q'`
11579
11580# CDPATH.
11581$as_unset CDPATH
11582
11583
11584
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011585 as_lineno_1=$LINENO
11586 as_lineno_2=$LINENO
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011587 test "x$as_lineno_1" != "x$as_lineno_2" &&
Benny Prijono0822c192008-08-21 20:59:58 +000011588 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011589
11590 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11591 # uniformly replaced by the line number. The first 'sed' inserts a
Benny Prijono0822c192008-08-21 20:59:58 +000011592 # line-number line after each line using $LINENO; the second 'sed'
11593 # does the real work. The second script uses 'N' to pair each
11594 # line-number line with the line containing $LINENO, and appends
11595 # trailing '-' during substitution so that $LINENO is not a special
11596 # case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011597 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijono0822c192008-08-21 20:59:58 +000011598 # scripts with optimization help from Paolo Bonzini. Blame Lee
11599 # E. McMahon (1931-1989) for sed's syntax. :-)
11600 sed -n '
11601 p
11602 /[$]LINENO/=
11603 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011604 sed '
Benny Prijono0822c192008-08-21 20:59:58 +000011605 s/[$]LINENO.*/&-/
11606 t lineno
11607 b
11608 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011609 N
Benny Prijono0822c192008-08-21 20:59:58 +000011610 :loop
11611 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011612 t loop
Benny Prijono0822c192008-08-21 20:59:58 +000011613 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011614 ' >$as_me.lineno &&
Benny Prijono0822c192008-08-21 20:59:58 +000011615 chmod +x "$as_me.lineno" ||
11616 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011617 { (exit 1); exit 1; }; }
11618
11619 # Don't try to exec as it changes $[0], causing all sort of problems
11620 # (the dirname of $[0] is not the place where we might find the
Benny Prijono0822c192008-08-21 20:59:58 +000011621 # original and so on. Autoconf is especially sensitive to this).
11622 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011623 # Exit status is that of the last command.
11624 exit
11625}
11626
11627
Benny Prijono0822c192008-08-21 20:59:58 +000011628if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11629 as_dirname=dirname
11630else
11631 as_dirname=false
11632fi
11633
11634ECHO_C= ECHO_N= ECHO_T=
11635case `echo -n x` in
11636-n*)
11637 case `echo 'x\c'` in
11638 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11639 *) ECHO_C='\c';;
11640 esac;;
11641*)
11642 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011643esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011644
Benny Prijono0822c192008-08-21 20:59:58 +000011645if expr a : '\(a\)' >/dev/null 2>&1 &&
11646 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011647 as_expr=expr
11648else
11649 as_expr=false
11650fi
11651
11652rm -f conf$$ conf$$.exe conf$$.file
Benny Prijono0822c192008-08-21 20:59:58 +000011653if test -d conf$$.dir; then
11654 rm -f conf$$.dir/conf$$.file
11655else
11656 rm -f conf$$.dir
11657 mkdir conf$$.dir
11658fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011659echo >conf$$.file
11660if ln -s conf$$.file conf$$ 2>/dev/null; then
Benny Prijono0822c192008-08-21 20:59:58 +000011661 as_ln_s='ln -s'
11662 # ... but there are two gotchas:
11663 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11664 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11665 # In both cases, we have to default to `cp -p'.
11666 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011667 as_ln_s='cp -p'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011668elif ln conf$$.file conf$$ 2>/dev/null; then
11669 as_ln_s=ln
11670else
11671 as_ln_s='cp -p'
11672fi
Benny Prijono0822c192008-08-21 20:59:58 +000011673rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11674rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011675
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011676if mkdir -p . 2>/dev/null; then
11677 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000011678else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011679 test -d ./-p && rmdir ./-p
11680 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000011681fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011682
Benny Prijono0822c192008-08-21 20:59:58 +000011683if test -x / >/dev/null 2>&1; then
11684 as_test_x='test -x'
11685else
11686 if ls -dL / >/dev/null 2>&1; then
11687 as_ls_L_option=L
11688 else
11689 as_ls_L_option=
11690 fi
11691 as_test_x='
11692 eval sh -c '\''
11693 if test -d "$1"; then
11694 test -d "$1/.";
11695 else
11696 case $1 in
11697 -*)set "./$1";;
11698 esac;
11699 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11700 ???[sx]*):;;*)false;;esac;fi
11701 '\'' sh
11702 '
11703fi
11704as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011705
11706# Sed expression to map a string onto a valid CPP name.
11707as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11708
11709# Sed expression to map a string onto a valid variable name.
11710as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11711
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011712
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011713exec 6>&1
11714
Benny Prijono0822c192008-08-21 20:59:58 +000011715# Save the log message, to keep $[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011716# report actual input values of CONFIG_FILES etc. instead of their
Benny Prijono0822c192008-08-21 20:59:58 +000011717# values after options handling.
11718ac_log="
11719This file was extended by pjproject $as_me 1.0, which was
11720generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011721
11722 CONFIG_FILES = $CONFIG_FILES
11723 CONFIG_HEADERS = $CONFIG_HEADERS
11724 CONFIG_LINKS = $CONFIG_LINKS
11725 CONFIG_COMMANDS = $CONFIG_COMMANDS
11726 $ $0 $@
11727
Benny Prijono0822c192008-08-21 20:59:58 +000011728on `(hostname || uname -n) 2>/dev/null | sed 1q`
11729"
11730
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011731_ACEOF
11732
Benny Prijono0822c192008-08-21 20:59:58 +000011733cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011734# Files that config.status was made for.
Benny Prijono0822c192008-08-21 20:59:58 +000011735config_files="$ac_config_files"
11736config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011737
Benny Prijono0822c192008-08-21 20:59:58 +000011738_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011739
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011740cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011741ac_cs_usage="\
11742\`$as_me' instantiates files from templates according to the
11743current configuration.
11744
11745Usage: $0 [OPTIONS] [FILE]...
11746
11747 -h, --help print this help, then exit
Benny Prijono0822c192008-08-21 20:59:58 +000011748 -V, --version print version number and configuration settings, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011749 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011750 -d, --debug don't remove temporary files
11751 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011752 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011753 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011754 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011755 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011756
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011757Configuration files:
11758$config_files
11759
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011760Configuration headers:
11761$config_headers
11762
11763Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono0b462322008-03-12 22:44:24 +000011764
Benny Prijono0822c192008-08-21 20:59:58 +000011765_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011766cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011767ac_cs_version="\\
Benny Prijono0822c192008-08-21 20:59:58 +000011768pjproject config.status 1.0
11769configured by $0, generated by GNU Autoconf 2.61,
11770 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011771
Benny Prijono0822c192008-08-21 20:59:58 +000011772Copyright (C) 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011773This config.status script is free software; the Free Software Foundation
11774gives unlimited permission to copy, distribute and modify it."
Benny Prijono0822c192008-08-21 20:59:58 +000011775
11776ac_pwd='$ac_pwd'
11777srcdir='$srcdir'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011778_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011779
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011780cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011781# If no file are specified by the user, then we need to provide default
11782# value. By we need to know if files were specified by the user.
11783ac_need_defaults=:
11784while test $# != 0
11785do
11786 case $1 in
11787 --*=*)
Benny Prijono0822c192008-08-21 20:59:58 +000011788 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11789 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011790 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011791 ;;
Benny Prijono0822c192008-08-21 20:59:58 +000011792 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011793 ac_option=$1
11794 ac_optarg=$2
11795 ac_shift=shift
11796 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011797 esac
11798
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011799 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011800 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011802 ac_cs_recheck=: ;;
Benny Prijono0822c192008-08-21 20:59:58 +000011803 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11804 echo "$ac_cs_version"; exit ;;
11805 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011806 debug=: ;;
11807 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011808 $ac_shift
11809 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011810 ac_need_defaults=false;;
11811 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011812 $ac_shift
11813 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011814 ac_need_defaults=false;;
Benny Prijono0822c192008-08-21 20:59:58 +000011815 --he | --h)
11816 # Conflict between --help and --header
11817 { echo "$as_me: error: ambiguous option: $1
11818Try \`$0 --help' for more information." >&2
11819 { (exit 1); exit 1; }; };;
11820 --help | --hel | -h )
11821 echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11824 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011825
11826 # This is an error.
Benny Prijono0822c192008-08-21 20:59:58 +000011827 -*) { echo "$as_me: error: unrecognized option: $1
11828Try \`$0 --help' for more information." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011829 { (exit 1); exit 1; }; } ;;
11830
Benny Prijono0822c192008-08-21 20:59:58 +000011831 *) ac_config_targets="$ac_config_targets $1"
11832 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011833
11834 esac
11835 shift
11836done
11837
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011838ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011839
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011840if $ac_cs_silent; then
11841 exec 6>/dev/null
11842 ac_configure_extra_args="$ac_configure_extra_args --silent"
11843fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011844
11845_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011846cat >>$CONFIG_STATUS <<_ACEOF
11847if \$ac_cs_recheck; then
Benny Prijono0822c192008-08-21 20:59:58 +000011848 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11849 CONFIG_SHELL=$SHELL
11850 export CONFIG_SHELL
11851 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011852fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011853
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011854_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000011855cat >>$CONFIG_STATUS <<\_ACEOF
11856exec 5>>config.log
11857{
11858 echo
11859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11860## Running $as_me. ##
11861_ASBOX
11862 echo "$ac_log"
11863} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011864
Benny Prijono0822c192008-08-21 20:59:58 +000011865_ACEOF
11866cat >>$CONFIG_STATUS <<_ACEOF
11867_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011868
11869cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000011870
11871# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011872for ac_config_target in $ac_config_targets
11873do
Benny Prijono0822c192008-08-21 20:59:58 +000011874 case $ac_config_target in
11875 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
11876 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
11877 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
11878 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
11879 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
11880 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
11881 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
11882 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
11883 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
11884 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
11885 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
11886 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
11887 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
11888
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011889 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011890echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11891 { (exit 1); exit 1; }; };;
11892 esac
11893done
11894
Benny Prijono0822c192008-08-21 20:59:58 +000011895
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011896# If the user did not use the arguments to specify the items to instantiate,
11897# then the envvar interface is used. Set only those that are not.
11898# We use the long form for the default assignment because of an extremely
11899# bizarre bug on SunOS 4.1.3.
11900if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11903fi
11904
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011905# Have a temporary directory for convenience. Make it in the build tree
Benny Prijono0822c192008-08-21 20:59:58 +000011906# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011907# creating and moving files from /tmp can sometimes cause problems.
Benny Prijono0822c192008-08-21 20:59:58 +000011908# Hook for its removal unless debugging.
11909# Note that there is a small window in which the directory will not be cleaned:
11910# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011911$debug ||
11912{
Benny Prijono0822c192008-08-21 20:59:58 +000011913 tmp=
11914 trap 'exit_status=$?
11915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11916' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011917 trap '{ (exit 1); exit 1; }' 1 2 13 15
11918}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011919# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011920
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011921{
Benny Prijono0822c192008-08-21 20:59:58 +000011922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011923 test -n "$tmp" && test -d "$tmp"
11924} ||
11925{
Benny Prijono0822c192008-08-21 20:59:58 +000011926 tmp=./conf$$-$RANDOM
11927 (umask 077 && mkdir "$tmp")
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011928} ||
11929{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011930 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011931 { (exit 1); exit 1; }
11932}
11933
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011934#
Benny Prijono0822c192008-08-21 20:59:58 +000011935# Set up the sed scripts for CONFIG_FILES section.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011936#
11937
11938# No need to generate the scripts if there are no CONFIG_FILES.
11939# This happens for instance when ./config.status config.h
Benny Prijono0822c192008-08-21 20:59:58 +000011940if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011941
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011942_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011943
Benny Prijono0822c192008-08-21 20:59:58 +000011944
11945
11946ac_delim='%!_!# '
11947for ac_last_try in false false false false false :; do
11948 cat >conf$$subs.sed <<_ACEOF
11949SHELL!$SHELL$ac_delim
11950PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11951PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11952PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11953PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11954PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11955PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11956exec_prefix!$exec_prefix$ac_delim
11957prefix!$prefix$ac_delim
11958program_transform_name!$program_transform_name$ac_delim
11959bindir!$bindir$ac_delim
11960sbindir!$sbindir$ac_delim
11961libexecdir!$libexecdir$ac_delim
11962datarootdir!$datarootdir$ac_delim
11963datadir!$datadir$ac_delim
11964sysconfdir!$sysconfdir$ac_delim
11965sharedstatedir!$sharedstatedir$ac_delim
11966localstatedir!$localstatedir$ac_delim
11967includedir!$includedir$ac_delim
11968oldincludedir!$oldincludedir$ac_delim
11969docdir!$docdir$ac_delim
11970infodir!$infodir$ac_delim
11971htmldir!$htmldir$ac_delim
11972dvidir!$dvidir$ac_delim
11973pdfdir!$pdfdir$ac_delim
11974psdir!$psdir$ac_delim
11975libdir!$libdir$ac_delim
11976localedir!$localedir$ac_delim
11977mandir!$mandir$ac_delim
11978DEFS!$DEFS$ac_delim
11979ECHO_C!$ECHO_C$ac_delim
11980ECHO_N!$ECHO_N$ac_delim
11981ECHO_T!$ECHO_T$ac_delim
11982LIBS!$LIBS$ac_delim
11983build_alias!$build_alias$ac_delim
11984host_alias!$host_alias$ac_delim
11985target_alias!$target_alias$ac_delim
11986build!$build$ac_delim
11987build_cpu!$build_cpu$ac_delim
11988build_vendor!$build_vendor$ac_delim
11989build_os!$build_os$ac_delim
11990host!$host$ac_delim
11991host_cpu!$host_cpu$ac_delim
11992host_vendor!$host_vendor$ac_delim
11993host_os!$host_os$ac_delim
11994target!$target$ac_delim
11995target_cpu!$target_cpu$ac_delim
11996target_vendor!$target_vendor$ac_delim
11997target_os!$target_os$ac_delim
11998CC!$CC$ac_delim
11999CFLAGS!$CFLAGS$ac_delim
12000LDFLAGS!$LDFLAGS$ac_delim
12001CPPFLAGS!$CPPFLAGS$ac_delim
12002ac_ct_CC!$ac_ct_CC$ac_delim
12003EXEEXT!$EXEEXT$ac_delim
12004OBJEXT!$OBJEXT$ac_delim
12005CXX!$CXX$ac_delim
12006CXXFLAGS!$CXXFLAGS$ac_delim
12007ac_ct_CXX!$ac_ct_CXX$ac_delim
12008ac_pjdir!$ac_pjdir$ac_delim
12009ac_build_mak_vars!$ac_build_mak_vars$ac_delim
12010CPP!$CPP$ac_delim
12011GREP!$GREP$ac_delim
12012EGREP!$EGREP$ac_delim
12013ac_os_objs!$ac_os_objs$ac_delim
12014ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim
12015ac_pa_cflags!$ac_pa_cflags$ac_delim
12016ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim
12017ac_pa_use_oss!$ac_pa_use_oss$ac_delim
12018ac_no_small_filter!$ac_no_small_filter$ac_delim
12019ac_no_large_filter!$ac_no_large_filter$ac_delim
12020ac_no_speex_aec!$ac_no_speex_aec$ac_delim
12021ac_no_g711_codec!$ac_no_g711_codec$ac_delim
12022ac_no_l16_codec!$ac_no_l16_codec$ac_delim
12023ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim
12024ac_no_g722_codec!$ac_no_g722_codec$ac_delim
12025ac_no_speex_codec!$ac_no_speex_codec$ac_delim
12026ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim
12027ac_no_ssl!$ac_no_ssl$ac_delim
12028openssl_h_present!$openssl_h_present$ac_delim
12029libssl_present!$libssl_present$ac_delim
12030libcrypto_present!$libcrypto_present$ac_delim
12031ac_cross_compile!$ac_cross_compile$ac_delim
12032ac_linux_poll!$ac_linux_poll$ac_delim
12033ac_host!$ac_host$ac_delim
12034ac_main_obj!$ac_main_obj$ac_delim
12035LIBOBJS!$LIBOBJS$ac_delim
12036LTLIBOBJS!$LTLIBOBJS$ac_delim
12037_ACEOF
12038
12039 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
12040 break
12041 elif $ac_last_try; then
12042 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12043echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12044 { (exit 1); exit 1; }; }
12045 else
12046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012047 fi
Benny Prijono0822c192008-08-21 20:59:58 +000012048done
12049
12050ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12051if test -n "$ac_eof"; then
12052 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12053 ac_eof=`expr $ac_eof + 1`
12054fi
12055
12056cat >>$CONFIG_STATUS <<_ACEOF
12057cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12058/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12059_ACEOF
12060sed '
12061s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12062s/^/s,@/; s/!/@,|#_!!_#|/
12063:n
12064t n
12065s/'"$ac_delim"'$/,g/; t
12066s/$/\\/; p
12067N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12068' >>$CONFIG_STATUS <conf$$subs.sed
12069rm -f conf$$subs.sed
12070cat >>$CONFIG_STATUS <<_ACEOF
12071:end
12072s/|#_!!_#|//g
12073CEOF$ac_eof
12074_ACEOF
12075
12076
12077# VPATH may cause trouble with some makes, so we remove $(srcdir),
12078# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12079# trailing colons and then remove the whole line if VPATH becomes empty
12080# (actually we leave an empty line to preserve line numbers).
12081if test "x$srcdir" = x.; then
12082 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12083s/:*\$(srcdir):*/:/
12084s/:*\${srcdir}:*/:/
12085s/:*@srcdir@:*/:/
12086s/^\([^=]*=[ ]*\):*/\1/
12087s/:*$//
12088s/^[^=]*=[ ]*$//
12089}'
12090fi
12091
12092cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012093fi # test -n "$CONFIG_FILES"
12094
Benny Prijono0822c192008-08-21 20:59:58 +000012095
12096for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12097do
12098 case $ac_tag in
12099 :[FHLC]) ac_mode=$ac_tag; continue;;
12100 esac
12101 case $ac_mode$ac_tag in
12102 :[FHL]*:*);;
12103 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12104echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12105 { (exit 1); exit 1; }; };;
12106 :[FH]-) ac_tag=-:-;;
12107 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12108 esac
12109 ac_save_IFS=$IFS
12110 IFS=:
12111 set x $ac_tag
12112 IFS=$ac_save_IFS
12113 shift
12114 ac_file=$1
12115 shift
12116
12117 case $ac_mode in
12118 :L) ac_source=$1;;
12119 :[FH])
12120 ac_file_inputs=
12121 for ac_f
12122 do
12123 case $ac_f in
12124 -) ac_f="$tmp/stdin";;
12125 *) # Look for the file first in the build tree, then in the source tree
12126 # (if the path is not absolute). The absolute path cannot be DOS-style,
12127 # because $ac_f cannot contain `:'.
12128 test -f "$ac_f" ||
12129 case $ac_f in
12130 [\\/$]*) false;;
12131 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12132 esac ||
12133 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12134echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12135 { (exit 1); exit 1; }; };;
12136 esac
12137 ac_file_inputs="$ac_file_inputs $ac_f"
12138 done
12139
12140 # Let's still pretend it is `configure' which instantiates (i.e., don't
12141 # use $as_me), people would be surprised to read:
12142 # /* config.h. Generated by config.status. */
12143 configure_input="Generated from "`IFS=:
12144 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12145 if test x"$ac_file" != x-; then
12146 configure_input="$ac_file. $configure_input"
12147 { echo "$as_me:$LINENO: creating $ac_file" >&5
12148echo "$as_me: creating $ac_file" >&6;}
12149 fi
12150
12151 case $ac_tag in
12152 *:-:* | *:-) cat >"$tmp/stdin";;
12153 esac
12154 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012155 esac
12156
Benny Prijono0822c192008-08-21 20:59:58 +000012157 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012158$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12159 X"$ac_file" : 'X\(//\)[^/]' \| \
12160 X"$ac_file" : 'X\(//\)$' \| \
Benny Prijono0822c192008-08-21 20:59:58 +000012161 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012162echo X"$ac_file" |
Benny Prijono0822c192008-08-21 20:59:58 +000012163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12164 s//\1/
12165 q
12166 }
12167 /^X\(\/\/\)[^/].*/{
12168 s//\1/
12169 q
12170 }
12171 /^X\(\/\/\)$/{
12172 s//\1/
12173 q
12174 }
12175 /^X\(\/\).*/{
12176 s//\1/
12177 q
12178 }
12179 s/.*/./; q'`
12180 { as_dir="$ac_dir"
12181 case $as_dir in #(
12182 -*) as_dir=./$as_dir;;
12183 esac
12184 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012185 as_dirs=
Benny Prijono0822c192008-08-21 20:59:58 +000012186 while :; do
12187 case $as_dir in #(
12188 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12189 *) as_qdir=$as_dir;;
12190 esac
12191 as_dirs="'$as_qdir' $as_dirs"
12192 as_dir=`$as_dirname -- "$as_dir" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012193$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12194 X"$as_dir" : 'X\(//\)[^/]' \| \
12195 X"$as_dir" : 'X\(//\)$' \| \
Benny Prijono0822c192008-08-21 20:59:58 +000012196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012197echo X"$as_dir" |
Benny Prijono0822c192008-08-21 20:59:58 +000012198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12199 s//\1/
12200 q
12201 }
12202 /^X\(\/\/\)[^/].*/{
12203 s//\1/
12204 q
12205 }
12206 /^X\(\/\/\)$/{
12207 s//\1/
12208 q
12209 }
12210 /^X\(\/\).*/{
12211 s//\1/
12212 q
12213 }
12214 s/.*/./; q'`
12215 test -d "$as_dir" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012216 done
Benny Prijono0822c192008-08-21 20:59:58 +000012217 test -z "$as_dirs" || eval "mkdir $as_dirs"
12218 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12219echo "$as_me: error: cannot create directory $as_dir" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012220 { (exit 1); exit 1; }; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012221 ac_builddir=.
12222
Benny Prijono0822c192008-08-21 20:59:58 +000012223case "$ac_dir" in
12224.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12225*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0822c192008-08-21 20:59:58 +000012227 # A ".." for each directory in $ac_dir_suffix.
12228 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12229 case $ac_top_builddir_sub in
12230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12232 esac ;;
12233esac
12234ac_abs_top_builddir=$ac_pwd
12235ac_abs_builddir=$ac_pwd$ac_dir_suffix
12236# for backward compatibility:
12237ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012238
12239case $srcdir in
Benny Prijono0822c192008-08-21 20:59:58 +000012240 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012241 ac_srcdir=.
Benny Prijono0822c192008-08-21 20:59:58 +000012242 ac_top_srcdir=$ac_top_builddir_sub
12243 ac_abs_top_srcdir=$ac_pwd ;;
12244 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012245 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0822c192008-08-21 20:59:58 +000012246 ac_top_srcdir=$srcdir
12247 ac_abs_top_srcdir=$srcdir ;;
12248 *) # Relative name.
12249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12250 ac_top_srcdir=$ac_top_build_prefix$srcdir
12251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012252esac
Benny Prijono0822c192008-08-21 20:59:58 +000012253ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijonofdafd402008-01-23 14:34:46 +000012254
Benny Prijono0b462322008-03-12 22:44:24 +000012255
Benny Prijono0822c192008-08-21 20:59:58 +000012256 case $ac_mode in
12257 :F)
12258 #
12259 # CONFIG_FILE
12260 #
Benny Prijono0b462322008-03-12 22:44:24 +000012261
Benny Prijono0b462322008-03-12 22:44:24 +000012262_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000012263
12264cat >>$CONFIG_STATUS <<\_ACEOF
12265# If the template does not know about datarootdir, expand it.
12266# FIXME: This hack should be removed a few years after 2.60.
12267ac_datarootdir_hack=; ac_datarootdir_seen=
12268
12269case `sed -n '/datarootdir/ {
12270 p
12271 q
12272}
12273/@datadir@/p
12274/@docdir@/p
12275/@infodir@/p
12276/@localedir@/p
12277/@mandir@/p
12278' $ac_file_inputs` in
12279*datarootdir*) ac_datarootdir_seen=yes;;
12280*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12281 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12282echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12283_ACEOF
12284cat >>$CONFIG_STATUS <<_ACEOF
12285 ac_datarootdir_hack='
12286 s&@datadir@&$datadir&g
12287 s&@docdir@&$docdir&g
12288 s&@infodir@&$infodir&g
12289 s&@localedir@&$localedir&g
12290 s&@mandir@&$mandir&g
12291 s&\\\${datarootdir}&$datarootdir&g' ;;
12292esac
12293_ACEOF
12294
12295# Neutralize VPATH when `$srcdir' = `.'.
12296# Shell code in configure.ac might set extrasub.
12297# FIXME: do we really want to maintain this feature?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012298cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012299 sed "$ac_vpsub
12300$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012301_ACEOF
12302cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012303:t
12304/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono0822c192008-08-21 20:59:58 +000012305s&@configure_input@&$configure_input&;t t
12306s&@top_builddir@&$ac_top_builddir_sub&;t t
12307s&@srcdir@&$ac_srcdir&;t t
12308s&@abs_srcdir@&$ac_abs_srcdir&;t t
12309s&@top_srcdir@&$ac_top_srcdir&;t t
12310s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12311s&@builddir@&$ac_builddir&;t t
12312s&@abs_builddir@&$ac_abs_builddir&;t t
12313s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12314$ac_datarootdir_hack
12315" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012316
Benny Prijono0822c192008-08-21 20:59:58 +000012317test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12318 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12320 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12321which seems to be undefined. Please make sure it is defined." >&5
12322echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12323which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012324
Benny Prijono0822c192008-08-21 20:59:58 +000012325 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012326 case $ac_file in
Benny Prijono0822c192008-08-21 20:59:58 +000012327 -) cat "$tmp/out"; rm -f "$tmp/out";;
12328 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012329 esac
Benny Prijono0822c192008-08-21 20:59:58 +000012330 ;;
12331 :H)
12332 #
12333 # CONFIG_HEADER
12334 #
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012335_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012336
Benny Prijono0822c192008-08-21 20:59:58 +000012337# Transform confdefs.h into a sed script `conftest.defines', that
12338# substitutes the proper values into config.h.in to produce config.h.
12339rm -f conftest.defines conftest.tail
12340# First, append a space to every undef/define line, to ease matching.
12341echo 's/$/ /' >conftest.defines
12342# Then, protect against being on the right side of a sed subst, or in
12343# an unquoted here document, in config.status. If some macros were
12344# called several times there might be several #defines for the same
12345# symbol, which is useless. But do not sort them, since the last
12346# AC_DEFINE must be honored.
12347ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12348# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12349# NAME is the cpp macro being defined, VALUE is the value it is being given.
12350# PARAMS is the parameter list in the macro definition--in most cases, it's
12351# just an empty string.
12352ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12353ac_dB='\\)[ (].*,\\1define\\2'
12354ac_dC=' '
12355ac_dD=' ,'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012356
Benny Prijono0822c192008-08-21 20:59:58 +000012357uniq confdefs.h |
12358 sed -n '
12359 t rset
12360 :rset
12361 s/^[ ]*#[ ]*define[ ][ ]*//
12362 t ok
12363 d
12364 :ok
12365 s/[\\&,]/\\&/g
12366 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12367 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12368 ' >>conftest.defines
12369
12370# Remove the space that was appended to ease matching.
12371# Then replace #undef with comments. This is necessary, for
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012372# example, in the case of _POSIX_SOURCE, which is predefined and required
12373# on some systems where configure will not decide to define it.
Benny Prijono0822c192008-08-21 20:59:58 +000012374# (The regexp can be short, since the line contains either #define or #undef.)
12375echo 's/ $//
12376s,^[ #]*u.*,/* & */,' >>conftest.defines
Benny Prijono0b462322008-03-12 22:44:24 +000012377
Benny Prijono0822c192008-08-21 20:59:58 +000012378# Break up conftest.defines:
12379ac_max_sed_lines=50
12380
12381# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12382# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12383# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12384# et cetera.
12385ac_in='$ac_file_inputs'
12386ac_out='"$tmp/out1"'
12387ac_nxt='"$tmp/out2"'
12388
12389while :
Benny Prijono0b462322008-03-12 22:44:24 +000012390do
Benny Prijono0822c192008-08-21 20:59:58 +000012391 # Write a here document:
12392 cat >>$CONFIG_STATUS <<_ACEOF
12393 # First, check the format of the line:
12394 cat >"\$tmp/defines.sed" <<\\CEOF
12395/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12396/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12397b
12398:def
12399_ACEOF
12400 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012401 echo 'CEOF
Benny Prijono0822c192008-08-21 20:59:58 +000012402 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12403 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12404 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12405 grep . conftest.tail >/dev/null || break
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012406 rm -f conftest.defines
12407 mv conftest.tail conftest.defines
12408done
Benny Prijono0822c192008-08-21 20:59:58 +000012409rm -f conftest.defines conftest.tail
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012410
Benny Prijono0822c192008-08-21 20:59:58 +000012411echo "ac_result=$ac_in" >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012412cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012413 if test x"$ac_file" != x-; then
Benny Prijono0822c192008-08-21 20:59:58 +000012414 echo "/* $configure_input */" >"$tmp/config.h"
12415 cat "$ac_result" >>"$tmp/config.h"
12416 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012417 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012418echo "$as_me: $ac_file is unchanged" >&6;}
12419 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012420 rm -f $ac_file
Benny Prijono0822c192008-08-21 20:59:58 +000012421 mv "$tmp/config.h" $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012422 fi
12423 else
Benny Prijono0822c192008-08-21 20:59:58 +000012424 echo "/* $configure_input */"
12425 cat "$ac_result"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012426 fi
Benny Prijono0822c192008-08-21 20:59:58 +000012427 rm -f "$tmp/out12"
12428 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012429
Benny Prijono0822c192008-08-21 20:59:58 +000012430
12431 esac
12432
12433done # for ac_tag
12434
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012435
12436{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012437_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012438chmod +x $CONFIG_STATUS
12439ac_clean_files=$ac_clean_files_save
12440
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012441
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012442# configure is writing to config.log, and then calls config.status.
12443# config.status does its own redirection, appending to config.log.
12444# Unfortunately, on DOS this fails, as config.log is still kept open
12445# by configure, so config.status won't be able to write to it; its
12446# output is simply discarded. So we exec the FD to /dev/null,
12447# effectively closing config.log, so it can be properly (re)opened and
12448# appended to by config.status. When coming back to configure, we
12449# need to make the FD available again.
12450if test "$no_create" != yes; then
12451 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012452 ac_config_status_args=
12453 test "$silent" = yes &&
12454 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012455 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012457 exec 5>>config.log
12458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12459 # would make configure fail if this is the last instruction.
12460 $ac_cs_success || { (exit 1); exit 1; }
12461fi
12462
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012463
Benny Prijonod9627842007-04-18 09:24:31 +000012464
Benny Prijono0822c192008-08-21 20:59:58 +000012465{ echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000012466
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012467Configurations 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 +000012468
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012469Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012470 - 'user.mak'
12471 - 'pjlib/include/pj/config_site.h'
12472
12473The next step now is to run 'make dep' and 'make'.
12474" >&5
12475echo "${ECHO_T}
12476
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012477Configurations 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 +000012478
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012479Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012480 - 'user.mak'
12481 - 'pjlib/include/pj/config_site.h'
12482
12483The next step now is to run 'make dep' and 'make'.
Benny Prijono0822c192008-08-21 20:59:58 +000012484" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +000012485