blob: 58f281ead55fe074de71afaa5bfe0ad6be93ab17 [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
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008497echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
8498echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008499cat >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 Prijonoc16c6e32007-11-18 14:53:47 +00008505#include <sys/types.h>
8506 #include <sys/socket.h>
8507 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008508int
8509main ()
8510{
8511inet_aton(0, 0);
8512 ;
8513 return 0;
8514}
8515_ACEOF
8516rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008519 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008524 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008528 (eval $ac_try) 2>&5
8529 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest.$ac_objext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008537 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008538 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008539#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008540_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008541
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008542 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008543echo "${ECHO_T}yes" >&6
8544else
8545 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008549echo "${ECHO_T}no" >&6
8550fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008552
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008553echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
8554echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6
8555cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h. */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h. */
8561#include <sys/types.h>
8562 #include <sys/socket.h>
8563 #include <arpa/inet.h>
8564int
8565main ()
8566{
8567inet_pton(0, 0, 0);
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext
8573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 cat >>confdefs.h <<\_ACEOF
8595#define PJ_SOCK_HAS_INET_PTON 1
8596_ACEOF
8597
8598 echo "$as_me:$LINENO: result: yes" >&5
8599echo "${ECHO_T}yes" >&6
8600else
8601 echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
8604echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606fi
8607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8608
8609echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
8610echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6
8611cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617#include <sys/types.h>
8618 #include <sys/socket.h>
8619 #include <arpa/inet.h>
8620int
8621main ()
8622{
8623inet_ntop(0, 0, 0, 0);
8624 ;
8625 return 0;
8626}
8627_ACEOF
8628rm -f conftest.$ac_objext
8629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630 (eval $ac_compile) 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -z "$ac_c_werror_flag"
8638 || test ! -s conftest.err'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 (eval $ac_try) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; } &&
8644 { ac_try='test -s conftest.$ac_objext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 cat >>confdefs.h <<\_ACEOF
8651#define PJ_SOCK_HAS_INET_NTOP 1
8652_ACEOF
8653
8654 echo "$as_me:$LINENO: result: yes" >&5
8655echo "${ECHO_T}yes" >&6
8656else
8657 echo "$as_me: failed program was:" >&5
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
8660echo "$as_me:$LINENO: result: no" >&5
8661echo "${ECHO_T}no" >&6
8662fi
8663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8664
8665echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
8666echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6
8667cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h. */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h. */
8673#include <sys/types.h>
8674 #include <sys/socket.h>
8675 #include <netdb.h>
8676int
8677main ()
8678{
8679getaddrinfo(0, 0, 0, 0);
8680 ;
8681 return 0;
8682}
8683_ACEOF
8684rm -f conftest.$ac_objext
8685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8686 (eval $ac_compile) 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -z "$ac_c_werror_flag"
8694 || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 cat >>confdefs.h <<\_ACEOF
8707#define PJ_SOCK_HAS_GETADDRINFO 1
8708_ACEOF
8709
8710 echo "$as_me:$LINENO: result: yes" >&5
8711echo "${ECHO_T}yes" >&6
8712else
8713 echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716echo "$as_me:$LINENO: result: no" >&5
8717echo "${ECHO_T}no" >&6
8718fi
8719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8720
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008721echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008722echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
8723cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008724/* confdefs.h. */
8725_ACEOF
8726cat confdefs.h >>conftest.$ac_ext
8727cat >>conftest.$ac_ext <<_ACEOF
8728/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008729#include <sys/types.h>
8730 #include <sys/socket.h>
8731 #include <netinet/in.h>
8732 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008733int
8734main ()
8735{
8736struct sockaddr_in a; a.sin_len=0;
8737 ;
8738 return 0;
8739}
8740_ACEOF
8741rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008744 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008749 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008750 { ac_try='test -z "$ac_c_werror_flag"
8751 || test ! -s conftest.err'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008753 (eval $ac_try) 2>&5
8754 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008762 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008763 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008764#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008765_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008766
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008767 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008768echo "${ECHO_T}yes" >&6
8769else
8770 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008771sed 's/^/| /' conftest.$ac_ext >&5
8772
8773echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008774echo "${ECHO_T}no" >&6
8775fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008777
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008778echo "$as_me:$LINENO: checking if socklen_t is available" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008779echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
8780cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008781/* confdefs.h. */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00008786#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00008787int
8788main ()
8789{
8790socklen_t xxx = 0;
8791 ;
8792 return 0;
8793}
8794_ACEOF
8795rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8797 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00008798 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008803 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008804 { ac_try='test -z "$ac_c_werror_flag"
8805 || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008807 (eval $ac_try) 2>&5
8808 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest.$ac_objext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008816 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008817 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008818#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008819_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00008820
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008821 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008822echo "${ECHO_T}yes" >&6
8823else
8824 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008825sed 's/^/| /' conftest.$ac_ext >&5
8826
8827echo "$as_me:$LINENO: result: no" >&5
Benny Prijono30f85c62006-09-09 20:05:33 +00008828echo "${ECHO_T}no" >&6
8829fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00008831
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008832echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008833echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008834case $target in
8835 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008836 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008837#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008838_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008839
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008840 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008841echo "${ECHO_T}yes" >&6
8842 ;;
8843 *)
8844 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008845/* confdefs.h. */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00008850#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008851 #include <sys/socket.h>
8852 #include <netinet/in.h>
8853 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008854int
8855main ()
8856{
8857int i=SO_ERROR;
8858 ;
8859 return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8864 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008865 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008870 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008874 (eval $ac_try) 2>&5
8875 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest.$ac_objext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008883 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008884 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008885#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008886_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008887
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008888 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008889echo "${ECHO_T}yes" >&6
8890else
8891 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008892sed 's/^/| /' conftest.$ac_ext >&5
8893
8894echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008895echo "${ECHO_T}no" >&6
8896fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008898 ;;
8899esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008900
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008901
8902echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008903echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
8904cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008905/* confdefs.h. */
8906_ACEOF
8907cat confdefs.h >>conftest.$ac_ext
8908cat >>conftest.$ac_ext <<_ACEOF
8909/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008910#include <pthread.h>
8911int
8912main ()
8913{
8914pthread_rwlock_t *x;
8915 ;
8916 return 0;
8917}
8918_ACEOF
8919rm -f conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008922 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008927 (exit $ac_status); } &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008928 { ac_try='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Benny Prijono5b818b22006-09-17 22:58:51 +00008931 (eval $ac_try) 2>&5
8932 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest.$ac_objext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008940 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008941 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008942#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008943_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008944
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008945 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008946echo "${ECHO_T}yes" >&6
8947else
8948 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008949sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008950
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008951cat >>confdefs.h <<\_ACEOF
8952#define PJ_EMULATE_RWMUTEX 1
8953_ACEOF
8954
8955 echo "$as_me:$LINENO: result: no" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008956echo "${ECHO_T}no" >&6
8957fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8959
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008960
8961case $target in
8962 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00008963 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 +00008964 ;;
8965 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00008966 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"
8967 # UUID
8968 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
8969 ac_os_objs="$ac_os_objs guid_uuid.o"
8970 else
8971 ac_os_objs="$ac_os_objs guid_simple.o"
8972 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008973 ;;
8974esac
8975
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008976
8977
8978
Benny Prijono4e48b512007-05-16 13:41:00 +00008979
Benny Prijono1d971622006-09-10 22:27:40 +00008980# Check whether --enable-sound or --disable-sound was given.
8981if test "${enable_sound+set}" = set; then
8982 enableval="$enable_sound"
8983 if test "$enable_sound" = "no"; then
8984 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008985 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
Benny Prijono1d971622006-09-10 22:27:40 +00008986echo "${ECHO_T}Checking if sound is disabled... yes" >&6
8987 fi
8988
8989fi;
8990
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008991
Benny Prijono27c98722007-04-09 21:28:15 +00008992if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8993 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8994echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8995if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997fi
8998echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8999echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
9000else
9001 # Is the header compilable?
9002echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9003echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
9004cat >conftest.$ac_ext <<_ACEOF
9005/* confdefs.h. */
9006_ACEOF
9007cat confdefs.h >>conftest.$ac_ext
9008cat >>conftest.$ac_ext <<_ACEOF
9009/* end confdefs.h. */
9010$ac_includes_default
9011#include <sys/soundcard.h>
9012_ACEOF
9013rm -f conftest.$ac_objext
9014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>conftest.er1
9016 ac_status=$?
9017 grep -v '^ *+' conftest.er1 >conftest.err
9018 rm -f conftest.er1
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try='test -z "$ac_c_werror_flag"
9023 || test ! -s conftest.err'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; } &&
9029 { ac_try='test -s conftest.$ac_objext'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 (eval $ac_try) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; }; then
9035 ac_header_compiler=yes
9036else
9037 echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040ac_header_compiler=no
9041fi
9042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9044echo "${ECHO_T}$ac_header_compiler" >&6
9045
9046# Is the header present?
9047echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9048echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
9049cat >conftest.$ac_ext <<_ACEOF
9050/* confdefs.h. */
9051_ACEOF
9052cat confdefs.h >>conftest.$ac_ext
9053cat >>conftest.$ac_ext <<_ACEOF
9054/* end confdefs.h. */
9055#include <sys/soundcard.h>
9056_ACEOF
9057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9059 ac_status=$?
9060 grep -v '^ *+' conftest.er1 >conftest.err
9061 rm -f conftest.er1
9062 cat conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } >/dev/null; then
9065 if test -s conftest.err; then
9066 ac_cpp_err=$ac_c_preproc_warn_flag
9067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9068 else
9069 ac_cpp_err=
9070 fi
9071else
9072 ac_cpp_err=yes
9073fi
9074if test -z "$ac_cpp_err"; then
9075 ac_header_preproc=yes
9076else
9077 echo "$as_me: failed program was:" >&5
9078sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 ac_header_preproc=no
9081fi
9082rm -f conftest.err conftest.$ac_ext
9083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9084echo "${ECHO_T}$ac_header_preproc" >&6
9085
9086# So? What about this header?
9087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9088 yes:no: )
9089 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9090echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9092echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9093 ac_header_preproc=yes
9094 ;;
9095 no:yes:* )
9096 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9097echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9099echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9101echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9103echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9105echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9107echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
9108 (
9109 cat <<\_ASBOX
9110## ------------------------------------ ##
9111## Report this to the pjproject lists. ##
9112## ------------------------------------ ##
9113_ASBOX
9114 ) |
9115 sed "s/^/$as_me: WARNING: /" >&2
9116 ;;
9117esac
9118echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9119echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
9120if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9122else
9123 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9124fi
9125echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9126echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
9127
9128fi
9129if test $ac_cv_header_sys_soundcard_h = yes; then
9130 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
9131fi
9132
9133
9134if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9135 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9136echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
9137if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9139fi
9140echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9141echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
9142else
9143 # Is the header compilable?
9144echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
9145echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
9146cat >conftest.$ac_ext <<_ACEOF
9147/* confdefs.h. */
9148_ACEOF
9149cat confdefs.h >>conftest.$ac_ext
9150cat >>conftest.$ac_ext <<_ACEOF
9151/* end confdefs.h. */
9152$ac_includes_default
9153#include <linux/soundcard.h>
9154_ACEOF
9155rm -f conftest.$ac_objext
9156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_header_compiler=yes
9178else
9179 echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182ac_header_compiler=no
9183fi
9184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186echo "${ECHO_T}$ac_header_compiler" >&6
9187
9188# Is the header present?
9189echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
9190echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
9191cat >conftest.$ac_ext <<_ACEOF
9192/* confdefs.h. */
9193_ACEOF
9194cat confdefs.h >>conftest.$ac_ext
9195cat >>conftest.$ac_ext <<_ACEOF
9196/* end confdefs.h. */
9197#include <linux/soundcard.h>
9198_ACEOF
9199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev/null; then
9207 if test -s conftest.err; then
9208 ac_cpp_err=$ac_c_preproc_warn_flag
9209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9210 else
9211 ac_cpp_err=
9212 fi
9213else
9214 ac_cpp_err=yes
9215fi
9216if test -z "$ac_cpp_err"; then
9217 ac_header_preproc=yes
9218else
9219 echo "$as_me: failed program was:" >&5
9220sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 ac_header_preproc=no
9223fi
9224rm -f conftest.err conftest.$ac_ext
9225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9226echo "${ECHO_T}$ac_header_preproc" >&6
9227
9228# So? What about this header?
9229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9230 yes:no: )
9231 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9232echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
9234echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
9235 ac_header_preproc=yes
9236 ;;
9237 no:yes:* )
9238 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
9239echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
9241echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
9243echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9245echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
9247echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
9249echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
9250 (
9251 cat <<\_ASBOX
9252## ------------------------------------ ##
9253## Report this to the pjproject lists. ##
9254## ------------------------------------ ##
9255_ASBOX
9256 ) |
9257 sed "s/^/$as_me: WARNING: /" >&2
9258 ;;
9259esac
9260echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9261echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
9262if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264else
9265 ac_cv_header_linux_soundcard_h=$ac_header_preproc
9266fi
9267echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9268echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
9269
9270fi
9271if test $ac_cv_header_linux_soundcard_h = yes; then
9272 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
9273fi
9274
9275
9276if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9277 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9278echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
9279if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281fi
9282echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9283echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
9284else
9285 # Is the header compilable?
9286echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
9287echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
9288cat >conftest.$ac_ext <<_ACEOF
9289/* confdefs.h. */
9290_ACEOF
9291cat confdefs.h >>conftest.$ac_ext
9292cat >>conftest.$ac_ext <<_ACEOF
9293/* end confdefs.h. */
9294$ac_includes_default
9295#include <machine/soundcard.h>
9296_ACEOF
9297rm -f conftest.$ac_objext
9298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9299 (eval $ac_compile) 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -z "$ac_c_werror_flag"
9307 || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try='test -s conftest.$ac_objext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_header_compiler=yes
9320else
9321 echo "$as_me: failed program was:" >&5
9322sed 's/^/| /' conftest.$ac_ext >&5
9323
9324ac_header_compiler=no
9325fi
9326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9328echo "${ECHO_T}$ac_header_compiler" >&6
9329
9330# Is the header present?
9331echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9332echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
9333cat >conftest.$ac_ext <<_ACEOF
9334/* confdefs.h. */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
9338/* end confdefs.h. */
9339#include <machine/soundcard.h>
9340_ACEOF
9341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9343 ac_status=$?
9344 grep -v '^ *+' conftest.er1 >conftest.err
9345 rm -f conftest.er1
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } >/dev/null; then
9349 if test -s conftest.err; then
9350 ac_cpp_err=$ac_c_preproc_warn_flag
9351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9352 else
9353 ac_cpp_err=
9354 fi
9355else
9356 ac_cpp_err=yes
9357fi
9358if test -z "$ac_cpp_err"; then
9359 ac_header_preproc=yes
9360else
9361 echo "$as_me: failed program was:" >&5
9362sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ac_header_preproc=no
9365fi
9366rm -f conftest.err conftest.$ac_ext
9367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9368echo "${ECHO_T}$ac_header_preproc" >&6
9369
9370# So? What about this header?
9371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9372 yes:no: )
9373 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9374echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9375 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
9376echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
9377 ac_header_preproc=yes
9378 ;;
9379 no:yes:* )
9380 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
9381echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
9383echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
9385echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9387echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9388 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
9389echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
9391echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
9392 (
9393 cat <<\_ASBOX
9394## ------------------------------------ ##
9395## Report this to the pjproject lists. ##
9396## ------------------------------------ ##
9397_ASBOX
9398 ) |
9399 sed "s/^/$as_me: WARNING: /" >&2
9400 ;;
9401esac
9402echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9403echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
9404if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406else
9407 ac_cv_header_machine_soundcard_h=$ac_header_preproc
9408fi
9409echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9410echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
9411
9412fi
9413if test $ac_cv_header_machine_soundcard_h = yes; then
9414 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
9415fi
9416
9417
9418
Benny Prijono1d971622006-09-10 22:27:40 +00009419if test "$enable_sound" = "no"; then
9420 true;
9421else
9422 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00009423 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00009424 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
9425 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009426 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00009427 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
9428 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009429 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
Benny Prijono39ae2da2006-10-13 17:57:42 +00009430echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
9431 else
9432 ac_pjmedia_snd=pa_darwinos
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009433 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
Benny Prijonob466e232006-09-10 08:53:59 +00009434echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +00009435 fi
Benny Prijonob466e232006-09-10 08:53:59 +00009436 ;;
9437 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009438 ac_pjmedia_snd=pa_win32
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009439 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009440echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
9441 ;;
9442 *rtems*)
9443 ac_pjmedia_snd=null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009444 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009445echo "${ECHO_T}Checking sound device backend... null sound" >&6
9446 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009447 *)
9448 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009449 if test "${ac_cv_header_alsa_version_h+set}" = set; then
9450 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009451echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9452if test "${ac_cv_header_alsa_version_h+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009454fi
9455echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
9456echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009457else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009458 # Is the header compilable?
9459echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
9460echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
9461cat >conftest.$ac_ext <<_ACEOF
9462/* confdefs.h. */
9463_ACEOF
9464cat confdefs.h >>conftest.$ac_ext
9465cat >>conftest.$ac_ext <<_ACEOF
9466/* end confdefs.h. */
9467$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009468#include <alsa/version.h>
9469_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009470rm -f conftest.$ac_objext
9471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9472 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009473 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009474 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009475 rm -f conftest.er1
9476 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -z "$ac_c_werror_flag"
9480 || test ! -s conftest.err'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest.$ac_objext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 ac_header_compiler=yes
9493else
9494 echo "$as_me: failed program was:" >&5
9495sed 's/^/| /' conftest.$ac_ext >&5
9496
9497ac_header_compiler=no
9498fi
9499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9501echo "${ECHO_T}$ac_header_compiler" >&6
9502
9503# Is the header present?
9504echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
9505echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
9506cat >conftest.$ac_ext <<_ACEOF
9507/* confdefs.h. */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
9511/* end confdefs.h. */
9512#include <alsa/version.h>
9513_ACEOF
9514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009521 (exit $ac_status); } >/dev/null; then
9522 if test -s conftest.err; then
9523 ac_cpp_err=$ac_c_preproc_warn_flag
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009525 else
9526 ac_cpp_err=
9527 fi
9528else
9529 ac_cpp_err=yes
9530fi
9531if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009532 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009533else
9534 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009535sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009538fi
9539rm -f conftest.err conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9541echo "${ECHO_T}$ac_header_preproc" >&6
9542
9543# So? What about this header?
9544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9545 yes:no: )
9546 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9547echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
9549echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
9550 ac_header_preproc=yes
9551 ;;
9552 no:yes:* )
9553 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
9554echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
9556echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
9558echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
9560echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
9562echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
9564echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
9565 (
9566 cat <<\_ASBOX
9567## ------------------------------------ ##
9568## Report this to the pjproject lists. ##
9569## ------------------------------------ ##
9570_ASBOX
9571 ) |
9572 sed "s/^/$as_me: WARNING: /" >&2
9573 ;;
9574esac
9575echo "$as_me:$LINENO: checking for alsa/version.h" >&5
9576echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
9577if test "${ac_cv_header_alsa_version_h+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009581fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009582echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009583echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009584
9585fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009586if test $ac_cv_header_alsa_version_h = yes; then
9587 ac_pa_use_alsa=1
9588
9589 LIBS="$LIBS -lasound"
9590
9591else
9592 ac_pa_use_alsa=0
9593
9594fi
9595
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009596
9597 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009598echo "${ECHO_T}Checking sound device backend... unix" >&6
9599 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00009600 esac
9601fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009602
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009603
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009604# Check whether --enable-small-filter or --disable-small-filter was given.
9605if test "${enable_small_filter+set}" = set; then
9606 enableval="$enable_small_filter"
9607 if test "$enable_small_filter" = "no"; then
9608 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009609 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009610echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
9611 fi
9612else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009613 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009614echo "${ECHO_T}Checking if small filter is disabled... no" >&6
9615fi;
9616
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009617
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009618# Check whether --enable-large-filter or --disable-large-filter was given.
9619if test "${enable_large_filter+set}" = set; then
9620 enableval="$enable_large_filter"
9621 if test "$enable_large_filter" = "no"; then
9622 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009623 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009624echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
9625 fi
9626else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009627 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009628echo "${ECHO_T}Checking if large filter is disabled... no" >&6
9629fi;
9630
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009631
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009632# Check whether --enable-speex-aec or --disable-speex-aec was given.
9633if test "${enable_speex_aec+set}" = set; then
9634 enableval="$enable_speex_aec"
9635 if test "$enable_speex_aec" = "no"; then
9636 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009637 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009638echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
9639 fi
9640else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009641 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009642echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
9643fi;
9644
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009645
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009646# Check whether --enable-g711-codec or --disable-g711-codec was given.
9647if test "${enable_g711_codec+set}" = set; then
9648 enableval="$enable_g711_codec"
9649 if test "$enable_g711_codec" = "no"; then
9650 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009651 cat >>confdefs.h <<\_ACEOF
9652#define PJMEDIA_HAS_G711_CODEC 0
9653_ACEOF
9654
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009655 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009656echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
9657 fi
9658else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009659 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009660echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
9661fi;
9662
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009663
9664
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009665# Check whether --enable-l16-codec or --disable-l16-codec was given.
9666if test "${enable_l16_codec+set}" = set; then
9667 enableval="$enable_l16_codec"
9668 if test "$enable_l16_codec" = "no"; then
9669 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009670 cat >>confdefs.h <<\_ACEOF
9671#define PJMEDIA_HAS_L16_CODEC 0
9672_ACEOF
9673
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009674 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009675echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
9676 fi
9677else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009678 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00009679echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009680fi;
9681
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009682
9683
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009684# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
9685if test "${enable_gsm_codec+set}" = set; then
9686 enableval="$enable_gsm_codec"
9687 if test "$enable_gsm_codec" = "no"; then
9688 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009689 cat >>confdefs.h <<\_ACEOF
9690#define PJMEDIA_HAS_GSM_CODEC 0
9691_ACEOF
9692
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009693 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009694echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
9695 fi
9696else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009697 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009698echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
9699fi;
9700
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009701
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009702# Check whether --enable-speex-codec or --disable-speex-codec was given.
9703if test "${enable_speex_codec+set}" = set; then
9704 enableval="$enable_speex_codec"
9705 if test "$enable_speex_codec" = "no"; then
9706 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009707 cat >>confdefs.h <<\_ACEOF
9708#define PJMEDIA_HAS_SPEEX_CODEC 0
9709_ACEOF
9710
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009711 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009712echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
9713 fi
9714else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009715 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009716echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
9717fi;
9718
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009719
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009720# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
9721if test "${enable_ilbc_codec+set}" = set; then
9722 enableval="$enable_ilbc_codec"
9723 if test "$enable_ilbc_codec" = "no"; then
9724 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +00009725 cat >>confdefs.h <<\_ACEOF
9726#define PJMEDIA_HAS_ILBC_CODEC 0
9727_ACEOF
9728
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009729 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009730echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
9731 fi
9732else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009733 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009734echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
9735fi;
9736
Benny Prijono550a1a62007-10-16 08:54:00 +00009737# Check whether --enable-libsamplerate or --disable-libsamplerate was given.
9738if test "${enable_libsamplerate+set}" = set; then
9739 enableval="$enable_libsamplerate"
9740
9741echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
9742echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6
9743if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9745else
9746 ac_check_lib_save_LIBS=$LIBS
9747LIBS="-lsamplerate $LIBS"
9748cat >conftest.$ac_ext <<_ACEOF
9749/* confdefs.h. */
9750_ACEOF
9751cat confdefs.h >>conftest.$ac_ext
9752cat >>conftest.$ac_ext <<_ACEOF
9753/* end confdefs.h. */
9754
9755/* Override any gcc2 internal prototype to avoid an error. */
9756#ifdef __cplusplus
9757extern "C"
9758#endif
9759/* We use char because int might match the return type of a gcc2
9760 builtin and then its argument prototype would still apply. */
9761char src_new ();
9762int
9763main ()
9764{
9765src_new ();
9766 ;
9767 return 0;
9768}
9769_ACEOF
9770rm -f conftest.$ac_objext conftest$ac_exeext
9771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest$ac_exeext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_cv_lib_samplerate_src_new=yes
9793else
9794 echo "$as_me: failed program was:" >&5
9795sed 's/^/| /' conftest.$ac_ext >&5
9796
9797ac_cv_lib_samplerate_src_new=no
9798fi
9799rm -f conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801LIBS=$ac_check_lib_save_LIBS
9802fi
9803echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
9804echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6
9805if test $ac_cv_lib_samplerate_src_new = yes; then
9806 cat >>confdefs.h <<_ACEOF
9807#define HAVE_LIBSAMPLERATE 1
9808_ACEOF
9809
9810 LIBS="-lsamplerate $LIBS"
9811
9812fi
9813
9814else
9815 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
9816echo "${ECHO_T}Skipping libsamplerate detection" >&6
9817
9818fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009819
9820
9821
9822
9823# Check whether --enable-ssl or --disable-ssl was given.
9824if test "${enable_ssl+set}" = set; then
9825 enableval="$enable_ssl"
9826
9827 if test "$enable_ssl" = "no"; then
9828 ac_no_ssl=1
9829 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
9830echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
9831 fi
9832
9833else
9834
9835 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
9836echo "${ECHO_T}checking for OpenSSL installations.." >&6
9837
9838
9839
9840 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9841 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9842echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9843if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845fi
9846echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9847echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9848else
9849 # Is the header compilable?
9850echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9851echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9852cat >conftest.$ac_ext <<_ACEOF
9853/* confdefs.h. */
9854_ACEOF
9855cat confdefs.h >>conftest.$ac_ext
9856cat >>conftest.$ac_ext <<_ACEOF
9857/* end confdefs.h. */
9858$ac_includes_default
9859#include <openssl/ssl.h>
9860_ACEOF
9861rm -f conftest.$ac_objext
9862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863 (eval $ac_compile) 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -z "$ac_c_werror_flag"
9871 || test ! -s conftest.err'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; } &&
9877 { ac_try='test -s conftest.$ac_objext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_header_compiler=yes
9884else
9885 echo "$as_me: failed program was:" >&5
9886sed 's/^/| /' conftest.$ac_ext >&5
9887
9888ac_header_compiler=no
9889fi
9890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9892echo "${ECHO_T}$ac_header_compiler" >&6
9893
9894# Is the header present?
9895echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9896echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9897cat >conftest.$ac_ext <<_ACEOF
9898/* confdefs.h. */
9899_ACEOF
9900cat confdefs.h >>conftest.$ac_ext
9901cat >>conftest.$ac_ext <<_ACEOF
9902/* end confdefs.h. */
9903#include <openssl/ssl.h>
9904_ACEOF
9905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } >/dev/null; then
9913 if test -s conftest.err; then
9914 ac_cpp_err=$ac_c_preproc_warn_flag
9915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9916 else
9917 ac_cpp_err=
9918 fi
9919else
9920 ac_cpp_err=yes
9921fi
9922if test -z "$ac_cpp_err"; then
9923 ac_header_preproc=yes
9924else
9925 echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 ac_header_preproc=no
9929fi
9930rm -f conftest.err conftest.$ac_ext
9931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9932echo "${ECHO_T}$ac_header_preproc" >&6
9933
9934# So? What about this header?
9935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9936 yes:no: )
9937 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9938echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9940echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9941 ac_header_preproc=yes
9942 ;;
9943 no:yes:* )
9944 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9945echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9947echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9949echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9951echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9953echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9955echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9956 (
9957 cat <<\_ASBOX
9958## ------------------------------------ ##
9959## Report this to the pjproject lists. ##
9960## ------------------------------------ ##
9961_ASBOX
9962 ) |
9963 sed "s/^/$as_me: WARNING: /" >&2
9964 ;;
9965esac
9966echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9967echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9968if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9972fi
9973echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9974echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9975
9976fi
9977if test $ac_cv_header_openssl_ssl_h = yes; then
9978 openssl_h_present=1
9979fi
9980
9981
9982 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9983echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
9984if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986else
9987 ac_check_lib_save_LIBS=$LIBS
9988LIBS="-lssl $LIBS"
9989cat >conftest.$ac_ext <<_ACEOF
9990/* confdefs.h. */
9991_ACEOF
9992cat confdefs.h >>conftest.$ac_ext
9993cat >>conftest.$ac_ext <<_ACEOF
9994/* end confdefs.h. */
9995
9996/* Override any gcc2 internal prototype to avoid an error. */
9997#ifdef __cplusplus
9998extern "C"
9999#endif
10000/* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10002char SSL_library_init ();
10003int
10004main ()
10005{
10006SSL_library_init ();
10007 ;
10008 return 0;
10009}
10010_ACEOF
10011rm -f conftest.$ac_objext conftest$ac_exeext
10012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013 (eval $ac_link) 2>conftest.er1
10014 ac_status=$?
10015 grep -v '^ *+' conftest.er1 >conftest.err
10016 rm -f conftest.er1
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_c_werror_flag"
10021 || test ! -s conftest.err'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_lib_ssl_SSL_library_init=yes
10034else
10035 echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038ac_cv_lib_ssl_SSL_library_init=no
10039fi
10040rm -f conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042LIBS=$ac_check_lib_save_LIBS
10043fi
10044echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
10045echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
10046if test $ac_cv_lib_ssl_SSL_library_init = yes; then
10047 libssl_present=1 && LIBS="$LIBS -lssl"
10048fi
10049
10050 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
10051echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
10052if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054else
10055 ac_check_lib_save_LIBS=$LIBS
10056LIBS="-lcrypto $LIBS"
10057cat >conftest.$ac_ext <<_ACEOF
10058/* confdefs.h. */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h. */
10063
10064/* Override any gcc2 internal prototype to avoid an error. */
10065#ifdef __cplusplus
10066extern "C"
10067#endif
10068/* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070char ERR_load_BIO_strings ();
10071int
10072main ()
10073{
10074ERR_load_BIO_strings ();
10075 ;
10076 return 0;
10077}
10078_ACEOF
10079rm -f conftest.$ac_objext conftest$ac_exeext
10080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
10102else
10103 echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106ac_cv_lib_crypto_ERR_load_BIO_strings=no
10107fi
10108rm -f conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110LIBS=$ac_check_lib_save_LIBS
10111fi
10112echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
10113echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
10114if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
10115 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
10116fi
10117
10118 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
10119 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
10120echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
10121 cat >>confdefs.h <<\_ACEOF
10122#define PJSIP_HAS_TLS_TRANSPORT 1
10123_ACEOF
10124
10125 else
10126 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
10127echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
10128 fi
10129
10130fi;
10131
10132
10133
10134
10135echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010136echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010137case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010138 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010139#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010140_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010141
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010142 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010143echo "${ECHO_T}yes" >&6
10144 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010145 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010146#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010147_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010148
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010149 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010150echo "${ECHO_T}no (default)" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010151 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010152echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
10153 ;;
10154esac
10155
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010156echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010157echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
10158case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010159 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010160#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010161_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010162
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010163 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010164echo "${ECHO_T}yes" >&6
10165 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010166 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010167#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010168_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010169
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010170 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010171echo "${ECHO_T}no (default)" >&6
10172 ;;
10173esac
10174
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010175echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010176echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
10177case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010178 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010179#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010180_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010181
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010182 echo "$as_me:$LINENO: result: yes" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010183echo "${ECHO_T}yes" >&6
10184 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010185 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010186#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010187_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010188
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010189 echo "$as_me:$LINENO: result: no (default)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010190echo "${ECHO_T}no (default)" >&6
10191 ;;
10192esac
10193
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010194case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010195 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010196 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010197#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010198_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010199
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010200 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010201 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010202#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010203_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010204
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010205 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010206echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
10207 ;;
10208esac
10209
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010210case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010211 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010212 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010213#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010214_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010215
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010216 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010217 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010218#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010219_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010220
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010221 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010222echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
10223 ;;
10224esac
10225
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010226
10227
10228
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010229if test "$build" = "$host"; then
10230 ac_cross_compile=
10231else
Benny Prijono5b818b22006-09-17 22:58:51 +000010232 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010233fi
10234ac_linux_poll=select
10235
10236ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010237
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010238
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010239case $target in
10240 *rtems*)
10241 ac_main_obj=main_rtems.o
10242 ;;
10243 *)
10244 ac_main_obj=main.o
10245 ;;
10246esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010247
10248cat >confcache <<\_ACEOF
10249# This file is a shell script that caches the results of configure
10250# tests run on this system so they can be shared between configure
10251# scripts and configure runs, see configure's option --config-cache.
10252# It is not useful on other systems. If it contains results you don't
10253# want to keep, you may remove or edit it.
10254#
10255# config.status only pays attention to the cache file if you give it
10256# the --recheck option to rerun configure.
10257#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010258# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010259# loading this file, other *unset* `ac_cv_foo' will be assigned the
10260# following values.
10261
10262_ACEOF
10263
10264# The following way of writing the cache mishandles newlines in values,
10265# but we know of no workaround that is simple, portable, and efficient.
10266# So, don't put newlines in cache variables' values.
10267# Ultrix sh set writes to stderr and can't be redirected directly,
10268# and sets the high bit in the cache file unless we assign to the vars.
10269{
10270 (set) 2>&1 |
10271 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10272 *ac_space=\ *)
10273 # `set' does not quote correctly, so add quotes (double-quote
10274 # substitution turns \\\\ into \\, and sed turns \\ into \).
10275 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010276 "s/'/'\\\\''/g;
10277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010278 ;;
10279 *)
10280 # `set' quotes correctly as required by POSIX, so do not add quotes.
10281 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010282 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010283 ;;
10284 esac;
10285} |
10286 sed '
10287 t clear
10288 : clear
10289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10290 t end
10291 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10292 : end' >>confcache
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010293if diff $cache_file confcache >/dev/null 2>&1; then :; else
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010294 if test -w $cache_file; then
10295 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10296 cat confcache >$cache_file
10297 else
10298 echo "not updating unwritable cache $cache_file"
10299 fi
10300fi
10301rm -f confcache
10302
10303test "x$prefix" = xNONE && prefix=$ac_default_prefix
10304# Let make expand exec_prefix.
10305test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10306
10307# VPATH may cause trouble with some makes, so we remove $(srcdir),
10308# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10309# trailing colons and then remove the whole line if VPATH becomes empty
10310# (actually we leave an empty line to preserve line numbers).
10311if test "x$srcdir" = x.; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010312 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010313s/:*\$(srcdir):*/:/;
10314s/:*\${srcdir}:*/:/;
10315s/:*@srcdir@:*/:/;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010316s/^\([^=]*=[ ]*\):*/\1/;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010317s/:*$//;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010318s/^[^=]*=[ ]*$//;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010319}'
10320fi
10321
10322DEFS=-DHAVE_CONFIG_H
10323
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010324ac_libobjs=
10325ac_ltlibobjs=
10326for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10327 # 1. Remove the extension, and $U if already installed.
10328 ac_i=`echo "$ac_i" |
10329 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10330 # 2. Add them.
10331 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10332 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10333done
10334LIBOBJS=$ac_libobjs
10335
10336LTLIBOBJS=$ac_ltlibobjs
10337
10338
10339
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010340: ${CONFIG_STATUS=./config.status}
10341ac_clean_files_save=$ac_clean_files
10342ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010343{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010344echo "$as_me: creating $CONFIG_STATUS" >&6;}
10345cat >$CONFIG_STATUS <<_ACEOF
10346#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010347# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010348# Run this file to recreate the current configuration.
10349# Compiler output produced by configure, useful for debugging
10350# configure, is in config.log if it exists.
10351
10352debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010353ac_cs_recheck=false
10354ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010355SHELL=\${CONFIG_SHELL-$SHELL}
10356_ACEOF
10357
10358cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010359## --------------------- ##
10360## M4sh Initialization. ##
10361## --------------------- ##
10362
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010363# Be Bourne compatible
10364if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10365 emulate sh
10366 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010367 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10368 # is contrary to our usage. Disable this feature.
10369 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010370elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10371 set -o posix
10372fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010373DUALCASE=1; export DUALCASE # for MKS sh
10374
10375# Support unset when possible.
10376if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10377 as_unset=unset
10378else
10379 as_unset=false
10380fi
10381
10382
10383# Work around bugs in pre-3.0 UWIN ksh.
10384$as_unset ENV MAIL MAILPATH
10385PS1='$ '
10386PS2='> '
10387PS4='+ '
10388
10389# NLS nuisances.
10390for as_var in \
10391 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10392 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10393 LC_TELEPHONE LC_TIME
10394do
10395 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10396 eval $as_var=C; export $as_var
10397 else
10398 $as_unset $as_var
10399 fi
10400done
10401
10402# Required to use basename.
10403if expr a : '\(a\)' >/dev/null 2>&1; then
10404 as_expr=expr
10405else
10406 as_expr=false
10407fi
10408
10409if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10410 as_basename=basename
10411else
10412 as_basename=false
10413fi
10414
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010415
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010416# Name of the executable.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010417as_me=`$as_basename "$0" ||
10418$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10419 X"$0" : 'X\(//\)$' \| \
10420 X"$0" : 'X\(/\)$' \| \
10421 . : '\(.\)' 2>/dev/null ||
10422echo X/"$0" |
10423 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10424 /^X\/\(\/\/\)$/{ s//\1/; q; }
10425 /^X\/\(\/\).*/{ s//\1/; q; }
10426 s/.*/./; q'`
10427
10428
10429# PATH needs CR, and LINENO needs CR and PATH.
10430# Avoid depending upon Character Ranges.
10431as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10432as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10433as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10434as_cr_digits='0123456789'
10435as_cr_alnum=$as_cr_Letters$as_cr_digits
10436
10437# The user is always right.
10438if test "${PATH_SEPARATOR+set}" != set; then
10439 echo "#! /bin/sh" >conf$$.sh
10440 echo "exit 0" >>conf$$.sh
10441 chmod +x conf$$.sh
10442 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10443 PATH_SEPARATOR=';'
10444 else
10445 PATH_SEPARATOR=:
10446 fi
10447 rm -f conf$$.sh
10448fi
10449
10450
10451 as_lineno_1=$LINENO
10452 as_lineno_2=$LINENO
10453 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10454 test "x$as_lineno_1" != "x$as_lineno_2" &&
10455 test "x$as_lineno_3" = "x$as_lineno_2" || {
10456 # Find who we are. Look in the path if we contain no path at all
10457 # relative or not.
10458 case $0 in
10459 *[\\/]* ) as_myself=$0 ;;
10460 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10466done
10467
10468 ;;
10469 esac
10470 # We did not find ourselves, most probably we were run as `sh COMMAND'
10471 # in which case we are not to be found in the path.
10472 if test "x$as_myself" = x; then
10473 as_myself=$0
10474 fi
10475 if test ! -f "$as_myself"; then
10476 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10477echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10478 { (exit 1); exit 1; }; }
10479 fi
10480 case $CONFIG_SHELL in
10481 '')
10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10484do
10485 IFS=$as_save_IFS
10486 test -z "$as_dir" && as_dir=.
10487 for as_base in sh bash ksh sh5; do
10488 case $as_dir in
10489 /*)
10490 if ("$as_dir/$as_base" -c '
10491 as_lineno_1=$LINENO
10492 as_lineno_2=$LINENO
10493 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10494 test "x$as_lineno_1" != "x$as_lineno_2" &&
10495 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10496 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10497 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10498 CONFIG_SHELL=$as_dir/$as_base
10499 export CONFIG_SHELL
10500 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10501 fi;;
10502 esac
10503 done
10504done
10505;;
10506 esac
10507
10508 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10509 # uniformly replaced by the line number. The first 'sed' inserts a
10510 # line-number line before each line; the second 'sed' does the real
10511 # work. The second script uses 'N' to pair each line-number line
10512 # with the numbered line, and appends trailing '-' during
10513 # substitution so that $LINENO is not a special case at line end.
10514 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10515 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10516 sed '=' <$as_myself |
10517 sed '
10518 N
10519 s,$,-,
10520 : loop
10521 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10522 t loop
10523 s,-$,,
10524 s,^['$as_cr_digits']*\n,,
10525 ' >$as_me.lineno &&
10526 chmod +x $as_me.lineno ||
10527 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10528echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10529 { (exit 1); exit 1; }; }
10530
10531 # Don't try to exec as it changes $[0], causing all sort of problems
10532 # (the dirname of $[0] is not the place where we might find the
10533 # original and so on. Autoconf is especially sensible to this).
10534 . ./$as_me.lineno
10535 # Exit status is that of the last command.
10536 exit
10537}
10538
10539
10540case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10541 *c*,-n*) ECHO_N= ECHO_C='
10542' ECHO_T=' ' ;;
10543 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10544 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10545esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010546
10547if expr a : '\(a\)' >/dev/null 2>&1; then
10548 as_expr=expr
10549else
10550 as_expr=false
10551fi
10552
10553rm -f conf$$ conf$$.exe conf$$.file
10554echo >conf$$.file
10555if ln -s conf$$.file conf$$ 2>/dev/null; then
10556 # We could just check for DJGPP; but this test a) works b) is more generic
10557 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10558 if test -f conf$$.exe; then
10559 # Don't use ln at all; we don't have any links
10560 as_ln_s='cp -p'
10561 else
10562 as_ln_s='ln -s'
10563 fi
10564elif ln conf$$.file conf$$ 2>/dev/null; then
10565 as_ln_s=ln
10566else
10567 as_ln_s='cp -p'
10568fi
10569rm -f conf$$ conf$$.exe conf$$.file
10570
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010571if mkdir -p . 2>/dev/null; then
10572 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000010573else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010574 test -d ./-p && rmdir ./-p
10575 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000010576fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010577
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010578as_executable_p="test -f"
10579
10580# Sed expression to map a string onto a valid CPP name.
10581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10582
10583# Sed expression to map a string onto a valid variable name.
10584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10585
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010586
10587# IFS
10588# We need space, tab and new line, in precisely that order.
10589as_nl='
10590'
10591IFS=" $as_nl"
10592
10593# CDPATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010594$as_unset CDPATH
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010595
10596exec 6>&1
10597
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010598# Open the log real soon, to keep \$[0] and so on meaningful, and to
10599# report actual input values of CONFIG_FILES etc. instead of their
10600# values after options handling. Logging --version etc. is OK.
10601exec 5>>config.log
10602{
10603 echo
10604 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10605## Running $as_me. ##
10606_ASBOX
10607} >&5
10608cat >&5 <<_CSEOF
10609
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010610This file was extended by pjproject $as_me 0.7, which was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010611generated by GNU Autoconf 2.59. Invocation command line was
10612
10613 CONFIG_FILES = $CONFIG_FILES
10614 CONFIG_HEADERS = $CONFIG_HEADERS
10615 CONFIG_LINKS = $CONFIG_LINKS
10616 CONFIG_COMMANDS = $CONFIG_COMMANDS
10617 $ $0 $@
10618
10619_CSEOF
10620echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10621echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010622_ACEOF
10623
10624# Files that config.status was made for.
10625if test -n "$ac_config_files"; then
10626 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10627fi
10628
10629if test -n "$ac_config_headers"; then
10630 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10631fi
10632
10633if test -n "$ac_config_links"; then
10634 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10635fi
10636
10637if test -n "$ac_config_commands"; then
10638 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10639fi
10640
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010641cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010642
10643ac_cs_usage="\
10644\`$as_me' instantiates files from templates according to the
10645current configuration.
10646
10647Usage: $0 [OPTIONS] [FILE]...
10648
10649 -h, --help print this help, then exit
10650 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010651 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010652 -d, --debug don't remove temporary files
10653 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010654 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010655 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010656 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010657 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010658
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010659Configuration files:
10660$config_files
10661
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010662Configuration headers:
10663$config_headers
10664
10665Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010666_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010667
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010668cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010669ac_cs_version="\\
Benny Prijonoabcf49c2007-05-15 21:02:54 +000010670pjproject config.status 0.7
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010671configured by $0, generated by GNU Autoconf 2.59,
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010672 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10673
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010674Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010675This config.status script is free software; the Free Software Foundation
10676gives unlimited permission to copy, distribute and modify it."
10677srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010678_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010679
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010680cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010681# If no file are specified by the user, then we need to provide default
10682# value. By we need to know if files were specified by the user.
10683ac_need_defaults=:
10684while test $# != 0
10685do
10686 case $1 in
10687 --*=*)
10688 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10689 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010690 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010691 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010692 -*)
10693 ac_option=$1
10694 ac_optarg=$2
10695 ac_shift=shift
10696 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010697 *) # This is not an option, so the user has probably given explicit
10698 # arguments.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010699 ac_option=$1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010700 ac_need_defaults=false;;
10701 esac
10702
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010703 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010704 # Handling of the options.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010705_ACEOF
10706cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010708 ac_cs_recheck=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010709 --version | --vers* | -V )
10710 echo "$ac_cs_version"; exit 0 ;;
10711 --he | --h)
10712 # Conflict between --help and --header
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010713 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010714Try \`$0 --help' for more information." >&5
10715echo "$as_me: error: ambiguous option: $1
10716Try \`$0 --help' for more information." >&2;}
10717 { (exit 1); exit 1; }; };;
10718 --help | --hel | -h )
10719 echo "$ac_cs_usage"; exit 0 ;;
10720 --debug | --d* | -d )
10721 debug=: ;;
10722 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010723 $ac_shift
10724 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010725 ac_need_defaults=false;;
10726 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010727 $ac_shift
10728 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010729 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10731 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10732 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010733
10734 # This is an error.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010735 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010736Try \`$0 --help' for more information." >&5
10737echo "$as_me: error: unrecognized option: $1
10738Try \`$0 --help' for more information." >&2;}
10739 { (exit 1); exit 1; }; } ;;
10740
10741 *) ac_config_targets="$ac_config_targets $1" ;;
10742
10743 esac
10744 shift
10745done
10746
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010747ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010748
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010749if $ac_cs_silent; then
10750 exec 6>/dev/null
10751 ac_configure_extra_args="$ac_configure_extra_args --silent"
10752fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010753
10754_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010755cat >>$CONFIG_STATUS <<_ACEOF
10756if \$ac_cs_recheck; then
10757 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10758 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10759fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010760
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010761_ACEOF
10762
10763
10764
10765
10766
10767cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010768for ac_config_target in $ac_config_targets
10769do
10770 case "$ac_config_target" in
10771 # Handling of arguments.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010772 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
10773 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
10774 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
10775 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
10776 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
10777 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Benny Prijonod9627842007-04-18 09:24:31 +000010778 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
10779 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010780 "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 +000010781 "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 +000010782 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
10783 "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 +000010784 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
10785 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010786echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10787 { (exit 1); exit 1; }; };;
10788 esac
10789done
10790
10791# If the user did not use the arguments to specify the items to instantiate,
10792# then the envvar interface is used. Set only those that are not.
10793# We use the long form for the default assignment because of an extremely
10794# bizarre bug on SunOS 4.1.3.
10795if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010796 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010797 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10798fi
10799
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010800# Have a temporary directory for convenience. Make it in the build tree
10801# simply because there is no reason to put it here, and in addition,
10802# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010803# Create a temporary directory, and hook for its removal unless debugging.
10804$debug ||
10805{
10806 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10807 trap '{ (exit 1); exit 1; }' 1 2 13 15
10808}
10809
10810# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010811
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010812{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010813 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010814 test -n "$tmp" && test -d "$tmp"
10815} ||
10816{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010817 tmp=./confstat$$-$RANDOM
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010818 (umask 077 && mkdir $tmp)
10819} ||
10820{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010821 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010822 { (exit 1); exit 1; }
10823}
10824
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010825_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010826
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010827cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010828
10829#
10830# CONFIG_FILES section.
10831#
10832
10833# No need to generate the scripts if there are no CONFIG_FILES.
10834# This happens for instance when ./config.status config.h
10835if test -n "\$CONFIG_FILES"; then
10836 # Protect against being on the right side of a sed subst in config.status.
10837 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10838 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10839s,@SHELL@,$SHELL,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010840s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10841s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10842s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10843s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10844s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10845s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010846s,@exec_prefix@,$exec_prefix,;t t
10847s,@prefix@,$prefix,;t t
10848s,@program_transform_name@,$program_transform_name,;t t
10849s,@bindir@,$bindir,;t t
10850s,@sbindir@,$sbindir,;t t
10851s,@libexecdir@,$libexecdir,;t t
10852s,@datadir@,$datadir,;t t
10853s,@sysconfdir@,$sysconfdir,;t t
10854s,@sharedstatedir@,$sharedstatedir,;t t
10855s,@localstatedir@,$localstatedir,;t t
10856s,@libdir@,$libdir,;t t
10857s,@includedir@,$includedir,;t t
10858s,@oldincludedir@,$oldincludedir,;t t
10859s,@infodir@,$infodir,;t t
10860s,@mandir@,$mandir,;t t
10861s,@build_alias@,$build_alias,;t t
10862s,@host_alias@,$host_alias,;t t
10863s,@target_alias@,$target_alias,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010864s,@DEFS@,$DEFS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010865s,@ECHO_C@,$ECHO_C,;t t
10866s,@ECHO_N@,$ECHO_N,;t t
10867s,@ECHO_T@,$ECHO_T,;t t
10868s,@LIBS@,$LIBS,;t t
10869s,@build@,$build,;t t
10870s,@build_cpu@,$build_cpu,;t t
10871s,@build_vendor@,$build_vendor,;t t
10872s,@build_os@,$build_os,;t t
10873s,@host@,$host,;t t
10874s,@host_cpu@,$host_cpu,;t t
10875s,@host_vendor@,$host_vendor,;t t
10876s,@host_os@,$host_os,;t t
10877s,@target@,$target,;t t
10878s,@target_cpu@,$target_cpu,;t t
10879s,@target_vendor@,$target_vendor,;t t
10880s,@target_os@,$target_os,;t t
10881s,@CC@,$CC,;t t
10882s,@CFLAGS@,$CFLAGS,;t t
10883s,@LDFLAGS@,$LDFLAGS,;t t
10884s,@CPPFLAGS@,$CPPFLAGS,;t t
10885s,@ac_ct_CC@,$ac_ct_CC,;t t
10886s,@EXEEXT@,$EXEEXT,;t t
10887s,@OBJEXT@,$OBJEXT,;t t
10888s,@CXX@,$CXX,;t t
10889s,@CXXFLAGS@,$CXXFLAGS,;t t
10890s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Benny Prijono12483112007-03-12 10:44:38 +000010891s,@ac_pjdir@,$ac_pjdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010892s,@CPP@,$CPP,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010893s,@EGREP@,$EGREP,;t t
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010894s,@ac_os_objs@,$ac_os_objs,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010895s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
Benny Prijono39ae2da2006-10-13 17:57:42 +000010896s,@ac_pa_cflags@,$ac_pa_cflags,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010897s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
10898s,@ac_no_small_filter@,$ac_no_small_filter,;t t
10899s,@ac_no_large_filter@,$ac_no_large_filter,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010900s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
10901s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
10902s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
10903s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
10904s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
10905s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010906s,@ac_no_ssl@,$ac_no_ssl,;t t
10907s,@openssl_h_present@,$openssl_h_present,;t t
10908s,@libssl_present@,$libssl_present,;t t
10909s,@libcrypto_present@,$libcrypto_present,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010910s,@ac_cross_compile@,$ac_cross_compile,;t t
10911s,@ac_linux_poll@,$ac_linux_poll,;t t
10912s,@ac_host@,$ac_host,;t t
10913s,@ac_main_obj@,$ac_main_obj,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010914s,@LIBOBJS@,$LIBOBJS,;t t
10915s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010916CEOF
10917
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010918_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010919
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010920 cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010921 # Split the substitutions into bite-sized pieces for seds with
10922 # small command number limits, like on Digital OSF/1 and HP-UX.
10923 ac_max_sed_lines=48
10924 ac_sed_frag=1 # Number of current file.
10925 ac_beg=1 # First line for current file.
10926 ac_end=$ac_max_sed_lines # Line after last line for current file.
10927 ac_more_lines=:
10928 ac_sed_cmds=
10929 while $ac_more_lines; do
10930 if test $ac_beg -gt 1; then
10931 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10932 else
10933 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10934 fi
10935 if test ! -s $tmp/subs.frag; then
10936 ac_more_lines=false
10937 else
10938 # The purpose of the label and of the branching condition is to
10939 # speed up the sed processing (if there are no `@' at all, there
10940 # is no need to browse any of the substitutions).
10941 # These are the two extra sed commands mentioned above.
10942 (echo ':t
10943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10944 if test -z "$ac_sed_cmds"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010945 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010946 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010947 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010948 fi
10949 ac_sed_frag=`expr $ac_sed_frag + 1`
10950 ac_beg=$ac_end
10951 ac_end=`expr $ac_end + $ac_max_sed_lines`
10952 fi
10953 done
10954 if test -z "$ac_sed_cmds"; then
10955 ac_sed_cmds=cat
10956 fi
10957fi # test -n "$CONFIG_FILES"
10958
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010959_ACEOF
10960cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010961for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10962 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10963 case $ac_file in
10964 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010965 cat >$tmp/stdin
10966 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010968 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010970 * ) ac_file_in=$ac_file.in ;;
10971 esac
10972
10973 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010974 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10975$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10976 X"$ac_file" : 'X\(//\)[^/]' \| \
10977 X"$ac_file" : 'X\(//\)$' \| \
10978 X"$ac_file" : 'X\(/\)' \| \
10979 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010980echo X"$ac_file" |
10981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10983 /^X\(\/\/\)$/{ s//\1/; q; }
10984 /^X\(\/\).*/{ s//\1/; q; }
10985 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010986 { if $as_mkdir_p; then
10987 mkdir -p "$ac_dir"
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010988 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010989 as_dir="$ac_dir"
10990 as_dirs=
10991 while test ! -d "$as_dir"; do
10992 as_dirs="$as_dir $as_dirs"
10993 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10994$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10995 X"$as_dir" : 'X\(//\)[^/]' \| \
10996 X"$as_dir" : 'X\(//\)$' \| \
10997 X"$as_dir" : 'X\(/\)' \| \
10998 . : '\(.\)' 2>/dev/null ||
10999echo X"$as_dir" |
11000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11002 /^X\(\/\/\)$/{ s//\1/; q; }
11003 /^X\(\/\).*/{ s//\1/; q; }
11004 s/.*/./; q'`
11005 done
11006 test ! -n "$as_dirs" || mkdir $as_dirs
11007 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11008echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11009 { (exit 1); exit 1; }; }; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011010
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011011 ac_builddir=.
11012
11013if test "$ac_dir" != .; then
11014 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11015 # A "../" for each directory in $ac_dir_suffix.
11016 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11017else
11018 ac_dir_suffix= ac_top_builddir=
11019fi
11020
11021case $srcdir in
11022 .) # No --srcdir option. We are building in place.
11023 ac_srcdir=.
11024 if test -z "$ac_top_builddir"; then
11025 ac_top_srcdir=.
11026 else
11027 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11028 fi ;;
11029 [\\/]* | ?:[\\/]* ) # Absolute path.
11030 ac_srcdir=$srcdir$ac_dir_suffix;
11031 ac_top_srcdir=$srcdir ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011032 *) # Relative path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011033 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11034 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11035esac
11036
11037# Do not use `cd foo && pwd` to compute absolute paths, because
11038# the directories may not exist.
11039case `pwd` in
11040.) ac_abs_builddir="$ac_dir";;
11041*)
11042 case "$ac_dir" in
11043 .) ac_abs_builddir=`pwd`;;
11044 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11045 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11046 esac;;
11047esac
11048case $ac_abs_builddir in
11049.) ac_abs_top_builddir=${ac_top_builddir}.;;
11050*)
11051 case ${ac_top_builddir}. in
11052 .) ac_abs_top_builddir=$ac_abs_builddir;;
11053 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11054 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11055 esac;;
11056esac
11057case $ac_abs_builddir in
11058.) ac_abs_srcdir=$ac_srcdir;;
11059*)
11060 case $ac_srcdir in
11061 .) ac_abs_srcdir=$ac_abs_builddir;;
11062 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11063 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11064 esac;;
11065esac
11066case $ac_abs_builddir in
11067.) ac_abs_top_srcdir=$ac_top_srcdir;;
11068*)
11069 case $ac_top_srcdir in
11070 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11071 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11072 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11073 esac;;
11074esac
11075
11076
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011077
11078 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011079 { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011080echo "$as_me: creating $ac_file" >&6;}
11081 rm -f "$ac_file"
11082 fi
11083 # Let's still pretend it is `configure' which instantiates (i.e., don't
11084 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011085 # /* config.h. Generated by config.status. */
11086 if test x"$ac_file" = x-; then
11087 configure_input=
11088 else
11089 configure_input="$ac_file. "
11090 fi
11091 configure_input=$configure_input"Generated from `echo $ac_file_in |
11092 sed 's,.*/,,'` by configure."
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011093
11094 # First look for the input files in the build tree, otherwise in the
11095 # src tree.
11096 ac_file_inputs=`IFS=:
11097 for f in $ac_file_in; do
11098 case $f in
11099 -) echo $tmp/stdin ;;
11100 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011101 # Absolute (can't be DOS-style, as IFS=:)
11102 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011103echo "$as_me: error: cannot find input file: $f" >&2;}
11104 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011105 echo "$f";;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011106 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011107 if test -f "$f"; then
11108 # Build tree
11109 echo "$f"
11110 elif test -f "$srcdir/$f"; then
11111 # Source tree
11112 echo "$srcdir/$f"
11113 else
11114 # /dev/null tree
11115 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011116echo "$as_me: error: cannot find input file: $f" >&2;}
11117 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011118 fi;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011119 esac
11120 done` || { (exit 1); exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011121_ACEOF
11122cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011123 sed "$ac_vpsub
11124$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011125_ACEOF
11126cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011127:t
11128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11129s,@configure_input@,$configure_input,;t t
11130s,@srcdir@,$ac_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011131s,@abs_srcdir@,$ac_abs_srcdir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011132s,@top_srcdir@,$ac_top_srcdir,;t t
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011133s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11134s,@builddir@,$ac_builddir,;t t
11135s,@abs_builddir@,$ac_abs_builddir,;t t
11136s,@top_builddir@,$ac_top_builddir,;t t
11137s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011138" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11139 rm -f $tmp/stdin
11140 if test x"$ac_file" != x-; then
11141 mv $tmp/out $ac_file
11142 else
11143 cat $tmp/out
11144 rm -f $tmp/out
11145 fi
11146
11147done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011148_ACEOF
11149cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011150
11151#
11152# CONFIG_HEADER section.
11153#
11154
11155# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11156# NAME is the cpp macro being defined and VALUE is the value it is being given.
11157#
11158# ac_d sets the value in "#define NAME VALUE" lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011159ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11160ac_dB='[ ].*$,\1#\2'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011161ac_dC=' '
11162ac_dD=',;t'
11163# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011164ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011165ac_uB='$,\1#\2define\3'
11166ac_uC=' '
11167ac_uD=',;t'
11168
11169for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11170 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11171 case $ac_file in
11172 - | *:- | *:-:* ) # input from stdin
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011173 cat >$tmp/stdin
11174 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011176 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011178 * ) ac_file_in=$ac_file.in ;;
11179 esac
11180
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011181 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011182echo "$as_me: creating $ac_file" >&6;}
11183
11184 # First look for the input files in the build tree, otherwise in the
11185 # src tree.
11186 ac_file_inputs=`IFS=:
11187 for f in $ac_file_in; do
11188 case $f in
11189 -) echo $tmp/stdin ;;
11190 [\\/$]*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011191 # Absolute (can't be DOS-style, as IFS=:)
11192 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011193echo "$as_me: error: cannot find input file: $f" >&2;}
11194 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011195 # Do quote $f, to prevent DOS paths from being IFS'd.
11196 echo "$f";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011197 *) # Relative
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011198 if test -f "$f"; then
11199 # Build tree
11200 echo "$f"
11201 elif test -f "$srcdir/$f"; then
11202 # Source tree
11203 echo "$srcdir/$f"
11204 else
11205 # /dev/null tree
11206 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011207echo "$as_me: error: cannot find input file: $f" >&2;}
11208 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011209 fi;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011210 esac
11211 done` || { (exit 1); exit 1; }
11212 # Remove the trailing spaces.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011213 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011214
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011215_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011216
11217# Transform confdefs.h into two sed scripts, `conftest.defines' and
11218# `conftest.undefs', that substitutes the proper values into
11219# config.h.in to produce config.h. The first handles `#define'
11220# templates, and the second `#undef' templates.
11221# And first: Protect against being on the right side of a sed subst in
11222# config.status. Protect against being in an unquoted here document
11223# in config.status.
11224rm -f conftest.defines conftest.undefs
11225# Using a here document instead of a string reduces the quoting nightmare.
11226# Putting comments in sed scripts is not portable.
11227#
11228# `end' is used to avoid that the second main sed command (meant for
11229# 0-ary CPP macros) applies to n-ary macro definitions.
11230# See the Autoconf documentation for `clear'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011231cat >confdef2sed.sed <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011232s/[\\&,]/\\&/g
11233s,[\\$`],\\&,g
11234t clear
11235: clear
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011236s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011237t end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011238s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011239: end
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011240_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011241# If some macros were called several times there might be several times
11242# the same #defines, which is useless. Nevertheless, we may not want to
11243# sort them, since we want the *last* AC-DEFINE to be honored.
11244uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11245sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11246rm -f confdef2sed.sed
11247
11248# This sed command replaces #undef with comments. This is necessary, for
11249# example, in the case of _POSIX_SOURCE, which is predefined and required
11250# on some systems where configure will not decide to define it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011251cat >>conftest.undefs <<\_ACEOF
11252s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11253_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011254
11255# Break up conftest.defines because some shells have a limit on the size
11256# of here documents, and old seds have small limits too (100 cmds).
11257echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011258echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011259echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11260echo ' :' >>$CONFIG_STATUS
11261rm -f conftest.tail
11262while grep . conftest.defines >/dev/null
11263do
11264 # Write a limited-size here document to $tmp/defines.sed.
11265 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11266 # Speed up: don't consider the non `#define' lines.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011267 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011268 # Work around the forget-to-reset-the-flag bug.
11269 echo 't clr' >>$CONFIG_STATUS
11270 echo ': clr' >>$CONFIG_STATUS
11271 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11272 echo 'CEOF
11273 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11274 rm -f $tmp/in
11275 mv $tmp/out $tmp/in
11276' >>$CONFIG_STATUS
11277 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11278 rm -f conftest.defines
11279 mv conftest.tail conftest.defines
11280done
11281rm -f conftest.defines
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011282echo ' fi # grep' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011283echo >>$CONFIG_STATUS
11284
11285# Break up conftest.undefs because some shells have a limit on the size
11286# of here documents, and old seds have small limits too (100 cmds).
11287echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11288rm -f conftest.tail
11289while grep . conftest.undefs >/dev/null
11290do
11291 # Write a limited-size here document to $tmp/undefs.sed.
11292 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11293 # Speed up: don't consider the non `#undef'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011294 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011295 # Work around the forget-to-reset-the-flag bug.
11296 echo 't clr' >>$CONFIG_STATUS
11297 echo ': clr' >>$CONFIG_STATUS
11298 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11299 echo 'CEOF
11300 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11301 rm -f $tmp/in
11302 mv $tmp/out $tmp/in
11303' >>$CONFIG_STATUS
11304 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11305 rm -f conftest.undefs
11306 mv conftest.tail conftest.undefs
11307done
11308rm -f conftest.undefs
11309
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011310cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011311 # Let's still pretend it is `configure' which instantiates (i.e., don't
11312 # use $as_me), people would be surprised to read:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011313 # /* config.h. Generated by config.status. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011314 if test x"$ac_file" = x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011315 echo "/* Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011316 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011317 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011318 fi
11319 cat $tmp/in >>$tmp/config.h
11320 rm -f $tmp/in
11321 if test x"$ac_file" != x-; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011322 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11323 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011324echo "$as_me: $ac_file is unchanged" >&6;}
11325 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011326 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11327$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11328 X"$ac_file" : 'X\(//\)[^/]' \| \
11329 X"$ac_file" : 'X\(//\)$' \| \
11330 X"$ac_file" : 'X\(/\)' \| \
11331 . : '\(.\)' 2>/dev/null ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011332echo X"$ac_file" |
11333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11335 /^X\(\/\/\)$/{ s//\1/; q; }
11336 /^X\(\/\).*/{ s//\1/; q; }
11337 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011338 { if $as_mkdir_p; then
11339 mkdir -p "$ac_dir"
11340 else
11341 as_dir="$ac_dir"
11342 as_dirs=
11343 while test ! -d "$as_dir"; do
11344 as_dirs="$as_dir $as_dirs"
11345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11346$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11347 X"$as_dir" : 'X\(//\)[^/]' \| \
11348 X"$as_dir" : 'X\(//\)$' \| \
11349 X"$as_dir" : 'X\(/\)' \| \
11350 . : '\(.\)' 2>/dev/null ||
11351echo X"$as_dir" |
11352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11354 /^X\(\/\/\)$/{ s//\1/; q; }
11355 /^X\(\/\).*/{ s//\1/; q; }
11356 s/.*/./; q'`
11357 done
11358 test ! -n "$as_dirs" || mkdir $as_dirs
11359 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11360echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11361 { (exit 1); exit 1; }; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011362
11363 rm -f $ac_file
11364 mv $tmp/config.h $ac_file
11365 fi
11366 else
11367 cat $tmp/config.h
11368 rm -f $tmp/config.h
11369 fi
11370done
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011371_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011372
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011373cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011374
11375{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011376_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011377chmod +x $CONFIG_STATUS
11378ac_clean_files=$ac_clean_files_save
11379
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011380
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011381# configure is writing to config.log, and then calls config.status.
11382# config.status does its own redirection, appending to config.log.
11383# Unfortunately, on DOS this fails, as config.log is still kept open
11384# by configure, so config.status won't be able to write to it; its
11385# output is simply discarded. So we exec the FD to /dev/null,
11386# effectively closing config.log, so it can be properly (re)opened and
11387# appended to by config.status. When coming back to configure, we
11388# need to make the FD available again.
11389if test "$no_create" != yes; then
11390 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011391 ac_config_status_args=
11392 test "$silent" = yes &&
11393 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011394 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011396 exec 5>>config.log
11397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11398 # would make configure fail if this is the last instruction.
11399 $ac_cs_success || { (exit 1); exit 1; }
11400fi
11401
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011402
Benny Prijonod9627842007-04-18 09:24:31 +000011403
11404echo "$as_me:$LINENO: result:
11405
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011406Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
Benny Prijonod9627842007-04-18 09:24:31 +000011407
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011408Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000011409 - 'user.mak'
11410 - 'pjlib/include/pj/config_site.h'
11411
11412The next step now is to run 'make dep' and 'make'.
11413" >&5
11414echo "${ECHO_T}
11415
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011416Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
Benny Prijonod9627842007-04-18 09:24:31 +000011417
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011418Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000011419 - 'user.mak'
11420 - 'pjlib/include/pj/config_site.h'
11421
11422The next step now is to run 'make dep' and 'make'.
11423" >&6
11424