blob: e89a53215ca5835648aefe8215cbaca047b8c67f [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonoabcf49c2007-05-15 21:02:54 +00003# Generated by GNU Autoconf 2.59 for pjproject 0.7.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000079# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
Benny Prijono7e0d75f2006-12-25 20:34:14 +000086# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
Benny Prijonoa9b372a2006-07-24 02:07:11 +000097fi
98
Benny Prijono7e0d75f2006-12-25 20:34:14 +000099
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +0000220else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000223fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000224
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000241$as_unset CDPATH
242
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000255ac_config_libobj_dir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000256cross_compiling=no
257subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000258MFLAGS=
259MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000267# Identity of this package.
268PACKAGE_NAME='pjproject'
269PACKAGE_TARNAME='pjproject'
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000270PACKAGE_VERSION='0.7'
271PACKAGE_STRING='pjproject 0.7'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
Benny Prijonod9627842007-04-18 09:24:31 +0000311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX ac_pjdir CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_no_small_filter ac_no_large_filter ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000312ac_subst_files=''
313
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000484 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000664 { (exit 1); exit 1; }; };;
665 esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000670 localstatedir libdir includedir oldincludedir infodir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000676 { (exit 1); exit 1; }; };;
677 esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000682# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000683build=$build_alias
684host=$host_alias
685target=$target_alias
686
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000687# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000703
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000730 { (exit 1); exit 1; }; }
731 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000733 { (exit 1); exit 1; }; }
734 fi
735fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000768ac_env_CXX_set=${CXX+set}
769ac_env_CXX_value=$CXX
770ac_cv_env_CXX_set=${CXX+set}
771ac_cv_env_CXX_value=$CXX
772ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773ac_env_CXXFLAGS_value=$CXXFLAGS
774ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000776ac_env_CPP_set=${CPP+set}
777ac_env_CPP_value=$CPP
778ac_cv_env_CPP_set=${CPP+set}
779ac_cv_env_CPP_value=$CPP
780
781#
782# Report the --help message.
783#
784if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000787 cat <<_ACEOF
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000788\`configure' configures pjproject 0.7 to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000789
790Usage: $0 [OPTION]... [VAR=VALUE]...
791
792To assign environment variables (e.g., CC, CFLAGS...), specify them as
793VAR=VALUE. See below for descriptions of some of the useful variables.
794
795Defaults for the options are specified in brackets.
796
797Configuration:
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000808_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000809
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000810 cat <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000811Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000813 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000815 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000816
817By default, \`make install' will install all the files in
818\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820for instance \`--prefix=\$HOME'.
821
822For better control, use the options below.
823
824Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000837_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000838
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000839 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000840
841System types:
842 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000844 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000845_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000846fi
847
848if test -n "$ac_init_help"; then
849 case $ac_init_help in
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000850 short | recursive ) echo "Configuration of pjproject 0.7:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000851 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000852 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000853
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-floating-point
858 Disable floating point where possible
Benny Prijono1d971622006-09-10 22:27:40 +0000859 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000860 --disable-small-filter Exclude small filter in resampling
861 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000862 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
863 --disable-g711-codec Exclude G.711 codecs from the build
864 --disable-l16-codec Exclude Linear/L16 codec family from the build
865 --disable-gsm-codec Exclude GSM codec in the build
866 --disable-speex-codec Exclude Speex codecs in the build
867 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +0000868 --enable-libsamplerate Link with libsamplerate when available. Note that
869 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoce1db762007-02-14 02:21:08 +0000870 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000871
872
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000873Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000880 CXX C++ compiler command
881 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000882 CPP C preprocessor
883
884Use these variables to override the choices made by `configure' or to help
885it to find libraries and programs with nonstandard names/locations.
886
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000887_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000888fi
889
890if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000896
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000897if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901else
902 ac_dir_suffix= ac_top_builddir=
903fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000904
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000905case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919esac
920
921# Do not use `cd foo && pwd` to compute absolute paths, because
922# the directories may not exist.
923case `pwd` in
924.) ac_abs_builddir="$ac_dir";;
925*)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_builddir=${ac_top_builddir}.;;
934*)
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_srcdir=$ac_srcdir;;
943*)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_top_srcdir=$ac_top_srcdir;;
952*)
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958esac
959
960 cd $ac_dir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000961 # Check for guested configure; otherwise get Cygnus style configure.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000962 if test -f $ac_srcdir/configure.gnu; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000963 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000966 echo
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000970 echo
971 $ac_configure --help
972 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000974 fi
975 cd $ac_popdir
976 done
977fi
978
979test -n "$ac_init_help" && exit 0
980if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000981 cat <<\_ACEOF
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000982pjproject configure 0.7
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000983generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000984
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000985Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000986This configure script is free software; the Free Software Foundation
987gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000988_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000989 exit 0
990fi
991exec 5>config.log
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000992cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000993This file contains any messages produced by compilers while
994running configure, to aid debugging if configure makes a mistake.
995
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000996It was created by pjproject $as_me 0.7, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000997generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000998
999 $ $0 $@
1000
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001001_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001002{
1003cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001004## --------- ##
1005## Platform. ##
1006## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001007
1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001026
1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028for as_dir in $PATH
1029do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033done
1034
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001035} >&5
1036
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001037cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001038
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001039
1040## ----------- ##
1041## Core tests. ##
1042## ----------- ##
1043
1044_ACEOF
1045
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001046
1047# Keep a trace of the command line.
1048# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001049# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001050# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001051# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001052ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001053ac_configure_args0=
1054ac_configure_args1=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001055ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001056ac_must_keep_next=false
1057for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001058do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001094done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001095$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096$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 +00001097
1098# When interrupted or exit'd, cleanup temporary files, and complete
1099# config.log. We remove comments because anyway the quotes in there
1100# would cause problems or look ugly.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001101# WARNING: Be sure not to use single quotes in there, as some shells,
1102# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001103trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109## ---------------- ##
1110## Cache variables. ##
1111## ---------------- ##
1112_ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001115{
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001122 ;;
1123 *)
1124 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001126 ;;
1127 esac;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001128}
1129 echo
1130
1131 cat <<\_ASBOX
1132## ----------------- ##
1133## Output variables. ##
1134## ----------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146## ------------- ##
1147## Output files. ##
1148## ------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161## ----------- ##
1162## confdefs.h. ##
1163## ----------- ##
1164_ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001175 exit $exit_status
1176 ' 0
1177for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179done
1180ac_signal=0
1181
1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
1183rm -rf conftest* confdefs.h
1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185echo >confdefs.h
1186
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001187# Predefined preprocessor variables.
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_NAME "$PACKAGE_NAME"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_STRING "$PACKAGE_STRING"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211_ACEOF
1212
1213
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001214# Let the site file select an alternate cache file if it wants to.
1215# Prefer explicitly selected file to automatically selected ones.
1216if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222fi
1223for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001226echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001227 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001228 . "$ac_site_file"
1229 fi
1230done
1231
1232if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001237echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001245echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247fi
1248
1249# Check that the precious variables saved in the cache have kept the same
1250# value.
1251ac_cache_corrupted=false
1252for ac_var in `(set) 2>&1 |
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001260 { 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 +00001261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001273echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001276 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001277 fi;;
1278 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001279 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001294echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298fi
1299
1300ac_ext=c
1301ac_cpp='$CPP $CPPFLAGS'
1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
Benny Prijono5b818b22006-09-17 22:58:51 +00001332
1333host_orig="$host"
1334
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001335ac_aux_dir=
1336for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1337 if test -f $ac_dir/install-sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 break
1341 elif test -f $ac_dir/install.sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 break
1345 elif test -f $ac_dir/shtool; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 break
1349 fi
1350done
1351if test -z "$ac_aux_dir"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001353echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1354 { (exit 1); exit 1; }; }
1355fi
1356ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359
1360# Make sure we can run config.sub.
1361$ac_config_sub sun4 >/dev/null 2>&1 ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001362 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001363echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1364 { (exit 1); exit 1; }; }
1365
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001366echo "$as_me:$LINENO: checking build system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001367echo $ECHO_N "checking build system type... $ECHO_C" >&6
1368if test "${ac_cv_build+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370else
1371 ac_cv_build_alias=$build_alias
1372test -z "$ac_cv_build_alias" &&
1373 ac_cv_build_alias=`$ac_config_guess`
1374test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001376echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1377 { (exit 1); exit 1; }; }
1378ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1380echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001381 { (exit 1); exit 1; }; }
1382
1383fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001384echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001385echo "${ECHO_T}$ac_cv_build" >&6
1386build=$ac_cv_build
1387build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001391
1392echo "$as_me:$LINENO: checking host system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001393echo $ECHO_N "checking host system type... $ECHO_C" >&6
1394if test "${ac_cv_host+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1396else
1397 ac_cv_host_alias=$host_alias
1398test -z "$ac_cv_host_alias" &&
1399 ac_cv_host_alias=$ac_cv_build_alias
1400ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001402echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1404
1405fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001406echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001407echo "${ECHO_T}$ac_cv_host" >&6
1408host=$ac_cv_host
1409host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001413
1414echo "$as_me:$LINENO: checking target system type" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001415echo $ECHO_N "checking target system type... $ECHO_C" >&6
1416if test "${ac_cv_target+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419 ac_cv_target_alias=$target_alias
1420test "x$ac_cv_target_alias" = "x" &&
1421 ac_cv_target_alias=$ac_cv_host_alias
1422ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001424echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001428echo "$as_me:$LINENO: result: $ac_cv_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001429echo "${ECHO_T}$ac_cv_target" >&6
1430target=$ac_cv_target
1431target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001435
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001436# The aliases save the names the user supplied, while $host etc.
1437# will get canonicalized.
1438test -n "$target_alias" &&
1439 test "$program_prefix$program_suffix$program_transform_name" = \
1440 NONENONEs,x,x, &&
1441 program_prefix=${target_alias}-
Benny Prijono06d1d0e2007-01-27 18:09:28 +00001442 ac_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 +00001443
Benny Prijonod9627842007-04-18 09:24:31 +00001444 ac_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 +00001445
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001446
Benny Prijono12483112007-03-12 10:44:38 +00001447
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001448if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001449 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001450else
1451 CFLAGS="$CFLAGS"
1452fi
1453
1454CXXFLAGS="$CFLAGS $CXXFLAGS"
1455
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001456ac_ext=c
1457ac_cpp='$CPP $CPPFLAGS'
1458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1460ac_compiler_gnu=$ac_cv_c_compiler_gnu
1461if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1463set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001464echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001484done
1485
1486fi
1487fi
1488CC=$ac_cv_prog_CC
1489if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001490 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001491echo "${ECHO_T}$CC" >&6
1492else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001493 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001494echo "${ECHO_T}no" >&6
1495fi
1496
1497fi
1498if test -z "$ac_cv_prog_CC"; then
1499 ac_ct_CC=$CC
1500 # Extract the first word of "gcc", so it can be a program name with args.
1501set dummy gcc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001502echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="gcc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1520 fi
1521done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001522done
1523
1524fi
1525fi
1526ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001529echo "${ECHO_T}$ac_ct_CC" >&6
1530else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001531 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001532echo "${ECHO_T}no" >&6
1533fi
1534
1535 CC=$ac_ct_CC
1536else
1537 CC="$ac_cv_prog_CC"
1538fi
1539
1540if test -z "$CC"; then
1541 if test -n "$ac_tool_prefix"; then
1542 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1543set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001544echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_CC="${ac_tool_prefix}cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
1562 fi
1563done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001564done
1565
1566fi
1567fi
1568CC=$ac_cv_prog_CC
1569if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001570 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001571echo "${ECHO_T}$CC" >&6
1572else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001573 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001574echo "${ECHO_T}no" >&6
1575fi
1576
1577fi
1578if test -z "$ac_cv_prog_CC"; then
1579 ac_ct_CC=$CC
1580 # Extract the first word of "cc", so it can be a program name with args.
1581set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001582echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591for as_dir in $PATH
1592do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_ac_ct_CC="cc"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 break 2
1600 fi
1601done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001602done
1603
1604fi
1605fi
1606ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001609echo "${ECHO_T}$ac_ct_CC" >&6
1610else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001611 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001612echo "${ECHO_T}no" >&6
1613fi
1614
1615 CC=$ac_ct_CC
1616else
1617 CC="$ac_cv_prog_CC"
1618fi
1619
1620fi
1621if test -z "$CC"; then
1622 # Extract the first word of "cc", so it can be a program name with args.
1623set dummy cc; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001624echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1631else
1632 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634for as_dir in $PATH
1635do
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1641 ac_prog_rejected=yes
1642 continue
1643 fi
1644 ac_cv_prog_CC="cc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001649done
1650
1651if test $ac_prog_rejected = yes; then
1652 # We found a bogon in the path, so make sure we never use it.
1653 set dummy $ac_cv_prog_CC
1654 shift
1655 if test $# != 0; then
1656 # We chose a different compiler from the bogus one.
1657 # However, it has the same basename, so the bogon will be chosen
1658 # first if we set CC to just the basename; use the full file name.
1659 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001661 fi
1662fi
1663fi
1664fi
1665CC=$ac_cv_prog_CC
1666if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001667 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001668echo "${ECHO_T}$CC" >&6
1669else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001670 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001671echo "${ECHO_T}no" >&6
1672fi
1673
1674fi
1675if test -z "$CC"; then
1676 if test -n "$ac_tool_prefix"; then
1677 for ac_prog in cl
1678 do
1679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1680set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001681echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683if test "${ac_cv_prog_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC="$CC" # Let the user override the test.
1688else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690for as_dir in $PATH
1691do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 break 2
1699 fi
1700done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001701done
1702
1703fi
1704fi
1705CC=$ac_cv_prog_CC
1706if test -n "$CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001707 echo "$as_me:$LINENO: result: $CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001708echo "${ECHO_T}$CC" >&6
1709else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001710 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001711echo "${ECHO_T}no" >&6
1712fi
1713
1714 test -n "$CC" && break
1715 done
1716fi
1717if test -z "$CC"; then
1718 ac_ct_CC=$CC
1719 for ac_prog in cl
1720do
1721 # Extract the first word of "$ac_prog", so it can be a program name with args.
1722set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001723echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1730else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC="$ac_prog"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001743done
1744
1745fi
1746fi
1747ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748if test -n "$ac_ct_CC"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001750echo "${ECHO_T}$ac_ct_CC" >&6
1751else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001752 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001753echo "${ECHO_T}no" >&6
1754fi
1755
1756 test -n "$ac_ct_CC" && break
1757done
1758
1759 CC=$ac_ct_CC
1760fi
1761
1762fi
1763
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001764
1765test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1766See \`config.log' for more details." >&5
1767echo "$as_me: error: no acceptable C compiler found in \$PATH
1768See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001769 { (exit 1); exit 1; }; }
1770
1771# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001772echo "$as_me:$LINENO:" \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001773 "checking for C compiler version" >&5
1774ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001775{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001776 (eval $ac_compiler --version </dev/null >&5) 2>&5
1777 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001779 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001780{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001781 (eval $ac_compiler -v </dev/null >&5) 2>&5
1782 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001784 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001785{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001786 (eval $ac_compiler -V </dev/null >&5) 2>&5
1787 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001789 (exit $ac_status); }
1790
1791cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001792/* confdefs.h. */
1793_ACEOF
1794cat confdefs.h >>conftest.$ac_ext
1795cat >>conftest.$ac_ext <<_ACEOF
1796/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001797
1798int
1799main ()
1800{
1801
1802 ;
1803 return 0;
1804}
1805_ACEOF
1806ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001807ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001808# Try to create an executable without -o first, disregard a.out.
1809# It will help us diagnose broken compilers, and finding out an intuition
1810# of exeext.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001811echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1812echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001813ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001814if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001815 (eval $ac_link_default) 2>&5
1816 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001818 (exit $ac_status); }; then
1819 # Find the output, starting from the most likely. This scheme is
1820# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1821# resort.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001822
1823# Be careful to initialize this variable, since it used to be cached.
1824# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1825ac_cv_exeext=
1826# b.out is created by i960 compilers.
1827for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1828do
1829 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001830 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1832 ;;
1833 conftest.$ac_ext )
1834 # This is the source file.
1835 ;;
1836 [ab].out )
1837 # We found the default executable, but exeext='' is most
1838 # certainly right.
1839 break;;
1840 *.* )
1841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842 # FIXME: I believe we export ac_cv_exeext for Libtool,
1843 # but it would be cool to find out if it's true. Does anybody
1844 # maintain Libtool? --akim.
1845 export ac_cv_exeext
1846 break;;
1847 * )
1848 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001849 esac
1850done
1851else
1852 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1856See \`config.log' for more details." >&5
1857echo "$as_me: error: C compiler cannot create executables
1858See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001859 { (exit 77); exit 77; }; }
1860fi
1861
1862ac_exeext=$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001863echo "$as_me:$LINENO: result: $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001864echo "${ECHO_T}$ac_file" >&6
1865
1866# Check the compiler produces executables we can run. If not, either
1867# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001868echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001869echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1870# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1871# If not cross compiling, check that we can run a simple program.
1872if test "$cross_compiling" != yes; then
1873 if { ac_try='./$ac_file'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001875 (eval $ac_try) 2>&5
1876 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001878 (exit $ac_status); }; }; then
1879 cross_compiling=no
1880 else
1881 if test "$cross_compiling" = maybe; then
1882 cross_compiling=yes
1883 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001884 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1885If you meant to cross compile, use \`--host'.
1886See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001887echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001888If you meant to cross compile, use \`--host'.
1889See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001890 { (exit 1); exit 1; }; }
1891 fi
1892 fi
1893fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001894echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001895echo "${ECHO_T}yes" >&6
1896
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001897rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001898ac_clean_files=$ac_clean_files_save
1899# Check the compiler produces executables we can run. If not, either
1900# the compiler is broken, or we cross compile.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001901echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001902echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001903echo "$as_me:$LINENO: result: $cross_compiling" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001904echo "${ECHO_T}$cross_compiling" >&6
1905
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001906echo "$as_me:$LINENO: checking for suffix of executables" >&5
1907echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001909 (eval $ac_link) 2>&5
1910 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001912 (exit $ac_status); }; then
1913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1914# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1915# work properly (i.e., refer to `conftest.exe'), while it won't with
1916# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001917for ac_file in conftest.exe conftest conftest.*; do
1918 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001919 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001922 export ac_cv_exeext
1923 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001924 * ) break;;
1925 esac
1926done
1927else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001928 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1929See \`config.log' for more details." >&5
1930echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1931See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001932 { (exit 1); exit 1; }; }
1933fi
1934
1935rm -f conftest$ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001936echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001937echo "${ECHO_T}$ac_cv_exeext" >&6
1938
1939rm -f conftest.$ac_ext
1940EXEEXT=$ac_cv_exeext
1941ac_exeext=$EXEEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001942echo "$as_me:$LINENO: checking for suffix of object files" >&5
1943echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001944if test "${ac_cv_objext+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001948/* confdefs.h. */
1949_ACEOF
1950cat confdefs.h >>conftest.$ac_ext
1951cat >>conftest.$ac_ext <<_ACEOF
1952/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001953
1954int
1955main ()
1956{
1957
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962rm -f conftest.o conftest.obj
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001964 (eval $ac_compile) 2>&5
1965 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001967 (exit $ac_status); }; then
1968 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1969 case $ac_file in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1972 break;;
1973 esac
1974done
1975else
1976 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1980See \`config.log' for more details." >&5
1981echo "$as_me: error: cannot compute suffix of object files: cannot compile
1982See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001983 { (exit 1); exit 1; }; }
1984fi
1985
1986rm -f conftest.$ac_cv_objext conftest.$ac_ext
1987fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001988echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001989echo "${ECHO_T}$ac_cv_objext" >&6
1990OBJEXT=$ac_cv_objext
1991ac_objext=$OBJEXT
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001992echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001993echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1994if test "${ac_cv_c_compiler_gnu+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996else
1997 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001998/* confdefs.h. */
1999_ACEOF
2000cat confdefs.h >>conftest.$ac_ext
2001cat >>conftest.$ac_ext <<_ACEOF
2002/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002003
2004int
2005main ()
2006{
2007#ifndef __GNUC__
2008 choke me
2009#endif
2010
2011 ;
2012 return 0;
2013}
2014_ACEOF
2015rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2017 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002018 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002019 grep -v '^ *+' conftest.er1 >conftest.err
2020 rm -f conftest.er1
2021 cat conftest.err >&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002023 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002024 { ac_try='test -z "$ac_c_werror_flag"
2025 || test ! -s conftest.err'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002027 (eval $ac_try) 2>&5
2028 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; } &&
2031 { ac_try='test -s conftest.$ac_objext'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 (eval $ac_try) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002036 (exit $ac_status); }; }; then
2037 ac_compiler_gnu=yes
2038else
2039 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002040sed 's/^/| /' conftest.$ac_ext >&5
2041
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002042ac_compiler_gnu=no
2043fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002045ac_cv_c_compiler_gnu=$ac_compiler_gnu
2046
2047fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002048echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002049echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2050GCC=`test $ac_compiler_gnu = yes && echo yes`
2051ac_test_CFLAGS=${CFLAGS+set}
2052ac_save_CFLAGS=$CFLAGS
2053CFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002054echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002055echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2056if test "${ac_cv_prog_cc_g+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002060/* confdefs.h. */
2061_ACEOF
2062cat confdefs.h >>conftest.$ac_ext
2063cat >>conftest.$ac_ext <<_ACEOF
2064/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002065
2066int
2067main ()
2068{
2069
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002077 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002078 grep -v '^ *+' conftest.er1 >conftest.err
2079 rm -f conftest.er1
2080 cat conftest.err >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002082 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002083 { ac_try='test -z "$ac_c_werror_flag"
2084 || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002086 (eval $ac_try) 2>&5
2087 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002095 (exit $ac_status); }; }; then
2096 ac_cv_prog_cc_g=yes
2097else
2098 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002099sed 's/^/| /' conftest.$ac_ext >&5
2100
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002101ac_cv_prog_cc_g=no
2102fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002104fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002105echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002106echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107if test "$ac_test_CFLAGS" = set; then
2108 CFLAGS=$ac_save_CFLAGS
2109elif test $ac_cv_prog_cc_g = yes; then
2110 if test "$GCC" = yes; then
2111 CFLAGS="-g -O2"
2112 else
2113 CFLAGS="-g"
2114 fi
2115else
2116 if test "$GCC" = yes; then
2117 CFLAGS="-O2"
2118 else
2119 CFLAGS=
2120 fi
2121fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002122echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
2127 ac_cv_prog_cc_stdc=no
2128ac_save_CC=$CC
2129cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h. */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h. */
2135#include <stdarg.h>
2136#include <stdio.h>
2137#include <sys/types.h>
2138#include <sys/stat.h>
2139/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2140struct buf { int x; };
2141FILE * (*rcsopen) (struct buf *, struct stat *, int);
2142static char *e (p, i)
2143 char **p;
2144 int i;
2145{
2146 return p[i];
2147}
2148static char *f (char * (*g) (char **, int), char **p, ...)
2149{
2150 char *s;
2151 va_list v;
2152 va_start (v,p);
2153 s = g (p, va_arg (v,int));
2154 va_end (v);
2155 return s;
2156}
2157
2158/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2159 function prototypes and stuff, but not '\xHH' hex character constants.
2160 These don't provoke an error unfortunately, instead are silently treated
2161 as 'x'. The following induces an error, until -std1 is added to get
2162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2163 array size at least. It's necessary to write '\x00'==0 to get something
2164 that's true only with -std1. */
2165int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2166
2167int test (int i, double x);
2168struct s1 {int (*f) (int a);};
2169struct s2 {int (*f) (double a);};
2170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171int argc;
2172char **argv;
2173int
2174main ()
2175{
2176return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181# Don't try gcc -ansi; that turns off useful extensions and
2182# breaks some systems' header files.
2183# AIX -qlanglvl=ansi
2184# Ultrix and OSF/1 -std1
2185# HP-UX 10.20 and later -Ae
2186# HP-UX older versions -Aa -D_HPUX_SOURCE
2187# SVR4 -Xc -D__EXTENSIONS__
2188for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189do
2190 CC="$ac_save_CC $ac_arg"
2191 rm -f conftest.$ac_objext
2192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>conftest.er1
2194 ac_status=$?
2195 grep -v '^ *+' conftest.er1 >conftest.err
2196 rm -f conftest.er1
2197 cat conftest.err >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
2200 { ac_try='test -z "$ac_c_werror_flag"
2201 || test ! -s conftest.err'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 (eval $ac_try) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; } &&
2207 { ac_try='test -s conftest.$ac_objext'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2213 ac_cv_prog_cc_stdc=$ac_arg
2214break
2215else
2216 echo "$as_me: failed program was:" >&5
2217sed 's/^/| /' conftest.$ac_ext >&5
2218
2219fi
2220rm -f conftest.err conftest.$ac_objext
2221done
2222rm -f conftest.$ac_ext conftest.$ac_objext
2223CC=$ac_save_CC
2224
2225fi
2226
2227case "x$ac_cv_prog_cc_stdc" in
2228 x|xno)
2229 echo "$as_me:$LINENO: result: none needed" >&5
2230echo "${ECHO_T}none needed" >&6 ;;
2231 *)
2232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2233echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2234 CC="$CC $ac_cv_prog_cc_stdc" ;;
2235esac
2236
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002237# Some people use a C++ compiler to compile C. Since we use `exit',
2238# in C++ we need to declare it. In case someone uses the same compiler
2239# for both compiling C and C++ we need to have the C++ compiler decide
2240# the declaration of exit, since it's the most demanding environment.
2241cat >conftest.$ac_ext <<_ACEOF
2242#ifndef __cplusplus
2243 choke me
2244#endif
2245_ACEOF
2246rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002249 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002250 grep -v '^ *+' conftest.er1 >conftest.err
2251 rm -f conftest.er1
2252 cat conftest.err >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002254 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002255 { ac_try='test -z "$ac_c_werror_flag"
2256 || test ! -s conftest.err'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002258 (eval $ac_try) 2>&5
2259 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; } &&
2262 { ac_try='test -s conftest.$ac_objext'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002267 (exit $ac_status); }; }; then
2268 for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002269 '' \
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002270 'extern "C" void std::exit (int) throw (); using std::exit;' \
2271 'extern "C" void std::exit (int); using std::exit;' \
2272 'extern "C" void exit (int) throw ();' \
2273 'extern "C" void exit (int);' \
2274 'void exit (int);'
2275do
2276 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002277/* confdefs.h. */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002282$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002283#include <stdlib.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002284int
2285main ()
2286{
2287exit (42);
2288 ;
2289 return 0;
2290}
2291_ACEOF
2292rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002295 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002296 grep -v '^ *+' conftest.er1 >conftest.err
2297 rm -f conftest.er1
2298 cat conftest.err >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002300 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002301 { ac_try='test -z "$ac_c_werror_flag"
2302 || test ! -s conftest.err'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002304 (eval $ac_try) 2>&5
2305 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; } &&
2308 { ac_try='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002313 (exit $ac_status); }; }; then
2314 :
2315else
2316 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002317sed 's/^/| /' conftest.$ac_ext >&5
2318
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002319continue
2320fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002322 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002323/* confdefs.h. */
2324_ACEOF
2325cat confdefs.h >>conftest.$ac_ext
2326cat >>conftest.$ac_ext <<_ACEOF
2327/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002328$ac_declaration
2329int
2330main ()
2331{
2332exit (42);
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002340 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002341 grep -v '^ *+' conftest.er1 >conftest.err
2342 rm -f conftest.er1
2343 cat conftest.err >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002345 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002346 { ac_try='test -z "$ac_c_werror_flag"
2347 || test ! -s conftest.err'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002349 (eval $ac_try) 2>&5
2350 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; } &&
2353 { ac_try='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002358 (exit $ac_status); }; }; then
2359 break
2360else
2361 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002362sed 's/^/| /' conftest.$ac_ext >&5
2363
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002364fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002366done
2367rm -f conftest*
2368if test -n "$ac_declaration"; then
2369 echo '#ifdef __cplusplus' >>confdefs.h
2370 echo $ac_declaration >>confdefs.h
2371 echo '#endif' >>confdefs.h
2372fi
2373
2374else
2375 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002376sed 's/^/| /' conftest.$ac_ext >&5
2377
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002378fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002380ac_ext=c
2381ac_cpp='$CPP $CPPFLAGS'
2382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002386ac_ext=cc
2387ac_cpp='$CXXCPP $CPPFLAGS'
2388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2391if test -n "$ac_tool_prefix"; then
2392 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2393 do
2394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2395set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002396echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2398if test "${ac_cv_prog_CXX+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400else
2401 if test -n "$CXX"; then
2402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2403else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002416done
2417
2418fi
2419fi
2420CXX=$ac_cv_prog_CXX
2421if test -n "$CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002422 echo "$as_me:$LINENO: result: $CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002423echo "${ECHO_T}$CXX" >&6
2424else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002425 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002426echo "${ECHO_T}no" >&6
2427fi
2428
2429 test -n "$CXX" && break
2430 done
2431fi
2432if test -z "$CXX"; then
2433 ac_ct_CXX=$CXX
2434 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2435do
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437set dummy $ac_prog; ac_word=$2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002438echo "$as_me:$LINENO: checking for $ac_word" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2440if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443 if test -n "$ac_ct_CXX"; then
2444 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2445else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453 ac_cv_prog_ac_ct_CXX="$ac_prog"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2456 fi
2457done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002458done
2459
2460fi
2461fi
2462ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2463if test -n "$ac_ct_CXX"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002464 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002465echo "${ECHO_T}$ac_ct_CXX" >&6
2466else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002467 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002468echo "${ECHO_T}no" >&6
2469fi
2470
2471 test -n "$ac_ct_CXX" && break
2472done
2473test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2474
2475 CXX=$ac_ct_CXX
2476fi
2477
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002478
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002479# Provide some information about the compiler.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002480echo "$as_me:$LINENO:" \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002481 "checking for C++ compiler version" >&5
2482ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002483{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002484 (eval $ac_compiler --version </dev/null >&5) 2>&5
2485 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002487 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002488{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002489 (eval $ac_compiler -v </dev/null >&5) 2>&5
2490 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002492 (exit $ac_status); }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002493{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002494 (eval $ac_compiler -V </dev/null >&5) 2>&5
2495 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002497 (exit $ac_status); }
2498
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002499echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002500echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2501if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002505/* confdefs.h. */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002510
2511int
2512main ()
2513{
2514#ifndef __GNUC__
2515 choke me
2516#endif
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002525 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002526 grep -v '^ *+' conftest.er1 >conftest.err
2527 rm -f conftest.er1
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002530 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002531 { ac_try='test -z "$ac_cxx_werror_flag"
2532 || test ! -s conftest.err'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002534 (eval $ac_try) 2>&5
2535 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 (eval $ac_try) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002543 (exit $ac_status); }; }; then
2544 ac_compiler_gnu=yes
2545else
2546 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002547sed 's/^/| /' conftest.$ac_ext >&5
2548
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002549ac_compiler_gnu=no
2550fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002552ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2553
2554fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002555echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002556echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2557GXX=`test $ac_compiler_gnu = yes && echo yes`
2558ac_test_CXXFLAGS=${CXXFLAGS+set}
2559ac_save_CXXFLAGS=$CXXFLAGS
2560CXXFLAGS="-g"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002561echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002562echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2563if test "${ac_cv_prog_cxx_g+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002567/* confdefs.h. */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002572
2573int
2574main ()
2575{
2576
2577 ;
2578 return 0;
2579}
2580_ACEOF
2581rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002584 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002585 grep -v '^ *+' conftest.er1 >conftest.err
2586 rm -f conftest.er1
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002589 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002590 { ac_try='test -z "$ac_cxx_werror_flag"
2591 || test ! -s conftest.err'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002593 (eval $ac_try) 2>&5
2594 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 (eval $ac_try) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002602 (exit $ac_status); }; }; then
2603 ac_cv_prog_cxx_g=yes
2604else
2605 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002606sed 's/^/| /' conftest.$ac_ext >&5
2607
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002608ac_cv_prog_cxx_g=no
2609fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002611fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002612echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002613echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2614if test "$ac_test_CXXFLAGS" = set; then
2615 CXXFLAGS=$ac_save_CXXFLAGS
2616elif test $ac_cv_prog_cxx_g = yes; then
2617 if test "$GXX" = yes; then
2618 CXXFLAGS="-g -O2"
2619 else
2620 CXXFLAGS="-g"
2621 fi
2622else
2623 if test "$GXX" = yes; then
2624 CXXFLAGS="-O2"
2625 else
2626 CXXFLAGS=
2627 fi
2628fi
2629for ac_declaration in \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002630 '' \
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002631 'extern "C" void std::exit (int) throw (); using std::exit;' \
2632 'extern "C" void std::exit (int); using std::exit;' \
2633 'extern "C" void exit (int) throw ();' \
2634 'extern "C" void exit (int);' \
2635 'void exit (int);'
2636do
2637 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
Benny Prijono39ae2da2006-10-13 17:57:42 +00002643$ac_declaration
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002644#include <stdlib.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002645int
2646main ()
2647{
2648exit (42);
2649 ;
2650 return 0;
2651}
2652_ACEOF
2653rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002656 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002657 grep -v '^ *+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002661 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002662 { ac_try='test -z "$ac_cxx_werror_flag"
2663 || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002665 (eval $ac_try) 2>&5
2666 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002674 (exit $ac_status); }; }; then
2675 :
2676else
2677 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002678sed 's/^/| /' conftest.$ac_ext >&5
2679
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002680continue
2681fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002683 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002689$ac_declaration
2690int
2691main ()
2692{
2693exit (42);
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002701 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002706 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002707 { ac_try='test -z "$ac_cxx_werror_flag"
2708 || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002710 (eval $ac_try) 2>&5
2711 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002719 (exit $ac_status); }; }; then
2720 break
2721else
2722 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002723sed 's/^/| /' conftest.$ac_ext >&5
2724
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002725fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002727done
2728rm -f conftest*
2729if test -n "$ac_declaration"; then
2730 echo '#ifdef __cplusplus' >>confdefs.h
2731 echo $ac_declaration >>confdefs.h
2732 echo '#endif' >>confdefs.h
2733fi
2734
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002735ac_ext=c
2736ac_cpp='$CPP $CPPFLAGS'
2737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002741ac_ext=c
2742ac_cpp='$CPP $CPPFLAGS'
2743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002747
2748
Benny Prijono53847a32007-09-24 16:10:13 +00002749case $target in
2750 *mingw* | *cygw* | *win32* | *w32* )
2751 ac_pjdir=`pwd -W`
2752 ;;
2753 *)
2754 ac_pjdir=`pwd`
2755 ;;
2756esac
Benny Prijono12483112007-03-12 10:44:38 +00002757
2758
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002759
2760echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002761echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2762if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
2765 ac_check_lib_save_LIBS=$LIBS
2766LIBS="-lpthread $LIBS"
2767cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002768/* confdefs.h. */
2769_ACEOF
2770cat confdefs.h >>conftest.$ac_ext
2771cat >>conftest.$ac_ext <<_ACEOF
2772/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002773
2774/* Override any gcc2 internal prototype to avoid an error. */
2775#ifdef __cplusplus
2776extern "C"
2777#endif
2778/* We use char because int might match the return type of a gcc2
2779 builtin and then its argument prototype would still apply. */
2780char pthread_create ();
2781int
2782main ()
2783{
2784pthread_create ();
2785 ;
2786 return 0;
2787}
2788_ACEOF
2789rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2791 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002792 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002797 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002798 { ac_try='test -z "$ac_c_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002801 (eval $ac_try) 2>&5
2802 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest$ac_exeext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002810 (exit $ac_status); }; }; then
2811 ac_cv_lib_pthread_pthread_create=yes
2812else
2813 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002814sed 's/^/| /' conftest.$ac_ext >&5
2815
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002816ac_cv_lib_pthread_pthread_create=no
2817fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002818rm -f conftest.err conftest.$ac_objext \
2819 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002820LIBS=$ac_check_lib_save_LIBS
2821fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002822echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002823echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2824if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002825 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002826#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002827_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002828
2829 LIBS="-lpthread $LIBS"
2830
2831fi
2832
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002833
2834echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002835echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
2836if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838else
2839 ac_check_lib_save_LIBS=$LIBS
2840LIBS="-lwsock32 $LIBS"
2841cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002842/* confdefs.h. */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002847
2848/* Override any gcc2 internal prototype to avoid an error. */
2849#ifdef __cplusplus
2850extern "C"
2851#endif
2852/* We use char because int might match the return type of a gcc2
2853 builtin and then its argument prototype would still apply. */
2854char puts ();
2855int
2856main ()
2857{
2858puts ();
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2865 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002866 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002871 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002872 { ac_try='test -z "$ac_c_werror_flag"
2873 || test ! -s conftest.err'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002875 (eval $ac_try) 2>&5
2876 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; } &&
2879 { ac_try='test -s conftest$ac_exeext'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002884 (exit $ac_status); }; }; then
2885 ac_cv_lib_wsock32_puts=yes
2886else
2887 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002888sed 's/^/| /' conftest.$ac_ext >&5
2889
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002890ac_cv_lib_wsock32_puts=no
2891fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002892rm -f conftest.err conftest.$ac_objext \
2893 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002894LIBS=$ac_check_lib_save_LIBS
2895fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002896echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002897echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
2898if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002899 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002900#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002901_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002902
2903 LIBS="-lwsock32 $LIBS"
2904
2905fi
2906
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002907
2908echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002909echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
2910if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913 ac_check_lib_save_LIBS=$LIBS
2914LIBS="-lws2_32 $LIBS"
2915cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002916/* confdefs.h. */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002921
2922/* Override any gcc2 internal prototype to avoid an error. */
2923#ifdef __cplusplus
2924extern "C"
2925#endif
2926/* We use char because int might match the return type of a gcc2
2927 builtin and then its argument prototype would still apply. */
2928char puts ();
2929int
2930main ()
2931{
2932puts ();
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002940 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002945 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002946 { ac_try='test -z "$ac_c_werror_flag"
2947 || test ! -s conftest.err'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00002949 (eval $ac_try) 2>&5
2950 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; } &&
2953 { ac_try='test -s conftest$ac_exeext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002958 (exit $ac_status); }; }; then
2959 ac_cv_lib_ws2_32_puts=yes
2960else
2961 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002962sed 's/^/| /' conftest.$ac_ext >&5
2963
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002964ac_cv_lib_ws2_32_puts=no
2965fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002966rm -f conftest.err conftest.$ac_objext \
2967 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002968LIBS=$ac_check_lib_save_LIBS
2969fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002970echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002971echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
2972if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002973 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002974#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002975_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002976
2977 LIBS="-lws2_32 $LIBS"
2978
2979fi
2980
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002981
2982echo "$as_me:$LINENO: checking for puts in -lole32" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002983echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
2984if test "${ac_cv_lib_ole32_puts+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987 ac_check_lib_save_LIBS=$LIBS
2988LIBS="-lole32 $LIBS"
2989cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002990/* confdefs.h. */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002995
2996/* Override any gcc2 internal prototype to avoid an error. */
2997#ifdef __cplusplus
2998extern "C"
2999#endif
3000/* We use char because int might match the return type of a gcc2
3001 builtin and then its argument prototype would still apply. */
3002char puts ();
3003int
3004main ()
3005{
3006puts ();
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3013 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003014 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003019 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003023 (eval $ac_try) 2>&5
3024 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest$ac_exeext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003032 (exit $ac_status); }; }; then
3033 ac_cv_lib_ole32_puts=yes
3034else
3035 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003036sed 's/^/| /' conftest.$ac_ext >&5
3037
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003038ac_cv_lib_ole32_puts=no
3039fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003040rm -f conftest.err conftest.$ac_objext \
3041 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003042LIBS=$ac_check_lib_save_LIBS
3043fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003044echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003045echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
3046if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003047 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003048#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003049_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003050
3051 LIBS="-lole32 $LIBS"
3052
3053fi
3054
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003055
3056echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003057echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
3058if test "${ac_cv_lib_winmm_puts+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061 ac_check_lib_save_LIBS=$LIBS
3062LIBS="-lwinmm $LIBS"
3063cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003064/* confdefs.h. */
3065_ACEOF
3066cat confdefs.h >>conftest.$ac_ext
3067cat >>conftest.$ac_ext <<_ACEOF
3068/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003069
3070/* Override any gcc2 internal prototype to avoid an error. */
3071#ifdef __cplusplus
3072extern "C"
3073#endif
3074/* We use char because int might match the return type of a gcc2
3075 builtin and then its argument prototype would still apply. */
3076char puts ();
3077int
3078main ()
3079{
3080puts ();
3081 ;
3082 return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003088 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003093 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003094 { ac_try='test -z "$ac_c_werror_flag"
3095 || test ! -s conftest.err'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003097 (eval $ac_try) 2>&5
3098 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest$ac_exeext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003106 (exit $ac_status); }; }; then
3107 ac_cv_lib_winmm_puts=yes
3108else
3109 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003110sed 's/^/| /' conftest.$ac_ext >&5
3111
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003112ac_cv_lib_winmm_puts=no
3113fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003114rm -f conftest.err conftest.$ac_objext \
3115 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003116LIBS=$ac_check_lib_save_LIBS
3117fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003118echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003119echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
3120if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003121 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003122#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003123_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003124
3125 LIBS="-lwinmm $LIBS"
3126
3127fi
3128
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003129
3130echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003131echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
3132if test "${ac_cv_lib_socket_puts+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135 ac_check_lib_save_LIBS=$LIBS
3136LIBS="-lsocket $LIBS"
3137cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003138/* confdefs.h. */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003143
3144/* Override any gcc2 internal prototype to avoid an error. */
3145#ifdef __cplusplus
3146extern "C"
3147#endif
3148/* We use char because int might match the return type of a gcc2
3149 builtin and then its argument prototype would still apply. */
3150char puts ();
3151int
3152main ()
3153{
3154puts ();
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3161 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003162 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003167 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003168 { ac_try='test -z "$ac_c_werror_flag"
3169 || test ! -s conftest.err'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003171 (eval $ac_try) 2>&5
3172 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest$ac_exeext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003180 (exit $ac_status); }; }; then
3181 ac_cv_lib_socket_puts=yes
3182else
3183 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003184sed 's/^/| /' conftest.$ac_ext >&5
3185
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003186ac_cv_lib_socket_puts=no
3187fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003188rm -f conftest.err conftest.$ac_objext \
3189 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003190LIBS=$ac_check_lib_save_LIBS
3191fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003192echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003193echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
3194if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003195 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003196#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003197_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003198
3199 LIBS="-lsocket $LIBS"
3200
3201fi
3202
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003203
3204echo "$as_me:$LINENO: checking for puts in -lrt" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003205echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
3206if test "${ac_cv_lib_rt_puts+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209 ac_check_lib_save_LIBS=$LIBS
3210LIBS="-lrt $LIBS"
3211cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003217
3218/* Override any gcc2 internal prototype to avoid an error. */
3219#ifdef __cplusplus
3220extern "C"
3221#endif
3222/* We use char because int might match the return type of a gcc2
3223 builtin and then its argument prototype would still apply. */
3224char puts ();
3225int
3226main ()
3227{
3228puts ();
3229 ;
3230 return 0;
3231}
3232_ACEOF
3233rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3235 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003236 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003241 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003245 (eval $ac_try) 2>&5
3246 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003254 (exit $ac_status); }; }; then
3255 ac_cv_lib_rt_puts=yes
3256else
3257 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003258sed 's/^/| /' conftest.$ac_ext >&5
3259
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003260ac_cv_lib_rt_puts=no
3261fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003262rm -f conftest.err conftest.$ac_objext \
3263 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003264LIBS=$ac_check_lib_save_LIBS
3265fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003266echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003267echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
3268if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003269 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003270#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003271_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003272
3273 LIBS="-lrt $LIBS"
3274
3275fi
3276
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003277
3278echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003279echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
3280if test "${ac_cv_lib_nsl_puts+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283 ac_check_lib_save_LIBS=$LIBS
3284LIBS="-lnsl $LIBS"
3285cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003291
3292/* Override any gcc2 internal prototype to avoid an error. */
3293#ifdef __cplusplus
3294extern "C"
3295#endif
3296/* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298char puts ();
3299int
3300main ()
3301{
3302puts ();
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003310 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003315 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003316 { ac_try='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003319 (eval $ac_try) 2>&5
3320 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest$ac_exeext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003328 (exit $ac_status); }; }; then
3329 ac_cv_lib_nsl_puts=yes
3330else
3331 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003332sed 's/^/| /' conftest.$ac_ext >&5
3333
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003334ac_cv_lib_nsl_puts=no
3335fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003336rm -f conftest.err conftest.$ac_objext \
3337 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003338LIBS=$ac_check_lib_save_LIBS
3339fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003340echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003341echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
3342if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003343 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003344#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003345_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003346
3347 LIBS="-lnsl $LIBS"
3348
3349fi
3350
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003351
Benny Prijono4e48b512007-05-16 13:41:00 +00003352echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3353echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
3354if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357 ac_check_lib_save_LIBS=$LIBS
3358LIBS="-luuid $LIBS"
3359cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h. */
3365
3366/* Override any gcc2 internal prototype to avoid an error. */
3367#ifdef __cplusplus
3368extern "C"
3369#endif
3370/* We use char because int might match the return type of a gcc2
3371 builtin and then its argument prototype would still apply. */
3372char uuid_generate ();
3373int
3374main ()
3375{
3376uuid_generate ();
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext conftest$ac_exeext
3382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383 (eval $ac_link) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest$ac_exeext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_lib_uuid_uuid_generate=yes
3404else
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408ac_cv_lib_uuid_uuid_generate=no
3409fi
3410rm -f conftest.err conftest.$ac_objext \
3411 conftest$ac_exeext conftest.$ac_ext
3412LIBS=$ac_check_lib_save_LIBS
3413fi
3414echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3415echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
3416if test $ac_cv_lib_uuid_uuid_generate = yes; then
3417 cat >>confdefs.h <<_ACEOF
3418#define HAVE_LIBUUID 1
3419_ACEOF
3420
3421 LIBS="-luuid $LIBS"
3422
3423fi
3424
3425echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3426echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
3427if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430 ac_check_lib_save_LIBS=$LIBS
3431LIBS="-luuid $LIBS"
3432cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h. */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h. */
3438
3439/* Override any gcc2 internal prototype to avoid an error. */
3440#ifdef __cplusplus
3441extern "C"
3442#endif
3443/* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3445char uuid_generate ();
3446int
3447main ()
3448{
3449uuid_generate ();
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext conftest$ac_exeext
3455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3456 (eval $ac_link) 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -z "$ac_c_werror_flag"
3464 || test ! -s conftest.err'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; } &&
3470 { ac_try='test -s conftest$ac_exeext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3476 ac_cv_lib_uuid_uuid_generate=yes
3477else
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481ac_cv_lib_uuid_uuid_generate=no
3482fi
3483rm -f conftest.err conftest.$ac_objext \
3484 conftest$ac_exeext conftest.$ac_ext
3485LIBS=$ac_check_lib_save_LIBS
3486fi
3487echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3488echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
3489if test $ac_cv_lib_uuid_uuid_generate = yes; then
3490 ac_has_uuid_lib=1
3491fi
3492
3493
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003494echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3495echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
3496cat >>confdefs.h <<_ACEOF
3497#define PJ_M_NAME "$target_cpu"
3498_ACEOF
3499
3500
3501echo "$as_me:$LINENO: checking memory alignment" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003502echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
3503case $target in
3504 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003505 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003506#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003507_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003508
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003509 echo "$as_me:$LINENO: result: 8 bytes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003510echo "${ECHO_T}8 bytes" >&6
3511 ;;
3512 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003513 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003514#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003515_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003516
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003517 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00003518echo "${ECHO_T}4 bytes (default)" >&6
3519 ;;
3520esac
3521
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003522
3523echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003524echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3525if test "${ac_cv_c_bigendian+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003528 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003529cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003530/* confdefs.h. */
3531_ACEOF
3532cat confdefs.h >>conftest.$ac_ext
3533cat >>conftest.$ac_ext <<_ACEOF
3534/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003535#include <sys/types.h>
3536#include <sys/param.h>
3537
3538int
3539main ()
3540{
3541#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3542 bogus endian macros
3543#endif
3544
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003552 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003557 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003558 { ac_try='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003561 (eval $ac_try) 2>&5
3562 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003570 (exit $ac_status); }; }; then
3571 # It does; now see whether it defined to BIG_ENDIAN or not.
3572cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003573/* confdefs.h. */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003578#include <sys/types.h>
3579#include <sys/param.h>
3580
3581int
3582main ()
3583{
3584#if BYTE_ORDER != BIG_ENDIAN
3585 not big endian
3586#endif
3587
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003595 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003600 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003604 (eval $ac_try) 2>&5
3605 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003613 (exit $ac_status); }; }; then
3614 ac_cv_c_bigendian=yes
3615else
3616 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003617sed 's/^/| /' conftest.$ac_ext >&5
3618
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003619ac_cv_c_bigendian=no
3620fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003622else
3623 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003627if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003628 # try to guess the endianness by grepping values into an object file
3629 ac_cv_c_bigendian=unknown
3630 cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
3636short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3637short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3638void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3639short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3640short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3641void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3642int
3643main ()
3644{
3645 _ascii (); _ebcdic ();
3646 ;
3647 return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3673 ac_cv_c_bigendian=yes
3674fi
3675if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3676 if test "$ac_cv_c_bigendian" = unknown; then
3677 ac_cv_c_bigendian=no
3678 else
3679 # finding both strings is unlikely to happen, but who knows?
3680 ac_cv_c_bigendian=unknown
3681 fi
3682fi
3683else
3684 echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687fi
3688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003689else
3690 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003696int
3697main ()
3698{
3699 /* Are we little or big endian? From Harbison&Steele. */
3700 union
3701 {
3702 long l;
3703 char c[sizeof (long)];
3704 } u;
3705 u.l = 1;
3706 exit (u.c[sizeof (long) - 1] == 1);
3707}
3708_ACEOF
3709rm -f conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003711 (eval $ac_link) 2>&5
3712 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003716 (eval $ac_try) 2>&5
3717 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003719 (exit $ac_status); }; }; then
3720 ac_cv_c_bigendian=no
3721else
3722 echo "$as_me: program exited with status $ac_status" >&5
3723echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003727ac_cv_c_bigendian=yes
3728fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003729rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003730fi
3731fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003733fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003734echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003735echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003736case $ac_cv_c_bigendian in
3737 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003738
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003739cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003740#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003741_ACEOF
3742 ;;
3743 no)
3744 ;;
3745 *)
3746 { { echo "$as_me:$LINENO: error: unknown endianness
3747presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3748echo "$as_me: error: unknown endianness
3749presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3750 { (exit 1); exit 1; }; } ;;
3751esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003752
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003753
3754case $target in
3755 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003756 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003757#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003758_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003759
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003760 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003761#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003762_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003763
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003764 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003765#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003766_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003767
3768 ;;
3769 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003770 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003771#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003772_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003773
3774 ;;
3775 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003776 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003777#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003778_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003779
3780 ;;
3781 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003782 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003784_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003785
3786 ;;
3787 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003788 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003789#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003790_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003791
3792 ;;
3793 *)
3794 ;;
3795esac
3796
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003797
3798
3799
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003800# Check whether --enable-floating-point or --disable-floating-point was given.
3801if test "${enable_floating_point+set}" = set; then
3802 enableval="$enable_floating_point"
3803 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003804 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003805#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003806_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003807
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003808 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003809echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
3810 fi
3811else
3812
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003813 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003814#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003815_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003816
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003817 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003818echo "${ECHO_T}Checking if floating point is disabled... no" >&6
3819
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003820echo "$as_me:$LINENO: checking for fmod in -lm" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003821echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
3822if test "${ac_cv_lib_m_fmod+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 ac_check_lib_save_LIBS=$LIBS
3826LIBS="-lm $LIBS"
3827cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003828/* confdefs.h. */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003833
3834/* Override any gcc2 internal prototype to avoid an error. */
3835#ifdef __cplusplus
3836extern "C"
3837#endif
3838/* We use char because int might match the return type of a gcc2
3839 builtin and then its argument prototype would still apply. */
3840char fmod ();
3841int
3842main ()
3843{
3844fmod ();
3845 ;
3846 return 0;
3847}
3848_ACEOF
3849rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3851 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003852 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003857 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003858 { ac_try='test -z "$ac_c_werror_flag"
3859 || test ! -s conftest.err'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00003861 (eval $ac_try) 2>&5
3862 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; } &&
3865 { ac_try='test -s conftest$ac_exeext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003870 (exit $ac_status); }; }; then
3871 ac_cv_lib_m_fmod=yes
3872else
3873 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003874sed 's/^/| /' conftest.$ac_ext >&5
3875
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003876ac_cv_lib_m_fmod=no
3877fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003878rm -f conftest.err conftest.$ac_objext \
3879 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003880LIBS=$ac_check_lib_save_LIBS
3881fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003882echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003883echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
3884if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003885 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003886#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003887_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003888
3889 LIBS="-lm $LIBS"
3890
3891fi
3892
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003893
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003894fi;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003895
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003896
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003897ac_ext=c
3898ac_cpp='$CPP $CPPFLAGS'
3899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003902echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003903echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3904# On Suns, sometimes $CPP names a directory.
3905if test -n "$CPP" && test -d "$CPP"; then
3906 CPP=
3907fi
3908if test -z "$CPP"; then
3909 if test "${ac_cv_prog_CPP+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912 # Double quotes because CPP needs to be expanded
3913 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3914 do
3915 ac_preproc_ok=false
3916for ac_c_preproc_warn_flag in '' yes
3917do
3918 # Use a header file that comes with gcc, so configuring glibc
3919 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003922 # On the NeXT, cc -E runs the code through the compiler's parser,
3923 # not just through cpp. "Syntax error" is here to catch this case.
3924 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003925/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003926_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930#ifdef __STDC__
3931# include <limits.h>
3932#else
3933# include <assert.h>
3934#endif
3935 Syntax error
3936_ACEOF
3937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3939 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003940 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003941 rm -f conftest.er1
3942 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003944 (exit $ac_status); } >/dev/null; then
3945 if test -s conftest.err; then
3946 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003948 else
3949 ac_cpp_err=
3950 fi
3951else
3952 ac_cpp_err=yes
3953fi
3954if test -z "$ac_cpp_err"; then
3955 :
3956else
3957 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003958sed 's/^/| /' conftest.$ac_ext >&5
3959
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003960 # Broken: fails on valid input.
3961continue
3962fi
3963rm -f conftest.err conftest.$ac_ext
3964
3965 # OK, works on sane cases. Now check whether non-existent headers
3966 # can be detected and how.
3967 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003973#include <ac_nonexistent.h>
3974_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003978 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003979 rm -f conftest.er1
3980 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003982 (exit $ac_status); } >/dev/null; then
3983 if test -s conftest.err; then
3984 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003986 else
3987 ac_cpp_err=
3988 fi
3989else
3990 ac_cpp_err=yes
3991fi
3992if test -z "$ac_cpp_err"; then
3993 # Broken: success on invalid input.
3994continue
3995else
3996 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003997sed 's/^/| /' conftest.$ac_ext >&5
3998
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003999 # Passes both tests.
4000ac_preproc_ok=:
4001break
4002fi
4003rm -f conftest.err conftest.$ac_ext
4004
4005done
4006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4007rm -f conftest.err conftest.$ac_ext
4008if $ac_preproc_ok; then
4009 break
4010fi
4011
4012 done
4013 ac_cv_prog_CPP=$CPP
4014
4015fi
4016 CPP=$ac_cv_prog_CPP
4017else
4018 ac_cv_prog_CPP=$CPP
4019fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004020echo "$as_me:$LINENO: result: $CPP" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004021echo "${ECHO_T}$CPP" >&6
4022ac_preproc_ok=false
4023for ac_c_preproc_warn_flag in '' yes
4024do
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
4031 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004032/* confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004033_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h. */
4037#ifdef __STDC__
4038# include <limits.h>
4039#else
4040# include <assert.h>
4041#endif
4042 Syntax error
4043_ACEOF
4044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4046 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004047 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004048 rm -f conftest.er1
4049 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004051 (exit $ac_status); } >/dev/null; then
4052 if test -s conftest.err; then
4053 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004055 else
4056 ac_cpp_err=
4057 fi
4058else
4059 ac_cpp_err=yes
4060fi
4061if test -z "$ac_cpp_err"; then
4062 :
4063else
4064 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004065sed 's/^/| /' conftest.$ac_ext >&5
4066
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004067 # Broken: fails on valid input.
4068continue
4069fi
4070rm -f conftest.err conftest.$ac_ext
4071
4072 # OK, works on sane cases. Now check whether non-existent headers
4073 # can be detected and how.
4074 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004080#include <ac_nonexistent.h>
4081_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4084 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004085 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004086 rm -f conftest.er1
4087 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004089 (exit $ac_status); } >/dev/null; then
4090 if test -s conftest.err; then
4091 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004093 else
4094 ac_cpp_err=
4095 fi
4096else
4097 ac_cpp_err=yes
4098fi
4099if test -z "$ac_cpp_err"; then
4100 # Broken: success on invalid input.
4101continue
4102else
4103 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004104sed 's/^/| /' conftest.$ac_ext >&5
4105
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004106 # Passes both tests.
4107ac_preproc_ok=:
4108break
4109fi
4110rm -f conftest.err conftest.$ac_ext
4111
4112done
4113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4114rm -f conftest.err conftest.$ac_ext
4115if $ac_preproc_ok; then
4116 :
4117else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004118 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4119See \`config.log' for more details." >&5
4120echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4121See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004122 { (exit 1); exit 1; }; }
4123fi
4124
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004131
4132echo "$as_me:$LINENO: checking for egrep" >&5
4133echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4134if test "${ac_cv_prog_egrep+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4138 then ac_cv_prog_egrep='grep -E'
4139 else ac_cv_prog_egrep='egrep'
4140 fi
4141fi
4142echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4143echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4144 EGREP=$ac_cv_prog_egrep
4145
4146
4147echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4148echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4149if test "${ac_cv_header_stdc+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#include <stdlib.h>
4159#include <stdarg.h>
4160#include <string.h>
4161#include <float.h>
4162
4163int
4164main ()
4165{
4166
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag"
4181 || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_header_stdc=yes
4194else
4195 echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198ac_cv_header_stdc=no
4199fi
4200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201
4202if test $ac_cv_header_stdc = yes; then
4203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4204 cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
4210#include <string.h>
4211
4212_ACEOF
4213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "memchr" >/dev/null 2>&1; then
4215 :
4216else
4217 ac_cv_header_stdc=no
4218fi
4219rm -f conftest*
4220
4221fi
4222
4223if test $ac_cv_header_stdc = yes; then
4224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4225 cat >conftest.$ac_ext <<_ACEOF
4226/* confdefs.h. */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h. */
4231#include <stdlib.h>
4232
4233_ACEOF
4234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 $EGREP "free" >/dev/null 2>&1; then
4236 :
4237else
4238 ac_cv_header_stdc=no
4239fi
4240rm -f conftest*
4241
4242fi
4243
4244if test $ac_cv_header_stdc = yes; then
4245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4246 if test "$cross_compiling" = yes; then
4247 :
4248else
4249 cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h. */
4255#include <ctype.h>
4256#if ((' ' & 0x0FF) == 0x020)
4257# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4258# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4259#else
4260# define ISLOWER(c) \
4261 (('a' <= (c) && (c) <= 'i') \
4262 || ('j' <= (c) && (c) <= 'r') \
4263 || ('s' <= (c) && (c) <= 'z'))
4264# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4265#endif
4266
4267#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4268int
4269main ()
4270{
4271 int i;
4272 for (i = 0; i < 256; i++)
4273 if (XOR (islower (i), ISLOWER (i))
4274 || toupper (i) != TOUPPER (i))
4275 exit(2);
4276 exit (0);
4277}
4278_ACEOF
4279rm -f conftest$ac_exeext
4280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 :
4291else
4292 echo "$as_me: program exited with status $ac_status" >&5
4293echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296( exit $ac_status )
4297ac_cv_header_stdc=no
4298fi
4299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300fi
4301fi
4302fi
4303echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4304echo "${ECHO_T}$ac_cv_header_stdc" >&6
4305if test $ac_cv_header_stdc = yes; then
4306
4307cat >>confdefs.h <<\_ACEOF
4308#define STDC_HEADERS 1
4309_ACEOF
4310
4311fi
4312
4313# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4324 inttypes.h stdint.h unistd.h
4325do
4326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327echo "$as_me:$LINENO: checking for $ac_header" >&5
4328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4329if eval "test \"\${$as_ac_Header+set}\" = set"; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331else
4332 cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h. */
4338$ac_includes_default
4339
4340#include <$ac_header>
4341_ACEOF
4342rm -f conftest.$ac_objext
4343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344 (eval $ac_compile) 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag"
4352 || test ! -s conftest.err'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 eval "$as_ac_Header=yes"
4365else
4366 echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369eval "$as_ac_Header=no"
4370fi
4371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372fi
4373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4375if test `eval echo '${'$as_ac_Header'}'` = yes; then
4376 cat >>confdefs.h <<_ACEOF
4377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4378_ACEOF
4379
4380fi
4381
4382done
4383
4384
4385if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4386 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4387echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4388if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390fi
4391echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4392echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4393else
4394 # Is the header compilable?
4395echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4396echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
4397cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h. */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h. */
4403$ac_includes_default
4404#include <arpa/inet.h>
4405_ACEOF
4406rm -f conftest.$ac_objext
4407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_header_compiler=yes
4429else
4430 echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433ac_header_compiler=no
4434fi
4435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4437echo "${ECHO_T}$ac_header_compiler" >&6
4438
4439# Is the header present?
4440echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4441echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
4442cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h. */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h. */
4448#include <arpa/inet.h>
4449_ACEOF
4450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } >/dev/null; then
4458 if test -s conftest.err; then
4459 ac_cpp_err=$ac_c_preproc_warn_flag
4460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4461 else
4462 ac_cpp_err=
4463 fi
4464else
4465 ac_cpp_err=yes
4466fi
4467if test -z "$ac_cpp_err"; then
4468 ac_header_preproc=yes
4469else
4470 echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
4473 ac_header_preproc=no
4474fi
4475rm -f conftest.err conftest.$ac_ext
4476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4477echo "${ECHO_T}$ac_header_preproc" >&6
4478
4479# So? What about this header?
4480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4481 yes:no: )
4482 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4483echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4484 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4485echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4486 ac_header_preproc=yes
4487 ;;
4488 no:yes:* )
4489 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4490echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4492echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4494echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4496echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4498echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4500echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
4501 (
4502 cat <<\_ASBOX
4503## ------------------------------------ ##
4504## Report this to the pjproject lists. ##
4505## ------------------------------------ ##
4506_ASBOX
4507 ) |
4508 sed "s/^/$as_me: WARNING: /" >&2
4509 ;;
4510esac
4511echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004512echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
4513if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004515else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004516 ac_cv_header_arpa_inet_h=$ac_header_preproc
4517fi
4518echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4519echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
4520
4521fi
4522if test $ac_cv_header_arpa_inet_h = yes; then
4523 cat >>confdefs.h <<\_ACEOF
4524#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004525_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004526
4527fi
4528
4529
4530if test "${ac_cv_header_assert_h+set}" = set; then
4531 echo "$as_me:$LINENO: checking for assert.h" >&5
4532echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4533if test "${ac_cv_header_assert_h+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535fi
4536echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4537echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4538else
4539 # Is the header compilable?
4540echo "$as_me:$LINENO: checking assert.h usability" >&5
4541echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
4542cat >conftest.$ac_ext <<_ACEOF
4543/* confdefs.h. */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h. */
4548$ac_includes_default
4549#include <assert.h>
4550_ACEOF
4551rm -f conftest.$ac_objext
4552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004554 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004555 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004556 rm -f conftest.er1
4557 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -z "$ac_c_werror_flag"
4561 || test ! -s conftest.err'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 ac_header_compiler=yes
4574else
4575 echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578ac_header_compiler=no
4579fi
4580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4582echo "${ECHO_T}$ac_header_compiler" >&6
4583
4584# Is the header present?
4585echo "$as_me:$LINENO: checking assert.h presence" >&5
4586echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
4587cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h. */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */
4593#include <assert.h>
4594_ACEOF
4595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004602 (exit $ac_status); } >/dev/null; then
4603 if test -s conftest.err; then
4604 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004606 else
4607 ac_cpp_err=
4608 fi
4609else
4610 ac_cpp_err=yes
4611fi
4612if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004613 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004614else
4615 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004619fi
4620rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4622echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004623
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004624# So? What about this header?
4625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4626 yes:no: )
4627 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4628echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4629 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4630echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4631 ac_header_preproc=yes
4632 ;;
4633 no:yes:* )
4634 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4635echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4636 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4637echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4638 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4639echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4641echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4643echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4645echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
4646 (
4647 cat <<\_ASBOX
4648## ------------------------------------ ##
4649## Report this to the pjproject lists. ##
4650## ------------------------------------ ##
4651_ASBOX
4652 ) |
4653 sed "s/^/$as_me: WARNING: /" >&2
4654 ;;
4655esac
4656echo "$as_me:$LINENO: checking for assert.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004657echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
4658if test "${ac_cv_header_assert_h+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004660else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004661 ac_cv_header_assert_h=$ac_header_preproc
4662fi
4663echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4664echo "${ECHO_T}$ac_cv_header_assert_h" >&6
4665
4666fi
4667if test $ac_cv_header_assert_h = yes; then
4668 cat >>confdefs.h <<\_ACEOF
4669#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004670_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004671
4672fi
4673
4674
4675if test "${ac_cv_header_ctype_h+set}" = set; then
4676 echo "$as_me:$LINENO: checking for ctype.h" >&5
4677echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4678if test "${ac_cv_header_ctype_h+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680fi
4681echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4682echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4683else
4684 # Is the header compilable?
4685echo "$as_me:$LINENO: checking ctype.h usability" >&5
4686echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
4687cat >conftest.$ac_ext <<_ACEOF
4688/* confdefs.h. */
4689_ACEOF
4690cat confdefs.h >>conftest.$ac_ext
4691cat >>conftest.$ac_ext <<_ACEOF
4692/* end confdefs.h. */
4693$ac_includes_default
4694#include <ctype.h>
4695_ACEOF
4696rm -f conftest.$ac_objext
4697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004699 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004700 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004701 rm -f conftest.er1
4702 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try='test -z "$ac_c_werror_flag"
4706 || test ! -s conftest.err'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; } &&
4712 { ac_try='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_header_compiler=yes
4719else
4720 echo "$as_me: failed program was:" >&5
4721sed 's/^/| /' conftest.$ac_ext >&5
4722
4723ac_header_compiler=no
4724fi
4725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727echo "${ECHO_T}$ac_header_compiler" >&6
4728
4729# Is the header present?
4730echo "$as_me:$LINENO: checking ctype.h presence" >&5
4731echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
4732cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738#include <ctype.h>
4739_ACEOF
4740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004747 (exit $ac_status); } >/dev/null; then
4748 if test -s conftest.err; then
4749 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004751 else
4752 ac_cpp_err=
4753 fi
4754else
4755 ac_cpp_err=yes
4756fi
4757if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004758 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004759else
4760 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004761sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004764fi
4765rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004768
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004769# So? What about this header?
4770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4771 yes:no: )
4772 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4775echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc=yes
4777 ;;
4778 no:yes:* )
4779 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4780echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4781 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4782echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4784echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4786echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4788echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4789 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4790echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
4791 (
4792 cat <<\_ASBOX
4793## ------------------------------------ ##
4794## Report this to the pjproject lists. ##
4795## ------------------------------------ ##
4796_ASBOX
4797 ) |
4798 sed "s/^/$as_me: WARNING: /" >&2
4799 ;;
4800esac
4801echo "$as_me:$LINENO: checking for ctype.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004802echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
4803if test "${ac_cv_header_ctype_h+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004805else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004806 ac_cv_header_ctype_h=$ac_header_preproc
4807fi
4808echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4809echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
4810
4811fi
4812if test $ac_cv_header_ctype_h = yes; then
4813 cat >>confdefs.h <<\_ACEOF
4814#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004815_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004816
4817fi
4818
4819
4820
4821case $target in
4822 *mingw* | *cygw* | *win32* | *w32* )
4823 cat >>confdefs.h <<\_ACEOF
4824#define PJ_HAS_ERRNO_H 0
4825_ACEOF
4826
4827 ;;
4828 *)
4829 if test "${ac_cv_header_errno_h+set}" = set; then
4830 echo "$as_me:$LINENO: checking for errno.h" >&5
4831echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4832if test "${ac_cv_header_errno_h+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834fi
4835echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4836echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4837else
4838 # Is the header compilable?
4839echo "$as_me:$LINENO: checking errno.h usability" >&5
4840echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
4841cat >conftest.$ac_ext <<_ACEOF
4842/* confdefs.h. */
4843_ACEOF
4844cat confdefs.h >>conftest.$ac_ext
4845cat >>conftest.$ac_ext <<_ACEOF
4846/* end confdefs.h. */
4847$ac_includes_default
4848#include <errno.h>
4849_ACEOF
4850rm -f conftest.$ac_objext
4851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004853 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004854 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004855 rm -f conftest.er1
4856 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -z "$ac_c_werror_flag"
4860 || test ! -s conftest.err'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_header_compiler=yes
4873else
4874 echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877ac_header_compiler=no
4878fi
4879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4881echo "${ECHO_T}$ac_header_compiler" >&6
4882
4883# Is the header present?
4884echo "$as_me:$LINENO: checking errno.h presence" >&5
4885echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
4886cat >conftest.$ac_ext <<_ACEOF
4887/* confdefs.h. */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h. */
4892#include <errno.h>
4893_ACEOF
4894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004901 (exit $ac_status); } >/dev/null; then
4902 if test -s conftest.err; then
4903 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004905 else
4906 ac_cpp_err=
4907 fi
4908else
4909 ac_cpp_err=yes
4910fi
4911if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004912 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004913else
4914 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004915sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004918fi
4919rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4921echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004922
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004923# So? What about this header?
4924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4925 yes:no: )
4926 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4927echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4928 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4929echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4930 ac_header_preproc=yes
4931 ;;
4932 no:yes:* )
4933 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4934echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4935 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4936echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4937 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4938echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4940echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4942echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4944echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
4945 (
4946 cat <<\_ASBOX
4947## ------------------------------------ ##
4948## Report this to the pjproject lists. ##
4949## ------------------------------------ ##
4950_ASBOX
4951 ) |
4952 sed "s/^/$as_me: WARNING: /" >&2
4953 ;;
4954esac
4955echo "$as_me:$LINENO: checking for errno.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004956echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4957if test "${ac_cv_header_errno_h+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004959else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004960 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004961fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004962echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004963echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004964
4965fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004966if test $ac_cv_header_errno_h = yes; then
4967 cat >>confdefs.h <<\_ACEOF
4968#define PJ_HAS_ERRNO_H 1
4969_ACEOF
4970
4971fi
4972
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004973
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004974 ;;
4975esac
4976
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004977if test "${ac_cv_header_linux_socket_h+set}" = set; then
4978 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
4979echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
4980if test "${ac_cv_header_linux_socket_h+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982fi
4983echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
4984echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
4985else
4986 # Is the header compilable?
4987echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
4988echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
4989cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
4995$ac_includes_default
4996#include <linux/socket.h>
4997_ACEOF
4998rm -f conftest.$ac_objext
4999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_header_compiler=yes
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025ac_header_compiler=no
5026fi
5027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5029echo "${ECHO_T}$ac_header_compiler" >&6
5030
5031# Is the header present?
5032echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5033echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
5034cat >conftest.$ac_ext <<_ACEOF
5035/* confdefs.h. */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h. */
5040#include <linux/socket.h>
5041_ACEOF
5042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } >/dev/null; then
5050 if test -s conftest.err; then
5051 ac_cpp_err=$ac_c_preproc_warn_flag
5052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5053 else
5054 ac_cpp_err=
5055 fi
5056else
5057 ac_cpp_err=yes
5058fi
5059if test -z "$ac_cpp_err"; then
5060 ac_header_preproc=yes
5061else
5062 echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_header_preproc=no
5066fi
5067rm -f conftest.err conftest.$ac_ext
5068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5069echo "${ECHO_T}$ac_header_preproc" >&6
5070
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: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5075echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5076 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5077echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5078 ac_header_preproc=yes
5079 ;;
5080 no:yes:* )
5081 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5082echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5084echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5086echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5087 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5088echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5090echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5092echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
5093 (
5094 cat <<\_ASBOX
5095## ------------------------------------ ##
5096## Report this to the pjproject lists. ##
5097## ------------------------------------ ##
5098_ASBOX
5099 ) |
5100 sed "s/^/$as_me: WARNING: /" >&2
5101 ;;
5102esac
5103echo "$as_me:$LINENO: checking for linux/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005104echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
5105if test "${ac_cv_header_linux_socket_h+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005107else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005108 ac_cv_header_linux_socket_h=$ac_header_preproc
5109fi
5110echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5111echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
5112
5113fi
5114if test $ac_cv_header_linux_socket_h = yes; then
5115 cat >>confdefs.h <<\_ACEOF
5116#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005117_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005118
5119fi
5120
5121
5122if test "${ac_cv_header_malloc_h+set}" = set; then
5123 echo "$as_me:$LINENO: checking for malloc.h" >&5
5124echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5125if test "${ac_cv_header_malloc_h+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127fi
5128echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5129echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5130else
5131 # Is the header compilable?
5132echo "$as_me:$LINENO: checking malloc.h usability" >&5
5133echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
5134cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h. */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h. */
5140$ac_includes_default
5141#include <malloc.h>
5142_ACEOF
5143rm -f conftest.$ac_objext
5144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005146 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005147 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005148 rm -f conftest.er1
5149 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try='test -z "$ac_c_werror_flag"
5153 || test ! -s conftest.err'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 (eval $ac_try) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; } &&
5159 { ac_try='test -s conftest.$ac_objext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_header_compiler=yes
5166else
5167 echo "$as_me: failed program was:" >&5
5168sed 's/^/| /' conftest.$ac_ext >&5
5169
5170ac_header_compiler=no
5171fi
5172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5174echo "${ECHO_T}$ac_header_compiler" >&6
5175
5176# Is the header present?
5177echo "$as_me:$LINENO: checking malloc.h presence" >&5
5178echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
5179cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h. */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
5185#include <malloc.h>
5186_ACEOF
5187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005194 (exit $ac_status); } >/dev/null; then
5195 if test -s conftest.err; then
5196 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005198 else
5199 ac_cpp_err=
5200 fi
5201else
5202 ac_cpp_err=yes
5203fi
5204if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005205 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005206else
5207 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005208sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005211fi
5212rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005213echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5214echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005215
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005216# So? What about this header?
5217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5218 yes:no: )
5219 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5220echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5221 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5222echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5223 ac_header_preproc=yes
5224 ;;
5225 no:yes:* )
5226 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5227echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5229echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5231echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5233echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5235echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5236 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5237echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5238 (
5239 cat <<\_ASBOX
5240## ------------------------------------ ##
5241## Report this to the pjproject lists. ##
5242## ------------------------------------ ##
5243_ASBOX
5244 ) |
5245 sed "s/^/$as_me: WARNING: /" >&2
5246 ;;
5247esac
5248echo "$as_me:$LINENO: checking for malloc.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005249echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
5250if test "${ac_cv_header_malloc_h+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005252else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005253 ac_cv_header_malloc_h=$ac_header_preproc
5254fi
5255echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5256echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
5257
5258fi
5259if test $ac_cv_header_malloc_h = yes; then
5260 cat >>confdefs.h <<\_ACEOF
5261#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005262_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005263
5264fi
5265
5266
5267if test "${ac_cv_header_netdb_h+set}" = set; then
5268 echo "$as_me:$LINENO: checking for netdb.h" >&5
5269echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5270if test "${ac_cv_header_netdb_h+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272fi
5273echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5274echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5275else
5276 # Is the header compilable?
5277echo "$as_me:$LINENO: checking netdb.h usability" >&5
5278echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
5279cat >conftest.$ac_ext <<_ACEOF
5280/* confdefs.h. */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h. */
5285$ac_includes_default
5286#include <netdb.h>
5287_ACEOF
5288rm -f conftest.$ac_objext
5289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005291 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005292 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005293 rm -f conftest.er1
5294 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -z "$ac_c_werror_flag"
5298 || test ! -s conftest.err'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 (eval $ac_try) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; } &&
5304 { ac_try='test -s conftest.$ac_objext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_header_compiler=yes
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315ac_header_compiler=no
5316fi
5317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5319echo "${ECHO_T}$ac_header_compiler" >&6
5320
5321# Is the header present?
5322echo "$as_me:$LINENO: checking netdb.h presence" >&5
5323echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
5324cat >conftest.$ac_ext <<_ACEOF
5325/* confdefs.h. */
5326_ACEOF
5327cat confdefs.h >>conftest.$ac_ext
5328cat >>conftest.$ac_ext <<_ACEOF
5329/* end confdefs.h. */
5330#include <netdb.h>
5331_ACEOF
5332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005339 (exit $ac_status); } >/dev/null; then
5340 if test -s conftest.err; then
5341 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005343 else
5344 ac_cpp_err=
5345 fi
5346else
5347 ac_cpp_err=yes
5348fi
5349if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005350 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005351else
5352 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005353sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005356fi
5357rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5359echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005360
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005361# So? What about this header?
5362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5363 yes:no: )
5364 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5365echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5367echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5368 ac_header_preproc=yes
5369 ;;
5370 no:yes:* )
5371 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5372echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5374echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5376echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5378echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5380echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5381 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5382echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
5383 (
5384 cat <<\_ASBOX
5385## ------------------------------------ ##
5386## Report this to the pjproject lists. ##
5387## ------------------------------------ ##
5388_ASBOX
5389 ) |
5390 sed "s/^/$as_me: WARNING: /" >&2
5391 ;;
5392esac
5393echo "$as_me:$LINENO: checking for netdb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005394echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
5395if test "${ac_cv_header_netdb_h+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005397else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005398 ac_cv_header_netdb_h=$ac_header_preproc
5399fi
5400echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5401echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
5402
5403fi
5404if test $ac_cv_header_netdb_h = yes; then
5405 cat >>confdefs.h <<\_ACEOF
5406#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005407_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005408
5409fi
5410
5411
5412if test "${ac_cv_header_netinet_in_h+set}" = set; then
5413 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5414echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5415if test "${ac_cv_header_netinet_in_h+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417fi
5418echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5419echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5420else
5421 # Is the header compilable?
5422echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5423echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5424cat >conftest.$ac_ext <<_ACEOF
5425/* confdefs.h. */
5426_ACEOF
5427cat confdefs.h >>conftest.$ac_ext
5428cat >>conftest.$ac_ext <<_ACEOF
5429/* end confdefs.h. */
5430$ac_includes_default
5431#include <netinet/in.h>
5432_ACEOF
5433rm -f conftest.$ac_objext
5434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005436 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005437 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005438 rm -f conftest.er1
5439 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag"
5443 || test ! -s conftest.err'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_header_compiler=yes
5456else
5457 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
5460ac_header_compiler=no
5461fi
5462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5464echo "${ECHO_T}$ac_header_compiler" >&6
5465
5466# Is the header present?
5467echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5468echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5469cat >conftest.$ac_ext <<_ACEOF
5470/* confdefs.h. */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h. */
5475#include <netinet/in.h>
5476_ACEOF
5477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005484 (exit $ac_status); } >/dev/null; then
5485 if test -s conftest.err; then
5486 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005488 else
5489 ac_cpp_err=
5490 fi
5491else
5492 ac_cpp_err=yes
5493fi
5494if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005495 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005496else
5497 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005498sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005501fi
5502rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005503echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5504echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005505
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005506# So? What about this header?
5507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5508 yes:no: )
5509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5510echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5512echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5513 ac_header_preproc=yes
5514 ;;
5515 no:yes:* )
5516 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5517echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5519echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5521echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5523echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5525echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5527echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
5528 (
5529 cat <<\_ASBOX
5530## ------------------------------------ ##
5531## Report this to the pjproject lists. ##
5532## ------------------------------------ ##
5533_ASBOX
5534 ) |
5535 sed "s/^/$as_me: WARNING: /" >&2
5536 ;;
5537esac
5538echo "$as_me:$LINENO: checking for netinet/in.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005539echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5540if test "${ac_cv_header_netinet_in_h+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005542else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005543 ac_cv_header_netinet_in_h=$ac_header_preproc
5544fi
5545echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5546echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5547
5548fi
5549if test $ac_cv_header_netinet_in_h = yes; then
5550 cat >>confdefs.h <<\_ACEOF
5551#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005552_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005553
5554fi
5555
5556
Benny Prijonof63a2552007-02-01 00:36:52 +00005557if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5558 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5559echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5560if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562fi
5563echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5564echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5565else
5566 # Is the header compilable?
5567echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
5568echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6
5569cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h. */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h. */
5575$ac_includes_default
5576#include <netinet/ip.h>
5577_ACEOF
5578rm -f conftest.$ac_objext
5579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -z "$ac_c_werror_flag"
5588 || test ! -s conftest.err'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; } &&
5594 { ac_try='test -s conftest.$ac_objext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_header_compiler=yes
5601else
5602 echo "$as_me: failed program was:" >&5
5603sed 's/^/| /' conftest.$ac_ext >&5
5604
5605ac_header_compiler=no
5606fi
5607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5609echo "${ECHO_T}$ac_header_compiler" >&6
5610
5611# Is the header present?
5612echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
5613echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6
5614cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h. */
5620#include <netinet/ip.h>
5621_ACEOF
5622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } >/dev/null; then
5630 if test -s conftest.err; then
5631 ac_cpp_err=$ac_c_preproc_warn_flag
5632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5633 else
5634 ac_cpp_err=
5635 fi
5636else
5637 ac_cpp_err=yes
5638fi
5639if test -z "$ac_cpp_err"; then
5640 ac_header_preproc=yes
5641else
5642 echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_header_preproc=no
5646fi
5647rm -f conftest.err conftest.$ac_ext
5648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5649echo "${ECHO_T}$ac_header_preproc" >&6
5650
5651# So? What about this header?
5652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5653 yes:no: )
5654 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
5655echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
5657echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
5658 ac_header_preproc=yes
5659 ;;
5660 no:yes:* )
5661 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
5662echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
5664echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
5665 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
5666echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
5668echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
5670echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
5672echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
5673 (
5674 cat <<\_ASBOX
5675## ------------------------------------ ##
5676## Report this to the pjproject lists. ##
5677## ------------------------------------ ##
5678_ASBOX
5679 ) |
5680 sed "s/^/$as_me: WARNING: /" >&2
5681 ;;
5682esac
5683echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5684echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
5685if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687else
5688 ac_cv_header_netinet_ip_h=$ac_header_preproc
5689fi
5690echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5691echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
5692
5693fi
5694if test $ac_cv_header_netinet_ip_h = yes; then
5695 cat >>confdefs.h <<\_ACEOF
5696#define PJ_HAS_NETINET_IP_H 1
5697_ACEOF
5698
5699fi
5700
5701
Benny Prijono0ae59ae2007-11-17 10:27:34 +00005702if test "${ac_cv_header_net_if_h+set}" = set; then
5703 echo "$as_me:$LINENO: checking for net/if.h" >&5
5704echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
5705if test "${ac_cv_header_net_if_h+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707fi
5708echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
5709echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
5710else
5711 # Is the header compilable?
5712echo "$as_me:$LINENO: checking net/if.h usability" >&5
5713echo $ECHO_N "checking net/if.h usability... $ECHO_C" >&6
5714cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720$ac_includes_default
5721#include <net/if.h>
5722_ACEOF
5723rm -f conftest.$ac_objext
5724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_c_werror_flag"
5733 || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_header_compiler=yes
5746else
5747 echo "$as_me: failed program was:" >&5
5748sed 's/^/| /' conftest.$ac_ext >&5
5749
5750ac_header_compiler=no
5751fi
5752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5753echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5754echo "${ECHO_T}$ac_header_compiler" >&6
5755
5756# Is the header present?
5757echo "$as_me:$LINENO: checking net/if.h presence" >&5
5758echo $ECHO_N "checking net/if.h presence... $ECHO_C" >&6
5759cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h. */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h. */
5765#include <net/if.h>
5766_ACEOF
5767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } >/dev/null; then
5775 if test -s conftest.err; then
5776 ac_cpp_err=$ac_c_preproc_warn_flag
5777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5778 else
5779 ac_cpp_err=
5780 fi
5781else
5782 ac_cpp_err=yes
5783fi
5784if test -z "$ac_cpp_err"; then
5785 ac_header_preproc=yes
5786else
5787 echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_header_preproc=no
5791fi
5792rm -f conftest.err conftest.$ac_ext
5793echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5794echo "${ECHO_T}$ac_header_preproc" >&6
5795
5796# So? What about this header?
5797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5798 yes:no: )
5799 { echo "$as_me:$LINENO: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&5
5800echo "$as_me: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the compiler's result" >&5
5802echo "$as_me: WARNING: net/if.h: proceeding with the compiler's result" >&2;}
5803 ac_header_preproc=yes
5804 ;;
5805 no:yes:* )
5806 { echo "$as_me:$LINENO: WARNING: net/if.h: present but cannot be compiled" >&5
5807echo "$as_me: WARNING: net/if.h: present but cannot be compiled" >&2;}
5808 { echo "$as_me:$LINENO: WARNING: net/if.h: check for missing prerequisite headers?" >&5
5809echo "$as_me: WARNING: net/if.h: check for missing prerequisite headers?" >&2;}
5810 { echo "$as_me:$LINENO: WARNING: net/if.h: see the Autoconf documentation" >&5
5811echo "$as_me: WARNING: net/if.h: see the Autoconf documentation" >&2;}
5812 { echo "$as_me:$LINENO: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&5
5813echo "$as_me: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the preprocessor's result" >&5
5815echo "$as_me: WARNING: net/if.h: proceeding with the preprocessor's result" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: net/if.h: in the future, the compiler will take precedence" >&5
5817echo "$as_me: WARNING: net/if.h: in the future, the compiler will take precedence" >&2;}
5818 (
5819 cat <<\_ASBOX
5820## ------------------------------------ ##
5821## Report this to the pjproject lists. ##
5822## ------------------------------------ ##
5823_ASBOX
5824 ) |
5825 sed "s/^/$as_me: WARNING: /" >&2
5826 ;;
5827esac
5828echo "$as_me:$LINENO: checking for net/if.h" >&5
5829echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
5830if test "${ac_cv_header_net_if_h+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833 ac_cv_header_net_if_h=$ac_header_preproc
5834fi
5835echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
5836echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
5837
5838fi
5839if test $ac_cv_header_net_if_h = yes; then
5840 cat >>confdefs.h <<\_ACEOF
5841#define PJ_HAS_NET_IF_H 1
5842_ACEOF
5843
5844fi
5845
5846
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005847if test "${ac_cv_header_setjmp_h+set}" = set; then
5848 echo "$as_me:$LINENO: checking for setjmp.h" >&5
5849echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5850if test "${ac_cv_header_setjmp_h+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852fi
5853echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5854echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5855else
5856 # Is the header compilable?
5857echo "$as_me:$LINENO: checking setjmp.h usability" >&5
5858echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
5859cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */
5865$ac_includes_default
5866#include <setjmp.h>
5867_ACEOF
5868rm -f conftest.$ac_objext
5869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005871 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005872 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005873 rm -f conftest.er1
5874 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_c_werror_flag"
5878 || test ! -s conftest.err'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest.$ac_objext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 ac_header_compiler=yes
5891else
5892 echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895ac_header_compiler=no
5896fi
5897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5899echo "${ECHO_T}$ac_header_compiler" >&6
5900
5901# Is the header present?
5902echo "$as_me:$LINENO: checking setjmp.h presence" >&5
5903echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
5904cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h. */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h. */
5910#include <setjmp.h>
5911_ACEOF
5912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005919 (exit $ac_status); } >/dev/null; then
5920 if test -s conftest.err; then
5921 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005923 else
5924 ac_cpp_err=
5925 fi
5926else
5927 ac_cpp_err=yes
5928fi
5929if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005930 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005931else
5932 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005936fi
5937rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5939echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005940
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005941# So? What about this header?
5942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5943 yes:no: )
5944 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
5945echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5946 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
5947echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
5948 ac_header_preproc=yes
5949 ;;
5950 no:yes:* )
5951 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
5952echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
5953 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
5954echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
5955 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
5956echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
5958echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
5960echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
5961 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
5962echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
5963 (
5964 cat <<\_ASBOX
5965## ------------------------------------ ##
5966## Report this to the pjproject lists. ##
5967## ------------------------------------ ##
5968_ASBOX
5969 ) |
5970 sed "s/^/$as_me: WARNING: /" >&2
5971 ;;
5972esac
5973echo "$as_me:$LINENO: checking for setjmp.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005974echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
5975if test "${ac_cv_header_setjmp_h+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005977else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005978 ac_cv_header_setjmp_h=$ac_header_preproc
5979fi
5980echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
5981echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
5982
5983fi
5984if test $ac_cv_header_setjmp_h = yes; then
5985 cat >>confdefs.h <<\_ACEOF
5986#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005987_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005988
5989fi
5990
5991
5992if test "${ac_cv_header_stdarg_h+set}" = set; then
5993 echo "$as_me:$LINENO: checking for stdarg.h" >&5
5994echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5995if test "${ac_cv_header_stdarg_h+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997fi
5998echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5999echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
6000else
6001 # Is the header compilable?
6002echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6003echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
6004cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h. */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h. */
6010$ac_includes_default
6011#include <stdarg.h>
6012_ACEOF
6013rm -f conftest.$ac_objext
6014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006016 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006017 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006018 rm -f conftest.er1
6019 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_header_compiler=yes
6036else
6037 echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040ac_header_compiler=no
6041fi
6042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6044echo "${ECHO_T}$ac_header_compiler" >&6
6045
6046# Is the header present?
6047echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6048echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
6049cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h. */
6055#include <stdarg.h>
6056_ACEOF
6057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006064 (exit $ac_status); } >/dev/null; then
6065 if test -s conftest.err; then
6066 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006068 else
6069 ac_cpp_err=
6070 fi
6071else
6072 ac_cpp_err=yes
6073fi
6074if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006075 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006076else
6077 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006081fi
6082rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6084echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006085
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006086# So? What about this header?
6087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6088 yes:no: )
6089 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6090echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6092echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6093 ac_header_preproc=yes
6094 ;;
6095 no:yes:* )
6096 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6097echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6099echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6101echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6102 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6103echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6105echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6106 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6107echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
6108 (
6109 cat <<\_ASBOX
6110## ------------------------------------ ##
6111## Report this to the pjproject lists. ##
6112## ------------------------------------ ##
6113_ASBOX
6114 ) |
6115 sed "s/^/$as_me: WARNING: /" >&2
6116 ;;
6117esac
6118echo "$as_me:$LINENO: checking for stdarg.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006119echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
6120if test "${ac_cv_header_stdarg_h+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006122else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006123 ac_cv_header_stdarg_h=$ac_header_preproc
6124fi
6125echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6126echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
6127
6128fi
6129if test $ac_cv_header_stdarg_h = yes; then
6130 cat >>confdefs.h <<\_ACEOF
6131#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006132_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006133
6134fi
6135
6136
6137if test "${ac_cv_header_stddef_h+set}" = set; then
6138 echo "$as_me:$LINENO: checking for stddef.h" >&5
6139echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
6140if test "${ac_cv_header_stddef_h+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142fi
6143echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6144echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
6145else
6146 # Is the header compilable?
6147echo "$as_me:$LINENO: checking stddef.h usability" >&5
6148echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
6149cat >conftest.$ac_ext <<_ACEOF
6150/* confdefs.h. */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
6154/* end confdefs.h. */
6155$ac_includes_default
6156#include <stddef.h>
6157_ACEOF
6158rm -f conftest.$ac_objext
6159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006161 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006162 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006163 rm -f conftest.er1
6164 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_c_werror_flag"
6168 || test ! -s conftest.err'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; } &&
6174 { ac_try='test -s conftest.$ac_objext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_header_compiler=yes
6181else
6182 echo "$as_me: failed program was:" >&5
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
6185ac_header_compiler=no
6186fi
6187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6189echo "${ECHO_T}$ac_header_compiler" >&6
6190
6191# Is the header present?
6192echo "$as_me:$LINENO: checking stddef.h presence" >&5
6193echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
6194cat >conftest.$ac_ext <<_ACEOF
6195/* confdefs.h. */
6196_ACEOF
6197cat confdefs.h >>conftest.$ac_ext
6198cat >>conftest.$ac_ext <<_ACEOF
6199/* end confdefs.h. */
6200#include <stddef.h>
6201_ACEOF
6202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006209 (exit $ac_status); } >/dev/null; then
6210 if test -s conftest.err; then
6211 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006213 else
6214 ac_cpp_err=
6215 fi
6216else
6217 ac_cpp_err=yes
6218fi
6219if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006220 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006221else
6222 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006226fi
6227rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6229echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006230
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006231# So? What about this header?
6232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6233 yes:no: )
6234 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6235echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6237echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6238 ac_header_preproc=yes
6239 ;;
6240 no:yes:* )
6241 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6242echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6244echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6246echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6248echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6250echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6252echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
6253 (
6254 cat <<\_ASBOX
6255## ------------------------------------ ##
6256## Report this to the pjproject lists. ##
6257## ------------------------------------ ##
6258_ASBOX
6259 ) |
6260 sed "s/^/$as_me: WARNING: /" >&2
6261 ;;
6262esac
6263echo "$as_me:$LINENO: checking for stddef.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006264echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
6265if test "${ac_cv_header_stddef_h+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006267else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006268 ac_cv_header_stddef_h=$ac_header_preproc
6269fi
6270echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6271echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
6272
6273fi
6274if test $ac_cv_header_stddef_h = yes; then
6275 cat >>confdefs.h <<\_ACEOF
6276#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006277_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006278
6279fi
6280
6281
6282if test "${ac_cv_header_stdio_h+set}" = set; then
6283 echo "$as_me:$LINENO: checking for stdio.h" >&5
6284echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6285if test "${ac_cv_header_stdio_h+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287fi
6288echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6289echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6290else
6291 # Is the header compilable?
6292echo "$as_me:$LINENO: checking stdio.h usability" >&5
6293echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
6294cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
6300$ac_includes_default
6301#include <stdio.h>
6302_ACEOF
6303rm -f conftest.$ac_objext
6304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006306 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006307 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006308 rm -f conftest.er1
6309 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag"
6313 || test ! -s conftest.err'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_header_compiler=yes
6326else
6327 echo "$as_me: failed program was:" >&5
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
6330ac_header_compiler=no
6331fi
6332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6334echo "${ECHO_T}$ac_header_compiler" >&6
6335
6336# Is the header present?
6337echo "$as_me:$LINENO: checking stdio.h presence" >&5
6338echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
6339cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h. */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h. */
6345#include <stdio.h>
6346_ACEOF
6347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006354 (exit $ac_status); } >/dev/null; then
6355 if test -s conftest.err; then
6356 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006358 else
6359 ac_cpp_err=
6360 fi
6361else
6362 ac_cpp_err=yes
6363fi
6364if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006365 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006366else
6367 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006368sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006371fi
6372rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6374echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006375
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006376# So? What about this header?
6377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6378 yes:no: )
6379 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6380echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6382echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6383 ac_header_preproc=yes
6384 ;;
6385 no:yes:* )
6386 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6387echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6389echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6391echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6393echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6395echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6397echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
6398 (
6399 cat <<\_ASBOX
6400## ------------------------------------ ##
6401## Report this to the pjproject lists. ##
6402## ------------------------------------ ##
6403_ASBOX
6404 ) |
6405 sed "s/^/$as_me: WARNING: /" >&2
6406 ;;
6407esac
6408echo "$as_me:$LINENO: checking for stdio.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006409echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
6410if test "${ac_cv_header_stdio_h+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006412else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006413 ac_cv_header_stdio_h=$ac_header_preproc
6414fi
6415echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6416echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
6417
6418fi
6419if test $ac_cv_header_stdio_h = yes; then
6420 cat >>confdefs.h <<\_ACEOF
6421#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006422_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006423
6424fi
6425
6426
6427if test "${ac_cv_header_stdlib_h+set}" = set; then
6428 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6429echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6430if test "${ac_cv_header_stdlib_h+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432fi
6433echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6434echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6435else
6436 # Is the header compilable?
6437echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6438echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
6439cat >conftest.$ac_ext <<_ACEOF
6440/* confdefs.h. */
6441_ACEOF
6442cat confdefs.h >>conftest.$ac_ext
6443cat >>conftest.$ac_ext <<_ACEOF
6444/* end confdefs.h. */
6445$ac_includes_default
6446#include <stdlib.h>
6447_ACEOF
6448rm -f conftest.$ac_objext
6449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006451 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006452 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006453 rm -f conftest.er1
6454 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } &&
6457 { ac_try='test -z "$ac_c_werror_flag"
6458 || test ! -s conftest.err'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; } &&
6464 { ac_try='test -s conftest.$ac_objext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_header_compiler=yes
6471else
6472 echo "$as_me: failed program was:" >&5
6473sed 's/^/| /' conftest.$ac_ext >&5
6474
6475ac_header_compiler=no
6476fi
6477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6479echo "${ECHO_T}$ac_header_compiler" >&6
6480
6481# Is the header present?
6482echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6483echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
6484cat >conftest.$ac_ext <<_ACEOF
6485/* confdefs.h. */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */
6490#include <stdlib.h>
6491_ACEOF
6492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6494 ac_status=$?
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006499 (exit $ac_status); } >/dev/null; then
6500 if test -s conftest.err; then
6501 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006503 else
6504 ac_cpp_err=
6505 fi
6506else
6507 ac_cpp_err=yes
6508fi
6509if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006510 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006511else
6512 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006513sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006516fi
6517rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6519echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006520
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006521# So? What about this header?
6522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6523 yes:no: )
6524 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6525echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6526 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6527echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6528 ac_header_preproc=yes
6529 ;;
6530 no:yes:* )
6531 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6532echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6534echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6536echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6538echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6539 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6540echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6542echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
6543 (
6544 cat <<\_ASBOX
6545## ------------------------------------ ##
6546## Report this to the pjproject lists. ##
6547## ------------------------------------ ##
6548_ASBOX
6549 ) |
6550 sed "s/^/$as_me: WARNING: /" >&2
6551 ;;
6552esac
6553echo "$as_me:$LINENO: checking for stdlib.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006554echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
6555if test "${ac_cv_header_stdlib_h+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006557else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006558 ac_cv_header_stdlib_h=$ac_header_preproc
6559fi
6560echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6561echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
6562
6563fi
6564if test $ac_cv_header_stdlib_h = yes; then
6565 cat >>confdefs.h <<\_ACEOF
6566#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006567_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006568
6569fi
6570
6571
6572if test "${ac_cv_header_string_h+set}" = set; then
6573 echo "$as_me:$LINENO: checking for string.h" >&5
6574echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6575if test "${ac_cv_header_string_h+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577fi
6578echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6579echo "${ECHO_T}$ac_cv_header_string_h" >&6
6580else
6581 # Is the header compilable?
6582echo "$as_me:$LINENO: checking string.h usability" >&5
6583echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
6584cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h. */
6590$ac_includes_default
6591#include <string.h>
6592_ACEOF
6593rm -f conftest.$ac_objext
6594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006596 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006597 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006598 rm -f conftest.er1
6599 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_header_compiler=yes
6616else
6617 echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620ac_header_compiler=no
6621fi
6622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6624echo "${ECHO_T}$ac_header_compiler" >&6
6625
6626# Is the header present?
6627echo "$as_me:$LINENO: checking string.h presence" >&5
6628echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
6629cat >conftest.$ac_ext <<_ACEOF
6630/* confdefs.h. */
6631_ACEOF
6632cat confdefs.h >>conftest.$ac_ext
6633cat >>conftest.$ac_ext <<_ACEOF
6634/* end confdefs.h. */
6635#include <string.h>
6636_ACEOF
6637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006644 (exit $ac_status); } >/dev/null; then
6645 if test -s conftest.err; then
6646 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006648 else
6649 ac_cpp_err=
6650 fi
6651else
6652 ac_cpp_err=yes
6653fi
6654if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006655 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006656else
6657 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006661fi
6662rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6664echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006665
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006666# So? What about this header?
6667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6668 yes:no: )
6669 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6670echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6672echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6673 ac_header_preproc=yes
6674 ;;
6675 no:yes:* )
6676 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6677echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
6679echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6681echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
6683echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6685echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6687echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6688 (
6689 cat <<\_ASBOX
6690## ------------------------------------ ##
6691## Report this to the pjproject lists. ##
6692## ------------------------------------ ##
6693_ASBOX
6694 ) |
6695 sed "s/^/$as_me: WARNING: /" >&2
6696 ;;
6697esac
6698echo "$as_me:$LINENO: checking for string.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006699echo $ECHO_N "checking for string.h... $ECHO_C" >&6
6700if test "${ac_cv_header_string_h+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006702else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006703 ac_cv_header_string_h=$ac_header_preproc
6704fi
6705echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6706echo "${ECHO_T}$ac_cv_header_string_h" >&6
6707
6708fi
6709if test $ac_cv_header_string_h = yes; then
6710 cat >>confdefs.h <<\_ACEOF
6711#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006712_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006713
6714fi
6715
6716
6717if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6718 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
6719echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6720if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722fi
6723echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6724echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6725else
6726 # Is the header compilable?
6727echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
6728echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
6729cat >conftest.$ac_ext <<_ACEOF
6730/* confdefs.h. */
6731_ACEOF
6732cat confdefs.h >>conftest.$ac_ext
6733cat >>conftest.$ac_ext <<_ACEOF
6734/* end confdefs.h. */
6735$ac_includes_default
6736#include <sys/ioctl.h>
6737_ACEOF
6738rm -f conftest.$ac_objext
6739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6740 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006741 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006742 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006743 rm -f conftest.er1
6744 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try='test -z "$ac_c_werror_flag"
6748 || test ! -s conftest.err'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; } &&
6754 { ac_try='test -s conftest.$ac_objext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 ac_header_compiler=yes
6761else
6762 echo "$as_me: failed program was:" >&5
6763sed 's/^/| /' conftest.$ac_ext >&5
6764
6765ac_header_compiler=no
6766fi
6767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6769echo "${ECHO_T}$ac_header_compiler" >&6
6770
6771# Is the header present?
6772echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
6773echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
6774cat >conftest.$ac_ext <<_ACEOF
6775/* confdefs.h. */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h. */
6780#include <sys/ioctl.h>
6781_ACEOF
6782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006789 (exit $ac_status); } >/dev/null; then
6790 if test -s conftest.err; then
6791 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006793 else
6794 ac_cpp_err=
6795 fi
6796else
6797 ac_cpp_err=yes
6798fi
6799if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006800 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006801else
6802 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006803sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006806fi
6807rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6809echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006810
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006811# So? What about this header?
6812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6813 yes:no: )
6814 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6815echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
6817echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
6818 ac_header_preproc=yes
6819 ;;
6820 no:yes:* )
6821 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
6822echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
6823 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
6824echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
6825 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
6826echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
6828echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
6830echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
6832echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
6833 (
6834 cat <<\_ASBOX
6835## ------------------------------------ ##
6836## Report this to the pjproject lists. ##
6837## ------------------------------------ ##
6838_ASBOX
6839 ) |
6840 sed "s/^/$as_me: WARNING: /" >&2
6841 ;;
6842esac
6843echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006844echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
6845if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006847else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006848 ac_cv_header_sys_ioctl_h=$ac_header_preproc
6849fi
6850echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
6851echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
6852
6853fi
6854if test $ac_cv_header_sys_ioctl_h = yes; then
6855 cat >>confdefs.h <<\_ACEOF
6856#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006857_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006858
6859fi
6860
6861
6862if test "${ac_cv_header_sys_select_h+set}" = set; then
6863 echo "$as_me:$LINENO: checking for sys/select.h" >&5
6864echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6865if test "${ac_cv_header_sys_select_h+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867fi
6868echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6869echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6870else
6871 # Is the header compilable?
6872echo "$as_me:$LINENO: checking sys/select.h usability" >&5
6873echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
6874cat >conftest.$ac_ext <<_ACEOF
6875/* confdefs.h. */
6876_ACEOF
6877cat confdefs.h >>conftest.$ac_ext
6878cat >>conftest.$ac_ext <<_ACEOF
6879/* end confdefs.h. */
6880$ac_includes_default
6881#include <sys/select.h>
6882_ACEOF
6883rm -f conftest.$ac_objext
6884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006886 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006887 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006888 rm -f conftest.er1
6889 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -z "$ac_c_werror_flag"
6893 || test ! -s conftest.err'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; } &&
6899 { ac_try='test -s conftest.$ac_objext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_header_compiler=yes
6906else
6907 echo "$as_me: failed program was:" >&5
6908sed 's/^/| /' conftest.$ac_ext >&5
6909
6910ac_header_compiler=no
6911fi
6912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6914echo "${ECHO_T}$ac_header_compiler" >&6
6915
6916# Is the header present?
6917echo "$as_me:$LINENO: checking sys/select.h presence" >&5
6918echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
6919cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h. */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h. */
6925#include <sys/select.h>
6926_ACEOF
6927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006934 (exit $ac_status); } >/dev/null; then
6935 if test -s conftest.err; then
6936 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006938 else
6939 ac_cpp_err=
6940 fi
6941else
6942 ac_cpp_err=yes
6943fi
6944if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006945 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006946else
6947 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006948sed 's/^/| /' conftest.$ac_ext >&5
6949
6950 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006951fi
6952rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6954echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006955
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006956# So? What about this header?
6957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6958 yes:no: )
6959 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
6960echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6961 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
6962echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
6963 ac_header_preproc=yes
6964 ;;
6965 no:yes:* )
6966 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
6967echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
6969echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
6971echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
6973echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
6975echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
6976 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
6977echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
6978 (
6979 cat <<\_ASBOX
6980## ------------------------------------ ##
6981## Report this to the pjproject lists. ##
6982## ------------------------------------ ##
6983_ASBOX
6984 ) |
6985 sed "s/^/$as_me: WARNING: /" >&2
6986 ;;
6987esac
6988echo "$as_me:$LINENO: checking for sys/select.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006989echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
6990if test "${ac_cv_header_sys_select_h+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006992else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006993 ac_cv_header_sys_select_h=$ac_header_preproc
6994fi
6995echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
6996echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
6997
6998fi
6999if test $ac_cv_header_sys_select_h = yes; then
7000 cat >>confdefs.h <<\_ACEOF
7001#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007002_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007003
7004fi
7005
7006
7007if test "${ac_cv_header_sys_socket_h+set}" = set; then
7008 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7009echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
7010if test "${ac_cv_header_sys_socket_h+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012fi
7013echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7014echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
7015else
7016 # Is the header compilable?
7017echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7018echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
7019cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h. */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h. */
7025$ac_includes_default
7026#include <sys/socket.h>
7027_ACEOF
7028rm -f conftest.$ac_objext
7029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007031 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007032 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007033 rm -f conftest.er1
7034 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try='test -z "$ac_c_werror_flag"
7038 || test ! -s conftest.err'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 ac_header_compiler=yes
7051else
7052 echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
7055ac_header_compiler=no
7056fi
7057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7059echo "${ECHO_T}$ac_header_compiler" >&6
7060
7061# Is the header present?
7062echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7063echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
7064cat >conftest.$ac_ext <<_ACEOF
7065/* confdefs.h. */
7066_ACEOF
7067cat confdefs.h >>conftest.$ac_ext
7068cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h. */
7070#include <sys/socket.h>
7071_ACEOF
7072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007079 (exit $ac_status); } >/dev/null; then
7080 if test -s conftest.err; then
7081 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007083 else
7084 ac_cpp_err=
7085 fi
7086else
7087 ac_cpp_err=yes
7088fi
7089if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007090 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007091else
7092 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007093sed 's/^/| /' conftest.$ac_ext >&5
7094
7095 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007096fi
7097rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7099echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007100
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007101# So? What about this header?
7102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7103 yes:no: )
7104 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7105echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7106 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7107echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7108 ac_header_preproc=yes
7109 ;;
7110 no:yes:* )
7111 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7112echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7113 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7114echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7115 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7116echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7118echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7119 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7120echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7121 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7122echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
7123 (
7124 cat <<\_ASBOX
7125## ------------------------------------ ##
7126## Report this to the pjproject lists. ##
7127## ------------------------------------ ##
7128_ASBOX
7129 ) |
7130 sed "s/^/$as_me: WARNING: /" >&2
7131 ;;
7132esac
7133echo "$as_me:$LINENO: checking for sys/socket.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007134echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
7135if test "${ac_cv_header_sys_socket_h+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007137else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007138 ac_cv_header_sys_socket_h=$ac_header_preproc
7139fi
7140echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7141echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
7142
7143fi
7144if test $ac_cv_header_sys_socket_h = yes; then
7145 cat >>confdefs.h <<\_ACEOF
7146#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007147_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007148
7149fi
7150
7151
7152if test "${ac_cv_header_sys_time_h+set}" = set; then
7153 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7154echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7155if test "${ac_cv_header_sys_time_h+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157fi
7158echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7159echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7160else
7161 # Is the header compilable?
7162echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7163echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
7164cat >conftest.$ac_ext <<_ACEOF
7165/* confdefs.h. */
7166_ACEOF
7167cat confdefs.h >>conftest.$ac_ext
7168cat >>conftest.$ac_ext <<_ACEOF
7169/* end confdefs.h. */
7170$ac_includes_default
7171#include <sys/time.h>
7172_ACEOF
7173rm -f conftest.$ac_objext
7174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7175 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007176 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007177 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007178 rm -f conftest.er1
7179 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } &&
7182 { ac_try='test -z "$ac_c_werror_flag"
7183 || test ! -s conftest.err'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest.$ac_objext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_header_compiler=yes
7196else
7197 echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200ac_header_compiler=no
7201fi
7202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7203echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7204echo "${ECHO_T}$ac_header_compiler" >&6
7205
7206# Is the header present?
7207echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7208echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
7209cat >conftest.$ac_ext <<_ACEOF
7210/* confdefs.h. */
7211_ACEOF
7212cat confdefs.h >>conftest.$ac_ext
7213cat >>conftest.$ac_ext <<_ACEOF
7214/* end confdefs.h. */
7215#include <sys/time.h>
7216_ACEOF
7217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007224 (exit $ac_status); } >/dev/null; then
7225 if test -s conftest.err; then
7226 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007228 else
7229 ac_cpp_err=
7230 fi
7231else
7232 ac_cpp_err=yes
7233fi
7234if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007235 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007236else
7237 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007241fi
7242rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007243echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7244echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007245
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007246# So? What about this header?
7247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7248 yes:no: )
7249 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7250echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7252echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7253 ac_header_preproc=yes
7254 ;;
7255 no:yes:* )
7256 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7257echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7259echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7261echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7263echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7265echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7267echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
7268 (
7269 cat <<\_ASBOX
7270## ------------------------------------ ##
7271## Report this to the pjproject lists. ##
7272## ------------------------------------ ##
7273_ASBOX
7274 ) |
7275 sed "s/^/$as_me: WARNING: /" >&2
7276 ;;
7277esac
7278echo "$as_me:$LINENO: checking for sys/time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007279echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
7280if test "${ac_cv_header_sys_time_h+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007282else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007283 ac_cv_header_sys_time_h=$ac_header_preproc
7284fi
7285echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7286echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
7287
7288fi
7289if test $ac_cv_header_sys_time_h = yes; then
7290 cat >>confdefs.h <<\_ACEOF
7291#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007292_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007293
7294fi
7295
7296
7297if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7298 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7299echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7300if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302fi
7303echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7304echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7305else
7306 # Is the header compilable?
7307echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7308echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h. */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h. */
7315$ac_includes_default
7316#include <sys/timeb.h>
7317_ACEOF
7318rm -f conftest.$ac_objext
7319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007321 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007322 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007323 rm -f conftest.er1
7324 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag"
7328 || test ! -s conftest.err'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; } &&
7334 { ac_try='test -s conftest.$ac_objext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_header_compiler=yes
7341else
7342 echo "$as_me: failed program was:" >&5
7343sed 's/^/| /' conftest.$ac_ext >&5
7344
7345ac_header_compiler=no
7346fi
7347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7349echo "${ECHO_T}$ac_header_compiler" >&6
7350
7351# Is the header present?
7352echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7353echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
7354cat >conftest.$ac_ext <<_ACEOF
7355/* confdefs.h. */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h. */
7360#include <sys/timeb.h>
7361_ACEOF
7362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007369 (exit $ac_status); } >/dev/null; then
7370 if test -s conftest.err; then
7371 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007373 else
7374 ac_cpp_err=
7375 fi
7376else
7377 ac_cpp_err=yes
7378fi
7379if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007380 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007381else
7382 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007383sed 's/^/| /' conftest.$ac_ext >&5
7384
7385 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007386fi
7387rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7389echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007390
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007391# So? What about this header?
7392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7393 yes:no: )
7394 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7395echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7397echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7398 ac_header_preproc=yes
7399 ;;
7400 no:yes:* )
7401 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7402echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7403 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7404echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7405 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7406echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7408echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7410echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7412echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
7413 (
7414 cat <<\_ASBOX
7415## ------------------------------------ ##
7416## Report this to the pjproject lists. ##
7417## ------------------------------------ ##
7418_ASBOX
7419 ) |
7420 sed "s/^/$as_me: WARNING: /" >&2
7421 ;;
7422esac
7423echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007424echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
7425if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007427else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007428 ac_cv_header_sys_timeb_h=$ac_header_preproc
7429fi
7430echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7431echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
7432
7433fi
7434if test $ac_cv_header_sys_timeb_h = yes; then
7435 cat >>confdefs.h <<\_ACEOF
7436#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007437_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007438
7439fi
7440
7441
7442if test "${ac_cv_header_sys_types_h+set}" = set; then
7443 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7444echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7445if test "${ac_cv_header_sys_types_h+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447fi
7448echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7449echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7450else
7451 # Is the header compilable?
7452echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7453echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
7454cat >conftest.$ac_ext <<_ACEOF
7455/* confdefs.h. */
7456_ACEOF
7457cat confdefs.h >>conftest.$ac_ext
7458cat >>conftest.$ac_ext <<_ACEOF
7459/* end confdefs.h. */
7460$ac_includes_default
7461#include <sys/types.h>
7462_ACEOF
7463rm -f conftest.$ac_objext
7464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007466 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007467 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007468 rm -f conftest.er1
7469 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -z "$ac_c_werror_flag"
7473 || test ! -s conftest.err'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; } &&
7479 { ac_try='test -s conftest.$ac_objext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 (eval $ac_try) 2>&5
7482 ac_status=$?
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_header_compiler=yes
7486else
7487 echo "$as_me: failed program was:" >&5
7488sed 's/^/| /' conftest.$ac_ext >&5
7489
7490ac_header_compiler=no
7491fi
7492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494echo "${ECHO_T}$ac_header_compiler" >&6
7495
7496# Is the header present?
7497echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7498echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
7499cat >conftest.$ac_ext <<_ACEOF
7500/* confdefs.h. */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h. */
7505#include <sys/types.h>
7506_ACEOF
7507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007514 (exit $ac_status); } >/dev/null; then
7515 if test -s conftest.err; then
7516 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007518 else
7519 ac_cpp_err=
7520 fi
7521else
7522 ac_cpp_err=yes
7523fi
7524if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007525 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007526else
7527 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007528sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007531fi
7532rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7534echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007535
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007536# So? What about this header?
7537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7538 yes:no: )
7539 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7540echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7542echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7543 ac_header_preproc=yes
7544 ;;
7545 no:yes:* )
7546 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7547echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7549echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7551echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7553echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7555echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7557echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
7558 (
7559 cat <<\_ASBOX
7560## ------------------------------------ ##
7561## Report this to the pjproject lists. ##
7562## ------------------------------------ ##
7563_ASBOX
7564 ) |
7565 sed "s/^/$as_me: WARNING: /" >&2
7566 ;;
7567esac
7568echo "$as_me:$LINENO: checking for sys/types.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007569echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
7570if test "${ac_cv_header_sys_types_h+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007572else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007573 ac_cv_header_sys_types_h=$ac_header_preproc
7574fi
7575echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7576echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
7577
7578fi
7579if test $ac_cv_header_sys_types_h = yes; then
7580 cat >>confdefs.h <<\_ACEOF
7581#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007582_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007583
7584fi
7585
7586
7587if test "${ac_cv_header_time_h+set}" = set; then
7588 echo "$as_me:$LINENO: checking for time.h" >&5
7589echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7590if test "${ac_cv_header_time_h+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592fi
7593echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7594echo "${ECHO_T}$ac_cv_header_time_h" >&6
7595else
7596 # Is the header compilable?
7597echo "$as_me:$LINENO: checking time.h usability" >&5
7598echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
7599cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h. */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h. */
7605$ac_includes_default
7606#include <time.h>
7607_ACEOF
7608rm -f conftest.$ac_objext
7609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7610 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007611 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007612 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007613 rm -f conftest.er1
7614 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -z "$ac_c_werror_flag"
7618 || test ! -s conftest.err'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; } &&
7624 { ac_try='test -s conftest.$ac_objext'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 (eval $ac_try) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
7630 ac_header_compiler=yes
7631else
7632 echo "$as_me: failed program was:" >&5
7633sed 's/^/| /' conftest.$ac_ext >&5
7634
7635ac_header_compiler=no
7636fi
7637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7639echo "${ECHO_T}$ac_header_compiler" >&6
7640
7641# Is the header present?
7642echo "$as_me:$LINENO: checking time.h presence" >&5
7643echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
7644cat >conftest.$ac_ext <<_ACEOF
7645/* confdefs.h. */
7646_ACEOF
7647cat confdefs.h >>conftest.$ac_ext
7648cat >>conftest.$ac_ext <<_ACEOF
7649/* end confdefs.h. */
7650#include <time.h>
7651_ACEOF
7652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007659 (exit $ac_status); } >/dev/null; then
7660 if test -s conftest.err; then
7661 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007663 else
7664 ac_cpp_err=
7665 fi
7666else
7667 ac_cpp_err=yes
7668fi
7669if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007670 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007671else
7672 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007676fi
7677rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7679echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007680
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007681# So? What about this header?
7682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7683 yes:no: )
7684 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7685echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
7687echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
7688 ac_header_preproc=yes
7689 ;;
7690 no:yes:* )
7691 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
7692echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
7694echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
7696echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
7698echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
7700echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
7702echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
7703 (
7704 cat <<\_ASBOX
7705## ------------------------------------ ##
7706## Report this to the pjproject lists. ##
7707## ------------------------------------ ##
7708_ASBOX
7709 ) |
7710 sed "s/^/$as_me: WARNING: /" >&2
7711 ;;
7712esac
7713echo "$as_me:$LINENO: checking for time.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007714echo $ECHO_N "checking for time.h... $ECHO_C" >&6
7715if test "${ac_cv_header_time_h+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007717else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007718 ac_cv_header_time_h=$ac_header_preproc
7719fi
7720echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
7721echo "${ECHO_T}$ac_cv_header_time_h" >&6
7722
7723fi
7724if test $ac_cv_header_time_h = yes; then
7725 cat >>confdefs.h <<\_ACEOF
7726#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007727_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007728
7729fi
7730
7731
7732if test "${ac_cv_header_unistd_h+set}" = set; then
7733 echo "$as_me:$LINENO: checking for unistd.h" >&5
7734echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7735if test "${ac_cv_header_unistd_h+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737fi
7738echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7739echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7740else
7741 # Is the header compilable?
7742echo "$as_me:$LINENO: checking unistd.h usability" >&5
7743echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
7744cat >conftest.$ac_ext <<_ACEOF
7745/* confdefs.h. */
7746_ACEOF
7747cat confdefs.h >>conftest.$ac_ext
7748cat >>conftest.$ac_ext <<_ACEOF
7749/* end confdefs.h. */
7750$ac_includes_default
7751#include <unistd.h>
7752_ACEOF
7753rm -f conftest.$ac_objext
7754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007756 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007757 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007758 rm -f conftest.er1
7759 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest.$ac_objext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_header_compiler=yes
7776else
7777 echo "$as_me: failed program was:" >&5
7778sed 's/^/| /' conftest.$ac_ext >&5
7779
7780ac_header_compiler=no
7781fi
7782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7784echo "${ECHO_T}$ac_header_compiler" >&6
7785
7786# Is the header present?
7787echo "$as_me:$LINENO: checking unistd.h presence" >&5
7788echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
7789cat >conftest.$ac_ext <<_ACEOF
7790/* confdefs.h. */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h. */
7795#include <unistd.h>
7796_ACEOF
7797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007804 (exit $ac_status); } >/dev/null; then
7805 if test -s conftest.err; then
7806 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007808 else
7809 ac_cpp_err=
7810 fi
7811else
7812 ac_cpp_err=yes
7813fi
7814if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007815 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007816else
7817 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007821fi
7822rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7824echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007825
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007826# So? What about this header?
7827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7828 yes:no: )
7829 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
7830echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7831 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
7832echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
7833 ac_header_preproc=yes
7834 ;;
7835 no:yes:* )
7836 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
7837echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
7838 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
7839echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
7841echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
7843echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
7845echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
7847echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
7848 (
7849 cat <<\_ASBOX
7850## ------------------------------------ ##
7851## Report this to the pjproject lists. ##
7852## ------------------------------------ ##
7853_ASBOX
7854 ) |
7855 sed "s/^/$as_me: WARNING: /" >&2
7856 ;;
7857esac
7858echo "$as_me:$LINENO: checking for unistd.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007859echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
7860if test "${ac_cv_header_unistd_h+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007862else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007863 ac_cv_header_unistd_h=$ac_header_preproc
7864fi
7865echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
7866echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
7867
7868fi
7869if test $ac_cv_header_unistd_h = yes; then
7870 cat >>confdefs.h <<\_ACEOF
7871#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007872_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007873
7874fi
7875
7876
7877if test "${ac_cv_header_mswsock_h+set}" = set; then
7878 echo "$as_me:$LINENO: checking for mswsock.h" >&5
7879echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
7880if test "${ac_cv_header_mswsock_h+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882fi
7883echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
7884echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
7885else
7886 # Is the header compilable?
7887echo "$as_me:$LINENO: checking mswsock.h usability" >&5
7888echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6
7889cat >conftest.$ac_ext <<_ACEOF
7890/* confdefs.h. */
7891_ACEOF
7892cat confdefs.h >>conftest.$ac_ext
7893cat >>conftest.$ac_ext <<_ACEOF
7894/* end confdefs.h. */
7895$ac_includes_default
7896#include <mswsock.h>
7897_ACEOF
7898rm -f conftest.$ac_objext
7899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007901 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007902 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007903 rm -f conftest.er1
7904 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -z "$ac_c_werror_flag"
7908 || test ! -s conftest.err'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try='test -s conftest.$ac_objext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 ac_header_compiler=yes
7921else
7922 echo "$as_me: failed program was:" >&5
7923sed 's/^/| /' conftest.$ac_ext >&5
7924
7925ac_header_compiler=no
7926fi
7927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7929echo "${ECHO_T}$ac_header_compiler" >&6
7930
7931# Is the header present?
7932echo "$as_me:$LINENO: checking mswsock.h presence" >&5
7933echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6
7934cat >conftest.$ac_ext <<_ACEOF
7935/* confdefs.h. */
7936_ACEOF
7937cat confdefs.h >>conftest.$ac_ext
7938cat >>conftest.$ac_ext <<_ACEOF
7939/* end confdefs.h. */
7940#include <mswsock.h>
7941_ACEOF
7942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007949 (exit $ac_status); } >/dev/null; then
7950 if test -s conftest.err; then
7951 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007953 else
7954 ac_cpp_err=
7955 fi
7956else
7957 ac_cpp_err=yes
7958fi
7959if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007960 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007961else
7962 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007963sed 's/^/| /' conftest.$ac_ext >&5
7964
7965 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007966fi
7967rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7969echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007970
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007971# So? What about this header?
7972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7973 yes:no: )
7974 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
7975echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7976 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
7977echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
7978 ac_header_preproc=yes
7979 ;;
7980 no:yes:* )
7981 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
7982echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
7984echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
7985 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
7986echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
7988echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
7990echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
7992echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
7993 (
7994 cat <<\_ASBOX
7995## ------------------------------------ ##
7996## Report this to the pjproject lists. ##
7997## ------------------------------------ ##
7998_ASBOX
7999 ) |
8000 sed "s/^/$as_me: WARNING: /" >&2
8001 ;;
8002esac
8003echo "$as_me:$LINENO: checking for mswsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008004echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
8005if test "${ac_cv_header_mswsock_h+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008007else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008008 ac_cv_header_mswsock_h=$ac_header_preproc
8009fi
8010echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8011echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
8012
8013fi
8014if test $ac_cv_header_mswsock_h = yes; then
8015 cat >>confdefs.h <<\_ACEOF
8016#define PJ_HAS_MSWSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008017_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008018
8019fi
8020
8021
8022if test "${ac_cv_header_winsock_h+set}" = set; then
8023 echo "$as_me:$LINENO: checking for winsock.h" >&5
8024echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
8025if test "${ac_cv_header_winsock_h+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027fi
8028echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8029echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
8030else
8031 # Is the header compilable?
8032echo "$as_me:$LINENO: checking winsock.h usability" >&5
8033echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
8034cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h. */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h. */
8040$ac_includes_default
8041#include <winsock.h>
8042_ACEOF
8043rm -f conftest.$ac_objext
8044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008046 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008047 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008048 rm -f conftest.er1
8049 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_header_compiler=yes
8066else
8067 echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
8070ac_header_compiler=no
8071fi
8072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8073echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8074echo "${ECHO_T}$ac_header_compiler" >&6
8075
8076# Is the header present?
8077echo "$as_me:$LINENO: checking winsock.h presence" >&5
8078echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
8079cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
8085#include <winsock.h>
8086_ACEOF
8087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008094 (exit $ac_status); } >/dev/null; then
8095 if test -s conftest.err; then
8096 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008098 else
8099 ac_cpp_err=
8100 fi
8101else
8102 ac_cpp_err=yes
8103fi
8104if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008105 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008106else
8107 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008111fi
8112rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008113echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8114echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008115
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008116# So? What about this header?
8117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8118 yes:no: )
8119 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8120echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8122echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8123 ac_header_preproc=yes
8124 ;;
8125 no:yes:* )
8126 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8127echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8129echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8131echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8133echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8135echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8137echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
8138 (
8139 cat <<\_ASBOX
8140## ------------------------------------ ##
8141## Report this to the pjproject lists. ##
8142## ------------------------------------ ##
8143_ASBOX
8144 ) |
8145 sed "s/^/$as_me: WARNING: /" >&2
8146 ;;
8147esac
8148echo "$as_me:$LINENO: checking for winsock.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008149echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
8150if test "${ac_cv_header_winsock_h+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008152else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008153 ac_cv_header_winsock_h=$ac_header_preproc
8154fi
8155echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8156echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
8157
8158fi
8159if test $ac_cv_header_winsock_h = yes; then
8160 cat >>confdefs.h <<\_ACEOF
8161#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008162_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008163
8164fi
8165
8166
8167if test "${ac_cv_header_winsock2_h+set}" = set; then
8168 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8169echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8170if test "${ac_cv_header_winsock2_h+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172fi
8173echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8174echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
8175else
8176 # Is the header compilable?
8177echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8178echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
8179cat >conftest.$ac_ext <<_ACEOF
8180/* confdefs.h. */
8181_ACEOF
8182cat confdefs.h >>conftest.$ac_ext
8183cat >>conftest.$ac_ext <<_ACEOF
8184/* end confdefs.h. */
8185$ac_includes_default
8186#include <winsock2.h>
8187_ACEOF
8188rm -f conftest.$ac_objext
8189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008191 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008192 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008193 rm -f conftest.er1
8194 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_header_compiler=yes
8211else
8212 echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
8215ac_header_compiler=no
8216fi
8217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8219echo "${ECHO_T}$ac_header_compiler" >&6
8220
8221# Is the header present?
8222echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8223echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
8224cat >conftest.$ac_ext <<_ACEOF
8225/* confdefs.h. */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h. */
8230#include <winsock2.h>
8231_ACEOF
8232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008239 (exit $ac_status); } >/dev/null; then
8240 if test -s conftest.err; then
8241 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008243 else
8244 ac_cpp_err=
8245 fi
8246else
8247 ac_cpp_err=yes
8248fi
8249if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008250 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008251else
8252 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008256fi
8257rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8259echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008260
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008261# So? What about this header?
8262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8263 yes:no: )
8264 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8265echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8267echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8268 ac_header_preproc=yes
8269 ;;
8270 no:yes:* )
8271 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8272echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8274echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8276echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8278echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8280echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8282echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
8283 (
8284 cat <<\_ASBOX
8285## ------------------------------------ ##
8286## Report this to the pjproject lists. ##
8287## ------------------------------------ ##
8288_ASBOX
8289 ) |
8290 sed "s/^/$as_me: WARNING: /" >&2
8291 ;;
8292esac
8293echo "$as_me:$LINENO: checking for winsock2.h" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008294echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
8295if test "${ac_cv_header_winsock2_h+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008297else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008298 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008299fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008300echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008301echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008302
8303fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008304if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008305 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008306#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008307_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008308
8309fi
8310
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008311
Benny Prijono4e48b512007-05-16 13:41:00 +00008312if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8313 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8314echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8315if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317fi
8318echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8319echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8320else
8321 # Is the header compilable?
8322echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8323echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6
8324cat >conftest.$ac_ext <<_ACEOF
8325/* confdefs.h. */
8326_ACEOF
8327cat confdefs.h >>conftest.$ac_ext
8328cat >>conftest.$ac_ext <<_ACEOF
8329/* end confdefs.h. */
8330$ac_includes_default
8331#include <uuid/uuid.h>
8332_ACEOF
8333rm -f conftest.$ac_objext
8334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8335 (eval $ac_compile) 2>conftest.er1
8336 ac_status=$?
8337 grep -v '^ *+' conftest.er1 >conftest.err
8338 rm -f conftest.er1
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -z "$ac_c_werror_flag"
8343 || test ! -s conftest.err'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; } &&
8349 { ac_try='test -s conftest.$ac_objext'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_header_compiler=yes
8356else
8357 echo "$as_me: failed program was:" >&5
8358sed 's/^/| /' conftest.$ac_ext >&5
8359
8360ac_header_compiler=no
8361fi
8362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8363echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8364echo "${ECHO_T}$ac_header_compiler" >&6
8365
8366# Is the header present?
8367echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
8368echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6
8369cat >conftest.$ac_ext <<_ACEOF
8370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
8375#include <uuid/uuid.h>
8376_ACEOF
8377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } >/dev/null; then
8385 if test -s conftest.err; then
8386 ac_cpp_err=$ac_c_preproc_warn_flag
8387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8388 else
8389 ac_cpp_err=
8390 fi
8391else
8392 ac_cpp_err=yes
8393fi
8394if test -z "$ac_cpp_err"; then
8395 ac_header_preproc=yes
8396else
8397 echo "$as_me: failed program was:" >&5
8398sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 ac_header_preproc=no
8401fi
8402rm -f conftest.err conftest.$ac_ext
8403echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8404echo "${ECHO_T}$ac_header_preproc" >&6
8405
8406# So? What about this header?
8407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8408 yes:no: )
8409 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8410echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8412echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8413 ac_header_preproc=yes
8414 ;;
8415 no:yes:* )
8416 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8417echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
8418 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
8419echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
8420 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
8421echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
8423echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
8425echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
8427echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
8428 (
8429 cat <<\_ASBOX
8430## ------------------------------------ ##
8431## Report this to the pjproject lists. ##
8432## ------------------------------------ ##
8433_ASBOX
8434 ) |
8435 sed "s/^/$as_me: WARNING: /" >&2
8436 ;;
8437esac
8438echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8439echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
8440if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443 ac_cv_header_uuid_uuid_h=$ac_header_preproc
8444fi
8445echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8446echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
8447
8448fi
8449if test $ac_cv_header_uuid_uuid_h = yes; then
8450 ac_has_uuid_h=1
8451fi
8452
8453
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008454
8455echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008456echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008457cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008458#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008459_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008460
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008461
8462echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008463echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008464cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008465#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008466_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008467
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008468
8469echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008470echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008471cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008472#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008473_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008474
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008475
8476echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008477echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008478cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008479#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008480_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008481
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008482
8483echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008484echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008485cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008486#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008487_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008488
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008489
8490echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008491echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008492cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008493#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008494_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008495
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008496
8497echo "$as_me:$LINENO: checking if inet_aton is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008498echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6
8499cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008500/* confdefs.h. */
8501_ACEOF
8502cat confdefs.h >>conftest.$ac_ext
8503cat >>conftest.$ac_ext <<_ACEOF
8504/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008505#include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008506int
8507main ()
8508{
8509inet_aton(0, 0);
8510 ;
8511 return 0;
8512}
8513_ACEOF
8514rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008517 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008522 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008523 { ac_try='test -z "$ac_c_werror_flag"
8524 || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008526 (eval $ac_try) 2>&5
8527 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008535 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008536 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008537#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008538_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008539
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008540 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008541echo "${ECHO_T}yes" >&6
8542else
8543 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008544sed 's/^/| /' conftest.$ac_ext >&5
8545
8546echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008547echo "${ECHO_T}no" >&6
8548fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008550
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008551echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008552echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
8553cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008554/* confdefs.h. */
8555_ACEOF
8556cat confdefs.h >>conftest.$ac_ext
8557cat >>conftest.$ac_ext <<_ACEOF
8558/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008559#include <sys/types.h>
8560 #include <sys/socket.h>
8561 #include <netinet/in.h>
8562 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008563int
8564main ()
8565{
8566struct sockaddr_in a; a.sin_len=0;
8567 ;
8568 return 0;
8569}
8570_ACEOF
8571rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8573 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008574 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008579 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008580 { ac_try='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008583 (eval $ac_try) 2>&5
8584 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008592 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008593 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008594#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008595_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008596
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008597 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008598echo "${ECHO_T}yes" >&6
8599else
8600 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008604echo "${ECHO_T}no" >&6
8605fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008607
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008608echo "$as_me:$LINENO: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008609echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
8610cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008611/* confdefs.h. */
8612_ACEOF
8613cat confdefs.h >>conftest.$ac_ext
8614cat >>conftest.$ac_ext <<_ACEOF
8615/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00008616#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00008617int
8618main ()
8619{
8620socklen_t xxx = 0;
8621 ;
8622 return 0;
8623}
8624_ACEOF
8625rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8627 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00008628 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008633 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008634 { ac_try='test -z "$ac_c_werror_flag"
8635 || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008637 (eval $ac_try) 2>&5
8638 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest.$ac_objext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008646 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008647 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008648#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008649_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008650
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008651 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008652echo "${ECHO_T}yes" >&6
8653else
8654 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008655sed 's/^/| /' conftest.$ac_ext >&5
8656
8657echo "$as_me:$LINENO: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008658echo "${ECHO_T}no" >&6
8659fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00008661
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008662echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008663echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008664case $target in
8665 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008666 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008667#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008668_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008669
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008670 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008671echo "${ECHO_T}yes" >&6
8672 ;;
8673 *)
8674 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008680#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008681 #include <sys/socket.h>
8682 #include <netinet/in.h>
8683 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008684int
8685main ()
8686{
8687int i=SO_ERROR;
8688 ;
8689 return 0;
8690}
8691_ACEOF
8692rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8694 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008695 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008700 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008701 { ac_try='test -z "$ac_c_werror_flag"
8702 || test ! -s conftest.err'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008704 (eval $ac_try) 2>&5
8705 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008713 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008714 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008715#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008716_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008717
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008718 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008719echo "${ECHO_T}yes" >&6
8720else
8721 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008722sed 's/^/| /' conftest.$ac_ext >&5
8723
8724echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008725echo "${ECHO_T}no" >&6
8726fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008728 ;;
8729esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008730
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008731
8732echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008733echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
8734cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008735/* confdefs.h. */
8736_ACEOF
8737cat confdefs.h >>conftest.$ac_ext
8738cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008740#include <pthread.h>
8741int
8742main ()
8743{
8744pthread_rwlock_t *x;
8745 ;
8746 return 0;
8747}
8748_ACEOF
8749rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8751 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008752 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008757 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008758 { ac_try='test -z "$ac_c_werror_flag"
8759 || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008761 (eval $ac_try) 2>&5
8762 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest.$ac_objext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008770 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008771 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008772#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008773_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008774
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008775 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008776echo "${ECHO_T}yes" >&6
8777else
8778 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008779sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008780
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008781cat >>confdefs.h <<\_ACEOF
8782#define PJ_EMULATE_RWMUTEX 1
8783_ACEOF
8784
8785 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008786echo "${ECHO_T}no" >&6
8787fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8789
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008790
8791case $target in
8792 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00008793 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 +00008794 ;;
8795 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00008796 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"
8797 # UUID
8798 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
8799 ac_os_objs="$ac_os_objs guid_uuid.o"
8800 else
8801 ac_os_objs="$ac_os_objs guid_simple.o"
8802 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008803 ;;
8804esac
8805
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008806
8807
8808
Benny Prijono4e48b512007-05-16 13:41:00 +00008809
Benny Prijono1d971622006-09-10 22:27:40 +00008810# Check whether --enable-sound or --disable-sound was given.
8811if test "${enable_sound+set}" = set; then
8812 enableval="$enable_sound"
8813 if test "$enable_sound" = "no"; then
8814 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008815 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00008816echo "${ECHO_T}Checking if sound is disabled... yes" >&6
8817 fi
8818
8819fi;
8820
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008821
Benny Prijono27c98722007-04-09 21:28:15 +00008822if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8823 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8824echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8825if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827fi
8828echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8829echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8830else
8831 # Is the header compilable?
8832echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
8833echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
8834cat >conftest.$ac_ext <<_ACEOF
8835/* confdefs.h. */
8836_ACEOF
8837cat confdefs.h >>conftest.$ac_ext
8838cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h. */
8840$ac_includes_default
8841#include <sys/soundcard.h>
8842_ACEOF
8843rm -f conftest.$ac_objext
8844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest.$ac_objext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_header_compiler=yes
8866else
8867 echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870ac_header_compiler=no
8871fi
8872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8873echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8874echo "${ECHO_T}$ac_header_compiler" >&6
8875
8876# Is the header present?
8877echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
8878echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
8879cat >conftest.$ac_ext <<_ACEOF
8880/* confdefs.h. */
8881_ACEOF
8882cat confdefs.h >>conftest.$ac_ext
8883cat >>conftest.$ac_ext <<_ACEOF
8884/* end confdefs.h. */
8885#include <sys/soundcard.h>
8886_ACEOF
8887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } >/dev/null; then
8895 if test -s conftest.err; then
8896 ac_cpp_err=$ac_c_preproc_warn_flag
8897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8898 else
8899 ac_cpp_err=
8900 fi
8901else
8902 ac_cpp_err=yes
8903fi
8904if test -z "$ac_cpp_err"; then
8905 ac_header_preproc=yes
8906else
8907 echo "$as_me: failed program was:" >&5
8908sed 's/^/| /' conftest.$ac_ext >&5
8909
8910 ac_header_preproc=no
8911fi
8912rm -f conftest.err conftest.$ac_ext
8913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8914echo "${ECHO_T}$ac_header_preproc" >&6
8915
8916# So? What about this header?
8917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8918 yes:no: )
8919 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8920echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8921 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
8922echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
8923 ac_header_preproc=yes
8924 ;;
8925 no:yes:* )
8926 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
8927echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
8929echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
8931echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
8932 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
8933echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
8934 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
8935echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
8937echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
8938 (
8939 cat <<\_ASBOX
8940## ------------------------------------ ##
8941## Report this to the pjproject lists. ##
8942## ------------------------------------ ##
8943_ASBOX
8944 ) |
8945 sed "s/^/$as_me: WARNING: /" >&2
8946 ;;
8947esac
8948echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8949echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8950if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952else
8953 ac_cv_header_sys_soundcard_h=$ac_header_preproc
8954fi
8955echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8956echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8957
8958fi
8959if test $ac_cv_header_sys_soundcard_h = yes; then
8960 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
8961fi
8962
8963
8964if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8965 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
8966echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
8967if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8969fi
8970echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
8971echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
8972else
8973 # Is the header compilable?
8974echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
8975echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
8976cat >conftest.$ac_ext <<_ACEOF
8977/* confdefs.h. */
8978_ACEOF
8979cat confdefs.h >>conftest.$ac_ext
8980cat >>conftest.$ac_ext <<_ACEOF
8981/* end confdefs.h. */
8982$ac_includes_default
8983#include <linux/soundcard.h>
8984_ACEOF
8985rm -f conftest.$ac_objext
8986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag"
8995 || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 ac_header_compiler=yes
9008else
9009 echo "$as_me: failed program was:" >&5
9010sed 's/^/| /' conftest.$ac_ext >&5
9011
9012ac_header_compiler=no
9013fi
9014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9016echo "${ECHO_T}$ac_header_compiler" >&6
9017
9018# Is the header present?
9019echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
9020echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
9021cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h. */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h. */
9027#include <linux/soundcard.h>
9028_ACEOF
9029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9031 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
9036 (exit $ac_status); } >/dev/null; then
9037 if test -s conftest.err; then
9038 ac_cpp_err=$ac_c_preproc_warn_flag
9039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9040 else
9041 ac_cpp_err=
9042 fi
9043else
9044 ac_cpp_err=yes
9045fi
9046if test -z "$ac_cpp_err"; then
9047 ac_header_preproc=yes
9048else
9049 echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 ac_header_preproc=no
9053fi
9054rm -f conftest.err conftest.$ac_ext
9055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9056echo "${ECHO_T}$ac_header_preproc" >&6
9057
9058# So? What about this header?
9059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9060 yes:no: )
9061 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9062echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
9064echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
9065 ac_header_preproc=yes
9066 ;;
9067 no:yes:* )
9068 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
9069echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
9071echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
9073echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9075echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
9077echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
9079echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
9080 (
9081 cat <<\_ASBOX
9082## ------------------------------------ ##
9083## Report this to the pjproject lists. ##
9084## ------------------------------------ ##
9085_ASBOX
9086 ) |
9087 sed "s/^/$as_me: WARNING: /" >&2
9088 ;;
9089esac
9090echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9091echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
9092if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094else
9095 ac_cv_header_linux_soundcard_h=$ac_header_preproc
9096fi
9097echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9098echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
9099
9100fi
9101if test $ac_cv_header_linux_soundcard_h = yes; then
9102 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
9103fi
9104
9105
9106if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9107 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9108echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
9109if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111fi
9112echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9113echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
9114else
9115 # Is the header compilable?
9116echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
9117echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
9118cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124$ac_includes_default
9125#include <machine/soundcard.h>
9126_ACEOF
9127rm -f conftest.$ac_objext
9128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9129 (eval $ac_compile) 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try='test -z "$ac_c_werror_flag"
9137 || test ! -s conftest.err'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; } &&
9143 { ac_try='test -s conftest.$ac_objext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 (eval $ac_try) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_header_compiler=yes
9150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154ac_header_compiler=no
9155fi
9156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9157echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9158echo "${ECHO_T}$ac_header_compiler" >&6
9159
9160# Is the header present?
9161echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9162echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
9163cat >conftest.$ac_ext <<_ACEOF
9164/* confdefs.h. */
9165_ACEOF
9166cat confdefs.h >>conftest.$ac_ext
9167cat >>conftest.$ac_ext <<_ACEOF
9168/* end confdefs.h. */
9169#include <machine/soundcard.h>
9170_ACEOF
9171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } >/dev/null; then
9179 if test -s conftest.err; then
9180 ac_cpp_err=$ac_c_preproc_warn_flag
9181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9182 else
9183 ac_cpp_err=
9184 fi
9185else
9186 ac_cpp_err=yes
9187fi
9188if test -z "$ac_cpp_err"; then
9189 ac_header_preproc=yes
9190else
9191 echo "$as_me: failed program was:" >&5
9192sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_header_preproc=no
9195fi
9196rm -f conftest.err conftest.$ac_ext
9197echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9198echo "${ECHO_T}$ac_header_preproc" >&6
9199
9200# So? What about this header?
9201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9202 yes:no: )
9203 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9204echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
9206echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
9207 ac_header_preproc=yes
9208 ;;
9209 no:yes:* )
9210 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
9211echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
9213echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
9215echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9217echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
9219echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
9221echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
9222 (
9223 cat <<\_ASBOX
9224## ------------------------------------ ##
9225## Report this to the pjproject lists. ##
9226## ------------------------------------ ##
9227_ASBOX
9228 ) |
9229 sed "s/^/$as_me: WARNING: /" >&2
9230 ;;
9231esac
9232echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9233echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
9234if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9236else
9237 ac_cv_header_machine_soundcard_h=$ac_header_preproc
9238fi
9239echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9240echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
9241
9242fi
9243if test $ac_cv_header_machine_soundcard_h = yes; then
9244 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
9245fi
9246
9247
9248
Benny Prijono1d971622006-09-10 22:27:40 +00009249if test "$enable_sound" = "no"; then
9250 true;
9251else
9252 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00009253 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00009254 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
9255 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009256 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00009257 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
9258 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009259 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00009260echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
9261 else
9262 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009263 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00009264echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00009265 fi
Benny Prijonob466e232006-09-10 08:53:59 +00009266 ;;
9267 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009268 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009269 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009270echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
9271 ;;
9272 *rtems*)
9273 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009274 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009275echo "${ECHO_T}Checking sound device backend... null sound" >&6
9276 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009277 *)
9278 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009279 if test "${ac_cv_header_alsa_version_h+set}" = set; then
9280 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009281echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9282if test "${ac_cv_header_alsa_version_h+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009284fi
9285echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
9286echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009287else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009288 # Is the header compilable?
9289echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
9290echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
9291cat >conftest.$ac_ext <<_ACEOF
9292/* confdefs.h. */
9293_ACEOF
9294cat confdefs.h >>conftest.$ac_ext
9295cat >>conftest.$ac_ext <<_ACEOF
9296/* end confdefs.h. */
9297$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009298#include <alsa/version.h>
9299_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009300rm -f conftest.$ac_objext
9301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9302 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009303 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009304 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009305 rm -f conftest.er1
9306 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag"
9310 || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest.$ac_objext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_header_compiler=yes
9323else
9324 echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
9327ac_header_compiler=no
9328fi
9329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9330echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9331echo "${ECHO_T}$ac_header_compiler" >&6
9332
9333# Is the header present?
9334echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
9335echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
9336cat >conftest.$ac_ext <<_ACEOF
9337/* confdefs.h. */
9338_ACEOF
9339cat confdefs.h >>conftest.$ac_ext
9340cat >>conftest.$ac_ext <<_ACEOF
9341/* end confdefs.h. */
9342#include <alsa/version.h>
9343_ACEOF
9344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9346 ac_status=$?
9347 grep -v '^ *+' conftest.er1 >conftest.err
9348 rm -f conftest.er1
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009351 (exit $ac_status); } >/dev/null; then
9352 if test -s conftest.err; then
9353 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009355 else
9356 ac_cpp_err=
9357 fi
9358else
9359 ac_cpp_err=yes
9360fi
9361if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009362 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009363else
9364 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009365sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009368fi
9369rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009370echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9371echo "${ECHO_T}$ac_header_preproc" >&6
9372
9373# So? What about this header?
9374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9375 yes:no: )
9376 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9377echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
9379echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
9380 ac_header_preproc=yes
9381 ;;
9382 no:yes:* )
9383 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
9384echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
9386echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
9388echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
9390echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
9392echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
9394echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
9395 (
9396 cat <<\_ASBOX
9397## ------------------------------------ ##
9398## Report this to the pjproject lists. ##
9399## ------------------------------------ ##
9400_ASBOX
9401 ) |
9402 sed "s/^/$as_me: WARNING: /" >&2
9403 ;;
9404esac
9405echo "$as_me:$LINENO: checking for alsa/version.h" >&5
9406echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9407if test "${ac_cv_header_alsa_version_h+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9409else
9410 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009411fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009412echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009413echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009414
9415fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009416if test $ac_cv_header_alsa_version_h = yes; then
9417 ac_pa_use_alsa=1
9418
9419 LIBS="$LIBS -lasound"
9420
9421else
9422 ac_pa_use_alsa=0
9423
9424fi
9425
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009426
9427 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009428echo "${ECHO_T}Checking sound device backend... unix" >&6
9429 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00009430 esac
9431fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009432
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009433
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009434# Check whether --enable-small-filter or --disable-small-filter was given.
9435if test "${enable_small_filter+set}" = set; then
9436 enableval="$enable_small_filter"
9437 if test "$enable_small_filter" = "no"; then
9438 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009439 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009440echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
9441 fi
9442else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009443 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009444echo "${ECHO_T}Checking if small filter is disabled... no" >&6
9445fi;
9446
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009447
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009448# Check whether --enable-large-filter or --disable-large-filter was given.
9449if test "${enable_large_filter+set}" = set; then
9450 enableval="$enable_large_filter"
9451 if test "$enable_large_filter" = "no"; then
9452 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009453 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009454echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
9455 fi
9456else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009457 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009458echo "${ECHO_T}Checking if large filter is disabled... no" >&6
9459fi;
9460
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009461
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009462# Check whether --enable-speex-aec or --disable-speex-aec was given.
9463if test "${enable_speex_aec+set}" = set; then
9464 enableval="$enable_speex_aec"
9465 if test "$enable_speex_aec" = "no"; then
9466 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009467 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009468echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
9469 fi
9470else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009471 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009472echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
9473fi;
9474
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009475
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009476# Check whether --enable-g711-codec or --disable-g711-codec was given.
9477if test "${enable_g711_codec+set}" = set; then
9478 enableval="$enable_g711_codec"
9479 if test "$enable_g711_codec" = "no"; then
9480 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009481 cat >>confdefs.h <<\_ACEOF
9482#define PJMEDIA_HAS_G711_CODEC 0
9483_ACEOF
9484
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009485 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009486echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
9487 fi
9488else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009489 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009490echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
9491fi;
9492
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009493
9494
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009495# Check whether --enable-l16-codec or --disable-l16-codec was given.
9496if test "${enable_l16_codec+set}" = set; then
9497 enableval="$enable_l16_codec"
9498 if test "$enable_l16_codec" = "no"; then
9499 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009500 cat >>confdefs.h <<\_ACEOF
9501#define PJMEDIA_HAS_L16_CODEC 0
9502_ACEOF
9503
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009504 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009505echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
9506 fi
9507else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009508 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00009509echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009510fi;
9511
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009512
9513
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009514# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
9515if test "${enable_gsm_codec+set}" = set; then
9516 enableval="$enable_gsm_codec"
9517 if test "$enable_gsm_codec" = "no"; then
9518 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009519 cat >>confdefs.h <<\_ACEOF
9520#define PJMEDIA_HAS_GSM_CODEC 0
9521_ACEOF
9522
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009523 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009524echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
9525 fi
9526else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009527 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009528echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
9529fi;
9530
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009531
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009532# Check whether --enable-speex-codec or --disable-speex-codec was given.
9533if test "${enable_speex_codec+set}" = set; then
9534 enableval="$enable_speex_codec"
9535 if test "$enable_speex_codec" = "no"; then
9536 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009537 cat >>confdefs.h <<\_ACEOF
9538#define PJMEDIA_HAS_SPEEX_CODEC 0
9539_ACEOF
9540
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009541 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009542echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
9543 fi
9544else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009545 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009546echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
9547fi;
9548
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009549
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009550# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
9551if test "${enable_ilbc_codec+set}" = set; then
9552 enableval="$enable_ilbc_codec"
9553 if test "$enable_ilbc_codec" = "no"; then
9554 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009555 cat >>confdefs.h <<\_ACEOF
9556#define PJMEDIA_HAS_ILBC_CODEC 0
9557_ACEOF
9558
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009559 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009560echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
9561 fi
9562else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009563 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009564echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
9565fi;
9566
Benny Prijono550a1a62007-10-16 08:54:00 +00009567# Check whether --enable-libsamplerate or --disable-libsamplerate was given.
9568if test "${enable_libsamplerate+set}" = set; then
9569 enableval="$enable_libsamplerate"
9570
9571echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
9572echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6
9573if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575else
9576 ac_check_lib_save_LIBS=$LIBS
9577LIBS="-lsamplerate $LIBS"
9578cat >conftest.$ac_ext <<_ACEOF
9579/* confdefs.h. */
9580_ACEOF
9581cat confdefs.h >>conftest.$ac_ext
9582cat >>conftest.$ac_ext <<_ACEOF
9583/* end confdefs.h. */
9584
9585/* Override any gcc2 internal prototype to avoid an error. */
9586#ifdef __cplusplus
9587extern "C"
9588#endif
9589/* We use char because int might match the return type of a gcc2
9590 builtin and then its argument prototype would still apply. */
9591char src_new ();
9592int
9593main ()
9594{
9595src_new ();
9596 ;
9597 return 0;
9598}
9599_ACEOF
9600rm -f conftest.$ac_objext conftest$ac_exeext
9601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 (eval $ac_try) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_lib_samplerate_src_new=yes
9623else
9624 echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
9627ac_cv_lib_samplerate_src_new=no
9628fi
9629rm -f conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631LIBS=$ac_check_lib_save_LIBS
9632fi
9633echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
9634echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6
9635if test $ac_cv_lib_samplerate_src_new = yes; then
9636 cat >>confdefs.h <<_ACEOF
9637#define HAVE_LIBSAMPLERATE 1
9638_ACEOF
9639
9640 LIBS="-lsamplerate $LIBS"
9641
9642fi
9643
9644else
9645 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
9646echo "${ECHO_T}Skipping libsamplerate detection" >&6
9647
9648fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009649
9650
9651
9652
9653# Check whether --enable-ssl or --disable-ssl was given.
9654if test "${enable_ssl+set}" = set; then
9655 enableval="$enable_ssl"
9656
9657 if test "$enable_ssl" = "no"; then
9658 ac_no_ssl=1
9659 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
9660echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
9661 fi
9662
9663else
9664
9665 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
9666echo "${ECHO_T}checking for OpenSSL installations.." >&6
9667
9668
9669
9670 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9671 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9672echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9673if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675fi
9676echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9677echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9678else
9679 # Is the header compilable?
9680echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9681echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9682cat >conftest.$ac_ext <<_ACEOF
9683/* confdefs.h. */
9684_ACEOF
9685cat confdefs.h >>conftest.$ac_ext
9686cat >>conftest.$ac_ext <<_ACEOF
9687/* end confdefs.h. */
9688$ac_includes_default
9689#include <openssl/ssl.h>
9690_ACEOF
9691rm -f conftest.$ac_objext
9692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693 (eval $ac_compile) 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag"
9701 || test ! -s conftest.err'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 (eval $ac_try) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest.$ac_objext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_header_compiler=yes
9714else
9715 echo "$as_me: failed program was:" >&5
9716sed 's/^/| /' conftest.$ac_ext >&5
9717
9718ac_header_compiler=no
9719fi
9720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9722echo "${ECHO_T}$ac_header_compiler" >&6
9723
9724# Is the header present?
9725echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9726echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9727cat >conftest.$ac_ext <<_ACEOF
9728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
9733#include <openssl/ssl.h>
9734_ACEOF
9735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } >/dev/null; then
9743 if test -s conftest.err; then
9744 ac_cpp_err=$ac_c_preproc_warn_flag
9745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9746 else
9747 ac_cpp_err=
9748 fi
9749else
9750 ac_cpp_err=yes
9751fi
9752if test -z "$ac_cpp_err"; then
9753 ac_header_preproc=yes
9754else
9755 echo "$as_me: failed program was:" >&5
9756sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 ac_header_preproc=no
9759fi
9760rm -f conftest.err conftest.$ac_ext
9761echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9762echo "${ECHO_T}$ac_header_preproc" >&6
9763
9764# So? What about this header?
9765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9766 yes:no: )
9767 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9768echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9770echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9771 ac_header_preproc=yes
9772 ;;
9773 no:yes:* )
9774 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9775echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9776 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9777echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9778 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9779echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9780 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9781echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9783echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9785echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9786 (
9787 cat <<\_ASBOX
9788## ------------------------------------ ##
9789## Report this to the pjproject lists. ##
9790## ------------------------------------ ##
9791_ASBOX
9792 ) |
9793 sed "s/^/$as_me: WARNING: /" >&2
9794 ;;
9795esac
9796echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9797echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9798if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9800else
9801 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9802fi
9803echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9804echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9805
9806fi
9807if test $ac_cv_header_openssl_ssl_h = yes; then
9808 openssl_h_present=1
9809fi
9810
9811
9812 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9813echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
9814if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816else
9817 ac_check_lib_save_LIBS=$LIBS
9818LIBS="-lssl $LIBS"
9819cat >conftest.$ac_ext <<_ACEOF
9820/* confdefs.h. */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
9824/* end confdefs.h. */
9825
9826/* Override any gcc2 internal prototype to avoid an error. */
9827#ifdef __cplusplus
9828extern "C"
9829#endif
9830/* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9832char SSL_library_init ();
9833int
9834main ()
9835{
9836SSL_library_init ();
9837 ;
9838 return 0;
9839}
9840_ACEOF
9841rm -f conftest.$ac_objext conftest$ac_exeext
9842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>conftest.er1
9844 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
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest$ac_exeext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_lib_ssl_SSL_library_init=yes
9864else
9865 echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
9867
9868ac_cv_lib_ssl_SSL_library_init=no
9869fi
9870rm -f conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872LIBS=$ac_check_lib_save_LIBS
9873fi
9874echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9875echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
9876if test $ac_cv_lib_ssl_SSL_library_init = yes; then
9877 libssl_present=1 && LIBS="$LIBS -lssl"
9878fi
9879
9880 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
9881echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
9882if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884else
9885 ac_check_lib_save_LIBS=$LIBS
9886LIBS="-lcrypto $LIBS"
9887cat >conftest.$ac_ext <<_ACEOF
9888/* confdefs.h. */
9889_ACEOF
9890cat confdefs.h >>conftest.$ac_ext
9891cat >>conftest.$ac_ext <<_ACEOF
9892/* end confdefs.h. */
9893
9894/* Override any gcc2 internal prototype to avoid an error. */
9895#ifdef __cplusplus
9896extern "C"
9897#endif
9898/* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9900char ERR_load_BIO_strings ();
9901int
9902main ()
9903{
9904ERR_load_BIO_strings ();
9905 ;
9906 return 0;
9907}
9908_ACEOF
9909rm -f conftest.$ac_objext conftest$ac_exeext
9910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911 (eval $ac_link) 2>conftest.er1
9912 ac_status=$?
9913 grep -v '^ *+' conftest.er1 >conftest.err
9914 rm -f conftest.er1
9915 cat conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -z "$ac_c_werror_flag"
9919 || test ! -s conftest.err'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 (eval $ac_try) 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try='test -s conftest$ac_exeext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
9932else
9933 echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936ac_cv_lib_crypto_ERR_load_BIO_strings=no
9937fi
9938rm -f conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940LIBS=$ac_check_lib_save_LIBS
9941fi
9942echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
9943echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
9944if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
9945 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
9946fi
9947
9948 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
9949 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
9950echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
9951 cat >>confdefs.h <<\_ACEOF
9952#define PJSIP_HAS_TLS_TRANSPORT 1
9953_ACEOF
9954
9955 else
9956 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
9957echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
9958 fi
9959
9960fi;
9961
9962
9963
9964
9965echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009966echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009967case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009968 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009969#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009970_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009971
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009972 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009973echo "${ECHO_T}yes" >&6
9974 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009975 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009976#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009977_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009978
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009979 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009980echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009981 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009982echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
9983 ;;
9984esac
9985
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009986echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009987echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
9988case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009989 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009990#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009991_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009992
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009993 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009994echo "${ECHO_T}yes" >&6
9995 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009996 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009997#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009998_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009999
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010000 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010001echo "${ECHO_T}no (default)" >&6
10002 ;;
10003esac
10004
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010005echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010006echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
10007case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010008 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010009#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010010_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010011
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010012 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010013echo "${ECHO_T}yes" >&6
10014 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010015 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010016#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010017_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010018
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010019 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010020echo "${ECHO_T}no (default)" >&6
10021 ;;
10022esac
10023
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010024case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010025 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010026 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010027#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010028_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010029
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010030 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010031 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010032#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010033_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010034
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010035 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010036echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
10037 ;;
10038esac
10039
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010040case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010041 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010042 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010043#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010044_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010045
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010046 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010047 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010048#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010049_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010050
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010051 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010052echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
10053 ;;
10054esac
10055
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010056
10057
10058
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010059if test "$build" = "$host"; then
10060 ac_cross_compile=
10061else
Benny Prijono5b818b22006-09-17 22:58:51 +000010062 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010063fi
10064ac_linux_poll=select
10065
10066ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010067
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010068
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010069case $target in
10070 *rtems*)
10071 ac_main_obj=main_rtems.o
10072 ;;
10073 *)
10074 ac_main_obj=main.o
10075 ;;
10076esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010077
10078cat >confcache <<\_ACEOF
10079# This file is a shell script that caches the results of configure
10080# tests run on this system so they can be shared between configure
10081# scripts and configure runs, see configure's option --config-cache.
10082# It is not useful on other systems. If it contains results you don't
10083# want to keep, you may remove or edit it.
10084#
10085# config.status only pays attention to the cache file if you give it
10086# the --recheck option to rerun configure.
10087#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010088# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010089# loading this file, other *unset* `ac_cv_foo' will be assigned the
10090# following values.
10091
10092_ACEOF
10093
10094# The following way of writing the cache mishandles newlines in values,
10095# but we know of no workaround that is simple, portable, and efficient.
10096# So, don't put newlines in cache variables' values.
10097# Ultrix sh set writes to stderr and can't be redirected directly,
10098# and sets the high bit in the cache file unless we assign to the vars.
10099{
10100 (set) 2>&1 |
10101 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10102 *ac_space=\ *)
10103 # `set' does not quote correctly, so add quotes (double-quote
10104 # substitution turns \\\\ into \\, and sed turns \\ into \).
10105 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010106 "s/'/'\\\\''/g;
10107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010108 ;;
10109 *)
10110 # `set' quotes correctly as required by POSIX, so do not add quotes.
10111 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010113 ;;
10114 esac;
10115} |
10116 sed '
10117 t clear
10118 : clear
10119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10120 t end
10121 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10122 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010123if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010124 if test -w $cache_file; then
10125 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10126 cat confcache >$cache_file
10127 else
10128 echo "not updating unwritable cache $cache_file"
10129 fi
10130fi
10131rm -f confcache
10132
10133test "x$prefix" = xNONE && prefix=$ac_default_prefix
10134# Let make expand exec_prefix.
10135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10136
10137# VPATH may cause trouble with some makes, so we remove $(srcdir),
10138# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10139# trailing colons and then remove the whole line if VPATH becomes empty
10140# (actually we leave an empty line to preserve line numbers).
10141if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010143s/:*\$(srcdir):*/:/;
10144s/:*\${srcdir}:*/:/;
10145s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010146s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010147s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010148s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010149}'
10150fi
10151
10152DEFS=-DHAVE_CONFIG_H
10153
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010154ac_libobjs=
10155ac_ltlibobjs=
10156for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10157 # 1. Remove the extension, and $U if already installed.
10158 ac_i=`echo "$ac_i" |
10159 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10160 # 2. Add them.
10161 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10162 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10163done
10164LIBOBJS=$ac_libobjs
10165
10166LTLIBOBJS=$ac_ltlibobjs
10167
10168
10169
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010170: ${CONFIG_STATUS=./config.status}
10171ac_clean_files_save=$ac_clean_files
10172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010173{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010174echo "$as_me: creating $CONFIG_STATUS" >&6;}
10175cat >$CONFIG_STATUS <<_ACEOF
10176#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010177# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010178# Run this file to recreate the current configuration.
10179# Compiler output produced by configure, useful for debugging
10180# configure, is in config.log if it exists.
10181
10182debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010183ac_cs_recheck=false
10184ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010185SHELL=\${CONFIG_SHELL-$SHELL}
10186_ACEOF
10187
10188cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010189## --------------------- ##
10190## M4sh Initialization. ##
10191## --------------------- ##
10192
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010193# Be Bourne compatible
10194if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10195 emulate sh
10196 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10198 # is contrary to our usage. Disable this feature.
10199 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010200elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10201 set -o posix
10202fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010203DUALCASE=1; export DUALCASE # for MKS sh
10204
10205# Support unset when possible.
10206if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10207 as_unset=unset
10208else
10209 as_unset=false
10210fi
10211
10212
10213# Work around bugs in pre-3.0 UWIN ksh.
10214$as_unset ENV MAIL MAILPATH
10215PS1='$ '
10216PS2='> '
10217PS4='+ '
10218
10219# NLS nuisances.
10220for as_var in \
10221 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10222 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10223 LC_TELEPHONE LC_TIME
10224do
10225 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10226 eval $as_var=C; export $as_var
10227 else
10228 $as_unset $as_var
10229 fi
10230done
10231
10232# Required to use basename.
10233if expr a : '\(a\)' >/dev/null 2>&1; then
10234 as_expr=expr
10235else
10236 as_expr=false
10237fi
10238
10239if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10240 as_basename=basename
10241else
10242 as_basename=false
10243fi
10244
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010245
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010246# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010247as_me=`$as_basename "$0" ||
10248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10249 X"$0" : 'X\(//\)$' \| \
10250 X"$0" : 'X\(/\)$' \| \
10251 . : '\(.\)' 2>/dev/null ||
10252echo X/"$0" |
10253 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10254 /^X\/\(\/\/\)$/{ s//\1/; q; }
10255 /^X\/\(\/\).*/{ s//\1/; q; }
10256 s/.*/./; q'`
10257
10258
10259# PATH needs CR, and LINENO needs CR and PATH.
10260# Avoid depending upon Character Ranges.
10261as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10263as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10264as_cr_digits='0123456789'
10265as_cr_alnum=$as_cr_Letters$as_cr_digits
10266
10267# The user is always right.
10268if test "${PATH_SEPARATOR+set}" != set; then
10269 echo "#! /bin/sh" >conf$$.sh
10270 echo "exit 0" >>conf$$.sh
10271 chmod +x conf$$.sh
10272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10273 PATH_SEPARATOR=';'
10274 else
10275 PATH_SEPARATOR=:
10276 fi
10277 rm -f conf$$.sh
10278fi
10279
10280
10281 as_lineno_1=$LINENO
10282 as_lineno_2=$LINENO
10283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10284 test "x$as_lineno_1" != "x$as_lineno_2" &&
10285 test "x$as_lineno_3" = "x$as_lineno_2" || {
10286 # Find who we are. Look in the path if we contain no path at all
10287 # relative or not.
10288 case $0 in
10289 *[\\/]* ) as_myself=$0 ;;
10290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291for as_dir in $PATH
10292do
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
10295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10296done
10297
10298 ;;
10299 esac
10300 # We did not find ourselves, most probably we were run as `sh COMMAND'
10301 # in which case we are not to be found in the path.
10302 if test "x$as_myself" = x; then
10303 as_myself=$0
10304 fi
10305 if test ! -f "$as_myself"; then
10306 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10307echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10308 { (exit 1); exit 1; }; }
10309 fi
10310 case $CONFIG_SHELL in
10311 '')
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for as_base in sh bash ksh sh5; do
10318 case $as_dir in
10319 /*)
10320 if ("$as_dir/$as_base" -c '
10321 as_lineno_1=$LINENO
10322 as_lineno_2=$LINENO
10323 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10324 test "x$as_lineno_1" != "x$as_lineno_2" &&
10325 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10326 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10327 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10328 CONFIG_SHELL=$as_dir/$as_base
10329 export CONFIG_SHELL
10330 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10331 fi;;
10332 esac
10333 done
10334done
10335;;
10336 esac
10337
10338 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10339 # uniformly replaced by the line number. The first 'sed' inserts a
10340 # line-number line before each line; the second 'sed' does the real
10341 # work. The second script uses 'N' to pair each line-number line
10342 # with the numbered line, and appends trailing '-' during
10343 # substitution so that $LINENO is not a special case at line end.
10344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10345 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10346 sed '=' <$as_myself |
10347 sed '
10348 N
10349 s,$,-,
10350 : loop
10351 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10352 t loop
10353 s,-$,,
10354 s,^['$as_cr_digits']*\n,,
10355 ' >$as_me.lineno &&
10356 chmod +x $as_me.lineno ||
10357 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10358echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10359 { (exit 1); exit 1; }; }
10360
10361 # Don't try to exec as it changes $[0], causing all sort of problems
10362 # (the dirname of $[0] is not the place where we might find the
10363 # original and so on. Autoconf is especially sensible to this).
10364 . ./$as_me.lineno
10365 # Exit status is that of the last command.
10366 exit
10367}
10368
10369
10370case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10371 *c*,-n*) ECHO_N= ECHO_C='
10372' ECHO_T=' ' ;;
10373 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10374 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10375esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010376
10377if expr a : '\(a\)' >/dev/null 2>&1; then
10378 as_expr=expr
10379else
10380 as_expr=false
10381fi
10382
10383rm -f conf$$ conf$$.exe conf$$.file
10384echo >conf$$.file
10385if ln -s conf$$.file conf$$ 2>/dev/null; then
10386 # We could just check for DJGPP; but this test a) works b) is more generic
10387 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10388 if test -f conf$$.exe; then
10389 # Don't use ln at all; we don't have any links
10390 as_ln_s='cp -p'
10391 else
10392 as_ln_s='ln -s'
10393 fi
10394elif ln conf$$.file conf$$ 2>/dev/null; then
10395 as_ln_s=ln
10396else
10397 as_ln_s='cp -p'
10398fi
10399rm -f conf$$ conf$$.exe conf$$.file
10400
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010401if mkdir -p . 2>/dev/null; then
10402 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000010403else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010404 test -d ./-p && rmdir ./-p
10405 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000010406fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010407
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010408as_executable_p="test -f"
10409
10410# Sed expression to map a string onto a valid CPP name.
10411as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10412
10413# Sed expression to map a string onto a valid variable name.
10414as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10415
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010416
10417# IFS
10418# We need space, tab and new line, in precisely that order.
10419as_nl='
10420'
10421IFS=" $as_nl"
10422
10423# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010424$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010425
10426exec 6>&1
10427
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010428# Open the log real soon, to keep \$[0] and so on meaningful, and to
10429# report actual input values of CONFIG_FILES etc. instead of their
10430# values after options handling. Logging --version etc. is OK.
10431exec 5>>config.log
10432{
10433 echo
10434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10435## Running $as_me. ##
10436_ASBOX
10437} >&5
10438cat >&5 <<_CSEOF
10439
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010440This file was extended by pjproject $as_me 0.7, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010441generated by GNU Autoconf 2.59. Invocation command line was
10442
10443 CONFIG_FILES = $CONFIG_FILES
10444 CONFIG_HEADERS = $CONFIG_HEADERS
10445 CONFIG_LINKS = $CONFIG_LINKS
10446 CONFIG_COMMANDS = $CONFIG_COMMANDS
10447 $ $0 $@
10448
10449_CSEOF
10450echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10451echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010452_ACEOF
10453
10454# Files that config.status was made for.
10455if test -n "$ac_config_files"; then
10456 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10457fi
10458
10459if test -n "$ac_config_headers"; then
10460 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10461fi
10462
10463if test -n "$ac_config_links"; then
10464 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10465fi
10466
10467if test -n "$ac_config_commands"; then
10468 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10469fi
10470
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010471cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010472
10473ac_cs_usage="\
10474\`$as_me' instantiates files from templates according to the
10475current configuration.
10476
10477Usage: $0 [OPTIONS] [FILE]...
10478
10479 -h, --help print this help, then exit
10480 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010481 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010482 -d, --debug don't remove temporary files
10483 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010484 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010485 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010486 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010487 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010488
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010489Configuration files:
10490$config_files
10491
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010492Configuration headers:
10493$config_headers
10494
10495Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010496_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010497
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010498cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010499ac_cs_version="\\
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010500pjproject config.status 0.7
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010501configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010502 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10503
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010504Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010505This config.status script is free software; the Free Software Foundation
10506gives unlimited permission to copy, distribute and modify it."
10507srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010508_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010509
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010510cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010511# If no file are specified by the user, then we need to provide default
10512# value. By we need to know if files were specified by the user.
10513ac_need_defaults=:
10514while test $# != 0
10515do
10516 case $1 in
10517 --*=*)
10518 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10519 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010520 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010521 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010522 -*)
10523 ac_option=$1
10524 ac_optarg=$2
10525 ac_shift=shift
10526 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010527 *) # This is not an option, so the user has probably given explicit
10528 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010529 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010530 ac_need_defaults=false;;
10531 esac
10532
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010533 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010534 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010535_ACEOF
10536cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010538 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010539 --version | --vers* | -V )
10540 echo "$ac_cs_version"; exit 0 ;;
10541 --he | --h)
10542 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010543 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010544Try \`$0 --help' for more information." >&5
10545echo "$as_me: error: ambiguous option: $1
10546Try \`$0 --help' for more information." >&2;}
10547 { (exit 1); exit 1; }; };;
10548 --help | --hel | -h )
10549 echo "$ac_cs_usage"; exit 0 ;;
10550 --debug | --d* | -d )
10551 debug=: ;;
10552 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010553 $ac_shift
10554 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010555 ac_need_defaults=false;;
10556 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010557 $ac_shift
10558 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010559 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10561 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10562 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010563
10564 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010565 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010566Try \`$0 --help' for more information." >&5
10567echo "$as_me: error: unrecognized option: $1
10568Try \`$0 --help' for more information." >&2;}
10569 { (exit 1); exit 1; }; } ;;
10570
10571 *) ac_config_targets="$ac_config_targets $1" ;;
10572
10573 esac
10574 shift
10575done
10576
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010577ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010578
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010579if $ac_cs_silent; then
10580 exec 6>/dev/null
10581 ac_configure_extra_args="$ac_configure_extra_args --silent"
10582fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010583
10584_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010585cat >>$CONFIG_STATUS <<_ACEOF
10586if \$ac_cs_recheck; then
10587 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10588 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10589fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010590
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010591_ACEOF
10592
10593
10594
10595
10596
10597cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010598for ac_config_target in $ac_config_targets
10599do
10600 case "$ac_config_target" in
10601 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010602 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
10603 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
10604 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
10605 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
10606 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
10607 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonod9627842007-04-18 09:24:31 +000010608 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
10609 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010610 "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010611 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010612 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
10613 "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010614 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
10615 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010616echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10617 { (exit 1); exit 1; }; };;
10618 esac
10619done
10620
10621# If the user did not use the arguments to specify the items to instantiate,
10622# then the envvar interface is used. Set only those that are not.
10623# We use the long form for the default assignment because of an extremely
10624# bizarre bug on SunOS 4.1.3.
10625if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10628fi
10629
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010630# Have a temporary directory for convenience. Make it in the build tree
10631# simply because there is no reason to put it here, and in addition,
10632# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010633# Create a temporary directory, and hook for its removal unless debugging.
10634$debug ||
10635{
10636 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10637 trap '{ (exit 1); exit 1; }' 1 2 13 15
10638}
10639
10640# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010641
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010642{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010643 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010644 test -n "$tmp" && test -d "$tmp"
10645} ||
10646{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010647 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010648 (umask 077 && mkdir $tmp)
10649} ||
10650{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010651 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010652 { (exit 1); exit 1; }
10653}
10654
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010655_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010656
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010657cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010658
10659#
10660# CONFIG_FILES section.
10661#
10662
10663# No need to generate the scripts if there are no CONFIG_FILES.
10664# This happens for instance when ./config.status config.h
10665if test -n "\$CONFIG_FILES"; then
10666 # Protect against being on the right side of a sed subst in config.status.
10667 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10668 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10669s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010670s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10671s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10672s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10673s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10674s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10675s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010676s,@exec_prefix@,$exec_prefix,;t t
10677s,@prefix@,$prefix,;t t
10678s,@program_transform_name@,$program_transform_name,;t t
10679s,@bindir@,$bindir,;t t
10680s,@sbindir@,$sbindir,;t t
10681s,@libexecdir@,$libexecdir,;t t
10682s,@datadir@,$datadir,;t t
10683s,@sysconfdir@,$sysconfdir,;t t
10684s,@sharedstatedir@,$sharedstatedir,;t t
10685s,@localstatedir@,$localstatedir,;t t
10686s,@libdir@,$libdir,;t t
10687s,@includedir@,$includedir,;t t
10688s,@oldincludedir@,$oldincludedir,;t t
10689s,@infodir@,$infodir,;t t
10690s,@mandir@,$mandir,;t t
10691s,@build_alias@,$build_alias,;t t
10692s,@host_alias@,$host_alias,;t t
10693s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010694s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010695s,@ECHO_C@,$ECHO_C,;t t
10696s,@ECHO_N@,$ECHO_N,;t t
10697s,@ECHO_T@,$ECHO_T,;t t
10698s,@LIBS@,$LIBS,;t t
10699s,@build@,$build,;t t
10700s,@build_cpu@,$build_cpu,;t t
10701s,@build_vendor@,$build_vendor,;t t
10702s,@build_os@,$build_os,;t t
10703s,@host@,$host,;t t
10704s,@host_cpu@,$host_cpu,;t t
10705s,@host_vendor@,$host_vendor,;t t
10706s,@host_os@,$host_os,;t t
10707s,@target@,$target,;t t
10708s,@target_cpu@,$target_cpu,;t t
10709s,@target_vendor@,$target_vendor,;t t
10710s,@target_os@,$target_os,;t t
10711s,@CC@,$CC,;t t
10712s,@CFLAGS@,$CFLAGS,;t t
10713s,@LDFLAGS@,$LDFLAGS,;t t
10714s,@CPPFLAGS@,$CPPFLAGS,;t t
10715s,@ac_ct_CC@,$ac_ct_CC,;t t
10716s,@EXEEXT@,$EXEEXT,;t t
10717s,@OBJEXT@,$OBJEXT,;t t
10718s,@CXX@,$CXX,;t t
10719s,@CXXFLAGS@,$CXXFLAGS,;t t
10720s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijono12483112007-03-12 10:44:38 +000010721s,@ac_pjdir@,$ac_pjdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010722s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010723s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010724s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010725s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +000010726s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010727s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
10728s,@ac_no_small_filter@,$ac_no_small_filter,;t t
10729s,@ac_no_large_filter@,$ac_no_large_filter,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010730s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
10731s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
10732s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
10733s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
10734s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
10735s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010736s,@ac_no_ssl@,$ac_no_ssl,;t t
10737s,@openssl_h_present@,$openssl_h_present,;t t
10738s,@libssl_present@,$libssl_present,;t t
10739s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010740s,@ac_cross_compile@,$ac_cross_compile,;t t
10741s,@ac_linux_poll@,$ac_linux_poll,;t t
10742s,@ac_host@,$ac_host,;t t
10743s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010744s,@LIBOBJS@,$LIBOBJS,;t t
10745s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010746CEOF
10747
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010748_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010749
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010750 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010751 # Split the substitutions into bite-sized pieces for seds with
10752 # small command number limits, like on Digital OSF/1 and HP-UX.
10753 ac_max_sed_lines=48
10754 ac_sed_frag=1 # Number of current file.
10755 ac_beg=1 # First line for current file.
10756 ac_end=$ac_max_sed_lines # Line after last line for current file.
10757 ac_more_lines=:
10758 ac_sed_cmds=
10759 while $ac_more_lines; do
10760 if test $ac_beg -gt 1; then
10761 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10762 else
10763 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10764 fi
10765 if test ! -s $tmp/subs.frag; then
10766 ac_more_lines=false
10767 else
10768 # The purpose of the label and of the branching condition is to
10769 # speed up the sed processing (if there are no `@' at all, there
10770 # is no need to browse any of the substitutions).
10771 # These are the two extra sed commands mentioned above.
10772 (echo ':t
10773 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10774 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010775 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010776 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010777 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010778 fi
10779 ac_sed_frag=`expr $ac_sed_frag + 1`
10780 ac_beg=$ac_end
10781 ac_end=`expr $ac_end + $ac_max_sed_lines`
10782 fi
10783 done
10784 if test -z "$ac_sed_cmds"; then
10785 ac_sed_cmds=cat
10786 fi
10787fi # test -n "$CONFIG_FILES"
10788
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010789_ACEOF
10790cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010791for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10792 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10793 case $ac_file in
10794 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010795 cat >$tmp/stdin
10796 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10797 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010798 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010799 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010800 * ) ac_file_in=$ac_file.in ;;
10801 esac
10802
10803 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010804 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10805$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10806 X"$ac_file" : 'X\(//\)[^/]' \| \
10807 X"$ac_file" : 'X\(//\)$' \| \
10808 X"$ac_file" : 'X\(/\)' \| \
10809 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010810echo X"$ac_file" |
10811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10812 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10813 /^X\(\/\/\)$/{ s//\1/; q; }
10814 /^X\(\/\).*/{ s//\1/; q; }
10815 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010816 { if $as_mkdir_p; then
10817 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010818 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010819 as_dir="$ac_dir"
10820 as_dirs=
10821 while test ! -d "$as_dir"; do
10822 as_dirs="$as_dir $as_dirs"
10823 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10824$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10825 X"$as_dir" : 'X\(//\)[^/]' \| \
10826 X"$as_dir" : 'X\(//\)$' \| \
10827 X"$as_dir" : 'X\(/\)' \| \
10828 . : '\(.\)' 2>/dev/null ||
10829echo X"$as_dir" |
10830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10832 /^X\(\/\/\)$/{ s//\1/; q; }
10833 /^X\(\/\).*/{ s//\1/; q; }
10834 s/.*/./; q'`
10835 done
10836 test ! -n "$as_dirs" || mkdir $as_dirs
10837 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10838echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10839 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010840
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010841 ac_builddir=.
10842
10843if test "$ac_dir" != .; then
10844 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10845 # A "../" for each directory in $ac_dir_suffix.
10846 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10847else
10848 ac_dir_suffix= ac_top_builddir=
10849fi
10850
10851case $srcdir in
10852 .) # No --srcdir option. We are building in place.
10853 ac_srcdir=.
10854 if test -z "$ac_top_builddir"; then
10855 ac_top_srcdir=.
10856 else
10857 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10858 fi ;;
10859 [\\/]* | ?:[\\/]* ) # Absolute path.
10860 ac_srcdir=$srcdir$ac_dir_suffix;
10861 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010862 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010863 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10864 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10865esac
10866
10867# Do not use `cd foo && pwd` to compute absolute paths, because
10868# the directories may not exist.
10869case `pwd` in
10870.) ac_abs_builddir="$ac_dir";;
10871*)
10872 case "$ac_dir" in
10873 .) ac_abs_builddir=`pwd`;;
10874 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10875 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10876 esac;;
10877esac
10878case $ac_abs_builddir in
10879.) ac_abs_top_builddir=${ac_top_builddir}.;;
10880*)
10881 case ${ac_top_builddir}. in
10882 .) ac_abs_top_builddir=$ac_abs_builddir;;
10883 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10884 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10885 esac;;
10886esac
10887case $ac_abs_builddir in
10888.) ac_abs_srcdir=$ac_srcdir;;
10889*)
10890 case $ac_srcdir in
10891 .) ac_abs_srcdir=$ac_abs_builddir;;
10892 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10893 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10894 esac;;
10895esac
10896case $ac_abs_builddir in
10897.) ac_abs_top_srcdir=$ac_top_srcdir;;
10898*)
10899 case $ac_top_srcdir in
10900 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10901 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10902 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10903 esac;;
10904esac
10905
10906
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010907
10908 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010909 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010910echo "$as_me: creating $ac_file" >&6;}
10911 rm -f "$ac_file"
10912 fi
10913 # Let's still pretend it is `configure' which instantiates (i.e., don't
10914 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010915 # /* config.h. Generated by config.status. */
10916 if test x"$ac_file" = x-; then
10917 configure_input=
10918 else
10919 configure_input="$ac_file. "
10920 fi
10921 configure_input=$configure_input"Generated from `echo $ac_file_in |
10922 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010923
10924 # First look for the input files in the build tree, otherwise in the
10925 # src tree.
10926 ac_file_inputs=`IFS=:
10927 for f in $ac_file_in; do
10928 case $f in
10929 -) echo $tmp/stdin ;;
10930 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010931 # Absolute (can't be DOS-style, as IFS=:)
10932 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010933echo "$as_me: error: cannot find input file: $f" >&2;}
10934 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010935 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010936 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010937 if test -f "$f"; then
10938 # Build tree
10939 echo "$f"
10940 elif test -f "$srcdir/$f"; then
10941 # Source tree
10942 echo "$srcdir/$f"
10943 else
10944 # /dev/null tree
10945 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010946echo "$as_me: error: cannot find input file: $f" >&2;}
10947 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010948 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010949 esac
10950 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010951_ACEOF
10952cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010953 sed "$ac_vpsub
10954$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010955_ACEOF
10956cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010957:t
10958/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10959s,@configure_input@,$configure_input,;t t
10960s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010961s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010962s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010963s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10964s,@builddir@,$ac_builddir,;t t
10965s,@abs_builddir@,$ac_abs_builddir,;t t
10966s,@top_builddir@,$ac_top_builddir,;t t
10967s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010968" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10969 rm -f $tmp/stdin
10970 if test x"$ac_file" != x-; then
10971 mv $tmp/out $ac_file
10972 else
10973 cat $tmp/out
10974 rm -f $tmp/out
10975 fi
10976
10977done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010978_ACEOF
10979cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010980
10981#
10982# CONFIG_HEADER section.
10983#
10984
10985# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10986# NAME is the cpp macro being defined and VALUE is the value it is being given.
10987#
10988# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010989ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10990ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010991ac_dC=' '
10992ac_dD=',;t'
10993# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010994ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010995ac_uB='$,\1#\2define\3'
10996ac_uC=' '
10997ac_uD=',;t'
10998
10999for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11000 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11001 case $ac_file in
11002 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011003 cat >$tmp/stdin
11004 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11005 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011006 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011008 * ) ac_file_in=$ac_file.in ;;
11009 esac
11010
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011011 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011012echo "$as_me: creating $ac_file" >&6;}
11013
11014 # First look for the input files in the build tree, otherwise in the
11015 # src tree.
11016 ac_file_inputs=`IFS=:
11017 for f in $ac_file_in; do
11018 case $f in
11019 -) echo $tmp/stdin ;;
11020 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011021 # Absolute (can't be DOS-style, as IFS=:)
11022 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011023echo "$as_me: error: cannot find input file: $f" >&2;}
11024 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011025 # Do quote $f, to prevent DOS paths from being IFS'd.
11026 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011027 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011028 if test -f "$f"; then
11029 # Build tree
11030 echo "$f"
11031 elif test -f "$srcdir/$f"; then
11032 # Source tree
11033 echo "$srcdir/$f"
11034 else
11035 # /dev/null tree
11036 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011037echo "$as_me: error: cannot find input file: $f" >&2;}
11038 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011039 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011040 esac
11041 done` || { (exit 1); exit 1; }
11042 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011043 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011044
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011045_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011046
11047# Transform confdefs.h into two sed scripts, `conftest.defines' and
11048# `conftest.undefs', that substitutes the proper values into
11049# config.h.in to produce config.h. The first handles `#define'
11050# templates, and the second `#undef' templates.
11051# And first: Protect against being on the right side of a sed subst in
11052# config.status. Protect against being in an unquoted here document
11053# in config.status.
11054rm -f conftest.defines conftest.undefs
11055# Using a here document instead of a string reduces the quoting nightmare.
11056# Putting comments in sed scripts is not portable.
11057#
11058# `end' is used to avoid that the second main sed command (meant for
11059# 0-ary CPP macros) applies to n-ary macro definitions.
11060# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011061cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011062s/[\\&,]/\\&/g
11063s,[\\$`],\\&,g
11064t clear
11065: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011066s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011067t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011068s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011069: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011070_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011071# If some macros were called several times there might be several times
11072# the same #defines, which is useless. Nevertheless, we may not want to
11073# sort them, since we want the *last* AC-DEFINE to be honored.
11074uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11075sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11076rm -f confdef2sed.sed
11077
11078# This sed command replaces #undef with comments. This is necessary, for
11079# example, in the case of _POSIX_SOURCE, which is predefined and required
11080# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011081cat >>conftest.undefs <<\_ACEOF
11082s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11083_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011084
11085# Break up conftest.defines because some shells have a limit on the size
11086# of here documents, and old seds have small limits too (100 cmds).
11087echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011088echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011089echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11090echo ' :' >>$CONFIG_STATUS
11091rm -f conftest.tail
11092while grep . conftest.defines >/dev/null
11093do
11094 # Write a limited-size here document to $tmp/defines.sed.
11095 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11096 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011097 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011098 # Work around the forget-to-reset-the-flag bug.
11099 echo 't clr' >>$CONFIG_STATUS
11100 echo ': clr' >>$CONFIG_STATUS
11101 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11102 echo 'CEOF
11103 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11104 rm -f $tmp/in
11105 mv $tmp/out $tmp/in
11106' >>$CONFIG_STATUS
11107 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11108 rm -f conftest.defines
11109 mv conftest.tail conftest.defines
11110done
11111rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011112echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011113echo >>$CONFIG_STATUS
11114
11115# Break up conftest.undefs because some shells have a limit on the size
11116# of here documents, and old seds have small limits too (100 cmds).
11117echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11118rm -f conftest.tail
11119while grep . conftest.undefs >/dev/null
11120do
11121 # Write a limited-size here document to $tmp/undefs.sed.
11122 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11123 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011124 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011125 # Work around the forget-to-reset-the-flag bug.
11126 echo 't clr' >>$CONFIG_STATUS
11127 echo ': clr' >>$CONFIG_STATUS
11128 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11129 echo 'CEOF
11130 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11131 rm -f $tmp/in
11132 mv $tmp/out $tmp/in
11133' >>$CONFIG_STATUS
11134 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11135 rm -f conftest.undefs
11136 mv conftest.tail conftest.undefs
11137done
11138rm -f conftest.undefs
11139
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011140cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011141 # Let's still pretend it is `configure' which instantiates (i.e., don't
11142 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011143 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011144 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011145 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011146 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011147 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011148 fi
11149 cat $tmp/in >>$tmp/config.h
11150 rm -f $tmp/in
11151 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011152 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11153 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011154echo "$as_me: $ac_file is unchanged" >&6;}
11155 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011156 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11157$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11158 X"$ac_file" : 'X\(//\)[^/]' \| \
11159 X"$ac_file" : 'X\(//\)$' \| \
11160 X"$ac_file" : 'X\(/\)' \| \
11161 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011162echo X"$ac_file" |
11163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11165 /^X\(\/\/\)$/{ s//\1/; q; }
11166 /^X\(\/\).*/{ s//\1/; q; }
11167 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011168 { if $as_mkdir_p; then
11169 mkdir -p "$ac_dir"
11170 else
11171 as_dir="$ac_dir"
11172 as_dirs=
11173 while test ! -d "$as_dir"; do
11174 as_dirs="$as_dir $as_dirs"
11175 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11176$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11177 X"$as_dir" : 'X\(//\)[^/]' \| \
11178 X"$as_dir" : 'X\(//\)$' \| \
11179 X"$as_dir" : 'X\(/\)' \| \
11180 . : '\(.\)' 2>/dev/null ||
11181echo X"$as_dir" |
11182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11184 /^X\(\/\/\)$/{ s//\1/; q; }
11185 /^X\(\/\).*/{ s//\1/; q; }
11186 s/.*/./; q'`
11187 done
11188 test ! -n "$as_dirs" || mkdir $as_dirs
11189 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11190echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11191 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011192
11193 rm -f $ac_file
11194 mv $tmp/config.h $ac_file
11195 fi
11196 else
11197 cat $tmp/config.h
11198 rm -f $tmp/config.h
11199 fi
11200done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011201_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011202
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011203cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011204
11205{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011206_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011207chmod +x $CONFIG_STATUS
11208ac_clean_files=$ac_clean_files_save
11209
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011210
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011211# configure is writing to config.log, and then calls config.status.
11212# config.status does its own redirection, appending to config.log.
11213# Unfortunately, on DOS this fails, as config.log is still kept open
11214# by configure, so config.status won't be able to write to it; its
11215# output is simply discarded. So we exec the FD to /dev/null,
11216# effectively closing config.log, so it can be properly (re)opened and
11217# appended to by config.status. When coming back to configure, we
11218# need to make the FD available again.
11219if test "$no_create" != yes; then
11220 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011221 ac_config_status_args=
11222 test "$silent" = yes &&
11223 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011224 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011226 exec 5>>config.log
11227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11228 # would make configure fail if this is the last instruction.
11229 $ac_cs_success || { (exit 1); exit 1; }
11230fi
11231
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011232
Benny Prijonod9627842007-04-18 09:24:31 +000011233
11234echo "$as_me:$LINENO: result:
11235
11236The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
11237
11238Customizations can be put in:
11239 - 'user.mak'
11240 - 'pjlib/include/pj/config_site.h'
11241
11242The next step now is to run 'make dep' and 'make'.
11243" >&5
11244echo "${ECHO_T}
11245
11246The configuration for current target has been written to 'build.mak', and 'os-auto.mak' in various build directories.
11247
11248Customizations can be put in:
11249 - 'user.mak'
11250 - 'pjlib/include/pj/config_site.h'
11251
11252The next step now is to run 'make dep' and 'make'.
11253" >&6
11254